Monthly Archives: May 2015

CodeIgniter Quick Reference

Some of useful functions but not all the time use. Will be a quick reference everytime want to use them.

URI segment
$this->uri->segment(3); //will produce: metro


$query = $this->db->query("YOUR QUERY");

if ($query->num_rows() > 0)
        foreach ($query->result() as $row)
                echo $row->title;
                echo $row->name;
                echo $row->body;
$this->db->select('title, content, date');
$this->db->join('comments', ' =');
$this->db->where('name !=', $name);
$this->db->where('title', $title);
$query = $this->db->get('mytable');


Use iMac as display for MacBook Air

There are 2 options to connect MacBook Air to your iMac.

Firstly by using mini displayPort cable and connect the 2 mac’s. Just display and audio will be transferred via the cable.

Secondly, use share screen option (this will be bit slow since all communication of data will be done via LAN)

To do this:

1. On MacBook Air

  • Go to System Preferences > Sharing
  • Tick “Screen Sharing”
  • Allow access for “only these users”. Choose a few.
  • Set the “Computer Name”

2. On iMac

  • Open spotlight. Type “Screen Sharing”
  • Type the computer name you want to connect to
  • Or go to Finder and double click on the computer under “Shared” category (sidebar)

Some other bootstrap-related tools to study

Visual Editor

  • – online visual bootstrap editor
  • pingendo – free, native (download and install)
  • – paid (starts at usd49), native + online demo
  • layoutit – free, online editor
  • – paid

Snippets, tools, themes etc.

  • – snippets, form builder
  • – theme and templates


  • bootstrap magic – change theme, color and other default look for bootstrap based on your preference
  • – build mobile app easily. nice and easy interface
  • x-editable – library to easily update data in-line without whole form submission
  • – theme, template, plugins etc. many sites on one.
  • list of more plugins and tools

My personal notes on Rework book


Rework is one of the best books I’ve ever read. It is short, simple, easy to read and most importantly very straight to the point and full of easy-to-follow advice.

Below are some key points that I would always want to remind myself about the lessons from the book.


  1. On Go
    1. Make a dent in the universe
    2. Start making something
    3. Start a business, not a start-up
  2. On productivity
    1. Interruption is the enemy of productivity
    2. Quick wins
  3. On progress
    1. Embrace constraints
    2. Start at the epicenter
    3. Be a curator
    4. Launch now
  4. On promotion
    1. Build an audience
    2. Out-teach your competition
    3. Drug dealers get it right
    4. Marketing is not a department

There are few other sections like Takedown, hiring, damage control, culture etc.

visit official page

Full list of chapters:


  • The new reality


  • Ignore the real world
  • Learning from mistakes is overrated
  • Planning is guessing
  • Why grow?
  • Workaholism
  • Enough with “entrepreneurs”


  • Make a dent in the universe
  • Scratch your own itch
  • Start making something
  • No time is no excuse
  • Draw a line in the sand
  • Mission statement impossible
  • Outside money is Plan Z
  • You need less than you think
  • Start a business, not a start-up
  • Building to flip is building to flop
  • Less mass


  • Embrace constraints
  • Build half, not half-ass
  • Start at the epicenter
  • Ignore the details early on
  • Making the call is making progress
  • Be a curator
  • Throw less at the problem
  • Focus on what won’t change
  • Tone is in your fingers
  • Sell your by-products
  • Launch now


  • Illusions of agreement
  • Reasons to quit
  • Interruption is the enemy of productivity
  • Meetings are toxic
  • Good enough is fine
  • Quick wins
  • Don’t be a hero
  • Go to sleep
  • Your estimates suck
  • Long lists don’t get done
  • Make tiny decisions


  • Don’t copy
  • Decommoditize your product
  • Pick a fight
  • Underdo your competition
  • Who cares what they’re doing?


  • Say no by default
  • Let your customers outgrow you
  • Don’t confuse enthusiasm with priority
  • Be at-home good
  • Don’t write it down


  • Welcome obscurity
  • Build an audience
  • Out-teach your competition
  • Emulate chefs
  • Go behind the scenes
  • Nobody likes plastic flowers
  • Press releases are spam
  • Forget about the Wall Street Journal
  • Drug dealers get it right
  • Marketing is not a department
  • The myth of the overnight sensation


  • Do it yourself first
  • Hire when it hurts
  • Pass on great people
  • Strangers at a cocktail party
  • Resumes are ridiculous
  • Years of irrelevance
  • Forget about formal education
  • Everybody works
  • Hire managers of one
  • Hire great writers
  • The best are everywhere
  • Test-drive employees


  • Own your bad news
  • Speed changes everything
  • How to say you’re sorry
  • Put everyone on the front lines
  • Take a deep breath


  • You don’t create a culture
  • Decisions are temporary
  • Skip the rock stars
  • They’re not thirteen
  • Send people home at 5:00
  • Don’t scar on the first cut
  • Sound like you
  • Four-letter words
  • ASAP is poison


  • Inspiration is perishable


  • About 37signals
  • 37signals products

