How to read web article from Kindle

I am a fan of my Kindle Paperwhite. I like its look and how it feels. After buying it, my first priority was to find out a way to read web article on it. I read a lots of articles and blogs. I used the service of Pocket before. And i was fan of its clean look and how easily i can customize everything with it. And also how easily i can get access to my saved article from any where around. Pocket has its own app for everything i need. I was missing this Pocket feature. I tried services like En2Kindle. But it didn”t fulfill my need. A few days ago i found Amazons amazing own service named Send To Kindle. In this blog i would like to explain, how to work with it.\r\n\r\n \r\n

Requirement:

\r\n

      \r\n

    1. Amazon Account

\r\n

    1. Send to Kindle Chrome Extension

\r\n

\r\n \r\n

How to send web article to kindle:

\r\nFirst of all we need an Amazon account. Log in to that account.\r\n\r\nNext, we will install Send To Kindle Chrome Extension. To install the extension follow this link.\r\n\r\nIf you are not Chrome fan and using Mozilla Firefox, you can grab the firefox add-on from here.\r\n\r\n \r\n\r\nOur Basic setup is done. After the installation has been completed you will be redirect to a page and it will contain a form for basic option setup.\r\n\r\nKindle Delivery Settings\r\n\r\nHere”s my settings. I have selected to deliver the article via Wi-fi. I”ve selected my preferred Device. You can turn on archiving of the article. Thus, your saved article will never get lost and will be saved to Document Archive of your Amazon account.  Other than turning it off is fine.\r\n\r\n \r\n\r\nThat is it. Now if i want to save an article from any website. I will just click on the Kindle Extension icon appeared at the extension bar.\r\n\r\nKindle Extension\r\n\r\nAnd then i will click on Send to Kindle. After a while the article will be automatically converted  and will be send to your Kindle. If your device is connected via Wi-Fi, you will get the article on your device downloaded, saved and properly formatted.\r\n\r\n \r\n\r\nHappy Reading 🙂

Development Environment on elementary OS / Ubuntu – Part 2 (PHP installation)

In my previous part i installed Google Chrome and some editors. In this part i will setup PHP on my elementary OS / Ubuntu

PHP:

For PHP i install LAMP. I think its the easiest way to install PHP on any Ubuntu based OS. Open terminal and input these commands.

sudo apt-get install lamp-server^

This command will install PHP, MySQL and apache. During installation, you may have to insert a password for MySQL usage. Choose a password of your choice and remember it. We will need it while we install PHPMyAdmin.Now we need PHPMyAdmin to handle database.

sudo apt-get install phpmyadmin

During this installation you will be prompt to select a server between apache2 and lighttpd. Select apache2. Next you will be prompt to insert MySQL database user password. Insert the password that you inserted before to install MySQL and press insert. In next prompt confirm the password by inserting it again.\r\n\r\nWe installed PHPMyAdmin. But normally what happens is,  we will be failed to navigate to open PHPMyAdmin. So we will add a  line to apache configuration file. For ubuntu lets input these commands on terminal.

sudo gedit /etc/apache2/apache2.conf

And for elementary OS

sudo scratch-text-editor /etc/apache2/apache2.conf

This command will open a file on Gedit or Scratch text editor.  Now at the very bottom of the file lets include these lines.

Include /etc/phpmyadmin/apache.conf

Now restart apache.

sudo service apache2 restart

We are done. Now if we want to browse our localhost, open http://localhost and to open PHPMyAdmin open http://localhost/phpmyadmin

 

 

Screenshot from 2014-10-26 20:52:51Its the default PHPMyAdmin page. Remember, the username is root and password is the password you provided during installation.\r\n\r\nNow we will install some CURL for PHP.

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

 

File Permission Problem.

One of the most common problem you face is dealing with file permission.  So, what i do is change the root directory of PHP.  I have chosen ~/Public/Home for my default PHP directory. So, i will change apache settings to inform the server about my change. For Ubuntu,

sudo gedit /etc/apache2/apache2.conf

And for elementary OS\r\n

sudo scratch-text-editor /etc/apache2/apache2.conf

This command will open apache2.conf file inside your text editor. Search for  <Directory /var/www> in the file. Replace /var/www with your desired PHP home folder. My settings is shown below.Screenshot from 2014-10-26 21:25:08Save the document. And restart apache again.

