koaung

"When a man learns to love, he must bear the risk of hatred"

Found an old photo of my cute neighbor #cat which used to visit my room in 2011

Setting up project ewmm

I’ve been using Windows 8 for a while and noticed that it’s connecting to the SSID which I don’t want to be first priority. I have 2 Wi-Fi in my home.

1. First, list all the current profiles.

netsh wlan show profiles



2. Secondly, update the priority of the profile you wished to modify

netsh wlan set profileorder name="MyRepublic3085" interface="Wi-Fi" priority=1



3. Finally, confirm the changes made by listing all the profiles again.

Cheers!

Soon after I’ve finished the Raspberry Pi setup, I came across a problem with the keyboard layout. The default layout turns out to be “gb”. So, I had to change to “us” for my environment.

pi@raspberrypi ~ $ sudo vi /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

change the XKBLAYOUT value to “us” from “gb” and reboot the box.

Cheers!

Starting from Java SE7, underscore character can be used between the digits in numeric literals. It can be used like a comma in writing.

class NumericalDelimiter {
    public static void main(String[] args) {
		int price = 300_000;
		System.out.println("The price is : " + price);
	}
}

image

Cheers!

Database connector for sqlite3 is shipped with the web2py package.
If you already have a sqlite local data storage, you can specify the directory with the ‘folder’ parameter of DAL and establish connection.
For example, database ‘emp.db’ located under ‘/usr/src/data/’ has table ‘employee’.

sqlite> .schema employee
CREATE TABLE employee (
  id integer,
  name varchar(100),
  department varchar(1000),
  primary key(id)
);


In db.py code

dbemp = DAL('sqlite://emp.db',folder='/usr/src/data/')

dbemp.define_table('employee',
    Field('name','string',label='Employee Name'),
    Field('department','string',label='Department'),
    migrate=False)


Cheers!

French Fries at the House of Robert Timms served in a big glass

I bought a totoro hoody today!

What if superman needs a tooth extraction?
A friend of mine (Nawaratt Aung) has a solution - Bring kryptonite near superman, dentist gets the job done as quickly as possible before the kryptonite drains all power out of superman. It will have to be a super top secret mission though because he will be too weak to defend against anyone and his arch enemies will not miss this kind of situation to kill him.

What if superman needs a tooth extraction?


A friend of mine (Nawaratt Aung) has a solution - Bring kryptonite near superman, dentist gets the job done as quickly as possible before the kryptonite drains all power out of superman. It will have to be a super top secret mission though because he will be too weak to defend against anyone and his arch enemies will not miss this kind of situation to kill him.

When did Google maps can show directions inside the building by levels? I didn’t know that until I found on the maps while looking for a place in Marine Parade area. I could drill down to each level of Parkway Parade building. Cool..