Christoffer Lejdborg |
This is the blog of CodeSlam founder and professional web developer Christoffer Lejdborg. |
[[UIApplication sharedApplication] setStatusBarHidden:YES];
__import__(“my_module/my_submodule”)
is equal to
import my_module/my_submodule
and
__import__(“my_module”, {}, {}, [“my_submodule”])
is equal to
from my_module import my_submodule
Die IE6! (Image by RobotJohnny.com)
An ENUM is basically a boolean with more than two values, and the values can be whatever you want. A very good test case is gender…
You shouldn’t want to set either of male or female to true, even though I’ve heard about a teacher preaching that “women are false by nature”.
With an ENUM you can represent the genders more gracefully with the values ‘male’, ‘female’ and ‘both’.
A select statement might then look something like this:
SELECT * FROM persons WHERE gender = ‘male’;
Why would anyone want to run a Linux system that looks exactly like Windows XP?
Brilliant solution for keeping control of your cables, via curled & feathered.