Install Theme

Adding Google Prettify to Tumblr

I recently switched to using Markdown as my default editor for Tumblr. The nice thing about using the Markdown editor is that Tumblr will recognize a code-block and surround it with <pre> tags.

You won’t get syntax-highlighting however, which is where Google Prettify comes in.

Just add the following static assets:

And then add the following line:

<script>$($.when($('pre').addClass('prettyprint')).done(prettyPrint);</script>

This line of code will wait until the DOM is ready before adding the prettyprint class to all pre tags. Then it will execute prettyPrint().

I highly recommend hosting the Prettify CSS/JS elsewhere, because code.google.com serves these files without Gzip compression.

ohmy-auth

After a month of development and waiting for approval from Yahoo, I’m ready to release my first open-source library to the general public!

ohmy-auth (Oma) is a PHP library that reduces OAuth to its most basic form. At the end of the day, OAuth takes 1 to 3 legs (i.e. roundtrips). So from a bird’s eye view, why should implementing OAuth be any harder than 3 steps?

Here’s an example of Oma in action:

# use your preferred autoloader
use ohmy\Auth1;
Auth1::init(2)
     ->set('key', 'key')
     ->set('secret', 'secret')
     ->request('http://term.ie/oauth/example/request_token.php')
     ->access('http://term.ie/oauth/example/access_token.php')
     ->GET('http://term.ie/oauth/example/echo_api.php')
     ->then(function($data) {
        var_dump($data);
});

In just 11 lines, the above code performed a 2-legged OAuth 1.0a exchange with term.ie, made an API request to echo_api.php, and then dumped the results.

ohmy-auth is new, but so far supports every provider I’ve tried integrating with including Facebook, GitHub, Google+, Tumblr, Twitter, and of course Yahoo.

I plan to add more tests before committing to a stable release. You can find it on GitHub at https://github.com/sudocode/ohmy-auth.

The YQL Unified Console Stack →

yahooeng:

The Yahoo! Query Language (YQL) is a web service that allows developers to call different APIs using SQL-like statements. Since its launch in October 2008, YQL has steadily grown in usage and adoption by many Yahoo properties and even external sites. Eventually, more features and products…

Visualizing Space Launches

For the past week, I’ve spent my spare time charting commercial space launches from different countries around the world between 1990 and 2012. You can view the data by rocket or by year:

image

image

I used D3.js, an amazing Javascript library created by Mike Bostock from the NYT. Data is based on a CSV from the US Department of Transportation. Hopefully someday I’ll be able to augment the dataset with other useful information like military and failed launches.

YQL Releases a Unified Console →

yahoodevelopers:

YQL Unified Console

Today the YQL team released a unified YQL console. They added ways you can customize the Console, which hopefully will make your life a little easier. Now it will remember the state you left it in (sidebars and XML/JSON output preference). Also the layout has changed so tables are now on the…

After nearly a year of hard work, we finally launched.

Yahoo acquires Tumblr

Congratulations to David Karp and the rest of the Tumblr team!

The Next UI Pattern?

Apple iTunes 11

image

Google Image Search

image

One Year Later

I started off this blog last year with mostly reblogs of other people’s content to make my own blog looked like it had content. I know, it was incredibly deceptive of me. 

But anyways, I eventually got rid of all the reblogs and replaced it with things I found interesting like a Youtube video or an interface design. Not much better, but at least I’m doing a bit more work. Some of that stuff you’ll still see here, but ultimately I’m trying to move away from all that.

There are two things we do as people, especially on the Internet: producing or consuming content. I want to be less of a content consumer this year and more of a content producer. 

There’s no such thing as a dumb user. … There are only dumb products.

— Timothy Prestero, TED Talk

Credit

I noticed that ever since Marissa started working here at Yahoo, she always takes her time to thank people. There was a recent email thread where people tried to thank her for a successful event, but she quickly put the spotlight on someone else. 

I don’t think many CEOs do this. And it’s probably not the first thing that comes to mind when you’re under pressure to prove yourself for the first time. 

A computer used to be something you visited.. a place. It was a giant mainframe that took up floors in a building. What was once something you had to visit, eventually moved onto your desk, then your lap, is currently in your pocket, and is now going onto your face.

It’s amazing how fast computers are not just getting smaller, but becoming physically closer to our bodies. It’s only a matter of time before they’re a part of us.

Engineers are taught to make decisions analytically and largely without emotion. When it comes to a decision between alternatives, we enumerate the costs and benefits and decide which one is better.

But there are times in our lives, when the careful consideration of costs and benefits just doesn’t seem like the right way to make a decision. There are times in all of our lives when a reliance on gut or intuition just seems more appropriate when a particular course of action just feels right. And interestingly, I discovered it’s in facing life’s most important decisions that intuition seems the most indispensable to getting it right.

In turning important decisions over to intuition, one has to give up on the idea of developing a life plan that will bear any resemblance to what ultimately enfalls. Intuition is something that occurs in the moment and if you are open to it, if you listen to it, it has the potential to direct or redirect you in a way that is best for you.

Tim Cook, CEO of Apple

What UX Means to Four Internet Companies

During this past year, I’ve seen people from different tech companies talking about user experience and what it means to them. So for fun, I decided to rebrand them with their definition of user experience.

image

image

image

image

New Domain

I’m changing my domain (again) to sudoco.de. I feel pretty confident that this will be my final domain change. 

The name means a lot to me personally because it’s the name I’ve gone by in most of the hackathons and projects I’ve been in. It’s based on the word “pseudocode”, with “pseudo-” being replaced by the sudo command.

How Yahoo! Kept Mayer a Secret →

The Yahoo! board of directors was leaving nothing to chance.

The Internet company is known throughout Silicon Valley as a leaky ship whose internal deliberations often turn up on blogs or in other media outlets.

So when the company’s four-member chief executive search team met Google veteran Marissa Mayer for the first time last month, their precautions evoked a John le Carré novel. No one inside Yahoo was told, and the interview was conducted 10 miles away from headquarters in the Palo Alto offices of law firm Skadden, Arps, Slate, Meagher & Flom.

When Mayer met with the entire Yahoo board last week, the company’s directors were bused from Yahoo’s offices to another law firm on Page Mill Road in Palo Alto. The idea was to evade potential tails, and anyone who had figured out the first interviews had taken place at Skadden, according to a person briefed on the process who wished to remain anonymous because the matter was private.