Wednesday, July 22, 2015

US Navy Indonesian Navy Cooperation Programs

Some pics from ID-US Army Training program
US Navy and Indonesian Navy
US navy and INdonesian navy co ops training programs

some pics of Kurganets-25 IFV variants

some variants of Kurganets 25 IFV source: indonesian military forum on Facebook.
kurganets 25 




Samsung Galaxy Note 5 Specs

Here are some of the rumours of Samsung Galaxy Note 5 SPecifications:
Screen Size Super AMOLED capacitive touchscreen 5.7 inches, 1440 x 2560 pixels (~515 ppi pixel density) + Corning Gorilla Glass 4
Memory Capacity 4 GB LPDDR4
OS Android Lollipop 5.1
Chipset Exynos 7422, Octa Core-64Bit
Connectivity HSPA 42.2/5.76 Mbps, LTE Cat6 300/50 Mbps, Wi-Fi 802.11 a/b/g/n/ac, dual-band, Bluetooth v4.1, microUSB v2.0 (MHL 3 TV-out), GPS, NFC
Back camera 16 Megapixel, 5312 x 2988 pixels, optical image stabilization, autofocus, LED flash, Video 2160p, 1080p@30fps
Front Camera5 Megapixel
Battery 4.100 mAh
Features – Fingerprint sensor
– S Pen stylus
samsung, galaxy note 5
Samsung Galaxy Note 5

Tuesday, July 21, 2015

Labels in Visual Basic.NET



Labels
Label is an object used to display text strings, but cannot receive input by the user. If you want to edit label’s content, you can use vb codes or change the text’s properties on Properties panel.
Here’s a demonstration on how to use label in visual basic.net program.
1.   Open the toolbox panel, then click Common Controls > Label. Drag it to the form.
2.   Enter three labels, Label1, Label2 and Label3.
3.   Select Label1, open Properties panel, and find Text properties:
4.   Change the text properties to “Name”.
5.   With the same method, change Label2’s text property to “Address”.
6.   For Label3, you can leave it untouched. We’ll change it using vbnet codes. Double click on the form. Code window will emerge, and automatically created a procedure for handling event Form1_Load.
7.   The codes will be like this:
 Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub
End Class

8.   Enter codes below between Private Sub clause and End Sub clause.
Me.Label3.Text = "Work and Hobby"

9.   Save the codes you entered by using CTRL + S.

10. If you run the program, the appeareance will be like this, you can see Label3 has different text, although in the Design view, it has other text. It’s because you command the vbcompiler to change the label3’s text during the loading of the Form.
label, visual basic, vb,net

The result of the program

History of BASIC programming language



BASIC initially was not recognized as a popular programming language, but everything changed since Micro Instrumentation Telemetry System (MITS) released Altair 8800 on 1975 which is a BASIC-inside computer, BASIC started to show an increase amount of users.
In that era, most programming languages needs lots of memory. And BASIC is a simple programming language. With a slow access because of using tape, and unadequate text editor, BASIC became a very sexy programming language.
One of the initial implementation of BASIC language for Intel 8080 processor is Altair 8800 called Tiny BASIC. This BASIC implementation was writted by Dr. Li-Chen Wang which is then rewritten to run on Altair by Dennis Allison. The source code of this program published later in 1976 on Dr. Dobb's Journal.
In 1975, MITS released Altair BASIC, developed by William Henry Gates III and Paul Allen of MicroSoft. The first Altair version was developed by Gates, Allen and Monte Davidoff together.
The advent of Microsoft BASIC in most platforms makes PC sales increases. And finally Microsoft BASIC become a standard language used by Apple II computer that uses MPU Mostek 6502.
Until 1979, Microsoft has licensed lots of IBM BASIC, a BASIC language interpreter they developed. A version of IBM BASIC was put in a ROM chip in the IBM PC, so the PC will be able to start immediately BASIC programming sessions if ther is no floppy disk inserted.
Because BASIC grow popular. Many developers develop other version of BASIC. For example BBC releases BBC BASIC by Acorn Computers, Ltd.
BBC BASIC has some distinctive features, such as structures for keywords. It also has an intergrated assembler. BBC BASIC was amongst the best dialect of BASIC.

Here are some BASIC language implementation:
10 INPUT "Whats your name: ", U$
20 PRINT "Halo "; U$
30 INPUT "How much charatercs * do you want to display: ", N
40 S$ = ""
50 FOR I = 1 TO N
60 S$ = S$ + "*"
70 NEXT I
80 PRINT S$
90 INPUT "Do you want to add again? ", A$
100 IF LEN(A$) = 0 THEN GOTO 90
110 A$ = LEFT$(A$, 1)
120 IF A$ = "Y" OR A$ = "y" THEN GOTO 30
130 PRINT "Good bye"; U$
140 END

Inserting The Code on VS.net



After you have inserted some visual object items onto the program. But the program does nothing when you click a button, simply because you haven’t inserted any codes into the program.
Codes are the logics behind the program. You are commanding the program to act using the codes you write. What you can do using codes can be very diverse. From just as simple as displaying alert message via a messagebox, until createing reports or database operations.
Codes in vbnet are event-drive codes, that is codes will be called/activated only if the event related to the codes triggered.
Here are steps to insert the code into the program:
1.   We use button from the previous example, Double click the button.
2.   A Code editor window will be displayed. You’ll see a procedure initiated with “Private Sub” and Ended with “End Sub”. Between them, you can insert the code. 
3.   The codes will be like this, this will with the object’s name properties.
Public Class Form1


    Private Sub btnClickMe_Click(sender As Object, e As EventArgs) Handles btnClickMe.Click

    End Sub
End Class
4.   In the middle of the codes, you can insert new lines of codes. This time with ‘ character that means texts after that is comments and will not be processed by vb.net compiler.
5.   For example, you can insert a messagebox by clicking MsgBox. During writing M S G you may see a listbox appears, this is called intellisense to help you type the codes to minimize errors.
6.   Then insert the codes. You may change the codes’ texts
    Private Sub btnClickMe_Click(sender As Object, e As EventArgs) Handles btnClickMe.Click
        'you can write any codes here
        ' these texts are comments, will not compile
        MsgBox("Let's Learn VB.NET", MsgBoxStyle.Information, "Information")

    End Sub      
7.   Save the project using CTRL + S in your keyboard. This will save your codes into your project. If you haven’t saved the codes, an asterisk (*) will emerge on the right of your tab name. If you save the project, this asterisk character will disappear.
8.   You can now run the program by clicking F5 button on your keyboard or click Debugging button. A window will appear.
9.   A messagebox will emerge with the text corresponds to the codes you inserted before.
10. Click the Stop Debugging button to stops the running of the program.
intellisense, autocomplete, visual studio, visual basic.net