|
|
New blog post: Daily Digest for November 14th http://bit.ly/rgUv9 [SeanJA]
|
|
|
|
|
|
RT pengwynn Twitter avatars remixed http://ow.ly/161E3u [SeanJA]
|
|
|
@gavinblair Ya… it doesn’t do too much now… I am thinking of teaching it some basic D&D stuff though [SeanJA]
|
|
|
Hans Rosling: Let my dataset change your mindset | Video on TED.com: http://bit.ly/14Pou4 via @addthis [SeanJA]
|
|
|
http://twitpic.com/pix68 – They still this? [SeanJA]
|
|
|
America banned sliced bread: http://bit.ly/2KFUMy [SeanJA]
|
November, 2009
15
Nov 09
Daily Digest for November 15th
14
Nov 09
Daily Digest for November 14th
|
|
|
|
|
|
|
|
|
|
|
Fluorine Uranium Carbon Potassium [SeanJA]
|
|
|
@d20_roller test 123 [SeanJA]
|
|
|
@d20_roller roll d20 [SeanJA]
|
|
|
@d2_roller roll d90 [SeanJA]
|
|
|
@d20_roller roll d90 [SeanJA]
|
|
|
@d20_roller roll d4 [SeanJA]
|
|
|
~$ whois steve.jobs [SeanJA]
|
|
|
3 days until L4D2 is released… nice [SeanJA]
|
|
|
|
|
|
|
|
|
@d20_roller roll d60 [SeanJA]
|
|
|
@d20_roller roll d12 [SeanJA]
|
13
Nov 09
Daily Digest for November 13th
|
|
New blog post: Daily Digest for November 12th http://bit.ly/26f1Q2 [SeanJA]
|
|
|
|
|
|
Shared Lawn Order.
|
|
|
|
|
|
|
|
|
|
|
|
rt @carnage4life Google announces embrace & extend of HTTP with new SPDY protocol http://bit.ly/1UfvVK [SeanJA]
|
|
|
That’s right, I still hold the record for the 100 meters boys 12.13 at AISR (I don’t think any of my records have been beaten actually…) [SeanJA]
|
|
|
Shared The Reason for the Season.
|
|
|
Shared iPhone or Droid.
|
|
|
Best cufflinks ever http://bit.ly/3WUYOK [SeanJA]
|
|
|
|
|
|
Aww… none of my extensions work in FF 3.6b2 [SeanJA]
|
|
|
There are people who talk a lot to themselves and learn a lot from the conversation http://i.imgur.com/NWYiq.jpg [SeanJA]
|
|
|
|
|
|
SecuROM… 5 machine activation limit… so… can you deactivate a game on a machine? [SeanJA]
|
|
|
Is dzone borked? [SeanJA]
|
|
|
Robinson Crusoe on Mars: This film is scientifically authentic! [SeanJA]
|
12
Nov 09
Daily Digest for November 12th
|
|
New blog post: Daily Digest for November 10th http://bit.ly/4qSWUF [SeanJA]
|
|
|
|
|
|
I can put an arrow in your tires from 100 paces, so be nice [SeanJA]
|
|
|
|
|
|
Oops… Oracle got blocked by the EU… ah well [SeanJA]
|
|
|
Esculent… hmmm… can you use it in a sentence? Perhaps one involving pie? [SeanJA]
|
|
|
|
|
|
|
|
|
Are your loved ones plotting to eat you? Take this quiz to find out http://theoatmeal.com/quiz/plotting_eat [SeanJA]
|
|
|
There is a 49% chance my loved ones are plotting to eat me [SeanJA]
|
|
|
|
|
|
As it turns out, turning into a giant porcupine is against the laws of nature… [SeanJA]
|
|
|
George Washington invented instant coffee! [SeanJA]
|
|
|
New blog post: Stop Micro-optimizing http://bit.ly/4np0xb [SeanJA]
|
|
|
Shared Plotbuster.
|
|
|
|
|
|
Shared FUBAR booth.
|
|
|
|
|
|
|
|
|
|
|
|
Shared Bizarro – 11 November 2009.
|
|
|
RT @twibbon: Amazing! 22,000 wear online poppies on Armistice Day #2minutesilence http://bit.ly/i22FC [SeanJA]
|
|
|
|
|
|
http://bit.ly/Qm5BV "Homo sapiens were sub divided into five varieties: [...], the African and the monstrous." [SeanJA]
|
|
|
Does he have a question? http://bit.ly/39ZARr [SeanJA]
|
|
|
Shared Car Orthodontics Aren’t Cheap.
|
|
|
|
|
|
Shared @shittheyputonTV.
|
|
|
Shared No Guts No Glory.
|
|
|
@NathanFillion Shouldn’t you be bumping elbows or something rather than shaking hands? Don’t you read the news? [SeanJA]
|
|
|
|
|
|
Yes! If there was any reason to drop someone off at a police station, this is it. http://bit.ly/3aPHLY [SeanJA]
|
|
|
I am a crucial part of this operation [SeanJA]
|
|
|
@cssquirrel Look for video cameras… you might have stumbled onto the set of Glee by mistake [SeanJA]
|
|
|
Oh no!RT @breagrant: dollhouse canceled! that’s too bad. [SeanJA]
|
|
|
|
|
|
|
|
|
I’m going to sextuple u #thingsthatsounddirty [SeanJA]
|
|
|
Want to see the ugliest bowl of cereal in the world? http://bit.ly/1kgQya [SeanJA]
|
|
|
@gavinblair I am glad that was a reply to a message from a while ago and not the one I just wrote… [SeanJA]
|
|
|
@gavinblair That doesn’t mean that they couldn’t move as well though [SeanJA]
|
|
|
Super Dave is back on Saturday!!!! [SeanJA]
|
|
|
|
|
|
10
Nov 09
Stop Micro-optimizing
Let’s look at a common php ‘optimization’ tip (note that I am only running this test on my computer, and I am not shutting things down to help it go faster).
Use single quotes ( ‘ ) instead of double quotes ( ” ) .
The reasoning behind this is that php parses double quoted strings for variables, so it takes way longer to process your evil double quoted strings than it does to parse your single quoted strings.
$test = 'something'; $repeats = 1000000; $start1 = microtime(true); $first = ''; for($i = 0; $i < $repeats; $i ++){ $first .= 'string '. $test; } $end1 = microtime(true); $time1 = ($end1 - $start1); $start2 = microtime(true); $second = ""; for($i = 0; $i < $repeats; $i ++){ $second .= "string $test"; } $end2 = microtime(true); $time2 = ($end2 - $start2); echo 'A difference of: '.($time2 - $time1) . ' seconds'; #=> A difference of approx: 0.244801044464 seconds;
A whopping 0.24 seconds over 1000000 string concatenations (a difference of about 0.00000024 per concatenation). I wouldn’t bother with this one, if the code is full of double quotes leave it.
Now, I am not suggesting that you rethink the micro optimizations that you make go ahead, make them if you must. But before you put too much thought into it, make those macro-optimizations that you are avoiding and clean up your code. Future you will thank you, especially if current you avoids dumb “micro-optimizations” like bit shifting rather than multiplying and dividing (dumb because for the most part, modern compilers make this optimization already, or your processor does a table lookup rather than doing the actual calculation).
#this: 9 * 256; #is way more readable than: 9 << 8;