-
Version Control FTW (via AIM)
- Tiffani: version control is probably the best thing that's ever happened to me as a developer (especially during the early years of using it) nothing like rolling back off code you wrote when you were sleepy and/or drunk (don't ask lol)
- Me: HAHA
- Tiffani: I think they should teach it to freshmen in college and call it a day tried to get my compSci department chair to do that...they hold off until an upperlevel class though. huge mistake. SVN or Git or whatever would have saved my ass so many times freshman year and before that really.
- Me: lol
- Tiffani: seriously
- Me: soooo coding drunk? lol. i couldn't resist!
- Tiffani: there are photos.
- Me: please do elaborate
- Tiffani: *untagged* on Facebook
- Me: lol smh
- Tiffani: it was kind of a test, sobriety test lol. unfortunately, I could tell the next day I failed. you don't want to get drunk with a bunch of nerds...this is what ends up happening
- Me: lol insanely funny
- Tiffani: I started sobering up and thinking I could pontificate on OOP and all kinds of ish, then I sat down and started coding. FAAAAAIL. I don't know why I didn't just go to sleep
- Me: "I started sobering up and thinking I could pontificate on OOP and all kinds of ish" - OMG *DEAD* LAMAOMASAOSMAO
- Tiffani: nothing serious happened..it was just exceptionally bad code
- Me: lmao
- Tiffani: I know I know lol
-
Funny world... Funny people...
Referring to me, my opinions, experiences or thoughts as “ignorant” is only the easiest way to show off your very own ignorance… The End.
non-sequitur.
-
-
Project Euler in Ruby: Problem #3
Problem
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143?
Solution
require 'mathn' class Integer def largest_prime_factor number = self prime = Prime.new divisor = prime.succ while divisor < number number /= divisor if number % divisor == 0 divisor = prime.succ end divisor end end puts 600851475143.largest_prime_factorIn a real application I wouldn’t monkey patch a core class for something such as this, but for this example the OO style makes more sense to me, readability wise to me than a functional solution.
-

Insanely delayed reaction.
-
-
Haml & Sass: Pointless abstraction?
I remain unconvinced on the utility of Haml and Sass. I definitely am convinced it’s not commensurate with the airtime they get online and in dev circles.
- Hand coding semantic, well-formed HTML is so trivial every professional developer should be able to do it. It’s not uncommon to have 10+ years HTML experience. People have literally grown up with it.
- Textmate HTML bundle tab triggers and tag autoclosing completely negate the marginal benefit of Haml’s brevity.
- The utility of hand coding CSS in CSSEdit 2 and seeing instant changes in the WebKit preview window > > > > anything that Sass can offer.
I don’t see the point of Haml at all. One has to think of a document’s structure in HTML in order to write it in Haml and then have it parsed back into HTML! WTF?! Even as a Rubyist myself, I have to say that to advocate, let alone proselytize such an approach (as a very vocal minority online do) smacks of pure zealotry.
I think Sass is good for software engineers. So if you’re a coder that wants to write your CSS in a very concise DRY style, go ahead and use it. Just expect your interface to look like it was created by an engineer and not a designer i.e. ugly, As one is less inclined to tweak to perfection if the browser has to be manually refreshed, instead of CSSEdit 2’s instant visual feedback. I can’t see how Sass would make it faster for designers to create beautiful interfaces stepping away from CSSEdit.
I can only see Sass being a speed hump.
Your thoughts?
-
In Search Of The Valley
A film made in 2004 by three friends who swapped London for Silicon Valley for a month. I want to see this.
-
White Paper: Abusing Insecure Features of Internet Explorer←link!
tl;dr: If you use IE, you’re f***ed. I can browse your entire hard drive without you knowing.
-
Whaddup son?
-
Obfuscating Email Addresses
Off the top of my head… String substitution would be a very simple and effective way:
var obfuscated_email = "you-nospam@nospam-example.com" var email = obfuscated_email.replace(/\-?nospam\-?/g, '');
Will return you@example.com. This has the advantage of being accessible to screen reader if you implement by updating a DOM node. If Javascript is turned off, “no-spam” interpolated into an email address is still parseable for a savvy internet user while flummoxing a bot!
Today I had a client request that all email addresses displayed on their website be jumbled/encrypted/scrambled in some way to prevent them from being harvested for spam lists. Not something I am asked to do often, but I do share their concern.
There are a number of ways to do it, and I wanted to talk about my approach, which was fairly quick and dirty. You could convert all the addresses to images, or piece it together with CSS, or discombobulate it with a script or something, but I didn’t want to spend too much time on this sucker. After all, I need to have time left over to blog about it, don’t I?
Anyway, here’s what I did:
<script type="text/javascript"> var name = 'user_name'; var at = '@'; var domain = 'thedomain.com'; document.write(name + at + domain); </script>Which produces user_name@thedomain.com on the page, but the underlying text is still complex enough that crawlers probably can’t parse it well. One bummer is that you can’t click it, but that ability is less important than their request to obfuscate the addresses, I think.
What’s your take? Do you like this approach or have you used a better one successfully?
-
JSpec 1.1.4 - JavaScript BDD Testing Framework←link!
JSpec - JavaScript BDD Testing Framework. Looks dope. Don’t know why I haven’t heard anyone talk about this. I have wanted a nice way to unit test my Javascript for a while now.
-
Hashrocket looks like the ideal permanent gig for a Rails hacker
-
Ibanez Universe 20th Anniversary Reissue.
20th anniversary commemorative reissue of the multicolour swirled Ibanez Universe from the cover of Steve Vai’s Passion & Warfare.
This is going to be insanely expensive with a MSRP of $7,999.99. However, I predict the street price will be quite a bit lower and it’s value will appreciate as other reissues have done in the collectors market. Less than 100 will be made, so the scarcity factor will only multiply the appreciation.
This could actually be a smart investment. Let’s see what cash I have knocking about when these drop later on this year.
-
Amazon S3: Versioning Proposal←link!
Amazon S3: Versioning Proposal. The us-west-1 S3 bucket region now optionally supports versioning—once enabled on a bucket, all previous versions of keys will be preserved.
INSANE!
Mon08Feb
Sun07Feb
Sat06Feb
Fri05Feb
Thu04Feb
Wed03Feb