NathanMullenax's Profile User Rating: *****

Reputation: 83 Whiz
Group:
Contributors
Active Posts:
176 (0.25 per day)
Joined:
23-September 12
Profile Views:
4,799
Last Active:
User is offline Aug 31 2014 06:01 AM
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

Icon   NathanMullenax a programmer desperately trying to get a job in fast food.

Posts I've Made

  1. 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.
  2. 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.
  3. 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
    }
    
  4. 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.
  5. 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:
30 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

Comments

Page 1 of 1
  1. Photo

    rbk3ai Icon

    02 Oct 2012 - 16:00
    Thanks man you got mad skills!
Page 1 of 1