Thursday, 29 December 2016

KCSE 2016 RESULTS -Check Your Results Online

2016 KCSE Exam Results Analysis

Shocking drop in KCSE results as only 141 students score A 
2016 KCSE exam results out, only 141 scored straight As
Only 88,929 candidates attained C+ plus and above (out of 577,253).
88929 Students scored between A and C+ (All to be absorbed in the university)
141 As in 2016
4645 A- in 2016
10975 B+ in 2016
Alliance Girls High School (25 As in 2016 KCSE Results) & Kenya High School (21 As in 2016 KCSE Results)
Top 20 Students 16 are Girls and only 4 Boys
Number of As
2016 number of As is 141
2015 number of As was 2636
2014 number of As was 3017
2013 number of As was 2722
2016 number of B+ 10975
2015 number of B+ 21927

Friday, 23 January 2015

ANDROID LISTVIEW TUTORIALS FOR BEGINNERS


Android listview is a group view that displays a list of scrollable items. A simple example is phone Contact book, where you have a list of your contacts displayed in a listview.
To use a listview in android, drag and drop the listview control from the pallet to your user interface (UI).
LISTITEM.
List items are individual rows in a listview where data for each individual item is displayed. For example in the phone contact book mentioned earlier, each person’s contact details (could be their photo, number, name & email) are displayed in a single row (list item).
ADAPTER:-
Acts as the bridge between the view (e.g. Listview or gridview) and the underlying data for the view.
It just manages the adapter with the data and adapts the data to the individual rows (list item) of the view.
-        setAdapter() method is used to bind the adapter with the listview.
  Some common adapters provided by android include:-
a.      Simple cursor adapter.
b.      Array adapter.
c.      Cursor adapter.
But for the most part you would like to make your own adapter, and to do that you extent BaseAdapter.


Alright, enough basics let’s try a simple listview application now using Arrayadapter.

-        This kind of adapter is mostly used if you have a list of single items backed by an array. e.g. List of fruits names, list of cities, list of planets etc.
Let’s create a string array of fruits;
    String [] fruits= new String[] {“Orange”,”Apple”,”Mangoes”,”pineapple”,”Bananas”}; // this is our source data.

Next is to create the arrayadapater;
ArrayAdapter<String> fruitAdapter= new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, fruits);

fruitAdapter is an object of ArrayAdapter.
The parameters include:-
a.      Context… this
b.      Layout , which the adapter will use to bind the data from fruit array ; here we use _simple_list_item_1, displays a simple text view(you can use simple_list_item_multiple_choice to add check box after each textview)
c.      The 3rd is the data ……. fruits.

The last thing is to reference our listview and bind it to our adapter.
ListView fruitList= (ListView)findViewById(R.id.lst);
 fruitList.setAdapter(fruitAdapter);

Here is the code:


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".SharedPrefActivity" >

    <ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" >
    </ListView>

</RelativeLayout>



package com.example.listviewtutorial;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListViewActivity extends Activity {

ListView fruitList;
String[]fruits= new String[]{"orange","apple","Bananas","Mangoes","Carrots","Tomatoes","onions","potatoes",};// make it longer if you wish
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_view);
        
 ArrayAdapter<String> fruitsAdapter= new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1,fruits);
        
        
        fruitList=(ListView)findViewById(R.id.listView1);
        
        fruitList.setAdapter(fruitsAdapter);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.shared_pref, menu);
        return true;
    }
    
}

Tuesday, 25 November 2014

My way to spiritual maturity perfection

Don’t become discouraged by mistakes and rebukes. Children make many mistakes and must often be told they are wrong. How often does a child fall while learning to walk? They fall again and again gathering bumps and bruises. They spill their milk, don’t hold their spoon properly, fall off their bikes, and come to bat in the bottom of the ninth with the winning run in scoring position and strike out. Parents are continually correcting, instructing, and punishing, till we almost feel sorry for the kids. Growing up is tough! If kids are going to become mature, they have to keep going in spite of mistakes and rebukes. And someday they will look back on their own childish mistakes and just smile. Likewise, new converts will make many mistakes and must often be told they are wrong. Some of the greatest Bible characters committed terrible errors and had to be rebuked.
·        Moses made excuses when God called him to lead Israel out of bondage.
·        David committed adultery with Bathsheba and was rebuked by Nathan.
·        Peter denied Jesus three times.
·        Paul persecuted Christians before his conversion.
·        Thomas doubted Jesus’ resurrection.
·        All apostles forsook Jesus when He was arrested and crucified.
Yet all this are remembered as some of God’s greatest servants.
Great servants are not people who live without ever sinning, but people who learn from their mistakes and go on to serve God faithfully. Judas betrayed Jesus and he is remembered as a traitor. Peter denied Jesus three times and is remembered as great apostle. What is the difference? Judas, after betraying Jesus hung himself. Peter, after denying Jesus, repented and went to work preaching the gospel.

Proverbs 29:1 – A person is destroyed not simply because he errs, but because he becomes stubborn when he is rebuked and will not repent.  What is needed is repentance and patience to learn to do right.
    
By Floyd Harris:

Tuesday, 18 November 2014

How to put labels/posts in different “pages” at the menu bar in blogger.


One of the first challenges I experienced after joining blogger was to organize my labels (categories in word press) so that each label’s posts are on the same ‘static page’.

These are steps on how to do it:

