Monday, March 3, 2014

An ATM Simulation using Java Swing

      If you  have studied computer programming, you are most likely to have learned Object Oriented Programming in Java. Java is very sweet especially for beginner programmers who want to see what they are doing by using GUI. Swing is one among the most powerful and simple  tools of GUI in Java. Although i have been too busy this semester, I had to spare some minutes to assist a friend of mine with her OOP assignment.
    One of the most useful books in Introduction to Java programming is "Java How To Program" by the Deitels. In this book, a software engineering case study of an ATM simulation is implemented. Now my friends OOP Lectuer twisted the same project and asked them to use Swing to implement an ATM simulation.
   If you are in some Kenyan University and happen to learn Java Programming under Mr Sam, be ready to implement the same simulation for your assignment.

So here is a screen shot of what am doing ....

Saturday, February 1, 2014

How to install Django in Windows 7

Hello everyone.
              Recently i have been excited by GAE (GoogleAppEngine) - a PaaS featuring Java, Python and Go run times. I wanna deploy an app by the end of this month on Gae. Since i know Python programming, i have to use Django -the framework in order to enhance the speed of my development.
What is django anyway?
Django is a web framework based and implemented in Python to allow fast development of sites.
Django is fully supported on GAE and as such makes us love to take its power and speed there.
That said, we wanna install Django and gets our hands really dirty. But before you install Django, you need some knowledge in python programming have your Windows 7 computer running Python . I prefer Python 2.7.6 since python 3 introduced a new syntax. Got Python yet?Grab Python 2.7.6.msi from  here and install noting the directory on which you install( for simplicity use C:\  local disk  )
That's great, we now need to check if  windows has set the python path.Lets do it :
Run the command prompt by clicking start and searching  cmd and hitting Enter key. Type python -V
(the V in uppercase),this should print the version of python you are running, in this case Python 2.7.6.
If you get an error we need to write a simple batch file   to take the command prompt to the Python installation.
Now start notepad and copy paste this file:
@C:\Python27\python.exe %*
and save it as python.bat on your desktop
Again copy python.bat to  C:\Windows\System32
////this part assumes you have installed Python in Local disk C. if not just change the root path to point to you Python installation.
Restart the Command prompt and type python -V

Next, lets get and install Django:
Download django 1.6.1 from here add save it. Django comes as a tar ball compresses file and thus we need to extract it. You can use WinRAR or 7zip to extract it. I use WinRAR.
Extract it and we are now ready to install Django.
Now open the folder with Django 1.6.1and copy its path ie right click the path bar and select copy

Open the command prompt and Type: CD then the Django folder path   and hit enter key for example
    CD C:\Users\Harrison\Downloads\Compressed\Django-1.6.1
Note: to paste in the command prompt you right click and select paste Ctrl+V doesn't work!!
so far so good, now type
python setup.py install ,hit enter and wait
After installation information is complete,type import django, if you get no error you have successfully installed django.Next find a get started tutorial on django or go here




.

Wednesday, January 15, 2014

MANAGING YOUR FIELD TEAMS RIGHT FROM YOUR PALM


Hi everyone! My long vacation a cool one although wasn’t up to anything great. I however had a chance to introduce some high school students to computers (most of them) for their first time. I wasn’t fun; yeah I mean it .I recall this one student I asked to double click and she clicked her mouth twice. A funnier one when asked why one should know how to shut down the computer using the right procedure, said you might be asked how to do it in an interview. Haha! You must have thought of my remarks to her already, ”Thoughtful but wrong”.
That stuff aside. I also met this guy who sells timber in large scale. He has this teams that are set to thin forests in different parts of the country. Each has an accountant who is in charge of virtually everything that the team does. The guy has to keep calling all his teams (they are about 20) to be updated on the situation of his business. I thought of a way to ease his work of getting to his teams and has found an interesting way. I call the project Bizna connect.
BIZNA CONNECT
This project aims to create a solution for easily managing separate teams, small chain businesses or even medium enterprises in different geographic locations using smartphones.
Requirements
·         Android smartphones
·         Working internet connection
·         Google accounts
Working
Bizna Connect backend runs in GAE (Google AppEngine) and users are authenticated using their Gmail accounts. There is a super account that is managed by the owner of the businesses. This account accesses the information posted by the user users, assumedly the employees.
Given the powerful use of Google apps (spreadsheets for accounts, docs for memos ), real-time notifications and location using GPS you are sure to monitor your business always.
They say a picture speaks a thousand words. now I have type 300 words plus one picture ,that makes it 1300 words wow.





Saturday, August 24, 2013

The Soko La Wakulima (Farm market)

