Wednesday, 15 February 2017

Visual Basic .NET

VB .NET adalah sebuah tool pemrograman yang digunakan untuk mengembangkan dan membangun aplikasi yang bergerak diatas sistem Framework .NET.

Bahasa pemrograman yang digunakan dalam VB .NET berupa Visual Basic, C#, C++, Jscript, and COBOL, dll.

Terdapat bermacam-macam tipe data yang dimiliki VB .NET; seperti Boolean, Byte, Char, Date, Decimal, Double, Integer, Long, Object, SByte, Short, Single, String, UInteger, ULong, User-Defined, dan UShort.

Deklarasi dalam VB .NET ada berupa:

  1. Dim Statement
    Contoh:
    Dim number As Integer
    Dim quantity As Integer = 100
    Dim message As String = "Hello!"
    
    
  2. Const Statement
    Contoh:
    Const maximum As Long = 1000
    Const naturalLogBase As Object = CDec(2.7182818284)
    
    
  3. Enum Statement
    Contoh:
    Enum CoffeeMugSize
        Jumbo
        ExtraLarge
        Large
        Medium
        Small
    End Enum
    
    
  4. Class Statement
    Contoh:
    Class Box
    Public length As Double
    Public breadth As Double   
    Public height As Double
    End Class
  5. Structure Statement
    Contoh:
    Structure Box
    Public length As Double           
    Public breadth As Double   
    Public height As Double
    End Structure
  6. Module Statement
    Contoh:
    Public Module myModule
    Sub Main()
    Dim user As String = 
    InputBox("What is your name?") 
    MsgBox("User name is" & user)
    End Sub 
    End Module
  7. Interface Statement
    Contoh:
    Public Interface MyInterface
        Sub doSomething()
    End Interface
  8. Function Statement
    Contoh:
    Function myFunction
    (ByVal n As Integer) As Double 
        Return 5.87 * n
    End Function
Loop Statement
Sebuah loop statement membebaskan pengguna untuk mengeksekusi satu atau lebih statement berulang kali. Berikut adalah beberapa tipe loop:
  1. Do Loop
    Melakukan pengulangan selama boolean dalam kondisi True atau sampai kondisi boolean menjadi true, dapat dihentikan kapanpun dengan statement Exit Do.
  2. For...Next
    Mengulang sekelompok statement sesuai dengan jumlah pengulangan (loop index) yang telah ditentukan.
  3. For Each...Next

  4. While... End While
    Mengeksekusi serangkaian pernyataan selama kondisinya masih True.
  5. With... End With
Function Statement
Statement ini digunakan untuk menggabungkan berbagai macam statement (selain function) dalam satu fungsi, sehingga hanya perlu memanggil fungsinya saja jika diperlukan.
  1. Function yang mengembalikan nilai
    Terdapat dua cara function mengembalikan nilai:
    - Menggunakan return statement.
    - Mengarahkannya ke function lain.
  2. Recursive Function
    Adalah function yang memanggil dirinya sendiri, sering digunakan pada algoritma matematika.
Daftar Pustaka:
  • https://id.wikipedia.org/
  • http://www.slideshare.net/ifannuddin1/1-pengenalan-visual-basic-net-pemrograman-i
  • https://www.tutorialspoint.com/vb.net/
  • https://msdn.microsoft.com/en-us/library/
  • https://www.dotnetperls.com/

Framework .NET

Framework .NET adalah suatu lingkungan kerja untuk memudahkan pengembangan dan eksekusi berbagai macam bahasa pemrograman dan kumpulan library yang mensupport pengembangan berbagai macam jenis aplikasi berbasis Windows.

