NathanMullenax's Profile
Reputation: 81
Whiz
- Group:
- Contributors
- Active Posts:
- 176 (0.72 per day)
- Joined:
- 23-September 12
- Profile Views:
- 2,048
- Last Active:
Jan 26 2013 09:00 PM- Currently:
- Offline
Previous Fields
- Country:
- Who Cares
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Classic
- Your Car:
- Who Cares
- Dream Kudos:
- 25
Latest Visitors
-
new2java10 
24 Apr 2013 - 08:06 -
frijj 
18 Apr 2013 - 05:32 -
jim.f.hurley 
26 Jan 2013 - 13:28 -
darek9576 
26 Jan 2013 - 13:02 -
modi123_1 
25 Jan 2013 - 20:55 -
.Aaron 
22 Jan 2013 - 16:32 -
jwhiteknight 
21 Jan 2013 - 12:31 -
farrell2k 
21 Jan 2013 - 07:47 -
Maria23 
19 Jan 2013 - 13:24 -
Joe daly 
19 Jan 2013 - 13:12
Posts I've Made
-
In Topic: RSS Feed Reader
Posted 26 Jan 2013
Use wget to download it (or curl, whatever). Or, do a view source on it. Either one will work. -
In Topic: Ideal web development languages
Posted 25 Jan 2013
This sort of question is bound to start a flame war. In any case, here's my two cents:
PHP:
Pros: hosting is cheap. If you are C/C++ programmer you can extend it pretty easily. There's a lot of great open source software written in PHP.
Cons: it's not very well designed--literally hundreds of disorganized, inconsistent top-level functions. New functionality is frequently sloppy. Like, they'll add support for 'functional-style programming' and arbitrarily limit the recursion depth to exactly 100 calls (tail-recursive or not).
Perl:
Pros: hosting is cheap. Also built on C, and also a lot of free/open-source software.
Cons: you'll have to join the cult, which can be pretty embarrassing because of all of the tattoos involved.
ColdFusion:
Pros: it's dead simple. It's also built on Java, so you can essentially write your application in Java and use minimal ColdFusion to interface with your Java code. It can also interoperate with .NET. Neato.
Cons: hosting is pretty expensive. Adobe doesn't really give a rat's ass about it (they acquired it some time ago). Job options are fairly limited.
Python:
Pros: cheap hosting, lambdas, uber-geeky community, hacker friendly, kind of fun to program.
Cons: Python gets severe breaking changes every time they update it. For example, there are thousands of Python 2.x programs that won't work in 3.x until you a) add parentheses to every print statement (because print should have been a function!) and b. adjust a bunch of pattern matching expression for some cryptic reason that I couldn't explain.
Someone else can chime in on Ruby. I personally find the hype so obnoxious that I've never bothered to learn it. -
In Topic: New to Perl
Posted 25 Jan 2013
As dsherohman mentioned, you can use $v = <STDIN>; to get input.
For example:
print "Would you like to sort in reverse (Y|N)?\n"; var $p_reverse = <STDIN>; if( lc($p_reverse)=="y" ) { # do reverse sorting } else { # do regular sorting } -
In Topic: New to Perl
Posted 25 Jan 2013
By the comments at the top of the file--which I assume are from the project template--you should be looking at the first parameter to determine the sort order. If the first parameter on the command line is '-r' or '--reverse' the sort order should be reversed.
To sort in reverse, you could use something like this:
my @rev = sort { lc( $b ) cmp lc($a) } @a;
The lc function converts a string to its lowercase equivalent, which is probably what you want for sorting strings.
The 'cmp' operator is a little strange--it returns -1, 0, or 1 depending on whether the lefthand side is less than, equal to, or greater than the righthand side. This is the same convention as a Java IComparable, if you are familiar. -
In Topic: No answer displays in my disabled textbox?
Posted 25 Jan 2013
First, I would try alerting this average instead of updating the disabled textbox.
alert("whatever");
Alert is really useful for debugging Javascript. Also, if you use Chrome or Firefox, it's good to have the JS Console open when you load your page to catch things like syntax errors.
It might be the case that you can't set a value in a disabled textbox. This kind of makes sense (though I haven't tested). If it's not an input, you could just as easily put it in a span or a div using something like:
document.getElementById('idOfDiv').innerHTML = "whatever";
Hope this helps.
My Information
- Member Title:
- D.I.C Head
- Age:
- 29 years old
- Birthday:
- December 29, 1983
- Gender:
-
- Location:
- Fort Myers, Florida
- Full Name:
- Nathan Mullenax
- Programming Languages:
- C++, Java, SML/NJ, QBasic, Haskell, C#, ColdFusion, SQL, PHP, Python, INTERCAL
Contact Information
- E-mail:
- Click here to e-mail me
- LinkedIn:
- http://www.linkedin.com/pub/nathan-mullenax/57/3ab/a27
- Facebook:
- http://facebook.com/jelehfish
Friends
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
rbk3ai
02 Oct 2012 - 16:00