Skip navigation.

Programmer's notes

Posts tagged with "Programming"

Python and config files routine

,

Few days ago I wrote a helper class to deal with 'config' files. I used Python's power to seal config files handling routine to generic, type-independend, easy-to-understand way.

Read more...

Byte-compiled ChangeLog

, , , ...

My primary all-purpose editor is Emacs. Mastering Emacs takes years, and there is always a lot to discover. For example, I've just seen how Emacs tried to byte-compile a simple ChangeLog text document. Of course Emacs did what I asked to do it, by the rules in my .emacs.el.
So...

Read more...

Opera::User JS

, , ,

One of the greatest features of Opera is User JS. User JavaScript allows you to specify local JavaScript files for Opera to include on every page that you visit.

Some web-pages do not provide a functionality that is requested by a user. For example the "vkontakte" social network always warns a user about "possible malicious site" every time a user clicks an external server's link. 4 lines of code solved the problem.

Read more...

Beginners guide to creating a GNOME applet with Python (Part I)

, , ,

Programming is an art.
To be more specific, it's everlasting art. There is no program that could completely satisfy the users. And I doubt that there is a program that could completely satisfy a programmer.

I spend hours in front of my computer. Of course that is very unhealthy for my eyes. I wanted to create a simple reminder applet - an eyes icon that changes to "bloody" eyes - indicating that it's time to relax.

This was my first GNOME applet, my first GTK and more or less serious Python experience and I'd like too share it with everyone, who deals with his or her first GNOME applet.

I hope, this tutorial will help you.

P.S.
Dear Friends, the up-to-date version of this article and it's second part are located here.

Read more...

The relative path

, , , ...

It's really hard to create a program without bugs. Maybe it's completely impossible. There are bugs that could be caught in few steps and.. very nasty bugs that could be caught while reviewing the code line-by-line, step-by-step, variable-by-variable.
The bug I've recently dealt with was about a relative file path.

Read more...

Programming style

, ,

Is there a general programming style? Are there any rules on naming variables, constants, function, classes etc.? What should be chosen: putting braces on the same line of definition, or below the line? My thoughts...

Read more...

"Real" Programmers

,

Want to know my opinion? 50% of programmers - are not programmers at all.

Read more...

Python and functional programming

, , ,

Is there a way to change four lines of code into one?
Why not? Use functional programming!

Read more...

Download Opera, the fastest and most secure browser
November 2009
M T W T F S S
October 2009December 2009
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30