Archive for the ‘Tools, Frameworks & Best Practices’ Category.

mysqlimport bug coercing long floats

Just ran into an error, using mysqlimport to pull in a tab-delimited file with long float values in BIGINT columns. When trying to import the value

866.897575000000057458

as an int, mysqlimport turned it into 866897575000000057458 – a bit off!

mysqlimport Ver 3.5 Distrib 5.0.45, for redhat-linux-gnu (x86_64)
(maybe this is fixed in 5.1, don’t know)

The ultimate personal organizer…

Posted some thoughts on my personal blog at

http://goldavelez.com/blog/2009/10/30/the-ultimate-organizer-will-it-be-a-web-app/

about the ideal organizer (smart, quick, easy, fast, private, snappy…). As someone much smarter said a long time ago, using your computer should feel like playing the violin – assuming, that is, that you know how to play the violin. But it should come to feel natural, like an extension of the body and mind. For humans, this means millisecond level feedback.

A new kind of CMS is in order

WordPress is not a bad CMS.  Fairly simple, well documented, has the requisite features like version control, trackback, authentication, and a nice set of user contributed themes and plugins.  Its pretty damn good.

But.  The basic CMS assumption that ‘the content originates here’ is flawed.  In today’s world, sometimes there may be another authoritative source of the content I wish to aggregate on my blog.  Even if I wrote it, for some reason I may have wanted to write it first on blogspot, or facebook, or linkedin, or some other site – but still have it appear on my central blog site.  What would be even better would be the ability to edit it on my primary site and have the edits propagate back to the other locations, if permitted.

WordPress, Drupal, other leading CMS’s do have the ability to pull in feeds and insert content from other sources, but they manage those feeds differently from ‘normal’ posts, as if they were an afterthought or add-on.

I’d like to see a CMS that has a single central content management system, which has additional fields for each bit of content:

- original/authoritative source
- rules/actions for edits
- rules/actions for updates from external sources

This would make it easier to manage content from multiple sources and in one place manage the rules for propagating that content.  An API should be exposed to request updates to the content, which other similar CMS’s could tap into.

While I’m at it, this ideal CMS would store a copy of all content in flat text files.  This would make searching faster and easier (not having to spider and then extract the essential content) and would allow use of all the existing text file tools!  (Like, Perl scripts ;-)   The name and path of the text file would indicate which bit of content it corresponds to, and the rules could be set to allow direct text file edits, or not.  Direct edits could be propagated back into the system.  This would make it much easier to bulk edit large amounts of content, not for theming, but for content accuracy, as is sometimes necessary.

Perhaps this could all be accomplished with some sort of WordPress-CodeIgniter hybrid?  Would be a shame to start something from scratch and lose all the cool themes people have made.  Well – will have to wait til another day.