[HowTo] Stop phpmyadmin from asking username, password in localhost

Yesterday, I showed you how you can keep local installation of phpmyadmin from logging you out every few minutes. I took one more step and edited configuration to not ask me username, password at all. Now phpmyadmin never asks me for mysql username and password.

Keep in mind if you follow this tutorial anyone would be able to access your database using phpmyadmin unless you deny access via apache configuration. Don’t do this on production servers.

Steps to follow:

  • Run: gksudo gedit /etc/phpmyadmin/config.inc.php
  • Find:
    $cfg['Servers'][$i]['auth_type'] = 'cookie';

    And change it to:

    $cfg['Servers'][$i]['auth_type'] = 'config';
  • Just below this line, add:
    $cfg['Servers'][$i]['user'] = '';
    $cfg['Servers'][$i]['password'] = '';

    Replace and with mysql username and password.

  • Save the file.
  • Changes will be applied immediately, no need to restart apache.

Now, you’ll never have to enter username and password in phpmyadmin.

Cheers!

[HowTo] Save all flash video files being played in Chrome/Chromium to Home directory

After watching a video on youtube in chrome, I felt like saving it. I couldn’t find the flv in ~/.cache or in /tmp. So I dug around and found this link: http://superuser.com/questions/235535/in-google-chrome-on-linux-where-is-the-flv-if-not-in-tmp.

The solution by omab worked for me. So I wrote this one line command which would save all the currently playing files in Chrome and Chromium in home directory.

A=`ps auwx | grep "flash" | grep "chrom" | awk '{print $2}'`; ls -la /proc/$A/fd | grep Flash | awk '{print $8}' | xargs -I _ mplayer /proc/$A/fd/_  -dumpstream -dumpfile ~/_.flv

Leave your thoughts in the comments!

Cheers!

[HowTo] Install Firefox 4 on Ubuntu using PPA

Firefox 4 which was released yesterday has been downloaded over 6 million times in just 24 hours. It features faster application startup, faster javascript engine, full HTML5 and CSS3 compliance etc.

 

==============================================================
What’s New in Firefox 4:

Fastest Firefox Ever

  • Performance: Firefox is up to six times faster than the previous release. With improved start-up and page load times, speedy Web app performance and hardware accelerated graphics, Firefox is optimized for rich, interactive websites.

Streamlined Interface

  • App Tabs: give a permanent home to frequently visited sites like Web mail, Twitter, Pandora, Flickr.
  • Switch to Tab: easily find and switch to any open tab from your Awesome Bar without opening duplicate tabs.
  • Panorama: drag and drop tabs into manageable groups to save time while navigating many open tabs.

Private and Secure Synchronization

  • Firefox Sync: access your Awesome Bar history, bookmarks, open tabs, passwords and form data across multiple computers and mobile devices.

Most Customizable

Private and Secure

  • Do Not Track: Firefox is leading the Web towards a universal standard Do Not Track feature that allows users to opt-out of tracking used for behavioral advertising.
  • Firefox puts privacy first, fixing flaws in some Web standards to prevent others from accessing your browser history.
  • HTTP Strict Transport Security (HSTS): automatically establishes secure connections to stop “man in the middle” attacks and keep sensitive data safe from interception during the log-in process.
  • Content Security Policy (CSP): prevent cross-scripting attacks by allowing sites to explicitly tell the browser which content is legitimate.

Cutting Edge Tools for Web Developers:

  • The JavaScript engine incorporates the new JägerMonkey JIT compiler, along with enhancements to the existing TraceMonkey JIT and SpiderMonkey’s interpreter for faster page-load speed and better performance of Web apps and games.
  • HTML5 support in Firefox includes hardware accelerated, high-definition video (WebM), 3D graphics, offline data storage, professional typography, touchscreen interfaces and the Mozilla Audio API to help create visual experiences for sound and more.
  • Firefox 4 also improves existing tools like CSS, Canvas and SVG to enable developers to make exciting Web pages.
  • Firefox provides uninterrupted browsing when there is a crash in the Adobe Flash, Apple QuickTime or Microsoft Silverlight plugins. If one of these plugins crashes or freezes, it won’t affect the rest of Firefox. Simply reload the page to restart the plugin.

 

Read the full blog entry from mozilla.

Install it on Ubuntu using PPA:

sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox

Cheers!

[HowTo] Remove admin bar from wordpress 3.1

The new admin bar in wordpress 3.1 is one good feature to have but sometimes its unwanted. For example you might already have some other kind of top bar with which admin bar may interfere. You can remove the admin bar by putting the following code in /wp-content/YOURTHEME/functions.php:

if(function_exists('show_admin_bar')){
	show_admin_bar(false);
}