Making Vista faster

March 19, 2009

Some handy tips on improving Vista’s performance. Get rid of bloat.

http://www.techsupportalert.com/make-vista-run-faster.htm


Starting JavaDB for Sun Portal Server

November 20, 2008

Starting/stopping JavaDB:

/usr/jdk/entsys-j2se/bin/java -classpath /opt/SUNWjavadb/lib/derby.jar:/opt/SUNWjavadb/lib/derbytools.jar:/opt/SUNWjavadb/lib/derbynet.jar -Dderby.system.home=/var/opt/SUNWportal/derby org.apache.derby.drda.NetworkServerControl <start|shutdown>

The process will be connected to the terminal from which it was started. To leave it running in the background, use the nohup command.

References: http://docs.sun.com/app/docs/doc/819-5025/6n74td5jt?a=view


Adding new disk to Solaris 10 on VMWare

November 19, 2008

A wonderful and thorough guide on adding new disks to Solaris 10 on VMWare:

http://blogs.sun.com/harcey/entry/solaris_x86_vmware_adding_a


Adding swap space in Solaris

November 19, 2008

When desperate for more swap space in Solaris, this will add more swap space temporarily until the next reboot:

mkfile 512m /path/to/new/swap/file

swap -a /path/to/new/swap/file

Verify the new swap space:

swap -l

References: http://www.tech-recipes.com/rx/163/add-swap-space-temporarily-in-solaris/


Changing Solaris host name and domain name

November 19, 2008

References: http://pantsblazing.com/geek/get_solaris_online.html

In addition, edit /etc/defaultdomain

After the above is done, restart network services: svcadm restart network/physical


ufsdump and ufsrestore

November 4, 2008
  • ufsdump 0f /path/to/mydumpfile /export/home/mystuffs-to-be-backup/
  • ufsrestore fr mydumpfile  (this will dump the contents in the current working directory)

Optimal HTML width: 960 pixels

October 7, 2008

Assuming a screen resolution of 1024px, what should be the optimal HTML page width?

Cameron Moll shares an interesting concept: a 960-pixel page width. One of the reasons is due to 960 being divisible by 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48, 60, 64, 80, 96, 120, 160, 192, 240, 320, 480, and 960. It sure offers a lot of grid possibilities. :)


Small little icons

September 18, 2008

   

Needing small little utility icons for your applications? Find them all here at: http://www.famfamfam.com/lab/icons/silk/: Seven hundred 16-by-16 pixel icons to tickle your fancy. :)


Develop a full application using CakePHP

August 29, 2008

James Fairhurst has come up with an excellent series of postings on how to build a full application using CakePHP. It is a wonderful tutorial for newbies who are starting on CakePHP. Thanks James!

Follow the whole series here: http://www.jamesfairhurst.co.uk/tags/view/cakephp/


Inserting Unicode into MySQL

August 26, 2008

If Unicodes end up as funny characters after inserting into MySQL, then try executing SET NAMES ‘utf8′ immediately after obtaining a DB connection. For example:

$link = mysql_connect(‘localhost’,'myuser’,'mypassword’);
mysql_query(“SET NAMES ‘utf8′”);
mysql_select_db(‘mydb’);

References: http://www.adviesenzo.nl/examples/php_mysql_charset_fix/