29.11.2011

PCM 2 MP3,Split mp3 for parts

#pcm 2 mp3
lame -b 64 IN.wav OUT.mp3
#40 min per mp3
mp3splt -t 40.00 OUT.mp3

#join mp3 files, ! can reuire lame re-encoding
 mp3wrap OUT.mp3 in1.mp3 in2mp3

17.09.2011

internet is clever place )

27.08.2011

Force firefox loads buffered links by middle mouse click

Since @FF6 middle click not loads copyed/buffered link....

Go to location
about:config



Agree with warning, filter keys by 'middlemouse'.

Double click on 'middlemouse.contentLoadURL' to switch it to 'true'.

profit!

गुड तो क्नोव )

lol, TReat, not THReat )

05.08.2011

ज्वाइन ३ग्प फिल्स अंडर लिनुक्स.

Good news everyone! )

Just spent an hour googling/digging for easyest solution to join 3gp files from pda/dvr under linux to upload resulting file on youtube ).
Writing here to not forget this stuff. Like i've done since prev time.

so, debian/ubuntu:
#apt-get install gpac mplayer mencoder ffmpeg libavcodec-extra-52
#apt-get install libxvidcore4 avifile-utils



we have command MP4Box now

join some 3gp into one:

MP4Box -cat one.3gp -cat two.3gp -new out.3gp


recode 3gp to more mobiled mp4 with ffmpeg (90->40Mb):

ffmpeg -threads 2 -i \
out.3gp -f avi -r 29.97 -vcodec libxvid -vtag XVID -s \
640x480 -aspect 4:3 -maxrate 1800kb -b 1500kb -qmin 3 -qmax 5 \
-bufsize 4096 -mbd 2 -bf 2 -flags +4mv -trellis -aic -cmp 2 -subcmp 2 \
-g 300 -acodec libmp3lame -ar 44100 -ab 96kb -ac 2 \
out.avi

removing swearwords )
mencoder -ovc copy -nosound out2.avi -o out-nosound.avi
ffmpeg -i out2.avi -acodec libmp3lame -ab 128k -ar 48000 out2.mp3
audacity out2.mp3
mencoder -ovc copy -audiofile out2fixed.mp3 -oac copy out-nosound.avi -o  out-fixsound.avi

10.06.2011

To find all files modified within the last 3 days:

find ./ -type f -mtime -3 -print


The – in front of the three modifies the meaning of the time as “less than three days.” The command

find ./ -type f -mtime +3 -print


displays files modified more than three days ago. Without the + or -, the command would find files with a modification time of three days ago, not less or more.

-type f means "files only"

02.06.2011

rly useful mass search and replace:


find . -name '*.txt' -type f -exec perl -pi -e 's/find/replace/g' {} \;

21.05.2011

रेमेम्बेर थे मिल्क रतं एंड १-डे ओफ्फ्सेट @मोजिल्ला लिघ्टिंग calendar

Good news everyone! Just want mention for future notice :). If you have 1 day offset @mozilla lighting calendar when syncing with remember the milk RTM service, check your settings, don't be original - no reason to set timezone +3 Antarctica instead +3 Moscow ). I've fought with it about month, wtf ). Finally i can manage week tasks layout without extra imagination acting.

01.01.2011

लोकल मोदुलेस install

# set PERL5 lib & bin path
if [ -d "$HOME/perl5" ] ; then
PATH="$HOME/perl5/bin:$PATH"
export PERL5LIB="${PERL5LIB:+$PERL5LIB:}$HOME/perl5/lib/perl5"
export MANPATH="${MANPATH:+$MANPATH:}$HOME/perl5/man"
fi

27.04.2010

म्जन्च्म्स ०.८२ इस आउट

Good news everyone! MjNCMS - perl Mojolicious CMS is kinda get it's first *stable* realise, v0.82 :).

U can defenatly download it and try:

http://github.com/lefedor/mjncms

19.04.2010

म्जन्च्म्स prerealise

Ok, firste prerealise out.
Still no email core && session core, req to finalize realiase as ready-to-use "alpha"
but admin side works not bad at all and user model is about complete, possible to try

14.04.2010

म्जन्च्म्स

Good news everyone, Mojolicious-based Not a CMS (MjNCMS) coming out soon, so in near future I'll show different types of wires I've used to build this dummy thing :)

Support group alredy registred
GitHub link here
Demo possibly http://ffl.ath.cx:82

06.03.2010

Passing trough

Hm Mojolicious::Lite CMS becomes just Mojolicious, wth.

27.02.2010

Mootools: get element html clode. Yes, it requires sometime ;).

Over mootools version:




Element.implement({

getHTML: function(){
var html='';
var tmpdiv=new Element('div',{'html':''});
this.clone('wcontent','keepid').inject(tmpdiv);
html=tmpdiv.get('html');
tmpdiv.destroy();
return html;
},

returnFalse: function() {
//last entry - no comma after } !
return false;
}

});


22.02.2010

Mojolicious::Lite

Writing Mojolicious::Lite CMS currently.

Example of benchmarking for future:
ab -c 100 -n 1000 'url'

means "use 100 active connects, do 10000 requests"

ab - "Apache Benchmark' utility

18.01.2010

Windows Vista: Quick Launch Panel

Good news everyone!
Here are solution for vista how to get quick launch panel back ):

Right click on panel, Panel->Create new
Type this path:

%AppData%\Microsoft\Internet Explorer\Quick Launch


Remove header and file names.
Move to Run button by dragging it at dash.

All done!