Fork me on GitHub

Wednesday, December 24, 2008

FlatPress 0.812 Fortissimo

HO! HO! HO! MERRY XMAS!

xmas-reindeer.jpg

ChangeLog

+ Brand new indexing system
+ Many bug fixes (drafts, validation errors, etc.)
+ Cosmetic changes in default admin panel

How to upgrade from Vivace

That’ll be surprisingly easy, even though there is a brand new indexing engine!

1) do a backup (just in case ;) )
2) Download the package from SourceForge
2) unpack the file you downloaded
3) drop your old fp-content/ to the new flatpress/ dir you unpacked
3) login as usual; if anything doesn’t work here (it should, don’t worry), reinstall
4) go to the maintenance tab and choose to rebuild the index
5) wait for the page to load completely
6) scroll down, you should see a message saying the process has finished: you’re done!
6/b) you might need to empty the fp-content/cache/ dir if you had prettyurls enabled

Note: This is SVN rev227

Have fun!

UPDATE: if you’re experiencing a “syntax error”, try using these patched files. And tell your host they suck :D

Wednesday, December 17, 2008

110 e lode

awesome.png I’ve left it as we say it in Italian, since I couldn’t find a proper translation.

Anyway, great result :)

Sunday, December 7, 2008

Almost fainted

epic_fail.jpg

I was trying to give a refresh to my own personal blog with a brand new SVN snapshot; it’s been a long since I updated with the last changes the FP installed there.

I almost fainted when I saw a fatal error in FlatIndex/BPlusTree coming up.

What. The. Hell.

I have to discuss the thesis in a few days, I’m supposed to be working on the presentation, in fact. You can imagine how I could feel.

A few swears later, it turns out that I was reading a signed int as unsigned and therefore everything went horribly wrong.

I was already picturing images of EPIC FAILure (O NOES ENDIAN-NESS!) but luckily I was able to track the issue down; FIX’D in your SVN.

Now, you may ask, how did this trivial bug make to slip in the lib?

Well, in my tests even though the code was trying to read an unsigned value, the unpack() command still returned a signed value.

I suppose it was a bug in the PHP version of my tests. True story.

Well, finally all went well.

Thursday, December 4, 2008

Thesis printing

Let us all celebrate :D

FlatIndex (formerly bplustree.class.php) will soon be hosted at code.google.com

Please notice: MIT License… :)

Bye!