I’ve finally reskinned Ubuntu using a GTK theme from Ubuntu-Art.org. The skin is called Shiki-Colors and it’s a mix of the dark and light themes. I’ve also installed the Gnome-Colors Icons to spice up the look. Installing the theme was pretty easy, but it wasn’t without problems. After applying the new theme, I noticed borders on every division within a window, but after apply the following comment, the theme is working correctly.
This is not a theme problem, it’s a user/root permissions problem. It will happen to any theme/icons you download from the internet and install through the appearance preferences.
To fix this, there are two solutions:
-When installing a theme/icon set, install to usr/share/themes or usr/share/icons as root user, respectively.
- Or for an easier solution, run the following commands in a terminal:
sudo ln -s ~/.icons /root
sudo ln -s ~/.themes /root
And now for some screenshots of this sexy theme.
Sometimes it’s hard to remember certain things about technologies you use when developing a web application. I must admit that I frequent php.net occasionally to remind myself what parameters a function takes. With frameworks, extra php libraries, javascript libraries, and css it becomes increasingly more difficult to remember how to use all of these technologies. In comes the cheat sheet. Cheat sheets are great as a quick reference on how to use common features with a particular technology.
Here is a short list of useful cheat sheets:
Cake PHP - by Gwoo
Prototype 1.5 - by Jonathan Snook
Mootools r.83 - by Jonathan Snook
Scriptaculous - by Ryan Carter
CSS by Dave Child
You can find more of cheat sheets (PHP, mySQL, Javascript, etc) over at Dave Childs cheat sheet section
Jim Plush wrote an interesting article on what differentiates a PHP developer from a scripter in his opinion. He specifies in the intro that the criteria is for an ideal senior level developer. I agree with most of his criteria aside for the CSS requirement. I think it’s good for a developer to know CSS but if they are at the senior level then there’s a good chance they would never have to deal with the CSS in a project.
As for the other criteria he mentioned… I really need to touch up on unit testing :\
http://www.litfuel.net/plush/?postid=166
I came across a nice little blog that can help you pass the PHP 5 certification exam. It will be covering the following sections:
1.- Syntax
2.- Anatomy of a PHP Script
3.- Data Types
4.- Variables
5.- Consts
6.- Operators
7.- Control Structures
8.- Errors and Error Management
Not bad for starters. The official study guide may not be enough so it’s always good to look around for other resources.
View BlogÂ
A nice little helper for resizing images was published today by Josh Hundley at the bakery. The helper caches the resized image as well so that resize functions aren’t called every time the script is called.
When including this helper it is fairly easy to resize the image in your views.
Just use the following code:
echo $image->resize('myimage.jpg', 150, 150, true);
You can download the helper here