Category Archives: Development

Anything related to Programming and Program Development. Shaping our latest technologies.

MySQL Current Configuration File

WP-Config Disable Cron

define(‘DISABLE_WP_CRON’, true); //Disable page load cron

WordPress › Support » How to disable wp_cron via page loads and run it manually instead?.

Installing Python MySQLDB on Windows Errors

Well after trying to recompile the entire library, i came across this link.

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

A plethora of precompile python libraries.  What a great resource.

Up until i found the precompiled libraries i came across a plethora of errors trying to compile MySQLdb.  Errors I’ve gotten:

File setup_windows.py line 7, in get_config serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options[‘registry_key’])

error: Unable to find vcvarsall.bat

 

Hope this helps you as much as it did me.

Password protecting nginx

Create a Username/Password which will be stored in ‘useraccess’, a file I just made up.

htpasswd -b -c useraccess username password

Now in the nginx config, under:

auth_basic "Message box title of password prompt";
auth_basic_user_file /path/to/useraccess;

Free Cloud Hosting for a year? Sign me up!

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=amazon+free+tier

WordPress-Smart 404 Plugin

A great tool for not showing 404 pages on your wordpress website.  I’ve used this for a couple years now.  I just recently discovered that if you type in a url with a keyword that cannot be found in your posts or pages, this plugin will show a 404 page.  The whole point of this plugin is to be smart right?  Well as a fix for now I’ve just made it default to your lastest post if it cannot find the keywords in the uri.  Fix can be found @ Pastebin: http://pastebin.com/1qb4h11V

Speeding up Windows Vista file transfers over the network.

Speed up Windows Vista File Transfers over the NetworkVista performs very fast on advanced networking environment, but introduced too much overhead in normal home office environment, you just need to disable some settings to reduce the overhead, all is done in 2 simple steps.

Unless you equipped with advanced PC and networking devices, your can expect performance dropped by 20~50% during files transfer as compare to XP, so lets’ find the reasons and solve the problems now:

  • 1. Remote Differential Compression – This protocol calculates, compress and only transfer files with updated version, hence files synchronization works extremely well on lower bandwidth networking, but slows down normal networking with extra overheads in compression. Using a faster processor can improve Remote Differential Compression as Vista trade processing power over networking bandwidth by compressing the data before transferring it. You should always disable this features on older and slower computer, because you have more bandwidth than processing power!
  • 2. TCP Auto Tuning Features – This feature maximize your gigabit networking by automatic and constantly adjusting itself to adapt to the maximum bandwidth available by your hardware; It performs very well on high bandwidth environment, but not very good on low bandwidth networking due to extra overheads of detection, and also went bad when using unsupported hardware such as firewall or routers.
    You can disable these features and speed up Vista network file transfers  20% to 30%. Just remember to enable them if you upgrade your computer or networking in the future.

To disable Remote Differential Compression, go to Control Panel -> Programs -> Turn Windows Features On or Off, uncheck Remote Differential Compression and then press OK button.

To disable TCP Auto tuning, open run by holding  the Windows key and pressing R.  Then type CMD. exe then hold Ctrl & Shift while pressing Enter to run as Administrator. At the command prompt type netsh interface tcp set global autotuning=disabled  …  Tada!  Now type exit to return to Windows.

If you’re unsure whether or not autotuning is already disabled, use command: netsh interface tcp show global at command prompt.

Autotuning Disabled

Autotuning Enabled

 

 

 

 

 

If you decided to turn on this feature after upgraded your hardware, do the same but type netsh interface tcp set global autotuning=normal to turn on the TCP auto tuning feature.

You can try to send some files now, you should notice more improvement on your file transmission, your file is send across network or disk much faster!