Put some use to the remote that shipped with your MacBook!
Tuesday, July 24th, 2007Do you really use the remote that came with your MacBook?
Do you really use the remote that came with your MacBook?
Do you care how other people see your website? You should!
Here are my top 8 favorite Firefox Add-ons for web-development, everybody in our company uses these Add-ons to help them be as productive as possible.
Here is a little Photoshop layer-style that i made for a website I’m currently working on. I think it’s pretty neat, so i’ll share it with you
You can use it on pretty much every shape, if you have a very small shape you might have to adjust is the stroke->size in the layer-style.
Preview:
You can easily change the color by adjusting the Color Overlay of the layer-style.
To load the layer-style simply extract the archive you downloaded, copy the file glossyButtons.asl to Your_Photoshop_Directory\Presets\Styles and load it in Photoshop (”Styles” window -> load…)
I hope you like it.
I just want to share a link with you that is found earlier today.
On the website http://www.abuse.net/relay.html you can test whether or not your server can be used as spam-relay.
The website states that the application is “experimental” at the moment, but it is sure worth checking out.
Pretty handy if you don’t want to end up in anti-spam blacklists like spamhouse.org.
Today i want to show you a little trick that allows you to backtrace function calls (finding out which function called the function you are currently in)
Lets start with an example script, i will explain the details below.
This will output:
So, what the above script does is:
How it works
debug_backtrace() will return an array that looks like this:
So as you can see you have one array with multiple arrays in it, every array represents one level.
The array with the key [0] is always the function that calls debug_backtrace() - in our case logIt(), the lowest level.
Key [1] is one level above the one that is calling debug_backtrace() - in our case getThisName(). If there a more levels, there will be more arrays, one for every level.
So you could say $backtrace[2] to get the details of th function that called getThisName.
This means you can backtrace very complex function calls, wich will help you to debug your php scripts.
I hope this information was useful for you, i use it pretty often since i found out about this great php feature.