Pleased

Thursday 18. October, 2007

I noticed that my little article on Intel 945GM chipset and Half-Life 2 has got a pair of new comments in this month. I’m very pleased because of that. Every comment received means that some has reacted on my writings. Those little comments motivated me to write once again a blog entry.

The last week has been very pleasing too. Last Friday I purchased the Orange box on Steam (that may sound a bit funny if one doesn’t know what Valve’s Steam is… 🙂 ). Well, the rest of the day was spent downloading the content and making room on the hard drive for it by moving stuff around and removing unnecessary stuff. I could finally play Half-Life 2 Episode Two on Saturday and I actually beated the game in the same day. Well… As always, I cheated a little on tough and scary places… (I simply hate that red screen of death nearly as much as the blue one on another “game”).

Half-Life 2 Episode Two is a great expansion and it was longer than Episode One, thanks Valve. As the game is not yet in real life stores, I’m not going to write what happens in the game as that potentially could ruin the game experience of others. But some things aren’t suprises for anyone:

  • The game has some new creatures such as
    • Antlion grubs
    • nastier form of antlions
    • Combine Hunters
    • some others too
  • We learn new things about “Our mutual friend”
  • Citadel has been blown apart (Such a shame… It was a beautiful tower, I want one)

As for the actual plot, I think it doesn’t ruin anything if I say that I was shocked on the way the Episode ended…

The Orange Box also contained Portal and Team Fortress 2 as “worth mentioning games”. Now I have Half-Life 2 and Episode One to give away as gifts, but I haven’t yet decided who to give them to… … maybe my brother if he would play them…

Portal is a cool game. I love the computer voice explaining things, she’s so formal and cold. “The floor in this test will kill you. Try to avoid it” or “… can cause permanent disabilities such as vaporization…”. Various things have very cool names such as “Aperture Science emergency intelligence incinerator”, “Aperture Science We-don’t-know-what-it-does-thing” or something like that…

hmm… It might be time to log off and close this computer for this night…

Lover’s Math

Saturday 6. October, 2007

If you happen to own a graphical calculator or plotter software, try what following functions look like:

f(x)=sqrt(1-(sqrt(x^2)-1)^2)

g(x)=-3sqrt(1-sqrt(sqrt(x^2)/2))

Or these

f(x)=2/3*((x^2+sqrt(x^2)-6)/(x^2+sqrt(x^2)+2)-sqrt(36-x^2))

g(x)=2/3*((x^2+sqrt(x^2)-6)/(x^2+sqrt(x^2)+2)+sqrt(36-x^2))

Note: the sqrt(x^2) is the same thing as |x|, but as most calculators don’t have |x|-function, I replaced it with sqrt(x^2) which is also always positive.

(I guess WordPress doesn’t have tools for mathematical expressions?)

Edit: Add missing ) to the last g(x)

After midnight, part 3: Java

Friday 5. October, 2007

As I took the Programming course at the University, I was faced with this beast. The course is about programming and how to program in Java. Even though I have never before even seen actual Java code, I’ve always been hating it. Some Java programs just seem to be so goddamn slow even if they don’t appear doing anything special (well, Azureus might have been the app in question, not sure about it).

Anyhow, here’s the Hello World in Java:

public class HelloThere {

public static void main(String args[]) {

System.out.println("Hello there!");

}

}

Save in a file with exactly the same name as the class + “.java” in this case “HelloThere.java”. As you have installed Java Development Kit, or the SDK, (Java runtime is NOT enough), compile the java file with

javac HelloThere.java


This will create a corresponding class-file which is the bytecode version of the source code, and as far as I know, the closest form of a binary you can get with javac. And run it with

java HelloThere


Note: If you are using Linux environment you might not need Sun’s Java environments at all. Gnu Compiler Collection (GCC) contains a Java compiler (gcj), that can produce even native binary code. Be warned though, the gcj is compatible with 1.4-series, which means that newer features won’t be available such as the java.util.Scanner -class for reading user input in console applications.

Search the net and you should be able to find Java tutorials easily and among them a lot of posts on various forums telling you you shouldn’t use Java in the first place.