Kamis, 22 Oktober 2015

Belajar PHP Dasar



Materi Pertama
Kalkulator 1 ( Menggunakan Text Field)







Gunakan Script Proses di bawah ini

Script Penjumlahan :
<?php
if(isset($_POST["Tambah"])){
      $bil1=$_POST["bil1"];
      $bil2=$_POST["bil2"];
      $hasil=$bil1+$bil2;
echo"Jika<font color='red'> $bil1 </font> ditambah <font color='red'> $bil2 </font> Maka Hasilnya <font color='blue'> $hasil </font>";
 }
?>

NB :
1. Script  Matemetika
    Rumus Pengurangan $hasil=$bil1-$bil2;
    Rumus Perkalian      $hasil=$bil1*$bil2;
    Rumus Pembagian    $hasil=$bil1/$bil2;
    Rumus Pembagian    $hasil=pow($bil1/$bil2;)
    Rumus Akar             $hasil=$bil1+$bil2;
                                   $hasil=sqrt($hasil);

2. Script Tampil Bilangan Dalam Form inputan
    echo"<script>document.form_mtk.bil1.value=$bil1;
                        document.form_mtk.bil2.value=$bil2;
                        document.form_mtk.hasil.value=$hasil;
            </script>";

Workshop


Sintak Link, Loading Android

////////////////////////////// Link

public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
        finish();
                return true;
        }
    return super.onKeyDown(keyCode, event);

////////////////////////////// Loding

 public void setSplash(){
    final ProgressDialog myProgressDialog = ProgressDialog.show(Loding.this, "Loding", "Mohon Tunggu...", true);
    new Thread() {
     public void run() {
        try{Thread.sleep(5000);}
        catch (Exception e) {}
              Intent i = new Intent(Loding.this, Login.class);
              myProgressDialog.dismiss();
              finish();
              startActivity(i);
       } }.start();
    }

/////////////////////////////////// Link Button

 ImageButton btnDefinisi= (ImageButton) findViewById(R.id.btnDefinisi);
        btnDefinisi.setOnClickListener(new View.OnClickListener() {
        @Override
               public void onClick(View arg0) {
        Intent  call= new Intent(getBaseContext(), InputNama.class);
        startActivity(call);        
        }});
//.............................................. Link  Keluar

ImageButton btnKeluar= (ImageButton) findViewById(R.id.btnExit);
        btnKeluar.setOnClickListener(new View.OnClickListener() {
        @Override
               public void onClick(View arg0) {
        keluarYN();
        }});  
//................................................

public void keluar(){
    new AlertDialog.Builder(this)
.setTitle("Menutup Aplikasi")
.setMessage("Terimakasih... Anda Telah Menggunakan Aplikasi Ini")
.setNeutralButton("Tutup", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dlg, int sumthin) {
finish();
}})
.show();
    }
    public void keluarYN(){
    AlertDialog.Builder ad=new AlertDialog.Builder(MenuUtama.this);
            ad.setTitle("Konfirmasi");
            ad.setMessage("Apakah benar ingin keluar?");
           
            ad.setPositiveButton("Ya",new OnClickListener(){
        @Override
    public void onClick(DialogInterface dialog, int which) {
    keluar();
    }});
           
            ad.setNegativeButton("Tidak",new OnClickListener(){
        public void onClick(DialogInterface arg0, int arg1) {
        }});
           
            ad.show();
    }

///////////  Tulisan Berjalan

<TextView
    android:id="@+id/txtMarquee"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_x="3px"
    android:layout_y="4px"
    android:background="#000000"
    android:ellipsize="marquee"
    android:marqueeRepeatLimit="marquee_forever"
    android:singleLine="true"
    android:text="Wellcome Here"
    android:textColor="#ffffff"
    android:textSize="14sp"
    android:typeface="sans" >

</TextView>


   void callMarquee(){
  Calendar cal = Calendar.getInstance();          
  int jam = cal.get(Calendar.HOUR);
  int menit= cal.get(Calendar.MINUTE);
  int detik= cal.get(Calendar.SECOND);

  int tgl= cal.get(Calendar.DATE);
  int bln= cal.get(Calendar.MONTH);
  int thn= cal.get(Calendar.YEAR);

  String stgl=String.valueOf(tgl)+"-"+String.valueOf(bln)+"-"+String.valueOf(thn);
  String sjam=String.valueOf(jam)+":"+String.valueOf(menit)+":"+String.valueOf(detik);
 
  TextView  txtMarquee=(TextView)findViewById(R.id.txtMarquee);
  txtMarquee.setSelected(true);
  String kata="Selamat Datang di Aplikasi Android  Sistem Pakar Pendeteksian Penyakit Kista /"+stgl+"/"+sjam+" #";
  String kalimat=String.format("%1$s",TextUtils.htmlEncode(kata));
  txtMarquee.setText(Html.fromHtml(kalimat+kalimat+kalimat));
  }

Minggu, 22 Maret 2015

Cara Instal ArcView

kadang anda bingung cara instalasi aplikasi yang tidak bisa di instal di windows 8 atau versi lainya ini ada cara instalasi arcView dengan cara kompatible.

