Installing PyDev on Aptana

May 26th, 2009

Installing pydev on aptana studio

1) goto help->software updates-> find and install

2) add a new remote site

3) put in “http://pydev.sourceforge.net/updates”

4) install pydev

5) after installation goto window->preferences

6) then navigate to pydev->interpreter - pydev

7) add in the new python location -> library->frameworks->python.framework->versions->2.6->bin->python

8) <important> highlight the newly added component on the top window then click okay. <gives you an error if you dun highlight it.

9) start pythoning

玄吾 Programming

Enabling extensions on IIS6

May 26th, 2009

I was trying to enable an extension (xml-rpc) on iis6 with php, but i didnt want to restart iis. The steps is to

  1. create a php file in your root folder or subfolder with a php code “phpinfo();”
  2. navigate to that page and search for the extension you want.
  3. locate the php.ini file on your server (check the phpinfo to get hints on where this is)
  4. now enable the extension by removing the semi colon.
  5. go to iis6 manager on your server
  6. right click on default application pool
  7. and select recycle.
  8. check your phpinfo file again and the extension should be loaded

good luck

玄吾 Programming

Opening NTF volumes on Mac

May 23rd, 2009

apparently microsoft has their file systems (ntfs) as closed sourced and proprietary. To access the hdd which are formatted as ntfs on a mac, you would need the following. installation should be easy enough. drop a comment if you are stuck.

Look at this. http://www.ntfs-3g.org/

玄吾 OS DIY

Setting up an ubuntu cluster

May 23rd, 2009

Reusing old pcs to make a super computer? read this.

I havent tried it out myself but apparently 2 easy ways of doing it are as follows.

Either use the kerrighed way or download the new ubuntu  9.04 enterprise. I will be trying it out the next few weeks and will let everyone know on whats happening.

https://wiki.ubuntu.com/EasyUbuntuClustering/UbuntuKerrighedClusterGuide

or goto ubuntu website and download the ec2 enterprise edition.

:: why make things even complicated when our brains are not growing any bigger. ::

玄吾 Hardware

Macbook 2009 Hissing Noise

May 11th, 2009

apple-macbookRecently (April 2009) after getting a new macbook, i realised that under the “W” key, there is a static hissing noise. I had several conversations with apple support and then had the book checked at apple store at regent street. Apparently the sound is a very slight noise, and without a good hearing and a slient environment, its very hard to detect it. I had it replaced and still the same thing happened, and I have noticed that previous versions also had this problem. In many discussion and forums, this problem is caused by a “sleeping” second processor. You can “fix” this by installing QuietMBP and dragging the bar. So its not a problem as far as I can see. Its just irritating for those with sensative hearing.

玄吾 Hardware

Modern Gu Zheng

April 21st, 2009

Quite interesting.

常静 - 完美

玄吾 Entertainment

Words of Wisdom 不字真言

April 12th, 2009

不要临时抱佛脚

不怕迟到, 只怕不到

不怕做的慢, 只怕没有动

不要后悔, 不要怕 - 庄子

玄吾 Philosophy

Server Admins Guide to Websites

April 7th, 2009

Before you start with .htaccess

If you don’t have a .htaccess file in your directory just create a simple textfile with the name .htaccess, remember to save the .htaccess file with a . dot. In Windows Notepad save as “.htaccess” (with quotes in the save dialog).

Lines starting with # indicates a comment and will note be parsed.

Prevent downloading of your SQLite database

If you place your SQLite database in a public www directory it could be downloaded by a visitor. See the SQLite quick tips for creating a SQLite database in a safer way. Add or remove file extension if needed. Place the following code in your .htaccess file.

# Deny sqlite file access. File extensions in parentheses
<FilesMatch “\.(sqlite|sqlite2|sqlite3|sq|sq2|sq3)$”>
Deny from all
</FilesMatch>

Custom error pages, “404 page not found”…

If you want to set your own error page for “404 page not found” and for other HTTP status codes you can do that easily in a .htaccess file.

ErrorDocument 404 /yourOwn404Page.html

Just replace the “404″ with the the code you need and the file that should be shown.

Disable directory browsing

If you have an image directory that shows all your files when accessing it, you can disable this by placing an .htaccess file with the following code (notice the minus sign)

# - (minus) disable browsing. + (plus) enable browsing
Options -Indexes

If you place a plus sign in front of Indexes it will list your files again. A simpler variant is just to place an index.html file in that directory, it will do the same thing. You decide :-)

Change default index page

Want to have another index page than the regular index.html, index.php page? Change the myStartPage.html in the following code and then add all other index pages you need. If myStartPage.html is not found it will try index.html and then index.php (and so on).

# reading left to right
DirectoryIndex myStartPage.html index.html index.php

ref:

Shamelessly quoted from

http://www.litewebsite.com/?k=tips

there are loads of other tips. so please visit them :D Good luck and well done for the good site

玄吾 Programming

Al Gore - An Inconvenient Truth

April 4th, 2009

If you can, I recommend viewing this. The world is changing faster than we can imagine. What can we do to change it or help our future generations enjoy the our world, not suffer the consequences of our faults.

http://www.climatecrisis.net/

玄吾 Environment

Mac OS X - Viewing invisible / hidden files on desktop

April 2nd, 2009

By default, you can’t see many system files, dot files and folders in Finder.

To see,

  • Open the Terminal App,
  • Go to Applications - Utilities
  • Enter in “defaults write com.apple.Finder AppleShowAllFiles YES”
  • Restart the Finder App, press option + alt + esc
  • Select Finder and Press Force Quit

To hide again, Enter in “defaults write com.apple.Finder AppleShowAllFiles NO”

玄吾 OS DIY

Easy AdSense by Unreal