Archive for August, 2009

Terminal Heroes – part 2 – sed all files

Posted by Ktoso under null, terminal heroes (No Respond)

Did you ever have to substitute a single word with another one in lets say… 200 files? I just had to, since I used some old files from a client and wanted them to work in the new project – where some classes where named different because of Propel stuff. Here’s my solution: find . [...]

Smart webpage migration

Posted by Ktoso under coding, freedom, guide (No Respond)

I recently had to migrate a big website – about 5GB – to a new server. That could take a while to do, right? Well, maybe if you did it like that (the not smart way): Thanks goodness I’m not really keen on doing stuff the slow “not_smart” way, and the new server is a [...]

Tags: , , , , , , ,

Toggle Syntax Highlighting in vim

Posted by Ktoso under coding (No Respond)

Just a quick vim tip today… Have you been coding/fixing stuff on the server over ssh using vim? I sure have, but was always wondering why the vim on my server wouldn’t highlight php… The solution is: :syntax on Whoa, 2 words, not 2 letters like usually! Thats pretty long for vim ain’t it? ;-)

Tags: , , , , , ,

Terminal Heroes – 1 – mysql backup insert

Posted by Ktoso under coding, terminal heroes (No Respond)

Just a quick note while dumping a 70MB database… ;-) Let’s say i got my database backup from phpmyadmin, compressed with gz (zip’s also fine), while getting the backup,even if it’s BIG ain’t really a problem, putting it into the database can be troublesome becouse timeout’s etc, especially if it’s a BIG file ;-) My [...]

Tags: , , , ,

Google Analytics GUI fix

Posted by Ktoso under coding (No Respond)

I really like the google analytics tool, yet it doesn’t seem that all it’s styles where writen carefuly… Take a look at this: So… Which button is the confirm one…? Yup, the colors are screwed up! I guess that’s becouse they didn’t think that someone could have a dark OS skin that would also skin [...]

Tags: , , ,

Xplode – initial release

Posted by Ktoso under coding, gaming, Project13 (No Respond)

Xplode, a simple open source J2ME game I’ve been coding some time just for fun is has gained a “quite playable” status now… So if you own a touch screen enabled device or just like to take a look at some source — please stay with me for a sec ;-) Xplode‘s idea is very [...]

Tags: , , , ,

mencoder mastery – part 2

Posted by Ktoso under coding (No Respond)

Tym razem małe polecenie włączające zewnątrzny plik mp3 (z ogg zadziała tak samo): #poniższe polecenie bierze plik old.avi, i łącząc go z sound.mp3 (zachowując jego codec audio) tworzy plik new.avi mencoder old.avi -o new.avi -ovc copy -oac copy -audiofile sound.mp3 #analogicznie możemy wziąć plik audio w innym formacie i przetworzyć go np na mp3, wtedy [...]

Tags: , , , , ,

mencoder mastery – part 1

Posted by Ktoso under coding, guide (No Respond)

Skoro była taka seria z wgetem, to przyszedł czas na to samo z mencoderem. mencoder to program do ogólnie pojętej obróbki plików video. Jeżeli korzystasz z jakiegoś okienkowego programu do modyfikowania wideo pod linuksem, z dużym prawdopodobieństwem jest on nakładką na mencodera :> Dzisiejszy temat to obracanie całego filmu: mencoder -ovc lavc -vf rotate=1 -oac [...]

Tags: , , , , ,

Chore DRM cz.1

Posted by Ktoso under freedom, gaming (No Respond)

O tym że Digital Restrictions Management nie ma sensu i tylko przeszkadza legalnym użytkownikom przekonałem się (i setki innych, głównie graczy) nie raz… To co stało się 29 stycznia 2009 jednak pobiło wszystko co dotychczas widziałem (oprócz prince of persia psującego fizycznie napędy CD…). (Kliknij na aby powiększyć.) Posiadam oryginalną grę Gears of War (na [...]

Tags: , ,

Blender – 01 – Bałwan

Posted by Ktoso under coding, fun (No Respond)

Mój pierwszy raz z Blenderem, fantastycznym narzędziem do grafiki 3D… W kilku słowach: “Było fajnie”. Grafika 3D to bardzo ciekawa sprawa, niestety również dość trudna ;) Jak na pierwszy raz jednak, jestem zadowolony z mojej scenki… Jako że nadal trwa zima, tematyczny bałwanek: Jak na pierwszy raz (posiłkowany tutorialem i tym co kiedyś kolega na [...]

Tags: ,