<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nick Hargreaves</title>
	<atom:link href="http://www.nickhargreaves.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.nickhargreaves.com</link>
	<description>Alternate realities, tech, philosophy, poetry and stuff</description>
	<lastBuildDate>Wed, 04 Apr 2012 08:40:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Beyond the comfort zone</title>
		<link>http://www.nickhargreaves.com/?p=314</link>
		<comments>http://www.nickhargreaves.com/?p=314#comments</comments>
		<pubDate>Wed, 04 Apr 2012 08:30:12 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Philosophy]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=314</guid>
		<description><![CDATA[When we wake up in the morning we worry about getting to work on time, making money, what to have for breakfast among other mediocre concerns. We live in a world that extends to infinity yet all we see, all &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=314">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://nickhargreaves.com/wp-content/uploads/2012/04/beyind.jpg"><img class="alignleft size-medium wp-image-316" title="beyind" src="http://nickhargreaves.com/wp-content/uploads/2012/04/beyind-300x279.jpg" alt="" width="300" height="279" /></a>When we wake up in the morning we worry about getting to work on time, making money, what to have for breakfast among other mediocre concerns. We live in a world that extends to infinity yet all we see, all we care about are the tiny negligible bits. These bits are what our lives revolve around even though right outside the door lies infinity.<br />
Our planet is one of nine planets orbiting an average sized star within a solar system that is 11,820 billion km wide. We’re surrounded by hundreds of billions of stars in the Milky Way galaxy, some much smaller than our sun, some large enough to stretch from the center of the sun to Pluto. And in between all that are tons of dying stars, black holes with densities so massive they make time curve onto itself, and huge clouds of gas and dust, creating new stars, adding to the already infinite population of the Milky Way that stretches 900 trillion km.<br />
And the Milky Way is only one of hundreds of billions of galaxies, some much bigger, some much smaller, all in a vast expanse that is 400,000 trillion km across, expanding at the speed of light. And as new physics suggests, that may not be the end of it. Our universe might be just one of infinite universes, bubbling through existence. This is almost comparable to the innumerable molecules and atoms that make up the things we see. And just like the billions of galaxies, they require special techniques to be observed. Quite elusive, but when we do observe them we find out that’s not how far down it goes. They are made up of tinier stuff. Electrons, neutrons, protons. And further down, quarks. Bits of matter so small they can fall through a human body without touching anything. They make up a world that defies physics as we know it. They are neither here nor there, they are both here and there and they only exist when we observe them.<br />
What a wonderful world lies outside our comfort zone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=314</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a Killer App</title>
		<link>http://www.nickhargreaves.com/?p=309</link>
		<comments>http://www.nickhargreaves.com/?p=309#comments</comments>
		<pubDate>Wed, 28 Mar 2012 18:36:26 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[IT Biz in Kenya]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=309</guid>
		<description><![CDATA[After losing terribly at the #ignitehackathon am now loaded with insight ready to take on guys at the upcoming Kipokozi and Pivoteast in June. Before I do that however I must say the event was very humbling especially seeing what &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=309">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>After losing terribly at the #ignitehackathon am now loaded with insight ready to take on guys at the upcoming Kipokozi and Pivoteast in June. Before I do that however I must say the event was very humbling especially seeing what @iddsalim can do in under 30hrs with a computer and ton of junk food J &#8211; much respect man. The event shifted my perspective of what real code is and what a good app is. So here is what I have to share:</p>
<ol>
<li>Stay away from content production</li>
<p>You are a freaking coder not a journalist. You don’t want your users stuck with stale content because clients wamekuchosha na Skype calls or you’ve been stuck behind some desk somewhere for a week with crisps and coke trying to nail that bug. Unless you are partnering with a content producer you want to avoid apps that require you launch Ms Word every now and then after putting it up on the app store. Unless you are writing about it. If your solution is content centric go for user driven content or one that can use a data portal. Otherwise competition judges and VCs alike will give you a wide berth.</p>
<li>Target mass market</li>
<p>The more the potential users you have the more it is likely to make sense to the VCs, to the judges and even to you as a startup entrepreneur. You want something that will be highly adopted across age groups and across socio economic boundaries. If you are targeting a very specific niche it must be an app that a very high percentage of that niche will find invaluable and will be able to easily acquire. Do a little research. Find out what kind of devices the target population usually have. You don’t for example want to do an android app for small scale farmers in Kenya. Well you might be able to impress some guys and get funds but what is the reality on the ground? If you have to do so you might first have to organize a conference to tell them what an app is, follow this with a lecture on how to download your app, and why they should invest on a 10k device when they live on under a dollar a day.</p>
<li>Be realistic</li>
<p>So you want to generate revenue from your app and you’re thinking “let me charge a dollar per download that’s reasonable”. Welcome to Kenya, where most dreams don’t come true. As a programmer I download software at an average of 2 softwares per week, I download music at an average of 300MB per day and I can’t keep track of the number of websites am registered on. Not once have I spent a dime on any of these. Reason being am Kenyan. Plain and simple. The rates for one are targeted at better off economies. I wouldn’t pay 18k for a Microsoft licence. Omera, that’s an Ideos, a Casio G-Shock Mini and a Fly540 ticket from Nairobi to Kisumu. Halaaaa! Apps are not that expensive but we live in a cheap economy. App stores require credit cards. Until they integrate them with the Africa friendly mobile payment solutions adverts are the way to go.</p>
<li>Multiple platforms</li>
<p>This is mostly important for utility apps. Think beyond the native app world. Extend your solution to USSD, SMS, mobile web, desktop and other mobile platforms. As long you as you don’t end up with half assed apps trying to kill multiple angry birds with one stone then the more the merrier.</p>
<li>Social Dimension</li>
<p>Everything is going social now.  Even geeks like us who once had only our books to relate to now have tonnes of friends we share experiences with. If am going to play your gaming app I want to let them know my score or even play with them. If am going to read an article on your news app I want them to know what I read and I want them to read it too. And if am going to track my calorie intake I want them to know that too. Am like everyone else. Am simply asking that you honor my lack of respect for my privacy. I beg-o.</p>
<li>GUI</li>
<p>To a first time user your app is as good as it looks it doesn’t matter what crazy things it can do underneath. The interface should be well designed it should be straightforward enough for the user to understand it on the go without having to read a 30 page tutorial. No one likes to read when they don’t have to, everyone knows that. If the app should have tutorials they should be short concise points on different activities of the app.
</ol>
<p>So there&#8217;s my 6 cents, knock yourself out. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=309</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Spark</title>
		<link>http://www.nickhargreaves.com/?p=294</link>
		<comments>http://www.nickhargreaves.com/?p=294#comments</comments>
		<pubDate>Thu, 22 Mar 2012 10:43:27 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=294</guid>
		<description><![CDATA[It starts as a spark, like the bulb suddenly goes on and the room lights up. Behold an idea that will change the world forever. The innovator salivates, eyes wide open excited at the what can be accomplished. It feels &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=294">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://nickhargreaves.com/wp-content/uploads/2012/03/ideas11.jpg"><img class="alignleft size-medium wp-image-300" title="ideas11" src="http://nickhargreaves.com/wp-content/uploads/2012/03/ideas11-185x300.jpg" alt="" width="123" height="200" /></a>It starts as a spark, like the bulb suddenly goes on and the room lights up. Behold an idea that will change the world forever. The innovator salivates, eyes wide open excited at the what can be accomplished. It feels like the ultimate step at transforming reality. This is it! It&#8217;s far better than the last one, far more exciting, far more practical and way more useful</p>
<p style="text-align: justify;">Anything that stands in the way of execution is either tossed aside or thrashed with all might. Things that are usually distracting are no longer in sight. They become blurred tiny specks at the bottom of a pile of  tasks that are more exciting than anything else. The more challenging the more exciting. Everything else comes second. The stomach can wait a few more hours, the visit to the barber postponed indefinitely. And sleep? What sleep?</p>
<p style="text-align: justify;">Every bit that works properly is followed by a eureka moment building up bit by bit to the final moment where the world changes forever. And then the moment comes , the climax, every piece coming up together to form a whole,  a wonderful creation, a step into the future&#8230;tears, satisfaction, and an eerily strong need to show love. And then the stomach rumbles, the urge to visit the barber comes back, and the bed looks more enticing now more than ever before.</p>
<p style="text-align: justify;">The next day the appreciation is very encouraging. But looking around the world hasn&#8217;t changed yet: a reminder that that was just a step, more effort is needed, bigger ideas and a stronger will. So the innovator recoils back to reality&#8230;a moment passes…and then a spark!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=294</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s a New Day</title>
		<link>http://www.nickhargreaves.com/?p=279</link>
		<comments>http://www.nickhargreaves.com/?p=279#comments</comments>
		<pubDate>Mon, 19 Mar 2012 07:00:46 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=279</guid>
		<description><![CDATA[It’s another day. Same places, same people but a different time. In reality no matter how similar it looks to yesterday and more days past, no matter how familiar the environ and the presence of bonds I have created with &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=279">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://nickhargreaves.com/wp-content/uploads/2012/03/a-new-day.jpg"><img class="alignleft size-medium wp-image-280" title="a new day" src="http://nickhargreaves.com/wp-content/uploads/2012/03/a-new-day-300x187.jpg" alt="" width="300" height="187" /></a>It’s another day. Same places, same people but a different time. In reality no matter how similar it looks to yesterday and more days past, no matter how familiar the environ and the presence of bonds I have created with the people I interact with, the truth is I haven’t been here before. It’s a new day.<br />
The matter looks the same but the interactions are all new to me. I’ve never seen that kid in those shoes, that shirt and holding a banana, walking that street while a white stray dog passes quick behind him being yelled at by Mama Steve all furious at 9.23am. And that moment potentially preceding layers of other moments each a new painting with a deep representation of a new reality. It’s a new day.<br />
A series of billions perhaps trillions or more of interactions out of a possible infinite jungled up together by chance or whatever kind of god one envisions picking up billions of interactions stirring them in a magic pot into a fine unique mix. It’s a new day.<br />
Anything is possible, some of the interactions not great, some extremely awesome, some might change my life forever. Every new second, new interactions, new possibilities. Am I going to keep my fears from yesterday or brush them aside replace them with new hopes, am I going to pull my dreams closer or push them further out into the future? And why does the future matter if it doesn’t exist? Why does yesterday matter when it no longer is? Why ignore today when it is all that is? Why not make that dream come true today? Why not live those dreams today? Isn’t a new day what we yearn for? Well, it’s a new day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=279</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Who Am I</title>
		<link>http://www.nickhargreaves.com/?p=264</link>
		<comments>http://www.nickhargreaves.com/?p=264#comments</comments>
		<pubDate>Sun, 18 Mar 2012 08:55:08 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=264</guid>
		<description><![CDATA[Am billions of cells arranged together by chance, A multicellular organism like any other, A product of evolution and nothing further, Maybe a carefully crafted art piece by Father A unique design in his spiritual image Blessed, granted life, and &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=264">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Am billions of cells arranged together by chance,<br />
A multicellular organism like any other,<br />
A product of evolution and nothing further,</p>
<p>Maybe a carefully crafted art piece by Father<br />
A unique design in his spiritual image<br />
Blessed, granted life, and a higher purpose</p>
<p>Perhaps just an expendable piece of several billions<br />
Packed in a world with infinite copies<br />
Each copy with a copy of me</p>
<p>Or am a variation of you in a different skin<br />
Connected to you, part of whole<br />
Might say I am you<br />
Might ask who are you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=264</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beba beba &#8211; Kenya&#8217;s matatu life</title>
		<link>http://www.nickhargreaves.com/?p=217</link>
		<comments>http://www.nickhargreaves.com/?p=217#comments</comments>
		<pubDate>Sat, 17 Mar 2012 06:45:49 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://nickhargreaves.wordpress.com/?p=217</guid>
		<description><![CDATA[Beba  beba, come on in, hurry hurry, There’s a seat for you, for all of you, it’s a direct bus, it’s  only 30/-, We leave in a minute, the seats are all taken, just squeeze there, but it’s only 50/- &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=217">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Beba  beba, come on in, hu<a href="http://localhost/nickhargreaves/wp-content/uploads/2011/12/matatu.jpg"><img class="alignleft  wp-image-218" title="matatu" src="http://localhost/nickhargreaves/wp-content/uploads/2011/12/matatu.jpg?w=300" alt="" width="300" height="185" /></a>rry hurry,<br />
There’s a seat for you, for all of you, it’s a direct bus, it’s  only 30/-,<br />
We leave in a minute, the seats are all taken, just squeeze there, but it’s only 50/- ,<br />
We leave in a minute, just one more guy, and we are off.<br />
We leave in a minute, after you pay your money, no refund, no matter what.<br />
Off we go, no seat belts, hold on to something, it’s for your own good.</p>
<p>Yes, we’ll slow down in a minute, after we overtake that guy,<br />
One more minute, two more, darn there’s a lot of them,<br />
Sit tight, it’s a bumpy road, he said he’d fix, if we voted him in again,<br />
We already did, that was four years ago, and he wants our votes again.</p>
<p>Oh look, it’s traffic police, is that a new guy? No, it’s Odhiambo and Macharia,<br />
We&#8217;ll give them a hundred, they’ll split, they’ll let us through.<br />
Jambo Odhiambo, Jambo Macharia, it’s a beautiful day, isn’t it?<br />
Here’s a hundred, have a good one.</p>
<p>This is our stop, it’s okay , we’ll transfer you to a direct bus,<br />
We’ll pay them your money, you’ll get a seat we promise,<br />
Beba beba, your fare is paid, grab a seat, we leave in a minute,<br />
Hold on, the road gets worse.<br />
Where’s your money, who paid, when,<br />
I don’t have your money, give me your money, or hit the road.</p>
<p>Oh look, passengers by the road, we have to stop for them, and the others further down,<br />
Move move, a Kenyan needs your help, don’t be greedy, this space can fit more,<br />
Hurry hurry, beba beba, come on in,<br />
There’s a seat for you, it’s a direct bus, it’s only 30/-.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=217</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Will: The grand illusion</title>
		<link>http://www.nickhargreaves.com/?p=176</link>
		<comments>http://www.nickhargreaves.com/?p=176#comments</comments>
		<pubDate>Fri, 16 Mar 2012 07:28:07 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nickhargreaves.wordpress.com/?p=176</guid>
		<description><![CDATA[A guy walks into a bar. He heads over to the counter to order a drink. The waiter asks him what he will have. He takes half a dozen seconds to think about. He chooses to have a Bond 7 &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=176">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">A guy walks into a bar. He heads over to the counter to order a drink. The waiter asks him what he will have. He takes half a dozen seconds to think about. He chooses to have a Bond 7 whiskey from 16 other options. He sees a woman sitting alone at the end of the counter, and a couple of his drinking buddies at a table at the corner. He chooses to head over to the girl to say hi and probably offer her a drink hoping to get lucky. But he is not sure how to approach the girl, whether to play vulnerable and humble or cocky and rich unaware of the girl&#8217;s taste in men. He goes with the former. Our guy is called Sam. Sam gets lucky tonight. Sam lives in a world where things can take any direction depending on the choices one makes. At least that is what he is taught to believe.</p>
<p style="text-align:justify;">Free will is defined as the ability of agents to make choices free from certain kinds of constraints. Sam appears to have made the choice to have a Bond 7 Whiskey from the 17 drinks that were available. He chose to make a move on the girl instead of going to talk football and drinking with his friends. He also chose to go with the approach he thought would give him the highest chances of getting lucky with the girl. And it all worked out. Question is, did Sam actually make these choices of his own free will? Isn&#8217;t it possible that every choice he made were determined by chemical reactions in his body, his genetic makeup, his environment; factors which are beyond his control?</p>
<p style="text-align:justify;">Can it still be said to be one&#8217;s choice when there are determinants at play, beyond the subject&#8217;s control? Consider this: scientists have found that about 1 in every 2 people have a gene – DRD4 or the thrill-seeking gene – which makes them more likely to cheat on their partners or be involved in gambling and alcohol addictions. There have been a number of other genes associated with other behaviors that have long been thought to be people&#8217;s own choices, like a gene that gives people a religious predisposition, the alleged gay gene etc. Although scientists are still divided on some of them what is becoming clear is that at least some of our choices are made at the genetic level. We practically made them as soon as we were conceived.</p>
<p style="text-align:justify;">And it&#8217;s not just the genes that determine our choices, it is the environment we grow up in, level of intelligence, the moral code implanted by the parents and guardians, every one of them beyond our control. That&#8217;s why a kid brought up in the middle of Saudi Arabia will naturally become a Muslim even unto old age when he thinks it&#8217;s his own choice, a way of living that gives him a completely different moral code from what he would get if he was born in a mostly Christian nation like the USA or a secular nation like Sweden. So naturally we would ask if we can hold people responsible for their moral positions. Is it possible that we have no control of who we are? Is it possible that everything can be determined from equations?</p>
<p style="text-align:justify;">Since Einstein, scientists have been in search of a theory that describes everything – literally called the Theory of Everything. This theory would be able to give us a picture of everything from the tiniest building block of matter to the universe itself. The possibility of such a theory existing might shove us back to the drawing board on the very meaning of life. Given that humans are just biochemical entities, the ability to reduce everything to an equation makes everything deterministic.</p>
<p style="text-align:justify;">There&#8217;s some sort of security that accompanies the feeling that we are the makers of our own destiny, that our choices have direct consequences on the paths our lives take, that we are completely in charge of our lives. So it becomes very unsettling when it appears that human behavior, his actions and inactions can be sought from equations. The idea that all it takes is a good calculation to figure someone out and tell what they will do next or even chart the course of their lives with good precision puts an asterisk on life itself. What is the point, if it is all figured out? And yet my mind is made up on this. I know, it probably doesn&#8217;t matter what I decide , because I may not be actually making a decision in the strictest philosophical sense of the word. From the way my human mind works, and it&#8217;s limitation to process time one second per second I think of a past, a present and a future and think that I have a hand in how the future manifests. Perhaps that is a greater illusion than that of free will.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=176</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>When to strike and Why I agree with McCain on Syria</title>
		<link>http://www.nickhargreaves.com/?p=286</link>
		<comments>http://www.nickhargreaves.com/?p=286#comments</comments>
		<pubDate>Sat, 10 Mar 2012 06:26:42 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Current Events]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=286</guid>
		<description><![CDATA[One of the biggest disagreements I had with my ex was on how to treat sovereignty of countries. My ex was of Polish origin and she believed that societies should be left to evolve and achieve balance on their own &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=286">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">One of the biggest disagreements I had with my ex was on how to treat sovereignty of countries. My ex was of Polish origin and she believed that societies should be left to evolve and achieve balance on their own without external influence even from more civilized societies and even if the members of the society are being treated inhumanely by their leaders. Now being a beneficiary of western education something I value very much and having lived through a regime of a dictator who ruled Kenya for 24 years and was never ready to quit it is obvious that I didn’t agree with her.  Today Koffi Annan heads to Syria for talks with Assad. Koffi Annan who is the special envoy for UN and the Arab League over the almost one year old crisis is expected to mediate between the Syrian opposition and the president.</p>
<p style="text-align: justify;">But is it still okay to talk to Assad? Well it’s not going to be first time that diplomacy has been attempted with Assad and yet the death toll is approaching 10,000. That’s 10,000 human lives sacrificed because one man wants to stay in power? What a shame for our civilization. How do the talks and the sanctions help? Sanctions have very little effect when it comes to leaders determined to stay on. There are many dictatorships that have survived sanctions before.</p>
<p style="text-align: justify;">China and Russia remain to be a stumbling block in change. While they position themselves as respecting countries’ sovereignty their whole point is just to stand against America and other western countries on influencing regime change no matter how inhuman the said regime is. They’ve vetoed two UN resolutions calling for Assad to step down. They also stood against action in Libya and against Kenyan post-election violence being referred to the ICC.  What an embarrassment Russia and China is. But their action this time over Syria is actually not favored by the Arab region. They’re messing up their own diplomatic ties.</p>
<p style="text-align: justify;">In Zimbabwe we have a leader who is 88 years old, been in power forever and is even blocking a change in the constitution that is overall good for the nation. Reason being that the new constitution would stop him from vying for the presidency again. This is a leader who has caused great economic woes to his people and his rule saw the Zimbabwean dollar inflate by humorously high levels of up to 231 million %. At the height of inflation 80% of the population was living on less than a Euro a day and 50% was malnourished. When did it become okay to stand back and watch in the name of respecting sovereignty while millions of people are tortured so one man can stay president?</p>
<p style="text-align: justify;">John McCain a U.S republican senator for Arizona has come out boldly in support of air strikes on Syria. Many politicians have tried to dissociate themselves from him because military action is not very popular among American voters right now. It’s true that air strikes will definitely result in loss of innocent life so this may not be a good option. However, when Assad decided it was okay to sacrifice thousands of lives to stay president he became a terrorist. If Osama could be sought and killed in his hideout without casualties then Assad whose location is well known should be easier to deal with. I say let’s take the bastard out. Let’s respect our fellow humans’ lives. Talking to Assad will not take us anywhere. It didn’t work with Ghadaffi, it didn’t work with Bashir, it didn’t work with Gbagbo.</p>
<p style="text-align: justify;">I say strike, influence, change. We are all humans, the reason we appear to be of different cultures is because of the silly boundaries we&#8217;ve created. The boundaries have resulted in the Arabs treating their women like second class citizens while elsewhere they&#8217;re empowered and free living their full potential. It has resulted in parts of Africa starving to death while other parts of the world die of obesity. It has led to leaders torturing their people and shutting them up making themselves gods while in other parts simple mistakes by leaders end their rule because its people&#8217;s voice is powerful enough to execute that change, and they have the freedom to do so.</p>
<p style="text-align: justify;">What&#8217;s the point of boundaries, sovereignty, citizenships? How do they help us move forward as a species? Despite being the most evolved species we still live in packs like wolves. We are one society: humans. The sooner we recognize that the better off we’ll be. For we’ll no longer let the neighbor torture others and declare sovereignty. Sovereignty my ass.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=286</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upcoming 2012 Sci-Fi Movies To Look Foward To</title>
		<link>http://www.nickhargreaves.com/?p=273</link>
		<comments>http://www.nickhargreaves.com/?p=273#comments</comments>
		<pubDate>Tue, 06 Mar 2012 12:26:43 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Movies&TV]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=273</guid>
		<description><![CDATA[1. Resident Evil:Retribution This is going to be the 5th episode of the Resident Evil series. Resident Evil 1 was awesome the next 3 were just okay. If they are going to continue producing with the story they should at &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=273">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>1. <strong><em>Resident Evil:Retribution</em></strong><br />
This is going to be the 5th episode of the Resident Evil series. Resident Evil 1 was awesome the next 3 were just okay. If they are going to continue producing with the story they should at least keep it as exciting as the first part. However, when all is said and done Resident Evil remains one of the best movies I&#8217;ve seen. Milla Jovovich &#8211; sassy as always &#8211; does a great job and her almost expressionless almost robotic face ironically adds more character to her character.  Release date for retribution is set at September 14th 2012 &#8211; a few months before the world ends <img src='http://www.nickhargreaves.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The trailer looks promising, hopefully this will be better than parts 2, 3 and 4.<br />
<iframe src="http://www.youtube.com/embed/x-qYzamoVDE" frameborder="0" width="480" height="315"></iframe><br />
2. <strong><em>G.I. Joe: Retaliation</em></strong><br />
After G.I. Joe: Rise of the Cobra I must say the producers of this series really know how to thrill. It is packed with cutting edge futuristic technology and is action tense all the way, oh and really nice shots of Paris. The only other time I was ever hooked to a movie from start to finish was watching &#8220;Eagle Eye&#8221;. I know, right? In this episode Cobra spy Zartan has most of the Joes assassinated, the remaining Joes band together to strike back.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/cViHCk-QMrc" frameborder="0" allowfullscreen></iframe><br />
3. <strong><em>Men In Black III</em></strong><br />
Yeah I know, it&#8217;s not the boldest science fiction film. However it has its moments and you&#8217;ll find it pretty entertaining if you ignore the terrible science. The aliens are pretty funny and its the same humorous crew: Will Smith and Tommy Lee Jones.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/IyaFEBI_L24" frameborder="0" allowfullscreen></iframe><br />
4. <strong><em>Prometheus</em></strong><br />
You give any science fiction film a Greek name and I&#8217;ll watch it no matter how terrible it is. And this one doesn&#8217;t sound terrible at all: A team of explorers discover a clue to the origins of mankind on Earth, leading them on a journey to the darkest corners of the universe. There, they must fight a terrifying battle to save the future of the human race. Release date is set for 8th June 2012.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/sftuxbvGwiU" frameborder="0" allowfullscreen></iframe><br />
5. John Carter<br />
If you enjoyed Avatar you’ll probably enjoy this. It has the same futuristic theme with a tint of fantasy. However this one looks more violent.<br />
Transplanted to Mars, a Civil War vet discovers a lush planet inhabited by 12-foot tall barbarians. Finding himself a prisoner of these creatures, he escapes, only to encounter a princess who is in desperate need of a savior.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/9ywY6XLj258" frameborder="0" allowfullscreen></iframe><br />
6. The Avengers<br />
Okay am not the biggest fan of superhero movies but this one looks worth my time. The trailer had me go “Holy shit”. Release date is set for May 4th 2012.<br />
Nick Fury and the international agency S.H.I.E.L.D. bring together a team of super humans to form The Avengers to help save the Earth from Loki &#038; his various membered army.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/oqFEBOxjxmY" frameborder="0" allowfullscreen></iframe><br />
7. Neighbourhood watch<br />
Another fun Ben Stiller movie, this one with aliens too and Richard Ayoade(from IT Crowd UK). Advance ticket anyone? This is more comedy than science fiction but still… Release date 27th July 2012<br />
Suburban dads form a neighborhood watch group to get time away from their families, only to discover a plot to destroy Earth.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/Lkb3LrfelO0" frameborder="0" allowfullscreen></iframe><br />
8. Battleship<br />
Am going to watch this despite the fact that Rihanna is in it. Release date set on 18th May 2012<br />
A fleet of ships is forced to do battle with an armada of unknown origins in order to discover and thwart their destructive goals.<br />
<iframe width="480" height="315" src="http://www.youtube.com/embed/KsieadPPvJE" frameborder="0" allowfullscreen></iframe><br />
9. Total Recall<br />
As the nation states Euromerica and New Shanghai vie for supremacy, a factory worker (Farrell) begins to suspect that he&#8217;s a spy, though he is unaware which side of the fight he&#8217;s on. – 3rd Release date is August 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=273</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated data movement from sqlite3 on App to MySQL on web</title>
		<link>http://www.nickhargreaves.com/?p=269</link>
		<comments>http://www.nickhargreaves.com/?p=269#comments</comments>
		<pubDate>Mon, 05 Mar 2012 08:45:39 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://nickhargreaves.com/?p=269</guid>
		<description><![CDATA[Hopefully this will be helpful to someone: Over the past one week my greatest headache has been moving data that is locally stored on the android app to the web. I designed the app to regularly store data on an &#8230;<div class="read_more"><a href="http://www.nickhargreaves.com/?p=269">read more</a></div>]]></description>
			<content:encoded><![CDATA[<p>Hopefully this will be helpful to someone:</p>
<p>Over the past one week my greatest headache has been moving data that is locally stored on the android app to the web. I designed the app to regularly store data on an sqlite3 database knowing that this would easily be exported to a MYSQL database online. Apparently that wasn’t the hardest part. There are several softwares that you can get online for easily converting sqlite3 to MYSQL which you’d then be able to easily import to your database using phpmyadmin or something. However the app since the app that am working on requires that once a user presses Export on the app he/she can immediately view the data on a web interface. So manual exporting is not an option here.</p>
<p>The database is first exported to an SD card, then uploaded and processed by a PHP script.</p>
<p>For data backup we have the following class:</p>
<p><strong>try</strong> {</p>
<p><span style="text-decoration: underline;">File</span> sd = <span style="text-decoration: underline;">Environment</span>.getExternalStorageDirectory();</p>
<p><span style="text-decoration: underline;">File</span> data = <span style="text-decoration: underline;">Environment</span>.getDataDirectory();</p>
<p>&nbsp;</p>
<p><strong>if</strong> (sd.canWrite()) {</p>
<p><span style="text-decoration: underline;">String</span> currentDBPath = &#8220;\\data\\com.blabla.bla\\databases\\dbname&#8221;;</p>
<p><span style="text-decoration: underline;">String</span> backupDBPath = &#8220;dbname&#8221;;</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">File</span> currentDB = <strong>new</strong> <span style="text-decoration: underline;">File</span>(data, currentDBPath);</p>
<p><span style="text-decoration: underline;">File</span> backupDB = <strong>new</strong> <span style="text-decoration: underline;">File</span>(sd, backupDBPath);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">FileChannel</span> src = <strong><span style="text-decoration: underline;">new</span></strong><span style="text-decoration: underline;"> FileInputStream(currentDB)</span>.getChannel();</p>
<p><span style="text-decoration: underline;">FileChannel</span> dst = <strong><span style="text-decoration: underline;">new</span></strong><span style="text-decoration: underline;"> FileOutputStream(backupDB)</span>.getChannel();</p>
<p>dst.transferFrom(src, 0, src.size());</p>
<p>src.close();</p>
<p>dst.close();</p>
<p><span style="text-decoration: underline;">Toast</span>.makeText(getBaseContext(), &#8220;Data has been backed up at: &#8220;+backupDB.toString(), <span style="text-decoration: underline;">Toast</span>.LENGTH_LONG).show();</p>
<p>&nbsp;</p>
<p>}</p>
<p>} <strong>catch</strong> (<span style="text-decoration: underline;">Exception</span> e) {</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Toast</span>.makeText(getBaseContext(), e.toString(), <span style="text-decoration: underline;">Toast</span>.LENGTH_LONG).show();</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>}</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>}</p>
<p>&nbsp;</p>
<p>Uploading to db we have this:</p>
<p><strong>private</strong> <span style="text-decoration: underline;">String</span> Tag = &#8220;UPLOADER&#8221;;</p>
<p><strong>private</strong> <span style="text-decoration: underline;">String</span> urlString = &#8220;http://yoursiteurl/uploads.php&#8221;;</p>
<p><span style="text-decoration: underline;">HttpURLConnection</span> conn;</p>
<p>And the class:</p>
<p><span style="text-decoration: underline;">String</span> exsistingFileName = &#8220;/sdcard/dbname&#8221;;</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">String</span> lineEnd = &#8220;\r\n&#8221;;</p>
<p><span style="text-decoration: underline;">String</span> twoHyphens = &#8220;&#8211;&#8221;;</p>
<p><span style="text-decoration: underline;">String</span> boundary = &#8220;*****&#8221;;</p>
<p><strong>try</strong> {</p>
<p>// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; CLIENT REQUEST</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Log</span>.e(<span style="text-decoration: underline;">Tag</span>, &#8220;Inside second Method&#8221;);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">FileInputStream</span> fileInputStream = <strong>new</strong> <span style="text-decoration: underline;">FileInputStream</span>(<strong>new</strong> <span style="text-decoration: underline;">File</span>(</p>
<p>exsistingFileName));</p>
<p>&nbsp;</p>
<p>// open a URL connection to the <span style="text-decoration: underline;">Servlet</span></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">URL</span> url = <strong>new</strong> <span style="text-decoration: underline;">URL</span>(<span style="text-decoration: underline;">urlString</span>);</p>
<p>&nbsp;</p>
<p>// Open a HTTP connection to the URL</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">conn</span> = (<span style="text-decoration: underline;">HttpURLConnection</span>) url.openConnection();</p>
<p>&nbsp;</p>
<p>// Allow Inputs</p>
<p><span style="text-decoration: underline;">conn</span>.setDoInput(<strong>true</strong>);</p>
<p>&nbsp;</p>
<p>// Allow Outputs</p>
<p><span style="text-decoration: underline;">conn</span>.setDoOutput(<strong>true</strong>);</p>
<p>&nbsp;</p>
<p>// Don&#8217;t use a cached copy.</p>
<p><span style="text-decoration: underline;">conn</span>.setUseCaches(<strong>false</strong>);</p>
<p>&nbsp;</p>
<p>// Use a post method.</p>
<p><span style="text-decoration: underline;">conn</span>.setRequestMethod(&#8220;POST&#8221;);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">conn</span>.setRequestProperty(&#8220;Connection&#8221;, &#8220;Keep-Alive&#8221;);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">conn</span>.setRequestProperty(&#8220;Content-Type&#8221;,</p>
<p>&#8220;multipart/form-data;boundary=&#8221; + boundary);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">DataOutputStream</span> dos = <strong>new</strong> <span style="text-decoration: underline;">DataOutputStream</span>(<span style="text-decoration: underline;">conn</span>.getOutputStream());</p>
<p>&nbsp;</p>
<p>dos.writeBytes(twoHyphens + boundary + lineEnd);</p>
<p>dos</p>
<p>.writeBytes(&#8220;Content-Disposition: post-data; name=uploadedfile;filename=&#8221;</p>
<p>+ exsistingFileName + &#8220;&#8221; + lineEnd);</p>
<p>dos.writeBytes(lineEnd);</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Log</span>.e(<span style="text-decoration: underline;">Tag</span>, &#8220;Headers are written&#8221;);</p>
<p>&nbsp;</p>
<p>// create a buffer of maximum size</p>
<p>&nbsp;</p>
<p><strong>int</strong> bytesAvailable = fileInputStream.available();</p>
<p><strong>int</strong> maxBufferSize = 1000;</p>
<p>// <span style="text-decoration: underline;">int</span> bufferSize = Math.min(bytesAvailable, maxBufferSize);</p>
<p><strong>byte</strong>[] buffer = <strong>new</strong> <strong>byte</strong>[bytesAvailable];</p>
<p>&nbsp;</p>
<p>// read file and write it into form&#8230;</p>
<p>&nbsp;</p>
<p><strong>int</strong> bytesRead = fileInputStream.read(buffer, 0, bytesAvailable);</p>
<p>&nbsp;</p>
<p><strong>while</strong> (bytesRead &gt; 0) {</p>
<p>dos.write(buffer, 0, bytesAvailable);</p>
<p>bytesAvailable = fileInputStream.available();</p>
<p>bytesAvailable = <span style="text-decoration: underline;">Math</span>.min(bytesAvailable, maxBufferSize);</p>
<p>bytesRead = fileInputStream.read(buffer, 0, bytesAvailable);</p>
<p>}</p>
<p>&nbsp;</p>
<p>// send <span style="text-decoration: underline;">multipart</span> form data <span style="text-decoration: underline;">necesssary</span> after file data&#8230;</p>
<p>&nbsp;</p>
<p>dos.writeBytes(lineEnd);</p>
<p>dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);</p>
<p>&nbsp;</p>
<p>// close streams</p>
<p><span style="text-decoration: underline;">Log</span>.e(<span style="text-decoration: underline;">Tag</span>, &#8220;File is written&#8221;);</p>
<p>fileInputStream.close();</p>
<p>dos.flush();</p>
<p>dos.close();</p>
<p>&nbsp;</p>
<p>} <strong>catch</strong> (<span style="text-decoration: underline;">MalformedURLException</span> ex) {</p>
<p><span style="text-decoration: underline;">Log</span>.e(<span style="text-decoration: underline;">Tag</span>, &#8220;error: &#8221; + ex.getMessage(), ex);</p>
<p>}</p>
<p>&nbsp;</p>
<p><strong>catch</strong> (<span style="text-decoration: underline;">IOException</span> ioe) {</p>
<p><span style="text-decoration: underline;">Log</span>.e(<span style="text-decoration: underline;">Tag</span>, &#8220;error: &#8221; + ioe.getMessage(), ioe);</p>
<p>Toast.makeText(Action1.<strong>this</strong>, &#8220;No Internet Connection!&#8221;, Toast.LENGTH_LONG).show();</p>
<p>}</p>
<p>&nbsp;</p>
<p><strong>try</strong> {</p>
<p>BufferedReader rd = <strong>new</strong> BufferedReader(<strong>new</strong> InputStreamReader(conn</p>
<p>.getInputStream()));</p>
<p>String line;</p>
<p><strong>while</strong> ((line = rd.readLine()) != <strong>null</strong>) {</p>
<p>Log.e(&#8220;Dialoge Box&#8221;, &#8220;Message: &#8221; + line);</p>
<p>Toast.makeText(Action1.<strong>this</strong>, line, Toast.LENGTH_LONG).show();</p>
<p>}</p>
<p>rd.close();</p>
<p>&nbsp;</p>
<p>} <strong>catch</strong> (IOException ioex) {</p>
<p>Log.e(&#8220;MediaPlayer&#8221;, &#8220;error: &#8221; + ioex.getMessage(), ioex);</p>
<p>}</p>
<p>}</p>
<p>For the above classes to work you must allow permissions for INTERNET and WRITE_EXTERNAL_STORAGE  on the manifest file otherwise they won’t work.</p>
<p>The upload path specificied in the uploading class should point to the following PHP file:</p>
<p>&lt;?php</p>
<p>&nbsp;</p>
<p>$target_path = &#8220;uploads/&#8221;;</p>
<p>&nbsp;</p>
<p>$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);</p>
<p>&nbsp;</p>
<p>if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {</p>
<p>echo &#8220;The file &#8220;. basename( $_FILES['uploadedfile']['name']).</p>
<p>&#8221; has been uploaded&#8221;;</p>
<p>} else{</p>
<p>echo &#8220;There was an error uploading the file, please try again!&#8221;;</p>
<p>}</p>
<p>&nbsp;</p>
<p>header(&#8216;Location:process.php&#8217;);</p>
<p>?&gt;</p>
<p>Remember to allow group write permission for the uploads/ folder.</p>
<p>Working with Sqlite3 with PHP is a big headache. Most servers default to Sqlite2 even if Sqlite3 is enabled and won’t work when you disable Sqlite2. I don’t know what that is about.  The following solution worked for me:</p>
<p>&lt;?php</p>
<p>$db = new PDO(&#8216;sqlite:databasename.sqlite&#8217;);</p>
<p>$result = $db-&gt;query(&#8216;SELECT * FROM tablename&#8217;);</p>
<p>foreach($result as $row)</p>
<p>{</p>
<p>Echo $row[‘somecolumn’];</p>
<p>}</p>
<p>?&gt;</p>
<p>My goal here was to eventually create mysql queries from the sqlite3 query using PHP and then to run them and have the MYSQL database populated with the data.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nickhargreaves.com/?feed=rss2&#038;p=269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://stats.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

