Blog:Memory Leak

From juliano.info

A memory leak is unnecessary memory consumption by a computer program. The most common manifestion is the failure to release unused memory that has been allocated. A memory leak occurs when the program either loses the ability to free the memory or simply neglects to free memory it no longer needs. (source: Wikipedia, The Free Encyclopedia.)

There are posts in both English and Portuguese languages in this section of the site, depending on the target audience of each text. Not every text have equivalent in both languages. Below you will find only the English posts of this section of the site.

Clique aqui para ver as postagens em português
(Click here to view Portuguese posts)


View (previous 20) (next 20) (5 | 10 | 20 | 35 | 50)


Linux/KDE: Mapping functions to extra keys

by Juliano, from Memory Leak, 21:02, 28 May 2007.

My laptop (an HP/Compaq nx6110 notebook) has this extra non-standard special function key that is (normally) only available on Windows, through a special driver installed. Pressing it while running Linux does nothing but generate these messages on syslog:

kernel: atkbd.c: Unknown key pressed (translated set 2, code 0x89 on isa0060/serio0).
kernel: atkbd.c: Use 'setkeycodes e009 <keycode>' to make it known.
kernel: atkbd.c: Unknown key released (translated set 2, code 0x89 on isa0060/serio0).
kernel: atkbd.c: Use 'setkeycodes e009 <keycode>' to make it known.

No events are registered on X. I was bothered and decided to make it useful on Linux too.

→ continue reading...


Bridges and tunnels in Fedora

by Juliano, from Memory Leak, 20:43, 28 May 2007.
Originally posted on: 00:46, 7 May 2007.

Fedora Linux supports setting bridges and tunnels through its startup network configuration scripts, even though the frontend (system-config-network) doesn't allow their creation or management.

Of course, it is possible to set bridges and tunnels by issuing the appropriate commands in /etc/rc.local, but this solution is not optimal since it bypasses the network scripts, making it harder to manage connections (i.e. no ifup and ifdown support). Keep reading to learn how to do it using Fedora's own network configuration scripts.

→ continue reading...


Improve your efficience with VIM - 2

by Juliano, from Memory Leak, 17:26, 21 July 2006.
Originally posted on: 08:59, 21 May 2005.

Here is another VIM trick. This one allows you to do auto-completion using the Tab key while you type. This script helps me a lot while i'm programming, it makes typing very fast after you get used to.

→ continue reading...


Tools for Software Development

by Juliano, from Memory Leak, 17:24, 21 July 2006.
Originally posted on: 08:59, 18 May 2005.

Programs are not created by just piling lines of code and processing them though a compiler. Real-life Software Development is much more complicated than this. This is not any news.

Sometimes, I have my friends asking me what tools I use to assist software development. Although for some it might be unacceptable to develop anything without the help of some tools, like a Version Control System or a Bug Tracker, for others these names have little meaning.

Here is a list of the most important tools available for software development, what are they built for and how can they help you. In this post I'll cover Version Control Systems and Documentation.

→ continue reading...


Mozilla Bookmarks to Wiki

by Juliano, from Memory Leak, 17:23, 21 July 2006.
Originally posted on: 21:59, 12 May 2005.

Yet another of my small projects. This time is an XSL stylesheet.

MozBookmarks2Wiki is an XSL stylesheet that can be used to convert a Mozilla Suite or Mozilla Firefox bookmarks RDF file into a format suitable for submiting into a Wiki, like MediaWiki.

→ continue reading...


Pseudo Authentication

by Juliano, from Memory Leak, 17:23, 21 July 2006.
Originally posted on: 14:59, 21 April 2005.

Sometimes, you have a bulletin board or web forum, where people exchange messages publicly, and want your users to trust each other, but you don't want to go through implementing an user registration database and authentication scheme. Sometimes it is a bit too much or overcomplicated, or requires some storage space and maintenance time that you are not willing to provide.

→ continue reading...


Triangular Matrices

by Juliano, from Memory Leak, 17:20, 21 July 2006.
Originally posted on: 15:59, 11 April 2005.
    
    
    
    

A triangular matrix is useful when you need to intersect data from two instances of the same list of objects, and the two operands are commutative (e.g. x×y = y×x) like the distance of every two cities on a map. You can save some space and processing time if you use a triangular matrix, since you need only to calculate half of the table.

→ continue reading...


Improve your efficience with VIM

by Juliano, from Memory Leak, 17:20, 21 July 2006.
Originally posted on: 09:59, 9 April 2005.

VIM is my text editor of choice, it has plenties of features that, when you learn how to use them, they boost your efficiency greatly on both programming and general text editing.

Here are two small tips for those who does a lot of programming with VIM:

→ continue reading...


Remote Control

by Juliano, from Memory Leak, 17:19, 21 July 2006.
Originally posted on: 21:59, 30 March 2005.

One of the things that amazed me when I was just experiencing Linux many years ago was the ability to use my joystick as a remote control for x11amp. I'd never heard of any Windows audio player with such functionality on that epoch. It has been proven really useful while I was working and listening to music, I could control the music quickly without being distracted switching desktops or looking for tray icons. With the help of a DB-15 extension cord, I was also able to drag it to anywhere in my bedroom and control the music even when I was not at the computer.

→ continue reading...


jMList - Initial Release

by Juliano, from Memory Leak, 17:17, 21 July 2006.
Originally posted on: 01:59, 26 March 2005.

jMList is a small utility that scans one or more given directories for media files (currently only audio files) and generates a XML listing of the whole directory tree with information about each media file such as filesize, song length, title, author, album, etc. An XSL stylesheet can be applied to the output to transform into a different output, like tabular or tree listings in plain text, XML, HTML, RDF, RSS or any other XML format.

This first release already supports MP3 and OGG files (ID3 and Vorbis comment tags) and is capable of internally applying a stylesheet to the XML output. Works fine and seems pretty stable.

http://jmlist.berlios.de/

→ continue reading...



View (previous 20) (next 20) (5 | 10 | 20 | 35 | 50)