Kegunaan dari Framework .NET

  • Menyediakan lingkungan pemrograman berorientasi objek.
  • Menyediakan lingkungan untuk menjalankan suatu kode yang meminimalisir konflik saat software deployment disebarkan.
  • Menyediakan lingkungan untuk menjalankan suatu kode yang menjamin keamanan saat kode dijalankan.
  • Menyediakan lingkungan untuk menjalankan suatu kode yang dapat mengeliminasi masalah performa dari lingkungan scripted dan interpreted.
  • Membuat pengembang memiliki pengalaman yang konsisten dalam berbagai tipe aplikasi berbasis Windows dan aplikasi berbasis Web.

Arsitektur Framework .NET

Terdapat dua komponen utama dalam Framework .NET yaitu Common Language Runtime (CLR) dan .NET Framework Class Library.

Common Language Runtime (CLR) adalah komponen Framework .NET yang bertanggung jawab dalam melakukan manajemen memori, eksekusi kode, verifikasi terhadap keamanan kode, kompilasi kode, dan sebagainya.

Daftar Pustaka:
  • https://en.wikipedia.org/
  • http://sahidrudy.blogspot.co.id/2013/04/pengertian-net-framework-kegunaan-dan.html
  • http://internetpti.blogspot.co.id/2011/11/penjelasan-mengenai-microsoftnet_30.html
  • http://mypctutorel.blogspot.co.id/2013/12/pengertian-cara-kerja-dan-fungsi.html
  • http://programminginaction.blogspot.co.id/2013/04/tentang-framework-net.html

Wednesday, 29 May 2013



Numb
by Linkin Park

I'm tired of being what you want me to be
Feeling so faithless, lost under the surface
I don't know what you're expecting of me
Put under the pressure of walking in your shoes

(Caught in the undertow just caught in the undertow)
Every step that I take is another mistake to you
(Caught in the undertow just caught in the undertow)

I've become so numb I can't feel you there
Become so tired so much more aware
I'm becoming this all I want to do
Is be more like me and be less like you

Can't you see that you're smothering me?
Holding too tightly, afraid to lose control
'Cause everything that you thought I would be
Has fallen apart right in front of you

(Caught in the undertow just caught in the undertow)
Every step that I take is another mistake to you
(Caught in the undertow just caught in the undertow)
And every second I waste is more than I can take

I've become so numb I can't feel you there
Become so tired so much more aware
I'm becoming this all I want to do
Is be more like me and be less like you

And I know I may end up failing too
But I know you were just like me
With someone disappointed in you

I've become so numb I can't feel you there
Become so tired so much more aware
I'm becoming this all I want to do
Is be more like me and be less like you

I've become so numb I can't feel you there
I'm tired of being what you want me to be
I've become so numb I can't feel you there
I'm tired of being what you want me to be

Sunday, 26 May 2013

The Dangerous of Smoking


The Dangerous of Smoking

Until now there are still many people that keep smoking. But we think if everyone knows that smoking is dangerous for health. Why smoking is dangerous? Before we are going to smoke, it’s better to look at the fact. A 2004 study by the CDCs National Center for Chronic Disease Prevention and Health Promotion found that cigarette smoke contains over 4,800 chemicals, 69 of which are known to cause cancer. Nearly a quarter of smokers die because of diseases caused by smoking. Adult male smokers lose an average of 13.2 years of life and female smokers lose 14.5 years of life because smoking, and given dieases cause, it can steal your quality of life long before you die.
90% of lung cancers are caused by smoking. Secondhand smoke also causes about 35,000 deaths from heart disease in people who are not smokers. If we smoke five cigarettesa a day, the risk is 19 greater. 95% of people who suffer of bronchitis are people who are smoking. Smokers are two and half times more likely to die of heart disaese than non-smokers. Additionally, children of smoker are more likely develop bronchitis and pneumonia. In one hour in smoke room, non-smoker breathes as much as substance causing cancer as if he had smoked 15 cigarettes. Smoking isn’t good for smokers and people around smokers. However smoking is very good for Cigarettes Companies. Because they’ve much money from smoking habit. However smoking isn’t good for everyone else.

