May 2013
1 post
7 tags
May 8th
October 2012
1 post
5 tags
How to fill CLEditor with Selenium IDE
Here’s a snippet to fill the contents of a CLEditor in a user context library for Selenium IDE. Put this in a sample /** * Fills a CLEditor * * @param locator May be a parent locator, such as div[data-attribute="xyz"], as long as * there is only one textarea child * @param html The html to type */ Selenium.prototype.doTypeHTMLEditor = function(locator, html) { var element =...
Oct 31st
June 2012
5 posts
Jun 5th
34 notes
1 tag
Pure CSS3 stopwatch
Cool implementation and an even cooler way to make a tutorial. http://thecodeplayer.com/walkthrough/make-a-stopwatch-using-css3-without-images-or-javascript
Jun 4th
3 tags
Desenvolvimento de Interface Naturais de Interação...
Nosso mini-curso de Kinect no SVR (Simpósio de Realidade Virtual e Aumentada) 2012. Desenvolvimento de Interface Naturais de Interação usando o hardware Kinect
Jun 1st
4 tags
Realidade aumentada para aplicações web e mobile
Nossa apresentação do pré-simpósio do SVR 2012. Apresentação realidade aumentada para aplicações web e mobile
Jun 1st
5 tags
SVR 2012
[Post in portuguese] Estivemos no SVR2012. O congresso foi excepcional e muitas pessoas nos pediram o material dos cursos que demos sobre kinect e realidade aumentada para web e mobile. Vamos disponibilizar isso online assim que possível.
Jun 1st
May 2012
8 posts
4 tags
Two weeks
In “The money pit”, whenever Tom Hanks asks when things will be done, he gets the same answer: “Two weeks!” I always think of that movie when I’m talking about deadlines in software development.
May 25th
5 tags
The pasta theory of code
I don’t know why, but most new programmers I’ve been talking to never heard of spaghetti code. Wikipedia has a nice definition for it: Spaghetti code is a pejorative term for source code that has a complex and tangled control structure, especially one using many GOTOs, exceptions, threads, or other “unstructured” branching constructs. It is named such because program flow...
May 23rd
1 note
May 23rd
9 notes
1 tag
“Never attribute to malice that which is adequately explained by stupidity.”
– Hanlon’s Razor (via jc-subida)
May 23rd
1 note
5 tags
Inspiration: Fluid & Responsive Design →
May 23rd
5 tags
Liquid layouts and Flickr →
May 22nd
Mustache: simple, efficiente templates →
May 9th
WatchWatch
Matéria sobre Kinect no Olhar Digital que participamos.
May 2nd
April 2012
3 posts
3 tags
Apr 16th
girlmeetscode asked: Hi, as someone who is just learning to code, I really appreciated your thoughts about mentors. Could you give me any tips on where or how to find one? Thanks, Tiger.
Apr 9th
5 tags
Programming & music
Whenever a classical musician talks about his career, he mentions his teachers. They usually had one to three experienced musicians who taught them in such a way that it changed their playing and careers. Real mentors (in fact, to enhance my point: I started to write this a while ago, but I recently met a pianist and he told me about his mentors). Even rock stars and other non classical musicians...
Apr 6th
1 note
March 2012
11 posts
7 tags
The art of debugging
Pesky bugs. How I smack them: Code review. After writing anything I check it myself (don’t waste someone else’s eyes before you reviewed the code yourself). This catches most typos (things like = for ==, variables with typos in interpreted languages, etc). I also simulate code in my head, which makes sure simple logic errors that may have been made are caught early, before even...
Mar 26th
13 notes
7 tags
Compiling Berkelium
Berkelium is a library to use Chromium as an HTML renderer and embed it in your application. It’s very nice, but I had trouble with their binaries, and compiling everything is a pain. So here are some simple instructions on how to compile Berkelium (Linux, focusing on Ubuntu): git clone https://github.com/sirikata/berkelium.git cd berkelium EDIT: git submodule update —init...
Mar 21st
1 note
7 tags
Portable mobile development: post-mortem...
We have just finished a big mobile application here, using Appcelerator, as I mentioned before. I always do a post-mortem analysis at the end of a project. It’s a remarkably effective tool to avoid making the same mistakes twice. So, here is the relevant question: if I were to start the project again today, what would I have done different? What would I have done exactly the same? The...
Mar 14th
Out of the box ideas for programming →
Mar 13th
4 tags
Beautiful code
Sometimes beauty is about contents. Many years ago I read a story, but as much as I looked around the net for it again now that I’m writing this, I could not find it. I don’t even know whether it is true or apocryphal, but let’s go. If you know anything about the story, please contact me. There was a composer (IIRC, one of the Bachs) who was teaching composition to a student....
Mar 9th
2 notes
Mar 9th
8 notes
4 tags
Tired of starving your system? ulimit
After my system slowed to a crawl due to crazy memory allocations by my browsers (debugging my javascript) leading to swap thrashing, I looked up and found “ulimit”, a nice little helper for Linux that lets you limit the amount of ram for processes. Neat.
Mar 8th
1 note
“I’ve been writing code for twenty years, and I’ve had half-a-dozen novels...”
– http://techcrunch.com/2012/03/03/pair-programming-considered-harmful/ (via letsbevapid)
Mar 6th
4 notes
/timeline of computing infographic
ax38: An infographic that shows the most influential discoveries and developments throughout the past 3 centuries of computer science. The events have been selected based on the relevance for my thesis, and are predominantly of influence to programming for designers.  The full version can be seen here. 
Mar 5th
9 notes
Mar 5th
4 notes
5 tags
A simple lib
Amazing how eventually I have some “simple task” that I expect to solve with a library and a couple of calls and it turns out to be amazingly difficult. Last two examples? Converting HTML and PDF to textures. It turns out that the only still developed library for rendering HTML into an image is Berkelium. I suppose very few people must need something like that, because there are no...
Mar 5th
February 2012
6 posts
4 tags
Javascript, for loops and callbacks
Javascript has its peculiarities in regards to scope. One problem is how to access the right variable in a callback inside a loop. This won’t work: for (var i in array) { var img = createImage(array[i].source); // something img.addEventListener('click', function() { function(array[i].text); }); } Because the click will happen after the loop is finished, so i == array.length always!...
Feb 28th
Feb 28th
21 notes
2 tags
Black box programming
Two developers here faced different but related problems lately. In essence their question to me could be: “should I use a framework/library even though I do not know how it works at all?” They were not trying to reinvent the wheel, but they wanted to know what was under the hood before using it blindly, both to learn and to make sure they were not doing something dumb. What should I...
Feb 28th
1 note
“David Ogilvy, internal memo: “How to Write,” 1982: The better you write, the...”
– -David Ogilvy, internal memo: “How to Write,” 1982  (via trevorloy) Good hints, particularly 2, 3 and 4.
Feb 22nd
47 notes
3 tags
Feb 22nd
5 tags
Portable mobile development: Appcelerator
We’re currently finishing a mobile application here (more about that soon). When we started, at the end of 2011, I reviewed the existing cross platform mobile frameworks. The best choices back them seemed to be Titanium Appcelerator and PhoneGap. There was a clear difference: Appcelerator was native, while PhoneGap was essentially a webapp. PhoneGap had no support for handling cameras with...
Feb 22nd
1 note