Display all post title in blogspot

Use this code to display all post titles in your You can place this code using widget in sidebar.

Replace YOUR___BLOG with your own blog url.

<script language="JavaScript" src="" charset="UTF-8" type="text/javascript"></script>

<a href="">View RSS feed</a>

Forwarding email from Zoho to Gmail

Google stopped offering free Google App for business. One workaround is to have zoho mail and set the forwarding to a gmail account. Zoho gives 10 free email accounts using your own domain at least up until this article is written.

To do this. You can register with zoho and do the following settings once logged in to the email account

  1. Click on “Settings”
  2. Click on “Email forwarding and POP/IMAP”
  3. Click on “Add email address”
  4. Enter the email address and click on the verification link sent to the email.
  5. That’s it


Get alerts when someone update Google Sheets

When you have multiple users editing the same Google Sheets, you might want to have an alert or notification when someone in the team make any changes.

You can set the notification as below.

1. Choose Tools > Notification rules…

Screen Shot 2015-05-14 at 4.12.28 PM



2. Select the options and click on Save button.

Screen Shot 2015-05-14 at 4.12.40 PM


That’s it. Once it is done you will receive emails when something is changed on your shared Google Sheets.

Lean Startup Notes

Some points from Lean Startup book


1. Eliminate uncertainty

Using the Lean Startup approach, companies can create order not chaos by providing tools to test a vision continuously.

2. Work smarter not harder

The question is not “Can this product be built?” Instead, the questions are “Should this product be built?” and “Can we build a sustainable business around this set of products and services?”

3. Develop an MVP

A core component of Lean Startup methodology is the build-measure-learn feedback loop.

  1. The first step is figuring out the problem that needs to be solved and
  2. then developing a minimum viable product (MVP) to begin the process of learning as quickly as possible.
  3. Once the MVP is established, a startup can work on tuning the engine.

4. Validated Learning




The rate of growth of any startup or business depends on three things:

  1. the profitability of each customer,
  2. the cost of acquiring a new customer,
  3. and repeat purchase rate of existing customers


Engine of growth

  • sticky – attract and retain customers for long term (e.g. telco)
  • viral – customer MUST tell others to use/buy when they are using. (e.g. hotmail, tupperware)
  • paid – how much to acquire a new customer

Official blog | Official website

Books for startups

Some books recommended for startups and entrepreneurs.

  1. Crush It – Gary Vaynerchuk
  2. The Small Army Strategy – Srinivas Rao
  3. Think like a rock star – Mack Collier
  4. Blogging the smart way – Jeff Bullas
  5. The Lean Startup – Eric Ries
  6. 4 hour workweek – Tim Ferriss
  7. Rework – Jason Fried
  8. Secrets for Blogging Your Way to a six figure income – Darren Rowse, Chris Garrett, Problogger
  9. The $100 Startup – Chris Guillebeau
  10. The Art of the Start – Guy Kawasaki

Read detail reviews for each