Sunday, October 4, 2009

Why Gas Takes A Long Time To Light The Stove



In this first entry I'll talk a little about what I am learning the basics of programming classes about the basic structure of a program written in Java.

The following example prints a message on the screen and terminates.


  1. / / Saludo.java
  2. public class Greeting
  3. {public static
  4. void main (String [] args) {
  5. System.out.print ("Hello world!");
  6. System.exit ( 0);}
} To run this first program we use various means, such as do it from a terminal or console of your operating system or help of an IDE (Development Environment integrated) as NetBeans or Eclipse , to name a few.

What makes this program?

In line 1 we are putting a single line comment is specified by the two diagonals (/ /) and followed by a message which will be ignored by the compiler when error checking. Not visible on the screen. Its utility is to present messages to those who wish to read our code.

Line number 3 says

public class Greeting {public

and class are Java reserved words and thus we are telling the compiler that we will write a main class within our Saludo.java file whose name is healthy. For convenience the main class name should match the name of the file. What is also good programming practice is to have the following considerations:

  • The class names are written with the first letter capitalized.
  • The names of the members and methods are written with the first letter in lowercase.
  • must follow the rules for writing the names of identifiers in Java (of which I will not talk).
The left key is defining the scope of the class.

On line # 5 are:

public static void main (String [] args) {

We are declaring the main method of our program and where it begins execution. public words, static void and Java language are reserved, meaning that we can not use as names of members, methods or classes. The keyword public indicates that the main method is known externally to the class, also static and may be referenced without the need to create an instance of the class externally to its scope, whereas void indicate that the function will return unsuccessful. The parameter passed to the main method is an array of strings, a series of arguments that we send to the function to perform a particular action is with them. In this case are not used. Finally the left key that defines the area of \u200b\u200bprimary function. In line

:

System.out.print ("Hello world!");

we are using the Java standard output when using the System. The print () method of System class can receive as parameters of data type integer, float, double, character, boolean or string to display them as messages to the screen.

With instruction System.exit (0); indicate that our program is completed with error code 0, ie, without error.

Finally finished the main scope of the class and the class greet with the right brace (}).

If we run our program in the Windows console gives a result like this:




Wednesday, May 20, 2009

Ap Bio Hardy Weinberg Problems And Answers

Riding partimage image made

After installing ubuntu on the eee jaunty and see that everything works properly, we must retrieve the data I had before the backup I made.

The issue is that the backup I made by cloning the entire SSD using Clonezilla
. I've been researching Clonezilla uses partimage to backup. So I found this link, which explain how to mount the image and thus be able to copy the files.
The only difficulty I found is that part
partimage files. So before I had to do the following:


Airuno amoyse @: ~ $ cat sda1.aa sda1.ab sda1.ac sda1.ad> sda1.img

this file is now the who uses stop restore the data as shown in the previous link, here is the summary of the steps to follow:



  amoyse @ Airuno:    ~ $ dd if = / dev / zero of = myharddisk.img bs = 1000 count = 0 seek = $ [1000 * 1000 * SIZE]   
  Airuno amoyse @: ~ $    losetup / dev/loop0 myharddisk.img   
  Airuno amoyse @: ~ $    partimage restore / dev/loop0 sda1.img   
  Airuno amoyse @: ~ $    losetup-d / dev/loop0   
  Airuno amoyse @: ~ $    myharddisk.img mount / path / to / dir-o loop   

Thursday, May 14, 2009

Buy Platinum In Mustafa Singapore

Installing Ubuntu 9.04 on EeePC 701 8G

I decided to change the Debian Lenny + LXDE which was installed on the EeePC in Ubuntu 9.04.
The truth is that the installation was very simple from a USB flash drive. I just had to follow the instructions on the page itself
Ubuntu and everything worked at first, the wifi, webcam, sound, etc ...
Now that I have it installed, you have to tweak a few things to make things even better: First

see this post .
    Move windows with Alt + Mouse
  • must put this line in the terminal, as we have in this thread EeeUser
:

Airuno amoyse @: ~ $ gconftool-2 - type bool - set / apps / compiz / plugins / move / allscreens / options / constrain_y 0
    install a kernel optimized for my model 701.

  • Just follow the instructions on this page
http://www.array.org/ubuntu/index.html .

    temporary files in RAM
  • To this point I followed the instructions in this post
, summarizing, . must be added in the / etc / fstab these lines:

tmpfs / tmp tmpfs defaults, noatime, mode = 1777 0 0
tmpfs / var / log tmpfs defaults, noatime, mode = 1777 0 0
tmpfs / var / tmp tmpfs defaults, noatime, mode = 1777 0 0

. Sysklogd stop service, delete the files and mount tempore new directories:

amoyse @ Airuno: ~ $ sudo / etc / init.d / sysklogd stop Airuno
amoyse @: ~ $ sudo rm-rf / tmp / * @ Airuno amoyse
: ~ $ sudo rm-rf / var / log / * @ Airuno amoyse
: ~ $ sudo rm-rf / var / tmp / * @ Airuno amoyse
: ~ $ sudo mount-a
amoyse @ Airuno: ~ $ sudo / etc / init.d / sysklogd
start

    Optimize Firefox. To do this you must follow the advice in this
  • page.
  • . Using a theme Classic Compact
compat. Point made smaller.
. Installing the Fission
. . Installing the Fullscreener
. . Install the plugin for a smaller menu, as
Personal Menu. . Install the plugin for delicious.
. Move the cache to ramdisk. To do this modify the following properties from
about: config
browser.cache.offline.enable make false
browser.cache.disk.parent_directory to a directory that is ramdisk (as / var / tmp ). Eee