about:config
Change layout.css.devPixelsPerPx to 1.7 for HiDPI
1/31/2018
1/24/2018
Change FN key behavior on Ubuntu 16.04 installed on Macbook pro
Change Function Key behavior
This section of the document describe how to change the behavior of 'fn' key to better match what user expect. (See #201711, #162083)
Here a description of each behavior :
- 0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
- 1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8.
- 2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause).
Ubuntu 9.04 to 12.04 LTS (Precise Pangolin)
Temporarily
The following command will change the behaviour of 'fn' key with immediate effect, but restarting will reset the configuration:
$ echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
(The meaning of fnmode values is as described in the preceding section.)
Permanently
Methods
described in this section will change the behavior permanently. There
are several ways to proceed with this modification. Each sub-section
describes one way to permanently change the configuration.
With .conf file (Recommended)
1. Run the following command to append the configuration line to the file /etc/modprobe.d/hid_apple.conf creating it if necessary:
$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
2. Trigger copying the configuration into the initramfs bootfile.
$ sudo update-initramfs -u -k all
3. Optionally, reboot
$ sudo reboot
1/22/2018
How to change the blogger blog post font
There are limited fonts available to be selected in Blogger. If you want to use a special font, here is a trick you can use:
Copy and paste
haha
To HTML and switch back to Compose. Then you can use your desired fonts.
Copy and paste
haha
To HTML and switch back to Compose. Then you can use your desired fonts.
Font of Microsoft OneDrive Text or text editor
Apparently Microsoft OneDrive website font depends on your operating system's browser version.
I like to use the Consolas font for the display, but it always uses Courier New as the font for my Ubuntu/Linux Firefox browser.
The solution is to install User Agent Switcher in Firefox and use Windows/Firefox to enable the Consolas font.
I like to use the Consolas font for the display, but it always uses Courier New as the font for my Ubuntu/Linux Firefox browser.
The solution is to install User Agent Switcher in Firefox and use Windows/Firefox to enable the Consolas font.
1/21/2018
1/19/2018
How to install the latest cinnamon on Ubuntu 16.04
sudo add-apt-repository ppa:embrosyn/cinnamon
sudo apt update sudo apt install cinnamon
1/16/2018
How to enable night light on Ubuntu 16.04
Night light is a feature to make the screen color warmer. It can help to make your eyes feel better when the environment is not very bright.
sudo apt install redshift-gtk
Then run:
redshift-gtk, it will add an icon on the system tray.
cat ~/.config/redshift.conf
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5500
temp-night=5300
location-provider=manual
[manual]
; Bay area
lat=37.362578
lon=-122.041881
; Beijing
;lat=39.9042
;lon=116.4074
sudo apt install redshift-gtk
Then run:
redshift-gtk, it will add an icon on the system tray.
cat ~/.config/redshift.conf
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5500
temp-night=5300
location-provider=manual
[manual]
; Bay area
lat=37.362578
lon=-122.041881
; Beijing
;lat=39.9042
;lon=116.4074
1/11/2018
VIM frequently commonly used commands
Left: h
Right: l
Up: k
Down: j
Undo: u
Start Editing: i
Append at line end: A
Edit after cursor: a
Goto line: number then G
Delete line: dd
Right: l
Up: k
Down: j
Undo: u
Start Editing: i
Append at line end: A
Edit after cursor: a
Goto line: number then G
Delete line: dd
1/08/2018
Firefox monospace font is not used
Today I found that my Firefox 57 doesn't render the monospace font correctly anymore. It should render Consolas font, but for some reason it renders as Serif font.
After a little debugging, I found that this was caused by the Windows 10 language & region formats. I set it to Chinese (Simplied, China).
How to fix:
Instead of modifying the Latin font settings in Firefox, change the Chinese, Simplied font settings to Consolas instead. My problem was fixed by that.
After a little debugging, I found that this was caused by the Windows 10 language & region formats. I set it to Chinese (Simplied, China).
How to fix:
Instead of modifying the Latin font settings in Firefox, change the Chinese, Simplied font settings to Consolas instead. My problem was fixed by that.
1/06/2018
Linux下的飞鸽传书 iptux
sudo apt install iptux
Tools | Preferences | System
Use gb2312 for Preference network encoding
Tools | Preferences | System
Use gb2312 for Preference network encoding
Windows 10 飞鸽传书不能传文件解决办法
一般情况是因为防火墙。
Goto:
Firewall & Network Protection | Allow an app throught firewall
Allow 飞鸽传书 in both private and public
Goto:
Firewall & Network Protection | Allow an app throught firewall
Allow 飞鸽传书 in both private and public
How to connect to anohter windows 10 shared folder with different credentials
Just use the IP of the machine instead of using the machine name!!
飞鸽传书 乱码 Windows 10解决办法
Additional date, time and regional settings | Language | Change date,time or number formats
Formats: Change format to Chinese (Simplified, China)
Administrative: Language for non-Unicode programs, Current language for non-Unicode programs: Chinese (Simplified, China)
Formats: Change format to Chinese (Simplified, China)
Administrative: Language for non-Unicode programs, Current language for non-Unicode programs: Chinese (Simplified, China)
Subscribe to:
Posts (Atom)