Архива за 'Computers' категорију

XP Performance Edition: srpski keyboard layout HOWTO

март 4, 2008

Performance Edition Windows XP je uprošćena verzija XP-a koja ima poizbacivane gomile drajvera i nepotrebnih gluposti, ali nažalost izbačena je i podrška za srpski keyboard layout, ćirilični i latinični. Kako ispraviti? Lako.

1. Prekopirati sa regularnog XP-a (možda bi i w2k poslužio?) fajlove kbdycc.dll i kbdycl.dll iz C:\WINDOWS\system32 foldera 2. Uneti u registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\0000081a] “Layout Text”=”Serbian (Latin)” “Layout Display Name”=”@%SystemRoot%\\system32\\input.dll,-5038″ “Layout File”=”KBDYCL.DLL”

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000c1a] “Layout Text”=”Serbian (Cyrillic)” “Layout Display Name”=”@%SystemRoot%\\system32\\input.dll,-5057″ “Layout File”=”KBDYCC.DLL”

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Locale] “0000081a”=”2″ “00000c1a”=”5″

Disclaimer: ovo radite na sopstvenu odgovornost. Javite ako i kod vas radi.

SoX, yeah!

јануар 23, 2008

ls -1 *.wav | while read FILE; do sox "$FILE" -r 22050 "NOVO/$FILE" compand 0.001,0.15 -28,-inf,-24,-24 -0.3 0 0 resample -qs; done

Remove comments and empty lines sed one-liner

новембар 22, 2007

sed -e 's/#.*//' -e 's/[ ^I]*$//' -e '/^$/ d'

…so I don’t have to think of it again.

Deluge Torrent and Etch Backports

новембар 9, 2007

Simply wonderful.

I don’t have to get it from testing and “break” my stable box with mixed trees!

backports as default, stable as fallback

октобар 21, 2007

Add to /etc/apt/sources.list:deb http://www.backports.org/debian etch-backports main contrib non-free

Add to /etc/apt/preferences:Package: * Pin: release a=etch-backports Pin-Priority: 750 Package: * Pin: release a=stable Pin-Priority: 700

Add to /etc/apt/apt.conf.d/00Cache:APT::Cache-Limit "33554432"; APT::Default-Release “etch-backports”;

Do:

apt-get update apt-get dist-upgrade

htmldoc

октобар 11, 2007

htmldoc --size a4 --linkstyle plain --webpage --no-jpeg --tocheader ... --tocfooter ... --top 0 --bottom 20 --right 20 --left 20 -f book.pdf *.html

Nice webserver uptime

октобар 11, 2007

Just checked:

imp@extweb:~> uptime 2:34pm up 674 days 3:03, 1 user, load average: 0.02, 0.11, 0.09

Apt pinning: installing unstable packages on stable Debian

јул 20, 2007

Minimal sources.list configuration.

/etc/apt/sources.list:deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib deb http://ftp.de.debian.org/debian stable main non-free contrib deb http://ftp.de.debian.org/debian testing main non-free contrib deb http://ftp.de.debian.org/debian unstable main non-free contrib

When updgrading, stable versions of packages need to stay on stable. unstable versions are usually newer, so they overwrite stable versions if this is not properly handled with using Pin-Priority as stated below. If not explicitly requested, “apt-get install” installs stable version of a package.

/etc/apt/preferences:Package: * Pin: release a=stable Pin-Priority: 700 Package: * Pin: release a=testing Pin-Priority: 650 Package: * Pin: release a=unstable Pin-Priority: 600

To install f.e. unstable version of a package with dependencies from unstable as well (preferred method, AFAIK), do the following:apt-get install package -t unstable

To install the same package, but to resolve it’s deps from stable:apt-get install package/unstable

Ubuntu 7.04: first thoughts

јул 12, 2007

So, I am about to replace the Linux distro on my desktops, on my laptop and desktop machine, so I’m considering my choices… Debian-based is the way to go, so it’s either Debian or Ubuntu.

