Selasa, 29 Januari 2019 - 0 komentar

contekan

ES AT 28 FEB 2019 XSF9-X3BJ-MHSS-2H65-E4X2 6GCC-XS76-X5FJ-CJ3F-B8U6 CKSS-XFWC-B49B-5G7C-BUT4
Sabtu, 28 April 2018 - 0 komentar

print dot metrix via web aplication

di Web Application, yang paling mudah membuat struk kasir, dengan menggunakan report HTML

Langsung aja
banyak font yang dapat direkomendasikan. sy cukup rekomendasikan satu aja.

font-family: Tahoma, Geneva, sans-serif;
cocok untuk struk kasir yang kecil.


ini css yang biasa admin pakai.
<style>           
    @media print {@page {margin-top:0;margin-left:1px;} }       
    .font16 {font-family: Tahoma, Geneva, sans-serif; font-size: 16px; }       
    .font14 {font-family: Tahoma, Geneva, sans-serif; font-size: 14px; }       
    .font14b {font-family: Tahoma, Geneva, sans-serif; font-size: 14px; font-weight: 900;  }       
    .font12 {font-family: Tahoma, Geneva, sans-serif; font-size: 12px; }       
    .font10 {font-family: Tahoma, Geneva, sans-serif; font-size: 10px; }       
    .font16b {font-family: Tahoma, Geneva, sans-serif; font-size: 16px; font-weight: 900; }       
    .borderf {border: 1px dashed; }       
    .borderc {border: 1px dashed; border-collapse:collapse;}       
    .borderl {border-left: 1px dashed; }       
    .bordert {border-top: 1px dashed; }       
    .borderb {border-bottom: 1px dashed; }       
    .borderlr {border-left: 1px dashed; border-right: 1px dashed; }       
    .marginb {margin-top: 0px; margin-left: 0px;}       
</style>

lebar table untk struk biasa pakai  250px
sementar untuk kertas continous form biasa pakai 800px

untuk membuat garis cukup
<tr> <td colspan="3" class="borderb"></td> </tr>

asumsi marge 3 kolom

agar langsung ngeprint buat skrip di akhir sebelum </boddy>

<script language="javascript">
 window.print();
window.close()
</script>


semoga bermanfaat
Minggu, 22 April 2018 - , 0 komentar

Solusi Error

Error Postgres 

Unable to connect to PostgreSQL server: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? 

Solusi :

go : C:\Program Files (x86)\PostgreSQL\8.3\data
rename file or delete : postmaster.pid

========================================
Default printer udah, tapi saat print aplikasi web.. default printernya tidak berubah

ketik about:config
cari printer lalu klik kanan reset
printer akan default sesuai settingan windows.

============================================
masih seputar printer juga nih
saat buat print struk, bisanya ada perintah javascript
<script language="javascript">
       window.print();
        window.close()
  </script>

biar ga usah muncul open dialog printer.
lalukan hal yang sama
ketik about:config
Kemudian klik kanan NEW > BOOLEAN  >  ketik print.always_print_silent, klik OK dan kemudian pilih true.
====================================
 biasanya saya management postgres pake navicate atau EMS,
aplikasi ini ga gratis...
Jumat, 08 September 2017 - 0 komentar

Field on Javascript

Merubah Text
<script>
$(document).ready(function(event){
$('#Field_name').keyup(function(event) {
var cleanedValue = $(this).val().replace(/[^A-Z0-9]/ig, "");
$(this).val(cleanedValue);
});
});
</script>

$(function() {
$("#field_code").change(function(){
var vfield_codee = $("#field_code").val();
$.ajax({
url: base_url + 'index.php/c_controller/function',
type: 'POST',
dataType: 'json',
cache: false,
data: {'vfield_code': vfield_code },
success: function (data) {
$("#code_name").val(data[0]['code_name']);
$("#code_unit").val(data[0]['code_unit']);
}
});
});
});


Kamis, 15 Juni 2017 - 0 komentar

pallet warna

