Showing posts with label chrome. Show all posts
Showing posts with label chrome. Show all posts

This Week I Learned 2018 - Week 49

Last week post or some old posts.

How to identify and utilize the hidden pocket time available? Surprisingly, there are 13 time slots available. Generally, how do we to shed unnecessary time off your daily schedule, for examples, choosing what to wear or 40 minutes per day on buying stuff? Planning, automation, and limit the choices you've to make. Plan your week ahead, preps your meals up front, or wear the same type of clothing everyday. All these to prevent decision fatigue by removing yourself to make unnecessary decisions in your daily life.

What are you thankful for? I share the same sentiment with this person. Of course, personally, be content.

Does quitting social medias like Instagram or Facebook make you happier? (via HN) Indeed, as the author experienced, it will make your lighter and thus happier. I believe the same experience you felt when going for vegetarian food for a period, your stomach felt lighter. As usual, moderation is the key but take note, these apps were explicitly designed to "consume" you. Start slowly. Instead of drastic changes, disconnect yourself during the weekend, then weekday, and finally totally remove yourself from it.

How does one living with less? Fit everything you own into one carry-on bag. As usual, there always a subreddit, r/onebag, exists. If you travel a lot for a long period of time, the author list of items is a good way to start or reduce the "stuff" you owned to the essential bare minimum.

How smooth jazz took over the '90s? When you mix the technicality of Jazz and melodically of Pop music, then you have Smooth Jazz.

Is Microsoft Edge (Spartan render engine) or Internet Explorer (Trident render engine) going to be replaced by Microsoft own version of Chromium? Yes and finally bloody yes. (via HN) The demise of Edge/IE browser allows me to check off an item from my to-do item after so many, many years of painful experiences and wasted numerous hours trying to get web sites / web apps to work correctly with Edge/IE and numerous hacks and workarounds (remember the stupid box model and their refusal to fix it?). Maybe right now we can have a consistent and standardize web browser render engine with minimum differences. Yes, they may pull another "embrace, extend, and extinguish" strategy again but at least right now we have a FOSS web browser and Firefox.

Why you should switch to Firefox web browser? (via HN) If you values and concerns about privacy. First, Mozilla values your privacy. All the browser data (bookmark, browser history, and etc) synced through Mozilla Sync cannot access by any parties except you. Second, the Firefox Multi-Account Containers extension where cookies are not shared and kept within the container tab itself. This means that each tab is a new browser session and isolated from other tabs where you can use multiple identities and accounts simultaneously. For Google Chrome, there is this extension, SessionBox that did the same but do you trust a third party vendor instead of Mozilla? Third, tracking protection is already built into the browser itself.

This Week I Learned - 2016 Week 31

Looking back to the last week post or you might want to check out the whole series.

Simulate different network condition, especially when testing file uploading and downloading through Google Chrome's DevTools using network throttling. There are two ways to set the settings, see screenshot below. While I'm not a front-end guy, but Chrome DevTools has significant improve the front-end development process. Off course, there is also debugging method on setting breakpoints and detect changes as well as using it as IDE. Lots to learn!


Buying audio and video devices? Nothing beats these written guides by zeos.

Sublime enhanced. Extra set of plugins for Sublime editor.



Post-installation Notes on Ubuntu 16.04 LTS Xenial Xerus

Ubuntu 16.04 LTS Xenial Xerus was released few weeks back and its time to either upgrade or fresh installation. I've done both for different machine, my lappy and desktop. Since my recent switch to SSD hard disk and a new graphic card, these are my notes on the post-installation. After so many years of using Ubuntu, yet you still need to manually tweak it to get the basic essential features to work correctly.

Installation against the SSD is freaking fast, the whole installation finished merely in just less than five minutes. I didn't time the installation process but it was blazing fast compare to all my previous installation. If you're still using HDD, switch to SSD, now! Is like the connection speed from upgrading from dial-up to fiber optic.

Update and Upgrade Packages
The new apt command is very welcoming and finally we have progress bar during package installation. Before that, switch to your fastest mirror. No offence to those who helps to mirror MY repository, but MY mirrors speed are rather inconsistent compare to SG mirrors.
$ sudo sed -i 's/my/sg/g' /etc/apt/sources.list
$ sudo apt update
$ sudo apt full-upgrade

