Jump to content

x-Boy

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

x-Boy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thorpe and oni-kun you two are terribly wrong, every developer knows that related to a computer, every thing is possible, the thing is to find the way. Think it this way, if god/universe is a couple of physics rules and random numbers you can create a function (called god), do you know something more complex than god? lets call it GodAPP and we could base a religion on that fact. and we gonna have a lot of people just like us developing hypothesis to explain the nature of our creation and why it works like that, and other people simply saying that the results of our god function are not true without any base, other people developing statistics to try to retrieve our random values and maths functions to get the exact result they need to operate their creations. In this case there are a lot of ways to do what we need... a lot of them, just use the creativity. Don't say "We can't", but say instead "How we can?" (The nature of a developer is to investigate)
  2. I wonder how to identify a user even in they change ip, many of the users in europe got dynamic IP, and every user with a basic knowledge know that they can change IP by restarting the router. I need a way to identify a user by another method, first I thought detecting about the user movment patterns and typing speed, but its not accurate at all, thought about associate the browser, screen res, os, isp. but also we got the same problem, and dont even think about cookies (My 6 years old brother knows how to delete cookies). Sould be a way to detect something like MAC address, or another unique value that could help us to identify a user without IP or Cookies
  3. I'm using a gallery (JavaScript/jQuery) that loads the images from an array, and I'm using php to get the images and fill the JS array, it works OK with firefox, safari, chrome, etc. but not with InternetExplorer, it generates and error, the error alert is exposed below. Can somebody tell me how to make it work with IE7? <script type="text/javascript"> var mygallery=new simpleGallery({ wrapperid: "simplegallery1", //ID of main gallery container, dimensions: [532, 675], //width/height of gallery in pixels. Should reflect dimensions of the images exactly [250, 180 imagearray: [ <?php $imagegallery = $gallery; foreach(glob("galleries/".$imagegallery."/small/*.jpg") as $smallimage) { list($width, $height, $type, $attr) = getimagesize($smallimage); if ($width == 532 && $height == 675){ $largeimage = str_replace("small", "large", $smallimage); echo "[\"./$smallimage\", \"#\", \"openPopup('./$largeimage');\", \"\"],\n"; }else{} } ?> ], autoplay: [true, 5000, 5], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int] persist: false, //remember last viewed slide and recall within same session? fadeduration: 1000, //transition duration (milliseconds) oninit:function(){ //event that fires when gallery has initialized/ ready to run //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause")) }, onslide:function(curslide, i){ //event that fires after each slide is shown //Keyword "this": references current gallery instance //curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML) //i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc) } }) </script>
  4. thats the methos I used. I have noticed this error in FaT3oYCG's function, but thanks for the advice any way...
  5. ok understood the loop.... thanks!!! This topic is solved, but why it didn't worked my way? I mean why you got to use a loop? (asking to learn more... hehe) thanks again FaT3oYCG and genericnumber1
  6. Thank you VERY MUCH..... Can you explain : for($i=1;$i<=26;$i++) { $output = str_replace($arr_search[$i], $arr_replace[$i], $output); } Im a beginner
  7. I got a problem with str_replace, if you try the code below you'll see it doesn't return the assigned pronunciation correctly, and I don't know what's going wrong. I wonder if somebody can tell me what's going wrong and how I can solve it? function abc_pronunciation($incoming_input) { $arr_search = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'); $arr_replace = array(' ay ',' be ',' ce ',' dee ',' ee ',' aef ',' gee ',' aich ',' ii ',' jay ',' kay ',' el ',' em ',' en ',' oh ',' pee ',' qu ',' ar ',' as ',' tee ',' yu ',' vee ',' doble-yu ',' ex ',' ye ',' zee '); $output = str_replace($arr_search,$arr_replace,$incoming_input); echo $output; } $input = "barcelona"; abc_pronunciation($input);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.