• Adding new user in ubuntu:
    amit@codef0rmer:~$ sudo adduser username here
  • Adding user in sudoers list:
    amit@codef0rmer:~sudo usermod -G admin username here
  • Reconfigure Mysql if it failed to start:
    amit@codef0rmer:~sudo dpkg-reconfigure mysql-server-version-number
  • Load JS files on the fly as per the need (Jquery Needed):
    $.getScript(“my.js”,  function (){
    use/execute/call anything from my.js
  • Change PMA password using command prompt:
    SET PASSWORD FOR ‘username’@’hostname’ = PASSWORD(‘your new password here’);
  • Enable Mod_Rewrite On Ubuntu:
    amit@nolimit:~$ sudo a2enmod rewrite
    amit@nolimit:~sudo nano /etc/apache2/sites-enabled/000-default
    Change Following,
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    amit@nolimit:~$ sudo /etc/init.d/apache2 restart
  • Reconfigure xserver:
    amit@codef0rmer:~$ sudo dpkg-reconfigure-phigh xserver-xorg
  • Importing a db file in oracle:
    amit@codef0rmer:~$ imp username/password file=filename.dmp log=imp.log full=yes
  • Exporting a table in oracle:
    amit@codef0rmer:~$ exp username/password GRANTS=Y TABLES=(table1,table2,table3…)
  • Solution to low mplayer volume:
    amit@codef0rmer:~$ mplayer -softvol -softvol-max  10-to-10000  media-file
    amit@codef0rmer:~$ mplayer -softvol -softvol-max 10000 Avatar.mp4
  • ‘pecl install pdo’ – make failed:
    Add following 2 lines in /usr/include/php5/Zend/zend.h on 320 line number
    #define refcount refcount__gc
    #define is_ref is_ref__gc

    Add following line in  /usr/include/php5/Zend/zend_API.h on 52 line number
    #define object_pp object_ptr

  • pecl install pdo_mysql – `/tmp/pear/temp/PDO_MYSQL/configure’ failed
    amit@codef0rmer:~$ sudo apt-get install libmysqlclient15-dev
  • E: I wasn’t able to locate a file <Package Name>
    amit@codef0rmer:~$ cd /var/lib/dpkg/
  • Open status file in an editor, search for the package name to be removed. Remove the entire block associated with the pacakge.

    amit@codef0rmer:~$ sudo dpkg –configure -a


One thought on “Notes

  1. Hi Amit,

    I am writing to you for Packt Publishing, the publishers of computer related books.

    We are planning to publish a new book on jQuery UI titled, jQuery UI Theming- Beginner’s Guide. While trying to look out for some potential authors to write this book, I came across your site and saw the jQuery UI theme you have developed. This gives me an impression that you could be a potential author for this book.

    Targetted at web designers who want to create themable user interfaces, this book will teach creating themable applications with jQuery UI

    To give you an idea about the way things work at Packt:

    – The editorial team at Packt works with the author through out the project.
    – We pay a royalty of 15% and an advance against the same.
    – The marketing team at Packt ensures that the book is well promoted.
    – In its ongoing commitment to OpenSource, Packt donates a percentage of revenue generated by the book to the OpenSource project on which it is based. We have donated more than 100 000 dollars since inception in 2004.

    Could you please let me know if you find it interesting to author this book?

    Kshipra Singh
    Author Relationship Manager
    Packt Publishing

    Skype: kshiprasingh15

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s