Search found 40 matches

by Cynic
Fri Nov 14, 2008 11:45 am UTC
Forum: General
Topic: Lucky Ten Thousand (TIL)
Replies: 13421
Views: 1748903

Re: Today You Learned

Life sucks
by Cynic
Fri Nov 14, 2008 11:23 am UTC
Forum: General
Topic: Prayers Needed.
Replies: 46
Views: 6636

Re: Prayers Needed.

Noodly blessings be 'pon him. Yarr =(
by Cynic
Wed Jun 04, 2008 4:57 pm UTC
Forum: Coding
Topic: Simple Encryption Algorithm
Replies: 10
Views: 3116

Re: Simple Encryption Algorithm

RSA seems easier than what you just described.
by Cynic
Sat May 31, 2008 2:20 pm UTC
Forum: Coding
Topic: Funniest/Most Annoying Code Comments
Replies: 662
Views: 144488

Re: Funniest/Most Annoying Code Comments

The way they were explained to me, asserts are good for writing libraries. Say you write a Date object. In it you're going to have to check that month is >= 0 and < 12. When the library gets used the programmer is going to have his own system set up for ensuring that month is within the 0 to 11 ran...
by Cynic
Sat Mar 15, 2008 5:27 pm UTC
Forum: Coding
Topic: 1 Line programs
Replies: 21
Views: 3053

Re: 1 Line programs

int j=0; main(int m, char* n[]) { return j>0? (m=atoi(n[1]))-m+main(m,n=atoi(n[2])) : (j=0)+m!=0?m<=0||n!=0?m<=0||n<=0?-99:main(m-1,main(m,n-1)):main(m-1,1):n+1; } Bourbon + 4am makes it hard to debug code that *started out* as spaghetti yes, that's a recursive main function. *rubs eyes* 10 points ...
by Cynic
Wed Feb 06, 2008 5:49 am UTC
Forum: Coding
Topic: Plugins/hooks: best current practices
Replies: 7
Views: 1761

Re: Plugins/hooks: best current practices

Does PHP have namespaces or something similar (such as classes)? Should eliminate worries about namespace clashes if you can encapsulate whole plugins into a single namespace.
by Cynic
Wed Feb 06, 2008 4:19 am UTC
Forum: Science
Topic: Crazy idea - 4-dimensional existence/computation.
Replies: 12
Views: 2427

Re: Crazy idea - 4-dimensional existence/computation.

The problem is that it requires information from the future to loop back to the past and affect itself. I believe the phrase PIME TARADOX is appropriate. I did once hear of an idea. Basically, make a computer that, given a problem, does these things: 1)Check to see if the future has sent us the sol...
by Cynic
Wed Feb 06, 2008 4:01 am UTC
Forum: Science
Topic: Crazy idea - 4-dimensional existence/computation.
Replies: 12
Views: 2427

Crazy idea - 4-dimensional existence/computation.

Crazy idea here. This probably applies more directly to general science rather than computer science. Or probably philosophy. I dunno. It's also probably in the wrong forum, but I might turn this into science fiction, so it seems appropriate. I've had way too much coffee and I'm typing in between co...
by Cynic
Wed Jan 16, 2008 3:42 am UTC
Forum: News & Articles
Topic: A Theory on Why Global Warming Will Never Happen
Replies: 126
Views: 11348

Re: A Theory on Why Global Warming Will Never Happen

Someone saying they experienced something is not evidence. Its a claim, and when backed up by real (scientific by your words) evidence, its a fact. Someone saying, "I did this and this was the result" is very much anecdotal evidence. No, you are mischaracterizing it. Anecdotal evidence is...
by Cynic
Wed Jan 16, 2008 3:17 am UTC
Forum: General
Topic: US Presidential Primaries - discussion
Replies: 281
Views: 24315

Re: US Presidential Primaries - discussion

I'm from Australia so I'm a bit out of the loop, as far as the US political system operates, but did Barack's loss in NH eliminate him from presidential contention?



