Friday, October 15, 2010

The Basic Windows Application

Windows programming is not difficult at all. Let's see the most common and basic program in this world: the Hello, World! program. If you’ve seen any elementary DOS-based C or C++ code, chances are that you’ve seen this code:

// Hello, world! program
#include 
void main()
{
 printf("Hello, world!\n");
}

And this is how it look's "Hello, World!" Windows style.

#include  // main Windows headers

// the main entry point to your program
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
int nShowCmd)
{
 // show a very simple message box with the text “Hello, world!” displayed
 MessageBox(NULL, TEXT("\tHello, world!"), TEXT("My First Windows Application"), NULL);
 return 0;
}

compiled with vs 2008 express

The Penguins of Madagascar S01 EP04

The Penguins of Madagascar S01 EP03

Halo Legends

A collection of seven stories from the Halo Universe created by Japan's most creative minds. First up is "Origins" a two part episode showing the expansive history of the Halo Universe and the history of the 100,000 year long franchise timeline, told through the eyes of Cortana. Second comes "The Duel" Taking place long before the Human-Covenant War, it tells the story of an Arbiter, Fal 'Chavamee, who refuses to accept the Covenant Religion. Taking a turn to the Spartan side of the story "Homecoming" focuses on the tragedies involving the Spartan-II recruitment in 2517, and the Spartans coming to terms with their origins. Taking a turn in tone comes "Odd One Out" a non-cannon parody of the Halo storyline. "Prototype" tells the story of a Marine who goes against his orders to destroy an advanced prototype armor and uses the suit to buy time for civilians evacuating from the planet. "The Babysitter" tales of the the rivalry between the Spartan-II Commandos and the Orbital Drop Shock Troopers as they're sent to Covenant-controlled world to assassinate a Covenant Prophet. And finally "The Package" a two-part all CGI film follows Master Chief and an elite squad of Spartan-II super soldiers as they execute a top-secret mission to retrieve a highly valuable UNSC asset on a Covenant Assault Carrier.

Zeitgeist: Addendum

Zeitgeist: Addendum, a 2008 documentary film produced by Peter Joseph, is a continuation of the film Zeitgeist: The Movie. The film discusses the Federal Reserve System in the United States, the CIA, corporate America, other government and financial institutions, and religion, concluding that they are all corrupt institutions detrimental to humanity and are in need of replacement. The film proposes The Venus Project as a possible solution.

According to director Peter Joseph, the film attempts to locate the root causes of this pervasive social corruption, while offering a solution.In its conclusion, Addendum stresses the need for belief systems to embrace the ideas of emergence and interdependence. He outlines concrete steps that can be taken to weaken the monetary system. The film suggests actions for social transformation, which include boycotts of the large banks that make up the Federal Reserve System, the mainstream media, the military, and energy companies. It is also suggested that people reject the political structure.

Wednesday, October 13, 2010

Test Java 01

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elsoexire;

/**
 *
 * @author Razuro
 */
public class Datum {

    

    private int ev = 2010;
    private int honap = 10;
    private int nap = 13;

    public Datum() {
        this.ev = 2010;
        this.honap = 10;
        this.nap = 13;
    }

     public Datum(int ev ,int honap, int nap) {
         //return ( $y % 4 == 0 && ( $y % 100 != 0 || $y % 400 == 0 ) )? true : false;
         
         setEv(ev);
         setHonap(honap);
         setNap(nap);
    }

    

    public void setEv(int ev) {
        if(ev >= 1 & ev <= 3000){
            this.ev = ev;
        }
    }

    public void setHonap(int honap) {
 if(honap >= 1 & honap <= 12){
            this.honap = honap;
        }
    }

    public void setNap(int nap) {
        if(((this.ev % 4 == 0 && ( this.ev % 100 != 0 || this.ev % 400 == 0 )) == true) & (this.honap == 2) ){
            if(nap >= 1 & nap <= 29){
                this.nap = nap;
            }else{
                this.nap = 0;
            }
        }
        if(nap >= 1 & nap <= 31){
            if((this.honap <= 6) & nap <= 30 & this.honap != 2){
                    this.nap = nap;
                }
                else if(this.honap >= 7 & nap <= 30)
                {
                    this.nap = nap;
                }
                else if((nap < 28) & this.honap == 2)
                {
                    this.nap = nap;
                }
            }
            else if(this.honap %2 != 0){
                if((this.honap >= 8 ) & nap <= 30){
                    this.nap = nap;
                }
                if(this.honap <= 7){
                    this.nap = nap;
                }
            }
        }
    }

    @Override
    public String toString() {
        return "Datum{" + "ev=" + ev + "honap=" + honap + "nap=" + nap + '}';
    }
       
}

The Penguins of Madagascar S01 EP02

The Penguins of Madagascar S01 EP01