Monthly Archives: July 2014

God Exists…

I found a video at YouTube that got my attention. I decided to write down the contents of the video.

“Nothing can only create NOTHING. Before the universe began, something must have always existed. Its energy. Energy is ETERNAL. The 1st law of thermodynamics confirms that. The law states: “energy cannot be created or destroyed”. No beginning or uncreated and no end. That’s the definition of “eternal”. You also can’t claim that this energy always existed IN the known universe because science has proven that the universe didn’t always exist. The universe and time didn’t always exist by Stephen Hawking
This energy that was present BEFORE the universe began had to have power beyond anything we can begin to imagine, considering it had to transfer its energy unto the TRILLIONS of stars and BILLIONS of galaxies. A separate eternal energy source that exists outside of the universe had to have supplied or transferred its energy to the universe (because we know the universe didn’t exist).
It is not unreasonable to assume this ANONYMOUS energy was the GOD. Listen, we reasonable have 2 options to determine what this powerful always existing energy. It could be a dumb, unconscious and vague energy source. (However, this seems extremely illogical considering that we can observe complexity, order, and design throughout the universe, solar system, galaxies, Human DNA, Chromosomes, Digestive system, neural system, the eye, the heart, liver, the brain…). The most logical answer would be that an intelligent mind constructed the universe, or a God. It’s as simple as that.
If you can’t agree with this logic then you’re stubborn, unreasonable, and don’t want to believe in the possible existence of a God.

But, but…but how did God created the universe in absence of time? Or simply, what is time? Or was time part of the creations of the universe?

My Best Assignment: “Pure Knockoutjs”


The following are the topics I will discuss:

  1.   What is Knockoutjs?
  2.   What was my project? And how was it born?
  3.   Why did I choose knockoutjs for my project?
  4.    Screenshots of the project
  5.   How you, not me…how you will extend this project.
  6.   Creating a 100% static blog with Knockoutjs.
  7.   The future of Knockoutjs.
  8.   Let’s learn Knockoutjs.
  9.   Help me with Knockoutjs View-Models [seriously please…]

What is Knockoutjs?
Knockoutjs is a JavaScript library. It’s a framework created meant for use just like a pure JavaScript code, but has a different implementation, a better implementation, which is MVVM. For example, what would you do if you wanted to produce the HTML code dynamically, like when you want to create a customizable user interface? Using Knockoutjs, this a task of simply implementing a binding element; like for foreach. Checkout a simple implementation Here.
What was my project? And how was it born?
Our lecturer gave us an assignment. The requirements of the project were to create a primary school application with any programming language; be C++, C, Java, C#, VB, Delphi, or any other existing language, including Lisp if you wish. So, here is how I ended up using Knockoutjs: I am doing a personal project with SignalR, Knockoutjs, ASP.NET MVC, and some other technologies. And since Knockoutjs remains to be a subject to learn to me, I thought I would exploit my chances and risk doing the project in JavaScript, Knockoutjs to be precise…. The application had to do the following:

  1.  Capture student registration details
  2. Capture fee payment records
  3. Teachers on duty
  4. Subject offered in high school
  5. Class teachers
  6. Rank students in examinations
  7. Produce order of merit list per class
  8. Display the most improved student in each class and the whole school
  9. Print report cards in PDF
  10.  Generate trial balance for the school
  11.  Generate income statement

NB: This was not a final year, or end of course project. In fact, we only had two weeks to do a prototype that could demonstrate all that, because he wanted to explain a point in class using those projects [Software Development].

Why did I choose knockoutjs for my project?
⦁    Knockoutjs was part of a personal project that am currently doing
⦁    Knockoutjs has nice templates [Templating with KO observables]
⦁    I wanted to do a simple static site that could do complex tasks without the need of server side code
⦁    Is very easy to reuse already existing examples online, as it is simple to learn

Screenshots of the project




How you, not me…how you will extend this project.
I will give the code of the whole project at the bottom, and youwill also find a link to a running demo. If you are curious to see all those functionalities running and working, you will be disappointed to find that I didn’t implement some. This is all due to time constrains. We are starting our exams very soon, and for someone like me who is always concentrating on one thing at a time, I have to stop everything, including my project so I can at least start learning for the exams, yeah, I said reading to pass exams! This is what we do in Kenya, or better said, this is what they encourage in Kenya, “PASSING EXAMS-IF YOU PASS, YOU ARE BRIGHT :: THEORY EXAMS, NO PRACTICALS”
So, that being constant, I left some things un-accomplished, like PDF functionalities, and not because they are so hard to do, it all boils from time, and priorities. Wee, if you are willing to pay me so I can finish that specifically for you, well then, you are very welcome (money and college have always been dependent on each other!!). So, if you want to return HTML pages as PDF files from the browser, completely with client side JavaScript, there is a library called jsPDF. And because I am not willing to work an example for you, I will show you screenshots how jsPDF works. I have downloaded the samples from their github repository, and its working 100%, so there is no need of re-implementing it again.

image4image5image6  image7

Creating a 100% static blog with Knockoutjs.
From my little experience with knockoutjs, am vividly convinced a question that was asked at stackoverflow can be answered. The owner of the question wanted a blog engine created with pure JavaScript (and isn’t Knockoutjs JavaScript? Of course it is…)
I don’t know why something tells me that it would be easier to edit a Knockoutjs template for github pages than using Jekyll. All you have to do, is wrap a HTML list-element with a foreach loop and everything in the Knockoutjs template gets posted on the HTML page, with the order you want. You can also implement something like a search, and many more features like sorting.
I know this is, or might sound stupid if you are an established programmer, but I know people like me, people like us, we value and respect simplicity.


proof how it depends….

