Basic git flow

Basic git flow

from remote “master”,¬†create a branch “develop”.

pull branch “develop”

branch out branch “feature” or “bug” from local “develop”

commit changes to branch”feature”

push branch”feature” to remote branch”feature”

request merge to remote branch “develop”

after merged, pull branch “develop” to local

 

Billplz Notes

Billplz is a malaysian’s payment gateway. It’s free to register, easy to setup and affordable.

Register free here

If you are using postman to test, add the API Key as username in Authorization tab. Choose “Basic Auth” in Type dropdown. Then enter the URL and params as usual

 

Free tools for small businesses

Some free tools you can use to start your business. The providers normally provide the free tools for basic usage. Some limitation on features and users. But if you are small, it doesn’t matter much. At least you can start with some cool softwares to support your small business

CRM – hubspot

Support Ticket/ Help Desk – freshdesk

Accounting Рwaveapps Рneed to pay to use payroll and payments

Version control – GitLab

Getting things done

To get things done is hard sometimes (or maybe most of the times) especially those things that we don’t like to do

Follow-through is good at converting good intention to action
(from book titled The Power of Get Things Done by Steve Levinson and Chris Cooper)

You can’t rely on motivations or inspirations

You need some force to complete important tasks

  1. feel the accomplishment. how the end products benefit the people. they will be very happy, satisfied, your business will grow, you will get more money etc etc
  2. take your intention more seriously, lot more seriously
  3. commit to a deadline and commit to real people
  4. start small but start now
  5. focus only on single task to do, write the rest in a list
  6. get a mentor or coach that can force you to do right things right
  7. surround yourself with people who are committed to success (network group)
  8. do things at place where people normally do that things. e.g. if to do work, go to office, if to pray, go to mosque. just go
  9. ask/pay someone that can get it done faster even you can also capable of doing it

You need to stay away from distractions

  1. stay away from people who distracts you
  2. put away gadgets and off the tv and other distractions
  3. write down all other things that come on your mind when you are focusing on a task

Multiple database in CodeIgniter

How to connect to more than one database in codeigniter

Database config

$db[‘default’][‘hostname’] = “localhost”;
$db[‘default’][‘username’] = “root”;
$db[‘default’][‘password’] = “”;
$db[‘default’][‘database’] = “database_name”;
$db[‘default’][‘dbdriver’] = “mysql”;

set another config for 2nd database

$db[‘otherdb’][‘hostname’] = “localhost”;
$db[‘otherdb’][‘username’] = “root”;
$db[‘otherdb’][‘password’] = “”;
$db[‘otherdb’][‘database’] = “other_database_name”;
$db[‘otherdb’][‘dbdriver’] = “mysql”;

Sample to call

//Load another database
$DB2 = $this->load->database(‘another_db’, TRUE);

//Default database query
$this->db->select(‘first_name, last_name’);
$this->db->from(‘users’);
$this->db->where(‘id’, 99);
$query = $this->db->get();

//Another database query
$DB2->select(‘image’);
$DB2->from(‘cdn_images’);
$DB2->where(‘id’, 25);
$query = $DB2->get();

 

References

codexworld.com/connect-use-multiple-database-codeigniter

 

Focus and single-tasking

Focus is important. To focus is to do only one single task at a given time. But this is very hard to do.

Follow the following steps

1. Remove all distractions – silent and put away the smart phones, disable all notifications (email, messenger etc), stay away from people who love to disturb you etc

2. start small – start with 10 minutes focus time to do one small task and let youurself drawn into the task further without you know. split tough and huge tasks to smaller ones to achieve. Most important is to have PROGRESS

3. take a meaningful break. Focus is tiring. So take a solid and meaningful 10 minutes break everytime you complete a tough task. For example, drink water, stretching, have a meaningful and necessary discussions with colleague, check emails/messenger etc

Sales Ideas

Some sales ideas that can be implemented

Getting leads

  1. Online advertisement
    1. google ad
    2. facebook ad
    3. ad portal
    4. relevant whatsapp group
    5. relevant fb group
  2. Media advertisement
  3. Sponsor relevant events
  4. Write articles – newspaper or online
  5. Agents and resellers
    1. give good commissions to this sales partner
    2. support
    3. sales materials to help them do the sales
  6. Referrals (from existing customers, own networking that relate to prospects)
  7. Cold calls – from internet – website, fb etc
  8. SEO – optimize keywords on website, get more traffic to website
  9. Blog – add more useful and relevant contents and lead to the website
  10. Attend relevant events – seminar, expo
  11. Viral relevant content – ebook, infographic, quotes

Sales process/pitching/selling

  1. facts and figures
    1. number of customers
    2. since when
  2. build trust
    1. secure (for software – ssl)
    2. purchased by many others
    3. experience
  3. overview of products benefits and features
    1. infographic
    2. explainer video

Closing sales

  1. Create urgency
    1. limited time offer
    2. while stock last
    3. first xx customers
  2. money back guarantee (remove risk)
  3. free trial (try before buy)
  4. give max 3 options
    1. up sell
    2. cross sell
    3. under sell?