I wouldn’t go pure, vanilla Debian because of it’s “correctness” (ok ok, I can add other repositories to the system, but it simply doesn’t feel… “native” enough?). I’ve tried Kubuntu, but it simply didn’t feel polished enough; it felt like Ubuntu’s bastard child, management wise (Adept, KDE based apt frontend, crashed on me several times, dist-upgrade from 6.10 depended on some GTK stuff which wasn’t installed automagically, so I had to figure out “by hand” what to install — more info on that on my Launchpad bug report, etc).

That lead me to try Gnome-based, good ol’ Ubuntu, and I have to say that so far, few glitches aside, it looks good. I haven’t used Gnome for some time now and it seems really nice. Gnome itself and Nautilus, as a file manager, really feel snappy and stable. Gnome Terminal looks nicer than before and more usable.

Anyway, as a regular nitpicker, few downsides. First, LILO didn’t install properly (Grub was complaining about residing on XFS, which is a no-no, eh?), so I had to manually edit lilo.conf, only to find out that some vital options are left out, such as “prompt”, “lba32″ and “compact”, framebuffer “vga” line, too, and I had to add the timeout… Hmm, some really pretty much expected stuff? Why are they left out? Beats me. Then, in fstab, vfat partition had fs_passno = 1, so it was checked on every boot. Onward to Gnome itself. Ugly, anti-aliased fonts? Unlike KDE, Gnome Font preferences don’t include an option to exclude some font size ranges from anti-aliasing, so everything is anti-aliased. Ok, I edited it by hand only to find out that the fonts that came with Ubuntu look terrible when not anti-aliased. I installed MS fonts and… what? They look ugly, too? Hmmm… I remember that Freetype has some bytecode interpreter option that makes those fonts look just like in Windows, but it is, to quote Freetype site, “potentially patent infringing”, so it’s disabled by default in Ubuntu… Damn that correctness. I found on Ubuntu forums a source for bytecode interpreter-enabled version of Freetype, so I installed that and FINALLY fonts looked BEARABLE. Then, the system doesn’t have Adobe Flash player installed as default. Ok, I can understand that, that perhaps in the licence it doesn’t allow automatic installation, or even inclusion in some other form like a Linux distro, but SuSE somehow managed to pull it off: the installer asks you whether you want to install that plugin nicely.

That’s it for the first thoughts, more on Ubuntu later (perhaps) heh.

Casual workday + a tidbit of FreeBSD

јул 6, 2007

Ah, casual Friday. Weekend buzz. Experimenting a bit with FreeBSD, after a several year break. Will try to get back to blogging.

IT seminar

октобар 20, 2006
Evo vec 3 dana sam pod pritiskom od strane mog prijatelja Aleksandra Ilica da napisem nesto o njegovom nedavno odrzanom IT seminaru u nish-u pa sam evo resio da mu udovoljim. Coveku treba publiciteta :)Seminar je bio zaista odlican i daleko je prevazisao moja ocekivanja. Organizator je povukao rizican potez i pozvao predavace sa slabim predavackim stazom. Mnogima je to bio i prvi put, ali super su se snasli i definitivno su pokazali da su strucnjaci u svojim oblastima.Seminar je trajao 2 dana a mi smo dosli dan ranije. Svaki dan posle predavanja bio je organizovan rucak na neverovatno dobrom mestu. Tako dobar rostilj je retko jede!Sve u svemu jos jednom da kazem da je seminar pun pogodak i nadam se da ce se i sledece godine veliki broj IT strucnaka sliti u Nis.

IT seminar

октобар 20, 2006
Evo vec 3 dana sam pod pritiskom od strane mog prijatelja Aleksandra Ilica da napisem nesto o njegovom nedavno odrzanom IT seminaru u nish-u pa sam evo resio da mu udovoljim. Coveku treba publiciteta :)Seminar je bio zaista odlican i daleko je prevazisao moja ocekivanja. Organizator je povukao rizican potez i pozvao predavace sa slabim predavackim stazom. Mnogima je to bio i prvi put, ali super su se snasli i definitivno su pokazali da su strucnjaci u svojim oblastima.Seminar je trajao 2 dana a mi smo dosli dan ranije. Svaki dan posle predavanja bio je organizovan rucak na neverovatno dobrom mestu. Tako dobar rostilj je retko jede!Sve u svemu jos jednom da kazem da je seminar pun pogodak i nadam se da ce se i sledece godine veliki broj IT strucnaka sliti u Nis.

