Skip to main content


Showing posts from November, 2019

How I managed to have AdSense activated on my blog

It is every bloggers dream to earn revenue from their content. However, not everyone succeeds as It involves a lot of hard work and commitment on the part of the content creator. My journey into getting adverts to start displaying on my blog was not an easy one. When I started blogging I thought getting a lot of visitors on the site was a bed of roses following my success on running a page on Facebook. I ventured into blogging having high hopes,  but things do not always go as planned. I had to close my blog and go back to the drawing board. It was a futile attempt and I became frustrated. Let me take you back to the days when I started writing online. Early Days
It all started with creating a Facebook page. My personal account had only a few followers and even if my followers had decided to like my page it would not have made any impact, it was a drop in the ocean. I decided to advertise my page and guess what? The response was amazing! In less than a week I had slightly over a thou…

Five facts About Shatterproof Glass

The following are some fascinating facts about shatterproof glass.

1. It was created by accident by Edonard Benedictus , a Frenchman, in 1903.
2. It is made up of layers of glass sandwiched around layers of polyvinyl butyral or ethylene-vinyl acetate.
3. There are different levels of shatterproof glass. the first level focuses on impact resistance while the sixth level can withstand more than 30 blows of an axe!
4. Certification of the glass is done by conducting a test using an 8lb steel ball which is dropped at varying heights on to the glass.
5. Shatterproof glass is difficult to cut through in cases of emergency, say in a vehicle, therefore it is only used on windshields while temper glass, which breaks into small glass pebbles on impact, is used in side and rear Windows of cars.

A Comparison between a German Shepherd and a Belgian Shepherd

While I was working as a police officer I had an opportunity to train and work with an Alsatian or German Shepherd Dog (GSD). They look vicious because of their pixie ears. They are good for use as drug dogs or patrol dogs. They can weigh above 30kg and can be quite huge in comparison to most dog breeds. I remember seeing a Malinois or Belgian Shepherd Dog (BSD) on a TV show and I wished I could one day own that kind of dog. I eventually had an opportunity to train as well as handle a BSD and now I am ready to give a comparison between the two.
Food Rations
GSDs require slightly more rations than BSDs to keep nourished. Malinois can destroy empty food bowels so ensure you remove them soon after they finish eating.
Nose Work
They are at par, however BSDs move with great speed and are a marvel to watch when they are working.
Alsatians are outdone by BSDs in this category. GSDs also usually suffer from hip dysplasia and so you have to be careful when doing agility exercises.

The Role of a Web Designer in Web Development

Quite often , when we talk of web development we tend to forget about web design. This is a very important subject. For a website to look splendid and to have useful features, it all starts with a creative designer. I urge anybody trying to get in the field of web development to also consider web design. Let me elaborate on the steps that a website goes through when in development. A web designer, someone with graphic design skills, creates a brand- if it was not yet created. A brand means a logo, colours and fonts associated with a business. These must resonate with everything related to the company. It is the job of the web designer to choose what colours to use and the fonts as well as come up with a logo for inclusion on the website. The web designer does not necessarily need to know HTML or CSS although it will be an advantage. After deciding on the resources needed for the web pages, the designer creates a layout of the web pages and comes up with an illustration called a wire…

Why I Chose Multimedia Technology Over Software Engeering

As a blogger I always strive to give my best when it comes to content creation. The decision to start blogging was easy for me, however, choosing between software engineering and multimedia technology was tough. So what helped me in the decision making process?
When I started blogging in 2016 I was not immediately successful. I tried to replicate my success on a Facebook page I was running on my blog but in vain. I could not drive traffic from the Facebook page to the website despite the huge following I enjoyed. I was frustrated and decided to only focus on my career as a web developer and an Android mobile application developer.
The previous year I had taken a course in photojournalism at a reputable school of journalism, but since at that time I only had a point and shoot camera I could not spend enough time taking photographs to be taken seriously. It was not the first time to embark on something that seemed to be not in line with my passion as computer programmer, I once tried …

How Important is Yandex to A Digital Marketer?

I have come up with an argument and I would like the reader to consider whether it is valid or not.  Here is the argument: If it is a a major search engine then I should submit a site map using the search engine's webmaster tools.  Yandex is a major search engine. Therefore I submitted a site map. Is the argument valid?

