[Solved] Subtitles not being displayed in VLC in Ubuntu

I had this problem where subtitles were not being shown in VLC. No matter what I did, it just wouldn’t display. I reinstalled VLC but still it had problems. So I removed all the vlc config files to reset the settings and fix the problem. rm -rf ~/.config/vlc That fixed it. Cheers!

[HOWTO] Delete all unstarred emails from Inbox or Label in GMail

Its easy to delete all mails from a label/folder or inbox, but sometimes we’d like to save our starred mails and delete all the rest. The search box in gmail comes in handy in such situations. Its really a very powerful tool with various operators to make the search more efficient. The gmail search really… Continue reading [HOWTO] Delete all unstarred emails from Inbox or Label in GMail

[HowTo] Add expires headers to cache static files using htaccess

Caching is one of the most important things to keep in mind when you are developing a website which is expected to get large amount of visitors. Most web developers neglect caching, some even don’t know correct ways to implement it. In this tutorial, I’ll show you how to enable browser cache of static files… Continue reading [HowTo] Add expires headers to cache static files using htaccess

Published
Categorized as how-to

[HowTo] Check your php and server information using phpinfo()

We can check the php configuration, apache’s loaded modules and all other kinds of PHP configuration using a simple function called phpinfo(). Create a file called infophp.php in your web’s root directory and put the following code in it: <? phpinfo(); ?> This would output all the php configuration info and apache information. You can… Continue reading [HowTo] Check your php and server information using phpinfo()

Published
Categorized as how-to, php

[HOWTO] Send emails(using mail function) from localhost in PHP through msmtp (using gmail account) on Linux

There’ve been lots of times when I wanted to use the mail() function on my local server. I am sure lots of you would’ve been wanting it too but most of you would’ve settled for PHPMailer or just used a web host to test the code instead. I myself had been doing the same until recently when I finally decided to… Continue reading [HOWTO] Send emails(using mail function) from localhost in PHP through msmtp (using gmail account) on Linux

[HowTo] Configure msmtp to work with gmail on linux

Msmtp is a small but powerful and highly customizable smtp client. You can access gmail smtp using msmtp, which is exactly what I’ll teach in this tutorial. Step by step instructions: Install msmtp and ca-certificates for use with SSL: sudo apt-get install msmtp ca-certificates We’ll create and edit the configuration file using Gedit: sudo gedit… Continue reading [HowTo] Configure msmtp to work with gmail on linux

[SOLVED] Error ‘dpkg: error processing (–unpack) trying to overwrite…

Recently I got this error after installing VLC on Ubuntu 10.10 Maverick Meerkat. Not really remembering what caused the error to be triggered in the first place, it became very difficult to find a solution for it. When I executed sudo apt-get upgrade to upgrade my packages, it told me there was some issues and I needed… Continue reading [SOLVED] Error ‘dpkg: error processing (–unpack) trying to overwrite…

[HOW-TO] Back up all MySQL databases

To backup all or some of your MySQL databases, you’ll need mysqldump which comes bundled with mysql. If you have MySQL installed, you probably have mysqldump installed already. To backup all databases use the following command: In linux: mysqldump -uroot -ppassword –all-databases | gzip > /media/disk-2/db.sql.gz In Windows: mysqldump -uroot -ppassword –all-databases > db.sql This… Continue reading [HOW-TO] Back up all MySQL databases