kabue-charles

Weird Preferences

Everyone has that weird preference for something. Let me start with mine: I like people with unpredictable character traits, I feel comfortable when the sound volume of my playlist is in odd numbers, I like putting my phone in the trouser pocket, if i were told to choose any random number i possibly would choose 13 or 7, i hate inbuilt phone browsers for no specific reason, I don’t like it when get something free of charge

Why I hate SAFARICOM

Safaricom is Kenya’s best mobile service provider…but they suck, they are disgusting, they exploit, the only care about their profits, and their customer care line is always busy…ever busy!!

I recently bought their data bundles at 10/= Kenya shilling for 10 MB and 10 SMS. That sounds fair to me as well to everyone since I only wanted to check my email! And before I could finish opening the last email, a message from Safaricom came, “Your Daily Data Bundle balance is below 2.00 MB. Dial *544# to purchase or Okoa Internet bundle.” And then I decided to open my twitter account and after like 1.7 minutes, they sent me a USSD message telling me that I have an option browsing at 0.45 cents per MB. I immediately opened my calculator and started clicking…0.45*20=9…so I can use 20 MB for only 9 bob? Well then I bought nine shillings from my M-Pesa account and started browsing immediately BUT after I first checked how many data bundles I have used since I bought my phone…after like 2 or 3 minutes, another USSD message pops up this time saying I have a remainder of 1 bob. And I thought to myself, maybe something is synchronizing or updating on the background without my knowledge…but the data count should still count those data bundles, eeh? So let me check by how much did the count increase by. To my surprise, believe it or not, I had only used 2 MB extra! So like they only give 10% of what they promise.

Someone should create something better than M-Pesa and we’ll all swim away from Safaricom…they didn’t even create it! They just copyrighted a student’s idea, and it became theirs… According to filtered rumours that reached to my ears, the original owner of the idea was given ground $50,000 while Safaricom earns approximately $125,000 from the implementation of the idea, DAILY!!!

Sincerity

Sincerity is a condition of being honest, clear, and frank with your mind and yourself. Being sincere revolves around “hopping for the best expecting the worst”.

God loves sincere people. Don’t say the sermon was long, just admit that it was boring. I personally don’t like being a role model to anyone. Because it makes you do things you don’t want to, just to keep your followers behind you. Life lacks taste when we try to make it everyone smile. If you are sure that you are doing the right thing, why care about third party opinions?

Some people have the strength to lie to them selves. And even……(to be continued)

Marriage Software

This is what a guy wrote to a Systems Analyst –

 

(Marriage Software Div);

Dear Systems Analyst,

I am desperate for some help! I recently upgraded my program from Girlfriend 7.0 to Wife 1.0 and found that the new program began unexpected Child Processing and also took up a lot of space and valuable resources.

This wasn’t mentioned in the product brochure. In addition Wife 1.0 installs itself into all other programs and launches during systems initialization and then it monitors all other system activities.

Applications such as “Boys’ Night out 2.5” and “Golf 5.3” no longer run, and crashes the system whenever selected. Attempting to operate selected “Soccer 6.3” always fails and “Shopping 7.1” runs instead. I cannot seem to keep Wife 1.0 in the background whilst attempting to run any of my favorite applications. Be it online or offline.

I am thinking of going back to “Girlfriend 7.0”, but uninstall doesn’t work on this program. Can you please help?

 

 

 

…. The Systems Analyst replied:

 

Dear Customer,

This is a very common problem resulting from a basic misunderstanding of the functions of the Wife 1.0 program. Many customers upgrade from Girlfriend 7.0 to Wife 1.0 thinking that Wife 1.0 is merely a UTILITY AND ENTERTAINMENT PROGRAM. Actually, Wife 1.0 is an OPERATING SYSTEM designed by its Creator to run everything on your current platform.

You are unlikely to be able to purge Wife 1.0 and still convert back to Girlfriend 7.0, as Wife 1.0 was not designed to do this and it is impossible to uninstall, delete or purge the program files from the System once it is installed.

Some people have tried to install Girlfriend 8.0 or Wife 2.0 but have ended up with even more problems. (See manual under Alimony/Child Support and Solicitors’ Fees).

Having Wife 1.0 installed, I recommend you keep it Installed and deal with the difficulties as best as you can. When any faults or problems occur, whatever you think has caused them, you must run the………

C:\ APOLOGIZE\ FORGIVE ME.EXE Program and avoid attempting to use the *Esc-Key for it will freeze the entire system.

