krono redirection of everyday life, by Ivan Savcic

30Aug/100

Debian: online network interfaces reconfiguration with fallback to previous values

While inside screen:

/etc/init.d/networking stop; sleep 5; /etc/init.d/networking start; sleep 30; cp interfaces.old interfaces; /etc/init.d/networking stop; sleep 5; /etc/init.d/networking start

25Mar/103

Ableton 3-Band Sidechain Compressor

In search for a multiband sidechain compressor solution for Ableton, I stumbled upon Jason Timothy's 29-band sidechain compressor. Jason's approach was good to some extent, but I noticed that the crossovers between EQ frequency bands are not "flat", ie. Ableton's EQ (Jason's EQ configuration of it, that is) emphasizes the frequencies that lie between the bands.

For an improvement, in my opinion, one has to use Linkwitz-Riley filters for perfect band separation: the frequency roll-off of those filters is perfect in the sense that the roll-off of a certain band, when summed up with the roll-off of adjacent band, doesn't emphasize nor attenuate the signal. (For a graphical explanation, please refer to this picture. "LR" stands for "Linkwitz-Riley".) Also, I believe that common multiband compressors use exactly this filter type, as do certain audio speakers, for audio crossover between the woofer, mid-range and tweeter.

By using Christian-W. Budde's Dual Linkwitz-Riley Filters VST I achieved just that: I separated the signal to Low, Mid and High bands and connected Compressors to each one, which in turn can be sidechained.

For example, this 3-Band Sidechain Compressor can be used for attenuating the bass line so that it doesn't clash with the kick drum too much.

Thanks to Jason Timothy for the initial idea!

Download it here. (Requires Ableton v8.1.1!)

10Feb/100

Limiting apt-get download speed

create file /etc/apt/apt.conf.d/76download with content:

Acquire
{
Queue-mode "access";
http
{
Dl-Limit "25";
};
};

That limits apt-get to 25KB/s

6Apr/090

GIMP corner shadows

To achieve that "bent paper shadow" look, follow this short tutorial.

Make a new image with white background, size 600x600px

Make two transparent layers

Make a 400x400px square at position x=100 y=100 (ie. centered)

Save selection to path

At "New Layer" fill that selection with black, on "New Layer#1" with white

Deselect

Select "New Layer"

Motion Blur, Zoom, Blur Center x=300 y=300, Length 10

Lens distortion, Edge -30, Zoom -5

Gaussian blur 5px to 7px

Selection from path

Rounded rectangle Radius 100%

Grow 20px

Feather 40px

Delete

Selection from path

Delete

Opacity 50%

Voila!

Filed under: Computers No Comments
10Dec/081

I’m just an old chunk of coal, but I’m gonna be a diamond some day

A good ol' from Ubuntu *and* Debian bugs:

Dimitrios Symeonidis wrote on 2008-10-14: (permalink)

this bug will soon celebrate it's 3rd birthday. it's marked as confirmed, high importance, and reported upstream (debian). are we going to do something about it, or are we just waiting for debian to resolve this?

(Emphasis added for extra lulz)

4Dec/080

Thou shalt not make nukes

From Sun Web Learning Center license:

CUSTOMER ACKNOWLEDGES THAT COURSEWARE IS NOT DESIGNED OR INTENDED FOR USE IN THE DESIGN, CONSTRUCTION,OPERATION OR MAINTENANCE OF ANY NUCLEAR FACILITY. SUN DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR SUCH USES.

Aww... But... But I really wanted to run Solaris in my nuclear weapons plant! :(

Filed under: Computers No Comments
4Mar/0833

XP Performance Edition: srpski keyboard layout HOWTO

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.

23Jan/080

SoX, yeah!

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
22Nov/072

Remove comments and empty lines sed one-liner

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

...so I don't have to think of it again.

10Nov/070

Deluge Torrent and Etch Backports

Simply wonderful.

I don't have to get it from testing and "break" my stable box with mixed trees!

21Oct/070

backports as default, stable as fallback

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

11Oct/071

htmldoc

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

Filed under: Computers, GNU/Linux 1 Comment
11Oct/071

Nice webserver uptime

Just checked:

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

Filed under: Computers, GNU/Linux 1 Comment
20Jul/070

Apt pinning: installing unstable packages on stable Debian

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

12Jul/076

Ubuntu 7.04: first thoughts

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.

6Jul/072

Casual workday + a tidbit of FreeBSD

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

Filed under: BSD, Computers 2 Comments
25Aug/051

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

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. ;))

