Lpsolve Syntax Highlight for Geany IDE

Add Lp Solve extension First, we need to add the extension file, so geany knows what file it can associate to lp solve files. Either go to:  Tools -> Configuration Files -> filetype_extensions.conf or:  edit directly the file in Linux: ~/.config/geany/filetype_extensions.conf Windows 7 :  c:\Users\username\AppData\Roaming\geany\filetype_extensions.conf and add a new line with Lpsolve=*.lp; Download Lp Solve…… Continue reading Lpsolve Syntax Highlight for Geany IDE

Patch portage to be more quiet

Gentoo linux is alive and well and just released a new Gentoo Linux Live.  It features Linux Kernel 2.6.37 (with Gentoo patches). It comes will all desktop environments. Especially if you are looking for KDE 4.6 SC here’s the best way to start. It also includes OpenOffice.org (3.2.1), GIMP (2.6.11), Inkscape (0.48.1), Blender (2.49b), and…… Continue reading Patch portage to be more quiet

How to format a usb pen or mp3 player the right way

In a short line: # mkfs.vfat -vc -F 32 -n “zen stone” -S 2048 /dev/yourdevice The explanation: -v Verbose execution. -c Check the device for bad blocks before creating the file system. -F FAT-size Specifies the type of file allocation tables used (12, 16 or 32 bit). If nothing is specified, mkdosfs will automatically select…… Continue reading How to format a usb pen or mp3 player the right way

How to change sound from two sound cards

I have two sound cards. One is the inboard and the other is a USB card. I’m toggling often between them so i created this simple script: (see the end for link to files) #!/bin/bash dir=/home/username/ if [[ “$1” = “-l” ]] || [[ ! -n “$1” ]]; then cat /proc/asound/cards exit fi card=`grep “^…… Continue reading How to change sound from two sound cards

making gentoo portage more quiet without showing preverved libs and installed masked packages

Well, it was one of those days drifting from trying to do one thing, and ending fixing the core system. emerge been having alot of output lately, and its extra verbosity was driving me mad. First, showing the preserved-libs takes alot of time. Second, now i have always have to scroll up to check if…… Continue reading making gentoo portage more quiet without showing preverved libs and installed masked packages

how to fix firefox hanging every few seconds

Every x seconds, my firefox (built from sources) hangs for a few seconds (but the other applications keep running smothly). Seems that my firefox (i didn’t tried using the binary) isn’t very keen on multithreading. By default it has: $ taskset -c -p firefoxpid pid 29964’s current affinity list: 0,1 To find firefox’s pid do:…… Continue reading how to fix firefox hanging every few seconds

Use custom font on konqueror

There’s this really beautiful font i just love! Its Linux Libertine and has more than thousands of characters! Since i’m studying japanese i’ve been visiting alot the wikipedia’s hiragana page ! and with their default font, for some particular characters, i was seeing alot of squares! So after a while i figured out that it…… Continue reading Use custom font on konqueror