Hello ENGINEER, Welcome to Electrical's Corner

April 11, 2015

Lirik Lagu Marry Your Doughter - Brian mcknight

Sir, I’m a bit nervous
‘Bout being here today
Still not real sure what I’m going to say
So bare with me please
If I take up too much of your time.
See in this box is a ring for your oldest.
She’s my everything and all that I know is
It would be such a relief if I knew that we were on the same side
Very soon I’m hoping that I…
Can marry your daughter
And make her my wife
I want her to be the only girl that I love for the rest of my life
And give her the best of me ’till the day that I die, yeah
I’m gonna marry your princess
And make her my queen
She’ll be the most beautiful bride that I’ve ever seen
Can’t wait to smile
When she walks down the aisle
On the arm of her father
On the day that I marry your daughter
She’s been hearing for steps
Since the day that we met (I’m scared to death to think of what would happen if she ever left)
So don’t you ever worry about me ever treating her bad
I’ve got most of my vows done so far (So bring on the better or worse)
And ’till death do us part
There’s no doubt in my mind
It’s time
I’m ready to start
I swear to you with all of my heart…
I’m gonna marry your daughter
And make her my wife
I want her to be the only girl that I love for the rest of my life
And give her the best of me ’till the day that I die, yeah
I’m gonna marry your princess
And make her my queen
She’ll be the most beautiful bride that I’ve ever seen
I can’t wait to smile
As she walks down the aisle
On the arm of her father
On the day that I marry your daughter
The first time I saw her
I swear I knew that I say I do
I’m gonna marry your daughter
And make her my wife
I want her to be the only girl that I love for the rest of my life
And give her the best of me ’till the day that I die
I’m gonna marry your princess
And make her my queen
She’ll be the most beautiful bride that I’ve ever seen
I can’t wait to smile
As she walks down the aisle
On the arm of her father
On the day that I marry your daughter

Just Info :)

Assalamualaikum Wr.Wb

hai guysssssssss, laras mau cerita nih.. hobi laras itu nyanyi..nah, walaupun suara ga bagus-bagus amat ni yaaa, tapi gapapa..belajar terus sampai selevel kayak mbak ariana grande, mbak taylor swift, dll. aamiin wkwkwk. nah, hobi nyanyi laras ini ga laras pendem ajaa loh.. laras punya akun soundcloud guyss follow yaa akun laras namanya : laras hanisa putri. soundcloud itu web tempatnya orang orang yang suka musik.. disini kita bisa merekam suara kita, musikalisasi, dll. nah, bagus banget nih buat publish hobi musik kalian disini.. gapapa jelek kan bukan artis juga dan hak hak tiap manusia dong ngelakuin apa yang dia suka selama ga berlebihan ya kaaaaaaaaaan:) gausah malu guys... ayo buat akun soundcloud:)

April 05, 2015

Parsing Data - C# di Visual Studio 2012

Assalamualaikum Wr.Wb

hai guys, laras mau sharing lagi nih. kali ini soal tugas laras.. yaitu parsing data tentunya memakai strings :)  laras kasih tau ni ya protocol komunikasi di internet itu sangat bergantung pada format teks loh guys. Ketika temen-temen melakukan browsing ke google.com, maka yang terjadi adalah pertukaran string teks terus-menerus antara router-router sampai dengan server google. wuhuuuuuu panjang sangat prosedurnya :D

Sebagai contoh adalah protokol TCP yang memiliki format sebagai berikut:





Misalnya awal dari protokol ditandai dengan karakter “abcde”, akhir dari satu paket protokol ditandai dengan flag “edcba”. Kemudian 2 byte berikutnya menunjukkan source port, diikuti 2 byte destination address. Lalu HLEN sebanyak 5 byte yang menunjukkan banyaknya data. Setelah itu data sebanyak HLEN. Terdapat trailer 4 byte, sebelum ditutup CRC 4 byte. Buat program untuk memisah-misahkan satu paket protokol. Misalnya data yang diterima dari internet sebagai berikut:



Program anda harus bisa mengambil satu paket protokol yang ditandai dengan flag awal dan akhir protokol. Kemudian memisah-misahkan source port, destination port, data dan trailer.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace parsingdata
{
    public partial class Form1 : Form
    {
        string contoh;
        private int sourceport = 2, destinationport = 2, hlen = 5, crc = 4, data = 15, trailer = 4, index;
        int z;
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
             
        }

        private void button1_Click(object sender, EventArgs e)
        {
            z = 1;
            button1.BackColor = Color.Red;
            button2.BackColor = Color.White;
            button3.BackColor = Color.White;

            contoh = label2.Text;
            int awal = contoh.IndexOf("abcde");
            int akhir = contoh.LastIndexOf("edcba");
            textBox1.Text = contoh.Substring(awal, akhir);

            if (z == 1)
            {
                button1.BackColor = Color.White;
                button2.BackColor = Color.Red;
                button3.BackColor = Color.White;

                textBox3.Text = contoh.Substring(13);
                textBox4.Text = contoh.Substring(15);
                textBox5.Text = contoh.Substring(22);
                textBox8.Text = contoh.Substring(17);
                textBox7.Text = contoh.Substring(37);
                textBox6.Text = contoh.Substring(41);
            }
        }

            private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
            {
            System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
            }
        }
    }


sekian yaa sharingnya :) terimakasih semoga bermanfaat :)

wassalamualaikum Wr.Wb