Replace Unity with Gnome
Yes, finally Unity's launcher can be moved to the bottom of the screen but is too little, too late for anyone to care about that. GNOME provides a better integrated desktop user experience. Pick GDM3 as your login manager, log off from current desktop sesison, switch to GNOME desktop, and re-login.
$ sudo apt install ubuntu-gnome-desktop

Dual-Screen Undetected Screen Resolution
Till today, Ubuntu still cannot get the screen resolution right for my second monitor. Again, we've to tweak it through xrandr.
$ xrandr -q
$ cvt 1280 1024

Add the resulting shell script '.xprofile' to resize and re-position the dual screen monitors as follows. As I'm a left-handed mouse user, hence my screen setup is also spanning from left to right.
#!/bin/bash
xrandr --newmode "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 \
    -hsync +vsync

xrandr --addmode DVI-0 1280x1024_60.00

xrandr --output VGA-0 --primary --mode 1280x1024 --pos 1280x0 --rotate normal \
    --output DVI-0 --mode 1280x1024_60.00 --pos 0x0 --rotate normal \
    --output HTMI-0 --off

Conventionally, to execute the command before the starting of X user session for GDM, you should put these commands in '.xprofile' as GDM will load the setting from '/etc/gdm3/Xsession'.

Google Chrome can't play YouTube's videos.
Beginning 16.04, there is no more proprietary ATI graphic driver or fglrx and this may cause some issues if hardware acceleration through graphic cards like games or video playing. The error message obtained when starting Google Chrome from the console as shown below.
[1:3:0417/163438:ERROR:video_layer_impl.cc(369)] 
Not implemented reached in virtual 
void cc::VideoLayerImpl::AppendQuads(cc::RenderPass *, cc::AppendQuadsData *)

The workaround is to disable hardware acceleration under 'advanced settings`. Mostly likely this will be fixed in upcoming patches.

Enable Touch Screen for Google Chrome in Ubuntu 14.10

My lappy, the Samsung 915S3G (see result below) which has touch screen support since the first day I've bought but never bother about it until today.
$ sudo dmidecode | grep "System Information" -A 3
System Information
    Manufacturer: SAMSUNG ELECTRONICS CO., LTD.
    Product Name: 905S3G/906S3G/915S3G
    Version: P03RBV

Since I've been reading a lot of PDF files and the keyboard of this lappy is just atrocious, is best to enable and calibrate touch screen support to obtain the best usage experience.

First, let's install the calibration program to detect your device manufacture name. This will be useful later when you want to set the default input device to Google Chrome.
$ sudo apt-get install xinput-calibrator

Run the calibration program, touch four points on your screen to calibrate your device, and save the result. As shown below, our touch screen device name is "ELAN Touchscreen" with id of 12.
$ xinput_calibrator 
        Setting calibration data: 0, 3776, 0, 2112
Calibrating EVDEV driver for "ELAN Touchscreen" id=12
        current calibration values (from XInput): min_x=0, max_x=3776 and min_y=0, max_y=2112

Doing dynamic recalibration:
        Setting calibration data: -15, 3795, 1, 2118
        --> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ELAN Touchscreen"
        Option  "Calibration"   "-15 3795 1 2118"
        Option  "SwapAxes"      "0"
EndSection

Alternatively, we can find the device id of our touch screen device using the xinput command below. The device id we need is 12.
$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=11   [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ WebCam SC-10HDD13335N                     id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]

Lastly, we'll start Google Chrome browser by setting the input device id found above.
$ google-chrome --touch-devices=12

Shockwave Flash has crashed

Kept getting this error message while trying to play any Flash video these past few days in Google Chrome Version 37.0.2062.120 in Debian Wheezy. According the this bug report, it was caused by the 'erroneous GLIBC_2.14 requirement'.

From all the recommended temporary solution, the best is still revert to the previous working version or downgrading. Luckily, apt kept a cache copy of the deb package.
$ sudo dpkg -i /var/cache/apt/archives/google-chrome-stable_37.0.2062.94-1_amd64.deb
$ killall chrome
$ google-chrome