Search found 2197 matches

by TheChewanater
Thu Jun 09, 2011 11:25 pm UTC
Forum: Forum Games
Topic: Picture Pwn4ge!
Replies: 8368
Views: 1210152

Re: Picture Pwn4ge!

Image
by TheChewanater
Thu Jun 09, 2011 1:47 am UTC
Forum: Mathematics
Topic: functions that give cool designs
Replies: 56
Views: 17852

Re: functions that give cool designs

Code: Select all

cos(xy + yy) + cos(x+xy) > cos(xy - yy) - cos(x-xy)
by TheChewanater
Tue Jun 07, 2011 9:07 pm UTC
Forum: General
Topic: The "How Have I Never Noticed That Before?" thread
Replies: 1141
Views: 197426

Re: The "How Have I Never Noticed That Before?" thread?

Up until today I always wondered why programming languages have both bitwise and logical operators for OR and AND (like &&/& and ||/|), but only a bitwise XOR operator, no "^^". Then today, while I was writing a method that requires such an operator, I realized that there is , ...
by TheChewanater
Tue Jun 07, 2011 6:45 pm UTC
Forum: Music
Topic: POST YOUR MUSIC HERE and actually Listen too! (Rules in OP)
Replies: 396
Views: 170583

Re: Post YOUR music here (Merged : The Rainbow Correction)

New song! And it doesn't suck that much!

Excuse the terrible synthesized instruments. I can play it IRL, but I don't have any sort of recording equipment.
r.ogg
(1.59 MiB) Downloaded 226 times
by TheChewanater
Mon Jun 06, 2011 11:03 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

Everyone seems to assume that neurons exist and are firing. It's possible that everything we know about the brain is wrong, and the randomly-arranged particles forming are brains are arranged to form memories of us reading Wikipedia articles including that information. Perhaps there is one "co...
by TheChewanater
Mon Jun 06, 2011 6:42 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

Everyone seems to assume that neurons exist and are firing. It's possible that everything we know about the brain is wrong, and the randomly-arranged particles forming are brains are arranged to form memories of us reading Wikipedia articles including that information. Perhaps there is one "con...
by TheChewanater
Tue May 31, 2011 1:45 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

I think I've just written the least-portable C code possible that doesn't use asm(). Compiled on GCC 4.6.0, default settings, on Ubuntu 11.04. #include "stdio.h"voidfoo (){    printf ("Didn't work.\n");    printf ("It worked!\n");}int main (int argc, char *argv[]){    goto *((void*)&foo + 13);} 
by TheChewanater
Mon May 30, 2011 10:17 pm UTC
Forum: Music
Topic: Worst song lyrics
Replies: 332
Views: 60256

Re: Worst song lyrics

My Jeans hasn't been mentioned? The whole song is boring and repetitive, but this brief rap part is really just terrible. Oh my, look at those jeans. They should be posted in magazines. Matter of fact, let me get my phone, you can strike a pose. Smile for the camera; freeze! What? Trig bought a new ...
by TheChewanater
Mon May 30, 2011 6:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

FT: I can't believe this abomination actually compiles and runs... #include "stdio.h"#include "stdlib.h"void foo (void* whatever, ...) {}void bar (int a, int b){    printf ("%d+%d=%d\n", a, b, a + b);        exit (0);}int main (){    foo (0, 23, 49);    goto *(void*)(&bar);        return 0;} 
by TheChewanater
Sun May 29, 2011 7:38 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

WarDaft wrote:...it's nothing like what we know.

Can you explain how we 'know' this without quoting Descartes?
by TheChewanater
Sun May 29, 2011 4:22 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

They don't need to. They just need to be created in the state of a brain that acknowledged its existence. But there's no thought if the neurons don't have time to fire. If you created an exact physical duplicate of my brain, but frozen, then it's not experiencing anything . It doesn't matter what i...
by TheChewanater
Sun May 29, 2011 1:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

I got this message from Valgrid. I don't have much experience with it, but does this mean that there's a leak in my program, or in Glut? ==732== HEAP SUMMARY: ==732== in use at exit: 260,044 bytes in 602 blocks ==732== total heap usage: 3,464 allocs, 2,862 frees, 23,226,164 bytes allocated ==732== =...
by TheChewanater
Sun May 29, 2011 1:03 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

