Filed under Python

Vista to Ubuntu (100%)

I had enough with eating crap with Vista. My last line of patience warned off when I happened to wait about 5 seconds when changing from one MS Doc file to another and also happened that I was running with time to finish a project report. No, I’m not running on 256 ram, it’s 1 GB and this kind of a time wastage is totally unacceptable. You may ask why I put up with Vista in the first place. That’s thanks to HP’s decision to embrace Vista so my laptop was pre-built with Vista and no chance to downgrade because there are no drivers. So where to go now ? Easy….Gutsy.

So I’m now another guy who left windows permanently because of their own defects. I was playing dumb with Vista for this long had nothing to do with Vista being better, it’s because of substitutions not being available for some applications that I was used to in Windows environment – mainly Macromedia(now Adobe) Dreamweaver and Fireworks. Now before biting my head off, yes – there are good web developer editors in Linux such as NVu or KompoZer but they will need another few developing years to get into the same line as Dreamweaver (which had a long time to develop into the state now in) and I have to have some thing until then.

But my worries were groundless as Wine now supports Macromedia 8 series like a babe. Dreamweaver, Fireworks and Flash all works perfectly with Wine – installation to Execution. Another great thing with Gutsy is that my Broadcom network card support is inbuilt and with some additional applications I can search networks and connect to them like a charm. Also I’m using AWN manager to manage desktop (here is a great article on desktop styling – thanks to Lakshan) and now it looks like a hybrid between Leopard and Vista. So what else I can ask for ?

Here is my application list in Ubuntu.

Web developments = Wine + DreamWeaver 8

Web images = Wine + Fireworks 8

Photo Editing = Gimp

Java editor = NetBeans for Linux

Python = Eclipse with PyDev plugin

IM client = Pidgin

Wifi manager = gtkwifi and wifi radar

Skype = Skype for Linux

Btw, My machine is AMD 64 X2, therefore had some issues and had to do some tweaks when installing some applications but nothing I can’t handle with some effort. The catch is that I can work with all comforts like in Windows with half the memory usage as in Windows.

Vista-Leopard Look

DreamWeaver in Ubuntu

GTKwifi

End of a great three months

First, I’m sorry about not being able to post any thing in a while. I’ve been caught up with my Summer of Code final works and university works, I’ve hardly had any time left. Summer of Code finals evolution began on 20th August and I’ve tried to finish all goals before the deadline.

By midterm evolution, I had built the basic work for the text engine. It had a solid structure and ability to render inline tags by then. But after the midterm evolution I pushed myself bit hard than in the first half of SoC and could finish all the goals I’ve setup with my mentor.

Now Foiegras has the ability to render both inline tags and block tags. Rendering block tags had been something to think over and it was very satisfying to see it’s accomplished at last. Then it came to rendering images, and it wasn’t hard as implementing block tags and could finish quickly. Also meanwhile I understood that the text editor should have a mechanisms to validate and render tag attributes. So I’ve implemented the structure for attribute validating and rendering, in which you can define what are the attributes that’s valid under a given tag and what are the valid values for that attribute. (Similar to a DTD) . As the final goal I’ve planned to finish Foiegras table support, which is a bit complex task since Foiegras table structure has considerable amount of attribute variations. Because of this, I’ve focused only on implementing the basic table support within the SoC time period and could finish that. This is the current status of FoieGras text engine.

Even though the GSoC time period is over, it’s really is the beginning of FoieGras project. Since this project is starting from the scratch, I only focused on basic needs of the text editor that will be required for a first release. For this release two parts of the project will be merged and come as a complete text editor. I’m itching for that first release to see how the response is going to be since that’s what we will be reaping from the effort we have put into the product.

This three months of time period has really made an effect on me. It has helped me to get more in touch with Open Source developments and directly contribute to it through Gnome, which is the most favourite Linux desktop environment according to a survey of DesktopLinux.com. It was a great pleasure to work with such a community which consists of a large bunch of very entusiastic people.

Throughout the Summer of Code time period and even before that, my mentor Don (Don Scorgie) has been a great help to me, and for that I’m in debt to him. He is also the one who directed me to this project at the beginning when I was looking out for projects. Also my partner in Foiegras throughout Summer of Code period -Phenatic and his mentor Shaunm have been very supportive throughout the project. Phenatic has implemented a cool application shell for Foiegras and as I’ve mentioned before we have to combine the application shell and text engine for the first release. As a final remark, I’d like to thank everybody who has given a hand to this project and made me possible to product something useful(hopefully) for FOSS community.