Once You Start, It’s Hard to Stop
Smoking is a hard habit to break because tobacco contains nicotine, which is highly addictive. Like heroin or other addictive drugs, the body and mind quickly become so used to the nicotine in cigarettes that a person needs to have it just to feel normal. People start smoking for a variety of different reasons. Some think it looks cool and others start because their family members or friends smoke. Statistics show that about 9 out of 10 tobacco users start before they’re 18 years old. Most adults who started smoking in their teens never expected to become addicted. That’s why people say it’s just so much easier to not start smoking at all.

How Smoking Affect Your Health
There aren’t physical reasons to start smoking. The body doesn’t need tobacco the way it needs food, water, sleep and exercise. And many of the chemicals in cigarettes, like nicotine and cyanide, are actually poisons that can kill in high enough doses.
The body is smart. It goes on the defense when it’s being poisoned. First-time smokers often feel pain or burning in the throat and lungs and some people feel sick or even throw up the first few times they try tobacco.
The consequences of this poisoning happen gradually. Over the long term, smoking leads people to develop health problems like heart disease, stroke, emphysema (breakdown of lung tissue), and many types of cancer : including lung, throat, stomach and bladder cancer. People who smoke also have an increased risk of infection like bronchitis and pneumonia.
These diseases limit a person’s ability to be normally active and they can be fatal. In the United States, smoking is responsible for about 1 out of 5 deaths.
Smokers not only develop wrinkles and yellow teeth, they also lose bone density, which increases their risk of osteoporosis, a condition that causes older people to become bent over and their bones to break more easily. Smokers also tend to be less active than non-smokers because smoking affects lung power.
The consequences of smoking may seem very far off, but long-term health problems aren’t the only hazard of smoking. Nicotine and the other toxins in cigarettes, cigars, and pipes can affect a person’s body quickly, which means that teen smokers experience many of these problems :
1.     Bad skin. Because smoking can slow the flow of blood vessels, it can prevent O2 and nutrients from getting to the skin, which is why smokers often appear pale and unhealthy. Studies have also linked smoking to an increased risk of getting a type of skin rash called psoriasis
2.  Bad breath. Cigarettes leave smokers with a condition called halitosis, or persistent bad breath.
3.  Bad-smelling clothes and hair. The smell of stale smoke tends to linger; not just on people’s clothing, but on their hair, furniture, and cars. And it’s often hard to get the smell of smoke out.
4.  Reduced athletic performance. People who smoke usually can’t complete with non-smoking peers because the physical effects of smoking (like rapid heartbeat, descreased circulation, and shortness of breath) impair sports performance.
5.  Greater risk of injury and slower healing time. Smoking affects the body’s ability to produce collagen, so common sport injuries, such as damage to tendons and ligaments, will heal more slowly in smokers than non-smokers.
6.  Increased risk of illness. Studies show that smokers get more colds, flu, bronchitis and pneumonia than non-smokers. And people with certain health condition, like asthma, become more sick if they smoke (and often if they’re just around people who smoke). Beause teens who smoke as a way to manage weight often light up instead of eating, their bodies also lack the nutrients they need to grow, develop and fight off illness properly.

Hookahs and E-Cigarettes
It’s not only cigarettes that get people dependent on tobacco. Hookahs, staples of Middle Eastern cafe society, are water pipes used to smoke tobacco through a hose with a tapered mouthpiece. There’s a myth going around that hookahs are safer because the smoke is cooled whan it passes through the water.
But take a look at the black, resinous gunk that builds up in a hookahs hose. Some of that gets into user’s mouth and lungs. Indeed, expect say hookahs aren’t safer than cigarettes; and since they don’t have filters and people use them for long periods, the health risks might be even greater. Hookahs are usually shared, so there’s the additional risk from germs being passed around along with the pipe.
Also beware of electronic cigarettes (e-cigarettes), which contain cancer-causing chemicals and other toxins, including a compound used in anti-freeze. These battery-operated devices use cartridges filled with nicotine, flavorings, and other chemicals and convert them into a vapor that’s inhaled by the user.
E-cigarettes haven’t been evaluated or approved by the U.S. Food and Drug Administration (FDA), so they don’t have to post the health warnings that nicotine replacement products or conventional cigarettes do. But there’s no such thing as a safe nicotine product.