It may be necessary to run C:\ APOLOGIZE\ FORGIVE ME.EXE a number of times, and eventually hope that the operating system will return to normal.

Wife 1.0, although a very high maintenance programme, can be very rewarding.

To get the most out of it, consider buying additional Software such as “Flowers 2.0” and “Chocolates 5.0” or “HUGS\ KISSES 6.00.0” or “TENDERNESS\ UNDERSTANDING 1.000.0″ or even Eating Out Without the Kids 7.2.1” (if Child processing has already started).

DO NOT under any circumstances install “Secretary 2.1” (Short Skirt Version) or “One Night 3.2” (Any Mood Version), as this is not a supported Application for Wife 1.0 and the system will almost certainly CRASH.

BEST WISHES!

Yours, Systems Analyst.

Validating my Campus registration Number using HTML5 validation

i am creating a project application for someone that i need that i need validating the registration number of a student… i wanted to follow the easiest was of doing it instead of using plugins…

i need to validate the following numbers:

  1. IN17/24456/2012

  2. in17/24456/12

  3. 1Np17/24456/2012

  4. inP17/24456/12

AND HEY, these needs to be ultimately strict, as strict as possible…

here is HTML5 magic

<form>
<input pattern="(?:[A-Za-z]{2}[0-9]{2}|[A-Za-z]{2}[Pp]{1}[0-9]{2})\/[0-9]{5}\/([1-2]{1}[90]{1}[0-9]{2}|[901]{1}[0-9]{1})" required/>
<input type="submit" value="Reistration number"/>
</form>

here is the a demo

and the application on apphabour

and the github repo

NB: i havent implemented this yet, but i will very soon…

please vote for my above Appharbour Application

Jesus invites us to follow Him

Key verse: ‘Follow Me’ (Mathew 9:9)

If a great chief or king sent an invitation to us asking us to come and live with him, so that we could be with him on all his journeys, we would be very happy. It would give us great joy to think that such a wonderful man had chosen us to be his friends. The Lord Jesus Christ has invited us to follow Him and be His friends! What greater honor could we have?

One day as Jesus was walking beside the Sea of Galilee. He saw two men, Peter and Andrew. They were fishing. Jesus said to them, ‘Follow me, and I will make you fishers of men’ (Mathew 4:18, 19). Another day Jesus passed an office where a man called Mathew was collecting custom fees, and He said to him, ‘Follow me’ (Mathew 9:9). When these men received invitation from Jesus they immediately left everything behind and followed Him. They were willing to leave their work and families and walk with Jesus? It was because they knew that Jesus was the son of God, and it was a great honour to receive an invitation to be one of His followers. They knew that Jesus was able to give them eternal life and this was of more value than the worldly things they were leaving behind (Luke 18:29, 30).

Although Jesus has now gone to heaven He is inviting us to follow Him. He invites us through His word, the Bible.

First we find that the invitation is for everyone. ‘I will never refuse the person who comes to me,’ He says in John 6:37. Peter tells us in acts 10:34, 35 that God does not favor one person more than another, but the invitation is to people of every tribe. Perhaps you who are studying this lesson have thought that God is not interested in you because of your family, or your tribe, or because you do not have much education. If so, you can be rejoice and be full of joy because the invitation from Jesus comes to you as well as everyone else (Acts 2:38).

Then there are special invitations to those who have special needs. There is one for those for those who are weary and tired because they are carrying a heavy load of sin. Perhaps for many years they have carried this load and they have found it very, very heavy. As one sinful habit after another have been formed in their lives the load has become heavier. To people like this Jesus says, ‘Come to me’, and I will give you rest (Mathew 11:28-30). And Jesus cuts the rope that bind these burdens.

Another special invitation is given to those who are thirsty. We know what it is like to be thirsty of water. How we long for a lovely refreshing drink after a hard job or difficult walk, and if there is there is no water near, we cannot do anything else before we find some. But the invitation we are thinking about here is not for just for those who are thirsty for water. It is for those who are thirsty in their souls. many people are unhappy. They do not have joy and they are looking for something that will give them real joy in their hearts. Many have tried beer dancing, adultery, and other things but they are still thirsty. To them, Jesus calls, ‘if anyone is thirsty, let them come to me and drink’ (John 7:37; see also Revelation 22:17).

Jesus promises that those who drink of His water will never thirst for sinful pleasures again, because water will be like well inside them (John 4:14)