Nama Warna Kode Warna RGB CMYK HSV
Hitam   #000000 0 0 0 0, 0, 0, 255 0, 0, 0
Biru laut   #000080 0 0 128 255, 255, 0, 127 240, 100, 50
Biru   #0000FF 0 0 255 255, 255, 0, 0 240, 100, 100
Hijau   #00FF00 0 255 0 255, 0, 255, 0 120, 100, 100
Sian   #00FFFF 0 255 255 100, 0, 0, 0 180,100,100
Nila   #6F00FF 111 0 255 57, 100, 0, 0 266, 100, 100
Merah marun   #800000 128 0 0 0, 255, 255, 127 0, 100, 50
Zaitun   #808000 128 128 0 0, 0, 100, 50 60, 100, 50
Abu-abu   #808080 128 128 128 0, 0, 0, 128 0, 0, 50
Violet   #8F00FF 143 0 255 44, 255, 0, 0 274, 100, 100
Coklat   #964B00 150 75 0 0, 74, 150, 105 30, 100, 59
Ungu   #BF00FF 191 0 255 25, 100, 0, 0 285, 100, 100
Perak   #C0C0C0 192 192 192 0, 0, 0, 63 0, 0, 75
Merah   #FF0000 255 0 0 0, 255, 255, 0 0, 100, 100
Mawar   #FF007F 255 0 127 0, 100, 50, 0 330, 100, 100
Magenta   #FF00FF 255 0 255 0, 100, 0, 0 300, 100, 100
Oranye   #FF7F00 255 127 0 0, 50, 100, 0 30, 100, 100
Merah jambu   #FFC0CB 255 192 203 0, 63, 52, 0 350, 25, 100
Emas   #FFD700 255 215 0 0, 40, 255, 0 51, 100, 100
Kuning   #FFFF00 255 255 0 0, 0, 255, 0 60, 100, 100
Putih   #FFFFFF 255 255 255 0, 0, 0, 0 0, 0, 100
 
