It's been that kind of week...

Things that don't belong anywhere else. (Check first).

Moderators: Moderators General, Prelates, Magistrates

User avatar
Tractor
Posts: 2467
Joined: Mon Jan 08, 2007 6:17 pm UTC
Location: no

It's been that kind of week...

Postby Tractor » Thu Jan 18, 2007 8:08 pm UTC

Crappy enough that I developed a new function for work:

Code: Select all

public void main(String[] args){
 long Work = 0;
 final long ARGH = 100;
 final long suck = 500;
 int frusterated = 0;
 for(int hour=0;hour<8;hour++){
   Work += (ARGH + suck)^2;
   frusterated = Work / 1000000;
   for(int x=0;x<frusterated;x++){
     System.out.println("I HATE THIS CRAP! *Fists Smash Desk*");
   }
 }
}


And I can't imagine my 430 meeting will improve it any...
Last edited by Tractor on Thu Jan 18, 2007 9:05 pm UTC, edited 1 time in total.
9 x 6 = 42

Note: Randall kicks ass.

mwace
Posts: 64
Joined: Thu Dec 21, 2006 8:28 pm UTC
Contact:

Postby mwace » Thu Jan 18, 2007 8:55 pm UTC

If it makes you feel any better, I think you're avatar's awesome. I remember playing that game when I was ten, the skier devouring bear is absolutly great!

User avatar
Toeofdoom
The (Male) Skeleton Guitarist
Posts: 3446
Joined: Wed Jan 10, 2007 10:06 am UTC
Location: Melbourne, Australia
Contact:

Postby Toeofdoom » Thu Jan 18, 2007 9:26 pm UTC

I agree, i hated that monster. Is it a metaphor for your boss or an accurate portrait?
Hawknc wrote:Gotta love our political choices here - you can pick the unionised socially conservative party, or the free-market even more socially conservative party. Oh who to vote for…I don't know, I think I'll just flip a coin and hope it explodes and kills me.

Website

User avatar
Tractor
Posts: 2467
Joined: Mon Jan 08, 2007 6:17 pm UTC
Location: no

Postby Tractor » Thu Jan 18, 2007 9:35 pm UTC

Heh...more like a metaphor for my project/the product. My boss is dealing with the same crap I am. Neither one of us is happy.
9 x 6 = 42



Note: Randall kicks ass.

User avatar
Peshmerga
Mad Hatter
Posts: 2061
Joined: Wed Oct 04, 2006 1:56 am UTC
Contact:

Postby Peshmerga » Thu Jan 18, 2007 10:28 pm UTC

I never understood how to win that game.
i hurd u liek mudkips???

User avatar
Toeofdoom
The (Male) Skeleton Guitarist
Posts: 3446
Joined: Wed Jan 10, 2007 10:06 am UTC
Location: Melbourne, Australia
Contact:

Postby Toeofdoom » Thu Jan 18, 2007 10:31 pm UTC

You dodged all the monsters (or knocked them over... that was hard to do though) and got to the finish line. thats about it really.
Hawknc wrote:Gotta love our political choices here - you can pick the unionised socially conservative party, or the free-market even more socially conservative party. Oh who to vote for…I don't know, I think I'll just flip a coin and hope it explodes and kills me.

Website

mwace
Posts: 64
Joined: Thu Dec 21, 2006 8:28 pm UTC
Contact:

Postby mwace » Thu Jan 18, 2007 10:32 pm UTC

You win by skiing as far down as you can possibly get without getting eaten. Obviously.

(I must have spent hours seeing juuust how far I could get)


EDIT: There was a finish line?!?!

User avatar
Toeofdoom
The (Male) Skeleton Guitarist
Posts: 3446
Joined: Wed Jan 10, 2007 10:06 am UTC
Location: Melbourne, Australia
Contact:

Postby Toeofdoom » Thu Jan 18, 2007 10:39 pm UTC

I thought there were 3 sections... or atleast on the one i played.

Slalom, freestyle and some other thing...

one of them didnt have a finish line, but 2 were timed and stuff. But even if you tried to do it you often missed the flags by going to one side >.>
Hawknc wrote:Gotta love our political choices here - you can pick the unionised socially conservative party, or the free-market even more socially conservative party. Oh who to vote for…I don't know, I think I'll just flip a coin and hope it explodes and kills me.

Website

User avatar
aldimond
Otter-duck
Posts: 2665
Joined: Fri Nov 03, 2006 8:52 am UTC
Location: Uptown, Chicago
Contact:

