Saturday, June 6, 2009

[MapServer Error]: msLoadMap(): First token must be MAP, this doesn't look like a mapfile.

In my development machine, I managed to set up mapserver to run on both windows and PUbuntu OS without much problem. On pushing the files to the host, I kept getting this as a first warning followed by another warning PHP Warning: Failed to open map file mapfile.map and then the killer PHP Fatal error: Call to a member function setextent() on a non-object . This was so disturbing since I was using the exact same copy of files both in the development machine and the server, although the sever was running on fedora.

Basically it boils down to this. Depending on the version of mapserver that you are running the map file might not be used on both versions. Some versions of mapsever requires a directive MAP at the beginning and an END at the end of the map file and a SYMBOLSET directive at the begining of a symbol file and a END directive at the end.


These two directives have made my life a living hell for 3 days, so I am posting this to help anybody who might be in the same pool.

Internet Everywhere Follow Up

In last post, I hailed Internet Everywhere from Orange as the internet solution of choice for people like us, who are on the move and internet is a must everywhere you go.

Now this is a quick follow up or just a big complain.. infact this post should be Orange your customer service SUCK!! What about that?

So this ka Internet Everywhere(IE from now on) works fine until 3wks, on a sato, into using it when it dies on me. Am like iz how? So on monday I take it to the orange guys and they start acting dumb, ati everything is fine on their side its the system fault. Since am a developer I kind of understand and I am like hey, do your thing I will wait. There is a guy there by the name Korir? Please Korir if you reading this, go into a PR class, your customer skills SUCK? First, not everybody is a kid in terms of technology, we kinda understand some things so treat us like "grown ups" and am sure there are guys out there who can teach you a thing or two. So basically this guy tells me that he will sort me, it was at 5pm, and i should wait. He keeps me waiting only at the end he tells me that the person who should sort me out is out and he cant do anything. That is after keeping me there for close to an hour. HALLO then why didnt u tell me that at the beginning? So I go home cursing like... but since the ka IE wont work I vow to show up at their offices the next day.

So the next day I show up at 8am and meet the supposed "saviour" Koros, another guy good PR aint part of his vocubulary. The guy takes me round in circles, circles, circles instead of just telling that there is a problem with the all IEs on post paid. One thing, if that guy tells u leave your number he will call you, dont even dare! That will never happen. He started telling me that right when I was buying the ka IE till "my one week of crisis", when I discovered my mistake. Its like he has a hobby of collecting customer numbers.

All in all when I discovered that its a kind of a "universal problem", I just chilled till when it would start working, which was a week later.

Now this is another funny part, when I went to pay my bill, nobody knew how much I should pay. Yea some of you would say that since I am on post-paid should it should be a flat rate, I was paying late and had either overused my bundle or my month was up. They checked their systems and did all they could, they just couldnt figure out my consumption.

So am just waiting with abated breath. Anywayz at least its working.

Will keep you posted!

Monday, April 27, 2009

Orange's Internet Everywhere to my rescue

Orange's Internet Everywhere rocks. As their motto is 'the fun gets faster', I am surely feeling it though am not on broadband. For you folks who dont know what am talking about, its the Orange internet offer that is driving me crazy(in a good way).

When I came back from Russia my first order of business was to get myself an internet connection. I choose Telkom(thru landline) which i came to deeply regret(why is a topic for another blog). Since then I have been looking for suitable Internet option to suite me(a software developer who is always looking the next great thing...) until I came across Orange's internet everywhere.

Bundles
Orange is offering different bundles in pre paid and post paid, all of them at affordable prices.

For prepaid* you have the option of:
bundle(Mb) budle price(KSh) Price/Mb
daily bundle1506
50Mb2505
100Mb4504.5
250Mb8503.4
200020001
*The cost of the modem is 4500Ksh