Nama Warna kode Hex
RGB
kode Desimal
RGB
Warna dasar Merah 
Merah Indian CD 5C 5C 205 92 92
Koral terang F0 80 80 240 128 128
Salmon FA 80 72 250 128 114
Salmon gelap E9 96 7A 233 150 122
Salmon terang FF A0 7A 255 160 122
Krimson DC 14 3C 220 20 60
Merah FF 00 00 255 0 0
Batu bata B2 22 22 178 34 34
Merah tua 8B 00 00 139 0 0
Warna dasar Merah Jambu 
Merah muda FF C0 CB 255 192 203
Merah muda terang FF B6 C1 255 182 193
Merah muda panas FF 69 B4 255 105 180
Merah muda dalam FF 14 93 255 20 147
MediumVioletRed C7 15 85 199 21 133
PaleVioletRed DB 70 93 219 112 147
Warna dasar Oranye 
Salmon terang FF A0 7A 255 160 122
Koral FF 7F 50 255 127 80
Tomat FF 63 47 255 99 71
Merah oranye FF 45 00 255 69 0
Oranye tua FF 8C 00 255 140 0
Oranye FF A5 00 255 165 0
Warna dasar Kuning 
Emas FF D7 00 255 215 0
Kuning FF FF 00 255 255 0
Kuning terang FF FF E0 255 255 224
LemonChiffon FF FA CD 255 250 205
LightGoldenrodYellow FA FA D2 250 250 210
PapayaWhip FF EF D5 255 239 213
Moccasin FF E4 B5 255 228 181
PeachPuff FF DA B9 255 218 185
PaleGoldenrod EE E8 AA 238 232 170
Khaki F0 E6 8C 240 230 140
DarkKhaki BD B7 6B 189 183 107
Warna dasar Ungu 
Lavender E6 E6 FA 230 230 250
Thistle D8 BF D8 216 191 216
Plum DD A0 DD 221 160 221
Violet EE 82 EE 238 130 238
Orchid DA 70 D6 218 112 214
Fuchsia FF 00 FF 255 0 255
Magenta FF 00 FF 255 0 255
MediumOrchid BA 55 D3 186 85 211
MediumPurple 93 70 DB 147 112 219
BlueViolet 8A 2B E2 138 43 226
DarkViolet 94 00 D3 148 0 211
DarkOrchid 99 32 CC 153 50 204
DarkMagenta 8B 00 8B 139 0 139
Purple 80 00 80 128 0 128
Indigo 4B 00 82 75 0 130
SlateBlue 6A 5A CD 106 90 205
DarkSlateBlue 48 3D 8B 72 61 139
Warna dasar Hijau 
GreenYellow AD FF 2F 173 255 47
Chartreuse 7F FF 00 127 255 0
LawnGreen 7C FC 00 124 252 0
Lime 00 FF 00 0 255 0
LimeGreen 32 CD 32 50 205 50
PaleGreen 98 FB 98 152 251 152
LightGreen 90 EE 90 144 238 144
MediumSpringGreen 00 FA 9A 0 250 154
SpringGreen 00 FF 7F 0 255 127
MediumSeaGreen 3C B3 71 60 179 113
SeaGreen 2E 8B 57 46 139 87
ForestGreen 22 8B 22 34 139 34
Green 00 80 00 0 128 0
DarkGreen 00 64 00 0 100 0
YellowGreen 9A CD 32 154 205 50
OliveDrab 6B 8E 23 107 142 35
Olive 80 80 00 128 128 0
DarkOliveGreen 55 6B 2F 85 107 47
MediumAquamarine 66 CD AA 102 205 170
DarkSeaGreen 8F BC 8F 143 188 143
LightSeaGreen 20 B2 AA 32 178 170
DarkCyan 00 8B 8B 0 139 139
Teal 00 80 80 0 128 128
Nama Warna kode Hex
RGB
kode Desimal
RGB
Warna dasar Biru 
Aqua 00 FF FF 0 255 255
Cyan 00 FF FF 0 255 255
LightCyan E0 FF FF 224 255 255
PaleTurquoise AF EE EE 175 238 238
Aquamarine 7F FF D4 127 255 212
Turquoise 40 E0 D0 64 224 208
MediumTurquoise 48 D1 CC 72 209 204
DarkTurquoise 00 CE D1 0 206 209
CadetBlue 5F 9E A0 95 158 160
SteelBlue 46 82 B4 70 130 180
LightSteelBlue B0 C4 DE 176 196 222
PowderBlue B0 E0 E6 176 224 230
LightBlue AD D8 E6 173 216 230
SkyBlue 87 CE EB 135 206 235
LightSkyBlue 87 CE FA 135 206 250
DeepSkyBlue 00 BF FF 0 191 255
DodgerBlue 1E 90 FF 30 144 255
CornflowerBlue 64 95 ED 100 149 237
MediumSlateBlue 7B 68 EE 123 104 238
RoyalBlue 41 69 E1 65 105 225
Blue 00 00 FF 0 0 255
MediumBlue 00 00 CD 0 0 205
DarkBlue 00 00 8B 0 0 139
Navy 00 00 80 0 0 128
MidnightBlue 19 19 70 25 25 112
Warna dasar Coklat 
Cornsilk FF F8 DC 255 248 220
BlanchedAlmond FF EB CD 255 235 205
Bisque FF E4 C4 255 228 196
NavajoWhite FF DE AD 255 222 173
Wheat F5 DE B3 245 222 179
BurlyWood DE B8 87 222 184 135
Tan D2 B4 8C 210 180 140
RosyBrown BC 8F 8F 188 143 143
SandyBrown F4 A4 60 244 164 96
Goldenrod DA A5 20 218 165 32
DarkGoldenrod B8 86 0B 184 134 11
Peru CD 85 3F 205 133 63
Chocolate D2 69 1E 210 105 30
SaddleBrown 8B 45 13 139 69 19
Sienna A0 52 2D 160 82 45
Brown A5 2A 2A 165 42 42
Maroon 80 00 00 128 0 0
Warna dasar Putih 
White FF FF FF 255 255 255
Snow FF FA FA 255 250 250
Honeydew F0 FF F0 240 255 240
MintCream F5 FF FA 245 255 250
Azure F0 FF FF 240 255 255
AliceBlue F0 F8 FF 240 248 255
GhostWhite F8 F8 FF 248 248 255
WhiteSmoke F5 F5 F5 245 245 245
Seashell FF F5 EE 255 245 238
Beige F5 F5 DC 245 245 220
OldLace FD F5 E6 253 245 230
FloralWhite FF FA F0 255 250 240
Ivory FF FF F0 255 255 240
AntiqueWhite FA EB D7 250 235 215
Linen FA F0 E6 250 240 230
LavenderBlush FF F0 F5 255 240 245
MistyRose FF E4 E1 255 228 225
Warna dasar Abu-abu 
Gainsboro DC DC DC 220 220 220
LightGrey D3 D3 D3 211 211 211
Silver C0 C0 C0 192 192 192
DarkGray A9 A9 A9 169 169 169
Gray 80 80 80 128 128 128
DimGray 69 69 69 105 105 105
LightSlateGray 77 88 99 119 136 153
SlateGray 70 80 90 112 128 144
DarkSlateGray 2F 4F 4F 47 79 79
Black 00 00 00 0 0 0
 
