Posts

Showing posts from April, 2011

Optimization for Mac OS X with SSD

To reduce disk writing, I have made some changes after Google the solution. Sleeping mode Check default value $ sudo pmset -g | grep hibernatemode hibernatemode 3 Change value $ sudo pmset -a hibernatemode 0 Remove sleep image $ sudo rm /var/vm/sleepimage Sudden Motion Sensor $ sudo pmset -a sms 0 Spotlight $ sudo mdutil -a -i off Hard drive sleep Go to "System Preferences" -> "Energy Saver" uncheck "Let disk fail sleep when possible" Hope that could helpful.

Youtube to MP3 converter (online)

Came accross this amazing URL "http://www.listentoyoutube.com/" Just input any youtube URL and download its mp3 version

Resolution change manually on Ubuntu 10.04

Show current setting $ xrandr -q Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1024x768 60.0* 800x600 60.3 56.2 848x480 60.0 640x480 59.9 Get new mode line with new resolution $ cvt 1280 1024 60 # 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync Create a new mode for new resolution $ sudo xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync Add the new mode $ sudo xrandr --addmode VGA1 "1280x1024_60.00" Check if new mode exist? $ xrandr -q Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1024x768 60.0* 800x600 60.3 56.2 848x480