hostgator coupon code

Senin, 13 Agustus 2012

Setting Timer For Automatic Shutdown With Command Prompt



Have you ever download video, music or whatever fall asleep so that you forget to turn off your PC or Laptop?

If ever you would ask - ask whether they could for setting the PC or Laptop to get auto shutdown? The answer is Yes, we can set up PC or Laptop so we can automatically shut it down via Command Prompt.

This time  I will share on how to shutdown your PC or Laptop automatically using a timer via the Command Prompt (CMD)


Here are the steps to set your PC or laptop so it can shutdown automatically:


  • Click Start >> All Programs >> Accessories >> Command Prompt




  • Type shutdown -f -s -t on the command prompt



  • You had successfully set your PC or Laptop to shutdown automatically. To cancel it type shutdown /a on the command prompt



  • If you canceled the automatic shutdown, the message bellow will pop out




Minggu, 24 Juni 2012

Latest Internet Download Manager v 6.12



I think everybody is familiar with Internet Download Manager (IDM) . Internet Download Manager IDM is a software that can download data from the internet and continue the download process whenever we want.


What's new on Internet Download Manager 6.12          :
  • Added full support for 64-bit browser. 
  • Increased integration of IDM for Google Chrome, Opera, and other browser. 
  • Fixed compatibility problem with the browser. 
  • Added panel for the browser Improved download FLV grabber to save video from the YouTube web player, Google Video, MySpace TV, and other popular sites
  • Complete revision of browser integration. 





To DOWNLOAD Internet Download Manager 6.12 Full CLICK HERE

Sabtu, 14 April 2012

Basic, VB, and The History of Visual Basic

On this post I will share what I know about microsoft visual basic 6. Before we get to know Visual Basic, we must know first what is 'BASIC'
BASIC = Beginners' All-purpose Symbolic Instruction Code. BASIC is a group of high level programming language. Literally, The meaning of BASIC is "all-purpose symbolic instruction code that can be used by beginners". Indeed, the term "BASIC Language" here can also be interpreted into a language for beginners, or in other words, referred to as the base language, but it is not 100% true, BASIC can also be used by expert programmers.
BASIC was first developed in 1963 by John George Kemeny and Thomas Eugene Kurtz from Dartmouth College.  At that time, almost all computers need software, and the software was not  sold freely yet, at tah time the only people who can use computers are mathematicians and scientists, because they can build their own software. BASIC language until now  has been heavily modified. Basic Language become the most popular language used on a microcomputer in the late 1970's and home computers in the 1980s.

 Visual Basic are programming language that offers Integrated Development Environment (IDE) to create visual-based software program from Microsoft Windows operating system using a programming model (COM).
Visual Basic is adopted from BASIC programming language and offers high speed computer-based software development graphs.
Some scripting language such as Visual Basic for Applications (VBA) and Visual Basic Scripting Edition (VBScript), Visual Basic is similar as well, but it works differently.
The programmer can build applications by using components provided by Microsoft Visual Basic. Programs that written in Visual Basic can also use the Windows API, but requires additional external function declarations.
In programming for business, Visual Basic has a good market . A survey conducted in 2005 showed that 62% of software developers reported using various forms of Visual Basic, which was followed by a C + +, JavaScript, C #, and Java.






HISTORY OF VISUAL BASIC

Visual Basic 1.0 was introduced in 1991. The concept of programming with drag-and-drop method. Visual Basic application is adapted from the prototype form generator developed by Alan Cooper and his company, named Tripod. Microsoft then contracted with Cooper and his company to develop Tripod into a programmable form system for Windows 3.0, under the code name Ruby.
Tripod does not have a programming language at all. This causes Microsoft decided to combine Ruby with the Basic programming language to create a Visual Basic.

   

  • Visual Basic 1.0 was released for Windows at Comdex / Windows Trade Show in Atlanta, Georgia in May 1991.
  • Visual Basic 1.0 for DOS was released in September 1992. The programming language itself is not very compatible with Visual Basic for Windows, for surely it is the next version of DOS-based BASIC compiler developed by Microsoft itself, which is QuickBASIC. The interface of the program itself uses a text interface, and utilize an additional ASCII codes to simulate the look of the GUI.
  • Visual Basic 2.0 was released in November 1992. Programming environment is easier to use, and speed is improved.
  • Visual Basic 3.0 was released in spring 1993 and comes in two versions: Standard and Professional. VB3 also includes version 1.1 of the Microsoft Jet Database Engine that can read and write database Jet / Access 1.x.
  • Visual Basic 4.0 (August 1995) was the first version that can make the program such as 32-bit 16-bit program. VB4 also introduced the ability to make non-GUI applications. If the previous version using the VBX control, since VB4 was released Visual Basic using the OLE control (with file extension *. OCX), better known later with ActiveX controls.
  • With version 5.0 (February 1997), Microsoft released Visual Basic exclusively for 32-bit versions of Windows. The programmers who prefer to make 16-bit code can either import programs written in VB4 to VB5 version, and VB5 programs can be converted easily into a format VB4.
  • Visual Basic 6.0 (mid 1998) has been improvised in some parts, including new capabilities, which make web applications. Although it is now VB6 is not supported anymore, but the runtime file is still supported until Windows 7.



