Kisi-kisi Soal UTS dan UAS Elektronika Beserta Jawaban

SOAL A 1) Berikut ini yang termasuk komponen elektronika dengan jenis komponen pasif yaitu ....

Kisi-kisi Soal UTS dan UAS Sistem Terdistribusi Beserta Jawaban

SOAL A 1. Berikut ini yang merupakan karakteristik dari definisi sistem terdistribusi adalah ....

Remove Bios Password and Harddissk (HDD) Laptop

I think to remove the bios password on an average PC is already can, although without having to memorize the password. the system jumpers or removing battery bios. ever see a supervisor, admin, system, HDD, bios, setup password?

Memperbaiki Kick Starter Motor Matic

Motor Matic is a motor that is the easiest to use and most in our homeland. please note that the motor also takes care of very sensitive, just like a computer that also takes care of sensitive anyway.

Gejala Kerusakan Mesin Air Submersible Metabo

Mesin Air Submersible atau yang sering disebut kebanyakan orang (satelit) ini sangat bagus, dengan sistemnya yang canggih dan fleksible. tipe mesin yang berbasis kerja di dalam tanah dan hanya menggunakan satu pipa ini, sangat berguna untuk anda yang memiliki banyak lumpur atau air kuning setelah pengeboran.

02 February 2020

How to fix You can also run `php --ini` inside terminal to see which files are used by PH P in CLI mode

You have any problem with this since install laravel with composer install, let's see

  Problem 1
    - intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.9 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.7 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.6 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.5 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.3 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.2 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.14 requires ext-fileinfo * -> the requested PHP ext
ension fileinfo is missing from your system.
    - intervention/image 2.3.13 requires ext-fileinfo * -> the requested PHP ext
ension fileinfo is missing from your system.
    - intervention/image 2.3.12 requires ext-fileinfo * -> the requested PHP ext
ension fileinfo is missing from your system.
    - intervention/image 2.3.11 requires ext-fileinfo * -> the requested PHP ext
ension fileinfo is missing from your system.
    - intervention/image 2.3.10 requires ext-fileinfo * -> the requested PHP ext
ension fileinfo is missing from your system.
    - intervention/image 2.3.1 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.2.2 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.2.1 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - intervention/image 2.2.0 requires ext-fileinfo * -> the requested PHP exte
nsion fileinfo is missing from your system.
    - Installation request for intervention/image ~2.2 -> satisfiable by interve
ntion/image[2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.13, 2
.3.14, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.4.0].

  To enable extensions, verify that they are enabled in your .ini files:
    - F:\xampp\php\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.



This you must to go to your php.ini and edit it in commented line:
; Laravel drop comment
extension=php_fileinfo.dll

drop the comment in
;extension=php_fileinfo.dll
to be
extension=php_fileinfo.dll

Then save it and go again with composer install in you directory with terminal or cmd
Share:

How To Make String, Char, Varchar To be Auto Increment in MySQL with PHP

Making varchar or string or char to be automatically add as auto increment, is't impossible?

Yah inilah yang dicari-cari selama ini jika anda ingin menambahkan atau membuat primary key dalam table dari tipe data char/ varchar/ string lalu ingin menjadikannya otomatis layaknya auto increment, berikut ini adalah salah satu contoh jika anda membuat primary key secara otomatis menambahkan kode sesuai dengan keinginan kita atau sering disebut dengan custom.

Kita asumsikan membuat ini dengan Framework dengan memiliki 1 tabel dengan format berikut:

