ANSI Characters

update: [2013-01-20] just posted about how to use it on HTML
ANSICharacter
33!
34"
35#
36$
37%
38&
39'
40(
41)
42*
43+
44,
45-
46.
47/
480
491
502
513
524
535
546
557
568
579
58:
59;
60<
61=
62>
63?
64@
65A
66B
67C
68D
69E
70F
71G
72H
73I
74J
75K
76L
77M
78N
79O
80P
81Q
82R
83S
84T
85U
86V
87W
88X
89Y
90Z
91[
92\
93]
94^
95_
96`
97a
98b
99c
100d
101e
102f
103g
104h
105i
106j
107k
108l
109m
110n
111o
112p
113q
114r
115s
116t
117u
118v
119w
120x
121y
122z
123{
124|
125}
126~
128€
138Š
145‘
146’
161¡
162¢
163£
164¤
165¥
166¦
167§
168¨
169©
170ª
171«
172¬
173­
174®
175¯
176°
177±
178²
179³
180´
181µ
182
183·
184¸
185¹
186º
187»
188¼
189½
190¾
191¿
192À
193Á
194Â
195Ã
196Ä
197Å
198Æ
199Ç
200È
201É
202Ê
203Ë
204Ì
205Í
206Î
207Ï
208Ð
209Ñ
210Ò
211Ó
212Ô
213Õ
214Ö
215×
216Ø
217Ù
218Ú
219Û
220Ü
221Ý
222Þ
223ß
224à
225á
226â
227ã
228ä
229å
230æ
231ç
232è
233é
234ê
235ë
236ì
237í
238î
239ï
240ð
241ñ
242ò
243ó
244ô
245õ
246ö
247÷
248ø
249ù
250ú
251û
252ü
253ý
254þ
255ÿ

HTML Characters

CharacterCode
space&nbsp;
"&quot;
&&amp;
<&lt;
>&gt;
©&copy;
®<SUP>&reg;</SUP>
TM<FONT ><SUP>TM</SUP></FONT>
´&acute;
«&laquo;
»&raquo;
¡&iexcl;
¿&iquest;
À&Agrave;
à&agrave;
Á&Aacute;
á&aacute;
Â&Acirc;
â&acirc;
Ã&Atilde;
ã&atilde;
Ä&Auml;
ä&auml;
Å&Aring;
å&aring;
Æ&AElig;
æ&aelig;
Ç&Ccedil;
ç&ccedil;
Ð&ETH;
ð&eth;
È&Egrave;
è&egrave;
É&Eacute;
é&eacute;
Ê&Ecirc;
ê&ecirc;
Ë&Euml;
ë&euml;
Ì&Igrave;
ì&igrave;
Í&Iacute;
í&iacute;
Î&Icirc;
î&icirc;
Ï&Iuml;
ï&iuml;
Ñ&Ntilde;
ñ&ntilde;
Ò&Ograve;
ò&ograve;
Ó&Oacute;
ó&oacute;
Ô&Ocirc;
ô&ocirc;
Õ&Otilde;
õ&otilde;
Ö&Ouml;
ö&ouml;
Ø&Oslash;
ø&oslash;
Ù&Ugrave;
ù&ugrave;
Ú&Uacute;
ú&uacute;
Û&Ucirc;
û&ucirc;
Ü&Uuml;
ü&uuml;
Ý&Yacute;
ý&yacute;
ÿ&yuml;
Þ&THORN;
þ&thorn;
ß&szlig;
§&sect;
&para;
µ&micro;
¦&brvbar;
±&plusmn;
·&middot;
¨&uml;
¸&cedil;
ª&ordf;
º&ordm;
¬&not;
­&shy;
¯&macr;
°&deg;
¹&sup1;
²&sup2;
³&sup3;
¼&frac14;
½&frac12;
¾&frac34;
×&times;
÷&divide;
¢&cent;
£&pound;
¤&curren;
¥&yen;
update 2013-03-25
CharacterCodeDescription
‘&lsquo;left single quote
’&rsquo;right single quote
‚&sbquo;single low-9 quote
“&ldquo;left double quote
”&rdquo;right double quote
„&bdquo;double low-9 quote
†&dagger;dagger
‡&Dagger;double dagger
‰&permil;per mill sign
‹&lsaquo;single left-pointing angle quote
›&rsaquo;single right-pointing angle quote
♠&spades;black spade suit
♣&clubs;black club suit
♥&hearts;black heart suit
♦&diams;black diamond suit
‾&oline;overline, = spacing overscore
←&larr;leftward arrow
↑&uarr;upward arrow
→&rarr;rightward arrow
↓&darr;downward arrow
™&trade;trademark sign

Sample Development Process Cheat Sheet

    Project Initiation:
  • Informal business need/problem discussions.
  • Project kickoff.
  • Define problem statement (for example, essential use cases or shall statements).
    Exploration Phase:
  • Explore business domain concepts (develop domain model).
  • Develop basic prototypes and storyboard (for user interface applications).
  • Define scope (what included/deferred in nest release).
  • Define user stories for next release.
  • Do informal whiteboarding of architecture and so on.
    Planning:
  • Develop release plan for next release/version of system.
  • Define glossary of common business terms.
  • Develop iteration plan for next iteration.
  • Define system conventions (naming, code check-in/integration, and more).
    Incrementally Build Software in Iterations:
  • Develop software in increments using 2-week iterations; use iteration 0 (or cycle, 0) for environment setup and proof of concept.
  • Have an iteration planning meeting before each iteration to pick the user the user stories that will be developed in the next iteration.
  • User provide acceptance tests as detailed requirements; developer implement these as unit tests.
  • Let developers design and develop the system with user available for Q&A, as needed.
  • Deploy production-ready code every two weeks after it has passed the user acceptance tests.

rounddown

/**
* flooring 0.5
* @param d
* @param places
* @return
*/
public static final double roundDown(double d, int places) {
return Math.round((d * Math.pow(10,(double)places))-(d<0?-0.1d:0.1d))>double) places);
}

Reset auto_increment tabel MySQL

Pada tabel InnoDB yang memakai auto increment sebagai id-nya, jika sering terjadi operasi insert dan delete sekaligus banyak akan ada banyak nilai integer yang tidak terpakai atau istilahnya bolong-bolong karena setelah delete banyak, insert berikutnya memakai id sebelum delete.

Contoh dari hal ini ada tabel saldo_awal_barang yang menyimpan jumlah tiap barang per gudang per tanggal 1 pada bulan aktif, tabel ini di-insert ketika tutup pencatatan bulan sebelumnya, dan akan delete ketika periode yang sudah ditutup tersebut dibuka lagi. Untuk itu gunakan perintah SQL berikut tiap selesai delete untuk mereset id ke nilai terakhir setelah delete.
ALTER TABLE `item` AUTO_INCREMENT = 1;
Cara ini akan mereset field auto_increment ke nilai terbesar, maka nilai berikutnya yg akan dihasilkan adalah max(id) + 1. dimana fk adalah primary key dengan opsi auto_increment.

CATATAN :
Pada MySQL/MariaDB versi 5.5 jika isi tabel tersebut cukup banyak maka akan berjalan cukup lambat karena proses ini melibatkan penyalinan semua isi tabel bahkan dalam beberapa kasus akan membuat aplikasi hang dan harus direstart service databasenya agar bisa dipakai lagi. Namun masalah ini hilang ketika dicoba pada MariaDB versi 10.3.

Merubah Engine Tabel MySQL

Script berikut digunakan untuk merubah engine table ke InnoDB

ALTER TABLE `nama_table` ENGINE = InnoDB;