Monthly Archives: January 2008

Vim Goodies for C Programmers

I am doing a lot of C programming this semester, including my own UNIX-inspired OS kernel. I’ve decided to make the move to VIM from emacs and it’s one that no one will regret. Although Vim has an incredible learning curve, the time spent early is fully compensated several times over if you do a […]

C strncpy and fgets

strncpy and fgets are the more secure substitutes to strcpy and gets, respectively. The less secure versions are prone to buffer overflows, especially the notorious gets. Both functions fill a pre-allocated memory for strings while reading at most a specified number of characters. However, the ways these functions treat the source and destination are slightly […]

The Rundown on JSON

JSON is a happy, lightweight data-interchange format similar to XML. It’s often used in AJAX applications and is commonly offered as a response type (e.g. Yahoo, Google, Twitter). JSON is based on a subset of the JavaScript language but its syntax is similar to those of C-based languages, so it’s considered a “language-independent” format although […]

A WordPress twitter widget and a…

new semester. I’m looking forward to working with my partner on our kernel as well as learning something about computer graphics while you, on the other hand, should be looking forward to posts on these topics! Also, WordPress has accepted my plugin today so here it is, the elegant twitter widget, also available on this […]

Parsing RSS 2.0 with PHP

Many websites offer RSS feeds, including many social ones such as ma.gnolia and twitter. Sometimes, accessing the API is not necessary if you are just grabbing the latest bookmarks or the most recent update. You can use PHP to parse the RSS feeds for use in your applications.