edit:

Oh, I think I see how this works now.
by Cynic
Mon Jan 14, 2008 5:31 am UTC
Forum: News & Articles
Topic: A Theory on Why Global Warming Will Never Happen
Replies: 126
Views: 11348

Re: A Theory on Why Global Warming Will Never Happen

I just thought of something. God will never flood the Earth again, sure...

But what if *we* do it? Global warming.. well, if it's our fault, then we'll be in some hot water, for sure...

(bad-arse pun :D)
(bad arse-pun?)
by Cynic
Mon Jan 14, 2008 4:18 am UTC
Forum: Serious Business
Topic: Fulltime work.. busy little worker bee.. happy drones now.
Replies: 3
Views: 1361

Fulltime work.. busy little worker bee.. happy drones now.

I'm sacrificing 5/7ths of my life for ... well, not that much. I live at home. I'm fed and given a bedroom, even after almost 21 years. I landed a programming gig over the 2nd semester of uni and the summer break. The job is fairly technical but not overly interesting.. Essentially, I have no motiva...
by Cynic
Sat Jan 12, 2008 1:07 pm UTC
Forum: Gaming
Topic: The Most Amazing Videogame Accomplishments of all Time
Replies: 117
Views: 9617

Re: The Most Amazing Videogame Accomplishment of all Time

No offense but... for most Americans, Guitar Hero is the first bemani style game (rhythm-based) they've ever played. There's *much* harder shit out there, the hardest of which are probably various songs on Stepmania. Stepmania is basically DDR played on a PC keyboard. It's also open source AFAIK. Th...
by Cynic
Fri Jan 11, 2008 6:24 am UTC
Forum: Religious Wars
Topic: Base 12 kicks all your asses
Replies: 88
Views: 24073

Re: Base 12 kicks all your asses

base phi ftw
by Cynic
Fri Jan 11, 2008 5:47 am UTC
Forum: Religious Wars
Topic: Recursion
Replies: 123
Views: 22753

Re: Recursion

Everyone's getting confused because we're so concerned with whether code is iterative or recursive. Instead of a more fundamental concept. The solution, or the problem, or something. I know that it sounds a bit Zen, but there's a fundamental distinction, and I believe the original poster was asking ...
by Cynic
Tue Jan 08, 2008 5:40 am UTC
Forum: Serious Business
Topic: Transhumanism
Replies: 461
Views: 45846

Re: Transhumanism

It's a long thread. I seriously hope someone's mentioned Serial Experiments Lain.
by Cynic
Tue Dec 18, 2007 3:04 am UTC
Forum: Computer Science
Topic: ssh over http?
Replies: 9
Views: 5283

Re: ssh over http?

- SSH over HTTP should be really, really easy and probably already exists. - People have demonstrated message-injection over wireless in the past. At DEFCON I believe they replaced all images with goatse.jpg. The reactions were hilarious - people weren't grossed out, they were just completely parano...
by Cynic
Tue Dec 18, 2007 2:56 am UTC
Forum: Computer Science
Topic: Strange Loops and Backdoors
Replies: 49
Views: 16019

Re: Strange Loops and Backdoors

What about this: If one used two different compilers to compile GCC, then used each GCC-bin to compile the app-bin, if there were differences in the app-bin then there's a problem.
by Cynic
Mon Dec 17, 2007 11:44 pm UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

Re: C++ - Ackermann function optmisation

Okay, fixed (broke?) that Factor code. And indented it, so everyone can actually read it. It's still faster than the translucid interpreter I wrote, presumably because Factor was written by highly skilled coders, rather than me. But C# version is king! Cheaty: USING: memoize ; MEMO: ackermann ( m n ...
by Cynic
Mon Dec 17, 2007 5:49 am UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

Re: C++ - Ackermann function optmisation

