-
Archives
- January 2012
- December 2011
- September 2011
- August 2011
- June 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- January 2009
- November 2008
- September 2008
- August 2008
- July 2008
- March 2008
- February 2008
- January 2008
-
Meta
Category Archives: Programming
Javascript Show Caller Function
arguments.callee.caller.toString()
Add custom directory to Python module search path
Ubuntu: Add .pth file to /usr/local/lib/python2.6/dist-packages/ /usr/local/lib/python2.6/dist-packages/workarea.python.modules.pth .pth file contains the path to your modules /home/raymond/workarea/python/modules Modifying Python’s Search Path
How to use .htaccess to change default index page
DirectoryIndex alternative-default-home-page.php
How to create reverse traceroute page on your website using PHP
<?php $result = exec(‘traceroute ‘ . $_SERVER["REMOTE_ADDR"], $lines); echo ‘<h1>Your IP is ‘ . $_SERVER["REMOTE_ADDR"] . ‘</h1>’; echo ‘<pre>’; foreach ($lines as $n => $line) { if ($n) echo ‘<br />’; echo $line; } echo ‘</pre>’; echo ‘<p>-end-</p>’; Here’s how … Continue reading
Posted in Linux Administration, PHP, Programming
Tagged PHP, reverse traceroute, traceroute
Leave a comment
How to Create Database and Add User To It
Here are the SQL commands: create database newdb; grant CREATE,INSERT,DELETE,UPDATE,SELECT on newdb.* to newuser@localhost; SET PASSWORD FOR ‘newuser’@'localhost’ = password(‘newuserpass’); – or – SET PASSWORD FOR ‘newuser’@'localhost’ = old_password(‘newuserpass’); flush privileges;
How to remove .svn folder
Windows: Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd). After that issue the command, eg., C:\www>cleansvn for /f “tokens=* delims=” %%i in (‘dir /s /b /a:d *svn’) do ( rd /s /q … Continue reading
Tired of entering you svn password everytime?
I have set up svn repositories on dedicated Linux server of my clients but the constant typing of svn password everytime I access the repository makes life for a developer less livable. Until I found the solution… So here it … Continue reading