Author Topic: Stuff that peels your potatoes with paring knives of ANGER.  (Read 800495 times)

Bobbias

  • #1 Poster
  • Hero Member
  • *****
  • Posts: 7210
  • 404 Avatar not found.
    • View Profile
    • Magnetic Architect
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1500 on: February 20, 2009, 04:59:35 PM »
I remember a couple of years ago trying to get my calculator to generate the Fibonacci sequence only to stop after I realized the int() function was just a floor function. I could've probably made a 2-way rounding function even using the TI-83's BASIC, but I didn't feel like it.

EDIT: So it turns out the function (phi^x - (1 - phi)^x)/((5)^1/2) always gives an integer as the Fibonacci value. I tried it in Java and I got rounding errors, so I still had to int the results, but it worked.

A) Java has a rounding function other than floor and ceiling...

B) I was hoping for a way to not have to round, lol. I tried doing the function in MATLAB but the answer I'm looking for is WAY too huge for MATLAB to give me all the results. It's something or other x1042 or so, IIRC.
This is going in my sig. :)

BANNED FOR BAD PUNS X_x

annon

  • AWSUM MODERATAR!!!!1
  • Hero Member
  • *****
  • Posts: 1837
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1501 on: February 20, 2009, 06:01:12 PM »
A) I've been barely using Java for about 4 weeks now. I haven't bothered looking much into the documentation other than what's necessary for my assignments.

B) That way I posted is a way to do it without having to round aside from possible rounding errors. Here's the function in a clearer form:


I plugged that into my TI-83 and got integers every time.
« Last Edit: February 20, 2009, 06:04:59 PM by annon »

Code: [Select]
f(u,c,k,_,y,e,a,h)
{return u*u*u*u-u*u*u*_+u*u*y-u*e+a?k?f(u+1,c,k-1,_,y,e,a,h):0:putchar(u-c+h)==f(u+1,u,k-1,_,y,e,a,h);}
main(){return f(0,0,34,84,2423,26628,72864,98)<putchar(32)>f(0,0,40,125,5809,118995,906750,96)==~putchar(10);}

Bobbias

  • #1 Poster
  • Hero Member
  • *****
  • Posts: 7210
  • 404 Avatar not found.
    • View Profile
    • Magnetic Architect
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1502 on: February 22, 2009, 01:01:57 PM »
A) I've been barely using Java for about 4 weeks now. I haven't bothered looking much into the documentation other than what's necessary for my assignments.

B) That way I posted is a way to do it without having to round aside from possible rounding errors. Here's the function in a clearer form:


I plugged that into my TI-83 and got integers every time.


I'll have to check that out. Mind you, C++ doesn't have the golden ratio defined, and I'm not a fan of deriving my own irrational numbers in programming, lol.

Also, working with big numbers sucks. MATLAB just doesn't do anything larger than a double can properly express. And for some answers, 15 decimal places really isn't accurate enough.
This is going in my sig. :)

BANNED FOR BAD PUNS X_x

annon

  • AWSUM MODERATAR!!!!1
  • Hero Member
  • *****
  • Posts: 1837
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1503 on: February 22, 2009, 04:20:52 PM »
At least phi is easy to calculate.

EDIT: Never is it more clear how long compiling takes than when installing Gentoo from the command line.
« Last Edit: February 23, 2009, 11:50:22 PM by annon »

Code: [Select]
f(u,c,k,_,y,e,a,h)
{return u*u*u*u-u*u*u*_+u*u*y-u*e+a?k?f(u+1,c,k-1,_,y,e,a,h):0:putchar(u-c+h)==f(u+1,u,k-1,_,y,e,a,h);}
main(){return f(0,0,34,84,2423,26628,72864,98)<putchar(32)>f(0,0,40,125,5809,118995,906750,96)==~putchar(10);}

Bobbias

  • #1 Poster
  • Hero Member
  • *****
  • Posts: 7210
  • 404 Avatar not found.
    • View Profile
    • Magnetic Architect
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1504 on: February 24, 2009, 12:05:14 AM »
At least phi is easy to calculate.

EDIT: Never is it more clear how long compiling takes than when installing Gentoo from the command line.

Lol, how about compiling PHP+MySQL on a mybook... 3 times. Over SSH.

It took me 45 minutes each time to compile PHP and MySQL....
This is going in my sig. :)

BANNED FOR BAD PUNS X_x

annon

  • AWSUM MODERATAR!!!!1
  • Hero Member
  • *****
  • Posts: 1837
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1505 on: February 24, 2009, 12:45:44 AM »
So I tried booting up the system (I had been in a livecd iso doing everything from command line) and I got a kernel panic. I'll look up the specifics of this error tomorrow, when I have more free time. I've had this VBox window open all day, leaving it to compile things whenever I went to class.

