May 2011
65 posts
Observations: Will 10 Billion People Use Up the... →
The human enterprise now consumes nearly 60 billion metric tons of minerals, ores, fossil fuels and plant materials, such as crop plants and trees for timber or paper. Meanwhile, the seven billionth person on the planet is expected to be born this year—and the human population may reach 10 billion by this century’s end, according to the latest United Nations analysis. Hundreds of...
Programmatically Create Nodes, Comments and... →
Programmatically create a node: Initialize a node object Add body field Add custom fields Add file / image field Add a term to a node Save a node
Programmatically create a comment
Programmatically create a term
Make a ‘View Source’ Button →
Sometimes the default ‘view source’ way of viewing the code on a website is too complicated. Yeah, it’s only a few button clicks away, but when you view the code it opens up in another browser window and it is usually kind of difficult to navigate. Well, thanks to Chris Coyier from CSS-Tricks.com we have just been given an easier way for our users to be able to view the source code from our...
Comparison of JavaScript Syntax Highlighters →
Syntax Highlighter by Alex Gorbachev, used on MDN and others.
SHJS — a library built to be compatible with GNU source-highlight language definitions.
Google Code Prettify — a highlighter used on Google Code and Stack Overflow.
and finally highlight.js originally written by Маниакальный веблог , used on a popular Russian tech site Habrahabr.ru and others.
JavaScript - Everything Acts Like An Object Except... →
JavaScript Garden
Object Usage and Properties
Everything in JavaScript acts like an object, with the only two exceptions being null and undefined.
read more
JavaScript Garden →
Object Usage and Properties
Everything in JavaScript acts like an object, with the only two exceptions being null and undefined.
false.toString() // 'false'
[1, 2, 3].toString(); // '1,2,3'
function Foo(){}
Foo.bar = 1;
Foo.bar; // 1
A common misconception is that number literals cannot be used as objects. That is because a flaw in JavaScript’s parser tries to parse the dot notation...
The Gossip Machine, Churning Out Cash -... →
Ever wonder how the celebrity gossip sausage gets made? It’s not like “the-world-must-know” trolls abound over the planet, some of them are making money, lots of money, to feed the rumor-mill. NY Times attempts an explanation, with a perfect example, Michael Lohan:
An associate of Mr. Lohan’s ran through the plan: ignite a bidding war between TMZ and its rival Web site Radar...
20 Useful CSS3 and HTML5 Frameworks, Tools and... →
HTML5 Boilerplate
52framework – Supports almost anything
G5 Framework – Good tools collection
Perkins – Lighweight and LESS
Sprites.js – Animation framework (HTML5 support, of course)
Lime.js – Gaming framework
HTML5 multimedia framework for WordPress
Modernizr – HTML5 & CSS3 with fallbacks
Select[ivizr] – CSS3 Selectors for IE
CSS3 button framework
Templates – General HTML5 and...
Anonymous asked: How did you show the YouTube video from within a TV gif?
Computing pioneer Jean Jennings Bartik dies -... →
Customizing Tumblr →
Now that Tumblr is rolling out a way to reply to posts, they posted a short tutorial on how to get going. I have not written a theme for Tumblr (*yet*), but when I do, I will definitely refer to this handy guide. Especially starting here with:
An example of the complete markup for a theme:
<html>
<head>
<title>{Title}</title>
<link rel="shortcut...
Anonymous asked: You're a Southern Californian. What is it about the Bay Area that can keep you away?
4 tags
Managing Cron Jobs With PHP →
Let’s face it, having the ability to schedule tasks to run in the background is just great! From backing up an SQL database, fetching / sending emails to running clean up tasks, analyzing performance, or even grabbing RSS feeds, cron jobs are fantastic!
Although the syntax of scheduling a new job may seem daunting at first glance, it’s actually relatively simple to understand once you break...
Bodies have their own light which they consume to live: they burn, they are not...
– Egon Schiele (via yama-bato; frenchtwist)
Jane Austen’s Unfinished Manuscript To Go On... →
The Watsons manuscript shows how Austen’s other manuscripts must have looked. It also shines an interesting light on how she worked. Austen took a piece of paper, cut it in two and then folded over each half to make eight-page booklets. Then she would write, small neat handwriting leaving little room for corrections – of which there are many. “You can really see the mind at work...
Atheists Offer Pet Rescue For Judgment Day This... →
THE GIST
A group of atheists has set up a pet rescue for animals of Christians planning for Judgment Day.
For a fee, the rescuers will locate and shelter a pet following the Rapture.
One fundamentalist group predicts it will take place May 21, but the rescuers offer 10-year contracts.
Developing for Android and Windows Phone 7 →
There are a ton of technical meetups in San Francisco. Even when I cannot make them, I find out later that they posted videos of their presentations. There are several at marakana.com. Enjoy.
How Trust Enchants →
Kawasaki gives this advice for achieving trustworthiness: Be a mensch. Turns out being a mensch means a bit more than being sweet. Drawing from Bruna Martinuzzi’s book The Leader as a Mensch: Become the Kind of Person Others Want to Follow, our enchanting author gives us these guidelines to menschdom:
Always act with honesty.
Treat people who have wronged you with civility.
Fulfill your unkept...
HTML 5 and Drupal →
Jen Simmons gives more information about HTML5 and highlights from herRockin’ HTML5 with Drupal presentation at DrupalCon Chicago. She talks a bit about the HTML Tools module, which works with the Elements module, as well as the HTML5 Base theme. Simmons also talks about some of the plans for HTML5 in Drupal 8 as well as the larger trend of websites moving more towards creating...
Why Google's Hiring Process Is Broken →
Which kind of people does this process get you?
If you guessed mathematicians and back-end programmers, you’re probably right! And this might be what Google is mostly in need of: smart people to build very fast algorithms for very complicated cases.
But is this what will help Google succeed in the markets they are trying to penetrate? Read the list of failures I listed above. Those failures...
The Higher Education (Debt) Bubble →
The Project On Student Debt estimates that the average college senior in 2009 graduated with $24,000 in outstanding loans. Last August, student loans surpassed credit cards as the nation’s single largest source of debt, edging ever closer to $1 trillion. Yet for all the moralizing about American consumer debt by both parties, no one dares call higher education a bad investment. The nearly...
How May Hours of Sleep Do You Actually Need? →
Eight Hours. Period. It’s not hooey.
Sleeping even seven hours a night will slowly add up to a costly sleep debt
Those who slept eight or nine hours didn’t show any signs of slowing down when tested, but the four and six hour groups were found to be impaired to the point of being “the cognitive equivalent of being legally drunk” at the end of the two-week period.
...
What Living In SF Means.... →
My version:
Hearing Your Neighbors - We’re packed together in the bonds of no-space and hippie love. Not hearing other people by wearing outside noise blocking ear-buds that drown out the sounds of drugged-out buskers milling about at every 20 feet.
Not knowing what gender or orientation someone is and being attracted anyway/not caring.
Moving to SOMA and being the one...
Iraq Blossoms Into A Bouquet of Tacky →
BAGHDAD — In downtown Baghdad, a police headquarters has been painted two shades of purple: lilac and grape. The central bank, a staid building in many countries, is coated in bright red candy cane stripes.
Notes from Afghanistan, Pakistan, Iraq and other areas of conflict in the post-9/11 era. Go to the Blog »
Multimedia
Slide Show
A Newly Pastel Capital
Enlarge This Image
Ayman Oghanna...
Bridesmaids Exceeds (Cynical) Expectations →
This weekend,Bridesmaids made at least $24 million, well beyond the expectations of Hollywood prognosticators. The critics loved it; word of mouth is good-to-excellent. Is Hollywood going to get a clue?
San Francisco is a great city to raise children, but I was very happy to leave...
– Danielle Steele
Of course, she owns 6,000 pairs of Christian Louboutins.
First Listen: Danger Mouse And Daniele Luppi,... →
The long-anticipated brainchild of producer-composer Danger Mouse and Italian composer Daniele Luppi, Rome benefits from a bit of context. More than five years in the making, the project assembles many of the surviving performers of classic ’60s and ’70s Ennio Morricone scores — and, in half a dozen memorable cases, pairs them up with the vocals of Norah Jones or The White...
While I object to the cynical explosion of pink on everything promoting this, (I hate you marketing people), I think this is actually going to be a good film. It did better than cast bobble-head actress/model/whatevers by getting some decent comediennes (is that sexist?) to play what look like refreshingly realistic roles. Can I just point out that they might be deflating the agenda that every...
Bin Laden Had A Huge Porn Stash →
(Reuters) - A stash of pornography was found in the hideout of Osama bin Laden by the U.S. commandos who killed him, current and former U.S. officials said on Friday.
The pornography recovered in bin Laden’s compound in Abbottabad,Pakistan, consists of modern, electronically recorded video and is fairly extensive, according to the officials, who discussed the discovery with Reuters on...
Gaga As "Librarian of Glam Culture" →
If there’s one thing Lady Gaga knows a lot about, it’s pop culture. In her first column for V Magazine, the 25-year-old New Yorker says she’s been keeping tabs on the world around her since she was an aspiring singer in a roach-infested apartment
Socialite Plugin For Firefox →
an official reddit extension for Firefox. Socialite provides a souped-up version of the reddit toolbar, making it easy to vote on and save pages you find via reddit.
Google Teaches Programmers to Play Well With... →
soooo...for MyChanel - Polyvore →
Impeccable. I love graphic, structural, minimalist nods to 60s glam. Gorgeous.
If I read a book and it makes my whole body so cold no fire ever can warm me, I...
– Emily Dickinson sets the bar high, in a letter to Thomas Higginson. See Thomas H. Johnson (Ed.), The Letters of Emily Dickinson, for more. (via itgivesitthew)
40 literary terms you should know
Aphorism
Apostrophe
Applicability
Bete noire
Bildungsroman
Bowdlerize
Byronic hero
Caesura
Death of the author
Denouement
Didactic
Epigraph
Epistolary
Fin de siecle
Foil
Hamartia
Heresy of paraphrase
Hubris
Humours
In medias res
Intertextuality
Irony
Literary agent hypothesis
Magic realism
Malapropism
Meiosis
Meta
Mise en scene
Picaresque
...
The UX of Data →
This article will focus on a core aspect, the storage of a user’s data outside of their personal devices. This is a very disruptive shift that enables user experiences that would be impossible with only local storage, and creates a new facet of design: the UX of data.
It Is Good To Have Friends →
In the start-up business, people are always telling each other what it is that you need most: co-founders, a minimum viable product, you’ve got to be agile, and who knows what else.
But an overlooked factor is that of a solid network of long time friends.
The value of such a network may not be readily apparent, it’s not going to show up on your balance sheet, when you get an...
Conditional CSS and template file suggestions in... →
How to add CSS or JavaScript files to a theme conditionally based on node type
How to add CSS or JavaScript files to a theme conditionally based on path or role
Review of Drupal theme building videos and next steps
Before you start, is there a simpler way?
Why use template files, how file suggestions work, and setting up for later examples