Tuesday, August 26, 2014

Fix: Duplicate Google Chrome icon in Elementary OS Plank

The duplicate icons of Google Chrome on Elementary OS's Plank is a common issue. I was hoping for new Google Chrome updates but there is no fix yet.

To fix the double Google Chrome icons on the dock:
  1. Open Terminal and enter:
  2. sudo nano /usr/share/applications/google-chrome.desktop
  3. Under each 3 sections,
  4. [Desktop Entry]
    [NewWindow Shortcut Group]
    [NewIncognito Shortcut Group]

    Insert the following code:

  5. Press Ctrl + o and Enter to save the file.
  6. Press Crtl + x to exit.
  7. Now close Google Chrome and drag out the Chrome icon from dock to remove.
  8. Open Google Chrome and lock the icon again.

Monday, August 25, 2014

Do It Yourself: iPhone Speaker Dock

The folks at OSXDaily being creative to make a iPhone speaker dock.

Inspired by Twitter user @nnnnnnnn's DIY speaker dock.

The DIY speakers remind me of the iBamboo speaker, a really nice concept which uses no electricity to boost the volume of sound from iPhone.


Wasting no time, I also make my own iPhone speaker, with a piece of used A4 size paper. Call it iPaper maybe.

DIY - iPaper

The looks and sounds may not be impressive. The volume of sound is louder and the result could be better if uses harder material like plastic. Do not expect the DIY speaker dock is a iPhone speaker solution, instead a fun DIY project.

Saturday, May 31, 2014

Fix: Laptop Screen Backlight Brightness Reset on Every Startup/Restart

The resetting of laptop screen backlight brightness on every startup/restart has been a common problem on my Asus N53SV and HP mini 210, both are gear up with elementary OS. Same thing happen as well after laptop come out of sleep mode which is annoying I have to adjust the screen brightness again. To get the screen brightness right, here is a solution:

  1. Open Terminal.
  2. Type sudo nano /etc/default/grub
  3. Find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". Replace the whole line with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" as screenshot below.
  4. Press ctrl + o to WriteOut/Save and press ctrl + x to Exit.
  5. Reboot your laptop.

Saturday, May 24, 2014

[Linux] Online Quotes Setup on GnuCash Finance Management

Gnucash provides accounting functions suitable for use by small businesses and individuals. It can track finances in multiple accounts, keeping running and reconciled balances. There is support for customer, vendor and employee processing. It has an X based graphical user interface, double entry, a hierarchy of accounts, expense accounts (categories), and can import Quicken QIF files and OFX files.

Not to mention Gnucash has a helpful ability to fetch latest stock prices with just a single click. But you need to install Perl module Finance::Quote to capture quotes online from various sources. By default, Perl should have been installed on Linux.

Since Yahoo has changed their URL in February 2014, the version 1.20 of F::Q is required. However, you need to install or update manually at the moment.

  1. Download https://raw.github.com/Gnucash/gnucash/trunk/src/quotes/gnc-fq-update.in
  2. Rename gnc-fq-update.in to gnc-fq-update
  3. Open the file, replace the first line #!@-PERL-@ -w with #!/usr/bin/perl -w
  4. To make the file executable, open Terminal and enter chmod +x gnc-fq-update
  5. Type sudo ./gnc-fq-update to start installation.
  6. Open GnuCash > Tools > Security Editor
  7. Add the stock information based on Yahoo Finance, as illustrated by images below:

  8. Goto Tools > Price Editor, select your stock and click Get Quotes to fetch quotes online.

Sunday, May 11, 2014

How to Setup Online Stock Price Retrieval on GnuCash

GnuCash is personal and small-business financial-accounting software, freely licensed under the GNU GPL and available for GNU/Linux, BSD, Solaris, Mac OS X and Microsoft Windows.

Designed to be easy to use, yet powerful and flexible, GnuCash allows you to track bank accounts, stocks, income and expenses. As quick and intuitive to use as a checkbook register, it is based on professional accounting principles to ensure balanced books and accurate reports.

GnuCash is my favourite finance software to record and track down my daily expenses and monthly income, in furthering to analyze money usage with financial reports - income statement, balance sheet, and etc.

With the capability to retrieve security quotes online, GnuCash helps me easily to track my investment portfolio. Below is how to setup online stock price retrieval for GnuCash:

  1. Click Start > All Programs > GnuCash > Install Online Price Retrieval. The script will install perl module Finance-Quote which is necessary for online retrieval of prices. Please allow access to networks if Windows Firewall has blocked Perl interpreter.
  2. Wait till you see the screen below. Press any key to continue/exit.
  3. Open GnuCash > Tools > Security Editor.
  4. Click Add to stock information.
  5. Go to http://finance.yahoo.com/ to look for the security you want to maintain in GnuCash. For example, I want to add Malayan Banking Berhad of KLSE. Simply key 1155.KL into Symbol/abbreviation. Checked Get Online Quotes and use Yahoo USA as source. As shown as the pictures below:
  6. Click Tools > Price Editor > Add and select the stock.
  7. Click Get Quotes and GnuCash will retrieve stock prices accordingly from Yahoo Finance.