PHP wordpress

Made the switch to wordpress

I’ve been using MovableType as the platform for my blog and i’ve been really happy with it. The reason i decided to switch to WordPress is simply because it’s written using PHP and i’m able to easily extend it, unlike MT which is built in perl.
I haven’t got a change to import the comments so far, but hopefully i’ll get to that this week.

Let me know if you find a broken link or something unusual.

zend framework

Zend Framework tutorials – RFC

After a talk on #zftalk I’m thinking to start witting a site that would allow the Zend Framework community to submit learning material.

The site is going to be called Zend Framework Tips

I have a few ideas of my own, but i want to hear more from you.

Counting Crows Goes Label-Free

Counting Crows is joining Radiohead and Nine Inch Nails in the initiative to release music outside of the normal music industry (label/distributor).

Lead Singer Adam Duritz announces on the bands website:

The internet opens a world of limitless possibility, where the only
boundaries are the boundaries of your own imagination. We want a chance
to push those boundaries back as far as we can. Unfortunately, the
directions we want to go and the opportunities we want to pursue are
often things that our label is simply not allowed to do. We’ve been
friends for a long time and we’ve worked together for a long time so
they understand the direction we need to go in and we understand why
they can’t always go there with us. We all want what’s best for
everyone which is why we’ve decided to part ways.

Jono Bacon started the severed fifth project a while ago, which aim is to prove that a band can make it on it’s own and i’m sure he will succeed.


Timed cycling of DOM elements using Javascript

I had the following sequence of code:

  • test 1
  • test 2
  • test 3
  • test 4
  • test 5

What i wanted to achieve was to add the class “selected” to the childrens of #parent one at a time, having some delay in between. When then next element is selected, then the element before it should lose the selected class.

Based on the great work of cmarshall at and adding a bit of jQuery i was able to build a page using jQuery that does that.

I didn’t bother to put the all the code here, you can just view source in the demo. The code is pretty much commented so you shouldn’t have any problem understanding it.

You can click here to see it in action.


Features i’d like to see in a GTD application

I’ve been working for more than 6 years in “software” development doing php programming as a freelancer and for my own company. After all these years i find that most time on developing a project is spent understanding what you have to do and letting other know what they have to do. In other words, getting things done.

The application to let u better organize should:
1. let you add tasks fast, without getting your hands off the keyboard
2. allow you to collaborate with others (ie: assign tasks to them and get tassk from them)
3. track time you spend on a task
4. invoice clients based on the time spent on their tasks
5. not get in your way
6. have a desktop and a web version

Each task should support:
– comments
– file attachments
– subtasks

More to come. Feel free to sugest what would you like to see in such an application.


TextMate skin for Eclipse (darkmate ported to eclipse)

After a few hours of setting up the colors, i have managed to port the darkmate skin for gEdit to Eclipse. The settings work for PHP, JS and CSS editors, although i will need some feedback on the JS and CSS implementations.

Here are a few screenshots:

Here are some of the colors i have user:
background: #232323
text color: #FFFFFF
comments: #BB66FF
keywords: #FF9900
numbers: #00C99B
strings: #96FF00
variables: #009CFF

You can download the darkmate-eclipse.epf, but before importing make sure you make a full backup of your preferences.

eclipse PHP

Eclipse plugins written in PHP?

On another Eclipse related news, i have noticed today the GSOC 2009 ideas for eclipse. Although all the ideas are interesting, what catched my view was “Write Eclipse plug-ins in PHP
” through e4.

e4 is the community effort for building the next generation of the Eclipse Platform. The project has three principle aims:

  • Simplify the Eclipse programming model: This will
    reduce development and maintenance costs and enable a larger developer
    community to leverage the platform in their own Eclipse-based
  • Enable the platform for use on emerging web-based runtime technologies:
    This will ensure the platform remains a compelling and viable
    application framework in a rapidly changing web technology landscape,
    and it will allow e4-based applications to leverage web technologies,
    while remaining insulated from specific technology choices that may
    quickly become obsolete.
  • Broaden participation in development of the platform:
    This reduces the risks associated with building on a platform largely
    funded from a single source. Having a large and diverse group of
    commercial backers, will ensure the platform remains vibrant and viable
    over the long term.

Please refer to the project proposal for more information, including the initial list of committers. The e4 project summary page is here.

I’m really interested to see what comes out of that.

eclipse receives a facelift

Today received a new skin. It’s great for me so see that they are going for a simpler design, that will appeal to more people.

For developer of any kind, eclipse seems the way to go. They have a ton of projects that are in constant development. I think they have one of the most active communities in the open source world. Note that unlike Linux communities that don’t have a lot of backing up from enterprise, eclipse has quite a few huge “strategic members”.

I can’t wait for the next release of PDT 😉

Generating random numbers

This is just an idea, don’t throw rocks at me if someone else posted it before or if it turns out to be utter crap.

I’ve been thinking on how one could generate random numbers. My first thought was that you would need some complex algorithm then a few nights back I observed something in nature while waiting for a friend. It was snowing.

Looking for a while how the snow flakes were going every possible directions I realized that their movement was pretty random. At least it was to my eye. Let’s imagine you have camera that’s able to capture in perfect 3D images in HD. You could then get each flake’s coordinates using adequate software that can identify objects into a 3D image.

There you go. Random number of snow flakes in a frame, random position of each snow flake in each frame. Add some external randomizer (like some wind) and you really get some interesting stuff.

Can someone confirm if there is even a small chance that at least two snow falls can be identical? Then my idea is utter crap 😛

linux ubuntu

Chmod only files or chmod only folders

I moved the blog the a new server and i realised that all the permissions got screwed up on the process. All files and folders were having chmod 777, and that’s not exactly ideal. After digging a bit on google on how to chmod only files or chmod only folders, i came up with this:

1. Recursive chmod only files within this folder:
find . -type f -exec chmod 0600 {} ;

2. Recursive chmod only folders within this folder:
find . -type d -exec chmod 0755 {} ;

Hope this helps!