Today I needed to implement an unobstrusive replacement for native alert and confirm functions for a client’s project. I searched a lot of libs and solutions but none of them worked as I wanted. So I decided to at least try to implement one real unosbtrusive replacement. Here we go. First we need jQuery, jQuery [...]

{ 5 comments }

CodeIgniter: Date And Time Manipulation Class v0.2

by Vicente Russo Neto on November 4, 2010

Just made a new version of this class to fit a new project I’m doing. Dropped deprecated functions, added time manipulation and few code redesign.

{ 0 comments }

CodeIgniter: Date Manipulation Class

by Vicente Russo Neto on July 8, 2009

I made myself a class make some basic operations, like adding and subtracting days, months or years from a date, and return in mysql-ready format or timestamp. A class made for PHP CodeIgniter Framework.

{ 6 comments }

Working with large XML files in PHP

by Vicente Russo Neto on May 23, 2009

There are many ways to manage big XML files in php. When I say large, is really large, 10, 20, 30 mebabytes. If we were open a file like this on a common server, we certainly will have a time-out error. This is because we usually use SimpleXML functions. This extensions is, in fact, a “Tree-based parser”, just like “DOM Parser”. They work great in small-medium XML files (~1MB). They put the whole content on memory, and then, parse it. But when we face a big content, the only option is the “Stream-based parsers”. These are more efficiently and faster, because it read the file on demand, and don`t crush your server`s memory.

{ 7 comments }

Manipulando XML em grande escala com PHP

by Vicente Russo Neto on May 23, 2009

Existem vários métodos para manipular arquivos XML grandes. Quando digo grandes, são realmente grandes, 10, 20, 30 mega. Se fossemos abrir um arquivo desses em um servidor comum, certamente a operação ia terminar com um “time-out”. Isso porque geralmente usamos as funcoes da extensão SimpleXML. Esta extensão tem um “Tree-based parser”, assim como o “DOM [...]

{ 8 comments }

CodeIgniter Folder Icons for Leopard

by Vicente Russo Neto on May 3, 2009

Hello there! I decided to play a bit and make some folder icons. So here is my contribution for mac developers on this great framework. I made 3 versions, yellow, red and default blue color. The icon set includes sizes from 16px to 512px, and real folders (just drag and drop on “get info” dialog). [...]

{ 15 comments }

CodeIgniter: Dicas

by Vicente Russo Neto on March 10, 2009

Hoje eu vou dar alguams dicas que eu uso em todo projeto envolvendo CI. Primeiro, no “url_helper“, eu fiz a seguinte modificação na função base_url()

{ 2 comments }

CodeIgniter: Tips & Tricks

by Vicente Russo Neto on March 10, 2009

Hello, Today I’ll post few modifications I use on every CI project. First, on the “url_helper“, I made this modification oon base_url() function …

{ 2 comments }

CodeIgniter: Friendly pagination with search system

by Vicente Russo Neto on January 29, 2009

After a long pause, here am I. Well, there’s a few tutorials around, including the official CI wiki suggesting a more friendly pagination implementation, with page numbers on the link, because the actual CI pagination works with the offset from the database. The code I use today is from the official wiki, but the search [...]

{ 7 comments }

CodeIgniter: Paginação mais coerente com sistema de busca

by Vicente Russo Neto on January 29, 2009

Depois de longa pausa, cá estou. Bom, existem alguns tutoriais e artigos por aí, inclusive no wiki do CodeIgniter explicando como usar uma paginação mais coerente. Digo isso pois a paginação atual do CI trabalha com o offset do SQL, e não com o número da página em si. O código que uso hoje foi [...]

{ 6 comments }