Filed under: Computers, Games 1 Comment
1Aug/051

Microsoft attempts to patent smilies?

Take a look...

Filed under: Computers, Rant 1 Comment
25Jul/050

To rewind a bit…

...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.

Filed under: Computers, General No Comments
15Jul/050

DVD ripping under GNU/Linux

First identify the part of the dvd containing the video:
-Most of the time this is dvd://1
-If not try try dvd://2, dvd://3 etc.
-The command would be mplayer dvd://1 -dvd-device /dev/hd*
-* is your adress of the dvdrom

Get all the information of the movie:
-mplayer dvd://1 -dvd-device /dev/hd* -vo null -ao null -frames 0 -v 2>&1 | grep sid >log.txt && mplayer dvd://1 -dvd-device /dev/hdd -vo null -ao null -frames 0 -v 2>&1 | grep aid >>log.txt

Use vobcopy to copy the disc:
-vobcopy -l -t video.vob
-Make sure you're dvd-drive is mounted or it may complain
-Copy the .IFO file beloning to the movie part (dvd://number) from pathtodvd/VIDEO_TS/VTS_number_0.ifo

Detect the black borders:
-mplayer video.vob -vf cropdetect
-Skip through the video to let it do it's work
-Note the suggested crop values in log.txt

Detect the filelength (for I never see the credits)
-mplayer video.vob -osdlevel 3
-Skip to the end, note down the time where the video ends in log.txt
-If you want to include the credits, please ignore this step, it will cost quality though

Run the first pass of Xvid (fast):
-mencoder video.vob -endpos hh:mm:ss -nosound -o pass1.avi -sws 2 -vf crop=xxx:xxx:xx:xx,scale=576:320 -ovc xvid -xvidencopts pass=1:chroma_me:max_bframes=2:bvhq=1:vhq=1:trellis
-Your endpos is in your log.txt
-The cropvalue in in your log.txt

If the size of the first pass is reasonable, you can encode the audio and then run the second pass.
-The size is reasonable if the resulting video-only file has to be about < =30% smaller.
-Don't forget some MB for the audio
-If the resulting file has to be bigger, increase the resolution in steps of 32. For example try 640:352. Rerun the first pass with changed settings.
-If the compression would be higher than 30%, rerun the first pass with a denoise filter or decide to go for 2 CD's. Recommended denoise filter: hqdn3d=2:1:3 (Put it right after cropping with a ",")
-Based on the amount the video has to compress, choose a quality for the audio. I recommend using vorbis for movies. For hard to compress movies use vorbis at q0, otherwise stick to q2, or with real good compression q4. (Higher has no usage, for you won't possibly hear, if you insist just use the AC3 file)

Encode the audio:
-mplayer -vo null -vc dummy -ao pcm -aofile 2channels.wav video.vob -aid 128
-oggenc -q2 2channels.wav
-vorbisgain 2channels.ogg (Pumping up the volume without distortion)
-The -aid number you want is in your log.txt

Rip the subtitles:
-mencoder video.vob -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -sid 0 -ovc frameno -nosound
-for every extra subtitle you want to rip, increase vobsuboutindex with 1. With sid you can specify the languages found in your log.txt
-One subtitle usually costs you about 1,5 MB (compressed)
-Best way to measure the final size is to mux the subtitles only in a matroska file --> see end of instructions

Compute the bitrate:
vbr=(totalsize-audiosize-subtitlesize)*fps*8/frames
vbr=(734003200-62861936)*25*8/150750
vbr=870926

-These are examplevalues
-Bitrate is quite good, usually an undersize of about 1-2 MB.
-We'll use this bitrate for the second pass

Run the second pass:
mencoder video.vob -endpos hh:mm:ss -nosound -o pass2.avi -sws 2 -vf crop=xxx:xxx:xx:xx,scale=576:320 -ovc xvid -xvidencopts pass=2:bitrate=870926:chroma_me:max_bframes=2:bvhq=1:vhq=1:trellis

Now mux it all together and check for audio sync:
-Use mkvtoolnix (mmg to start)
-Open from mmg: pass2.avi, 2channel.ogg and subtitle.idx
-Set aspect-ratio of the video according the information outputted at the end of pass1/2
-Mux!
-Check if the audio is in sync with mplayer (mplayer pass2.mkv)
-Use control + or control - to see if it's getting better
-Redo the muxing with an other audio offset. This is positive if you used control +.

Enjoy your new quality rip!

25Jun/052

SMTP Joke

"Last time I sent messages to an SMTP server, it couldn't even spell "hello" correctly."

(by zsa on some Slashdot discussion)

;))

