Convert a file to utf-8 charset

Convert a iso-8859-1 charset file into a utf-8 charset file using standard Linux tools. The solution is using bash shell on a Linux OS: iconv –from-code=ISO-8859-1 –to-code=UTF-8 iso.txt > utf.txt

Another perfect install of ffmpeg for php on Hardy

lform_javascript_

If you are getting troubles installing ffmpeg with sound support on your ubuntu machine then follow this guide. I am pretty sure this one is quite easy to follow. 😉 1. First of all install php5-ffmpeg via apt-get. sudo apt-get install php5-ffmpeg 2. Now add mediaubuntu repositories: sudo wget https://www.medibuntu.org/sources.list.d/hardy.list –output-document=/etc/apt/sources.list.d/medibuntu.list Then add GPG key: … Read more

Disable enter key in a form

ubuntudog-javascript-cookies-1030x579

There are two simple ways to disable enter key in your forms. 1. The first one is a piece of javascript that you include in your head section. <script language=”JavaScript”>function disableEnterKey(e){var key;if(window.event)key = window.event.keyCode; //IEelsekey = e.which; //firefoxif(key == 13)return false;elsereturn true;} 2. Than in the form issue onKeyPress like this: <input type=”text” onkeypress=”return disableEnterKey(event)”> … Read more

Perfect install of ffmpeg on Ubuntu 8.04 Hardy

Finally I’ve managed to “find out” how to install ffmpeg converting tool with needed codecs that supports video conversation with sound. Now days you can install ffmpeg as a php module directly from aptitute (synaptic or apt-get) so no compiling is needed.  At command line just run: sudo apt-get install php5-ffmpeg Edit sources-list: sudo nano … Read more

Install Ubuntu or Windows XP on Dell dimension 9200

I have had headache removing Windows Vista to replace it with Ubuntu. Every time I’ve tried to boot from some other media it didn’t work. Booting from Windows XP caused a blue screen. Finally I’ve found a solution to install Ubuntu on my system. 1. Boot the computer and press F12 when bios appears2. Go … Read more

Deleting mail in postfix queue (mailq)

Postfix stores mails in a queue before sending it. Sometimes you wish to remove the mails from the queue but wonder how. Postfix has a command line called postsuper which can be used to delete unsent mails from the queue. Before removing the mail from the queue it is good idea to list all mails … Read more

Installing php-ffmpeg on ubuntu from source

This tutorial will teach you how to successfully install php-ffmpeg on ubuntu 7.10 but approach is the same no matter which Ubuntu version you might use.  You do not need to follow steps below if you run latest Ubuntu release. You can install php-ffmpeg as a module via aptitude or synaptic. Before you start with … Read more

Samba mounting

Mounting samba share as non root user and mounting samba share and startup.Source: ubuntu.com Mounting a share on the local filesystem allows you to work around programs that do not yet use GnomeVFS to browse remote shares transparently. To mount a Samba share, first install smbfs: sudo apt-get updatesudo apt-get install smbfs To allow non … Read more