May 2013
1 post
7 tags
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 =...
June 2012
5 posts
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
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
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
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.
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.
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...
1 tag
Never attribute to malice that which is adequately explained by stupidity.
– Hanlon’s Razor (via jc-subida)
5 tags
Inspiration: Fluid & Responsive Design →
5 tags
Liquid layouts and Flickr →
Mustache: simple, efficiente templates →
Matéria sobre Kinect no Olhar Digital que participamos.
April 2012
3 posts
3 tags
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.
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...
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...
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...
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...
Out of the box ideas for programming →
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....
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.
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)
/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.
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...
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!...
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...
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.
3 tags
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...