Emacs personal

The Social Network Movie

the social network

I just saw The Social Network movie. From a geeky perspective, its a very interesting movie. But I don’t know if it will be entertaining enough for the general public. Also I say this with the perspective of having read the book, and as most movies based on books, they missed lots of details and changed some events.

The highlights for me, besides the fact that it is interesting to watch the story of a web startup grow, was the more than normal geeky parts. Almost all of the screens of facebook development were using KDE, and Mark Zuckerberg is always shown coding in GNU Emacs. And its the first movie where I ever hear someone say the words “emacs” and “perl script”. Although now that I think about it, why would he use Perl when we all know Facebook is all done on PHP. There was actually some PHP code screens on the movie as well.

social network scene

So if you’re going to see the movie, don’t expect a highly entertaining movie. Its a bit dull and boring at parts with too much dialog going on. But as a friend told me: “what did u expect? a car chase in downtown Palo Alto?”. If you have already seen the movie, I recommend you to read the book The Accidental Billionaires: The Founding of Facebook A Tale of Sex, Money, Genius and Betrayal
to really grasp the details of what is portrayed there. Anyway, nor the book or the movie are completely true, so take it with a grain of salt.

The music by Trent Reznor was great 🙂


Sillicon Valley trip

Last week I’ve been visiting my work office at Sillicon Valley. I didn’t take my personal computer, instead I took my work computer, since I was there for work and I didn’t want to be carrying around like 10kg in my backpack.

Its been an exciting experience. I got to see the outside of companies like Google, Facebook, Yahoo, and many others.

I really have not much value to add to my blog post, but since I haven’t responded to any of my personal email in the last week, I just wanted to make it public that I was having fun… I mean a lot of work.

My work mates at California are great people, love the atmosphere over there and I want to thank everyone for being so nice.

Hopefully I’ll be posting pictures soon and a bit more relevant information on this pages. I’m just happy for my trip, it was a great experience.

Oh, and check Nick Moline’s site. Great guy with even greater ideas. (Sorry Dan; you don’t get a link ’cause you don’t have a blog)

Digital rights Law & Freedom GNU/Linux Free Software & Open Source

Facebook terms for your uploaded content


Maybe this is old news, but I was checking Facebook’s terms of service to see if something had changed since the last time I saw them. But everytime I read this, I keep getting surprised and annoyed. The following is the exact quote from the terms of use that makes me think twice about uploading any pictures to my photo gallery.

I’ve highlighted the parts you should watch out for:

When you post User Content to the Site, you authorize and direct us to make such copies thereof as we deem necessary in order to facilitate the posting and storage of the User Content on the Site. By posting User Content to any part of the Site, you automatically grant, and you represent and warrant that you have the right to grant, to the Company an irrevocable, perpetual, non-exclusive, transferable, fully paid, worldwide license (with the right to sublicense) to use, copy, publicly perform, publicly display, reformat, translate, excerpt (in whole or in part) and distribute such User Content for any purpose, commercial, advertising, or otherwise, on or in connection with the Site or the promotion thereof, to prepare derivative works of, or incorporate into other works, such User Content, and to grant and authorize sublicenses of the foregoing. You may remove your User Content from the Site at any time. If you choose to remove your User Content, the license granted above will automatically expire, however you acknowledge that the Company may retain archived copies of your User Content. Facebook does not assert any ownership over your User Content; rather, as between us and you, subject to the rights granted to us in these Terms, you retain full ownership of all of your User Content and any intellectual property rights or other proprietary rights associated with your User Content.

And the other day I found some local TV advertising studio photographs, from the biggest TV network in latinamerica, posted on the photographer’s photo gallery. He could get sued by his client!

Good think Flickr exists and provides us with our own licensing terms. And even more for providing the option of Creative Commons licensing.

It would be interesting and a huge challenge, to come up with a social networking site like Facebook that follows the Franklin Street statement.

Programming & Web Development Tutorials & Tips

Animate your webpage fast and easy with Facebook Animation Library

Today Facebook released an animation javascript library that modifies CSS properties on the fly. You can download it and use it on your webpages.

Its a very light (10.4 Kb compressed version) animation library and its very easy to use. You can chain events or animations to create the effects you want. You can download it on the facebook developer’s resources page.

A typical effect used in websites is the flash effect to alert or notify of some action.

Here’s all you need to accomplish that:

<a href="#" onclick="Animation(this).to('background', '#fff').from('background', '#ffff4b').go(); return false;">Flash</a>

The syntax is easy. All you need to do is call Animation(this) on your element and then specify what CSS property you want to change on the .to and .from methods. In this case: go from yellow background to white background. The last .go() method tells Animation to run the specified animation.

You can also mix animations or transitions instead of playing one animation after another. For this you have to use .checkpoint() function and .duration() to specify how long the transition will take (in milliseconds). The checkpoints indicate when the second animation will start playing, allowing you to tweak the default behavior of playing one animation after the other one stopped.

So you can basically change anything: colors, widths, lengths, margins, positions, etc. For complete documentation of the library, go to the Facebook Developers Wiki. Its worth checking out.

Its a very simple syntax, with familiar terms (CSS properties) and very lightweight compared to using Prototype and Scriptaculous. Maybe Scriptaulous syntax for doing some animations is simpler or shorter, but you must load Prototype in order to use it, so that makes it heavier. Plus, you need to know the Scriptaculous effects functions and sometimes they are not that tweakable.

Its also nice to see Facebook releasing some open source code (BSD licensed) and contributing back.