Showing posts with label програмки. Show all posts
Showing posts with label програмки. Show all posts

Friday, July 29, 2011

awk script to find min and max value in a text file

awk 'BEGIN {min=100};  { for (i=1; i< min) {min = $i; print $i } } }; END {print min} ' $filename

print tokens in all lines:
awk '{for (i=1; i<=NF; i++ ) print $i}'

bash script to replace all spaces with +
ls > blah;
while read line; do a=`echo ${line// /+}`;
mv "$line" $a;
done < blah;
rm blah;

bash script to upper to lower case file names
for i in `ls *`; do echo $i > blah; g=`tr '[A-Z]' '[a-z]' < blah`; mv $i $g ; rm blah; done


bash script to give info about all wav files in a dir
for i in `ls *.wav`; do soxi $i  ; done


bash script to resample wav files in a dir to 16000 Hz
for i in `ls *.wav`; do tmp=${i}tmp ; mv $i $tmp ; sox $tmp -r 16000 $i ; done

bash script to change all wav files in a dir to mono
 for i in `ls *.wav`; do tmp=1${i} ; mv $i $tmp ; sox $tmp -c 1 $i ; rm $tmp ; done

bash script to process all wav files in a dir with jaudio: For files A.wav, B.wav returns, A.arff, B.arff

cd /Applications/jAudio/;
for i in `ls /Volumes/SAMSUNG/COMPARISONGDB/testDatabase/newQueries_SUN/*.wav`;
do
a=`basename $i .wav`;
b=/Volumes/SAMSUNG/COMPARISONGDB/testDatabase/newQueries_SUN/${a};
  java -Xmx1024M -jar /Applications/jAudio/jAudio.jar -s /Applications/jAudio/settingsRMS.xml $b $i ;
done

for i in `ls *.arff`; do a=`basename $i .arff`; tail -n +5 $i > ${a}.RMS ; rm $i; done

% parse stm files and generate matchesGT files
for i in `ls *.stm`; do a=`basename $i .stm`;   awk '{if ($2==1 && NF == 7) print $4"\t"$5 }' $i > ${a}.matchesGT; done

Saturday, April 02, 2011

FOSDEM 2011

This February for second consecutive year I took part in the lively developers' European meeting (DEM) of software engineers, hackers, project leaders,  enterpreneurs, enthusiasts. These guys gather together inspired by the idea of free and open source (FOS) software.

The event takes place in Brussels, which lets me check out imposing buildings of the Institutions of the  European Union and hear from my friends working for our common European future.

This year apart form the cool topics that were discussed I did as well spread the word about my famous (I hope so :) project CompariSONG. It is a tool to query melodies hummed by the user and recognize the original song. More about it one can read here


After the conference I decided to keep on improving the project and launch a full-fledged version soon.
If you can sing, please, check it out. If you are java developer, join me. It is fun :)

Friday, August 20, 2010

FrosCon



I am excited. finally it is time for another thrilling Open Source Event. FrosCon
This time the Venue is: Bonn, Sankt Augustin.



It all stared in a hot summer day of August by spotting a frog marking the road.















The impressions that I have gathered on the previous Open Source Conference have been confirmed: open source guys are creative.


You can see  the typical badge-stand.
There was a map of Germany and the world where each participant can proudly pinpoint where he/she comes from. I spotted I was the only guy presenting Bulgaria :)
Arduino : Adventure for the software developers
that are not afraid to make their hands dirty with hardware.














I did attend the following talks:
TopicComments and Morals
Agile in a year: How a Software Company became agileExperiments and learn by practice
Mobile Linuxed-based OS Android will prevail in the market of Open Source Mobile OS
OS Project - mehr als Source code see below
Arduino Workshop arduino is a programmable piece of hardware - namely a chip that can control any device: from a hand-made origami to a complicated unreal piano


There was a guy from Austria that did really manage to summarize the whole story about open source. He outlined the key points one has to consider when facing a OS project.- related to people and tools What was inspiring were his creative slides – picture for each keypoint. That reminded me of the cool site despair.com. A picture speaks a thousand words.



Events like this are fostering you to keep on progressing with the software ideas that you are obsessed with. By seeing the other enthusiasts like you, you know you are not the only one - vice versa - a great community waits for you to join the projects.


Never forget: All successful software was open source at its infancy!

Friday, August 13, 2010

The topics that make me love my job

Things that I like about being a software engineer:

design patterns -
They can unleash the real creative power of a programming language. Constructing modules according to a design pattern is like being a software architect. I have always seen programming as a design task, not as of all-possible-ingredient code soup, despite the fact that, one usually starts the second way :)

But the best thing about programming is when you are done for the day...
You head is close to explosion, you thoughts are scattered all around, your eyes daze uncoordinated.
To prevent the nightmares full of bugs and breakpoints the only thing left to do is turn on some tender chill-out female-fronted metal like OTEP  and SCREAAAAM.

Monday, February 08, 2010

FOSDEM 2010 - една мечта по-малко

В събота, 6 февруари в Брюксел се състоя една от най-големите сбирки на привържениците на софтуеъра с отворен код.

Наистина бе невероятно да си в море от гении/хакери. Събрах много идеи. Докоснах се до най-новите книги по state of the art теми. Взех си една от 2010. Топла, топла - още пари.

Поуките от мероприятието:

Да има екип/общество около проекта ти е яко.
Осъзнах, че има поне още 5 000 човека в света, които са поддръжници на идеята за отворения код.

Няма време за губене.
Аз си мислех, че прекарвам прекалено много време да се занимавам с програмиране и алгоритми. Жестока заблуда. Като видях типа хора, които пишат сорс дори по време на конференция се убедих, че програмирането е като наркотик. Ти си дошъл от другия край на света да слушаш презентации. Да, ама пичовете дебъгвавт докато слушат какво им говорят.

to be continued...

Saturday, September 19, 2009

compariSONG - the intelligent system for searching through melody

 In the summer of 2008 I realized one of my dreams. I wrote my first app for  analysis of sound: CompariSONG. It compares tunes. You are humming the melody that you heard  last night, but do not remember which song it is. CompariSONG tells you it is and you plays the original for you.  
The Professors called CompariSong "a research project".
Instructions for installing the official site of the project:
https: / / sourceforge.net / projects / comparisong / Currently works under Windows and Linux








how it functions? Here:

www.foibg.com/ibs_isc/ibs-11/ibs-11-p04.pdf