Screen shots of the current FoieGras text rendering status is given below.

The final look of fiegras text rendering at the end of SoC

The final look of fiegras text rendering at the end of SoC

FoieGras- First look at how the text rendering

After about a months of time into the GSoC project, I was able to finish the first significant improvement in the project that happened from my side. For a long time I was wandering here and there testing one thing or the other to see what’s working best and finally had enough of it.

For now FoieGras (The code name of the editor we are developing) text engine is capable of these capabilities. It can render some given tags but only inline tags. It can hide and show tags so if the user wanted to see tags and work with tags it’s possible. Also you can add more tags and configure the style tags are rendered using a configure file. I think it’ll be the main configure file regarding text rendering functions. After phenatic ( http://phanatic.hu ) has released the first UI part we’ll be able to map the menu events to this text rendering functions and present the first release of FoieGras. :-)

To tell you how the implementation of FoieGras is done, well it’s all done using python and pygtk as the wrapper for GTK to do UI things. First I planned on implementing the text renderer using some thread system, giving a thread to take care of each tag. But soon I understood that it’s a waste of time and resources so thought of a better way. Now the text rendering is done through the XMLparser that comes with python and so far it’s working nicely.

Also my mentor ( Dr. Don Scorgie - yeah, he is now a doctor :-) . Congrats Don ! ) is giving me a good support and good ideas. FoieGras now has a repository in GNOME svn and I’ve created a branch for tags rendering implementations and copied my works there, So you can check it. And another news is that I’m planning to goto GUADEC in next 14th July and I hope it’ll be fun and be able to discuss more about FoieGras there with the team and also hack FoieGras there.

FoieGras-1

FoieGras-2

FoieGras-3

SoC Preparations

My Hackergotchi

About 3 weeks after the acceptance into my SoC project I thought of putting a note saying what’s going on with the project.

Actually there’s a fair amount of work going on with SoC already. Even though we are not to start coding until May 28, there are things that have to be done before coding starts.

We have been given extra 2 months ahead of coding in order to better preparing for the project and get to know the community. It’s really good to have some time to understand ethics, ways and workings of new environment. that we are working with in next 3 months and may be for quite some time after that. So most of the organizations seem to using this extra time wisely and getting to know about their SoC students and making them comfortable with the community.

Talking about Gnome, it’s really great to work with them. Gnome got 29 projects selected for this year SoC and they are giving a great support to their students. After getting selected first thing I did was chat with my mentor and other guy who will be doing the other part of the project. ( Since the scope of this project seemed too long for SoC time line, Gnome divided the work load into two, thereby giving me most of GUI and may be some widget works and giving Phenatic most of inner works such as subversion integration, adding functions to send patches, more widgets.etc). So we had a sort of group discussion with 4 of us(Me, my mentor, Phenatic and his mentor) in IRC. Then I subscribed to Gnome SoC and Developer mailing lists. Gnome-soc mailing list is the place where all the Gnome SoC students can express their problems, progress in their projects and also can be used as a meeting place. After that I sent my blog and Hackergotchi to Gnome and hope it’ll be integrated into Planet Gnome soon. Yeah, above is my Hackergotchi ( I know it seems funny). And if any one interested in the FoieGras project you can reach us through IRC, gimp.net #doc or #gnome chanels.

I also requested for a new SVN account in Gnome because it’ll make my works easier to have a separate account when doing the coding. There are some strict policies into getting a new account in Gnome and they seem to take security of the accounts very seriously and I agree with that. And also we have to give a sort of a report of what we have done in every week to Gnome starting from this Monday. Yeah, Gnome is taking a head start into the SoC projects and I think it’s a good thing, to keep in touch and correct mistakes ASAP before being too late.

And finally, in personal matters I’ve been doing some python and working with pyGTK which will be used to do the GUI parts of the project. And also I bought a wireless router so I can completely move into Ubuntu. (By the way, if you haven’t tested Fiesty, it has some good features, give it a try.). Hmm, Eventful days these are with nearing the start of SoC projects.