Postby aldimond » Thu Jan 18, 2007 10:42 pm UTC

So in Java (I assume that's Java... I don't know me much Java) can you actually use ^ for exponentiation?

If so, that's pretty OK.

I mean, in C it's a good thing that it's bitwise XOR, but Java doesn't really have so much use for bitwise XOR.
One of these days my desk is going to collapse in the middle and all its weight will come down on my knee and tear my new fake ACL. It could be tomorrow. This is my concern.

User avatar
digitrev
Posts: 124
Joined: Fri Dec 15, 2006 10:22 pm UTC
Location: Ontario, Canada
Contact:

Postby digitrev » Thu Jan 18, 2007 10:45 pm UTC

mwace wrote:If it makes you feel any better, I think you're avatar's awesome. I remember playing that game when I was ten, the skier devouring bear is absolutly great!


What's it called. I want that game. On a side note, shitty work then.
Together we will make the octopus nervous.
Image

User avatar
Toeofdoom
The (Male) Skeleton Guitarist
Posts: 3446
Joined: Wed Jan 10, 2007 10:06 am UTC
Location: Melbourne, Australia
Contact:

Postby Toeofdoom » Thu Jan 18, 2007 10:47 pm UTC

Its called SkiFree i think?

EDIT:
http://ski.ihoc.net/

Use the numpad or mouse to control, 0 or click is jump.

If you jump and hit a dead tree, the tree lights on fire. You can do spins and flips when you jump. If you hit a dog it makes a yellow smelly puddle. lots of awesome shit
Last edited by Toeofdoom on Thu Jan 18, 2007 10:58 pm UTC, edited 1 time in total.
Hawknc wrote:Gotta love our political choices here - you can pick the unionised socially conservative party, or the free-market even more socially conservative party. Oh who to vote for…I don't know, I think I'll just flip a coin and hope it explodes and kills me.

Website

User avatar
Devil_H@ck
Posts: 55
Joined: Mon Aug 21, 2006 6:10 pm UTC
Location: Belgium

Postby Devil_H@ck » Thu Jan 18, 2007 10:57 pm UTC

mwace wrote:EDIT: There was a finish line?!?!

Yeah, wtf? I played that hours on end as well. I always died after the first monster I saw, as far as I remember. Although I was never able to figure out why it appeared.

So, enlighten us about this finish line, please :).

User avatar
Toeofdoom
The (Male) Skeleton Guitarist
Posts: 3446
Joined: Wed Jan 10, 2007 10:06 am UTC
Location: Melbourne, Australia
Contact:

Postby Toeofdoom » Thu Jan 18, 2007 10:59 pm UTC

Just play the version i posted already. Its pretty cool, doesnt seem to have any viruses :p

Anyway, back on topic, that code is cool :p
Hawknc wrote:Gotta love our political choices here - you can pick the unionised socially conservative party, or the free-market even more socially conservative party. Oh who to vote for…I don't know, I think I'll just flip a coin and hope it explodes and kills me.

Website

User avatar
Hawknc
Oompa Loompa of SCIENCE!
Posts: 6986
Joined: Mon Oct 02, 2006 5:14 am UTC
Location: Melbourne, Australia
Contact:

Postby Hawknc » Fri Jan 19, 2007 2:03 am UTC

Ew, java. :P

User avatar
digitrev
Posts: 124
Joined: Fri Dec 15, 2006 10:22 pm UTC
Location: Ontario, Canada
Contact:

Postby digitrev » Fri Jan 19, 2007 3:40 am UTC

Thank you, good sir.
Together we will make the octopus nervous.

Image

User avatar
aldimond
Otter-duck
Posts: 2665
Joined: Fri Nov 03, 2006 8:52 am UTC
Location: Uptown, Chicago
Contact:

Postby aldimond » Fri Jan 19, 2007 4:30 am UTC

Toeofdoom wrote:Its called SkiFree i think?

EDIT:
http://ski.ihoc.net/

Use the numpad or mouse to control, 0 or click is jump.

If you jump and hit a dead tree, the tree lights on fire. You can do spins and flips when you jump. If you hit a dog it makes a yellow smelly puddle. lots of awesome shit


Yay, it works under Linux in Wine! And it's actually legit, from the guy that wrote it! Woot!
One of these days my desk is going to collapse in the middle and all its weight will come down on my knee and tear my new fake ACL. It could be tomorrow. This is my concern.

