dave_6_10's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Contributors
Active Posts:
59 (0.02 per day)
Joined:
19-March 08
Profile Views:
2,620
Last Active:
User is offline Nov 05 2014 06:34 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Nissan
Dream Kudos:
25

Latest Visitors

Icon   dave_6_10 has not set their status

Posts I've Made

  1. In Topic: build a fan in java

    Posted 5 Nov 2014

    [quote name='Glorfindal' date='05 November 2014 - 04:03 PM' timestamp='1415228608' post='2072473']
    The below code runs a timer every 50ms (20 times a second) that updates the fan blade position if it the fan is turned on then redraws the screen. I'll let you implement the fan speeds yourself. :)/>/>

    Is there a virtual fan speed at which the fan blades "appear" to begin spinning in the opposite direction of their initial rotation?
  2. In Topic: Warning: stripslashes() expects parameter 1 to be string, array given

    Posted 9 Nov 2013

    Something like this?

    $connection = mysql_connect("$mysql_server","$mysql_user","$mysql_password") or die ("Unable to connect to MySQL server.");
    $db = mysql_select_db("$mysql_database") or die ("Unable to select requested database.");
    $isMagic = get_magic_quotes_gpc()
    foreach($_POST as $key=>$value) {
    	// IF POST VARIABLE NOT BLANK
    	if (empty($_POST[$key])) {
    		if($isMagic) {
    			$_POST[$key] = array($_POST[$key]);
    		}
    		// ESCAPE CHARACTERS
    		$_POST[$key] = trim(htmlspecialchars(htmlentities(mysql_real_escape_string($_POST[$key]), ENT_QUOTES)));
    	}
    }
    
    foreach($_GET as $key=>$value) {
    	// IF GET VARIABLE NOT BLANK
    	if (empty($_GET[$key])) {
    		if($isMagic) {
    			$_GET[$key] = array($_GET[$key]);
    		}
    		// ESCAPE CHARACTERS
    		$_GET[$key] = trim(htmlspecialchars(htmlentities(mysql_real_escape_string($_GET[$key]), ENT_QUOTES)));
    	}
    }
    

    You have been a fantastic help in this project. Thank you for your timely responses and wonderful feedback. How may I credit you in the credit roll of this project?
  3. In Topic: Warning: stripslashes() expects parameter 1 to be string, array given

    Posted 9 Nov 2013

    Warning: array_map() [function.array-map]: Argument #2 should be an array in

    attempting that throws me this error at log in. perhaps my $_POST is sometimes an array but not always?

My Information

Member Title:
D.I.C Head
Age:
33 years old
Birthday:
June 10, 1982
Gender:
Years Programming:
17
Programming Languages:
HTML,Python,Pascal,Basic,COBOL,Ada,LISP,others

Contact Information

E-mail:
Private
MSN:
MSN  d_hiett@hotmail.com
Website URL:
Website URL  http://www.richmonddaddy.com
Yahoo:
Yahoo  dave_6_10
Facebook:
http://facebook.com/richmonddaddycom

Friends

Comments

dave_6_10 has no profile comments yet. Why not say hello?