a fulltext mind queryhttp://www.mogo.beall things, from development to lifestyle.en-usCopyright 2001-2010 Mogo Inc.Thu, 29 Jul 2010 12:41:38 +0000RSSGenerator by mogohttp://blogs.law.harvard.edu/tech/rss60graspop olé ola oléhttp://www.mogo.be/application/blog/article/detail/null/398<mogo:video streamName="clips/hammerite.flv" width="560" height="420" thumbnailSeconds="29"/> <br/> <br/><img src="http://static.mogo.be/various/img/graspop.jpg" border="0"/>Sat, 19 Jun 2010 18:16:51 +0000<a href="http://en.wikipedia.org/wiki/Pacific_Ring_of_Fire" style="color:green">ring of fire</a>http://www.mogo.be/application/blog/article/detail/null/397my thought is Johnny Cash is singing about a <a href="http://en.wikipedia.org/wiki/Urinary_tract_infection">urinary tract infection</a> <br/> <br/>what title would he have chosen for a kidney infection :)Tue, 30 Mar 2010 21:40:56 +0000convert to pcm with ffpmeghttp://www.mogo.be/application/blog/article/detail/null/396ffmpeg can be used to extract a raw audio stream from a flash video format file : <br/> <br/><pre> <br/>ffmpeg -i d656f7cd-ec2d-4240-9a4c-3e8fe84f3a6e-1269873724940_1269876177764.flv -acodec pcm_u8 test.wav</pre>Tue, 30 Mar 2010 10:39:51 +0000iptables unblock iphttp://www.mogo.be/application/blog/article/detail/null/395Get a list: <br/><pre>iptables -L -n</pre> <br/> <br/>Unblock: <br/><pre>sudo iptables -D fail2ban-ssh -s 81.241.230.232 -d 0/0 -j DROP</pre>Mon, 22 Mar 2010 10:47:24 +0000hihi can't get enough of this onehttp://www.mogo.be/application/blog/article/detail/null/394<mogo:video streamName="clips/grandma.flv" width="560" height="330" thumbnailSeconds="29"/>Sun, 14 Mar 2010 21:57:28 +0000tron test mp4 streaming red5http://www.mogo.be/application/blog/article/detail/null/393<mogo:video streamName="movies/tron_2010_hd.mp4" width="560" height="233" thumbnailSeconds="29"/> <br/>watch full screen. <br/>jeff bridges has flat feet like me :)Wed, 10 Mar 2010 23:09:51 +0000java port 80 and root privilegehttp://www.mogo.be/application/blog/article/detail/null/392For security reasons it is not possible to run a java program on linux on ports lower then 1024. <br/> <br/>It will throw an exception like : <br/><b>java.net.BindException: Permission denied:80</b> <br/> <br/>For this you can either choose to run the progam as root or route the requests via iptables : <br/> <br/><pre>iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080</pre>Mon, 8 Mar 2010 11:13:06 +0000sun accounts takenhttp://www.mogo.be/application/blog/article/detail/null/391no descriptionSat, 6 Mar 2010 13:11:40 +0000freebsd firewallhttp://www.mogo.be/application/blog/article/detail/null/389setting up a firewall that blocks all ports and only allow ports needed. do not lock yourself (ssh) out! <br/> <br/>modify /etc/rc.d to contain following lines: <br/>pf_enable="YES" <br/>pf_rules="/etc/pf.conf" <br/> <br/>create file <a href="http://static.mogo.be/files/pf.conf">/etc/pf.conf</a> and modify following lines (use ifconfig to detect settings) : <br/> <br/>ext_if="re0" # replace with actual external interface name i.e., dc0 <br/>int_if="lo0" # replace with actual internal interface name i.e., dc1 <br/>internal_net="127.0.0.1" <br/>external_addr="138.125.203.14O" <br/> <br/>tcp_public_services="{ 21, 22, 25, 53, 80 }" <br/>udp_public_services="{ 21, 22, 25, 53, 80 }" <br/>tcp_priv_services="{ 20, 21, 110, 8009 }" <br/>udp_priv_services="{ 20, 21, 110, 8009 }" <br/> <br/>kldload pf <br/> <br/>test the rules <br/>pfctl -n -f /etc/pf.conf <br/> <br/>apply the rules <br/>pfctl -f /etc/pf.conf <br/> <br/>start: /etc/rc.d/pf startSat, 27 Feb 2010 15:14:25 +0000always thought I was not normal, until this....http://www.mogo.be/application/blog/article/detail/null/388no descriptionTue, 23 Feb 2010 22:19:03 +0000