Archive for April, 2007
How to build an absolute url in php
Today, I was looking for a way to make an url absolute.
Ok, it’s easy. Guess I should think some good excuse for not being to able to do it in 5 minutes. The sad reality is I ended digging on google (again).
I am posting what I found, for (main, and) your reference. Read the rest of this entry »
Firebug: avoid errors in other browsers
Small snippets or full-featured libraries - if you develop in Javascript and don’t have Firefox and Firebug
installed - you’d better get them now.
Firebug is a Firefox extension which brings several top-notch inspection/debugging features. You can inspect DOM, change CSS run-time and so on.
Aside DOM, CSS and Net capabilities Firebug features a very good debugger and some very useful logging capabilities. For example in your scripts you could write:
console.log ( "result is:", var );
and get the javascript variable “var” dumped into Firebug console. Read the rest of this entry »
Server load: a good resource for the beginner
Sometime, when you get a successful site to work on, lowering server load becomes actually more time consuming than strict developing itself. Sadly, and this is specially true for legacy systems, debugging bottleneck is often not easy.
Here’s a good resource page which explains some common tools you can use on GNU Linux:
How to monitor server load on GNU/Linux