Firefox…

септембар 26, 2006
Nikad mi nije bilo jasno kako je ovaj browser uspeo da napravi toliki pokret iza sebe. Bukvalno hiljade i hiljade zaludjenika koji zive za firefox. Ajde mogu da shvatim za Linux, to je ceo OS sa gomilom softvera, ali neshvatljivo mi je da se neko zaludi toliko za jednim browserom da napravi ovo :

Firefox…

септембар 26, 2006
Nikad mi nije bilo jasno kako je ovaj browser uspeo da napravi toliki pokret iza sebe. Bukvalno hiljade i hiljade zaludjenika koji zive za firefox. Ajde mogu da shvatim za Linux, to je ceo OS sa gomilom softvera, ali neshvatljivo mi je da se neko zaludi toliko za jednim browserom da napravi ovo :

Let’s just call them “over-cautious players”

август 25, 2005

I consider myself being in that category of players, because of the radical ammunition conservation (which implies extreme enemy luring) and too often position saving.

I’ll say this to my defense: you never know what lies ahead! ;) Maybe I’ll need all that ammo later, after all… The games should include hints like “don’t waste all your granades; you’ll need them in a couple of minutes” during the play. ;) Lame? Well, maybe. But I somehow manage to do majority of the kills with a machine gun or a similar weak weapon. Patience…

The reason why I save often and save my ammo is that I really, really don’t like playing the half-hour long missions twice (one word: “Hitman” — they made it impossible to save more than a couple of times per level on the hardest skill and thus made it a real PITA, IMHO). And just what did the authors of “Max Payne” think when they unlocked a higher skill level for you to choose only when you finish the entire game?! I’m not playing it twice, even if it would have been epic like Half-Life (I’m thinking of the first part of the game, not that HL2 all-the-physics-null-adrenaline crap). Ah, those were the days: Half-life… I remember when I got that seeking, unlimited ammo alien gun I killed almost all enemies with it. ;P

I’m playing “Prince of Persia: warrior within” currently and I must admit that the frequency of game saving positions is just about right, ie. you can’t save the game when you “feel like it” and there’s no ammo to waste, so there’s no dilemma there. ;))

Microsoft attempts to patent smilies?

август 1, 2005

Take a look

To rewind a bit…

јул 25, 2005

…to bring everyone up to date. I quit my job: working in three shifts was too demanding for me because I couldn’t do anything, like doing my final written papers for school and studying for an exam for example, in parallel. My social life was suffering too, because the working schedule was scheduled only for a week ahead, week after week, so I couldn’t make any plans…

So, here I am now on a “vacation”, just enjoying the summer and thinking on which subject I should write those papers on and also preparing to study at night for this one exam at my philosophy university. Belgrade is calm at this time of year: it’s very hot outside - a perfect time for indoor stuff like playing backgammon, rummy and all of those FPS games I missed because I didn’t have the time to play them… ;) I just rediscovered Worms, the Armageddon sequel this time, and it looks excellent.

The computer quieting project is going well: I bought a new SerialATA mobo so I could install Seagate Barracuda 7200.7 SerialATA 160GB, quiet as a whisper, pretty cold and fast HDD. At the same time I was in Novi Sad for EXIT festival, I have bought Glacialtech CPU cooler and 12cm case fan, both running at 19-20dBA. I also dug up a Panaflo 9cm case cooler from some old PentiumI power supply…

Like I was saying, I was at the EXIT music festival, on the 4th day. I went there because of the Datsuns, a rock’n'roll band from New Zealand, which seriously kicked ass. Unfortunately, the other bands kind of sucked, so that’s about it.