Also, in a universe energetic and chaotic enough to randomly have a fully operational thinking brain just pop into existence through particle vibrations, those brains will be just as likely to be obliterated before their neurons can process anything at all , including the concept of their existence...
by TheChewanater
Thu May 26, 2011 11:15 pm UTC
Forum: Religious Wars
Topic: Opera, Chrome, Firefox, OR?
Replies: 544
Views: 221809

Re: Opera, Chrome, Firefox, OR?

I use Firefox because of firemacs/vimperator, about:config, and all the rest of the addons. People that use any other browser apparently don't mind browsing in a simple, childlike fashion. Yeah, I know. I hate how Opera treats me like a child by having more options and control than Firefox out of t...
by TheChewanater
Wed May 25, 2011 8:46 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

Is the following piece of code understandable? Would you balk if you encountered it in the wild or is it a perfectly valid way of doing what it's trying to do? outerLoop: for (List<Foo> foo: foos) { List<Bar> bars = getBars(foo); for (Bar bar: bars) { pauseLoop: while(true) { switch (checkEnvironme...
by TheChewanater
Wed May 25, 2011 3:51 am UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

I meant to say many, not infinitely many. Still, say you test the universes by seeing if previous lotto numbers are correct for the past 50 years. You'll look at the universes that are, and try to find which one is ours. Assume each day the lotto number is twelve digits (or six two digit numbers) an...
by TheChewanater
Tue May 24, 2011 7:01 pm UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

The problem with our own universe is huge though. At least measuring from our own dimension, we could never know the variables to input into the computer. Uncertainty principle, plus faster than light expansion makes some things outside of our grasp. We could simulate the begginging states perhaps ...
by TheChewanater
Tue May 24, 2011 12:41 am UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

The problem with our own universe is huge though. At least measuring from our own dimension, we could never know the variables to input into the computer. Uncertainty principle, plus faster than light expansion makes some things outside of our grasp. We could simulate the begginging states perhaps ...
by TheChewanater
Mon May 23, 2011 3:11 am UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

This discussion reminds me of Source Code, where the machine is shut off and Stevens dies, but the simulated world still exists for some reason, implying it is a "reality" by itself.

Which is bullshit.
by TheChewanater
Sun May 22, 2011 4:22 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

EvanED wrote:TR1 is a standard, and I'm with sc4freak in saying "if your system doesn't provide TR1 then use Boost's substitution" is way better than rolling your own.

Okay. This isn't a serious project, so I guess it doesn't matter if it won't work with some outdated compilers.
by TheChewanater
Sun May 22, 2011 4:16 am UTC
Forum: Coding
Topic: Shell script help
Replies: 7
Views: 1056

Re: Shell script help

It might be nice to know which command failed.

Code: Select all

commands="dir false ls"

for command in $commands
do
    $command
    code
=$?
    
    if 
[ $code != 0 ]
    then
        echo $command 
"failed with exit code" $code
        exit $code
    fi
done
by TheChewanater
Sun May 22, 2011 3:46 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

Off the top of my head: ⋅  You don't provide const overloads, so you won't be able to use it as a const object ⋅  You don't provide any cast operators, so you can't do if(ptr) {}, and you also can't compare to NULL ⋅  Note that providing an implicit cast operator to bo...
by TheChewanater
Sun May 22, 2011 3:16 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8671
Views: 1830473

Re: ITT: We make xkcd slightly worse.

http://xkcd.com/441/
http://xkcd.com/901/

temperature.png
I think we did, unless our copy of the Kama Sutra had a mistranslation.
by TheChewanater
Sun May 22, 2011 2:49 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

Just use Boost. It's a header-only library so if you don't want people to go download Boost then just copy the headers you need and include them in your project. I was using Boost at first, but EvanD pretty much summed up why I'm not anymore. tr1 is basically Boost, so it's probably not any better ...
by TheChewanater
Sat May 21, 2011 9:15 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

FT: Is is safe for me to assume other people's compilers will have <tr1/shared_ptr.h>? I just found out about it, and I prefer not to add external dependencies like Boost if I don't have to.
by TheChewanater
Sat May 21, 2011 4:33 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 564868

Re: The "IT DOESN'T WORK!" thread

It works fine for me in GCC 4.6.
by TheChewanater
Thu May 19, 2011 6:45 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