1.   At the dashboard click layout then click “add widget” then choose ‘pages option’.


2. Scroll to see ‘add external link click it. And make sure to unselect any selected pages if any.

3.  At the pop up window (Web address Url) enter the name you would like to assign your page (call mine Jon and bram)then at the at the url part enter this;  http://www.youblogsname.com/search/label/nameofthelabel (the posts with this label name will be posted/ displayed on this page)

 4. Then save link and save page.

5.  If you want to delete the external link click the X at the page.

To delete whole page choose edit then remove.






Monday, 17 November 2014

GLORIOUS DAY

One day when heaven was filled with His praises, one day when sin was as black as it could be, Jesus came forth to be born of a virgin, dwelt among men my example is He….
The WORD became flesh and the light shined among us, His glory revealed.
Living He loved me dying He saved me, buried He carried my sins far away. Rising He justified me freely and forever, one day He is coming O glorious day.
One day they led Him up Calvary’s mountain nailed Him to die on a tree, suffering anguish despised and rejected, bearing our sins my redeemer is He.
The hands that healed nations stretched out on a tree and took the nails from me. The grave could not conceal Him, the stone rolled away from the door,
Then He arose over death He had conquered now is ascended my lord ever more. Death could not hold Him, the grave could not keep Him from raising again.
One day the trumpet will sound for His coming, the skies with His glories will shine. Wonderful day my beloved one is bringing.

My savior JESUS is mine.  

BY Casting Crowns.

Sunday, 16 November 2014

10 AMAZING HEALTH BENEFITS OF HAVING SEX REGULARY


    From how the families and society at large views sex and sex related issues you would think it’s the worst crime ever that even the devil himself is afraid of. But that’s miles away from the truth. Sex was at the beginning given to men by God for procreation, recreation and intimacy between two married male and female couple. Sex out of wedlock is what the giver of sex condemns, because it’s not according to His plan for sex. NOT LONELY ANY MORE
      He even promises harsh punishment for such individuals who do it out of wedlock-fornication and adultery (sexually immoral).  Rev 22:8 But for the cowardly, unbelieving, abominable, murderers, sexually immoral, sorcerers, idolaters, and all liars shall have their part in the lake which burns with fire and brimstone, which is the second death. So watch out.
With that said let’s check this:
1.      Let’s begin with the obvious; having sex regularly with your partner make you feel closer cared for and loved.
2.      Reduced aging rate
Having sex more often with same partner (having multiple sex partners exposes you to deadly risks) helps release hormones such as estrogen and testosterone which keeps the body looking young and vital. Estrogen also promotes soft skin and shiny hair says Cindy M. Meston. Semen also is said to contain some important components to the body that a woman absorbs eg calcium.
3.      Reduces prostate cancer risks.
Among many other ways on how to reduce prostate cancer risks, men who ejaculated frequently were less likely to suffer from prostate cancer; a study published in the journal of the American Medical association.
4.      Reduced stress
During sex endorphins and oxytocin hormones are released and this good-feeling hormones activate pleasure centers in the brain that create feelings of intimacy and relaxation as they suppress anxiety and depression and thus reduced stress, says WH advisor Laura Berman PhD.
5.      Lowers blood pressure.
Sexual intercourse lowers systolic blood pressure.  Joseph J. Pinzone, MD, CEO and medical director of Amai wellness suggests a link between sex and low blood pressure.
6.      Fewer colds
People who have sex more often have higher levels of antibody called immunoglobulin A (IgA) which helps combat diseases and keep the body safe from colds and flu. And thus sexually active people take fewer sick days says Yvonne K. Fulbright, PhD a sexual health expert.
7.      Periods with less cramps

At orgasm, women uterus contracts getting rid of the cramp causing compounds from the body and thus experience lighter and shorter period time. 
8.      Reduced pain.
Orgasm can block pain says Barry R. Komisaruk PhD professor at the state university of new Jersey. At orgasm endorphins are released which closely resemble morphine and they effectively relieve pain.
9.      Is a great exercise
Having sex burns at least five calories per minute and can burn as much as 85 to 250 calories depending on the length of the session. It also raises heart rate and utilizes various muscles. 
10.      Deeper sleep
At orgasm prolactin hormone responsible for feelings of relaxation and sleepiness after sex is released. Prolactin levels tend to be higher when we sleep and thus can make one doze off faster after sex; by Cindy M. Meston PhD and Sheenie Ambardar MD. 


Friday, 14 November 2014

Jesus' sweet words.



Dear Child,
I love you! I shed my own blood for you to prove it and to make you clean. You are clean now, so believe that it is true. You are lovely in my eyes, and I created you to be just as you are. Do not criticize yourself or get down for not being perfect. This leads only to frustration. I want you to trust Me...one step, one day at a time. Dwell in My power and in My love and you will be free! Be yourself! Don't allow other people to run you. I will guide you if you let me. Be aware of My presence in everything. I give you patience, love, joy, peace and life. Look to Me for your answers. I am your Shepherd and will lead you. Follow Me only! Listen to Me and I will tell you My will. Let My love flow from you and spill over to all you touch. Do not be concerned with yourself. You are My responsibility. I will change you. You are to love yourself and love others simply because I love you. Take your eyes off yourself! Look only at Me! I change...I create...but only when you let Me take control. You are Mine. You are Beautiful. You are Loved. Let Me give you joy, peace, and kindness like no one else can! Love,Jesus.