User avatar
Pathway
Leon Sumbitches...?
Posts: 647
Joined: Sun Oct 15, 2006 5:59 pm UTC

Postby Pathway » Fri Jan 19, 2007 5:43 am UTC

I was under the impression that it was not possible to use "^" for exponentiation. I've always used Math.pow(double a, double b) for a^b or Math.exp(double a) for e^a ...

User avatar
aldimond
Otter-duck
Posts: 2665
Joined: Fri Nov 03, 2006 8:52 am UTC
Location: Uptown, Chicago
Contact:

Postby aldimond » Fri Jan 19, 2007 6:07 am UTC

Well, according to The Tubes up to the surface which are now the only way that we can receive sunlight now that the ozone layer has been destroyed forever and the surface of the Earth is scorched the ^ is bitwise XOR in Java, as in C. Hooray!

I'm sorry, that has to be the worst way to say "Sun's website" ever concocted.
One of these days my desk is going to collapse in the middle and all its weight will come down on my knee and tear my new fake ACL. It could be tomorrow. This is my concern.

User avatar
Tractor
Posts: 2467
Joined: Mon Jan 08, 2007 6:17 pm UTC
Location: no

Postby Tractor » Tue Jan 23, 2007 7:40 pm UTC



So it is. That's what I get for converting random life-oriented pseudo-code into an attempt at a java function.

Code: Select all

 Math.pow ( (ARGH + suck), 2);

That's what I wanted.
9 x 6 = 42



Note: Randall kicks ass.

Zerathidune
Posts: 7
Joined: Sat Jan 20, 2007 9:02 pm UTC
Location: Massachusetts
Contact:

Postby Zerathidune » Tue Jan 23, 2007 8:01 pm UTC

Also, this line:

frusterated = Work / 1000000;

produces a loss of precision error. Your program does not compile.

EDIT: I've decided to not be lazy, and debug your program for you fully. changing the type of frusterated from int to long fixes the problem, but then you get an Exception when you run the program. you need to specify main as being static. Also, you spelled frustrated wrong.

EDIT 2: if you wished, you could also fix the error by manually casting into the int type, ala:

frusterated = (int)Work / 1000000;

User avatar
Framling
Posts: 62
Joined: Sat Dec 02, 2006 6:58 am UTC

Postby Framling » Tue Jan 23, 2007 8:20 pm UTC

mwace wrote:You win by skiing as far down as you can possibly get without getting eaten. Obviously.

(I must have spent hours seeing juuust how far I could get)


EDIT: There was a finish line?!?!


I'm almost positive there was not. I seem to remember that if you set the speed to high, hit a rainbow ramp just before the bottom, and got reeeeally lucky, weaving around and not hitting any trees, you'd get to where the mountain wraps around and you end up at the top again. Then you'd be eaten, because the monster keeps chasing you. I'm pretty sure if you go back up, you'll get to the end and be eaten by a monster.

But it's been years, so I may be making this up.
your = belonging to you
you're = you are
their = belonging to them
they're = they are
there = not here

User avatar
Tractor
Posts: 2467
Joined: Mon Jan 08, 2007 6:17 pm UTC
Location: no

Postby Tractor » Tue Jan 23, 2007 8:49 pm UTC

Zerathidune wrote:Also, this line:

frusterated = Work / 1000000;

produces a loss of precision error. Your program does not compile.

EDIT: I've decided to not be lazy, and debug your program for you fully. changing the type of frusterated from int to long fixes the problem, but then you get an Exception when you run the program. you need to specify main as being static. Also, you spelled frustrated wrong.

EDIT 2: if you wished, you could also fix the error by manually casting into the int type, ala:

frusterated = (int)Work / 1000000;


Yeah, I figured it would, but didn't care enough :P
As for spelling...meh, it's a variable name.

And as to skifree, I remember it as you do Framling...that monster was really fast though, it took a lot of luck to get to loop back.
9 x 6 = 42



Note: Randall kicks ass.

User avatar
aldimond
Otter-duck
Posts: 2665
Joined: Fri Nov 03, 2006 8:52 am UTC
Location: Uptown, Chicago
Contact:

Postby aldimond » Tue Jan 23, 2007 9:04 pm UTC

The Wikipedia page on SkiFree agrees that you can wrap around.

It also lists lots of other crazy stuff in the game.
One of these days my desk is going to collapse in the middle and all its weight will come down on my knee and tear my new fake ACL. It could be tomorrow. This is my concern.


Return to “General”

Who is online

Users browsing this forum: No registered users and 25 guests