Conditional statements and loops are very important while learning any programming language. In this tutorial we will see how the statements and loops work for ruby. [Read more…]
Ruby Strings, Variables, Arrays and Hash
In previous tutorial of ruby on ubuntu linux, we checked out the installation and few other basic interpreter usage. In this tutorial we are going to cover more concepts like – strings, variables, arrays and hash in ruby.
[Read more…]
Learning Ruby Programming on Ubuntu Linux
This beginners guide will help you setup ruby programming language on ubuntu linux (or any other debian distro). I am using instruction that applies for debian subdistros and ubuntu, so If you’re using any other than debian tree distros, See if you can find similar instructions for the installation. You can skip the installation part If you’re using any other linux distribution. [Read more…]
Pyglet Python Programming on Ubuntu Linux
I am going to cover pyglet graphics library for ubuntu users. You can use any other linux distro as per your choice. The instructions will slightly vary, you can take help from respective distro forums and IRC if you need. [Read more…]
PyGObject for Beginners Tutorial
PyGObject is a python module that lets you access GObject-based libraries such as GTK+ within Python. You’ll be able to create GTK+ apps easily by working with PyGObject. It uses GTK+ version 3 and lets you build apps. As the old GTK+ version 2 is now on it’s way out, It is better to switch to GTK + version 3 for building apps. [Read more…]
Python Generators
Python generators are simple way to create or generate iterators. They allow you to control flow and also increase the memory performance in some cases. Generators look like normal function but there is a difference in syntax and semantics between them and functions. [Read more…]
Python Lambda Functions
Python supports manipulation of anonymous functions (i.e. lambda expressions). Lambda functions is a way to create functions without names. These functions are throwaway functions and are used where they are created. These anonymous functions are handy to use in a places where you can’t do function declaration. [Read more…]
Python – File I/O Handling
Python like any other language allows file handling and I/O functions. There are many ways with which we can approach file handling and input output processing. In this tutorial we’ll see how to work with I/O functions of python. We’ll also take a look at the ways with which python allows us to handle files. [Read more…]
Regular Expressions in Python
A regular expression in python is a special module that helps filter sequence of strings, characters and symbols using specialized syntax written in a particular pattern. Like any other programming language, regular expression module βreβ in python allows you to process unlimited amount of strings that passes regular expression requirements. [Read more…]
Python Date and Time
Python can handle date and time on your system in multiple ways. Depending on your operating system the method to access the system time and date will vary. Code in this tutorial is tested on ubuntu linux and windows operating system. [Read more…]