So does anyone else when they go into a code file to make a change make their goal to add the minimum number of code lines possible? Or even better refactor the internal stuff to reduce the number of lines while still making the change? I always feel good about it when I run the final diff and I cu...
by TheChewanater
Wed May 18, 2011 11:40 pm UTC
Forum: News & Articles
Topic: The Thread To Remind Me We're Living In The Future
Replies: 1932
Views: 400974

Re: The Thread To Remind Me We're Living In The Future

D-Wave is likely to be full of shit, but quantum computers with a couple of atoms of memory have been constructed. It isn't even remotely 'a buzzword'. Quantum computers exploit a physical phenomenon that classical computer manufacturers put billions in research into eliminating from their circuit ...
by TheChewanater
Wed May 18, 2011 11:07 pm UTC
Forum: News & Articles
Topic: The Thread To Remind Me We're Living In The Future
Replies: 1932
Views: 400974

Re: The Thread To Remind Me We're Living In The Future

Quantum computers are here. I'm pretty sure they're just using that as a buzzword. From what I can discern, all they mean by "quantum computing" is that it uses an algorithm with the word "quantum" in it to solve some useless problems, which would probably be faster on a consume...
by TheChewanater
Mon May 16, 2011 6:35 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

Robert'); DROP TABLE *; wrote:Did you catch that before it produced confusing messages?

No, I didn't catch it until I was about to rewrite the entire function, because the files it was producing were way smaller than it said they "should" be.
by TheChewanater
Mon May 16, 2011 2:59 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

...yeah.

I'm used to using ostreams. I suppose I forgot that I was using C-style output while I was in the middle of typing that line.
by TheChewanater
Mon May 16, 2011 1:00 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2003425

Re: Coding: Fleeting Thoughts

FT: *facepalm*

Code: Select all

printf ("%d", sizeof (Header) + header->num_vertices << '\n'); 
by TheChewanater
Wed May 11, 2011 12:34 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8671
Views: 1830473

Re: ITT: We make xkcd slightly worse.

by TheChewanater
Tue May 10, 2011 7:30 pm UTC
Forum: Science
Topic: Things that don't move shouldn't be considered alive
Replies: 50
Views: 6235

Re: Things that don't move shouldn't be considered alive

gmalivuk wrote:
zmatt wrote:A virus is a machine, a biological one, but a machine.
So's your mom.

In that case, in what way is your mom distinct from an Xbox that makes her a living thing and not it?
by TheChewanater
Sat May 07, 2011 4:26 pm UTC
Forum: News & Articles
Topic: Algorithm identifies double entendres - That's What She Said
Replies: 33
Views: 4595

Re: Algorithm identifies double entendres - That's What She

Quick synopsis - a SVM-based algorithm has been built that, given a random sentence, will predict with about 75% accuracy whether replying to it with "That's What She Said!" will be funny bool ThatsWhatSheSaid::is_funny (const string sentence) const{  return !(rand () % 4);}  FTFY (also, ...
by TheChewanater
Fri May 06, 2011 8:47 pm UTC
Forum: News & Articles
Topic: Algorithm identifies double entendres - That's What She Said
Replies: 33
Views: 4595

Re: Algorithm identifies double entendres - That's What She

Quick synopsis - a SVM-based algorithm has been built that, given a random sentence, will predict with about 75% accuracy whether replying to it with "That's What She Said!" will be funny bool ThatsWhatSheSaid::is_funny (char const* sentence) const{  return false;}  (Yes, I read the footn...
by TheChewanater
Fri May 06, 2011 1:23 am UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

I was going to say to check if it produces exactly several complete animes, although I guess there would be infinitely many universes that produce such material and then begin to produce infinite cartoon porn (which may or may not be what dhokarena56 is looking for).
by TheChewanater
Thu May 05, 2011 2:04 am UTC
Forum: Computer Science
Topic: What would you do with an infinitely fast computer?
Replies: 818
Views: 226371

Re: What would you do with an infinitely fast computer?

Easy - simulate every possible model of the universe and keep the ones that produce the most desirable material.
by TheChewanater
Mon May 02, 2011 4:36 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8671
Views: 1830473

Re: ITT: We make xkcd slightly worse.

EDIT: Fixed an epic exponent fail.

unixtime.png

Only counting times where Unix Time exists and that can represent it.
by TheChewanater
Mon May 02, 2011 4:35 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0893: "65 Years"
Replies: 222
Views: 89599

Re: 0893: "65 Years"

Did anyone else think this has something to do with Y2k38 before reading the subtitle?

Go to advanced search