Monday, 30 November 2015

Javascript: Operating on a string

What can we do upon a string?
1. Looking its length
2. Searching index of a string from it
3. Extracting a string from it
4. Inserting a string into it.

Looking for how long / length

a.length


Searching for index
indexOf()
lastIndexOf()

Powerful search using RegEx.

Extracting parts
slice(firstindex, lastindex)

You want to convert a string that contain hex value to a decimal?

You want to convert a string that contains hex value to a decimal? How can you do that?

For example:
var x="#fffffa"
You can't convert this type of string into decimal-number. Reason: because there is a pound (#) sign inside that string. Solution: remove the pound sign first.

This case is retrieving value from <input type="color">

 

JavaScript Data Types

JavaScript Data Types

In JavaScript there are 5 different data types that can contain values:
  • string
  • number
  • boolean
  • object
  • function
There are 3 types of objects:
  • Object
  • Date
  • Array
And 2 data types that cannot contain values:
  • null
  • undefined

Bagaimana cara menggunakan google spreadsheet sbg database kamu

It looks like you must build your own API tools.

What is API?
An API is a set of methods and tools that can be used for building software applications.

So how?
Learn to use Youtube API, learn to use googlespreadsheet API, twitter API, learn to use google map API.

Where?
www.codecademy.com
or

For i.e.:
1. Create an object; learn object oriented programming
2. 



Sunday, 29 November 2015

WLAN Security: WEP mode

WEP 64-bits :
For each key, please enter either (1) 5 characters excluding symbols, or (2) 10 characters ranging from 0~9, a, b, c, d, e, f.

WEP 128-bits :
For each key, please enter either (1) 13 characters excluding symbols, or (2) 26 characters ranging from 0~9, a, b, c, d, e, f.

Friday, 27 November 2015

Jadi, apa saja yg diberikan ISP kepada kamu? Selain bandwidth link?

What ISP should offer you:
4 Mbps down / 1 Mbps up
10 email accounts
1 GB Web Server Space


Time to load = bandwidth x size of website
For i.e.:
To load a 2MB website = 4 MB/s 
What ISP should offer you:
4 Mbps down / 1 Mbps up
10 email accounts
1 GB Web Server Space