Slashdot Mirror


User: JoeCoder7

JoeCoder7's activity in the archive.

Stories
0
Comments
15
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 15

  1. Summoning on Ask Richard Dawkins About Evolution, Religion, and Science Education · · Score: 0

    What is the proper method of summoning your presence? I bought a book of incantations on ebay but I think it was a scam.

  2. Was it on New Frog Species Found In NYC · · Score: 0

    foul bachelor frog?

  3. Genesis 6:3 on Why People Don't Live Past 114 · · Score: -1

    Then the LORD said, "My Spirit will not contend with man forever, for he is mortal; his days will be a hundred and twenty years."

  4. Source of Origin on Fujitsu To Develop Vigilante Computer Virus For Japan · · Score: 5, Funny

    What happens when the Fujitsu virus meets itself and destroys its own source of origin?

  5. Re:Papervision 3D on Google Brings 3D To Web With Open Source Plugin · · Score: 0

    Yes, but papervision uses software rendering because that's all flash can do. You'll get 10x the framerate from this since it actually uses your computer's 3d hardware.

  6. Yes, but... on Debian Gets FreeBSD Kernel Support · · Score: 1, Funny

    does it run linux?

  7. Re:For an individual device on Measuring the Energy You Use? · · Score: 0

    This one is qite a bit cheaper at $30.

  8. Re:Update, indeed on HD Should Be Wired, For Now · · Score: 0

    Actually, I probably spend 10x the bandwidth per month updating Kubuntu than I do Windows XP. But that's only because Windows refuses to update anything besides itself, IE, and Outlook express. I even have to go out and find newer versions of my drivers all by myself. How retro!

  9. Re:oooo on DoD Study Urges OSS Adoption · · Score: 0, Offtopic

    Nah, just new to the comment systems. I've been reading /. for probably 5 years.

  10. Re:oooo on DoD Study Urges OSS Adoption · · Score: 0, Offtopic

    Weird. The thread I replied to seems to have been deleted.

  11. Re:oooo on DoD Study Urges OSS Adoption · · Score: 1

    Perhaps there are easier ways to cut spending.

  12. Sign In on Developing Your First Eclipse RCP Application · · Score: 1

    Seems to require a username and password From bugmenot.com: wchlib library

  13. Mighty Mouse on The Mighty Mouse Has Lost Its Tail · · Score: 1

    Glad they finally found a good use for this.

  14. Re:Humans? on 30th Anniversary of Viking Landing on Mars · · Score: 1
    So, when will humans get there?
    So now we vickings aren't even human? Will the prejudice never end!
  15. Re:How difficult is it. on SQL Injection Attacks Increasing · · Score: 1

    Forgive me if someone has posted something similar already, but below is the code I sometimes user for sanitizing user input for PHP/MySQL.  It should  allow a lazy programmer to do things like $_POST = sanitize($_POST) and everything will be taken care of recursively.  Constructive criticism is welcome.

    // Sanitize form input for database input as well as any html tags.  Recursively processes arrays.
    // IMPORTANT!!! You must already be connected to a mysql database for this function to work.
    function sanitize($text, $clean_html=false)
    {    if (is_array($text))
        {    foreach ($text as $key=> $value)
                $text[$key] = sanitize($text[$key], $clean_html);
        }else
        {    if (get_magic_quotes_gpc())            // Manually remove any
                $text = stripslashes($text);        // escape characters
            if ($clean_html)
                $text = htmlentities($text, ENT_QUOTES);// Replace HTML characters with sanitized versions
            $text = mysql_real_escape_string($text);    // Clean up anything else left over.
        }
        return $text;
    }