Filed under: Computers 2 Comments
4Jun/050

Silencing the computer

I'm thinking of buying Seagate Barracuda 7 HDD to replace my loud IBM and also Coolermaster heatpipe CPU cooler to replace the retail AMD 3000+ CPU cooler... Oh, joy!

Filed under: Computers No Comments
4Jun/050

Linux newbies

How to spot a Linux user who (recently) switched from Windows?

When something goes wrong, he reinstalls the whole system.

27Apr/050

Fortune of the day

63,000 bugs in the code, 63,000 bugs,
ya get 1 whacked with a service pack,
now there's 63,005 bugs in the code!!

;)

27Apr/052

Gmail downtime

Ahh, that beta buzzword eventually pays off, so it seems. From the Gmail site:

Server Error

Gmail is temporarily unavailable. Cross your fingers and try again in a few minutes. We're sorry for the inconvenience.

Filed under: Computers, General 2 Comments
6Apr/051

Julius

I just stumbled upon a Wikipedia article on Daniel J. Bernstein. Rings a bell? How about qmail? djbdns? No? Go and read the article and visit the links specified in it!

In a nutshell, DJB is a professor, mathematician, cryptologist and a programmer who's accent is on efficient and, above all, secure code. He is known for criticizing archaic software behemots, such as Sendmail and BIND.

I find his stance on disclosure interesting:

Immediate full disclosure, with a working exploit punishes the programmer for his bad code. He panics; he has to rush to fix the problem; he loses users.

You're whining that punishment is painful. You're ignoring the effect that punishment has on future behavior. It encourages programmers to invest the time and effort necessary to eliminate security problems.

So radical it hurts. But, does it help?

PS: Julius? That's what the "J" stands for.

Filed under: Computers 1 Comment
5Apr/050

Fun with archaic machines

My PentiumII sidekick-machine, avatar, was supposed to receive a CPU upgrade today with a Celeron 633 MHz CPU, but alas, PCB revision which supports CPUs faster than 400 MHz must be at least v2.0 and my mobo is only v1.7. Crap.

avatar had a nice uptime of 88 days, but then the HDD failure happened and it's offline since then. 300 MHz have really did a nice job running fluxbox over TightVNC and monitoring the network with Cacti, among other things, including doing the print serving job... I must get a new hard drive for it.

26Mar/053

sendxmpp

Nice application for sending all kinds of text (ie. cron outputs and warnings on machines you administer) directly to your JID or even chatroom!

Example:
[code]cat SOMETHING | sendxmpp -u SRC-USERNAME -p SRC-PASSWORD -j SRC-SERVER -t -s "SUBJECT" DST-USERNAME@DST-SERVER[/code]

12Mar/052

Opet konqueror

U traženju rešenja za ovaj problem postovao sam topic na Gentoo forumima, napisao bug report, kompajlirao sa ovim i onim CFLAGS, uklju?ujući i -static i - ništa.

Onda sam proverio kompletan dependency tree kdebase-a sa --emptytree emerge opcijom gledajući šta bih mogao da re-emergujem. Sveo sam uži izbor na 11 paketa: jpeg libpng openslp tiff freetype fontconfig libtool ttmkfdir lcms libmng qt. Koje nagađanje... Sve do qt-a se iskompajliralo bez problema, ?ije je kompajliranje puklo sa greškom da libfontconfig.so.1 nije pronađen. w00t!

