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.

Continue reading “Zend Framework tutorials – RFC”

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 http://www.webmasterworld.com/javascript/3449722.htm 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 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
    applications.
  • 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.org receives a facelift

Today eclipse.org 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 😛

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!

Install native 64bit Flash Player 10 on Linux

EDIT 4 (14 July 2011): Adobe released Adobe Flash Player 11 beta 1 so i’ve wrote a tutorial on how to install adobe flash player 11 on linux 64 bit

EDIT 3 (17 Sept 2010): Adobe launched Adobe® Flash® Player “Square” so i’ve put together a tutorial on how to install adobe flash player square on linux

EDIT 2: Libflashplayer is now hosted on this site since Adobe killed the URL. It’s not anything official or whatever, just a temp home 🙂

EDIT: updated the scripts to install the 64-bit Flash Player 10 alpha refresh for Linux that was released on February, 2010.

Adobe FINALLY released a native 64bit Flash Player 10 plugin. Although this is still an alpha release, the news is very exciting for Linux users, since we don’t longer depend on nspluginwrapper, which although does the job, has it’s drawbacks.

I have put together a small tutorial on how to install the native flash player 10 64bit plugin for linux.

#!/bin/bash
# Script  created by
# Romeo-Adrian Cioaba [email protected]earth.com

echo "Stopping any Firefox that might be running"
sudo killall -9 firefox

echo "Removing any other flash plugin previously installed:"
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper

echo "Installing Flash Player 10"
cd ~
# since adobe is not hosting libflashplayer anymore, the lib is downloaded from my site.
# wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
wget http://www.myscienceisbetter.info/flash-player/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
tar zxvf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/

echo "Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it."
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so  /usr/lib/xulrunner-addons/plugins/

# now doing some cleaning up:
sudo rm -rf libflashplayer.so
sudo rm -rf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz

You can now restart firefox 😉

Some users seem to have problems with viewing this page, so i wrapped everything needed to install the native 64bit flash player on linux into a shell script. Grab the Ubuntu script here, chmod +x and execute it.

Thanks to Claudio de Taunay for providing a script that works in OpenSuSE 11. You can pick it up here.

Thanks to Homer Xing from the Ailurus project you can now install native flash player 64bit on Fedora. You can pick up the script here.

Let me know if you encounter any bugs.

the scripts to install in different distro:
Ubuntu: install native flash 64bit on Ubuntu

Fedora: install native flash 64bit on Fedora

OpenSuse: install native flash 64bit on OpenSuse

This article is translated to Serbo-Croatian language by Anja Skrba from Webhostinggeeks.com.