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

Sunday, January 24, 2010

Indifference

I feel indifferent to almost everything in my life now.. The feeling is very strong and developing everyday. I dont care.. I just want my happiness. Very tired to please everyone. It's not because of this place, but maybe because I was badly hurt.. maybe because of too much problem I have makes me feel overwhelmed and cant deal with them anymore, maybe because I'm tired of acting like a giver, an angel to help everyone on this earth but they never appreciate me but make my life harder... I dont know.. at one point, I love myself more. errmm.. I'm not sure now, I feel that I dont care about myself too.. but Indifferent for sure taking over my soul now and I barely stop it from controlling all me.

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

Friday, January 15, 2010

New Year's Resolution

There are many things I need to change in 2010.

1. I want to stop shopping of clothes, handbag or cosmetics. I have 19 handbags, and my wardrobe is overloaded with clothes. I think I have more than 15 jeans - 2 of them (both Armani) I havent worn and the price tag still there. 10 different color of lipsticks-only 2 of them I use regularly. 4 lip gloss- have no reason why I need them. 3 compact powder(PIXY, Loreal, MAC), 5 foundations (MAC, Loreal, Mineral make up, Lancome, Kryolan), 2 eye liner( Loreal and Bobby brown) and 2 make up base( Loreal and Mac), 6 perfumes -2 of them are still in the box and 4 blusher. I dont really want to count the number of eyeshadows or the number of shoes I have. These make me feeling sick. I'm not a professional make up artis and a geek doesnt need this much for her wardrobe or make up box.
2. Reduce my dependency to machine. Too much.. I'm addicted to computer.
3. Love- I feel overwhelmed. I need to love myself first. Sounds like stupid but believe me.. I've got enough last year and it was a big disappointment and frustration.
4. Be more social- I want to have fun. get involve more with foreign friends and build a good networking as much as possible. This might be the only opportunity I have before going back to Malaysia for good.
5. Be active- I want to spend my time doing activities at sport centre at least 2 hours per week.
6. be faster - work faster, walk faster, be punctual.
7. Avoid proscrastination - make sure I spend my time doing something meaningful.