Tuesday, January 26, 2010

Unable to access webpage when connected with Huawei E220 wireless modemn

The latest ubuntu distro was automatically detected my Huawei E220 wireless modemn and I managed to connect to the internet. However, it was so strange as I was able to get online on Skype but cant access webpage. Fortunately, someone was online and helped me to fix this. Initially I thought it was because of the proxy server setting on Firefox but it turned out that was not the reason. Ping google.com but failed then the problem was because of the DNS server setting. So what we did:

1. edit /etc/resolv.conf file
the file was read only therefore I needed to change the file mode to write first
chmod a+rw /etc/resolv.conf

change the name server
8.8.8.8
8.8.4.4

*this is google server













2. Done

Million thanks to Mr. Coffee!!!

Monday, January 25, 2010

Simple makefile programming with while loops

SOURCEPATH = ~/extracted
SONGNAME = Song
SONGID = 98
NUMFILE = 220;

move:
COUNTER=1
while [[ $$COUNTER -le 9 ]]; do \
echo The counter is $$COUNTER ; \
cp ~/extracted/$(SONGID)$(SONGNAME)-0$$COUNTER.wav ~/SplittedFiles/$$COUNTER ; \
((COUNTER = COUNTER + 1)) ;\
done

COUNTER=10
while [[ $$COUNTER -le 220 ]]; do \
echo The counter is $$COUNTER ; \
cp ~/extracted/$(SONGID)$(SONGNAME)-$$COUNTER.wav ~/SplittedFiles/$$COUNTER ; \
((COUNTER = COUNTER + 1)) ;\
done
back:
COUNTER=1
while [[ $$COUNTER -le 9 ]]; do \
echo The counter is $$COUNTER ; \
cp ~/SplittedFiles/$$COUNTER/$(SONGID)$(SONGNAME)-0$$COUNTER.wav ~/extracted ; \
((COUNTER = COUNTER + 1)) ;\
done

COUNTER=10
while [[ $$COUNTER -le 220 ]]; do \
echo The counter is $$COUNTER ; \
cp ~/SplittedFiles/$$COUNTER/$(SONGID)$(SONGNAME)-$$COUNTER.wav ~/extracted ; \
((COUNTER = COUNTER + 1)) ;\
done
check:
COUNTER=1
while [[ $$COUNTER -le 220 ]]; do \
ls ~/SplittedFiles/$$COUNTER ; \
((COUNTER = COUNTER + 1)) ;\
done

clean:
COUNTER=1
while [[ $$COUNTER -le 9 ]]; do \
$(RM) $(SOURCEPATH)/$(SONGID)$(SONGNAME)-0$$COUNTER.wav ; \
((COUNTER = COUNTER + 1)) ;\
done

COUNTER=10
while [[ $$COUNTER -le 220 ]]; do \
$(RM) $(SOURCEPATH)/$(SONGID)$(SONGNAME)-$$COUNTER.wav ; \
((COUNTER = COUNTER + 1)) ;\
done


make move- move a batch of files into another folder

Thursday, January 21, 2010

Software for audio processing

1. Most common - Audacity
2. WaveBreaker - break a big wav fie into smaller parts - Linux
3. Wavosaur-windows

errors found in Debian based OS

1. Software installation:

configure: error: Package requirements (gtk+-2.0 libxml-2.0) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

solution:

install libgtk2.0-dev
install libxml-dev.

Tuesday, January 19, 2010

Using marsyas

1. Create a collection

ls /home/gtzan/data/sound/reggae/*.wav > reggae.mf

automatically:
mkcollection -c reggae.mf -l music /home/gtzan/data/sound/

2. Feature extraction
bextract music.mf speech.mf -w ms.arff -p ms.mpl -cl
bextract ms.mf -w ms.arff -p ms.mpl
bextract -mfcc classical.mf jazz.mf rock.mf -w genre.arff

./bextract -sv cl.mf ja.mf ro.mf -w genres.arff -p genres.mpl

Monday, January 11, 2010