Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Friday, 5 August 2016

// // Leave a Comment

How To Install SublimeText plugins

Sublime Text is a proprietary cross-platform source code editor with a Python application programming interface. it has been my favorite IDE, mostly due to its lightweight, powerful and yet available for all major platforms. it is also notable for its extensive ecosystem of plugins which means that once you have downloaded the editor, you can install plug-ins for adding more features to it. This tutorial aims at showing you how to access the various extensions available to sublimeText.

The most important tool of all is the Package Control, which is the manager for installing additional plugins directly from within Sublime. This can be done manually or by copying and pasting the appropriate python code in your sublime console. The second is the most recommended method. It will take care of the rest of the package installation ahead.
To install package control, visit the package control installation page, find and copy the code relevant to your version of sublime, open your sublime console with ctr+` and paste the given code.(endeavour to have internet connection.) then wait for the command to execute.

If for any reason the above  method fails, you can go through the manual method by:


  1. Launch sublime text
  2. On the option menu, navigate to preferences > Browse packages
  3. A dialog box will pop up, then move the folder one step backwards where you'll find the installed package folder
  4. Download package control and copy it into the Installed package directory
  5. Restart sublime Text(close and re-open)
You should now find package control under the preference menu. To install a new package, navigate to Package control:install package, wait for the repositories to load(depends on your network strength) then search for your desired plugin or browse through the list of available packages.
Read More

Monday, 9 May 2016

// // Leave a Comment

How To Learn Programming


Programming is an art , whose concept may seems bizarre to newbies or non-techies. However, taking time to study these concepts makes one realise that mastering programming is as easy as learning every other trivia art. But following the principles explained below reduces the learning curve and makes your journey to becoming a programmer a fun filled one.





1. DECIDE YOU WANT TO LEARN HOW TO PROGRAM
This principle  applies to all forms of learning. You would do better if you’re learning something you have passion for.  focus your attention on learning rather than ‘how do I make money from this’. In a nutshell, passion should be your drive not income.

2. CHOOSE A LANGUAGE TO START WITH AND FOCUS ON IT
Now that you have decided to learn to program, you should decide on a language you’re to start with. Trying to learn multiple languages at the same time is an easy route to confusion. Eliminate yourself from language wars at this stage, every language has its good and bad sides so ignore comments as to which language is better than the other. After successfully understanding a particular language, you’ll realize that programming concepts are similar in all language, just a few syntax changes. Hence, learning a new language after your first will be a walkover.


3.START WITH THE BASICS
 Don’t be in a hurry to learn programming. You should start out with the basic ‘hello world’ program Don’t find it as too cheap or trivia no matter your age. Embrace books with titles such as ‘…for kids’,…for dummies’, books such as these usually turn out to be the best for learning as they explain in simpler terms and assume you have zero knowledge about everything. Don’t compare yourself who’s just starting to program with those that have started coding since the days of assembly language. With time, you’ll get there!

4. ‘CODING ALL DAY KEEP D BUGS AWAY’
 Do not be discouraged by bugs appearing in your code. Infact as a programmer,  you’ll spend more of your time debugging your codes than actually writing them. It is nearly impossible even for experienced programmers  to write  20 lines of code without a single bug . However, constant  practice, the number of bugs you ecounter tends to reduce.

5. JOIN PROGRAMMING COMMUNITIES
It can be frustrating trying to figure out how to do things all by yourself. Join an active coding community you can run to for help when you ecounter problems, learn how to effectively make use of search engines to figure out solutions for yourself

6. BUILD SOMETHING USEFUL
Now that you have mastered the language of your choice, it is time to make use of your newly acquired knowledge to build a real life application. At this stage, reinventing the wheel is totally allowed when necessary. The purpose of this is simply to ensure you can put your knowledge into use which is the overall aim of learning to code

7. LEARN A NEW LANGUAGE
Now that you’ve mastered your first programming, it is advisable to pick up a new language and begin the cycle again. This helps to broaden your horizon and gives you a clearer picture of some programming concepts
Read More

Thursday, 7 January 2016

// // 1 comment

Solution to Tcl error: favicon . ico is not defined when setting windows icon in tkinter


Most gui programmers using the standard tkinter framework has ecountered this error at least once when trying to change the ugly looking red tkinter default icon. I had my share recently and tried to trace the error for days without success and even nearly ported my program to another framework before I arrived at a solution.
Read More
// // 1 comment

Think python - Book review

Being a newbie in programming, the first book that caught my fancy was Think python - How to think like a computer scientist by Allen B. Downey. The book introduces you to programming in general starting from basic concepts including variables, operators, expressions and statements before delving into python programming in full.
Read More

Tuesday, 1 September 2015

// // Leave a Comment

My ecounter with wxpython

I was trying to program a graphical user interface today for one of my projects when I ran into a very frustrating bug when I had barely started. I had always been a fan of Tkinter (I just have a feel there’s a unique reason it was selected to be shipped along with python) but I decided to wet my hands with wxpython today. I had the following lines of codes


Read More

Sunday, 4 January 2015

// // 13 comments

Top 5 books to learn python programming for beginers

Programming can be made easy if given the right approach to learning. While some books actually makes programming as easy as giving your younger one a set of instructions to carry out, some makes it look like an underground mission impossible to attain. I have taken time out to list top 5 books that can make learning programming in python extremely easy for you.
Read More

Sunday, 28 December 2014

// // Leave a Comment

Python: Searching for a string in a string.

There are two nice python string methods to search for a sub string in a string. their usage depends on what you want to achieve.
Read More