maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Mosquito's Hunter (https://talk.maemo.org/showthread.php?t=73222)

santiago 2011-05-19 11:19

Re: Mosquito's Hunter
 
Quote:

Originally Posted by nicholes (Post 1009707)
does it really work ?????????? i have to many mosquitoes in my house and i am going to try it there in the evening

Yes, sure, it works. I was repacking all this night, i searched the help of maefarm creator becose i wanted to create a Real Application not a game. It works

santiago 2011-05-19 11:24

Re: Mosquito's Hunter
 
Quote:

Originally Posted by delmar (Post 1009872)
I doubt its effcacia and think it's more a gag. I had an application like this in the mythical Nokia 66oo, but had no effect.

dont install it then, how can you doubt about a thing without have a try? i'm telling you that it works, it uses High Notes and mosquitos hear this kind of sounds. First button works sometimes but the Extreme button is for real a good repellent.

retsaw 2011-05-19 11:51

Re: Mosquito's Hunter
 
I heard that Mozquitos don't like people who eat Marmite*, can't remember where I heard it, but it was fairly recently (last few months or so). I don't really know if it is true, but I'm a Marmite lover and I never get bitten by insects.

I have just done a search and found this. It might be the B vitamins in Marmite that has the repellent effect.

* For those who don't know, it is a savoury yeast extract spread typically used in sandwiches or toast.

AgogData 2011-05-19 12:19

Re: Mosquito's Hunter
 
Despite what retsaw is saying i just tested Mosquito's Hunter with no mosquito and :
1- When i press again on classic/extreme i can't pause, there is no stand by option by un-pressing cl./ext.
2- there is a down arrow on the title indicating its a drop menu but when i pressed it nothing happened

santiago 2011-05-19 12:20

Re: Mosquito's Hunter
 
Quote:

Originally Posted by retsaw (Post 1009905)
I heard that Mozquitos don't like people who eat Marmite*, can't remember where I heard it, but it was fairly recently (last few months or so). I don't really know if it is true, but I'm a Marmite lover and I never get bitten by insects.

I have just done a search and found this. It might be the B vitamins in Marmite that has the repellent effect.

* For those who don't know, it is a savoury yeast extract spread typically used in sandwiches or toast.

You can use also the Listerin.. It works if you use it on one house area, they keep away from there.

santiago 2011-05-19 12:24

Re: Mosquito's Hunter
 
Quote:

Originally Posted by AgogData (Post 1009936)
Despite what retsaw is saying i just tested Mosquito's Hunter with no mosquito and :
1- When i press again on classic/extreme i can't pause, there is no stand by option by un-pressing cl./ext.
2- there is a down arrow on the title indicating its a drop menu but when i pressed it nothing happened

can you add a screenshot here?

try to run this on xterm

run-standalone.sh /opt/mosquitos-hunter/launch.sh

and post here the error code..

By the way if you get some errors during the installation with dpkg -i mosquitos-hunter.deb, run

apt-get -f install

and

dpkg --configure -a

Maybe you dont have the right dependemcies

kojacker 2011-05-19 12:50

Re: Mosquito's Hunter
 
Quote:

Originally Posted by AgogData (Post 1009936)
Despite what retsaw is saying i just tested Mosquito's Hunter with no mosquito and :
1- When i press again on classic/extreme i can't pause, there is no stand by option by un-pressing cl./ext.

Ah some good feedback!

At the moment it's just a simple toggle between the two, once those mosquitos start singing they won't stop until the app exits :P The pause functionality could be added quite simply though - santiago would you like to practise your coding? :D

On the button click you just need to check if that mosquito is currently selected and, if so, to stop playing the sound file and to change the button background to the dark colour.

You might want to introduce a new variable, similar to the new soundFile variable, that remembers if it's the classic, the extreme, or no mosquito currently selected. In each play sound method you'd check this new variable, eg

Quote:

in playClassicSound method

if selectedMosquito variable is not classic (ie. is either none or extreme){
set soundFile = start.wav
set selectedMosquito to classic
set button backgrounds to red/dark grey
}

else (ie. selectedMosquito variable is currently classic, so classic is currently running){
set selectedMosquito to 'none'
stop sound playing
change button background to dark grey color
}
Something like that will enable your users to pause the sound by re-clicking on the button. Let me know if you try it and it doesn't work, we'll soon fix it :)

Im interested to hear the results of Nicholes experiment. Fortunately we don't have many mosquitos here so i can't test it myself. if only we could have an app to repel cold weather and rain :rolleyes:

santiago 2011-05-19 13:01

Re: Mosquito's Hunter
 
Quote:

Originally Posted by kojacker (Post 1009971)
Ah some good feedback!

At the moment it's just a simple toggle between the two, once those mosquitos start singing they won't stop until the app exits :P The pause functionality could be added quite simply though - santiago would you like to practise your coding? :D

On the button click you just need to check if that mosquito is currently selected and, if so, to stop playing the sound file and to change the button background to the dark colour.

You might want to introduce a new variable, similar to the new soundFile variable, that remembers if it's the classic, the extreme, or no mosquito currently selected. In each play sound method you'd check this new variable, eg


Something like that will enable your users to pause the sound by re-clicking on the button. Let me know if you try it and it doesn't work, we'll soon fix it :)

Im interested to hear the results of Nicholes experiment. Fortunately we don't have many mosquitos here so i can't test it myself. if only we could have an app to repel cold weather and rain :rolleyes:

i 'm checking :D thx
do you think that we ve gotta add this function ? when i close the app sound stops to work, for you it plays in loop?
by the way when i click to close the app, it stops playing the sound i thing Pause/Resume is not needed becouse is not a media player made to make mosquitos dancing,, :D

kojacker 2011-05-19 13:11

Re: Mosquito's Hunter
 
Quote:

Originally Posted by santiago (Post 1009990)
no. it's made to work in loop just becouse sounds are like of 0.30
sec lenght.. It's not a player, it has to execute the sound in loop, a pause button is not needed. When you want to stop it, you can close the app

Ok but you can easily have both looping and a pause ... a user might need take a break from all the mosquito noise but not want to close the app :) If you get more user feedback asking for a pause functionality you might want to think about it again :)

Edit: oh you've changed your post a little.. yep when you exit the app it stops playing all sounds, it would be terrible if the mosquito sound continued to play in a loop long after the app had closed lol! :D I think what was suggested was a way to stop or pause the sound playing during when the app is open. It's something to think about :)

santiago 2011-05-19 13:31

Re: Mosquito's Hunter
 
1 Attachment(s)
Quote:

Originally Posted by kojacker (Post 1010003)
Ok but you can easily have both looping and a pause ... a user might need take a break from all the mosquito noise but not want to close the app :) If you get more user feedback asking for a pause functionality you might want to think about it again :)

Edit: oh you've changed your post a little.. yep when you exit the app it stops playing all sounds, it would be terrible if the mosquito sound continued to play in a loop long after the app had closed lol! :D I think what was suggested was a way to stop or pause the sound playing during when the app is open. It's something to think about :)

ok we will think about that :D do u wanna make a mosquito disco? :D DJ pleasee music :D

This is a mosquito Dancer :D from Italian's Got Talent


All times are GMT. The time now is 08:57.

vBulletin® Version 3.8.8