Thursday, April 23, 2009

Blog It!

In most of the cases, developers tend to blog or document the smartest stuff they have developed or found. Yes, we do. But at the same time, the solutions for the silly problems are harder to find, than those for the toughest problems. I think it is a good idea to blog about those silly mistakes we make each day, as they will definitely help someone over there damaging his head with the same issue. People mention it or not, the simple mistakes we make in computing, may be in building a project or some coding stuff, are to a considerable level, common mistakes!
Web 2.0 paradigm shift is becoming more obvious, I should say. I feel I am becoming more an information producer nowadays than being the consumer, and given below is just a proof.

Now we need a better uplink than the downlink, as active contributors to the Internet. Let's blog for the sake of sharing the knowledge and content with the world!

Monday, April 20, 2009

[GSoC 2009] Port AbiWord for Windows to Unicode

It's very nice to see me got selected for GSoC2009. And Abiword is one of the world's best and dedicated Open Source Organizations. I feel really honoured to join the Abi Team. 5 GSoC applicants have been selected for Abiword this time too, as usual (This was the case for the last 3 years).

My Project : Port AbiWord for Windows to Unicode

Project Proposal

Mentor : Mr.Dominic Lachowicz


List of Selected students for Abiword can be found here.

It's great to have a chance of getting a task that we prefer personally. GSoC offers us this opportunity. At this time, I have to consider more on my upcoming schedule and I will be following my project proposal time line for that.

I have to mention the great help offered to me during March and April by the Abiword developers. sum1, Robert Staudinger, Dominic Lachowicz, and Jordi Mas were always providing help and guidelines, whenever required, encouraging me and the other applicants.

Congratz to all my friends from University of Moratuwa who got selected for GSoC2009 and all the selected applicants for Abiword.

Awaiting an exciting summer!
Thank you.

Saturday, April 18, 2009

Crossbuilding AbiWord for Win32 using Ubuntu / Wine

Provided that you have Wine installed on Linux, you can follow these steps to build Abiword for your windows. 

(1) Install mingw. 

On ubuntu you need the packages mingw32, mingw32-binutils and mingw32-runtime 

$ sudo apt-get install mingw32 

 This will install mingw32 with the other two (mingw32-binutils and mingw32-runtime) dependencies. 

(2) Get all the dependencies in place.  

Robert Staudinger has packed them and made them available here. 

If this file is moved to somewhere else, when you are trying, you can alternatively download it here. 

Now unpack it in /opt. You will get /opt/win32 as base dir for the win32 stuff. 

(3) At the time of writing, I faced some problem in src/af/xap/xp/xap_Module.h 

The issue is solved here. 

An update (May 10th 2009): This issue is resolved now in the trunk. 

(4) Now use the commands to finally crossbuild:

1. source /opt/win32/bin/mingw-env.sh Go to to source tree and run 

2. CPPFLAGS="-I/opt/win32/include" ./autogen.sh --prefix=/opt/abiword --host=i686-pc-linux-gnuaout --target=i586-mingw32msvc *** when cross-building with robsta's pack if it demands for libtool, automake, or fribidi, a sudo apt-get install of these three will solve the issue (for Ubuntu). 

3. make 

abiword.exe will end up in src/. You need to copy it to /opt/win32/bin to run it under wine, or alternatively copy all the required DLLs to src/. 

Now you can take the directory containing abiword.exe to your windows machine to run Abiword.exe, which you have built just now!  

The Original Research by Robert Staudinger can be found here.

Friday, April 17, 2009

Facebook? Have a backup somewhere else!

I have seen many friends having interesting notes or even important details about their projects in Facebook. It should always be kept in mind, Facebook is not a safe place to store the important materials at all. There may be some security issues in Facebook. But here I am not talking about them. The problem I see with Facebook is their policy of banning accounts.

Being a super active user is more than enough for an account to be banned. If someone tries to make others aware about his activities or projects by posting several links or wall posts in Facebook groups, it is considered spamming. Having 5000+ friends or being a member of 200+ groups are valid reasons for banning you. In case, if you are banned, you may not get your account back. In that case, all the important data in your Facebook profile will be lost forever, including your notes, photos, friends list, and their contact details.

It is always better to start a blog in blogger or similar free blogging providers and then you can import notes from the blog to Facebook. In this way, you can make sure that your notes are safe, at the same time, they are shared with your friends via Facebook. Same applies to the photos. You can share your photos in Picasa or other photo album services using Facebook.

The moral of this story: We can use Facebook to share, but should have the original material somewhere else safe. Facebook is not a place to store your data!

Thursday, April 16, 2009

Abiword Screenshots

I have recently built Abiword using Wine/Ubuntu and using MSVS2008 apart from the typical Linux build. Since Microsoft Visual Studio build has not been completed yet (The sub menus missing yet, and hence currently under development), it seems cross building is a good option for building Abiword for Windows.


Snapshot 1: Abiword built using Wine, running on Ubuntu



Snapshot 2: Abiword.exe built above is now running on Windows



Snapshot 3: See the difference of Abiword built using Ubuntu (the standard build process), and using Ubuntu/Wine cross building, running on Ubuntu