Senin, 13 Maret 2017 - 0 komentar

Surat dan Juz dalam Al-qur'an

NO Surah Ayat Juz
1
Surat Al-Fatihah
7
1
2
Surat Al-Baqarah
286
1 - 2 - 3
3
Surah Al-i'Imran
200
3 - 4
4
Surah An-Nisaa
176
4 - 5 - 6
5
Surat Al-Maidah
120
6 - 7
6
Surat Al-An'am
165
7 - 8
7
Surat Al-A'raf
206
8 - 9
8
Surat Al-Anfal
75
9 - 10
9
Surah At-Tauba
129
10 - 11
10
Surah Yunus
109
11
11
Surah Hud
123
11 - 12
12
Surah Yusuf
111
12 - 13
13
Surah Ar-Ra'd
43
13
14
Surah Ibrahim
52
13
15
Surat Al-Hijr
99
14
16
Surah An-Nahl
128
14
17
Surat Al-Isra
111
15
18
Surat Al-Kahfi
110
15 - 16
19
Surah Maryam
98
16
20
Surah Ta-ha
135
16
21
Surat Al-Anbiyaa
112
17
22
Surat Al-Hajj
78
17
23
Surat Al-Muminun
118
18
24
Surah An-Nur
64
18
25
Surat Al-Furqan
77
18 - 19
26
Surah Ash-Shu'araa
227
19
27
Surat An-Naml
93
19 - 20
28
Surat Al-Qashash
88
20
29
Surah Al-Ankabut
69
20 - 21
30
Surah Ar-Rum
60
21
31
Surat Luqman
34
21
32
Surah As-Sajdah
30
21
33
Surat Al-Ahzab
73
21 - 22
34
Surah Saba
54
22
35
Surah Faathir
45
22
36
Surat Ya-Sin
83
22 - 23
37
Surah QS. Ash-Shaffat
182
23
38
Surah Sad
88
23
39
Surah Az-Zumar
75
23 - 24
40
Surat Al-Mu'min
85
24
41
Surah Ha-Mim
54
24 - 25
42
Surah Ash-Shura
53
25
43
Surah Az-Zukhruf
89
25
44
Surat Ad-Dukhan
59
25
45
Surat Al-Jathiya
37
25
46
Surat Al-Ahqaf
35
26
47
Surah Muhammad
38
26
48
Surah Al-Fat-h
29
26
49
Surah Al-Hujurat
18
26
50
Surah Qaaf
45
26
51
Surah Az-Zariyat
60
26 - 27
52
Surah At-Tur
49
27
53
Surat An-Najm
62
27
54
Surat Al-Qamar
55
27
55
Surah Ar-Rahman
78
27
56
Surat Al-Waaqi'ah
96
27
57
Surat Al-Hadid
29
27
58
Surat Al-Mujadila
22
28
59
Surat Al-Hasyr
24
28
60
Surat Al-Mumtahana
13
28
61
Surah As-Shaff
14
28
62
Surat Al-jumu'ah
11
28
63
Surat Al-munafik
11
28
64
Surah At-Tagabun
18
28
65
Surah At-talaq
12
28
66
Surah At-Tahrim
12
28
67
Surat Al-Mulk
30
29
68
Surat Al-Qalam
52
29
69
Surat Al-aqqa
52
29
70
Surat Al-Ma'arij
44
29
71
Surah Nuh
28
29
72
Surat Al-Jinn
28
29
73
Surah Al-Muzzammil
20
29
74
Surah Al-Muddathth
56
29
75
Surat Al-Qiyamat
40
29
76
Surah Ad-Dahr
31
29
77
Surat Al-Mursalat
50
29
78
Surah An-Nabaa
40
30
79
Surah An-Nazi'at
46
30
80
Surat Abasa
42
30
81
Surah At-Takwir
29
30
82
Surat Al-Infitar
19
30
83
Surah Al-Mutaffife
36
30
84
Surat Al-Inshiqaq
25
30
85
Surat Al-Buruj
22
30
86
Surah At-Tariq
17
30
87
Surat Al-A'la
19
30
88
Surat Al-Gashiya
26
30
89
Surat Al-Fajr
30
30
90
Surat Al-Balad
20
30
91
Surah Ash-Shams
15
30
92
Surat Al-Lail
21
30
93
Surah Adz-Dhuha
11
30
94
Surat Al-Syarh
8
30
95
Surah At-Tin
8
30
96
Surat Al-Alaq
19
30
97
Surat Al-Qadr
5
30
98
Surah Al-Baiyina
8
30
99
Surat Al-Zalzalah
8
30
100
Surat Al-Adiyat
11
30
101
Surat Al-Qari'a
11
30
102
Surah At-Takathur
8
30
103
Surat Al-Asr
3
30
104
Surat Al-Humaza
9
30
105
Surat Al-Fil
5
30
106
Surah Quraish
4
30
107
Surat Al-Ma'un
7
30
108
Surat Al-Kautsar
3
30
109
Surat Al-orang-orang kafir
6
30
110
Surat An-Nashr
3
30
111
Surat Al-Lahab
5
30
112
Surat Al-Ikhlas
4
30
113
Surah Al-Falaq
5
30
114
Surah Al-Nas
6
30
Total Ayat
6236
 

