Building simplicidade.org: notes, projects, and occasional rants

Notes

last update:

iPhone

It's here, everybody has an opinion: I like: the weight is the same as an iPod 5G. It's a tiny bit shorter, and a tiny bit thicker;160 dpi screen.I don't like, but I hope they change it in time: the lack of support for third party applications;the lack of 3G: I don't believe they will launch in Europe without this.Overall, very very good. I want one. Update: there is a good iPhone video demo online at YouTube.

Tip: MySQL is not that helpful sometimes

Stupid problem today. In a listing I had, I had a percent column. The problem was that the database definition for that column was wrong, it used DECIMAL(2,4). Yes, 100% will not fit in there. Also: this syntax was valid in 3.x but with 5.x you need DECIMAL(6,4). I'm using now DECIMAL(7,4) to fit the edge case. My peeve with MySQL is that if I give him 100 to put in that column he will not complain nor store NULL.

In case you where wondering...

This site will be on-and-off during the day. The 4th result in the Google search results for iPhone is hosted in the same server as this site... We are dealing with it :).

In case you where wondering...

This site will be on-and-off during the day. The 4th result in the Google search results for iPhone is hosted in the same server as this site... We are dealing with it :).

Recipe for true geeks.

Grab one of these. Add several of these for flavor. Choose your toping from these choices (some can even be combined). Stir (gently). No need to add water. You are probably drooling just about now, thinking about this.

ZFS

The ZFS filesystem seems to be too good to be true. A good presentation about ZFS major features is available. Having instantaneous snapshots is something that I grew accustomed to with NetApp OnTap filesystem. I love the idea of having them in my servers. And if you believe the rumors flying around about Leopard, soon in a laptop near you. Regarding the Mac, using ZFS as the basic filesytem for Mac OS X would be a superb move, and would give them for free all the technology to implement Time Machine.

Programming Jabber

Some people I know are starting programming with Jabber/XMPP. The classical book on the subject, "Programming Jabber (Programming)" (D.J. Adams), is a out-of-date, but is still good to browse for basic protocol notions, some of those are still the same. The entire book is also available online now. The best book right now is probably "Jabber Developers Handbook (Developer's Library)" (William Wright, Dana Moore), but that is also a bit out-of-date.

Land of the free...

Some states keep getting better and better. I wonder if the USA is still a safe place to visit...

This might be obvious to many of you, but it wasn't for me, so here it is. If you have a many-to-many relation in DBIx::Class, you can remove all the relations with: $self->set_RELATION_NAME([]); The set_RELATION_NAME method is created automatically for each many-to-many relation you setup. It can receive a list of objects that will become related to $self. The obvious $self->set_RELATION_NAME(); will croak on you.

GraphViz under Mac OS X

In case you are trying to install the Perl module GraphViz under Mac OS X 10.4.x, you might need this script. First, install a decent version of GraphViz. I use this snapshots of Graphviz by Ryan Schmidt. Be careful not to use this version on MacIntel's, the package is PPC-only. After this is done, add /usr/local/graphviz-2.12/bin to your PATH. Second, while installing the GraphViz module via CPAN, one of the dependencies is IPC::Run, which might fail on your system.