iA


Programming

CrapCode of the Day – JavaScript Edition
This what I found after looking at the source code of a retarded online banking website, Oh yeah they have blocked the right-click so I couldn’t see the code. if ('BalanceMain' == id) { document.getElementById('BALANCE').style.color = "#ff6600"; document.getElementById('BALANCE').style.textDecoration = 'underline'; } else { document.getElementById('BALANCE').style.color = "#5d6063"; document.getElementById('BALANCE').style.textDecoration = 'none'; } if (id == 'HomeFileUpload') { [...] Read more – ‘CrapCode of the Day – JavaScript Edition’.
→ Measurement
On the same subject of Measuring: Software organizations tend to reward programmers who (a) write lots of code and (b) fix lots of bugs. The best way to get ahead in an organization like this is to check in lots of buggy code and fix it all, rather than taking the extra time to get [...] Read more – ‘→ Measurement’.
The Mismeasure of Man
Astonishing as it may seem, some developers like to commit changes to their version control system frequently to create the impression that they are hard at work. This only works if you are managed by the technically incompetent. In other words, it works more frequently than you would like. - The Mismeasure of a man, [...] Read more – ‘The Mismeasure of Man’.
Google Maps Plugin for Hippo CMS
Almost done – will soon be on forge. Read more – ‘Google Maps Plugin for Hippo CMS’.
ERROR: column notation .id applied to type name, which is not a composite type
Note to Self: If you are using PostgreSQL with Hibernate and got this error, make sure that the entity names are not in the PostgreSQL’s reserved keywords. So the table name(or the Entity name) “User” is going to give the error in the title! Read more – ‘ERROR: column notation .id applied to type name, which is not a composite type’.
Hippo CMS Image Browser Update
The next tag/version of Hippo CMS will have an updated image browser. The images can now be displayed both as List or a Thumbnail Grid, see the screenshots below. The Grid View is implemented using simple css and ul tags. Here’s an example of the HTML/CSS that is used to convert a ul with images [...] Read more – ‘Hippo CMS Image Browser Update’.
→ Why the iPhone Simulator is Awesome
The iPhone simulator’s method seems magically wonderful. Since the iPhone OS is MacOS, all the kernel APIs are the same. The natively-compiled frameworks, libraries, and display engine are built from the same source code, so you know they’re the same too. And your Mac’s CPU is a lot faster than the iPhone’s CPU, so the [...] Read more – ‘→ Why the iPhone Simulator is Awesome’.
→ Object Oriented CSS
Code re-use in CSS almost non-existent. File size in CSS just keeps getting bigger as we continue to modify it. CSS code is often too fragile. It can get ruined by the first person to touch it. via LukeW | An Event Apart: Object Oriented CSS. Read more – ‘→ Object Oriented CSS’.
Update: Easy Forms 2.0 for CMS 7.3
A quick update on Easy  Forms plugin for Hippo CMS – it is now updated and compatible with latest Hippo CMS Release 7.3. The 2.0 version artifacts are now available in the forge maven repository. I’ll provide the details on how to configure and create the Easy Forms in a following post, though it is [...] Read more – ‘Update: Easy Forms 2.0 for CMS 7.3’.
Common Lisp vs Java
I’ve been sort of wanting to learn LISP for long time (~ 10 years). Now finally I got some chance to try that out. I’ve started reading On Lisp by Paul Graham along with Practical Common Lisp by Peter Seibel. I find them pretty invaluable in learning Lisp. It has been nearly 9 years since I’ve [...] Read more – ‘Common Lisp vs Java’.