Building a Readernaut Widget
My friend Jorge noticed the Readernaut widget at the bottom of my sidebar and asked how I implemented it. I’m going to post the answer here in case anyone else is interested in adding this widget to their sidebar as well.
If you don’t already know about Readernaut, it’s an awesome web app that Nathan Borror built to help people keep track of their books: what you’re reading, what you want to read, what your friends are reading, and so forth. Best of all, Readernaut makes it really easy to bookmark your reading progress, and pretty soon you’ll be able to publish your progress directly to Twitter. Nathan’s probably working on it as I write this.
Anyways, here’s the Readernaut API. I’m using JSON because, well, I am very fond of it. Since JSON is nothing more than JavaScript, it’s really easy to get at the information I need with just a few lines of code.
Step 1. Include the JSON file
The first step is to create a script element that requests your JSON file from the Readernaut server and includes it in your page.
Of course, replace “your_username” with your unique Readernaut username. I’m appending the callback parameter so that I can hand off my data to a parsing function. You can name the function whatever you want. In this case, I’m using the name “parseResponse”. Put this line at the end of your page, just before the </body> tag.
Step 2. Create a container
Next, I create an empty element where I want to display my widget. This acts as a container, which I will fill with the data I’ve parsed from Readernaut.
As you can see, I created a div that will be my container and assigned it an ID of “bookshelf” so it will be easy to access and manipulate via the DOM. I’ve also included the parsing script, which I’ve named “readernaut.js” and will explain in the next step. This file contains the parseResponse function, which was specified earlier as the receiver of my JSON data. Make sure you change the src attribute to match the location of your JavaScript file.
Step 3. Parse and display the information
Now I need to create the parseResponse function, which looks like so. Remember, this function goes in the “readernaut.js” file.
I’m not going to walk you through the function line-by-line, but I’ll point out some of the things you might want to change.
Number of Books
The number of books displayed is controlled by the test condition of the for loop. This is the little part that says i<6. Change the number 6 to the number of books you want displayed in your widget. At this time, the Readernaut API only returns 10 books, so don't make the number any larger than 10.
Size of Book Cover
The Readernaut API gives you access to three book cover sizes: small, medium, and large. I'm using medium. If you want to access one of the other sizes, change "cover_medium" to either "cover_small" or "cover_large". Of course, you can always use CSS (or the image width attribute) to make the covers a little smaller or larger per your requirements.
Finally, I wanted every other image to have a class of "odd" so that I could do some stuff with floats. If you don't need this, you can simply delete the entire if statement.
The end
Anyways, that's it folks! With a little CSS, you'll have your Readernaut widget looking exactly the way you want in no time. If you have any questions, leave a comment and I'll do my best to help you out.
Oh, and one last note. The API is still a draft and warns, "This API is under development and backwards incompatible changes can (and will) happen." As such, this script isn't guaranteed to work forever. If anything changes, however, I'll be sure to post about it here.
My New Portfolio
I’m looking to start doing some freelance design work and/or find a full-time web design position, so I figured it was time I built a legitimate portfolio website. I had an awesome time designing it and I learned a lot about jQuery and Ajax along the way. Anyways, check it out!
If you know anyone that needs some work done or is looking to hire a web designer, please do pass along my site. I’d much appreciate it. Thanks!
A couple friends of mine came to visit me in San Francisco last week, so I grabbed some flowers from the corner store to put in the guest room. Then I was gone for a week and when I came back they had all wilted. Not one, however, had lost a single petal.
View “Wilted Tulips” at flickr
If you spent all your time wandering around the world, gasping at everything and saying, “How wonderful! How amazing! I’ve woken up after a 100 million centuries, what a trip!”, people would think you were a bit odd, and you might even get arrested. We do, of course, have an ordinary life to get on with, we do have a living to earn. We’ve got to earn our living being a solicitor, a lavatory cleaner, or something like that. Nevertheless, it is worthwhile, from time to time, shaking off the anesthetic of familiarity, and awakening to the wonder that is really all around us all the time. So, how are we going to shake off the anesthetic?
We can’t actually go to another planet, but fortunately we do not need to. Because we can go to regions of our own planet which are so unfamiliar that it almost might be another planet.
Richard Dawkins in Waking Up in the Universe
I have had the fortune of traveling to many distant countries, including New Zealand, the Czech Republic, Greece, and Turkey. As such, I can say that Dawkins perfectly describes the experience of visiting new regions of the planet as “shaking off the anesthetic of familiarity.” Many people that have the means to travel afar never do because they’re afraid to draw out the IV and wake up in a new, less familiar world. It’s too bad, because it’s one of the most valuable experiences I’ve had. Leaving the country not only demolished my egocentric tendency to think of my life in the States as “normal,” but also gave me a humbling perspective of my place in the world.
To this day, the memories of my travels help me shake off the anesthetic of familiarity and remember how beautiful this planet, this universe, really is, and how privileged I am to have had the chance to visit, even if for but a fleeting moment in time.
My Blog’s Personality
I just ran my website through Typealyzer, a tool that calculates your Myers-Briggs Type Indicator based on the content of your blog. According to the website, “When all features, words and sentences, are statistically analyzed, Typealyzer is able to guess which personality type the text represents.”
I assume it’s only analyzing the front page, so it might not be very reliable. However, at the time of submitting my site, the homepage was filled with content that is extremely reflective of my writing style and interests: a science/tech/futurist-related essay, an article related to the design of this website, a post about a movie trailer, and a few short blurbs regarding some of my photographs.
After a few seconds, Typealyzer declared the author of this blog (me) to be an INTP: Introverted iNtuitive Thinking Perceiving. Considering that this website is in many ways the digitized contents of my brain, I wasn’t surprised that Typealyzer was spot on. I Googled INTP and found this: Portrait of an INTP. INTPs are called the “Thinkers,” and I’ve extracted a few of the descriptions that I found to be very accurate, as if they were written just for me.
- INTPs live in the world of theoretical possibilities. They see everything in terms of how it could be improved, or what it could be turned into.
- They seek clarity in everything, and are therefore driven to build knowledge.
- They love new ideas, and become very excited over abstractions and theories. They love to discuss these concepts with others. They may seem “dreamy” and distant to others, because they spend a lot of time inside their minds musing over theories.
- The INTP is likely to be very shy when it comes to meeting new people. On the other hand, the INTP is very self-confident and gregarious around people they know well, or when discussing theories which they fully understand.
- The INTP is usually very independent, unconventional, and original. They are not likely to place much value on traditional goals such as popularity and security.
Typealyzer also drew up this visual analysis that shows the parts of the brain that were dominant during writing.