Juz Mulai Sampai
1 Al-Fatihah Ayat 1  Al-Baqarah Ayat 141
2 Al-Baqarah Ayat 142  Al-Baqarah Ayat 252
3 Al-Baqarah Ayat 253  Ali Imran Ayat 92
4 Ali Imran Ayat 93  An-Nisa’ Ayat 23
5 An-Nisa’ Ayat 24  An-Nisa’ Ayat 147
6 An-Nisa’ Ayat 148  Al-Ma’idah Ayat 82
7 Al-Ma’idah Ayat 83  Al-An’am Ayat 110
8 Al-An’am Ayat 111  Al A’raf Ayat 87
9 Al A’raf Ayat 88  Al-Anfal Ayat 40
10 Al-Anfal Ayat 41  At-Taubah Ayat 92
11 At-Taubah Ayat 93  Hud Ayat 5
12 Hud Ayat 6  Yusuf Ayat 52
13 Yusuf Ayat 53  Ibrahim Ayat 52
14 Al-Hijr Ayat 1  An-Nahl Ayat 128
15 Al-Isra Ayat 1  Al-Kahf Ayat 74
16 Al-Kahf Ayat 75  Ta-Ha Ayat 135
17 Al-Anbiya Ayat 1  Al Hajj Ayat 78
18 Al-Mu’minun Ayat 1  Al-Furqan Ayat 20
19 Al-Furqan Ayat 21  An-Naml Ayat 55
20 An-Naml Ayat 56  Al-Ankabut Ayat 45
21 Al-Ankabut Ayat 46  Al-Azhab Ayat 30
22 Al-Azhab Ayat 31  Yasin Ayat 27
23 Yasin Ayat 28  Az-Zumar Ayat 31
24 Az-Zumar Ayat 32  Fussilat Ayat 46
25 Fussilat Ayat 47  Al-Jatsiyah Ayat 37
26 Al-Ahqaf Ayat   Adz Dzariyat Ayat 30
27 Adz Dzariyat Ayat 31  Al-Hadid Ayat 29
28 Al-Mujadilah Ayat 1  At-Tahrim Ayat 12
29 Al-Mulk Ayat 1  Al-Mursalat Ayat 50
30 An-Naba’ Ayat 1  An-Nas Ayat 6