Saturday, June 20, 2020
SIMPEG Kota Batam Android rilis 1.1.1
Friday, April 17, 2020
DisdukcapilBisa Batam versi Android terpublis di Google Play

Ini adalah aplikasi pertamaku yg publis di Google Play, BTW. :D
Friday, September 22, 2017
Pamac 6.0, Aku Suka!
Friday, March 25, 2016
Tak Kenal Maka Tak Sayang
Perhatikan kode berikut:
/* Nama: pertama2.c */
#include <stdio.h>
void tampil ();
int main (int argc, char **argv)
{
ke = 2;
tampil (ke);
return 0;
}
void tampil (int program)
{
printf ("Program Ke-%d Bahasa C\n", program);
}
Ada yang salah dalam program di atas! Silahkan tulis kode di atas dan simpan dengan nama pertama2.c, kemudian compile
$ gcc -o pertama2 pertama2.c
Muncul:
pertama2.c: In function ‘main’:
pertama2.c:10:3: error: ‘ke’ undeclared (first use in this function)
ke = 2;
^
Artinya, variabel 'ke' dalam fungsi 'main' tidak dikenali. Jadi, harus kenalan dulu! :D
Bentuk deklarasi atau pengenalan variabel dalam C adalah sebagai berikut:[tipe] [nama_variable];
Adapun bentuk pengenalan fungsi dalam C adalah:
[tipe] [nama_fungsi] ([argumen]);
Tipe-tipe dasar dari variabel dan fungsi C adalah:
charkarakter, dapat dikembangkan menjadi bentuk teks (string).
sort, int, longbilangan desimal.
floatbilangan pecahan.
doublebilangan dengan presisi tinggi.
Sedangkan tipe
voiddigunakan untuk fungsi yang tidak memberikan nilai. Fungsi seperti ini disebut juga dengan prosedur.
Lalu, bagaimana seharusnya kode program pertama2.c di atas?
Monday, January 28, 2013
Ayo, Mulai Saja!
/* Nama: pertama1.c */
#include <stdio.h>
void tampil ();
int main (int argc, char **argv)
{
tampil ();
return 0;
}
void tampil ()
{
printf ("Program Pertama Bahasa C\n");
}
Saya menggunakan kata "biasanya" karena memang tidak harus i itu, he he he :D
Baiklah, kita bahas satu-satu.
/* Nama: pertama1.c */adalah bagaimana kita memberi komentar dalam kode program C. Semua yang diawali /* dan diakhiri */ adalah komentar, tidak peduli seberapa panjang atau seberapa banyak barisnya. Selain /* */, beberapa kompiler memperbolehkan penggunaan // untuk mengawali komentar dalam satu baris. Contoh:
// Bahasa C - oleh eshabeGunanya komentar adalah agar programer dapat memberi catatan pada program yang ia buat sehingga ia atau orang lain dapat lebih memahami / mengerti tentang program tersebut. Bayangkan, jika suatu program tidak ada catatannya. Jangankan orang lain, sang pembuat pun bakal bingung saat ia membukanya setahun kemudian.
Komentar tidak termasuk dalam program itu sendiri, diabaikan oleh pemroses program (compiler), jadi tidak usah pelit saat memberi catatan karena ukuran program biner tidak terpengaruh.
#include <stdio.h>adalah bagaimana kita memanggil kode program lain. Biasanya program yang dipanggil adalah kode yang berisi deklarasi fungsi atau konstanta.
void tampil ();adalah pendeklarasian fungsi tampil() yang ditulis belakangan.
int main (int argc, char **argv) { }adalah bagian utama program. Ya, ia adalah suatu fungsi! Suatu fungsi dalam C terdiri dari:
[tipe fungsi] [nama fungsi] ([argumen]) { [isi] }- Tipe fungsi bisa int, float, double, char, void, atau yang lain sesuai tipe data.
- Nama fungsi diawali oleh alfabet [1] dan terdiri dari alfanumerik dan garis bawah (underscore).
- Argumen berisi variabel yang akan dilewatkan pada fungsi tersebut.
- Isi? ya isi dari fungsi...
Khusus main(), tipe fungsi dapat berupa void, yang artinya abaikan. Kita tidak perlu memberi nilai 'return' saat mengakhiri fungi. Argumen juga bisa dikosongkan atau diisi 'void', artinya kita mengabaikannya!
Perhatikan! Isi selalu diapit dengan kurung kurawal buka tutup ({...}).
Jadi, bentuk berikut bisa jadi merupakan bentuk minimal dari program C:
main(){}Tapi bentuk di atas saat kita compile sering ditolak :) Coba saja bentuk ini:
int main(void){}Simpan kode program dengan nama pertama1.c!
Misalnya disimpan di /home/zuper/myc/, jalankan Terminal lalu ketik perintah-perintah berikut:
$ cd /home/zuper/myc/
$ gcc -o pertama1 pertama1.c
$ ./pertama1
Apa yang terjadi?
gcc -o pertama1 pertama1.c : compile kode program pertama1.c dan simpan hasilnya (program biner) dengan nama pertama1
Sunday, September 23, 2012
Agar Smartfren AndroMax Tab 7-mu Dikenali Oleh ADB (Android Debug Bridge) di Ubuntu Precise Pangoline (12.04)
"Perhatian! Pada bagian ini tidak menjelaskan cara rooting. Kamu saya anggap sudah mengerti bagaimana cara membuat/menyunting berkas teks di Linux, dan sudah menginstal ADB atau Android SDK"
- Tambahkan baris berikut ke dalam file /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="2207", MODE="0666", GROUP="plugdev" - Restart udev; sudo restart udev
- Tambahkan kode 0x2207 ke dalam file ~/.android/adb_usb.ini
- Tancapkan Smartfren AndroMax Tab 7 ke Ubuntu melalui USB
- Periksa dengan perintah $ adb devices
Saturday, September 22, 2012
Update Smartfren AndroMax Tab 7 ke 4.0.4
- Aktifkan "Auto check update" di AndroMax
- Unduh update.img. File update.img bisa didapatkan di forum kaskus. Ekstrak file zip / rar, ubah ke update.img
- Jika download tidak menggunakan AndroMax, copy update.img ke SDCARD. Bisa menggunakan AirDroid jika tidak punya kabel USB. Soalnya dalam paket pembelian kabel ini tidak disertakan.
- AndroMax akan memberi alert bahwa update system tersedia dan meminta kita untuk menginstal. Cukup dengan menyentuh "Install" maka system meng-update secara otomatis.
Wednesday, March 16, 2011
Program Pendukung
Lihat! Program-program pendukung yang disarankan adalah program gratis bahkan bebas (free software)!
Mengapa Bahasa C?
Hasil Yang Akan Dicapai
Jika akan membuat web maka bahasa yang utama adalah HTML. Bahasa C bisa digunakan sebagai generator HTML. C menjadi salah satu pilihan saat akan membuat software sistem, atau aplikasi. Penggunaan C tidak terbatas pada aplikasi desktop, aplikasi level kontroler atau prosesor pun bisa dibuat menggunakan bahasa ini.
Kemudahan Pembuatan
Ketika hasil yang akan dicapai sudah ditentukan, misalnya aplikasi desktop POS untuk lingkungan sistem operasi Linux, maka bahasa-bahasa seperti perl, assembly, PHP tidak mudah untuk digunakan. Sedangkan C masih menjadi salah satu pilihan.
Ketersediaan
C telah tersedia untuk berbagai platform komputer dan sistem operasi. Pengguna Windows, Linux, MacOS X dan lain-lain bisa dengan mudah mendapatkan alat bantu pemrograman dengan C baik itu yang berbayar maupun yang gratis, baik itu yang berlisensi tertutup maupun yang bebas, baik itu yang visual maupun yang ketik manual.
Thursday, May 6, 2010
What I like and dislike from Lucid Lynx (Ubuntu 10.4)
I like...
- Faster on boot and shutdown
- More simple GUI than before
- Latest Firefox version
- Indicator Applet Session's status is work for both Empathy and Pidgin
- Left side close window button
- All of my laptop hardware is just work out of box
I dislike....
- No GIMP, need to be installed
- OpenVPN network-manager-plugin is not work well yet
- Lesser games
- Gwibber
Saturday, September 26, 2009
dia : A program for drawing structured diagrams
Ubuntu, the most growing GNU/Linux distribution, provide an application named Editor Diagram (dia) as dia-gnome package. The -gnome sufix show this application is developed by GNOME team and to do in GNOME desktop environment.
Just install dia use apt-get command line or Synaptic, or "Add/Remove..."
After installation completed, the application can be found in Applications -> Graphics -> Editor Diagram Dia.
There are more than 30 diagrams every simbols are provided already; flow-chart, jigsaw, logic, ladder, electrics, electronics, Gane and Sarson (DFD) and so on.
dia's working file is saved with .dia suffix and it can be exported to many file formats; DXF, PNG, JPG dan SVG and so on.
Using Ubuntu Jaunty Jackalope - language-pack-id
Wednesday, May 6, 2009
Problem after update Ubuntu 8.04 Server software
$ sudo apt-get update && sudo apt-get upgrade
The process it self is ok, but my apache web server can not run.
$ sudo /etc/init.d/apache2 restart
Say error in /etc/apache2/sites-enabled/000-default.save
I remove the file then apache work fine again :)
Root without password in Ubuntu
prompt without a password.
I do not know, why Ubuntu team do this. But it was help me when I must
enter the admin functions but I do not know the admin user name and
password.
How to get in it?
When system is booting and prompt a GRUB menu, I press ESC key. Then I
select "Recovery mode". After the system show a selection action box, I
select "root". Than I get a sign: #
Sunday, February 8, 2009
Deleting Old Files In Linux
So, I try to read 'find' command manual. The command is "man find" (without double quotes) if you do not know :) then I found these option:
-atime n
File was last accessed n*24 hours ago. When find figures out
how many 24-hour periods ago the file was last accessed, any
fractional part is ignored, so to match -atime +1, a file has to
have been accessed at least two days ago.
-ctime n
File’s status was last changed n*24 hours ago. See the comments
for -atime to understand how rounding affects the interpretation
of file status change times.
-name pattern
Base of file name (the path with the leading directories
removed) matches shell pattern pattern. The metacharacters
(‘*’, ‘?’, and ‘[]’) match a ‘.’ at the start of the base name
(this is a change in findutils-4.2.2; see section STANDARDS CON‐
FORMANCE below). To ignore a directory and the files under it,
use -prune; see an example in the description of -path. Braces
are not recognised as being special, despite the fact that some
shells including Bash imbue braces with a special meaning in
shell patterns. The filename matching is performed with the use
of the fnmatch(3) library function. Don’t forget to enclose
the pattern in quotes in order to protect it from expansion by
the shell.
-delete
Delete files; true if removal succeeded. If the removal failed,
an error message is issued. If -delete fails, find’s exit sta‐
tus will be nonzero (when it eventually exits). Use of -delete
automatically turns on the -depth option.
So, with options combination I get a command:
$ find . -name 'backup_*.db' -ctime +30 -delete
That is! I put the command in my backup script than run by cron every weeks and my old files will be deleted just after backup is done.
Friday, October 17, 2008
Setup OpenVPN in Ubuntu
1st - ISP's Modem
Open firewall or port triggering: 1194 UDP
ThenVirtual Server, forward incoming connection 1194 port to my office computer's IP address.
2dn - Install OpenVPN
Office / Server: Ubuntu 8.04 (Hardy Heron) Server
Home / Client: Ubuntu 8.04 Desktop
Install openvpn in both computers:
sudo apt-get install openvpn3rd - Configure the server: (see HOWTO for more)
cd /etc/openvpncp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/ ./easy-rsa/cd easy-rsa(optionals)
nano ./varsChange the values:
export KEY_COUNTRY=ID export KEY_PROVINCE=KEPRIexport KEY_CITY=BATAMexport KEY_ORG="OpenVPN-TEST" export KEY_EMAIL="eshabe@gimail.com"(then):
source ./vars
./clean-all
./build-caPay attention in “Common Name”. Example answer: "myfirstvpn"
./build-key-server serverPay attention in...
“Common Name” - my answer is “server”
“Sign the certificate? [y/n]” - answer “y”
“1 out of 1 certificate requests certified, commit? [y/n]” - answer “y”
./build-key client1
./build-key client2
./build-key client3
./build-dhCopy key files:
cd /etc/openvpn
cp easy-rsa/keys/server.crt .
cp easy-rsa/keys/server.key .
cp easy-rsa/keys/ca.crt .
cp easy-rsa/keys/dh1024.pem .Copy example config file:
gunzip /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz4th - Configure the client
Copy key files:
cd /etc/openvpn
scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/client1.crt client.crt
scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/client1.key client.key
scp eshabe@125.x.x.x:/etc/openvpn/easy-rsa/keys/ca.crt ca.crtCopy example config file:
cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf .Edit config file:
nano client.confChange remote value:
remote 125.1.2.3 11945th - Try and activate
Try:
(server)
openvpn server.conf(client)
openvpn client.confYes!! openvpn is ready….
/etc/init.d/openvpn start
Sunday, October 5, 2008
HowTo: No waiting time in Ubuntu's GRUB
By default, Ubuntu display a GRUB menu and give us ten (10) seconds waiting time for user interaction. If you feel this waiting time is disturbing, you can remove the waiting time by edit the GRUB menu. Set 'timeout' value to 0 (zero).
From Terminal, type:
sudo nano /boot/grub/menu.lst
Change timeout value.
And, do not forget to activate hiddenmenu option. Why? By activating the option, although the timeout is 0 second, we can enter to the GRUB menu by pressing ESC key.
Save the file!
Create 'tar' file from a list
Example, when I want to create a tar file from path /home/eshabe/mydocs, I can use command: tar cvf mydoc.tar /home/eshabe/mydocs
But when I want to create a tar file from files:
/home/eshabe/mydocs/howto-create-tar-file-from-a-list
/etc/apache2/site-enables/000-default
/home/eshabe/mydocs/yes/i/am
/home/eshabe/.gnome2
...
?
I can create a tar file from command line: tar cvf mydoc.tar /home/eshabe/...
Another way is create a shell (sh) script to read a list file then create a tar file:
#!/bin/sh
# Create a 'tar' file from a list
n_program=`basename $0`
v_program=1.0.0d1
p_program=eshabe
t_program='2003.08.12'
RUNNAME='./shb-tarlist-run'
info_program ()
{
cat <<>
$n_program v$v_program
by: $p_program - $t_program
----------------------------------------------------------------------------
Function : create a tar file from a list file
Command : $nama_program LIST_FILE FILE.tar
LIST_FILE = a file contains list of files or directories
FILE.tar = result
pesan_program
}
if [ $# != 2 ]
then
info_program
exit
fi
printf "tar cvf $2 " > $RUNNAME
awk '{
printf "%s ", $0
}' $1 >> $RUNNAME
chmod a+x $RUNNAME
$RUNNAME
rm $RUNNAME
echo Done.




