I had a primary NTFS partition with windows 7 installed on it. Somehow, its bootloader went corrupt so I used install-mbr in ubuntu to fix that but it only made the problem worse. Now my system didn’t recognise the partition as NTFS partition and I couldn’t access the partition. I modified the partition ID using… Continue reading [SOLVED] ‘Unknown’ filesystem in gparted
Recently apt-get update started throwing notices which read: Ignoring file ‘opera.list.distUpgrade’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension Ignoring file ‘opera.list.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension It occured because sources.list.d directory isn’t supposed to contain files with .distupgrade and .save extensions, but since I upgraded my distribution from 10.04,… Continue reading [SOLVED] “Ignoring file ‘.distUpgrade’ / ‘.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension” on Ubuntu 10.10
Ubuntu 11.04, which is to be released in April 2011, has been named Natty Narwhal as mentioned on Mark Shuttleworth’s blog. Check out the entire blog post here. Seems reasonable, as weird sounding as all previous names. Ubuntu, you never disappoint me!
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
There are lots of commands to find out your ditribution name and distribution version. Some work on some distros, some work on others. Here are some of the methods: lsb_release -a cat /etc/*release cat /etc/issue cat /proc/version uname -a One of these methods will surely tell you your linux distribution name and current version. Cheers!
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
We all know about functions and how we can pass arguments to it. But did you know that we can pass variable number of arguments in a function? Consider a function sum() which adds numbers passed into its arguments. Now we want it to add all the numbers passed onto the arguments. Eg; if we… Continue reading Passing variable number of arguments to a function in PHP
I came across this error while doing sudo apt-get update W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 5A9BF3BB4E5E19B8 W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9ABD05E22847688C This made me… Continue reading [Solved] ‘Public key is not available’ error on apt-get update in Ubuntu
I had been wondering this for few days. I wanted a solution which could comvert first letter of text in some fields to uppercase and the rest to lower. I got time today and experimented a bit and found a very simple solution. CREATE TABLE `temp_users` ( `fname` VARCHAR( 50 ) NOT NULL `email` VARCHAR(… Continue reading [HOW-TO] Converting case in MySQL
Well, you might have seen a huge number of variable checks ranging from is_file(), is_array() to is_numeric() and is_int(). While developing a script today I wanted to check for alphabets. I directly used is_alpha() but to my surprise it wasn’t defined. I researched more into the matter and found ctype_alpha() does precisely the same thing.… Continue reading Missing alphabet check (is_alpha) in PHP