Archive for the 'Webdev' Category

VOB to FLV

Jan 18, 2010 in Linux, Webdev

A useful line of code to convert VOB files to FLV in Linux

mencoder inputfile.VOB -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=150 -ofps 25 -oac mp3lame -lameopts abr:br=32 -srate 22050 -vf scale=720 -o outputfile.flv

The “flv” format files can only support 8000, 22050 and 44100 I believe for the available -srate.

Found via http://wiki.soslug.org/wiki/vob_to_flv

Javascript: change url

Dec 07, 2009 in html

<html>
<head>
<script type="text/javascript">
function myURL(){
var productElement = document.getElementById("myurl");
if (productElement != null)
{
document.getElementById('myurl').getElementsByTagName('a')[0].innerHTML="Visit Google";
document.getElementById('myurl').getElementsByTagName('a')[0].href="http://www.google.com"
}
}
window.onload = myURL;
</script>
</head>
<body>
<div class="content">
<div id="myurl">
<p>My url text.</p>
</div>
</div>
</body>
</html>

Test page

Fedora 11 – things to remember

Aug 06, 2009 in Linux

General

Press space on boot to enter grub menu
Select different run-times by Ctrl-Alt-1, Ctrl-Alt-2, Ctrl-Alt-3, etc..

Turn off PC speaker (beep)

su
rmmod pcspkr
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist

Compiz Fusion On A Fedora 11

Installation guide

Install Skype

su -c 'gedit /etc/yum.repos.d/skype.repo'
copy the following lines:
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
enabled=1
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
gpgcheck=0

Then run these commands in terminal
su -c 'yum install skype'
su -c 'yum update skype'

Virtualbox 3

Installation guide

to be continued

Apr 17, 2009 in Webdev

Handy for checked items in form elements

window.onload = function(){
document.getElementById("this2").checked="true";
}

Linksheep

Apr 03, 2009 in Bookmarks, General, Webdev

Finally a homepage that is useful.. a handy set of growing links..
http://www.linksheep.com