For postpaid** the options are:
Bundle(Mb)Monthly Bundle Price(Ksh)Package PricePrice/Mb
50Mb25040005
100Mb45035004.5
250Mb85020003.4
2000Mb2000free1
**After choosing your preffered bundle, you pay the monthly bundle, cost of the kit and a deposit twice the choosen bundle

Modem
The orange modem is a sleek black flash kind rectangle with the orange logo on it's front. It is no larger than the traveller flash disk, only that it is a little long and more square. In short it is easy to carry around without getting in the way.

Orange's Internet Modem
Orange's Modem


The modem emits a green light at intervals depending on its status: 2 blinks in 3 secs, showing it is searching for network, a blink in 3 sec to show network presence but not connected and if the green light is always on the internet is connected. The modem at times get pretty hot but not in any level to be dangerous.

Connection and Speeds
The conection is fairly stable, with no nuiscance of disconections and reconnections. Even while working for long hours(6 hrs) with 'heavy lifting' the connection is still stable although the modem can be quite hot although it does not affect the speeds or connection.

One thing that I am absoloutely loving is the speeds that come with it. The modem has a max download speed of 236.8Kbps and upload of 228.0Kbps. Although I have never cloaked any of these speeds, while using speed test it clocks a round ping of about 620-650 ms, download speed of 0.25Mbs(~250kbs) , and an upload speed of 0.09Mbs(90Kbps), while pinging servers in Nairobi. Pinging a server hosted in NY(optimum Online), it clocks a round ping of 992ms, downlaod speed of 0.07Mbs(~70Kbps), and an upload speed of 0.07(70Kbps). These speeds however fluctuate with time, with night times having the best speeds while slowing down during the day. One thing I can confess is that their speeds suck during the weekends, as I had problems downloading a 600Kb file at one point.

The modem has one major downside, its so hard to get it working the first time and especially if you have prior connections, be they wireless or LAN. I can now confess, that although am pretty good with comps when it comes to installations and use of new software and hardware, till now am finding it hard to get th modem working on my desktop, although it works pretty well from my work's laptop.

Management
The modem comes with an Internet Everywhere dashboard which enables you among other things to moniter your data use. Its quite interesting as the dashboard provides an option of adding netwoks other than the orange network. This provides a means of adding the networks of other service providers eg Zain while at the same time using the orange modem(I am not sure if this can work), or using a third party modem like duxbury with any network carrier. This is quite interesting as it opens the platform for other carriers to use the orange software and modem.

Something quite sad with the management panel, is that it tracks the internet use on a particular machine rather than the total usage of the modem. If you use the modem on different comps, it just monitors usage on each comp separately and if you want to know your overall usage, you must add all the usages to get the full picture. If any of you orange guys might read this post, please do something, coz keeping tabs on all comps where I use the modem can be quite labourous.

All in all, any of you guys in Kenya looking for an affordable internet connection, Orange is a 'better option' than any of the other guys out there.

Monday, March 16, 2009

MORTGAGING OUR CHILDREN'S FUTURE, OR IS IT OUR FUTURE?

This is a phrase that was constantly used in the run up to the US elections last year, and at the time theoretically i understood what it meant but practically, I didn't have a clue about it, but am beginning to see it and you know what its damn scary.

Where do we draw the line, between action and hoping for action. As I have already stated in one of my blog entries, the accord to me was a cheap way out, and had we looked deeper a better solution might have been found. This cheap solution is turning out to be the most foolish thing that as nation we might had made. So wheres the connection, cheap(expensive) accord and mortgaging our future. Picture this: The government admitted to delaying the money for the free primary education because of what 'The money was diverted to buy the needed famine relief!', and so what happens to the millions of school kids depending on that money???? Yet, the country was fleeced of billions by the maize, oil scandals and the scandals we yet don't know. This didn't happen in the last 3 years, it happened barely 6-8 months ago. What happened to the suspects they are walking scot free and maybe fleecing more thanks to the system(read AG, Judiciary, Police the President and the PM). That happened, pretty sad isn't it! So whats now happening? we are still having a bloated gova, the MPs earn huge and don't pay tax, what about the red tape being accustomed to our friends, US gova, who are trying to help yet its like they have to fork a bribe to do so? This is still happening yet the gova has the audacity to say its broke? Hallo what did you expect, in the middle of this we will strike oil and become the next Dubai, or better discover gold and Kenya will give South Africa compe? These would also be looted. The oil scandal is a massive 7 billion and the gova says it need 25 billion, hallo if someone hasn't noticed thats just a whopping 28% of what you need, without even raising the hood, but guys you know what the free primary education can wait while our leaders enjoy tax free overpayment and while we wait on our friends to respond. IF THIS IS NOT MORTGAGING OUR CHILDREN'S AND OUR FUTURE then I need help to understand this.

