File .htaccess merupakan file konfigurasi yang disediakan oleh web server Apache, yang biasanya digunakan untuk mengubah setting default dari Apache. Kita ketahui untuk saat ini sebagian besar hosting web di internet menggunakan Apache sebagai servernya sehingga bagi para pengelola web harus belajar tentang .htaccess supaya dapat melakukan modif terhadaf settingan default dari server.
- Learn to touch type
- Name variables and subroutines descriptively
- Type rather than read
- Write software that interests you
- Read stack traces from the top line down
- Aim to write the smallest working program possible
- Google like crazy
- Build programs one step at a time
- Ensure braces always pair up
- Format code correctly
In more detail explanation, you can see
Sekedar catatan sebelum tutup tahun 2012..
Sekitar sebulan yang lalu, akhirnya SIM saya ‘hidup’ kembali setelah nyaris ‘mati’ kalau dibiarkan saja.
Flashback sedikit, saya mendapatkan SIM pertama saya yaitu SIM C dengan cara kolektif, yaitu membayar jasa seseorang yang menawarkan pengurusan SIM untuk banyak orang sekaligus. Waktu itu sekitar tahun 2007 masih berstatus mahasiswa perguruan tinggi di Bogor, jadi cukup memberikan fotokopi KTM sebagai syaratnya. Proses penerbitan SIM nya simple. Datang ke polres Bogor di Cibinong (semua syarat sudah diurus penawar jasa beserta biaya), tunggu nama dipanggil, foto dan cap sidik jari, selesai.
Begitu kira2 kisah saya mendapatkan SIM pertama, tanpa tes tertulis dan praktek.. hhe Continue Reading »
(PHP 4, PHP 5)
preg_match — Perform a regular expression match
Simple Regex
Regex quick reference
[abc] A single character: a, b or c
[^abc] Any single character but a, b, or c
[a-z] Any single character in the range a-z
[a-zA-Z] Any single character in the range a-z or A-Z
^ Start of line
$ End of line
\A Start of string
\z End of string
. Any single character
\s Any whitespace character
\S Any non-whitespace character
\d Any digit
\D Any non-digit
\w Any word character (letter, number, underscore)
\W Any non-word character
\b Any word boundary character
(…) Capture everything enclosed
(a|b) a or b
a? Zero or one of a
a* Zero or more of a
a+ One or more of a
a{3} Exactly 3 of a
a{3,} 3 or more of a
a{3,6} Between 3 and 6 of a
options: i case insensitive m make dot match newlines x ignore whitespace in regex o perform #{…} substitutions only once
for more detail: http://php.net/manual/en/function.preg-match.php