Archive > January 2009

Manso Trick: Updating the order of a row in a table

This time, the article is not about javascript or PHP, but SQL. The idea of this article is to review different methods for updating the order of a row in a table (trying to touch only the row we want to change, keeping intact the rest of rows). To start with a simple example, let’s […]

Continue reading

, , , , ,

Quote of the week: “Everybody writes legacy code”

This is a great quote to have in mind when you are programming: “Everybody writes legacy code” by Eric Ries This quote is out of context, but there is a lot of wisdom in it. Just in case you want to read the original article, take a look at refactoring yourself out of business

Continue reading

, ,

A couple of ways for detecting Firebug

I think probably all web developers (even some designes) already know Firebug, otherwise it is a must-have tool you can’t miss. Anyway, this post is about detecting if the user has Firebug active, and which version is using. Básically the first technique is just looking if there exists a DIV whose identifier is _firebugConsole, and […]

Continue reading

Get Google PageRank using only javascript (II)

On the previous postr I explained that doing cross-domain requests has a LOT of problems, and even with those problems today I was going to post how to get Google PageRank using only javascript The thing is you cannot get the response once you do a cross-domain request (unless you use some tricks like a […]

Continue reading

, ,

Get Google PageRank using only javascript (I)

Some weeks ago, during christmas, I found this spanish article in tu función about how to get the Google PageRank of any website with PHP (he will be happy with the keywords of the link). The fact is although I knew there would be a lot of cross-domain problems I told myself: “hey! you have […]

Continue reading

, , , ,

Micropost: Testing shows the presence of bugs

Today Hector, in an e-mail, has put the following sentence, which I totally agree: “Testing shows the presence, not the absence of bugs” – Edger Dijkstra That means that the tests are there to capture and show the bugs in our software, however all tests passing does not mean the absence of bugs, it usually […]

Continue reading

, ,

jQuery 1.3 is here!

Yesterday the new jQuery 1.3, which is 3 years old, was released. This new version seems to have great improvements over jQuery 1.2.6 which was the last release. Following there is a list with the most important features on this version, as you can see on the jQuery blog, son: Sizzle: A sizzlin’ hot CSS […]

Continue reading

, , ,

The PHP empty function is wrong!!

After 20  minutes debugging code (BTW, what a great tool are debuggers), and you realize that the bug that manifests on A, does not come from A, not B, C or D, but it comes from far far away, something like Z you realize, as may other times, that a “bug” in a remote place […]

Continue reading

Manso jQuery Trick: is the element really visible

Sometimes is essential to know if an element is visible or hidden. Doing this with jQuery is quite easy, you have to ask if the filter “visible” is present or not (you can also use ‘hidden‘). However you should take care and notice a couple of things, because maybe jQuery is not telling us the […]

Continue reading

Manso Trick: Disabling the autocomplete on a form

Sometimes it is desirable that fields on a form be remembered by the browser. Even, sometimes, using the common names for form fields is encouraged (e.g: using ’email’, ‘name’, ‘nick’, ….) so when the user opens the web page, most of the form fields would be already filled. On the other hand, there are other […]

Continue reading

prev posts