Hello everyone out there. This year's ASK(Agricultural Show of Kenya) theme is "ENHANCING TECHNOLOGY IN AGRICULTURE AND INDUSTRY FOR FOOD SECURITY AND NATIONAL GROWTH."
 My friend and I have implemented the project below as per the theme.Check it out :


INTRODUCTION
Soko la Wakulima is an android app that links farmers from all over the country on the basis of marketing. It enables people to buy and sell broad variety of agricultural goods online. It is destined to be a competitive virtual market for farmers. Generally, any agricultural based product can be auctioned on Soko la Wakulima as long as it is legal and confirms to Soko la Wakulima terms and conditions.
WORKING

Users are first required to download the app to their phones. The app allows users to browse through various categories of agriculture like vegetables, Fruits, Poultry, Farm equipment among others and also search for any particular item. Sellers of a product are required to register first before posting so as to enable any interested buyer to easily identify themselves.
FEATURES

·         It has an RSS reader that enables the user to read agricultural news and know the current trends in the agricultural market.
·         Supports Image uploads for further description of products clearly showing their state.
·         Offers comprehensive information on sellers contact information in terms of location, phone number etc.

            Usage of this technology assists in elimination disparity between buyers and sellers due to geographical location, statistics from bids give the state of the market and can be used for planning, sellers are able to sell their commodities at the best price, promotion of trade as there are always goods to buy and sell plus perishable items are sold in time saving losses.

Thursday, August 1, 2013

The Sieve Calc 1.0



            I have had a very great time this semester even as I was learning and enjoying my units in Pure Mathematics. Number Theory has been real fun –all those theories on primes, Diophantines, modulo arithmetic etc. I found the Eratosthenes sieve of determining all primes less than a given number n very creative. I`ve done a Java application (Sieve Calc 1.0) based on GUI that implements the sieve. Check out these screen shots as you follow the code at my Github repository at https://github.com/HARRIEKIM.

Main UI

About Sieve Calc

Help

Working

Friday, June 7, 2013

Hello friends,

I have been away for a while but am now back. In the period of my silence i learnt some few interesting things here and there. I just had a very hard time selecting between Pure and Applied Mathematics. Before i tell you which option i am in, i will explain why in the first place i had a dilemma. I  love the topic of cryptography very much and can never stop thinking of security algorithms. I have also been thinking of how i could come up with this file compression algorithm that simply compresses your files when you storage space goes low--imagine instead of "Delete" you would ,yah you guessed right "Compress it". Among the great Mathematicians i really admire in history is Femat- and all his theories of course. Now those are enough reasons for me to have taken Pure Maths...but wait. I love simulation and modelling much and Calculus was a lot of fun. Fluid mechanics produces some nice results that they occupy me the whole night. I always wondered if the current differential system in automobiles is the best plus i wouldn't mind to work with the air force....and #confusion!!. Finally,i am addicted to coding-if one can be, i took Pure Maths. As i anticipated, i am proving lots of theorem which the "Maths anonymous" would call just boring stuff and am enjoying it. Now there is this idea that just crossed my mind, since i got a lot of time back here i wanna make an application for new pure Mathematicians out there. I  will implement all (ok most of em) the proofs and algorithms  in this Java application. Backed by a heavy user interface that goes kinda--"You wanna learn Euclid's gcd algorithm ?" and its like "First you should check out the division algorithm.." and there you go. You will be able to:
Learn algorithms and proofs.
See implementation in Java language.
All this in a GUI.
For now, there is the Safaricom Appwiz which i want to attend to present my Android app. I will be taking of it soon. Thank you pals.

Wednesday, February 27, 2013

THE POWER OF THE MICROSOFT MATHEMATICS APPLICATION


                This app was installed by my dad in his laptop when I was back in high school. Since it was installed together with Encarta kids 2009, I thought this application could also serve kids better. When I was joining university, my dad bought me a laptop running on Windows seven. In a bit to make it more loaded with programs, he also installed Microsoft Mathematics - I take   B.Sc. Mathematics and Computer Science.
                I never came to realize the power of this application until it was time for Calculus II. After trying a really complex problem on series and hitting a dead end on every trial, I decided to launch the application. WOW! There went the functions I had wished they always included in my Casio FX- 991ES calculator. The sigma notation with the infinite symbol, both define and indefinite integrals, permutations and combinations, handwriting input and above all, step by step solution.
                Graphing in 2D and 3D is another very cool feature of this application. Solving for unknowns in equations of varied forms is also supported. Plus much more features….
                Now, as a pure mathematics student, I still find the application very important. I do not have to work with both my laptop (for reference documents) and my calculator. This application is free for your windows machine.
           
     Why won’t you download it now please?