Writings Photos Code Contact Resume
English

You are here

Written in English.

She's now dead. He was right.

Submitted by msameer on Fri, 28/12/2007 - 11:02am

Me: Benazir is running for the elections
Qsm: But Musharraf will stay anyway.
Me: You are probably right because you are Pakistani but how can it happen ?
Qsm: Musharraf will stay.

Now he's right although I didn't really believe him.

God bless her soul.


More packages for Chinook.

Submitted by msameer on Sun, 16/12/2007 - 2:47am

I was trying to package hunspell-ar for Chinook so I ended up packaging:
* hunspell (libhunspell and its development headers)
* enchant (hunspell and ispell providers but I'll disable ispell soon)
* hunspell-ar
* dictionaries-common and dictionaries-common-dev (hunspell-ar depends on them)

As for dictionaries-common and dictionaries-common-dev, they are different than the Debian ones. Yes I'm using the same source but I'm only providing the bits related to myspell. I didn't include the policy too.

uri = ftp://foolab.org/pub/apt
dist = chinook
components = spell

him-arabic is also available as well as a few Arabic fonts:

uri = ftp://foolab.org/pub/apt
dist = chinook
components = arabic

hildon input method and new languages...

Submitted by msameer on Fri, 14/12/2007 - 5:25pm

I noticed this because of my work on him-arabic.

If your plugin provides a language other than the 16 "known" languages, It will be displayed as " ()".

Ideally, The fix should be somewhere else but not all of the components are open so even if I can fix it, I won't be able to publish patches or packages.

It seems that the source provided with the SDK is a bit outdated so I had to grab the latest trunk: https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-input-method/

And here's a patch. It'll return the language code if it fails to get the language description. (I know it's a bit hackish :|):

diff -Naur him.orig/src/hildon-im-languages.c him/src/hildon-im-languages.c
--- him.orig/src/hildon-im-languages.c  2007-12-14 19:09:29.000000000 +0200
+++ him/src/hildon-im-languages.c       2007-12-14 19:12:31.000000000 +0200
@@ -82,7 +82,18 @@
   }
   if (translate_function)
   {
-    return (*translate_function) (lang);
+    gchar *res = (*translate_function) (lang);
+    if (!res) {
+      return res;
+    }
+    else if (!strcmp(res, " ()")) {
+      g_free(res);
+      res = g_strdup(lang);
+      return res;
+    }
+    else {
+      return res;
+    }
   } else
   {
     gchar path [sizeof(GCONF_TRANSLATION_STATIC_PATH) + MAX_LANG_LENGTH];

Apply, build the packages and install hildon-input-method_1.99.33-2_armel.deb and libhildon-im-ui3_1.99.33-2_armel.deb

I hope it will be fixed otherwise I'll be providing packages soon. I know I promised to provide a lot of things (-:

Have a nice weekend.


My Arabic related TODO list for maemo

Submitted by msameer on Tue, 04/12/2007 - 5:45pm

This is my Arabic related TODO list for maemo. It's my personal one not the Nokia employee one :-)

* katoob should be fully functional (I'm learning here). Actually I did more work today and I guess it's fine.
* Package and publish some Arabic fonts (I know there's one provided by the browser team).
* See what can be done regarding input (Low priority. Sorry to say that I don't like the HIM plugin interface).
* Check arabeyes.org apps. Is there anything useful and needs "porting" ?
* glibc/x11 Arabic locale ?
* Any suggestions ?

I'll not translate the UI for 3 reasons:
* I'm not of a translator.
* The license you agree to while downloading the OS image prevents me from doing that.
* Because we are using logical IDs in the code, we will f*** up the UI unless all of the strings are translated.


Pinkish KDE...

Submitted by msameer on Sat, 13/10/2007 - 4:13pm

Of Charles de gaulle again

Submitted by msameer on Thu, 27/09/2007 - 12:16pm

Now I remembered when I was lost in CDG airport. The only person I found to ask spoke french. I was asking her in English, she was replying in french. I didn't understand her and probably she didn't understand me. Yet I managed to find out what I wanted!!

** I hate that airport anyway


Of Charles de gaulle

Submitted by msameer on Fri, 14/09/2007 - 10:15pm

After missing the Paris Helsinki flight:
"Here's your new ticket. But you will have to go out and re-check in again. I can't give you the boarding card as the other flight is using a different system." And also: "Tell them about your luggage when you check in so it will be with you on the same flight".
-- Air france customer care, Charles de gaulle airport.

Of course the bags arrived next day. What do you think ? The people working in Charles de gaulle can not give up their habits of delaying your bags.


hunspell-ar for debian hits NEW.

Submitted by msameer on Sun, 12/08/2007 - 2:10pm

I've just uploaded the result of the ayaspell-dic project packaged for debian as hunspell-ar (The Arabic hunspell dictionary).
The packages are now waiting in new.

The same packages can be downloaded from here. Maybe someone other than me'd like to use them ;-)


Yes for Debian Maintainers...

Submitted by msameer on Sun, 29/07/2007 - 9:02pm

* Yes, they can upload crappy packages but we can ask to revoke an account.
* Yes, they can upload crappy packages but someone must sponsor the 1st upload.
* Yes, they can upload crap but a DD is advocating them. If they are smart enough to fool a DD to get an DM account then they are smart enough to fool him for the DD process.
* Yes, they can seek sponsors but finding sonsors is not that easy (At least for me).

Perhaps there's a way to identify the DM uploads so we can do more checks "not part of the process" ?


mbox splitter

Submitted by msameer on Sun, 22/07/2007 - 10:56pm

Just because I can't run sa-learn on my 15,000+ messages spam folder. It'll crash due to some hardware problems.
I thought that splitting the mailbox into smaller files will allow me to feed it to sa-learn.
I'm not sure something similar doesn't exist but I wrote mine anyway ;-)

The only problem is it consumes a lot of CPU and RAM, it was killed/crashed multiple times but it worked and allowed me to feed my spam mailbox to spamassassin!

Here it is in case someone needs it: split_mailbox.py. Needs python 2.5


Pages