Category Archives: Uncategorized

Resize digital ocean droplet

  1. Choose droplet and click menu “Resize”
  2. Choose the new package. Click on “Turn off” droplet and Click on “Resize”
  3. There is a progress bar just below the droplet name on top area to show progress of the resizing
  4. Wait until resize successful message “Droplet has been resized” displayed.
  5. Once the resize completed, go to menu “Power”. Turn on back the droplet.

The whole process may take 2-5 minutes. The estimation given is 1minute for ever 1GB disk size but normally it is a lot faster.

DO reference:
https://docs.digitalocean.com/products/droplets/how-to/resize/

Deploy codeigniter 3.x on hosting

To deploy the application securely

1. All application and system source code to be placed not in public_html directory

public_html should contain index.php, assets with css and js files and .htaccces that should look like this if you want to get rid of the index.php thing in the routing)

2. Modify .htaccess file

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule ^(.*)$ index.php?/$1 [L]

3. Update config files such as config.php, database.php and routes.php

4. Modify index.php set

  • $system_path = '../system';
  • $application_folder = '../application'

Flutter

Steps to install can refer here
https://flutter.dev/docs/get-started/install

Install Flutter for Mac

  1. Download latest Flutter SDK File
  2. Make the path global so can run flutter command anywhere
    export PATH="$PATH:`pwd`/flutter/bin"
  3. Run flutter doctor to check on other dependencies

Install VS Code extension

  1. Flutter
  2. Awesome Flutter Snippets

Start new application in VS Code

  1. Press cmd+shift+P to launch Command Pallette
  2. Type Flutter
  3. Choose Flutter: New Application Project
  4. Wait until main.dart shown on page
  5. Can run the app by pressing F5 or use the play icon on the top right corner
  6. Application will be run on chrome browser

Javascript notes

Some notes for me to refer and remind myself

unlike PHP, a variable must be declared first before been assigned. or it can be declared and assigned at the same time
var myVar = 1;

to get string length:
stringLength = aString.length;

to get nth letter in a string
letter = aString[aString.length-1] // get the last letter

array in javascript. array can also contains array as element
myArray = [“this is string”, 200, true, [“Bulls”, 23]];

use .push() to push element to an array. .pop() to remove last element. .shift() to remove first element and return the element (can assign to a variable)
myArray.push(“another element”);
deletedLastElement = myArray.pop();

List of Javascript built-in objects

Using Divi on cPanel shared hosting

Download Divi.zip from Divi member page

Install a wordpress using softaculous

Go to Appearance > Themes > Add New > Upload Theme

Choose Divi.zip and click on “Install Now”

If error ““The link you followed has expired.” is displayed, go to cPanel > MultiPHP INI Editor. Change “post_max_size” and “upload_max_filesize” to bigger than Divi.zip file size (e.g. 15MB)

How to manage to do lists

You prepare a to do list to make sure you get things down. End up you have too many items in the list and none gets done.

So now you have to manage the to do list.

Instead of one to do list with lots of items on it. Make 3 lists.

1. List with important and urgent items to do. Must finish it TODAY

2. List with important but not urgent items. Must do but still can wait to finish it. You still have time to plan and do.

3. List with the rest of items. Where you mix all other items in this list. You can then remove any items because they are not important after some time, or you can move items to list number 2 or number 1

Mistakes by startups

  1. Not talking to real customers for features. Too many assumptions made or talk to wrong audiences
  2. Underprice the solutions. Good to start to enter the market, but must adjust quickly
  3. Slow in making sales, do follow ups and other sales and marketing activities. Focus too much on technical and worry too much customers can’t accept what they have
  4. Not focusing on cash flow and fund raising enough. For SaaS the revenue is very slow at start.

Unit apartment untuk dijual di Sri Palma Villa Mantin (owner)

Rumah untuk dijual Sri Palma Villa, Mantin, Negeri Sembilan (direct owner)

  • Blok 1, Tingkat 9
  • Bedroom: 3
  • Bathroom: 3
  • Built Up: ~1000 sqft
  • Price: RM110k cash/140 installment (nego/offer your price)
  • Maintenance: RM130/month
  • Telah habis bayaran loan bank

Kelebihan rumah

  • Dilengkapi table top
  • Rumah dijaga dengan baik
  • Sebab jual – tinggal di rumah lain dan sukar untuk maintain kerana tinggal jauh

Kelebihan Taman

  • Suasana yang tenang dan selamat
  • Kemudahan kolam renang, bbq pit, dewan di club house
  • Kawalan keselamatan 24 jam
  • Surau dalam taman. Boleh jalan kaki
  • Kemudahan kedai runcit, kedai makan di blok dan club house
  • Taman permainan dan court
  • Akses mudah berhampiran jalan besar
  • Berhampiran kolej

Akses

  • Bandar Mantin
  • Bandar Nilai
  • Akses highway LEKAS (Tol Pajam)
  • Akses highway PLUS (Tol Nilai)
  • KLCC
  • Seremban
  • KLIA

Berminat atau ada sebarang pertanyaan boleh hubungi

Azwan 012-2815182 (prefer whatsapp)

kolam renang
Security 24 jam
Play ground
Bilik 1 (attached bath room)
Bilik 2
Bilik 3 (attached bath room)
Ruang Tamu
Ruang makan
Dapur