Onda vidim da stvarno ta biblioteka ne postoji?! Re-emergujem fontconfig - ništa. qpkg -f /usr/lib/libfontconfig.so.1 - ništa. cd /var/db/pkg && cat */*/CONTENTS | grep libfontconfig.so - ništa! Uh... Pokušam da pokrenem beep-media-player - neće. Pomislim da se možda zvu?na nije zakucala, ili ranije pokrenuti bmp... Nema veze, muziku ću pustiti kasnije, da pogledam šta Google kaže za ovu biblioteku...

Na netu ništa o tome kom paketu ta biblioteka pripada, pa rekoh da vidim da li je na Jabberu neko online od ljudi koji koriste Gentoo da urade qpkg -f, kad ono, Psi neće da se pokrene?! Pokrenut iz konzole lepo izbaci error da mu nema jedne biblioteke... Pogađate.

Onda shvatim da prakti?no sve X aplikacije traže taj lib što fali, krenem da gubim živce, zamolim jednu drugaricu IRCerku da pita #gentoo-ovce na Freenode-u kom paketu pripada taj lib, na šta će oni da je deo fontconfig paketa... Uh, pa nije, probao sam... I onda se setim:

-static

Filed under: Computers 2 Comments
12Mar/051

Downtime, posao, etc.

imped.net je bio down par dana... Razlog? Hardverski problemi, upgrade sistema, vraćanje bekapa. Razmišljam da prebacim imped na drugi hosting, što ću najverovatnije i da uradim kad budem imao malo više vremena. Treba dumpovati sve baze, prebaciti sve usere i poddomene... Polako.

Bio sam na konkursu za posao u EUnetu, za "inženjera TP". Sve je prošlo super, u ponedeljak mi je prvi radni dan. ;)

Ovih dana se mu?im da nateram konqueror da radi kako treba. Zeza me neki ?udan bug, koji se izgleda dešava samo meni, iako nemam ništa neregularno na sistemu, niti sam preterano bleeding edge što se bitnih delova sistema ti?e, tj. sve bitno je stable i kompajlirano je sa blagim CFLAGS. Drugo rešenje, izgleda i jedino, je da sa?ekam novi KDE da se pojavi za par dana, ako sve sa RC prođe okej.

Filed under: Computers, General 1 Comment
30Jan/050

Ćuti, sine, i plivaj

Smešna pri?a o tome kuda MS softver vodi, u bukvalnom, ovaj, bukvalnim zna?enjima te re?i... ;)

PS: linkovi u "related stories" odeljku su fenomenalni, obavezno ih proverite!

Filed under: Computers, General No Comments
29Jan/050

doorman Gentoo ebuild

doorman je zanimljiva port knocking implementacija. Više o tome ovde, ebuild skinite ovde (otpakujte u root PORTAGE_OVERLAY-a).

Filed under: Computers No Comments
21Jan/051

Top ten signs you’re a Google freak

10. Your kids still believe the Googlebot is bringing the Christmas presents.
9. Your reply to "How are you" is "I'm feeling lucky", combined with a clicking gesture.
8. You shout at the librarian when she takes more than 0.1 seconds to find your book.
7. You just lost a case in court to name your newborn son "Google".
6. You think of Google as your second-best friend, but lately consider it to get into first position.
5. Your Google shirt is losing color.
4. When people talk to you, you try to optimize their keywords.
3. Your last three Sunday family trips have been to the Googleplex.
2. You are convinced "What's your PageRank?" is a good pick-up line.

And the number one sign you are addicted to Google:
1. You are completely clueless without a computer.

(Hvala valexu)

Filed under: Computers, General 1 Comment
13Jan/053

LAME 3.90.3 Gentoo ebuild

Pošto je 3.90.3 još uvek recommended verzija, prepravio sam ebuild od verzije 3.96. Koga ne mrzi, neka pogleda zašto gtk podrška ne radi kako treba (ili to samo kod mene ne radi).

Da skratim pri?u, ebuild preuzmite ovde, prekopirajte u $PORTDIR_OVERLAY/media-sound/lame (napravite direktorijume ako fale), potom uradite:

[code]ebuild $PORTDIR_OVERLAY/media-sound/lame/lame-3.90.3.ebuild digest

emerge =lame-3.90.3[/code]

($PORTDIR_OVERLAY zamenite sa putanjom do OVERLAY direktorijuma)

To je to.

Filed under: Computers 3 Comments
9Jan/054

Lep tekst o Gentoo Linux-u

Link: "Gentoo for All the Unusual Reasons".

Filed under: Computers 4 Comments
7Jan/058

“http” URL u Firefoxu

Slu?ajno sam uneo samo "http" za adresu u Firefoxu... Hm... Zanimljiv rezultat.

Filed under: Computers 8 Comments
4Dec/040

Dailystrips dodatak

[code]strip qc
name Questionable Content
homepage http://www.questionablecontent.net/
type search
searchpattern matchpart 1
baseurl http://www.questionablecontent.net/
provides latest
end

strip samandfuzzy
name Sam and Fuzzy
homepage http://www.samandfuzzy.com/
type search
searchpattern matchpart 1
baseurl http://www.samandfuzzy.com/
provides latest
end[/code]

Filed under: Computers No Comments
6Sep/040

Microsoft humor?

Hair Color of the "Person" Icon for a User Group Becomes Gray If the Group Contains More Than 500 Users, Error Message: Your Password Must Be at Least 18770 Characters and Cannot Repeat Any of Your Previous 30689 Passwords i ostale ha ha ha Microsoft gluposti ovde. :)))

Filed under: Computers No Comments
27Jul/041

Zaboravljeni e-mail

Danas sam, posle ko zna koliko vremena, odlu?io da proverim svoj imp NA default.co.yu e-mail.

Iznenađenje iznenađenje:

du -hs /home/imp/Maildir/
105M /home/imp/Maildir

105 MEGABAJTA. Da, dobro ste pro?itali. 22834 e-maila! Pritom, 95% mailova su prastari cronovi sa nekih mašina koje ja ni ne održavam, a preostalih 5% je spam/virii. 105 mega vala nisam hteo da skidam.

Shell to the rescue!

$ cd ~/Maildir
$ find . -type f | xargs grep -il cron | xargs rm -f

Filed under: Computers 1 Comment
21Jul/044

Patentirane jabuke

Pošto sam završio razgovor sa caiserom preko neta, otišao sam do pijace da kupim Adamove jabuke.

Seljak koji ih je prodavao bio je obu?en u crveno zeleno plavo žutu majicu i rekao mi je da ne sme da mi da da probam jabuke pre nego što ih kupim, ali mi je garantovao da su Adamove jabuke sigurno najbolje jabuke što sam za života probao. U redu, u redu, daj. Pošto je odmerio par kila, dao mi je papir sa EULA i olovku da potpišem. Na papiru je, između ostalog, pisalo sledeće: "Ko ove jabuke kupi nema prava da ih ukršta sa drugim vrstama i da njihovo seme koristi za dalje uzgajanje jabuka. Ove jabuke smete da jedete samo vi (u daljem tekstu Kupac). Postoje licence za pet i deset konzumenata jabuka, ako želite da delite jabuke sa drugima. Jabuke ne smete da ljuštite..."

Potpisao sam. Došao sam kući i oprao sam jabuke. Nekako su izbledele posle pranja i nisu više bile toliko crvene kao kad sam ih kupio. Odgrizao sam komad jabuke. Ukusna, ali posle nekog vremena slatka nota bledi i prerasta u gorku. Komad kore mi se zaglavio između zuba, a jabuka je imala crva, iako je navodno prskana... Uzeo sam EULA da vidim da li mogu da vratim jabuke, pošto su crvljive, kad tamo lepo piše: "...svaka jabuka sadrži od jednog do pet crva. Sredstvo protiv crva se dodatno plaća. Ako u jabuci ima više od pet crva, Kupac ima pravo da je vrati distributeru jabuka. Ako se kora od jabuke zaglavi između zuba, pritisnite istovremeno gornju i donju peteljku na jabuci. Upozorenje: ne radi uvek. Kupac ima pravo na 1 (jedan) poziv podršci ako ima pitanja u vezi sa jabukama..."

A ja sam bio ubeđen da su ove jabuke normalne...

15Jul/040

cdcat.sh, an audio collection cataloguer

Mala bash skripta koju sam napisao za potrebe katalogizacije svoje muzi?ke kolekcije.

Description:
A script which extracts names of all audio files from a CDROM mounted on $CDROM and stores them in a plaintext file $DB. Supermount enabled by default. CDROM entry must be present in /etc/fstab and CDROM must be mountable by user running the script.

Download!

Filed under: Computers, General No Comments
14Jul/040

Lepe vesti

Tek danas sam otkrio da ETF ima mirror za dosta OSS projekata, između ostalih i za Gentoo distfiles zajedno sa portage stablom preko rsynca! Jej!

Kad sam već tu, rekoh da proverim da li ETF ima i NTP time server: ping ntp.etf.bg.ac.yu... Hmm, resolvuje, ali dropuje ICMP echo... Hm, da probam da querujem sat: sntpclock 147.91.8.1 | clockview... Radi! Pitanje je koliko precizno i zašto ovaj NTP server nigde nije objavljen (sem na Elitesecurity-ju). No, bitno je da sad svi u Srbiji imaju lokalni NTP server, kao i mirror za sve bitnije OSS projekte, uklju?ujući i Gentoo.

Filed under: Computers No Comments
13Jul/040

GVim i antialiased monospaced font

Antialiasing u tom slu?aju se može isklju?iti ovako (moj /etc/fonts/local.conf).

Kako izgleda GVim kad je isklju?en antialiasing za monospaced fontove

Filed under: Computers No Comments
25May/042

Ogg Vorbis najbolji codec na 128 kbps

Ako i dalje enkodujete muziku na 128 kbps, možda će vas zanimati da je Ogg Vorbis dobio najviše rezultate u konkurenciji sa MP3, MPC (Musepack) i ostalim manje ili više poznatim codec-ima. Rezultate testa možete pogledati ovde. Mala napomena: u pitanju je patchovana verzija Ogg Vorbis codec-a koja bolje radi na nižim bitrejtovima poput 128kbps, aoTuV.

Uputite browser na Hydrogenaudio forume i skinite softver sa osmehom na kraji?ku usana znajući da podržavanjem Ogg Vorbisa podržavate Open Source i Free Software i govorite "ne" proprietary softveru koji, pored toga što povećeva cenu, ograni?ava slobodu digitalnog zvuka... ;)

Filed under: Computers, General 2 Comments
19May/045

Thou shalt not ask stupid questions!

Od dana prvog kad sam instalirao svoju prvu GNU/Linux distribuciju, pa i pre tog dana, posmatrao sam ljude koji poznaju više od mene, gurue, hakere i überusere, sa dužnim poštovanjem. Gledao sam na njih kao na ljude koje ne treba zamarati sa glupim i trivijalnim pitanjima. Svako pitanje koje postavljam i dan danas pažljivo koncipiram, gledam da ne zaboravim neki bitan detalj koji bi mi pomogao da što pre dobijem što bolji odgovor. Pre svega, potražim odgovor na Google-u, pa koristim lokalne searcheve na forumima.

Budimo realni: glupo pitanje - glup odgovor. Više glupih pitanja - zaklju?ite sami. Mene, iskreno, smaraju pitanja koja nisu precizna, koja nemaju sve potrebne informacije. A koliko li je samo ljudi pisalo o tome... Na svakom forumu to stoji u pravilniku ili guide-line-u, Eric S. Raymond ima prakti?no esej na temu "kako postavljati pametna pitanja", a ljudi i dalje ne shvataju važnost dobro formulisanog pitanja.

Eh, kako god. Mene je više muka da tražim od ljudi da preformulišu nebulozno pitanje, samo produžim.

Filed under: Computers 5 Comments
15May/040

Migracija na novi harddisk i xfs

Danas sam prebacio ceo avatar.axis.net (Gentoo GNU/Linux server iz predsoblja ;) na novi harddisk, pošto su dva stara pod LVM-om krenula da otkazuju.

Pitanje je bilo kako prebaciti ceo fajlsistem, a da sve ostane "na mestu" (kao što su npr. simboli?ki i hard linkovi, pipe-ovi, i svi /dev fajlovi). Mala za?koljica je ležala u tome da je ceo /usr pod LVM-om, zajedno sa swapom, a u /usr su bili neki direktorijumi poput /tmp, /opt itd, što jeste mal?ice nesigurno (tj. i nije ako se koristi sticky bit), ali je bilo jedino rešenje u trenutku instalacije s obzirom da nisam znao koja će biti potrošnja prostora po direktorijumu. Zna?i, imao sam / i /boot koji nisu bili pod LVM-om i ostatak koji jeste.

Ovako se odvijala migracija:

Pre nego što sam i ubacio novi hard, rekompajlirao sam kernel sa podrškom za xfs i iz portova sam instalirao xfsprogs.

Pošto sam ubacio novi harddisk, podelio sam ga na dva dela, rootfs i swap. Nisam veliki fan odvojenog /boot-a, a hard je premali (5 GB) da bih ga delio na /usr, /home itd. Odlu?io sam se da fs za rootfs bude xfs, zato što ima dobre performanse, dosta ljudi ga hvali, a i Gentoo u portovima ima xfs flavoured kernel, kog lepo održavaju. Zašto ponovo izmišljati to?ak? :) reiserfs je pomalo razo?arao u ?etvrtoj verziji, a sam sam imao loša iskustva sa njim, tako da sam rešio da ga ovog puta zaobiđem.

Potom sam ceo sistem prebacio ovako:
# mount /dev/nova-hdd-particija /mnt/nov
# cd /
# find . -xdev | cpio -padmv /mnt/nov
# cd /usr
# find . -xdev | cpio -padmv /mnt/nov/usr
# cd /boot
# find . -xdev | cpio -padmv /mnt/nov/boot

Najbitniji detalj sa find-om je da obavezno treba da ima -xdev kako bi ostao na istom fajlsistemu, tj. da ne bi pokušao da kopira /proc i sam /mnt/nov (možda ovo drugo ni ne radi, ali za svaki slu?aj...). U celu komandu je mogao da se ubaci i grep-dva kako bi to filtrirao, ali ovako (valjda) ide brže.

Potom sam se chroot-ovao na /mnt/nov i editovao /etc/fstab i /etc/lilo.conf, prebacio /usr/opt i ostale direktorijume koji bi trebalo da su u rootu na root i to je to - it worked.

Filed under: Computers No Comments
11May/041

Hej!

Posle par eona zatišja, imped.net je dobio mali, ali preko potrebni face-lift i još preko potrebniji novi post. Odmah da priznam da izgovora zapravo nema što ovoliko dugo ništa nisam pisao, ali da pređem na stvar, a to je šta ima novo u...

Pod jedan, kablovski net. Sad se više ne smejem poslednji, jer mi je ping daleko manji. ;)) Navukao sam se na skidanje muzike: svaki dan po par novih albuma i tek onda sam miran. Zategao sam firewall na Gentoo box-u kako bi veselu 10.1.x.x družinu držao na što većoj distanci od servisa moga servera... ;)

Pod dva, u?im. Ništa se preterano ne dešava u gradu, bio sam par puta do Bassmenta, novi mali klub SKC-a i nije nešto posebno (pogotovo ozvu?enje smara...). Overdozirao sam se koli?inom muzike i filmova, po?eo sam da odbijam kad mi ljudi nude... ;P 100 GB hard je odavno došao skoro do plafona, razmišljam se da pazarim još jedan od 80 GB, ?ujem da su brži od ovih na 40, 100 i 120 GB i to za ~30%! (*cough* koja digresija *cough*...)

Završio sam svoj prvi oficijalni singl, koji će posle produkcije biti dostupan za download na ovom sajtu. Po?eo sam da radim neke "gli?aste ?etiri-?etvorke", ali, kao po obi?aju, ništa ne završavam. Javila se ideja i potreba za kolaboracijom sa muzi?kim istomišljenicima, biće od toga nešto ovih dana.

Fascinantno kako lepo radi i koliko je feature-rich TightVNC koji me spašava buke u sobi tako što tera X server na mašini van moje sobe, a pod X-om Nicotine i od sutra DirectConnect klijent (...vidi se ovisnost od p2p-a ;).

Heh, lepo, (TR/MC) 3:03 am, puna kapa re?i. Čitamo se opet uskoro.

Filed under: Computers, General 1 Comment
13Jan/040

rxvt sa console fontom

Ovako:

rxvt -fn "-misc-fixed-*-*-*-*-16-*-*-*-*-*-*-*"

Filed under: Computers No Comments
11Jan/040

Novi WordPress

Instaliran i testira se...

Filed under: Computers, General No Comments
3Jan/040

Isplativost OSS-a ;)

Upravo gledam MRTG and RRDtool Appreciators List, ukratko:

The following people have sent a CD from my CD wishlist
(http://people.ee.ethz.ch/~oetiker/wish) to show their appreciation
for rrdtool, smokeping and mrtg ...

(trivia: Tobias Oetiker je autor gorenavedenih alatki koje su pod GPL licencom).

Najkarakteristi?niji sa spiska:
Prvo, ?ovek koji je poslao 0.97$ (...da, 97 centi ;))):

Jan van Vlerken 2003/04/09 $ 0.97

Onda, ?ovek koji je poslao 1000$ !!!

Juston Beech, DSLReports, New York 2003/01/03 = USD 1000 Check

Filed under: Computers No Comments
27Dec/030

Malo qmail

Ovde.

Filed under: Computers No Comments
16Dec/030

Malo SSH

Opsa sa

Filed under: Computers No Comments
6Dec/030

sed/awk mail filter dokumentacija

Note to self:Ovde, ovde i ovde.

Ovako nekako: awk -- '{print $0}; /spam tag/{system("spam-report.sh")}' file

Filed under: Computers No Comments
2Dec/034

Data Protection 2003

Javljanje sa Data Protection-a 2003, dana drugog.

Upravo sam sa bc-om bio na Microsoft security konferenciji (valjda se tako zove...). Dve stvari su bole o?i dok nam se napokon nije smu?ilo i dok nismo izašli.

Pri?a je kako MS u poslednjih par godina izuzetno vodi ra?una o sigurnosti... A šta je bilo pre tog perioda? (in)security?

Onda, disclosure rupa u sistemima. MS je izuzetno protiv toga i oslanja se na semi-automatizovan sistem patchovanja - šta je onda posao administratora? Naravno, treba napraviti razliku između out-of-the-box script kiddie exploita i proof-of-concept koda, što je MS-ov ?ovek vešto izostavio iz pri?e. Čovek je pominjao i viruse - ?ini mi se da non-MS OS-evi nisu imali problema sa njima, makar ne u toj meri. Uostalom, nisam ?uo da su se "proizvođa?i" ostalih operativnih sistema žalili kako je neko objavio neki exploit/bug/hole za njihova ?eda. MS tu igra zanimljivu igru: nije MS kriv za rupe u sistemima, o ne, već ljudi koji ih pronalaze i objavljuju?! Get real, people! Pritom, sećam se neke pri?e na Slashdotu kako je Bill Gates nedavno rekao kako za sigurnost nije potreban kvalitetno pisan kod?! Onda je ?ovek krenuo da pri?a šta je Bill Gates rekao o sigurnosti, kako on vidi sve to, kako bi svi u IT-u trebalo da se pridržavaju toga, itd itd... Otkrio je Ameriku. Bukvalno.

Filed under: Computers 4 Comments
29Nov/030

Arhai?ni Olivetti

Ju?e sam budžio RH9 (ne pitajte zašto RH9... Tražili su to. ;)) na jednu Olivetti dual procesorsku mašinu iz sredine devedesetih. Kućište je veliko kao dva šira big-tower kućišta postavljenih jedno pored drugog. Ima i to?kiće ;)) Za divno ?udo, izgleda da radi okej. Brdo PCI slotova, 2 PentiumPRO procesora, 2 SCSI 4GB harda i nešto za šta mislim da je EDO RAM (u svakom slu?aju, nešto što je postojalo pre SDRAM-a), dva napajanja, ooogromne fanove... Mašina će da bude gateway/fileserver/mailserver...

Filed under: Computers No Comments