Another special invitation comes to those who are like lost sheep (Isaiah 53:6). Many are wandering in the ‘bush’ of sin. They have lost the right path and everything is dark around them. The wild animals are following them, and unless someone can find them and lead them, Satan will take them to hell. Is there anyone who can bring them back to the path that leads to heaven? Yes, there is One! It is Jesus. He calls to the lost sheep, “He who follows me will not walk in darkness, but will have the light of life” (John 8:12). If the sheep will follow Him they will not be lost in sin anymore, because His voice will lead them (John 10:4, 27)

How thankful we should be for these invitations to follow Jesus, the Son of God. If we are weary and tired, or thirsty, or lost, we should come to Home today, accept His invitation, and become one of His followers. The following bible study will point out to us from scripture how we can follow Jesus.

Using Select2.js jQuery plugin

Lately, I have been on a project that required a heavy use of HTML select. I choose select2 after a period of comparison which other plugins like choose.js and selectize.js. it was very easy to get along, thanks to the almost enough documentation. i am writing this post to answer my own question which I asked at stackoverflow, since I never got even a single relevant response. Its really scaring how some stackoverflow boys want to cause trouble when you mean no harm. I mean, if you see someone asking a SLIGHTLY AMBIGUOUS question, it means that most likely, they only have the idea of what is to be done. Sometimes you don’t even know what to Google, so you feel inclined to ask a question so at least you get your search terms right, or should stackExchange have another site called “search-terms”??

Anyway, here was my question…

Autofilling inputs and selects with select2

and here is my answer…

<form style="width: 350px;" id="" class="navbar-form form" role="form" data-bind="">
<dl class="dl-horizontal">
<dt>President</dt>
<dd><select data-placeholder='President' id="president" class="select11" style="width: 300px;">
<option></option>
<option value="AK">Mickel</option>
<option value="HI">James</option>
<option value="CA">Sandney</option>
</select>
</dd>
<dd>
<input id="runningMate" placeholder="running mate" class="form-control" type="" name="" style="width: 300px;" disabled>
</dd>
</dl>

<dl class=”dl-horizontal”>
<dt>Secretary General</dt>
<dd><select data-placeholder=’Secretary General’ class=”select11″ style=”width: 300px;”>
<option></option>
<option value=”AK”>Alaska</option>
<option value=”HI”>Hawaii</option>
<option value=”CA”>California</option>
<option value=”NV”>Nevada</option>
<option value=”OR”>Oregon</option>
</select>
</dd>
</dl>

<dl class=”dl-horizontal”>
<dt>Financial Controller</dt>
<dd><select data-placeholder=’Financial Controller’ class=”select11″ style=”width: 300px;”>
<option></option>
<option value=”AK”>Alaska</option>
<option value=”HI”>Hawaii</option>
<option value=”CA”>California</option>
<option value=”NV”>Nevada</option>
<option value=”OR”>Oregon</option>
</select>
</dd>
</dl>

<dl class=”dl-horizontal”>
<dt>Faculty representative</dt>
<dd><select data-placeholder=’Choose Faculty’ id=”faculty” class=”select11″ style=”width: 300px;”>
<option></option>
<option value=”fist”>fist</option>
<option value=”commerce”>commerce</option>
<option value=”spas”>spas</option>
</select>
</dd>
<dd><select data-placeholder=’Faculty representative’ id=’representative’ class=”select11″ style=”width: 300px;”>
<option></option>
</select>
</dd>
</dl>
</form>