If you are a digital marketer I would like to hear your answer. The above argument can be validated using mathematical predicate logic and truth tables. However not all digital marketers are mathematicians therefore I have come up with reasons why Yandex is worth considering in an SEO strategy. Let me first define what a search engine is so as to rope in digital marketing newbies in the conversation.

Search engines are web application which use software programs called crawlers or bots search the internet and gather information. The information which the crawlers collect is then stored in a database base which is referred to as and Index. If a page is indexed it …

Which Desktop Browser Will Dominate in 2020?

In 1991 Tim Berners-Lee introduced the hyper text trasfer protocol which is one of the best things that ever happened in the information technology and communication sphere. This led to the development of the Mosaic web browser and finally Netscape browser was born. Netscape's creation is believed by most people to have led to the internet explosion which occurred between 1997 and 2000. Around1993 when Netscape was introduced, it dominated the market until it was overtaken by Internet Explorer. That was the early history of browser's but today we still see some stiff competition among companies which develop web browsers. Some people think that whoever dominates the browser market will dominate the internet. How true is that, and who will dominate in 2020? Chrome is in my humble opinion still holding the crown in 2019 on the web browser wars, but will that streak continue in the next year? Chrome is a favourite among web developers like myself and true to the notion that whoe…

Information Technology Basics

What is Information Technology?
It is the use or study of all the technology involved in collecting, storing , sharing and retrieval of data or information. It has three main components which are the computer, computer network and know-how. I shall first look at computers in detail.Computers are composed of hardware and software. There are five categories of computers but they generally have the same features. The classifications of computers are, Mainframe, Supercomputer, workstation, minicomputer and microcomputer.Hardware
The physical components of the computer. There is basically the system unit and peripheral components which are devices connected to the system unit. The peripheral devices are classified as either output or in put devices, though some can be both like a hard drive, a monitor with a touch screen or a printer with a scanner. Output devices
The most common output devices are  monitor, speakers and printer and hard drive.Input devices
The commonly used input devices …

C Program To Check If a String is a Palindrome

A C program to check if a string is a palindrome or not.
It uses the strcmp() function to compare the strings, therefore, you must include the string.h preprocessor link.

Egyptian Binary

The Egyptian Binary is a method to calculate the product of two numbers by mainly using addition.
The following is the algorithm

1.0  Start
2.0  Get a,b and sum
3.0  While a>=1

        3.1.0  If a%2>0

                 3.1.1 Start_If
                 3.1.2 sum=sum+b;
                 3.1.3 End_If

        3.2  a /=2;
             b +=b;

4.0 Display sum
5.0 End

The following is the source code for the C Program.

C Program To Check Whether a Given Number is Prime

(c)       Write a C program that will check whether a given number is prime number or not.  You may find the hint below useful. 

Definition of prime number:
It is a natural number greater than one and has not any other divisors except 1 and itself. In other words, we can say which has only two divisors 1 and the number itself.
For example, 5 its divisors are 1 and 5. Note: 2 is the only even prime number.
hint The logic for prime number
Take a loop and divide the number from 2 to number. If the number is not divisible by any of the numbers then print it as a prime number.       [10]

C Program To Calculate Water Bill

1.You need to show how to calculate the charges for using water for a particular month that is provided by the Water Utility Company. Charges are calculated based on this information: •    Outstanding payment amount •    Previous meter reading •    Current meter reading Payment rates are given as: 0 - 15 m3                      :     $0.42 per m3,

15.1 - 40 m3:     $0.65 per m3, 40.1 m3 and above      :     $1.05 per m3  with a minimum payment of $5.00 (a)    State the input and output of this problem. [2] (b)    State the formula involved.[2] (c)     Give a detailed algorithm for this problem.[6] (d) Write a program that will implement your algorithm[10]
Source Code

Continue and Break Statements in C

The following code snippet shows how 'continue' and 'break' statements affect a loop.

The output is as follows:

pi is 3.140000 
 printing will end at 4 and x is now 6 
printing will end at 4 and x is now 5 
printing will end at 4 and x is now 4 
x (3)is now less than PI and program stops at x=0 
x (2)is now less than PI and program stops at x=0 
x (1)is now less than PI and program stops at x=0 
x (0)is now less than PI and program stops at x=0