A, mostly text, Blog!

You can also checkout the Blog Archives. Below are the latest posts.

Creating a semi-static website with CodeIgniter ROUND 2

Monday, 06 June 2011

I'm a bit late with this article (just about 4 months xD). The use case for a site like this is very limited and I don't think it's very common, but here's another way to use CodeIgniter for a static website. This article builds upon the previous related article Creating...

Go to Article

Upgrade headaches from Rails 2.3.5 to 3.0.5

Friday, 15 April 2011

Upgrade! The guide is at Upgrading to Rails 3. An excellent guide. :) After a successful initial upgrade, you have to fix the compatibility and deprecation issues. Unobtrusive Javascript If you are using jQuery as your UJS adapter, make sure you are using jQuery >= 1.4.3, since that's when they...

Go to Article

Must-read links for Advanced Javascript

Friday, 15 April 2011

Currently, Javascript is big. If you have recently learned about it or already have worked on it and find that you are loving it; you will probably arrive to a situation where you need to create a BIG Javascript application. Unfortunately for you, there are no online tutorials or resources...

Go to Article

Rails 3 Unobtrusive Javascript not working with jQuery!

Tuesday, 15 March 2011

So you started switching to Rails 3 and found out that the :remote => true option is, strangely, not working with your jQuery UJS adapter? Make sure you are using jQuery version >= 1.4.3 HTML 5 data- Attributes As of jQuery 1.4.3 HTML 5 data- attributes will be automatically pulled...

Go to Article

Preview all Pygments Styles for your code highlighting needs

Tuesday, 22 February 2011

For quickly outputting all the styles (available on my system) I used: $ for i in monokai manni perldoc borland colorful default murphy vs trac tango fruity autumn bw emacs pastie friendly native; do pygmentize -f html -S $i -a .highlight > $i.css; done This doesn't work without Javascript. :(...

Go to Article

Zend Form Recipes

Friday, 03 September 2010

When I had to work on a project using Zend Framework 1.10.X, I encountered a few issues/problems/obstacles. Last time I worked with ZF, the version was 1.7.2, so things changed a bit. This post describes my solutions to those questions/issues/etc. For reference, the application namespace prefix used in the following...

Go to Article

Creating a semi-static website with CodeIgniter

Wednesday, 19 May 2010

UPDATE 28 February 2011 6 June 2011: There's actually a better another way to do this!, I've created a post as a follow-up for this one. Please check it out if you want to save some typing. ;) Creating a semi-static website with Codeigniter ROUND 2! Next time, when faced...

Go to Article

Bash shell script to setup a web project development environment

Wednesday, 19 May 2010

My development environment is always my local machine. Since I was tired of always repeating the same steps to setup a new web project, this script was born (actually I few years ago, but now I'm comfortable enough to publish it). This is also coupled with my project skeletons hosted...

Go to Article

Learning Google Checkout and the Notification API

Tuesday, 02 February 2010

This is geared to the seasoned developer, and it provides only the basics for starting a complex Google Checkout integration. So, let's begin: Reading Material Integration overview Checkout API New order notifications The Setup It has to be done in the sandbox, when everything goes fine, you just switch to...

Go to Article

Dynamically adding jQuery tabs: round 2

Tuesday, 11 August 2009

In my previous related post, I did not provide working code. I thought I was. I also was giving the example using jQuery DOM, therefore adding an unneeded dependency, which is never good. With this post, I'm trying to fix that. Here's a real quick demo where you can see...

Go to Article

FormIgniter, Easy form generator for the CodeIgniter framework

Thursday, 09 July 2009

A few days ago, I was pointed to a project that generates CodeIgniter forms in an easy to use way, and a great looking interface: FormIgniter. Basically, it is a form that creates forms :). As I am a form generation freak, I immediatly checked it out. If you are...

Go to Article

A base controller for CodeIgniter

Thursday, 25 June 2009

After creating several small to medium CodeIgniter projects, I have adopted the habit of creating a base controller with the following methods: <?php class MY_Controller extends Controller { private $view = array(); private $view_path = ''; public function __construct() { parent::__construct(); $this->init(); } /** * Override this method in child...

Go to Article

A Job Feed Aggregator for Location Independent Developers

Tuesday, 23 June 2009

This is just me scratching an itch. It attempts to make filtering jobs/gigs a lot faster. An interesting note: while I'm currently not interested in jobs that require working on-site, one could learn about the market trends by looking at them. By market trends I mean: new technologies, new languages,...

Go to Article

CodeIgniter autoload exceptions

Wednesday, 17 June 2009

CodeIgniter's autoload feature is really nice for avoiding the boring task of loading common libraries (for example: database, session, or a custom library). But what happens when you need to avoid autoloading some libraries in a specific controller? I googled for a bit, before reading the source. So here's a...

Go to Article

Adding jQuery tabs dynamically, or what to do when there is no pre-existing HTML for the tabs

Sunday, 26 April 2009

UPDATE August 11, 2009: I realized this article had a major flaw: no working code! So I wrote another article and, in addition, you can go directly to the demo. If you have worked with jQuery for some time, it is most likely that you already heard about jQuery tabs....

Go to Article

Installing Jekyll on Ubuntu 8.10

Monday, 02 March 2009

Jekyll is a simple, blog aware, static site generator. Probably because I don't know Ruby, it took me a considerable amount of time to set up, so I thought this could be useful for a person in a similar situation. Assuming you don't even have Ruby: $ sudo apt-get install...

Go to Article


Wednesday, 25 February 2009

For the past 8 months, I have been working in a startup involved with XMPP technologies, and (almost) real-time web applications. It has been a great ride, and is still going on. In that period of time, I've learned a lot by just attempting to do things never tried before,...

Go to Article

Invalid controller specified - Zend Framework

Saturday, 30 August 2008

I just lost some time doing the WTF dance, so I'm taking a few minutes to make this note for future reference. Also, because I have a very fragile memory. One of the common errors that new users of ZF get, is the "Invalid controller specified" error. Which means exactly...

Go to Article

How to embed flash content in web pages (for the busy person)

Thursday, 21 August 2008

Go here and grab the latest SWFObject files. Then head to the online generator. Generate. Copy & paste, and you are set.

Go to Article

ejabberd doesn't run after apt-get install ejabberd

Monday, 18 August 2008

This is on Ubuntu. Edit /etc/ejabberd/ejabberd.cfg and make sure that the host in: [code] %% Admin user {acl, admin, {user, "nemo", "ns-interns02"}}. %% Hostname {hosts, ["ns-interns02"]}. [/code] is a valid DNS name. I didn't try with with the default value of localhost.

Go to Article

The blog archives