HomeTom - CS

Thursday, April 25, 2019

Android development on Mac

SDK for Mac: https://developer.android.com/studio
Installation guide: https://www.talkandroid.com/guides/developer/android-sdk-install-guide/

See more discussion at:
https://stackoverflow.com/questions/2672100/can-i-develop-android-applications-on-macos

Build the first App:
https://www.iosinsight.com/develop-android-apps-on-mac/

Wednesday, May 2, 2018

VBA HTML 邮件兼容问题与解决方案


HTML 邮件兼容问题与解决方案

Sunday, April 23, 2017

MacOS Tips

- swtich desktop screen: ctrl + arrow key
- change mouse scroll direction: system preferences -> mouse
- lock screen: ctrl+shift+reject; top left corner -> sleep;
- start screen saver: hot corner: system preferences -> mission control -> hot corner
  http://osxdaily.com/2011/01/17/lock-screen-mac/
- MS keyboard windows key maps to Apple keyboard apple command key
- go to line start/end: apple command + arrow
  - http://hints.macworld.com/article.php?story=20091113104558655
  - Shift+Home/End
- in browser, Home/End go to top/bottom of page.
- select all/copy/paste: apple command+A/C/V
- Screenshot: Shift+Command+4 (select area), Shift+Command+3 (full screen)

Thursday, April 13, 2017

XScreenSaver

XScreenSaver is available on linux-based X11 systems, including major linux and BSD distributions, MacOS, iPhone, iPad and Android. It was written by Jamie Zawinski and others.

See: https://www.jwz.org/xscreensaver/
This is a very nice introduction to Writing an Xscreensaver Module using Xlib.

Sunday, July 24, 2016

Sharing files between Mac and Windows

Just bought a 2TB external harddrive, but it is in NTFS format and is compatible with Windows 10 only. To use it with Mac it needs to be reformatted.

The choice is FAT32 or exFAT.

FAT32 is the traditional simple format, supported by most OS. But it cannot be applied to a disk larger than 2TB. Single file size cannot be larger than 4GB.

exFAT is an extended format of FAT32. It allows file size larger than 4GB.

Some links:

[1] How to format external hard drives for Mac and Windows
[2] How to share an external drive between a Mac and a PC
[3] Difference between exfat and fat32
[4] What is exFAT and how is it different from FAT32


Wednesday, February 24, 2016

Allow SSI (Server Side Includes) on bluehost

The easy way [1] is to add a .htaccess file with this line:

AddHandler server-parsed .html

That's all you need.

Another way [2] is to parse html as PHP. For this, go to cPanel >> Apache Handlers. In the "Extension(s)" box, enter html and in the "Handler" box enter application/x-httpd-php, then click "Add".

[1] https://my.bluehost.com/cgi/help/257
[2] http://www.bluehostforum.com/showthread.php?2359-I-need-help-using-server-side-includes!!

Blog Archive

Followers