Rojakcoder
Of Linux, Programming, and Singaporean Ramblings

CSS Best Practices

Thu, Mar 11, 2010

As mentioned before in earlier posts, I’m involved in a Web application development project. Recently I had to do some testing on the Web application (although it’s barely beta ready, but that’s a different story). During the testing process, I’ve got to see for myself the implications of not incorporating scalability designs early on into the code.

This post will take a simplistic approach to look at why load times can be improved by consolidating CSS files. At the same time, I will also take a look at naming CSS selectors as the approach to consolidating CSS. By taking a consistent approach to naming CSS selectors and organising the selectors in a structured manner in CSS files, we can minimise the number of CSS files.

Read more

Accidentally Locking Up Screen

Sun, Jan 24, 2010

Anyone who uses GNU Screen frequently will one day press Ctl-A s (lower-case s) whether purposefully or accidentally. It would seem that there is no way to unlock the screen. Actually, the solution is to press Ctl-A q (lower-case q). You will then be prompted to enter the user’s password to resume using Screen.

Tags: programming

Google Apps Provisioning API Version 2

Wed, Dec 2, 2009

Google Apps Provisioning API is a set of API that allows other programs to access stored on Google’s servers. This is done via the Atom Publishing Protocol and HTTP requests (what the industry terms general as a RESTful interface).

The set of data that Google exposes via the Provisioning API include the user accounts and groups and other related data.

Google has improved its groups mechanism not too long ago. With this came improvements to other Google properties such as Google Docs where sharing documents with groups is possible. Previously, this was not available because the original concept of a group in Google Apps is nothing more than an email list where emailing to the “group” allowed users in the “group” to receive the email as well. But this was all that version 1 of “groups” (technically known as an email list) could do.

Read more

JSON Object With Trailing Comma

Sat, Nov 14, 2009

As any respectable JavaScript developer will know, JSON has become the de facto method of holding objects and passing arguments, even using it as a name-spacing mechanism.

Being the conscientious (and careless) programmer that I am, in my e-learning application that I’m developing at the moment, where I’m heavily using JSON, I made a conscious choice to always leave a comma at the end of the last member-value pair like so:

Read more

Nice Guide to Google Wave

Mon, Oct 12, 2009
Complete Guide Google WAVE Original Link: [http://www.docstoc.com/docs/12448173/A-Complete-Guide-Google-WAVE](http://www.docstoc.com/docs/12448173/A-Complete-Guide-Google-WAVE) HUGOMORE42
Tags: programming
Page 2 of 3