cara intalasi di windows 8 pro 64bit - x64
·         pertama download file ini (ESRI)dan letakan pada drive C:\
·         unduh file kedua ini (ESRI 1)dan letakan pada driveC:\Program Files (x86)\Common Files
·         setelah semua tercopy maka buka C:\ESRI\AV_GIS30\ARCVIEW\BIN32 dan klik pada arcview application
·         setelah itu jalan reg ini ( unduh dulu disini ) . klik 2x untuk menjalankan.

cara instalasi di windows 8 pro 32bit - x86
·         download instaler arcview
·         ekstract file download anda, cari file setup.exe
·         klik kanan properties - compatible - centang - dan pilih windows 98/Me/2000

·         sekarang install ( klik 2 kali setup.exe )

Kamis, 19 Maret 2015

Cara Install Microsoft Office 2010 di Windows XP SP2

Tertarik dengan office 2010, tapi sungguh sayang tidak mendukung XP SP2. Tapi dengan sedikit permak, semoga keinginan anda terwujud, tentunya dengan membaca artikel ini sampai selesai. Sebagai gambaran kita harus install Microsoft Core XML Services (MSXML 6.10.1129.0) dan juga melakukan hack registry agar XP SP2 kita dikenali XP SP3.
Pertama kali yang diperlukan adalah Microsoft Core XML Services (MSXML 6.10.1129.0) bisa di download  disini atau  di sini.
Pastikan langkah-langkah dengan betul.
Langkah kerja : 
1. Pertama Install MSXML 6 yang telah anda download.
2. Setelah selesai langkah pertama, masuk ke REGEDIT (klik RUN di start menu, ketik regedit, tekan enter)
3. Cari lokasi HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Windows
4. Ubah/klik 2 kali value key CSDVersion dari 200 menjadi  300 , agar XP SP2 anda di kenali XP SP3 (info: 300 = SP3, 200 = SP2 )
5. Restart Komputer Anda.
6. Sekarang Install  Office 2010, pastikan keberhasilan anda dan restart
7. Selanjutnya  ulangi langkah 2 – 4 ubah kembali value CSDVersion ke 200 untuk mengembalikan ke SP 2 lagi.

8. Selesai

Pentingoffice 2010  menggunakan Microsoft Core XML Services  Version 6.10.1129.0, lengkap dapat  juga download disini.

LP2M ARAY PUSAT

Office Lp2m Aray
Jl. Raya Lenteng Agung Timur No. 6
Kec. JagaKarsa Srengseng Sawah, Kab. Jakarta Selatan, Prov. Jawa Barat
Kode Post. 12640, Telp (021)92771708, Telp / Fax Araycomp(021)78889003
Services ArayComp

Minggu, 01 Juni 2014

APT Repository for Old Ubuntu Releases




APT Repository for Old Ubuntu Releases

To get back on the repository train, edit your /etc/apt/sources.list and
replace all instances of archive.ubuntu.com and security.ubuntu.com with the very fitting old-releases.ubuntu.com. After that, run sudo apt-get update and watch the repository indexes roll in!

Here is an example of an updated /etc/apt/sources.list for Ubuntu 6.06 (Dapper):
## Uncomment the following two lines to fetch updated software from the network
deb http://old-releases.ubuntu.com/ubuntu dapper main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://old-releases.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://old-releases.ubuntu.com/ubuntu dapper universe
deb-src http://old-releases.ubuntu.com/ubuntu dapper universe

deb http://old-releases.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu dapper-security main restricted

deb http://old-releases.ubuntu.com/ubuntu dapper-security universe
deb-src http://old-releases.ubuntu.com/ubuntu dapper-security universe

deb http://old-releases.ubuntu.com/ubuntu dapper multiverse
deb-src http://old-releases.ubuntu.com/ubuntu dapper multiverse

deb http://old-releases.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse


local network repository:

deb http://192.168.0.10/ubuntu hardy main restricted universe multiverse

deb http://192.168.0.10/ubuntu hardy-updates main restricted universe multiverse

deb http://192.168.0.10/ubuntu hardy-security main restricted universe multiverse

Extra Repositories

In addition to the officially supported package repositories available for Ubuntu, there exist additional community-maintained repositories which add thousands more potential packages for installation. Two of the most popular are the Universe and Multiverse repositories. These repositories are not officially supported by Ubuntu, but because they are maintained by the community they generally provide packages which are safe for use with your Ubuntu computer.

Packages in the Multiverse repository often have licensing issues that prevent them from being distributed with a free operating system, and they may be illegal in your locality.

Be advised that neither the Universe or Multiverse repositories contain officially supported packages. In particular, there may not be security updates for these packages.
Many other package sources are available, sometimes even offering only one package, as in the case of package sources provided by the developer of a single application. You should always be very careful and cautious when using non-standard package sources, however. Research the source and packages carefully before performing any installation, as some package sources and their packages could render your system unstable or non-functional in some respects.
By default, the Universe and Multiverse repositories are enabled but if you would like to disable them edit /etc/apt/sources.list and comment the following lines:
deb http://archive.ubuntu.com/ubuntu hardy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy universe multiverse