Code: [Select]
f(u,c,k,_,y,e,a,h)
{return u*u*u*u-u*u*u*_+u*u*y-u*e+a?k?f(u+1,c,k-1,_,y,e,a,h):0:putchar(u-c+h)==f(u+1,u,k-1,_,y,e,a,h);}
main(){return f(0,0,34,84,2423,26628,72864,98)<putchar(32)>f(0,0,40,125,5809,118995,906750,96)==~putchar(10);}

MortifiedocAlot

  • I GOT GULD STERRRRZZ
  • Hero Member
  • **
  • Posts: 4760
  • ಠ_ಠ
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1506 on: February 25, 2009, 03:57:50 AM »
I'm still unemployed and my car is fairly fucked up so I can't go driving around for jobs. That and it might cost me big to repair my car, THIS SHOULD BE FUN.


Jupi

  • Striped Member
  • Hero Member
  • *
  • Posts: 1334
  • ...omg...it spins...
    • View Profile
    • Jupi's website.  No, rly.
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1507 on: February 25, 2009, 06:43:35 AM »
I woke up at two this morning with what is either a cold or the flu.



Balls.
actually fuck you guys just kidding keep my quote in your sigs

『フエハデ』

  • Sr. Member
  • ****
  • Posts: 287
  • COMO UN JEFE
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1508 on: February 25, 2009, 11:48:17 PM »
My parents consistently remind me of everything I already know, and then don't mention anything I don't. Specifically, I'm referring to the fact that I had a band practice out in Cincinnati on Sunday and I was supposed to send in an audition tape quite a while ago.

OmegaOmni

  • Bernard Deathrage Advocate
  • Hero Member
  • *
  • Posts: 1560
  • I am here to fuck the scout's mother.
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1509 on: February 26, 2009, 12:19:13 AM »
Freakin' scout update  screwed up the already fixed Natasha and now if a Spy crits with his revolver it crashes the damn server....way to go Valve!

annon

  • AWSUM MODERATAR!!!!1
  • Hero Member
  • *****
  • Posts: 1837
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1510 on: February 26, 2009, 02:47:33 PM »
I just sat at the same table as a couple of girls peer reviewing each other's papers for what sounded like an economics class. They didn't know that Russia's economy isn't communist anymore. I could've corrected them, but I opted to leave instead.

Code: [Select]
f(u,c,k,_,y,e,a,h)
{return u*u*u*u-u*u*u*_+u*u*y-u*e+a?k?f(u+1,c,k-1,_,y,e,a,h):0:putchar(u-c+h)==f(u+1,u,k-1,_,y,e,a,h);}
main(){return f(0,0,34,84,2423,26628,72864,98)<putchar(32)>f(0,0,40,125,5809,118995,906750,96)==~putchar(10);}

Spectere

  • \m/ (-_-) \m/
  • Administrator
  • Hero Member
  • *****
  • Posts: 5716
  • printf("%s\n", "Hi!");
    • View Profile
    • spectere.net
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1511 on: February 26, 2009, 11:53:58 PM »
if a Spy crits with his revolver it crashes the damn server....way to go Valve!

They probably put in that "feature" to quell the people bitching about the spies being nerfed.  Now they have the power to kill everyone with one good hit!
"This is a machine for making cows."

MortifiedocAlot

  • I GOT GULD STERRRRZZ
  • Hero Member
  • **
  • Posts: 4760
  • ಠ_ಠ
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1512 on: February 27, 2009, 01:03:26 AM »
Did spies really need a nerf? I mean the most I've done in a single life as a spy was kill 2 engineers, 2 sentries, a demo and a dispenser and THEN they found me. What happened to him anyways? I've been avoiding TF2 until they fix the patch up.


TimJing

  • Hero Member
  • *****
  • Posts: 1049
    • View Profile
    • what
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1513 on: February 27, 2009, 02:29:46 AM »
Hard mode in Wario's Woods. I'm pretty sure I'm level 9 and the CPU is level 3 on this stage. What the hell?

my avatar is peaches

MY BRAIN IS CAFFEINE

MortifiedocAlot

  • I GOT GULD STERRRRZZ
  • Hero Member
  • **
  • Posts: 4760
  • ಠ_ಠ
    • View Profile
Re: Stuff that peels your potatoes with paring knives of ANGER.
« Reply #1514 on: February 27, 2009, 05:05:26 AM »
I'm thoroughly disgusted. I believe I just got done with a game of L4D that had a hacker in it. It started out with a well organized enemy team just beating us rather badly in versus. Then while I was a hunter he turns around and head shots me while in a mid air ponce with dual pistols, which just striked me as lucky (and I'm still not 100% sure if he was or not, it just seems SO unlikely to have someone hack in L4D...) but later, nearing the roof of the hospital we have a smoker set up so he can choke people when they stick their heads out from a relatively safe distance. So, he gets one and messes him up a bit, then a molotov from the bottom of the ladder flies up and lands RIGHT on the small building the smoker was on and sets him on fire. Now either this guy is a god is grenades in L4D or he's using some sort of exploit/hack.

I honestly thought he wasn't hacking at all until I saw that, also a teammate said he was aiming at him through a wall and when he stuck his head out it got blown off, so I suppose he was.