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

how to open Visual paradigm projects directly from KDE

oddly enough my installation of Visual Paradigm set its type to application/zip. When i try to open it, it uses the same applications that other .zip files use. Sure i could right-click + open with + Visual paradigm , but …. So instead we’re going to create a new file type for that .vpp extension.…… Continue reading how to open Visual paradigm projects directly from KDE

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

Yet another ssh brute force attack and how to protect against it with iptables and sshguard

By chance, i looked into syslog ( /var/log/syslog ) and saw a ssh attempt to login from a ip outside local network. It was a brute force attack that started 7 days ago.. See down the post how to protect ssh from further attacks. Looking at the logs ( tail -n 200000 /var/log/syslog ) noticed…… Continue reading Yet another ssh brute force attack and how to protect against it with iptables and sshguard

Make Emacs pretty with beautiful fonts

Over the years i’ve been trying to make emacs more readable, harmonizing it with the desktop themes. i dislike long lines and scrolling up and down so a small readable font is very important. So here’s the evolution emacs had today: left-top: default emacs 23 right-top : old left-bottom : default with –font “Bitstream Vera…… Continue reading Make Emacs pretty with beautiful fonts

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