Source     :    www.wikipedia.org
                      www.vbtutor.net

Sabtu, 31 Maret 2012

Menu, Submenu and Timer in Delphi Programming Language

In my post this time I will share to you about menu, submenu and timer on Delphi Programming Language.



1.There is two types of menu, which main menu and pop-up menu.

Main menu is one of the components contained in Delphi palette. With a menu we can call, save, and run the program, remove program, etc. Menu helps us to run commands much easier. Delphi menu designer allow us to add a menu to the form. To create a main menu all we have to do is click the icon on the Delphi palette standard tab. Main menu usually located in the upper left corner of an application, such as file , insert, about, help, etc, that we usually see in almost every application.


pop up menu is a menu that appears when users right click on a form or on a component on Delphi




2. SubMenu

Submenu is an additional component that is used to save space for the additional options from the menu. Some applications have a
drop down menu  list that appears on the right side of a menu items.


Here's an example program using the menu:







The program above uses 2 forms, This is first form code list    :


unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Menus, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    Timer1: TTimer;
    Label1: TLabel;
    MainMenu1: TMainMenu;
    Menu1: TMenuItem;
    form21: TMenuItem;
    exit1: TMenuItem;
    color1: TMenuItem;
    Hijau1: TMenuItem;
    Biru1: TMenuItem;
    Merah1: TMenuItem;
    Default1: TMenuItem;
    procedure Timer1Timer(Sender: TObject);
    procedure form21Click(Sender: TObject);
    procedure exit1Click(Sender: TObject);
    procedure Hijau1Click(Sender: TObject);
    procedure Biru1Click(Sender: TObject);
    procedure Merah1Click(Sender: TObject);
    procedure Default1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses Unit2;

{$R *.dfm}

procedure TForm1.Timer1Timer(Sender: TObject);
begin
if label1.left=1 then label1.left:=50;
label1.left:=label1.left-1;

end;

procedure TForm1.form21Click(Sender: TObject);
begin
form1.Hide;
form2.show;

end;

procedure TForm1.exit1Click(Sender: TObject);
begin
application.terminate;
end;

procedure TForm1.Hijau1Click(Sender: TObject);
begin
label1.Font.Color:=clgreen;
end;

procedure TForm1.Biru1Click(Sender: TObject);
begin
label1.Font.Color:=clblue;
end;

procedure TForm1.Merah1Click(Sender: TObject);
begin
label1.font.Color:=clred;
end;

procedure TForm1.Default1Click(Sender: TObject);
begin
label1.font.color:=clblack;
end;

end.








This is the second form code list    :




unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TForm2 = class(TForm)
    Button1: TButton;
    Timer1: TTimer;
    Label1: TLabel;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation

uses Unit1;

{$R *.dfm}

procedure TForm2.Button1Click(Sender: TObject);
begin
application.terminate;
end;

procedure TForm2.Timer1Timer(Sender: TObject);
begin
label1.caption:=formatdatetime('"time      : "hh:mm:ss',now)+chr(13)+formatdatetime('"date     : "dd/mm/yyyy',now);
end;

procedure TForm2.Button2Click(Sender: TObject);
begin
form2.Hide;
form1.show;
end;

end.







TO DOWNLOAD THE PROGRAM IN .exe CLICK HERE


If your antivirus detect this as virus just ignore it because it's save




Sabtu, 24 Maret 2012

Looping and Branching in Delphi

In this article I will share About Looping and Branching in Delphi 7.

Looping is repeating one or a set of commands to achieve certain conditions.  
Branching is one of the control structure that allows the selection of the command to be executed.

Looping Statements in Delphi 7  :
1. For To Do
This loop runs by using a counter variable that will be added automatically when a command has been completed. The general form of this loop  :
For counter: = value end of the initial value To Do
Begin
command;
command;
end;

2. For downto Do
The loop is the same as using a For loop with a To Do, but reduced the content of the counter (back / down).
The general form of this loop is:
For counter: = begin value downto end value Do
Begin
command;
command;
end;

