A while ago, we developed a simple chat protocol to-be-used for Zino. It’s still not in use, but we decided it would be a good idea to publish the specification so that other people could use it. It’s available under Creative Commons.
Archive for October, 2008
The Vilundo Chat Protocol
Wednesday, October 8th, 2008RabbitEdit
Saturday, October 4th, 2008RabbitEdit is a nifty tool that allows easier Rabbit development and saves you quite some time and effort.
Its purpose is to automatically do particular common things for you, like writing pieces of code, creating parent directories for your new source files, and add the newly created files (and directories) into the SVN repository.
It can be found in rabbit/etc/rabbitedit/ and its installation is as simple as:
# make install You can uninstall it similarly, running:
# make uninstall Its configuration file can be found at /etc/rabbitedit/rabbitedit.conf and follows the common configuration rules used by the most programs.
You can see how it works, by issuing:
$ rabbitedit --help
A simple example of its usage, could be the following:
$ rabbitedit --parents --svn libs/customer/settings.php
Let’s assume you are in the root directory of your rabbit project. By running the above, RabbitEdit creates libs/customer/ if it does not exist (this is indicated by the “–parents” option), adds that directory into the SVN repository (indicated by “–svn”) as well as libs/customer/settings.php, and if settings.php did not exist before, it creates it and writes a standard piece of code in it (having the information that the file is a lib, and is about the settings of customers). If the file existed before, it leaves it as it was. Then, it opens the file with the source code editor of your choice.
RabbitEdit is written in Python, and is designed with the hope it fastens up the development of Rabbit projects and gives developers the chance to avoid drudgery, and focus on really important things, like actually coding.
“echo” and “md5sum”
Saturday, October 4th, 2008A problem I faced when I attempted to manually set a password for my user in Water, was that I could not login. I created the md5 sum of my password, running:
$ echo mypassword|md5sum
and pasted it into the MySQL field of phpMyAdmin. After many login failures and enough searching about what is to blame, Kostis90gr found out that “echo”, is outputting a newline at the end of the string, so the md5 sum produced from the command above, was different than the one produced from PHP’s md5() function, simply because they were given different input. So, the right thing to do, is to pass “echo” the “-n” option, like:
$ echo -n mypassword|md5sum
which prevents “echo” from outputting a newline at the end of the string.
I hope this post is helpful, because my unawareness of this “echo”‘s little “particularity”, caused me quite enough frustration.
A Brief History of Comments
Wednesday, October 1st, 2008A quick first try to draw the commenting system of http://www.zino.gr
Commenting
Tags: comment system v.0
Posted in Excalibur | No Comments »