Again, quite accurate, particularly the almost 50/50 division between practical and idealist. Anyways, give Typealyzer a try. I’m curious if it works as well for anyone else.
Homo evolutis
Last year, I read a piece in WIRED about a man named Ray Kurzweil. He’s a futurist and inventor, among other things, and he takes “180 to 210 vitamin and mineral supplements a day” in an effort to live to witness what’s called the “Singularity.”
The Singularity Institute for Artificial Intelligence describes the Singularity as “the technological creation of smarter-than-human intelligence.” Some say it will render biological humans obsolete. Kurzweil, on the other hand, thinks it will immortalize us. What both parties agree on, however, is that the Singularity is near. So near that I, at 22, could live to see it.
I understand why Kurzweil would like to live to witness the Singularity, but in some ways I found it sad that he chooses to live life so cautiously. We are often taught to live each day as if it’s our last. Kurzweil, on the other hand, seems to live every day so that it’s not his last. Of course, a balance should exist between the two, but let’s just say that the WIRED piece didn’t convince me to skip out on any nights at the bar or pints of ice cream. That is, until…
The Arrival of Homo evolutis
Today I was on the TED website and excited to see some new videos had been uploaded from this year’s conference. A talk entitled Juan Enriquez: Beyond the crisis, mindboggling science and the arrival of Homo evolutis caught my attention. I watched.
By the end, I had chills running up and down my spine. Enriquez concludes with a slide that reads the following:
Homo evolutis (ho•mo ev•o•loo•tis) n. Hominids that take direct and deliberate control over the evolution of their species… and others.
Essentially, Enriquez predicts that Homo evolutis will be the next species in the evolution of the Hominid family (e.g., Homo habilis, Homo erectus, et cetera). So, when does he think this new species will arise? Soon. Like, really fucking soon. He points out that “the common stage of affairs is to have overlapping versions of Hominids, not one.” Obviously, one species of Hominid can’t evolve into another overnight. At any point in time, more than one has existed, which is why Homo evolutis will come into existence even while we Homo sapiens are still alive.
Did you know that there are nine women walking around Boston with regrown bladders? I didn’t.
Where will Homo evolutis come from? From science. Enriquez shares many of the experiments and procedures happening this very day in the field of stem cell research, including the growth of human organs. Did you know that there are nine women walking around Boston with regrown bladders? I didn’t. We’re talking real human organs being grown inside petri dishes at a laboratory near you. It’s incredible.
Enriquez goes on to explain how studies are finding that skin cells should be able to take the place of stem cells as the agents of regrowth. “That means that you can take the stuff right here,” Enriquez says as he pinches the flesh on his arm, “and turn it into almost anything in your body.”
Enter Homo evolutis, a species probably similar to the “valids” in Andrew Niccol’s film Gattaca. Except, the valids simply had incredible intelligence, perfect vision, and strong hearts. Enriquez predicts much more for Homo evolutis: the ability to hear bats and whales talk without aid, to see in ultraviolet and infrared, and to easily outpace any of today’s fastest Olympic runners. This isn’t speculation, people. This is inevitable.

The genetically superior valids exercise in Gattaca (1997).
Niccol deals with the negative implications of human genetic engineering in Gattaca, so I won’t tread on covered ground. To me, what’s most fascinating about Enriquez’s talk is his idea that genetic engineering might actually render a new species of Hominid. Imagine, being alive to see the declaration of a new species of human. These are exciting times.
Which brings me back to Ray Kurzweil, who takes 200 vitamins a day and receives “intravenous longevity treatments” once a week. Maybe he isn’t so crazy after all. How much would you pay for a retinal implant that lets you see in the dark? Or a cochlear implant that let’s you hear a wider range of frequencies? How would you modify your daily routine if you knew that in 20 or 30 years these things will be possible?
I’ll just say that I’m having a very healthy dinner tonight of brown rice, roasted peppers, and chicken breast, and I’m quite happy about it.
Believe it or not, this is actually what the street looked like the other morning at 6:45. The only processing done to this photo is a small contrast boost. And some sharpening, because when I first started shooting I had my camera on manual focus. I didn’t realize it until the sun had come up and the street was no longer this beautiful.
I’m pretty much in love with the mix of purples, pinks, blues, and yellows—a combination of the cobalt blue dawn sky, the street lights, and the crosswalk stripes. Hoping to get a more focused shot in the near future!
View “Wet street at dawn” at flickr





