topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 2:05 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: If a tree falls (in c#)  (Read 7213 times)

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • View Profile
    • Donate to Member
If a tree falls (in c#)
« on: May 07, 2011, 07:43 AM »
Just a random, late night thought of a programming student.

I think I might be on the track of solving the age old problem of
"if a tree falls in the forest and no-one hears it, does it still make a sound"

I have considered it equal to:
"if something happens in my atempted program but there is no gui link, does it do what I wanted (and will use and later link)?"

When I work it out, then I will have solved both of them.


I also found out that is the answer os 42, the question is "How long is a piece of string?" Now to find out the units..... ( I need another drink)

Fred


Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #1 on: May 07, 2011, 07:57 AM »
I found the key: ;D
a random, late night thought

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #2 on: May 07, 2011, 09:47 AM »
I also found out that is the answer os 42, the question is "How long is a piece of string?" Now to find out the units..... ( I need another drink)

1 error there... You need N more drinks. :P (And so do I~!) :D
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

KynloStephen66515

  • Animated Giffer in Chief
  • Honorary Member
  • Joined in 2010
  • **
  • Posts: 3,741
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #3 on: May 07, 2011, 06:29 PM »
"How long is a piece of string?"

Twice as long as it is from the middle.

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #4 on: May 08, 2011, 09:57 AM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short :(

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #5 on: May 08, 2011, 11:18 AM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short :(

And the solution to the N-1 string length problem is to have N+1 drinks~! :)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #6 on: May 08, 2011, 09:05 PM »
Actually, I have always found the length of a piece of string to be N-1 where n is the required length....
And my programming also comes up short :(

And the solution to the N-1 string length problem is to have N+1 drinks~! :)

this is not a solution as the only output is 2X(N-1)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #7 on: May 08, 2011, 10:59 PM »
this is not a solution as the only output is 2X(N-1)

However, the wonderful side effect when N > 10 is that you just don't care much anymore. :)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #8 on: May 09, 2011, 06:08 AM »
If N>10, then you have way too much string.
I think if I have had N+1 drinks I would get entangled in all of it. And then go from falling trees to 'string theory'

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #9 on: May 09, 2011, 08:15 AM »
If N>10, then you have way too much string.
I think if I have had N+1 drinks I would get entangled in all of it. And then go from falling trees to 'string theory'

Wait, if whenever you have string, and need N, you have N-1, then would that be N-1>10 or N>10-1? :)

As for string theory? That requires copious amounts of LSD, not alcohol. :P

Speaking of... I hear N[4 or 7] calling me now...
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Fred Nerd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 278
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #10 on: May 10, 2011, 04:55 AM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • View Profile
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #11 on: May 10, 2011, 05:19 PM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p

I'm a bit confused - I've been following the process and all I ended up with was zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: If a tree falls (in c#)
« Reply #12 on: May 10, 2011, 06:32 PM »
Remember we had N-1 string * N+1 drinks, making a grand total of 2N-1 (drinks/string whatever) So if N > 10, then we have almost double the string, and way too much to drink.

Remember not to do calculus when drinking though: don't drink and derive :p


Hahahahahaha~! :D


I'm a bit confused - I've been following the process and all I ended up with was zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz


Who's the lush? :P
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker