Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/public/wp-includes/plugin.php on line 571

Archive for Programming

Static Compile GLFW and GLEW

// August 31st, 2011 // 2 Comments » // C, OpenGL

I need to compile and statically linked GLFW and GLEW into my OpenGL application but apparently it’s not as easy as I thought it was.

Detecting Search Engines Bot & Web Spiders

// May 1st, 2011 // Comments Off on Detecting Search Engines Bot & Web Spiders // PHP

Many websites implement their own visitors log database and some data in it are junk because of the web spiders and bots that are checking on the site.

Force Refresh SimplePie Cache on WordPress

// April 12th, 2011 // 2 Comments » // PHP

WordPress 3.1 uses SimplePie for its Feed fetcher and by default set the cache lifetime to 12 hours. The issue is that regardless of cache lifetime span I would like to be able to force refresh the cache. This journal shows you on how to do that.

Fetch RSS Feed like Twitter & Google Reader from WordPress

// April 5th, 2011 // 2 Comments » // PHP

I know there are lots of WordPress plugin to fetch tweets & Google Reader entries, but for this one I decided to implement it directly on the Wordpress framework for this website.

Bubble Sort in Csh/Tcsh

// March 17th, 2011 // No Comments » // Shell

I never go deep into tcsh until few weeks ago. This my attempt to get my feet wet by implementing Bubble sort in tcsh.

MacVim as IDE with Code Completion and Syntax Highlighting for Python, PyQt4 and Twisted Development on Mac OSX Snow Leopard

// March 16th, 2011 // 2 Comments » // OS X, PyQT4, Python, Vim

My journal on how to setup MacVim on OSX Snow Leopard as primary IDE for developing Python along with PyQt4 and Twisted framework. At the end of it MacVim will supports Python code completion/auto complete (similar to intellisense) and syntax highlighting.

Setting up Python, PyQt4 and Twisted on OSX 10.6 Snow Leopard

// March 11th, 2011 // 5 Comments » // OS X, PyQT4, Python

How to put together Python development environment on OSX Snow Leopard. Some libraries that I use frequently such as PyQt4 and Twisted will also be installed, coexist with the default shipped Python.