CREATE TABLE `tb_supplier` (
  `id_supplier` char(5) NOT NULL,
  `nm_supplier` varchar(20) DEFAULT NULL,
  `no_hp` varchar(12) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id_supplier`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of tb_supplier
-- ----------------------------
INSERT INTO `tb_supplier` VALUES ('S0001', 'Supervisor', '1238123', 'email@gmail.com');
INSERT INTO `tb_supplier` VALUES ('S0002', 'minyak', '08998600083', 'justpoypoy@gmail.com');




kemudian buatlah sebuah class dalam Models seperti ini

function kodebaru() {
        $q = $this->db->query("SELECT id_supplier, substr(id_supplier, 2, 4) as id_baru FROM tb_supplier ORDER BY id_supplier DESC LIMIT 1") -> row();
        if(!empty($q)){
            $f = str_replace($q->id_supplier, 'S', '5.'.$q->id_baru);
            $b = (float)$f+0.0001;
            if(strlen(utf8_decode($b))==6){
                $k = substr($b,2,4);
            }else if(strlen(utf8_decode($b))==5){
                $t = str_replace($b, $b, $b.'0');
                $k = substr($t,2,4);
            }else if(strlen(utf8_decode($b))==4){
                $t = str_replace($b, $b, $b.'00');
                $k = substr($t,2,4);
            }else if(strlen(utf8_decode($b))==3){
                $t = str_replace($b, $b, $b.'000');
                $k = substr($t,2,4);
            }else{
                $k = 'err';
            }
         
            $kb = 'S'.$k;
        }else{
            $kb = 'S0001';
        }
        return $kb;
        }



Setelah itu masukkan dalam Controllers

          $this->data['row']   = $this -> M_supplier -> kodebaru();
          $this -> load -> view('your template',$this -> data);


Yang paling terakhir masukkan dalam Views untuk form tambah atau Add seperti ini


               
               



Dan hasilnya pasti akan sesuai dengan format yang ada, alasan kenapa menggunakan float yaitu titik beratnya pada banyaknya nol yang harus selalu ada. jika dirubah dengan integer maka nol tersebut akan hilang, kemudian ada rules tambahan yang membuatnya sempurna.
Semoga dapat bermanfaat.

Call us to make it's easy for making web. Thank you
Share:

Cara Membuat Traffic Light Sederhana dengan Visual Basic

Siapkan VB dan langsung meluncur membuat form seperti ini:



Setelah itu pastikan code-nya seperti ini
Private Sub Command1_Click()
Timer1.Interval = Text3.Text
Timer2.Interval = Text1.Text
Timer3.Interval = Text2.Text
Timer1.Enabled = True
End Sub

Private Sub Command2_Click()
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Shape2.FillColor = &H808080
Shape3.FillColor = &H808080
Shape4.FillColor = &H808080
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
End Sub

Private Sub Timer1_Timer()
If Shape2.FillColor = &H808080 Then
Shape2.FillColor = &HFF&
Shape3.FillColor = &H808080
Shape4.FillColor = &H808080
End If
Timer1.Enabled = False
Timer2.Enabled = True
Timer3.Enabled = False
End Sub

Private Sub Timer2_Timer()
If Shape3.FillColor = &H808080 Then
Shape2.FillColor = &H808080
Shape3.FillColor = &HFFFF&
Shape4.FillColor = &H808080
End If
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = True
End Sub

Private Sub Timer3_Timer()
If Shape4.FillColor = &H808080 Then
Shape2.FillColor = &H808080
Shape3.FillColor = &H808080
Shape4.FillColor = &HFF00&
End If
Timer1.Enabled = True
Timer2.Enabled = False
Timer3.Enabled = False
End Sub



Semoga dapat mengembangkannya ya.
Share:

Cara Membuat Kalkulator sederhana dengan Visual Basic

Siapkan VB dan langsung meluncur membuat form seperti ini



Setelah itu pastikan code-nya seperti ini
Private Sub clear_Click(Index As Integer)
bil1.Text = ""
bil2.Text = ""
hasil.Text = ""
End Sub

Private Sub kali_Click()
hasil.Text = Val(bil1.Text) * Val(bil2.Text)
End Sub

Private Sub bagi_Click()
hasil.Text = Val(bil1.Text) / Val(bil2.Text)
End Sub

Private Sub tambah_Click()
hasil.Text = Val(bil1.Text) + Val(bil2.Text)
End Sub

Private Sub kurang_Click()
hasil.Text = Val(bil1.Text) - Val(bil2.Text)
End Sub

Private Sub keluar_Click()
Unload Me
End Sub



Semoga dapat mengembangkannya ya.
Share:

29 January 2020

Kumpulan Materi Sistem Digital

Tunggu ya
Share:

07 February 2017

Cara Memasang Keywords dengan Meta di Blogger

Sebenernya mesin pencari sudah tidak lagi menggunakan meta keywords sebagai salah satu faktor penentu rangking. Tapi bagi sobat yang tetap kepengin memasang meta keywords di blogger, di bawah ini adalah tutorialnya. Ada dua jenis meta keywords yang bisa digunakan di blogger. Pertama meta keywords otomatis dan yang kedua meta keywords manual.
Cara memasang meta keywords otomatis
<b:if cond='data:blog.homepageUrl == data:blog.url'><meta expr:content='data:blog.title' name='keywords'/></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><meta expr:content='data:blog.pageName' name='keywords'/></b:if>
Cara memasang meta keywords manual
<b:if cond='data:blog.homepageUrl == data:blog.url'>
<meta content='Katakunci1, Katakunci1, Katakunci1' name='keywords'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta content='Katakunci2, Katakunci2, Katakunci2' name='keywords'/>
</b:if>
  • Ganti Katakunci1 dengan kata kunci untuk halaman depan blog sobat
  • Ganti Katakunci2 dengan kata kunci untuk halaman postingan blog sobat


Jika menggunakan cara di bawah ini, kata kunci pada meta keywords akan otomatis mengambil dari judul blog dan juga judul postingan.
#1. Login ke blogger.com dan masuk ke dashboard blog sobat.
#2. Klik menua “Template
#3. Klik “Edit HTML
#4. Letakan kode di bawah ini tepat di bawah kode <head>:
#5. Jika sudah, klik “Simpan template
Meta keywords manual
Meta keywords manual artinya sobat harus memasukan kata kunci secara manual pada kode meta keywords.
#1. Login ke blogger.com dan masuk ke dashboard blog sobat.
#2. Klik menua “Template
#3. Klik “Edit HTML
#4. Letakan kode di bawah ini tepat di bawah kode <head>
<b:if cond='data:blog.homepageUrl == data:blog.url'>
 <meta content='Katakunci1, Katakunci1, Katakunci1' name='keywords'/>
</b:if>    
<b:if cond='data:blog.pageType == &quot;item&quot;'>
 <meta content='Katakunci2, Katakunci2, Katakunci2' name='keywords'/>
</b:if>
#5. Jika sudah, klik “Simpan template
Begitulah kira-kira tutorial mudah dan nggak pakai ribet tentang cara memasang meta keywords di blogger.com. Mudah-mudahan bermanfaat.
Share:

Blog Archive