Okay. Cool - I was recently working on a functional language implementing exactly that. It was an interpreter though... and written in C++ as a group assignment... SLOW!! =P My cache data structure in C# must be inefficient as all hell, in that case. I was using basically a Dictionary, which is a ha...
by Cynic
Mon Dec 17, 2007 5:15 am UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

Re: C++ - Ackermann function optmisation

this took me about 10 minutes to write in factor: USING: memoize ; MEMO: ackermann ( m n -- r ) over zero? [ 1+ nip ] [ over 1 = [ 2 + nip ] [ over 2 = [ 1 shift 3 + nip ] [ over 3 = [ 3 + 1 swap shift 3 - nip ] [ dup zero? [ drop 1- 1 ackermann ] [ dupd 1- ackermann swap 1- swap ackermann ] if ] i...
by Cynic
Tue Dec 11, 2007 12:15 am UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

Re: C++ - Ackermann function optmisation

I'm dicking around in C# (trying to learn the language) and have come up with a stack-based, iterative implementation, implementing a cache (much much faster, better than exponential difference). I'll post it if anyone wants..? It needs to be cleaned up tho.
by Cynic
Sun Dec 09, 2007 6:07 am UTC
Forum: Language/Linguistics
Topic: Then vs. than
Replies: 48
Views: 5650

Re: Then vs. than

Hrm. If I could tell when a person says "would of" in meatspace (ie, not cyberspace), I would immediately stab them. Or perhaps I'd bludgeon them to death with primary-school English textbooks.
by Cynic
Tue Dec 04, 2007 6:13 am UTC
Forum: Mathematics
Topic: Division by Zero (Please, no new threads about this)
Replies: 367
Views: 84487

Re: Division by Zero ([s]3[/s] 4 merged threads)

Maths is basically just rearranging symbols on a page, anyway. What you end up with after doing so is simply another expression of the same facts with which you started out. Nothing's created or destroyed - we just give ourselves the ability to see things differently after rearranging all the symbol...
by Cynic
Tue Dec 04, 2007 3:58 am UTC
Forum: Language/Linguistics
Topic: strange and lesser known words
Replies: 79
Views: 14164

Re: strange and lesser known words

Hummmm.... lemme see. Defenestration is a favourite, due to its absolute specificity. I often find myself wishing either that English had many more such specialised words, or that I actually end up remembering them in the first place... :P. Isn't this one of the problems inherent in translating the ...
by Cynic
Tue Nov 27, 2007 1:48 am UTC
Forum: Coding
Topic: Detecting CPU instabilities using a CPU stressing program.
Replies: 4
Views: 1382

Detecting CPU instabilities using a CPU stressing program.

I've written a tiny CPU stressing program that creates an arbitrary number of threads (user input), each of which does some random garbage that consumes CPU cycles. Eventually I want to make the garbage into comprehensive garbage - testing different areas of the CPU or something, to be sure that the...
by Cynic
Tue Nov 27, 2007 1:35 am UTC
Forum: Coding
Topic: Assembly... BUH BUM BAAHH
Replies: 90
Views: 23721

Re: Assembly... BUH BUM BAAHH

ASM is extremely practical when speed is a factor. Eg, I think it was H.264 codec, but recently they added some random optimisation to their encoding routine (which was written in specially-crafted ASM), & achieved a speedup > 10% on intel Core 2 cpus. Can't remember how I got this info, or wher...
by Cynic
Wed Oct 03, 2007 9:48 am UTC
Forum: Coding
Topic: Funniest/Most Annoying Code Comments
Replies: 662
Views: 144488

Re: Funniest/Most Annoying Code Comments

Code: Select all

//The stack! Holds values of expressions.
//Angel: What stack? It's a bloody vector! Don't confuse people!
//Jono: It's a vector that is used like a stack! Makes more sense to name it as such.
vector<string> val_stack;
by Cynic
Wed Oct 03, 2007 6:12 am UTC
Forum: Computer Science
Topic: Strange Loops and Backdoors
Replies: 49
Views: 16019

Re: Re:

I really like the idea. I found the graph confusing though, & this seems easier to understand for me: (I used arbitrary version numbers of a fictional compiler) Modified 4.1 source compiled into 4.1 binary (infected) 4.2 source created from clean 4.1 source and distributed. 4.1 binary compiles 4...
by Cynic
Sat Aug 25, 2007 2:03 am UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

Oh holy shit - the stack-based thing just looks like a function stack. I see where that's going.
by Cynic
Sat Aug 25, 2007 1:57 am UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

To be honest, I didn't understand the stack-based implementation - and no, it doesn't even compile. I think perhaps it's valid code, but in some language other than C++ (C++ container types always require a declaration with the type they'll be storing, & this code doesn't provide it...). And I'm...
by Cynic
Fri Aug 24, 2007 5:06 pm UTC
Forum: Coding
Topic: C++ - Ackermann function optmisation
Replies: 23
Views: 7909

C++ - Ackermann function optmisation

I'm trying to optimise an implementation of the Ackermann function as much as possible, to see how much I can actually compute. (this is what I do instead of actually getting stuff done at work) I think it'll be cool if we can get a team effort happening, & try to get the largest value we possib...
by Cynic
Wed May 30, 2007 5:11 pm UTC
Forum: Logic Puzzles
Topic: Einstein's Riddle
Replies: 33
Views: 10280

I really don't like this.

There HAS to be a neater way of doing it. I don't like the fact that you have to 'brute force' it.

Maybe there's some branch of maths dealing with multidimensional datasets that has some kind of crazy solution :P
by Cynic
Wed Mar 28, 2007 11:54 am UTC
Forum: Logic Puzzles
Topic: An unusual resolution of the liar's paradox.
Replies: 27
Views: 18050

The whole problem with the liar's paradox is that it never actually evaluates. This isn't because there's a 50% probability of it being incorrect.. it's because it sets into motion a sort of cascading logical path... this statement is false { this statement is false { this statement is fal...
by Cynic
Thu Dec 21, 2006 5:41 am UTC
Forum: Logic Puzzles
Topic: Knights and tiles
Replies: 12
Views: 4653

What about 3d chess?

n x n x n board

:P
by Cynic
Sat Nov 18, 2006 3:23 pm UTC
Forum: General
Topic: Motorcycles, wheeeeee!
Replies: 22
Views: 6065

Just don't be one of those motorcyclists that gets a really loud exhaust system and then rides down the street at midnight waking people up. Though on the whole, I wish there were more motorcycles and less cars on the road. More bicycles would be even better. Yep. You can take people out more easil...
by Cynic
Wed Nov 15, 2006 4:27 am UTC
Forum: Logic Puzzles
Topic: Plane on a conveyor belt
Replies: 143
Views: 64096

Oh yeah! A harrier - why didn't I think of VTOL? :D hahahahahahaha!! But yeah, I think it's analogous to getting a little model plane and an actual, normal-sized treadmill and pushing on the plane with your fingers. Make the treadmill go at 1 km/h or so. Now if you push on the plane with your hand m...
by Cynic
Sun Oct 22, 2006 4:13 am UTC
Forum: Logic Puzzles
Topic: Plane on a conveyor belt
Replies: 143
Views: 64096

Guys, guys. I'VE GOT A BETTER IDEA Point the plane the other way round, so that it's facing the direction of the movement. Then, the wind rushing towards the plane will be generating lift rather than downforce (as wind in the reverse would tend to do) And it can take off WITHOUT engines. hehehehe. :...
by Cynic
Sun Oct 08, 2006 5:45 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0085: "Paths"
Replies: 19
Views: 11126

Andy, is that the university of NSW ?

edit: No. Looks similar but isn't it. =/
by Cynic
Sun Oct 08, 2006 5:43 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0163: "Donald Knuth"
Replies: 36
Views: 22393

Schrodingers cat-litter box.

Unless you observe it, you never have to change it.

Go to advanced search