a fulltext mind query

login


new users




tron test mp4 streaming red5
10/03/2010 23:09

watch full screen.
jeff bridges has flat feet like me :)
java port 80 and root privilege
08/03/2010 11:13
For security reasons it is not possible to run a java program on linux on ports lower then 1024.

It will throw an exception like :
java.net.BindException: Permission denied:80

For this you can either choose to run the progam as root or route the requests via iptables :

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sun accounts taken
06/03/2010 13:11
freebsd firewall
27/02/2010 15:14
setting up a firewall that blocks all ports and only allow ports needed. do not lock yourself (ssh) out!

modify /etc/rc.d to contain following lines:
pf_enable="YES"
pf_rules="/etc/pf.conf"

create file /etc/pf.conf and modify following lines (use ifconfig to detect settings) :

ext_if="re0" # replace with actual external interface name i.e., dc0
int_if="lo0" # replace with actual internal interface name i.e., dc1
internal_net="127.0.0.1"
external_addr="138.125.203.14O"

tcp_public_services="{ 21, 22, 25, 53, 80 }"
udp_public_services="{ 21, 22, 25, 53, 80 }"
tcp_priv_services="{ 20, 21, 110, 8009 }"
udp_priv_services="{ 20, 21, 110, 8009 }"

kldload pf

test the rules
pfctl -n -f /etc/pf.conf

apply the rules
pfctl -f /etc/pf.conf

start: /etc/rc.d/pf start
always thought I was not normal, until this....
23/02/2010 22:19
java regexp NOT match AND
10/02/2010 20:44
To create a regular expression that does not match a URL ( or more ) but matches another, or more, the following can be used. First two negate the match with ?! .


(?!/ui/login.do)(?!/ui/registration/.*)(/ui/.*)


pfeeuw.
cell phone radiation
07/02/2010 13:02
recording your desktop with xvidcap
23/01/2010 14:51
To record your desktop on linux, you can use xvidcap.
At first there were some problems with the audio but these dissapeared after installing a new version.

It's a nice screen capturer with possibility of saving in flv, avi and more with support of all the video codecs libavformat can handle.
cutting and splitting video with mencoder
23/01/2010 12:26
basically to cut and split video on linux you need to install mplayer and mencoder.

mencoder input.flv -ovc copy -oac copy -of lavf -o result.flv -ss 00:00:01.01 -endpos 00:04:04

-ovc refers the video codec ( copy, libx264, mpeg4 )
-oac refers the audio codec.
-ss starting time
-endpos ending time

mencoder can practically handle all formats like avi, mp4, flv.

check the man for more info.
mencoder can easy be installed by standard distributions.
sudo apt-get install mencoder


also ffmpeg can be used for cutting and splitting.
un dead
17/01/2010 22:39




feed rss
  • contact