Today I present to you a PHP puzzler that in fact had me stumped for a day or two. I do enjoy when a language throws a curve ball; it presents an opportunity to gain insight on the mechanics and become acquainted with the nuances of the language in question.… Read the rest
So I spent the afternoon of this glorious summer day outside in my backyard, relaxing on a towel beneath the blue skies, basking in the sun, exercising, tanning. Birds chirping, bugs buzzing, a gentle breeze wafting the trees – Life is good, yeah.… Read the rest
Java 7 is now officially available as of July 28th 2011. The intent of this blog entry is to introduce the new language features. For further details, consult the Java 7 SDK.
Underscores in Numeric Literals
Strings in Switch Statements
Type Inference for Generic Instance Creation
Improved Exception Handling
Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods
[Official Docs] Long awaited, Java now allows for integral literals (byte, short, int, and long) to be expressed in binary.… Read the rest
Inspired by a thread on Facebook to which I contributed, a few words concerning readable code vs compact code.
When writing applications, a common scenario involves setting a variable from some external source. What immediately ensues is a check to ensure that our variable has some meaningful value.… Read the rest
James Bond: Carte Blanche
Bond… James Bond. He’s back; his Walther PPK is cocked, the mission has already been accepted – For England James!… Read the rest
Original article from http://planetjon.ca/2011/07/12/website-slideshow-made-easy-with-jquery/
I just wanted to share this gem that I stumbled upon. If you’re looking to add a slideshow or image slider to your website, this Cycle plugin built on jQuery is a really painless way of going about it.… Read the rest
Taken from my reply to a post regarding the topic on Facebook, a few words introducing key guidelines I follow when commenting my code.
Regarding classes, I like to provide a class summary stating the intent and purpose. Accessors, Mutators, Constructors – I don’t feel the need to comment them as their roles are (and should be) rather self-explanatory.… Read the rest
Original article by Ellis Hamburger @ http://www.businessinsider.com
The FBI raided homes across the states of Florida, New Jersey, New York, and California this morning in pursuit of members of the cyber-activist group Anonymous.
Sixteen suspects were arrested and countless computers were seized by the FBI, Fox News reports.… Read the rest
One of PHP’s less known language constructs is list(), very useful for unpacking indexed arrays. Consider the following simple example denoting its usage:
//populate an array with values
$record= array('me', '1.800.123.4567', 'email@example.com');
//unpack the array into variables, skipping the phone number
list($name, , $email) = $record;
//print the output
echo("name: $name; email: $email");
This clean, readable, scalable approach is great for processing data records, unpacking an SQL result row, etc.… Read the rest
I just wanted to share this gem that I stumbled upon. If you’re looking to add a slideshow or image slider to your website, this Cycle plugin built on jQuery is a really painless way of going about it.
Oh jQuery, you brilliantly dazzling library.… Read the rest
From a spam-bot late last night:
What a great web log. I spend hours on the net reading blogs, about tons of various subjects. I have to first of all give praise to whoever created your theme and second of all to you for writing what i can only describe as an fabulous article.… Read the rest