Older blog entries for zeenix (starting at number 121)

3 Aug 2007 (updated 3 Aug 2007 at 11:02 UTC) »
The new Spock:

Guess who is going to play the role of Spock in the coming Star Trek movie? No! wait! don't waste your precious time and brain resources because you simply can't guess this one. The person chosen for this role is none other than Zachary Quinto. Who is that? he is the 'Sylar' in Heroes. :) We had some fun over this fact after i found it out last night:


<zeenix> guess who has been selected for the role of
spock in the coming star trek?
<jumpula> matt damon?
<zeenix> no no
<zeenix> that was for kirk
<zeenix> it's it's it's
<zeenix> 'Sylar' :)
<jumpula> noeees...
<zeenix> i am having trouble imaging him saying 'Live
long and prosper' :)
<jumpula> i'll bet he eats kirk's brains first chance
he gets
<jumpula> and kirk is matt damon?
<jumpula> this is bad :D
<zeenix> :D
<zeenix> and he'll say 'logic dictates that i eat your
brain' :)
<jumpula> :)
<jumpula> the needs of the one outweigh the needs of
the many
<jumpula> wonder if he get's the kirk's luck with the
ladies from the brain
<zeenix> lol

GUPnP tools

In my last communication with jorn regarding the universal control-point, he suggested to keep this in a separate package and it made sense since there shall be two binaries of the control-point provided, a console-based and gtk+ one and I am thinking of adding at least one more tool: a simple light-bulb, a free replacement for Intel's light-bulb, which would be a very nice and simple example of a gupnp-based control-points. All this combined with the fact that a separate package would allow me to use git all the way. :P There were two problems however:

  1. How do you move a particular directory from one git repo/project to another with all the history intact? I asked daniels if there is way to do that and he advised me to try out git-format-patch and git-am and that is what i did. After playing with git for a while last night, I was able to achieve my goal before 2am. :) Turns out that it's very simple if you know what to do:

    git-format-patch -o /tmp --binary <commit1> [commit2]

    where 'commit1' is the id of the last commit before the first commit to that dir and 'commit2' is the last one which you can skip if all commits after 'commit1' are to the same dir. You can find the commit ids to use through 'git-log' command. You'll get a bunch of patches in your cwd after this step. Skim through those patches and remove/edit them if necessary. Then go to the directory of the repo/project where you want to move your stuff to and:

    git-am /tmp/*.patch

    And you are done. :) Make sure there are no other patches in /tmp.

  2. I'll need to setup my git repo on a machine visible to everyone, which is static.fi for me. The admin told me that he is going to set it up but after he is finished with assembly (which is next week). The problem is that I (and some other git users either) don't know how to clone a repo. from my machine (which is always behind a NAT) to a remote machine. I heard it's only possible if there is a git daemon running on the other machine and I don't know if that admin friend of mine would allow that.
29 Jul 2007 (updated 29 Jul 2007 at 23:10 UTC) »
Feature-complete GUPnP released:

Although a bit of old news now but for those who haven't heard, GUPnP's first feature complete release is out. Since it now provides the same level of API that intel's libupnp provides, all the projects out there that were using libupnp until now can (and must) start using gupnp now if they want to be gmainloop-friendly and don't want any threads to be launched behind their backs.

To be (a git) or not to be

I tried git for the first time some two years ago when all i wanted to do was to grab a branch of linux source tree. That experience was enough for me to be really scared of using git ever again.

A month back, I ran into a typical problem in centralised SCMs when a contributer doesn't have write access to the repo: I sent a patch of my changes to Jorn and he committed the patch with some changes but before he actually committed it, I had made further changes on the bases of my previous changes so when i updated my working dir, SVN was able to detect conflicts but conflict report wasn't a very correct one and quite confusing to say the least. So despite my efforts, I ended-up overwriting Jorn's changes.

Matthew Allum advised me to use git-svn to avoid this problem in future but I just didn't want to use git again until i had a beer with Timo Savola a week back. He told me that the user-interface of git has improved quite a lot over the last few years and he sees no reason anyone should use any other SCM anymore. So on his advice I played with git and git-svn for the whole day on Friday. It was quite a frustrating experience at first but in the end when I got a hold of the basics, I realized that I was thinking in terms of other SCMs. So now I am also a proud supporter of git and what convinced me were strong arguments from Timo and this presentation by Linus himself (which was also pointed out by Timo).

GUPnP Universal Control Point progress:

Here is a screenshot of latest gupnp-universal-cp which have icons:

I tried to find the icons from the tango project gallery which best resembles that used by the Intel's device spy. I still couldn't find an icon to represent state variables. I am writing this email in the hope that some reader out there might have a clue and would contact me.

20 Jul 2007 (updated 20 Jul 2007 at 09:14 UTC) »
Adventures with the new computer

Now I am also amongst the elite who run a 3D desktop on their machines. With the proprietary drivers from Nvidia, it was just a matter of `apt-get install gnome-compiz-manager` and then enable/configure the 3D desktop through the intuitive GUI provided. The only problem was that I wasn't getting the window decorations although the gtk-window-decorator was running but it turned out in the end to be a simple matter of restarting gdm/gnome. I thought I'll be able to impress my windows-using GF but she seems to be more unix-like than i thought as her comment was: "Why? whats the use for this?" rather than "wow! thats cool".

I had to a buy a new MS wireless keyboard as I lost hope to get the apple bluetooth keyboard to work with my machine. Now that i have the M$ wireless keyboard and mouse, i have been told that they are not bluetooth and are not encrypted either, wow! scary. They both worked out of the box and seems for the PC they are like normal usb keyboard and mouse. Another problem is that the Fn keys don't work in ubuntu so i have to use the usb keyboard when i need to use them (e.g to switch the VT). I'll try to dig into the problem during the weekend.

GUPnP Universal Control Point:

I mentioned that I'll soon start working on GUPnP Device Spy that will be a free replacement of the Device Spy bundled in the Intel tools for UPnP, I have actually started to write it now but I thought the Device Spy isn't a very nice name for it as it's much more than that, so I naming it as GUPnP Universal Control Point. I'll stick to his name unless someone else have a better idea? Here is a screenshot of work in progress:

For those who are not familiar with the Intel Device Spy, this control point will enable user to easily perform three important functions:

  1. Discover UPnP devices on the network and report all (that includes service introspection info) the information regarding them.
  2. Ability to subscribe/unsubscribe to state-variables change notifications.
  3. Invoke actions on the services

The last one will be completely dependent on the introspection information available so you can't call a method on a service that doesn't list that method in it's SCPD.

The new darling

Last Monday evening, i finally received my darling the new AMD64. It already came with a dual boot, 32-bit windows XP and 64-bit Ubuntu feisty. The windows part was mostly already ok and it was really easy to switch the resolution to 1360x768 which is not exactly the same as my TV's default resolution (1366x768) but it's close enough, but the ubuntu side is another story:

It had open source nvidia drivers installed on it, so it couldn't do anything near to 1366x768, but after getting connected to internet, it was very easy to install and configure the proprietary drivers. Now my X/gnome is also running at 1360x768. Also GL and Xv seems to be working perfectly.

Since my ADSL modem and the TV/computer are on the opposite sides of the room, I had been using wifi on my mac mini and I thought i will do the same with this computer as i don't want to spend money on laying the telephone wire. I bought an A-Link PCI WLAN adaptor as it claimed to have Linux drivers but i failed to build the drivers they provide because of some linux kernel build problem. I must point out that when other people are busy making their builds easier to use, the linux kernel hackers seems to be going in the other direction. Building a module was far more simpler in the olden days than it is now, at least i used to understand what was happening. Yesterday, Naba told me about this cheap conduit that can be laid down on the floor easily so I bought that along with a 10m long ethernet cable and tada now my computer is connected to high-speed internet.

Then there is the problem of having a mac bluetooh keyboard. I thought it'll work with the bluetooth dongle i bought but seems i have to put some firmware provided by apple on it and that can only be done from a mac, which i don't have anymore. Now I have to ask a favour from some mac owning friend. :)

The Microsoft remote mouse and Microsoft usb keyboard that i bought worked out of the box on both OSes. Yes yes! I am supporting Microsoft but I am not ashamed of buying hardware from them as i think they are good at that and I want to encourage them to go into that business instead. :P

The company I bought it from, created an account by the name 'zeeshan' whereas i prefer 'zeenix' so i created another account and added it to the 'admin' group. All went fine but i couldn't access my sound card. aplay would tell me that there are no sound cards and I got a bit worried if the sound card has a working alsa driver. After an hour of struggling, it turned out that the newly added user 'zeenix' doesn't have permission to use the devices since he is not part of the 'audio' gang. It would be really nice if alsa and/or it's utils can tell me the actual reason is so i can correct it the easy way.

Half Life 2

I also bought a DVD of HL2 as ever since it's release I wished for a computer that is capable of running it and now I have one. Last night, after getting sound working in ubuntu, I installed it and played it for a while. The object manipulation capability is really awesome and gives the HL experience a new life. The game has quite a bit of nostalgic value for me too since at one time I was deep into it and felt quite the same as Gordon Freeman himself was, while being trapped in a big underground lab.

GUPnP work:

I didn't get much time lately for working on GUPnP because of some office work and the new computer of course but hopefully the only thing that is really left in the GUPnPServiceIntrospection is documentation and that is what i am working on currently. For those who have some UPnP devices at their disposal, please do try the latest 'test-introspection' from the gupnp svn trunk and let me know if you see any problems.

GUPnPServiceIntrospection is here:

So I finally completed the GUPnPServiceIntrospection object this weekend and jorn has already reviewed and applied the patch to svn with some changes. Also included in the patch was a test application (test-introspection) that simply attempts (many services just won't provide the needed SCPD document) to create the introspection object for a discovered service and on success prints the details of all the actions and state variables. Jorn recommended a set of changes that might be a good idea and currently i am at that.

Feeling a bit lonely again:

Ansku left for her summer place on monday morning for two weeks and now i am feeling a bit lonely again. To add to the problem, i sold out my mac mini this morning (which was more like a media center at my house) for 200e. I am supposed to get my new AMD64 soon but i was told by the seller today that I'll get it in this week if I am lucky as many people are on summer vacation these days. I am buying windows xp with it <cough> as most of the existing UPnP software out there is written for windows and I really need those software to test my UPnP code all the time. Right now it's only at the office that i can test it where i have a windows machine. Having said that, I will mostly be using linux on it and only boot into windows if there is no other choice.

26 Jun 2007 (updated 26 Jun 2007 at 20:43 UTC) »
Back to Hel:

So I am back to Hel after spending three weeks in Pakistan. Here is a short summary of the details:

1st two weeks

The trip to Karachi wasn't a long one and i quite enjoyed it by watching nice movies and tv-shows during the flight. In karachi i met my mom and my sisters and stayed with them the whole time. I also told them about Ansku. They seem to be slowly accepting it as 'reality' but they don't like the fact that I would want to spend my life with a western non-muslim woman. My mother didn't have as much objections as my sister saima had as she has become a very big religious bigot for the last few years. This reminded me of the reactions from Ansku's family but those reactions were extremely mild compared to the reaction of my family. Saima was continuously dealing with only and only one question: would Ansku become a muslim? All that was quite enough to keep me frustrated but besides that i was facing the typical problems of karachi: Extreme heat, no electricity for most of the day, pollution and lack of water to count a few.

One good thing about the stay at karachi was that I saw the ATM machine software (a project that i started and worked on alone during my last year in pk) in action on a real ATM machine. I was told that there are some 8-9 ATMs already out, serving people. Note that I am talking about linux+gtk-based ATMs here, something that is quite unheard of and this is happening in Pakistan. There are times when i taste the fruit of pure satisfaction and perhaps these are the moments that keep one going.

A week in Peshawar

On 15th of June, I flew to Peshawar were I stayed in a nice Guest House in the middle of the University. Most of my time was spent with Waheed and other friends but I was also supposed to have two presentation at the CS department of Peshawar University and the Kohat University. Here is an edited version of the email i sent to the mailing-list of our class-mates which tells the story:

I (and Hansain) informed Dr. Abid and Aqeel 1.5 months before my arrival at Peshawar about such a possibility and after a few days i received a welcoming email from Aqeel. The reason i wanted to inform them so soon was that i knew that the students might be on vacation by the time i do my presentation there so they could be notified of the presentation in time and the interested students could attend. But Aqeel told me that we can fix a date for it later when i arrive in pk. I assumed that he must know what he is doing and deferred to his judgment.

Despite the fact that getting internet access in karachi wasn't that easy, i managed to send aqeel an email about my arrival but he didn't reply for 3 days so i asked for his number which Hasnain provided to me. I called him and asked him why he doesn't reply to my email and he told me something i wouldn't normally believe if said by a teacher of CS: "I haven't checked my email for few days". He also told me what i feared: "The students are on vacation so it would only be the faculty members", the way he said it, it seemed like it will be some 8 people at least.

After i arrived in Peshawar, I got in touch with Aqeel by trying to call him for 1-2 days. He and Dr. Abid seemed to be having a lunch together at that time so i got a chance to talk to Abid directly. He gave me a specific date/time, that Aqeel also agreed to. So i went to the department at that date/time and when i arrived at the department, it turned out that Aqeel and Abid were missing themselves. I called Aqeel and he told me that he had to go somewhere all of sudden so he has informed some other new teacher about the presentation (can't recall his name). I met that guy and it turned out that he was the only person who was informed about this presentation, no other faculty member knew about it at all. The 4 teachers who were there were happy to be in the presentation but then after a while it seemed like they were not so interested either so i told one of the teachers that I should probably just cancel the presentation and she agreed that that would be a reasonable thing to do under these circumstances.

I must say that i felt quite embarrassed that i was invited by both Abid and Aqeel and then they not only were missing but they didn't care to inform anyone at all. Many students do visit the department even during the vacation so if Aqeel had cared to put a small notice on the board only a week (or even a day) before, interested people (both students and faculty members) would have attended.

Seems to me that the Department is just becoming another victim of members of Jamiat (a nick for Jamat-e-Islami) who spend the whole day trying to benefit their filthy political aims rather than improving the department itself. I still remember Abid trying recruit all the members of his party whenever we needed a teacher from outside the department. I went for the presentation despite the fact that I personally extremely hate Jamiat and my friends told me not to go as the department is now just another center of Jamiat politics. Now i regret not listening to them."

OTOH, the presentation at the Kohat University went quite well and all the teachers in there knew me as 'the video-wall guy'. The topic of the presentation was "OSSO at Nokia and Internet Tablets". At the end of the presentation, they had quite some questions, which demonstrated that they were quite interested.

The trip back

Since I had booked my tickets to Dubai and onward using different websites, I was to spend 8 hours in Dubai and 6 hours in Amsterdam. Since i don't have a UAE visa, I spent the whole day in the lounge there, sleeping. At Amsterdam, I intended to go out and get into the Canal Cruise (which takes an hour) but thats not what happened. First i got into some problem with my credit-card and the ATM there. The ATM told me to contact my bank and when i called the number on my credit card, there was an automated message telling me the timing of the help-line. People in here told me later that the whole country was on holiday because of the mid-summer. Reminded me of that joke from "The Hitchhicker's guide to the galaxy" which was something like "Sorry but our whole planet is temporarily closed, please leave a message...". Anyway, I got into the train to the center and since it was supposed to take twenty minutes, i thought a little nap wont hurt. When i woke-up, it said something centrum so i got off but i asked some lady before getting off if this is the city center and she said "yes". Then all i saw was a small town and there was no sign of any canals so i asked people where i can find the Canal Cruise. They used to give me strange looks and just say "Canal, those are in Amsterdam" and i was like "yeah! so?" and then finally someone informed me that i have travelled to another town outside Amsterdam so i go into the train back but when i reached the city, it was too late. All i did was to look at the happy people in boats. Well, maybe some other time.

GUPnP

I did some work on the introspection but I just can't test it because gmediaserver have started to crash on me after i last updated libupnp and gmediarenderer doesn't provide valid URLs in it's description document. Any other easily installable UPnP software i can try it against? Anyway, it seems to be quite in shape now and it shouldn't take a lot more time now that i am back into a productive environment. :)

So it happened

I was worried that i might get sick in here and that is what happened recently, It started with a severe stomach flue, then i acquired a fever, flue and cough. After 3 days of illness most of the symptoms seem to be gone but i still have a bad cough. I think my body lost it's resistance to the polluted water and air. :)

Childhood pictures

One thing that i manage to accomplish was to get my childhood pics scanned so now i have their digital copies. Here is one:

Who is this cute kid

Actually i did this for Ansku as she was interested to know how i used to look like when i was very young.

Life sucks even more in karachi

It's been 4 days that i arrived here in karachi. Temperature is quite the same as it was when i left two years ago but it feels much more intolerable not only because my body isn't used to it anymore but also because now the frequency and duration of electricity going off is much higher (or at least it feels so).

Another problem is that i dont have any internet connection at home. I still have that external modem i had used for years to connect my linux box to internet but my laptop doesn't have a serial port so i had to search for usb-to-serial cable and i found one.

My problem didn't just end there. I realised that i didn't have any ppp-sw installed on my laptop so i went to the nearest net cafe to download wvdial and its deps. After installing wvdial, i can't get it to talk to '/dev/ttyUSB0'. i tried a lot of options in 'wvdial.conf' and '/etc/ppp/options' but no luck so far. It simply wont get a reply to 'ATZ'.

However my ex-boss told me that i can go to his office to use very high-speed (compared to 0.1KB/s you get here on dialup) internet.

Hacking

You kidding me, i cant do much in here except for laying on bed and sweat (and also the stuff i mentioned above).

Vacation:

After two years in Finland, I am finally going back to visit pk in 2 days. I will fly Friday afternoon from Helsinki and after a long trip (3 flights, 2 airports with 3 hours on each airport) I should be reaching Karachi on Saturday before be Noon. Already bought some gifts for everyone that matters except for my mom since i wasn't sure what to buy. Me and Liisa will try to take care of that tomorrow. We were supposed to do that today but we got in a nice Mexican restaurant and we didn't have enough time to buy anything before the shops closed at 9.

When your love is away

It's been only a week that Ansku left on her trip to USA but i felt so lonely and missed her so much. She emails me at least once a day and also called me today despite the fact that she doesn't have a phone there, which means that she also misses me a lot. OTOH, we both think that this temporary separation (perhaps it's too strong a word) is good for us at this stage as now we'll realize if we really love each other or not and how much.

New heroes

Ever since I found a video of Russell Peters on youtube, i immediately became big fan of him and quickly consumed all his videos that are out there on youtube. When i showed one of his videos to Markus, he didn't find it as amusing as i did and after saying "Now! this is funny!" he quickly searched out a video of Eddie Izzard. After watching that video, I became a fan of his too. My favourites are "St. Paul's letters", "Do you have a flag?" and "Star Trek" to name a few but i am still trying to dig more of whats available on youtube.

GUPnP: in your nearest shop

As Matthew Allum pointed out in this blog, gupnp and gssdp libraries are already released. There is also a website, a mailinglist and a bugzilla. I am already half-way through implementing the introspection api but if you interested in that, you'll have to wait till the next release. Essentially, introspection will be provided by a separate object called GUPnPServiceIntrospection, which the GUPnPServiceProxy object will attempt (since it all depends on what introspection information the service in question provides) to create on demand from the application.

112 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!