and here is the script that is doing the magic…
<script>
$(function(){
$('#president').select2({
allowClear: true
})
.on("select2-selecting", function(e) {
if (e.choice.text == "Mickel"){ $('#runningMate').val('Mercy is ' + e.choice.text + "'s Running Mate"); }
else if (e.choice.text == "James"){ $('#runningMate').val('Mukami is ' + e.choice.text + "'s Running Mate"); }
else if (e.choice.text == "Sandney"){ $('#runningMate').val('Moses is ' + e.choice.text + "'s Running Mate"); }
})

$(‘#representative’).select2({
allowClear: true
});

$(‘#faculty’).select2({
allowClear: true
})
.on(“select2-open”, function() {
fist=new Array(“jamo”,”sam”,”kaka”,”jane”);
commerce=new Array(‘chalo’,’mark’,’timo’);
spas=new Array(‘ali’,’Elke’,’Fred’,’Bobby’,’Frits’);

$(‘#faculty’).change(function(){ populateSelect(); });
function populateSelect(){
var representative = $(‘#faculty’).val();
$(‘#representative’).select2(“data”,””);
$(‘#representative’).html(‘<option></option>’);

eval(representative).forEach(function(t) {
//$(‘#representative’).select2(“val”:””);
$(‘#representative’).append(‘<option>’+t+'</option>’);
});
}
})
});
</script>

and this is what i got…

select1

select2

God doesn’t live, He exists…but Humans do

I will say this again so it doesn’t seem like I gave the wrong title, “GOD DOESN’T LIVE, HE EXISTS!” What do I mean? What is the difference between living and existing anyway? Living revolves and involves a purpose, but God doesn’t have a purpose for living, in fact, He doesn’t require to live (or have a purpose), He just or plainly exits.

Human beings live because, according to the bible, we are supposed to please He from whom we are! But then again, how could God be pleased by something that is solely dependent on His commands? Then it would mean that there is a likelihood He is sometimes not pleased by His self, which might explain His reason of giving instructions that are not pleasing to you Himself… what all those lines above are trying to explain is that there was no reasonable reason for God to control us, what we do, what we ask, how or what we think, what we see things, what we imagine, or how we speak or hate and love! He wanted to be served by a god like Himself. We are gods. Go read Genesis 1:26, it says;

 26 Then God said, “Let Us make man in Our image, according to Our likeness; let them have dominion over the fish of the sea, over the birds of the air, and over the cattle, over all[a] the earth and over every creeping thing that creeps on the earth.”

Each and every one of us is a god! That is why we are able to tame every animal, plant, even people and sometimes creation. That’s why we are all free thinkers, well, unless you are locked to the cages of un-civilization, culture or religion. He wanted to be served by us free willingly.

Well thank you for pointing at me, “Look at this fool.” How many fingers of you are pointing at your chest as you point at me? Three! Three fingers telling you to be less stubborn and at least go research about this free revelation, that is if you will not be willing to be accept it.

But in general, in order to co-exist with each other, we all have to be at one time or the other be tamed, so that we don’t misbehave. That’s why we have the constitution, personal principles, freemasons, including culture, beliefs, faith, and religion.

LOST AND FOUND TREASURE

WP_20150108_002

Long time ago (like 10 years back from today, 1/8/2015), I found a very small book in our home. I choose to take it, and I opted to understand what it contained. It had no cover page, and most of the last pages were not there, besides the remaining ones being torn. The remaining pages had stood the test of time and the wrath of hungry rodents.

The book had content related to the journey of Christian salvation. Now am in my final year in campus and after a very long time of searching its presence online, I succeeded in failing to find it. So I have decided to write it, letter by letter, thanks to my 2nd New Year (2015) resolution of writing at least three posts per week.

Here at school, there are bible study sessions with very nice guide books, but none is close to how compelling and convincing this little book I found when I was in primary is.

Here is the 1st page of the torn treasure. I don’t know why, but I always felt that the book can help someone…

WP_20150108_004

The contents of this book include:


 

i. Jesus invites us to follow Him
ii. Why we need to follow Jesus
iii. How can we follow Jesus?
iv. Followers of Jesus must repent
v. Followers of Jesus must be born again
vi. Followers of Jesus must be consecrated
vii. Followers of Jesus must be filled with the Holy Spirit
viii. Followers of Jesus overcome sin
ix. Followers of Jesus love their Bibles
x. Followers of Jesus love to pray
xi. Followers of Jesus must work for Him
xii. Followers of Jesus must be ready for His return
xiii. Questions


I will be writing one post per week on each of the above contents. If I fail to write, my believe is you will be a little patient with me because I have the final campus project waiting for me to complete, besides helping my friends do theirs…

Anger

There once was a little boy who had a bad temper. His father gave him a bag of nails and told him that every time he lost his temper, he must hammer a nail into the back of the fence. The first day the boy had driven 37 nails into the fence. Over the next few weeks, as he learned to control his anger, the number of nails hammered daily gradually dwindled down. He discovered it was easier to hold his temper than to drive those nails into the fence.

Finally the day came when the boy didn’t lose his temper at all. He told his father about it and the father suggested that the boy now pull out one nail for each day that he was able to hold his temper. The days passed and the young boy was finally able to tell his father that all the nails were gone.

The father took his son by the hand and led him to the fence. He said, “You have done well, my son, but look at the holes in the fence. The fence will never be the same. When you say things in anger, they leave a scar just like this one. You can put a knife in a man and draw it out. It won’t matter how many times you say I’m sorry, the wound is still there.”

A verbal wound is as bad as a physical one. Friends are a very rare jewel, indeed. They make you smile and encourage you to succeed. They lend an ear, they share a word of praise, and they always want to open their hearts to us.

Source