if you are a pessimist, you’ll say nothing is free; if you are an optimist, you’ll say everything good in life is free; and if you are a philosopher, you’ll proof how it depends;


“_everything i desired in life, i always get it…probably not so quick, but in the end, it happens”

That’s my story, only a single line! As much as i would wish to have a longer story, i just can’t. I would wish a story to motivate, or inspire someone, a story worth listening to, a story that…anyway, i guess God loves me so much that He can’t let me narrate a horror story, or a sad story, or a stupid story…no matter how interesting it would sound, so i say…thank you God

If this is not photoShop, then its owesome!!!

Tangible Media

Tangible Media

Any one ever heard of “Wiggle stereoscopy”?

Wiggle stereoscopy is an example of stereoscopy in which left and right images of a stereo-gram are animated. This technique is also called wiggle 3-D or wobble 3-D, sometimes also Piku-Piku (Japanese for “twitching”).

Best movies 1

As far as my memory is concerned, some of my favorite movies i can remember (as of now…) include:

  1. Vampire Diaries (series)
  2. The Originals (series)
  3. Merlin (series)
  4. Legend of the seeker (series)
  5. The IP man (short-movie)
  6. Persons of interest (series)
  7. Davinci Demons (series)
  8. Atlantis (series)
  9. Under the Dome (series)
  10. Touch (series)
  11. The Encounter [1 and 2] (short-movie)
  12. Undisputed [1, 2 and 3] (short-movie)
  13. My Name is Khan (Indian-short-movie)
  14. Bodyguard (Indian-short-movie)
  15. Kites (Indian-short-movie)

More list coming soon….at Best Movies 2


What would happen if we blew up the Moon?

The year is 2113. Humanity has spent the last 100 years stockpiling nuclear warheads. And not just a few – 600 billion of the largest, biggest, deadliest warheads they can build. Sort of like the Russian Tsar Bomba (the biggest nuclear bomb ever detonated) but, well, times 600 billion.

Why? Because we’ve decided to blow up the Moon, and to do so would require the equivalent of 30 trillion megatons of TNT.

When we say blow up, we don’t just mean slightly-blow-up. See, if you don’t completely obliterate the Moon, the remaining fragments will likely coalesce back together into a Moon-sized object. Sure, it won’t look as pretty or as spherical as our modern Moon, but it will be pretty similar in its gravitational effect on Earth.

No, what we (or, more specifically, our future selves) want to do is completely get rid of the Moon. So, with their multiple rockets ready and waiting to attack the Moon from all sides, they launch them towards our natural satellite and blow it to smithereens. Scientists around the world eagerly prepare for one of the greatest (and most idiotic) experiments of all time.

With the fragments of the Moon too small to gravitationally bond together, they begin to spread out. First, a large number of them head towards Earth, raining molten Moon rock down on our planet. Cities are destroyed, countries are wiped off the map, and we begin to wonder if blowing up the Moon was such a brilliant idea.

The remaining Moon material enters orbit around the world, forming a ring around our planet. But, like Saturn’s ring, it doesn’t just stay there. Periodically, for the rest of Earth’s life, meteorites break from the ring and slam into the surface. We’re now under constant bombardment from an apparently vengeful Moon.

But the Moon isn’t quite done getting even yet. Have you ever noticed that the Moon is covered in craters? Well, that’s because it gets pounded by meteorites, protecting Earth from some of the rocks that head our way. With the Moon annihilated, we’re now also more vulnerable to space rocks.

Of course, one of the Moon’s most noticeable effects is (or was) the tides. With the Moon no longer there, the oceans of the world become much calmer. The Sun still has an effect on them (known as solar tides), so surfers wouldn’t be completely devoid of waves. But the oceans would largely become serene.

This has a dire effect on life on Earth. When life first formed on Earth in tidal pools, it was thanks to the gravitational pull of the Moon that primordial life was able to traverse between different pools and generally spread across the planet. While we’re already here now, life that is currently in the oceans is no longer able to move so easily. The churning of the oceans, and thus the circulation of nutrients, ceases. Water-based life struggles to survive and, eventually, thousands (and probably millions) of species go extinct.

The Moon isn’t done yet, though. You see, it also accounted for about one-eightieth of the Earth-Moon mass system. The loss of the Moon directly affects the Earth’s orbit, rotation and wobble. Without the Moon to act as a stabiliser, the Earth begins to wobble more and more, sending our seasons into turmoil and changing our orbit around the Sun from slightly elliptical to massively elliptical. We now swing around the Sun in a wild, unstable, fluctuating orbit.

As the world regrets their ill-advised decision to destroy the Moon, it’s already too late to do anything. If humanity survives the constant bombardment from the remains of the Moon and other space rocks, the eradication of most other species from the globe, and finally the potentially catastrophic seasonal changes then, well, maybe blowing up the Moon wasn’t such a bad idea.

Otherwise, we’d probably advise against it. Why don’t we get rid of the Sun instead?


Hell explained by a Chemistry Student

The following is an actual question given on a University of Washington chemistry mid-term.

Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)?

The answer by one student was so ‘profound’ that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well

Most of the students wrote proofs of their beliefs using Boyle’s Law (gas cools when it expands and heats when it is compressed) or some variant. One student, however, wrote the following:

First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let’s look at the different religions that exist in the world today.

Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the rate of change of the volume in Hell because Boyle’s Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added.

This gives two possibilities:

  1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose.
  2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over.

So which is it?

If we accept the postulate given to me by Teresa during my Freshman year that, ‘It will be a cold day in Hell before I sleep with you,’ and take into account the fact that I slept with her last night, then number two must be true, and thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct……leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting ‘Oh my God.’


Question 2

Create a sample algorithm for solving “Factorial“, “Anagram“, “Combination“, and “Permutation