So what do we do in this situation, we feel sorry for the millions of hungry Kenyans and make out an appeal for funds to feed the starving population, of which Kenyans contribute generously, but FOR HOW LONG?? This is another cheap solution that us as Kenyans we are taking, do you blame us? Our leaders taught us well. I am so sure that those guys we are feeding dont need handouts, they can work. Give them a jembe, some seeds, some fertilizer and show them how to overcome the perennial water shortages and you know what we can keep our shillings to ourselves. These people will feed themselves and sell to us what they cant consume, or better help the fishermen have access the waters around Migingo island and let them do what they do best, fish and earn a living, without being harassed by some 'neighbor'. Do you need a degree to figure it out, but hey we are country of cheap solutions.

So where do you fall in this maze, at least I highlighted it, but I guess thats another cheap excuse.

Friday, March 6, 2009

Thou shall not disregard instructions

For many of us who use the buses(Citi Hoppa and Kenya Bus specifically), there are three sins that thou shall not commit in a bus. These are namely smoking, preaching and hawking. The public have been faithful and abode to the teaching of this three 'sacred' laws for quite some years but the trend that has cropped up of late is quite worrying. I don't know if its the culture of impunity that we inherit from our (dis)honorable leaders or is it just one shade of an ugly culture of Kenyans manifesting itself. What am I talking about? Am talking about the numerous so called 'preachers' proclaiming to be spreading the word of God in buses.

Lemme clear the air first, I ain't no atheist, nor am I jealous of any person making money, the money can be of help to all especially at this times; its the Ludacris notion that just because someone is trying to make a living he/she can trample on the rights and privileges of others that is driving me nuts. These so called preachers, shepherds of the flock in the buses, board a bus and out of nowhere removes a Bible and start preaching, and you know what just opposite him/her there is this big sticker ...NO PREACHING... It just begs the question how are we meant to take your advice, yet you cant follow basic instructions. It just drives me nuts. Its not the idea of preaching the Gospel that I am against, its this idea that someone cant follow simple instructions, just like the guys in the supermarkets who makes a queue to a counter clearly written LESS THAN 10 ITEMS and the fool is pushing a cartful.

In short what these guys are implying is that the people who come up with rules and regulations are a bunch of stupid fat men and women who had nothing to do and it is better we go back to being a banana republic where one does what he/she feels like at any time he/she likes without giving a damn about what his/her neighbors feel or what they want.

Wednesday, January 21, 2009

A Tribute to Former US President George Walker Bush

Its the 21st day of January and we have a "new leader of the free world". Yes the mantle has been passed on and one the younger generation has the baton. Congratulations are in order to America in its achievement, to the civil rights movement and to Barack Obama himself. It is a truly honorable moment even for us who are not Americans, as the sense of pride spreads wide.