Kicking Butts and Staying Smoke Free
All forms of tobacco – cigarettes, pipes, cigars, hookahs, and smokeless tobacco – are hazardous. It doesn’t help to substitute products that seem like they’re better for you than regular cigarettes, such as e-cigarettes or filtered or low-tar cigarettes.
The only thing that really helps a person avoid the problems associated with smoking is staying smoke free. This isn’t always easy, especially if everyone around you are smoking and offering you cigarettes. It may feel pressure, such as “I just don’t like it” or “I want to stay in shape for soccer” (or football, basketball, or other sport).
The good news for people who don’t smoke or who want to quit is that studies show that the number of teens who smoke has dropped dramatically. Today, about 20% of high school students smoke – which means 4 out of 5 don’t.
If you do smoke and want to quit, you’ve lots of information and support available. Different approaches to quitting work for different people. For some, quitting cold turkey is best. Others find that it helps to go to support group especially for teens. These are sometimes sponsored by local hospitals or organizations like the American Cancer Society. The internet offers a number of good resources to help people quit smoking.
When quitting, it can be helpful to realize that the first few days are hardest. So don’t give up. Some people they’ve a few relapses before they manage to quit for good.
Staying smoke free will give you a whole lot more of everything – more energy, better performance, better looks, more money in your pocket, and in the long run, more life to live!!!!!!.
Need For Speed Rivals teaser trailer

Wednesday, 15 May 2013


Burn It Down
by Linkin Park

the cycle repeated 
as explosions broke in the sky 
all that i needed 
was the one thing i couldn't find 
and you were there at the turn 
waiting to let me know 

we're building it up 
to break it back down 
we're building it up 
to burn it down 
we can't wait 
to burn it to the ground 

the colors conflicted 
as the flames, climbed into the clouds 
i wanted to fix this 
but couldn't stop from tearing it down 
and you were there at the turn 
caught in the burning glow 
and i was there at the turn 
waiting to let you know 

we're building it up 
to break it back down 
we're building it up 
to burn it down 
we can't wait 
to burn it to the ground 

you told me yes 
you held me high 
and i believed when you told that lie 
i played soldier, you played king 
and struck me down, when i kissed that ring 
you lost that right, to hold that crown 
i built you up, but you let me down 
so when you fall, i'll take my turn 
and fan the flames 
as your blazes burn 

and you were there at the turn 
waiting to let me know 

we're building it up 
to break it back down 
we're building it up 
to burn it down 
we can't wait 
to burn it to the ground 

when you fall, i'll take my turn 
and fan the flames 
as your blazes burn 

we can't wait 
to burn it to the ground 

when you fall, i'll take my turn 
and fan the flames 
as your blazes burn 

we can't wait 
to burn it to the ground

Tuesday, 7 May 2013

Radioaktifitas Suatu Atom

(+) -> (+)  (-) -> (+)
(-) -> (-)    (+) -> (-)

- Suatu atom yang selalu mendapat prodak (+) adalah atom yang selalu dihargai
- Suatu atom yang selalu mendapat prodak (-) adalah atom yang selalu tidak dihargai dan bahkan selalu dianggap sebagai hal yang selalu negatif
- Kecendrungan negatifitas daripada suatu atom. Kesuatu tempat yang asing dan menyebabkannya radioaktif sehingga atom tersebut sangatlah mudah bereaksi tetapi tidak dapat mengalami suatu ikatan, baik itu rangkap 1, rangkap 2, rangkap 3, dan rangkap kovalen koordinasi.