Search found 12 matches

by sigmaman
Fri Dec 06, 2013 4:21 pm UTC
Forum: Coding
Topic: the Halp Essah thread
Replies: 3
Views: 2840

Re: the Halp Essah thread

Have you considered using JSONP? It was designed for the problem that you're encountering, and it appears that Rotten Tomatoes supports it. (here)
by sigmaman
Tue Mar 29, 2011 3:29 pm UTC
Forum: Computer Science
Topic: Base Conversion without Base 10
Replies: 7
Views: 17408

Re: Base Conversion without Base 10

When I wrote my base conversion algorithm, I stored any non base 10 number as a string, because it made the most sense to me to do it that way. The reason I converted to base 10 was so I could take advantage of the built in arithmetic most easily, although thinking about it now that was probably a d...
by sigmaman
Thu Feb 03, 2011 2:53 pm UTC
Forum: Coding
Topic: JavaScript Search For String Function
Replies: 2
Views: 930

Re: JavaScript Search For String Function

How are you specifying if the page is down? If you're using server-side scripting (PHP, perl, etc.), they why not add the image when you generate the page? If you're not using server-side scripting, why not just change the website to show the image when you change it to show down. Server-side script...
by sigmaman
Wed Jan 26, 2011 3:10 pm UTC
Forum: Coding
Topic: [C++] Numeric data validation
Replies: 16
Views: 3167

Re: [C++] Numeric data validation

I agree that atof is bad, but I've also never liked the C++ stream/io classes that overload the shift operator so badly (so badly I almost see why Java doesn't allow operator overloading). I use strtod (or strtol if I want to do integers) do this: Bad is so relative. Why do you think its bad? Becau...
by sigmaman
Sat Jan 22, 2011 12:49 pm UTC
Forum: Coding
Topic: 'For In's in C#?
Replies: 24
Views: 3484

Re: 'For In's in C#?

for k,v in dict.items(): do_stuff() Which is what the PHP is actually trying to do. Sadly there is no real equivalence in Java, although you could probably get something similar in a lot more lines of code. for (Map.Entry<K,V> e : dict.entrySet()) { do_stuff(e.getKey(), e.getValue()); } You were sa...
by sigmaman
Wed Jan 19, 2011 3:15 pm UTC
Forum: Coding
Topic: 'For In's in C#?
Replies: 24
Views: 3484

Re: 'For In's in C#?

I was mostly concerned with syntax, so they really aren't different from foreach. A response to how PHP is "better" than other languages. EDIT: I just realize I kinda misread the PHP thing, and so I propose the following in python: for k,v in dict.items(): do_stuff() Which is what the PHP ...
by sigmaman
Wed Jan 19, 2011 1:30 pm UTC
Forum: Coding
Topic: 'For In's in C#?
Replies: 24
Views: 3484

Re: 'For In's in C#?

My personal favorite is Python:

Code: Select all

for variable in iterator:
     do_stuff()


Although... Java isn't that bad:

Code: Select all

for(Type value: arraytype){}
by sigmaman
Wed Jan 12, 2011 3:50 pm UTC
Forum: Coding
Topic: [Help Still Needed] Coding/Psychology
Replies: 28
Views: 4117

Re: coding/psychology

Marketing has a good deal to do with it. You need to market your website to an audience.
by sigmaman
Tue Oct 06, 2009 6:35 pm UTC
Forum: Computer Science
Topic: Neural Networks Problem
Replies: 2
Views: 1204

Neural Networks Problem

I'm doing a research project as a senior in high school, and for my topic I'm exploring neural networks in Python. As a starting point, I decided to setup simple feed forward and back propagation. I took a class in Artificial Intelligence last year, and at the very end of the semester we spent a cou...
by sigmaman
Sat Dec 06, 2008 6:16 pm UTC
Forum: Coding
Topic: Python 3.0
Replies: 43
Views: 4000

Re: Python 3.0

It breaks my heart to see: >>> print "Hello world" File "<stdin>", line 1 print "Hello world" ^ SyntaxError: invalid syntax >>> Sigh... I'll make it through this. Its gonna be a pain to port all of my Python to 3.0...
by sigmaman
Thu Dec 04, 2008 1:34 am UTC
Forum: Coding
Topic: Another smart music-shuffle algorithm?
Replies: 13
Views: 2968

Re: Another smart music-shuffle algorithm?

If one wanted to do this, they would need to know at least something about the sound theory that goes into it. Anybody know of any good resources where I (or someone else) could read about the math behind computerized sound?
by sigmaman
Thu Dec 04, 2008 1:12 am UTC
Forum: Coding
Topic: Help Wanted
Replies: 36
Views: 83339

Re: Help Wanted

I am looking to see if any company in the DC area is looking to take in an (advanced) high school student for mentorship. The student would come from Thomas Jefferson High School for Science and Technology, rated number one high school by US News & World Report in 2007, and would have the suppor...

Go to advanced search