As we salute Obama, it is worthy and especially Africa and us as Africans to take a moment and peek into the history and legacy of George W. Bush and his policies for Africa. Controversial as he may have been, unpopular in America and around the world as he may be, hated as he may be, Africa should be very grateful to him. Under his policies, we can say Africa was always on top of the list especially when help was needed. Africa was given the attention it deserved and especially when it came to the issue of HIV/AIDS and Malaria. We as Africans benefited greatly under his policies, more than what Bill Clinton managed to spend on Africa, though Bill Clinton is considered the most Africa friendly President. Figures and number I may not quote but when Bush was in power, the funding for the HIV/AIDS epidemic was increased, the AGOA initiative was relaunched, the US markets were opened a little to us Africans and specific goods given priority. Bush's government encouraged Africa to embrace democracy, and especially he was fond of the young presidents of Africa, especially presidents of Ghana, Tanzania, Zambia and Liberia who are proving to be more accountable.

This is one direction that we hope that the 44th President of the US, Barack Obama, will continue this direction.

Thank you George Walker Bush and enjoy your retirement.

Tuesday, January 20, 2009

Ubashiri: The Kenya of 2009-2012

Many at time I have been called a pessimist and so many the times I have felt as if I am a blind optimist. This is the battle of direction that at times I find myself in, but today my pessimist bone is much more active than the optimist one especially when the issue of where our beloved country is headed to is raised.

Let me state this clearly, I am a patriot who loves my country deeply and I would do anything to defend it, but unlike my optimism my patriotism is not blind and when I see thing that piss me off, the Idea of fleeing at times sounds a very good option. The grand coalition when it was formed sounded as a very good idea at the time when over 1200 people had lost their lives, ODM calling for trade sanction against the government, the western and European powers were spelling their terms and our beloved Kenya was going to the dogs while we were watching helplessly as the GSU and the police were making their presence felt. At that time, the grand coalition seemed like a very good idea, but that was the easier choice for us as a country. Had we searched keenly, took a hard look at ourselves and a more harder choice but better for the long run could have been realised. So why do I say that was an easy but bad choice??

The current crisis in the country is a very clear manifestation of this. One thing the politicians forgot, or they didnt and have never acknowledged is that Kenya is a corrupt country. Corruption runs in the blood and lives in the bone marrow of kenyans and the sooner do we acknowledge this the better. So PNU and ODM forgot that Kenyans are corrupt, and they went ahead and formed the grand Coalition, a bunch of thieves, corrupt mps and no one worthy of leadership. The results, the scandals we are seeing now, maize scandals, oil crisis, Wetangula and his team going to the states for Obama inaguration yet they will see it on TV just like you and me who we cant make it to DC but will have CNN, Nation and KTN at our services, Ong'ong'o and his team, the Mv Faina saga, of which we dont know who to believe; the ever lying government, the somali pirates, the sudan government or the marines who were guarding it, the IDPs saga where someone would rather pocket the 10,000Kshs for an IDP rather than help him/her get back to life and as sure as heaven and hell are the list will grow bigger and more scandalous.

How best can you explain this, 10 million are facing starvation yet some people can afford to siphon the food meant for them and export it so a neighboring country just to make an extra shilling, or the foreign ministry going for a visit where they are not invited ie gate crashing and are bound to spend millions where back at home people are dying of hunger, while teachers strike because the government cant give them a good deal and yet its the same government that is spending money as if it is in line for the US bailout now that a brother is in white house???

These are some of the stories that we will be hearing of for the next four years, just because two gangs of thieves made peace and now they can eat together with no shame and no fierce dog in the name of opposition on their backs. The PNU side is busy eating because this is their last chance to eat while ODM have unfinished business since the era of KANU. This is not hard to see unless your patriotism at times is as blind as my optimism at times. The maize scandal was a time bomb, and now it has exploded. Last year, crops were burnt in the field, and in the granaries, people and especially Kikuyu who are the largest farmers were displaced from their farms and some have never gone back, the rains failed and the national granaries were running below capacity. Do you need to go to school to learn that in these conditions the country will face starvation the following year????? But our politicians and government with the brain of a **** did not see it coming and if it did, it thought by mere not thinking about it the issue would solve itself!!!

This is just the tip of the iceberg and by the time the next four years are over we will be crying hard. So the next four years brace yourself for a tough landing as we will cry our eyes out.

all the best.