TIL #05: Mike and Ike Candies are Delicious
More specifically, bloginfo(‘url’) outputs header information so you can’t use it with header() to hook into ‘init’.
Use get_bloginfo(‘url’) or get_home_url and output it in header() instead.
And it’s not dirty.
Sexagismal: base 60 counting system. Yes there are 60 characters to represent numbers.
z-index doesn’t get rendered right in ie6 and 7. You have to set the parent’s z-index to be higher than the actual element you are targeting. Weird. Oh and the parent has to be a block element or it’s a no go. http://brenelz.com/blog/squish-the-internet-explorer-z-index-bug/
TIL that in Wordpress, under General > Reading: setting a static home page will follow the template you gave it (Template Name: Home Page). Setting a page of posts will not follow any template. It will only follow the index.php template.
The mantra of all web designers and developers is content is king.
Your design should work with your content, not the other way around.
The technology serves content, not the other way around.
Do not code your theme to rely on predefined categories. Forcing your users to classify content in order for your theme to work is wrong. Never touch your users’ content.
Do not hardcode the amount of posts to show on a template page. Users should determine how much content to show.
Do not force your users to follow a permalink structure. If your theme requires a certain permalink structure to work, you risk creating 404 errors for urls that already exist.
Hands off the content!
joethinks-deactivated20110908 asked: Topic: historical good-guy figures
Question: which one would you pick to get into a fist fight with?
Newton. Biggest nerd in the world, what a guy! People ask him “so if there’s this maaaagical force called ‘gravity’, and planets circle a sun with this thing called ‘gravity’, why do they circle in ellipses huh? Why not circles huh? Let’s see your ‘gravity’ explain that!” and he responds by saying “lolz yeah I proved it using this new math I invented. I call it calculus.” Dead geek.
Take five minutes to roll into work, reply to IM’s and emails. Check Reddit. Sprint through twenty-five minutes of hardcore coding. Do not talk to anybody at this time. Get off Reddit. At the end of this sprint, document what you coded. You have completed one Pomodoro.
After three to four pomodoros, edit your documentation. Enjoy a long ass fifteen minute break, possibly on Reddit.