3. Repeat Until  
The loop is working until the desired condition is reached. This loop can be used as a loop that uses a lot of conditions (multi-loop condition).
The general form:
repeat
command;
command;
Until conditions;

4. Do While
The loop is similar to Repeat Until but the checking prosses run before performing an iterative process. This loop runs as long as the value condition are true. If the condition has false value then the loop will stop.  
Do while general form  :
While conditions do
Begin
command;
command;
end;

Branching Statements in Delphi  :
1. If ... Then ... Else  
A command that serves to make decisions on some condition. Branching form is often used for conditions that are not too many.The selection of a conditional used only to perform an action when the condition of the command syntax are true. Bentuk conditional is:
if then
Begin
... {action-1}
end;

2. IF ... THEN ... ELSE: Selection of two cases
If  ... then ... else is generally used to perform simple bifurcation (between 2 or 3 branches). Or for a lot of branching, which is the prerequisite conditions involving more than one parameter. Conditional form of the command syntax is:
if then
Begin
... {action-1}
end
else
Begin
... {action}-2
end;

IF ... THEN ... ELSE: Selection of N cases
if then
Begin
... {action-1}
end
If then else
Begin
... {action}-2
end
else
Begin
... {action}-3
end;
 

Jumat, 16 Maret 2012

Delphi Programming Language

What is Delphi? Delphi is an object oriented programming (OOP) and an Integrated Development Environtment (IDE). Delphi Developed by Borland corporation which before was known as Inprise. Delphi actually is object oriented programming (OOP) version of Pascal. Pascal itself is a procedural programming language. So we can conlude that delphi syntax was adopted from pascal programming language.
Delphi is generally more widely used for desktop application development and enterprise-based database, but as an Integrated Development Environtmen (IDE) Delphi is also capable of various types software development projects. Delphi known as the one who brought RAD tool (Rapid Application Development).
When released in 1995 for 16-bit windows. Delphi 2, released a year later, it supports 32-bit Windows environments, and the version of c + +, and C + + Builder. In 2001 a Linux version known as Kylix available. With a new release every year, in 2002 the support for Linux (through Kylix and CLX component library) were added, and in 2003  .NET became supported by the release of 
Delphi.Net (Delphi 8).
 

The advantages of using Delphi: 
  • Large user community on Usenet and the web.
  • Can compile a single executable (portable applications), ease of distribution and minimize the problems associated with versioning.
  • Overwhelming support from a third party against the VCL (usually available the following source code) or other supporting tools (documentation, debugging tools).
  • Compiler optimization is quite fast.
  • Supports multiple platforms from the same source code.
  • To run the Embarcadero, Delphi can be run on the multiflatform windows, linux, android, IOS.

 
Disadvantages of using Delphi:
 
  • Partial single vendor lock-in (Borland can set the language standard, compatibility must be followed)
  • Access to the platform and third-party library header files need to be translated into the language pascal
  • Documentation on the platform and the accompanying techniques are hard to find in Pascal language (eg access to COM and Win32)





Delphi Program Example click HERE




Delphi Tutorial Click HERE











Source              :   www.wikipedia.org
                              www.delphi.com
                              www.embarcadero.com

Sabtu, 10 Maret 2012

Compile JAVA with Notepad or Notepad++

In the previous post I posted about Java programming language. JAVA can be compiled in 2 ways. The first way is to use IDE (Integrated Development Environtment) for example Netbeans. The second way is to use a text editor such as Notepad or Notepad + + and then the code will be compiled by using the commands in the Command Promt (CMD).

On this post I will share how to compile Java programs using a text editor. First we write java code in Notepad or Notepad + + and then save in any location with the same name as the class that was created, dont forget to save in .Java Extension. For example, save the name coba.java

After that go to the command prompt by clicking start, accesories, and then select the command prompt or by typing cmd in the run window. Type the command javac coba.java, and it will be  :






Why does this happen? This will happen when we put the java program outside the bin folder
of java. Then how to compile java using a text editor by write the command in cmd? Read this carefully         :
1. Right click on My Computer and click Properties and select Advanced System Settings
(win7)





2. In the System Properties click environtment variables tab, and so another window will pop up





 3. Edit the Path variable by clicking the edit command button on the variable path and enter
     the location of your java bin files.
     For example this is my java bin files location
   :      
     C: \ Program Files (x86) \ Java \ jdk1.6.0_10 \ bin;

4. After changing the path let's try again compiling via commandprompt. Suppose we write java code in notepad and we store it in mydocuments, and the file name is coba.java (the file name must has the same name as the class name).

5. The result will be like this
                                   :

 


To download notepad++ click HERE


To download my java program example click HERE 


The file is .txt format. Open, click save as, and save it in .java format (but don't change the file name)