|
Coding.Debuntu provides sources bit that can be reused to develop your own application.
Source files are attached to the tutorials so you can easily reused and modify the tutorial. Thu, 21 Aug 2008 20:48:26 +0200 Once upon a time, file size was capped to 2G because of 2^31 - 1 = 2G. Has such, open will fail on files bigger than 2G. this tutorial will show how to get standard C to handle large file. attached file: type: text/x-c++src size: 387 bytes here Sat, 19 Jul 2008 21:23:41 +0200 Linux provide a high level socket API that will allow programmer to easily connect to any TCP or UDP services. In this tutorial, we will see how this works by implementing a simple HTTP client which will get request a web page given the hostname and the page name, then read the server answer and output the HTML content of the reply. attached file: type: text/x-csrc size: 3.55 KB here Sun, 29 Jun 2008 20:47:37 +0200 In the previous post, I showed how to customize your gtk.Notebook Tab Label by adding a close button to the tab. In this tutorial I will explain how to override the theme behaviour by creating a custom style for our widget. attached file: type: text/plain size: 1.9 KB here Thu, 26 Jun 2008 02:55:48 +0200 gtk.Notebook is a great feature as it help keep your application footprint on the desktop occupation low. I personnally would not even think of using a web brower without a tab feature as it would take me a help of a time to go from one application to another. A gtk.Notebook page is composed of a child widget and a label gtk.Widget. From there on, we can fit anything we like in a tab label such as an icon on the side representing the content, a title and a handy close button on the right side a bit like firefox's tabs. This tutorial will detail how to customize the content of a Notebook tab label but really is a kickstart to any plausible gui arrangement. attached file: type: text/plain size: 2.62 KB here Wed, 11 Jun 2008 19:39:35 +0200 With a simple example, I am going to illustrated how to build a ListStore TreeView in pygtk (python's gtk binding). Building a standard ListStore in pygtk is pretty straightforward, however, it can get a bit more difficult to set up a custom TreeView where the rows and columns that are displayed can have different colors. This tutorial will show how-to create and set up a TreeView, its TreeViewColumn and finally, the CellRenderer. attached file: type: text/plain size: 1.76 KB here Thu, 05 Jun 2008 21:34:01 +0200 This article will show how to connect to a remove TCP server using python's socket module. In this tutorial, we are going to connect to a server, send some data and then read from the socket. attached file: type: text/plain size: 580 bytes here Sat, 24 May 2008 20:39:37 +0200 python-vte bindings allow you to embed a simplistic virtual terminal in any of your GTK apps real easy. attached file: type: text/plain size: 628 bytes here Wed, 14 May 2008 18:17:38 +0200 trimming a string from whitespaces does not come out of the box in perl. Like for many other operations, we need to use regexes. This tutorial will show how to trim, ltrim and rtrim a string in Perl. attached file: type: text/plain size: 595 bytes here Wed, 30 Apr 2008 18:15:45 +0200 Serialization is used to store data and objects into a file for instance. The serie of bytes that is generated can then be re-used to generate an object that will be identical (a clone) to the stored object. In Perl this can be achieved through the Storable module. This tutorial will quickly show how to store and retrieve such objects. attached file: type: text/plain size: 386 bytes here Sat, 12 Apr 2008 19:45:36 +0200 This code sample shows how one could compute the md5sum of a file using Perl's Digest::MD5 module. attached file: type: text/plain size: 593 bytes here Fri, 11 Apr 2008 11:08:45 +0200 While some languages offer an is_float function, Perl seems to only rely on regex. Thu, 10 Apr 2008 17:13:41 +0200
While some languages offer a isint function, I could not find it in perl. Tue, 08 Apr 2008 22:31:07 +0200
Conditional expressions in python does not have the same syntax than in C. This code sample shows how to get the same result in python. Mon, 07 Apr 2008 22:43:47 +0200 This code sample will show how to find the last word in a string. A word being composed of letters and numbers only. Fri, 04 Apr 2008 18:40:51 +0200 How to go through each elements of an array. Wed, 02 Apr 2008 19:43:08 +0200 Iterating over an the elements of an array is pretty easy to do in python with the use of a for loop. This tutorial will explain how to iterate through an array in python through a short script. |