## Search found 302 matches

Mon Jun 23, 2008 1:30 am UTC
Forum: Coding
Topic: Too large for long type...
Replies: 34
Views: 2869

### Re: Too large for long type...

You could also use gmp and rid yourself of all your integer length-related issues.
Wed May 28, 2008 2:17 pm UTC
Forum: Coding
Topic: Windows/Mac Audio Programming
Replies: 7
Views: 1670

### Re: Windows/Mac Audio Programming

What do you mean by "plain vanilla"? I mean just using the standard tools and API made available by the vendors themselves, not using a framework (okay, so I didn't quite do that when I used gstreamer, give me a break) that users would likely have to install before they could use my progr...
Wed May 28, 2008 5:47 am UTC
Forum: Coding
Topic: Windows/Mac Audio Programming
Replies: 7
Views: 1670

### Re: Windows/Mac Audio Programming

OpenAL seems way larger than I need or want to use, or want my users to need to install. I will look more in to pyglet eventually, thanks.

Nobody knows about plain vanilla audio programming on Windows or OS X?
Sat May 24, 2008 7:54 am UTC
Forum: Coding
Topic: Windows/Mac Audio Programming
Replies: 7
Views: 1670

### Windows/Mac Audio Programming

I'm currently developing an application in python and GTK+ which I'd like to work on Linux, Mac, and Windows. It's an audio app, so currently it uses gstreamer, but I need to add code that works with the audio APIs of Windows and OS X. If anyone here has any experience with either, please give me so...
Sat May 24, 2008 7:51 am UTC
Forum: Coding
Replies: 662
Views: 134268

### Re: Funniest/Most Annoying Code Comments

Goro wrote:Yes it calculate the inverse square root.

If that was a joke, it was funny. ("Here, develop an algorithm to find the inverse square root!")

If not, I cry for you.

They want the inverse square root [imath]\frac{1}{\sqrt x}[/imath], not, as you seem to think, [imath]x^2[/imath].
Mon May 19, 2008 12:12 am UTC
Forum: Coding
Topic: Python as a web language
Replies: 17
Views: 5166

### Re: Python as a web language

I've been dabbling in Django for a while now, and I have to say, it is absolutely beautiful. I enjoyed Rails a bit back in the day, but I've since become disgusted with Ruby's syntax (it seems far too flashy and Perl-esque for me; Python is a lot cleaner and more symmetric), so Django is just wonder...
Sun May 18, 2008 11:52 pm UTC
Forum: Mathematics
Topic: Encrypted letter to Fermilab
Replies: 15
Views: 4762

### Re: Encrypted letter to Fermilab

Still paddling around the old knew?
Fri Apr 18, 2008 2:31 am UTC
Forum: Mathematics
Topic: Levels of Infinity (theory)
Replies: 63
Views: 6504

### Re: Levels of Infinity (theory)

Does anyone know what ekta is yet?
Fri Apr 18, 2008 2:24 am UTC
Forum: Mathematics
Topic: ideas for a statistics or math-themed bday cake?
Replies: 20
Views: 3137

### Re: ideas for a statistics or math-themed bday cake?

How has pie not been involved yet?
Fri Apr 18, 2008 2:18 am UTC
Forum: Mathematics
Topic: Math problem regarding my sex life
Replies: 26
Views: 4604

### Re: Math problem regarding my sex life

On a practical note, it might be worth asking how likely it is that you'll use coitus interruptus perfectly. Considering failure to do it properly may result in loss of condomless sex privileges, very likely. Unfortunately, such considerations often fall by the wayside in the "heat of the mome...
Tue Mar 25, 2008 1:00 pm UTC
Forum: Mathematics
Replies: 185
Views: 252236

We submitted this to CRYPTO 2008. Sadly, it's not as pure-math as I'd like it to be, but it wasn't all systems-oriented either, and the project itself was a lot of fun anyway. We've implemented hashing, and we just have to tidy up the program a bit more and make it usable.
Fri Mar 21, 2008 12:20 am UTC
Forum: Coding
Topic: Do you like solving programming problems?
Replies: 17
Views: 2128

### Re: Do you like solving programming problems?

Good coding contests here, world finals warmups this saturday and next.

Good luck to all!
Fri Mar 21, 2008 12:09 am UTC
Forum: Coding
Topic: Sorting a 2D Array
Replies: 18
Views: 2040

### Re: Sorting a 2D Array

My first suggestion is to put the matrix in row-major order and sort it with a regular sorting algorithm. If you're against that for some reason, you can apply a merge-sort-like algorithm to the rows once you've got them sorted, or put the first element of each row in a heap, take out the minimum el...
Wed Feb 27, 2008 5:40 am UTC
Topic: 0389: "Keeping Time"
Replies: 213
Views: 50298

### Re: "Keeping Time" Discussion

-1 for parallel octaves
Sun Feb 24, 2008 1:26 am UTC
Forum: Coding
Topic: Lisp
Replies: 7
Views: 2273

### Re: Lisp

scheme is also good, and probably has mac-friendly packages.
Fri Feb 22, 2008 12:21 am UTC
Forum: Mathematics
Topic: Sin(q*pi)=r; q,r rational
Replies: 7
Views: 1635

### Re: Sin(q*pi)=r; q,r rational

To find the rational points on a curve, you need to first find one such point, (a,b). Now, parameterise the line y-b = m(x-a) such that m is rational. Now, if x is rational, y must also be rational, so every point with a rational x coordinate on this line will also have a rational y coordinate. If y...
Wed Jan 30, 2008 5:13 am UTC
Forum: Mathematics
Topic: Symmetry in Music and Connections with Abstract Algebra
Replies: 4
Views: 2188

### Re: Symmetry in Music and Connections with Abstract Algebra

There is actually a lot of research on this topic (treating the notes of the scale as Z 12 ), very little of which was introduced to me in my high school theory class. Imagine the notes written at each clock position. Now take any number, pick that many notes around the clock, and space them as even...
Wed Jan 30, 2008 5:08 am UTC
Forum: Mathematics
Topic: Operations On Complex Numbers
Replies: 4
Views: 1193

### Re: Operations On Complex Numbers

Note that "multiplying the numerator and denominator by the conjugate" is, as it was all through high school, just multiplying by 1.
Tue Jan 29, 2008 6:10 am UTC
Forum: Religious Wars
Topic: How to move the cursor
Replies: 48
Views: 11353

h, j, k, l, gg, G, #G, #j, $, 0, w, (, ), ^t, ^](I think that's pop, maybe it's the other bracket) Tue Jan 29, 2008 6:08 am UTC Forum: Religious Wars Topic: Using programs with the "wrong" desktop manager Replies: 18 Views: 3768 ### Re: Using programs with the "wrong" desktop manager I run gnome with ion3 instead of metacity.... Tue Jan 29, 2008 5:53 am UTC Forum: Mathematics Topic: Why do people dislike maths so much? Replies: 258 Views: 26204 ### Re: Why do people dislike maths so much? I blame poor teaching strategies in pre-university. Teachers stress memorization far too much. Thu Jan 24, 2008 9:46 pm UTC Forum: Religious Wars Topic: Base 12 kicks all your asses Replies: 88 Views: 22692 ### Re: Base 12 kicks all your asses You can't really have a non-integer base, can you? because natural numbers (base e) would rawk. I would think it would come out to something along the lines of 221 in base 2.5 would be 2(2.5)^2 + 2^(2.5) + 1 which would be 8.5 in decimal. I think the same would follow for numbers like e and pi Now ... Sat Jan 19, 2008 12:41 am UTC Forum: Coding Topic: How many programming languages do you know? Replies: 119 Views: 32840 ### Re: How many programming languages do you know? C, C++, Java, Python, Ruby, PHP, Javascript, bash, Perl, MIPS asm, Mathematica, Haskell, Scheme, ML (sml/O'Caml) Oh, and Chef. Sat Jan 19, 2008 12:37 am UTC Forum: Coding Topic: C Compiler Recommendation Replies: 26 Views: 3440 ### Re: C Compiler Recommendation Hah, I learned on a Borland compiler. That was ugly. Sat Jan 19, 2008 12:34 am UTC Forum: Mathematics Topic: Kumon method - anyone tried it? Replies: 21 Views: 6625 ### Re: Kumon method - anyone tried it? All I want to say is that I read the title of this thread, and first thought "oh, kumon, you haven't?" Sat Jan 19, 2008 12:27 am UTC Forum: Mathematics Topic: Math bloopers heard in math classes Replies: 252 Views: 31115 ### Re: Math bloopers heard in math classes my lecturer had a habit of refering to elements as "this guy" .... and whilst proving that a set, which he labeled U, was nonempty, he coined the phrase "and then there is this little guy who sits inside of U" .... priceless :D Haha, my algebra professor did that all the time . ... Fri Jan 11, 2008 9:38 pm UTC Forum: Coding Topic: Alternatives to the dreaded goto Replies: 114 Views: 17284 ### Re: Alternatives to the dreaded goto I'm sick of having to do Ctrl-F "somelabel" just to find a label a few thousand lines up or down of that line, only to have it filled with several more goto's. I think some previous coders must of had a competition to see who can be the most "creative" with goto... I'm just goin... Fri Jan 04, 2008 5:09 am UTC Forum: Religious Wars Topic: Browsers Replies: 187 Views: 33970 ### Re: Browsers Tei wrote: rabyd_donkey wrote: wing wrote:Wget doesn't display anything. What's wrong with pairing it with cat? . Or you can do (pseudocode):$ wget http://www.google.com -o file.htm && lynx -dump file://file.htm

Yeah, you know, or wget http://www.google.com -O - and parse the html yourself.
Fri Jan 04, 2008 5:01 am UTC
Forum: Mathematics
Replies: 393
Views: 55470

### Re: Amusing answers to tests

Umm, not to sound offtopic, but why all tasks are so illustrated? Those aliens, Traceys, talk-shmalks? Do they really believe they can explain 'sciency' stuff better that way? I studied mostly in 90s, and I don't remember that. We had tons of tasks which sounded like - 40ml of 10% solution of NaCl ...
Thu Jan 03, 2008 5:49 pm UTC
Forum: Mathematics
Replies: 393
Views: 55470

### Re: Amusing answers to tests

Umm, not to sound offtopic, but why all tasks are so illustrated? Those aliens, Traceys, talk-shmalks? Do they really believe they can explain 'sciency' stuff better that way? I studied mostly in 90s, and I don't remember that. We had tons of tasks which sounded like - 40ml of 10% solution of NaCl ...
Wed Jan 02, 2008 6:42 am UTC
Forum: Religious Wars
Topic: Rename Quicksort!
Replies: 30
Views: 9416

### Re: Rename Quicksort!

Can we just call it godsort and be done with it? But it frequently isn't the best sort! Its only real commendation is it's low coefficients for common cases. When you need a reliably fast sort it is very slow comparatively and when you need parallelization it is atrocious and when you know anything...
Mon Dec 31, 2007 8:36 am UTC
Forum: Music
Topic: Favorite Band that no one has heard of!
Replies: 360
Views: 44614

### Re: Favorite Band that no one has heard of!

Arabella wrote:
Finn wrote:Anyone heard of Animal Collective?

Love them, but the last album sucked.

nooooo way.

Yes way. They stopped having everyone sing at once.

ukos wrote:Battles- Looping live on stage. It isnt really looped it is just incredibly rythmic

They _do_ loop, and their shows are incredible.
Mon Dec 31, 2007 8:33 am UTC
Forum: Religious Wars
Topic: best terminal emulator
Replies: 47
Views: 8940

### Re: best terminal emulator

It's .Xdefaults (or .Xresources also, I think), and yes, rxvt-unicode is excellent.
Mon Dec 31, 2007 8:31 am UTC
Forum: Religious Wars
Topic: Recursion
Replies: 123
Views: 21230

### Re: Beginning in Computer Science

Honestly, though, how many times have any of you here actually written a recursive function in the wild? Most of the time it's a better idea to write it iteratively simply because it takes up less space and is more straightforward. Really? Recursive code is _much_ easier to debug (if you are famili...
Mon Dec 31, 2007 8:27 am UTC
Forum: Religious Wars
Topic: Rename Quicksort!
Replies: 30
Views: 9416

### Re: Rename Quicksort!

Can we just call it godsort and be done with it?
Mon Dec 24, 2007 4:34 am UTC
Forum: Coding
Topic: Python indentation error
Replies: 12
Views: 4218

### Re: Python indentation error

Code: Select all

a, b = b, a+b
rather than

Code: Select all

a = bb = a+b
.

Also, I believe you'd need to use

Code: Select all

messabout.fib
outside of the class declaration. Alternatively, forget the class altogether.
Mon Dec 24, 2007 4:25 am UTC
Forum: Mathematics
Topic: A 52-permutation.
Replies: 12
Views: 1652

### Re: A 52-permutation.

If you make permutations of order 52, you're already excluding half of the possible permutations! Don't do that! You could enumerate all the permutations, and then generate a random number between 1 and 52!, and index into your enumeration. I can't think of anything else that would be accurate (in t...
Fri Dec 21, 2007 6:13 am UTC
Forum: Mathematics
Topic: Favorite math jokes
Replies: 1452
Views: 461397

### Re: Favorite math jokes

My favorite(I didn't see anyone offer this) is a LaGrange quote? I can't remember off the top of my head. "The best way to solve this differential equation is to stare at it until the answer occurs to you." This reminds me of grading the question "how many internal nodes does a full ...
Fri Dec 21, 2007 6:07 am UTC
Forum: Religious Wars
Topic: ls vs. ls -l
Replies: 33
Views: 5246

### Re: ls vs. ls -l

I hardly even use ls at all anymore when I've got the double tab listing capabilities of bash! Now if I could only get bash to list stuff in a single column.... Vim can do it in a single row, but that's not as good :P Also, if I could get bash to list file sizes in bytes and human-readable at the s...
Fri Dec 21, 2007 6:04 am UTC
Forum: Religious Wars
Topic: Base 12 kicks all your asses
Replies: 88
Views: 22692

### Re: Base 12 kicks all your asses

If a number representation system doesn't have a closed form equation for the nth digit of pi, it ain't for me.