Monday, October 26, 2009

Bespin Installation Experience

Bespin is a cool online editor, I was interested to participate and work  on it. The first thing to do is to install it locally on my machine in order to be able to edit it and test it. The first time I tried to install it was in the university lab, and it was a great failure, the cause of this failure was that the university IT department didn't trust the students enough to let them install something on the the computers of a lab they use in their course. The second try was at home on my laptop. I downloaded the tar.gz source of bespin, extracted it, and installed it, and guess what...mission succeeded. I trilled and almost made a party celebrating the successful installation after the great failure happened in the lab. Then I tried to create the database to get it ready to work, and when comes trial comes failure. It couldn't find something called "path in path", and when I went to the .py file and commented the line it is complaining about, it returned something else it can't find. So I uncommented it and "tried" to install some packages to OpenSuse and then tried to create the database again, but also failed. Then a friend of mine came and "did" install it and created a database successfully although he followed the same steps I followed, but he was working on Ubuntu instead of OpenSuse which I was working on. So I took his installed version of Bespin and tried to run it on my machine, it didn't run. So I tried to create a new database but also failed. So I gave up and decided to install Ubuntu on my desktop computer to know if it's something with my machine or it's a problem or a misfortune with me.

Tuesday, October 20, 2009

Ubiquity Exercise

Ubiquity is a great tool, it makes everything easy even when you are implementing new commands.
However I went crazy & started to scream out of anger in my room when I was doing the Ubiquity exercise because at some point everything went against me. I had a lot of things to search, don't know how to post authentication, cannot install a sniffer I needed to read what the browser sends to authenticate, time is running away, I need to sleep. For instance I still need to sleep. Good night.

Monday, October 19, 2009

Ubiquity Feedback Command

My experience in Ubiquity is nice. We had a task in the lab to add an Ubiquity command that takes another command as an argument and sends a feedback to the author of the command. Taking a command as an argument and being able to operate on it looked very tricky at the beginning, and I kept looking with a friend for a way to do that, and access the variables inside the command. We first looked at all the commands available trying to find a similar one, but that didn't work. Then we though about some naive methods, till we reached to the Go7a way of thinking by thinking about reading the documentation webpage and processing it to find the author through the web.
Finally a friend of ours told us about the function CmdUtils.getCommand(cmdName); however it didn't work for him, and didn't work for us either. Finally another friend told us that this command works only with the new Ubiquity that's not yet finally released. By that time the lab time was almost done and we didn't finish the command, and never tried again.