sudo service apache2 restart

Thats all with PHP installation and configuration on elementary OS or Ubuntu.

Development Environment on Ubuntu: Part 1

This post is collection of some posts, which will focus on some necessary customization which i do after any fresh installation of Ubuntu 12.04. Somebody may ask, why you are still using 12.04, its too old. Yes i know. But i am waiting for 14.04 LTS. For any development related machine always try to use a LTS release of Ubuntu.

As a beginner level PHP and Javascript enthusiast i need to all the necessary applications to run them on my machine.

First of all i need gdebi on my pc. So lets get it. Open the terminal with ctrl+alt+t and type:

sudo apt-get install gdebi

Nice. Gdebi installation is complete. Now i need the necessary applications to open any kind of zip archive on my computer. In the terminal type:

sudo apt-get install p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller

Now, i need to get the latest build of Google Chrome. I am huge fan of chrome, specially of its Developer tools. First i need to get the signing key from Google and add it into our source file.

wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add –
sudo sh -c ‘echo “deb http://dl.google.com/linux/chrome/deb/ stable main” >> /etc/apt/sources.list.d/google-chrome.list’

Now update and install google chrome.

sudo apt-get update
sudo apt-get install google-chrome-stable

Lets go to the fun part now. We will install Geany. Wait a minute…… Why Geany? If you are a fan of some heavy weight IDE or something, you may leave the process. But i like a lightweight IDE like geany and the most beautiful Text-editor ever made Sublime Text. In the software center you will get Geany 0.31 or something. But the latest build of Geany is 1.23. We will install that one with some powerful Plugins and some beautiful Color schemes to feel a bit stronger :P.

sudo add-apt-repository ppa:geany-dev/ppa
sudo apt-get update
sudo apt-get install geany geany-plugins

A set of community maintained color schemes has been updated for Geany 1.23. To install them, download the source zip archive from here and extract it.

Copy all the files in color schemes folder to ~/.config/geany/colorschemes/. Create the folder if it doesn’t exist.

You can check out the screenshots of these color schemes form here.

And last to do of this post is to enabling Hibernate. To do so on terminal:

gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Replace gedit with your favorite editor’s command. This command will open a blank file. Copy and paste these lines:

[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

Thats all for today. Meet you very soon with my rest of the tweaks to make the PC Development compatible. See you soon :).

Mac OSX like Genie effect on Ubuntu 12.04

You know Mac OSX? I think of course you do. Most good-looking OS in the world. One of the thing i like of is, it’s Genie effect on folder folding/minimizing/maximizing. Today we gonna apply this effect on our Ubuntu!!! Yah!!! Its very simple. You should have Compiz installed on your pc. This trick is available from 2010. So it might work on versions from 10.04 to current stable versions.

Lets see first what this trick gonna make our pc look like. So watch this short video first.

What we need to make this effect? Hmmm. We need Compiz config manager to do so. Lets get it first from here .

After installing  it completely open it. We will get a window like this

CompizConfig Settings Manager_001

Hope so, you got it. Now look for the animation option on the panel. On the latest compiz you will get it here.

CompizConfig Settings Manager_002

Open the function by clicking over it.  You will get a menu like this:

CompizConfig Settings Manager_003

By default Animation is not enable automatically. You need to enable it by clicking over it. Like i did on my screenshot. So Enable animation.

Now the main part. Click on Open animation/ Close animation/ Minimize animation. Because you are going to apply the same effect on all of  these. Click on new. A new window will appear.

Edit_004

On the Open effect box select the Magic Lamp option. Make the duration 300 and on Window Match option copy-paste this code:
(type=Normal | Dialog | ModalDialog | Unknown)

Edit_005

Keep the option menu blank. Do same thing in your Open animation/ Close animation/ Minimize animation tab.

Now click on Effect Settings tab. See my red marked area carefully and modify the values like it.

CompizConfig Settings Manager_006

Now back to the menu. Close the compiz manager. You should see the effect right after applying it. If not working, restart your pc and you will see the effect just like the video.

Enough today. Enjoy your pc with Ubuntu till you buy your own MacBook. See ya.