www.webdeveloper.com

Search:

Type: Posts; User: bokeh

Page 1 of 20 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    235

    Yes, starting to look more complicated rather...

    Yes, starting to look more complicated rather than simple.
  2. Replies
    10
    Views
    235

    This is an if/else clause though.

    This is an if/else clause though.
  3. Replies
    10
    Views
    235

    How do I do this without an if/else clause?

    I've got a number. Could be positive or negative. I want to add 1 to it and have it become 1 step further from zero.
  4. Replies
    6
    Views
    903

    Thanks for the idea Nogdog. Not much simpler for...

    Thanks for the idea Nogdog. Not much simpler for 3 compared to mine but for 4 or more would be much simpler. Also I don't think you need the array stuff. Something like this...

    if(
    ...
  5. Replies
    6
    Views
    903

    That's completely different. I'm looking for more...

    That's completely different. I'm looking for more than one negative.
  6. Replies
    6
    Views
    903

    Is there a simpler way to write this?

    # enter the clause only if more than one of the following is negative. And they are all string values.
    if(false ===
    (
    ($uncommittedDiseqcCommand == "0" and $commitedDiseqcCommand == "none") or...
  7. Replies
    3
    Views
    502

    Thanks Nogdog.

    Thanks Nogdog.
  8. Replies
    3
    Views
    502

    String to array conversion

    Anyone see a simple way to convert this string into this array?


    {"inStandby": "false", "currservice_begin": "13:15", "muted": false, "isRecording": "false", "currservice_station": "BBC 1 South",...
  9. Replies
    31
    Views
    4,323

    If sort returned the array the code would look...

    If sort returned the array the code would look even simpler. Don't really understand why this function is by reference. Anyway I was thinking about the size of the DB more than anything else.

    Also...
  10. Replies
    31
    Views
    4,323

    Wouldn't it have been a lot easier to just sort...

    Wouldn't it have been a lot easier to just sort the letters of your word into alphabetical order and use that as the DB index?

    For example: xenophobia.

    Either: abehinoopx
    or:...
  11. Replies
    31
    Views
    4,323

    Well one thing you can be sure of is the key...

    Well one thing you can be sure of is the key order. With an associative array the keys could be in any order. If you were going to serialize and compare (like the acronym finder) the key order is...
  12. Replies
    31
    Views
    4,323

    BTW, what is the point converting 'a-z' to...

    BTW, what is the point converting 'a-z' to integer value, then building an array with integer keys, only to convert them back to chars. Why not just use an array with string keys?
  13. Replies
    31
    Views
    4,323

    Bit difficult that because you don't know what...

    Bit difficult that because you don't know what squares intersect with your word and what multiplication values they may have.

    Anyway If I had to judge I'd probably say you are the winner as your...
  14. Replies
    31
    Views
    4,323

    Cool. Just out of interest what are you...

    Cool.

    Just out of interest what are you testing on?

    Laptop here is Pentium(R) Dual-Core T4400 @ 2.20 GHz, with 4 GB RAM. Probably around 5 years old.
  15. Replies
    31
    Views
    4,323

    Just tried again with laptop and timing is 0.015...

    Just tried again with laptop and timing is 0.015 for 'nomnieoimprsises' and '0.015' for test as well. Compares to 0.07 for the NAS, which is the public facing test. And 'poixaenohb' takes 0.157 on...
  16. Replies
    31
    Views
    4,323

    Well your query is only selecting the word length...

    Well your query is only selecting the word length so not really any different from storing the words in files arranged like that. Either way it looks like most of the work is the read in time of the...
  17. Replies
    31
    Views
    4,323

    Hmm! I haven't used a MySQL as it was a PHP...

    Hmm! I haven't used a MySQL as it was a PHP challenge. That was really whole the point. Open the data and search through it. Using a DB is just using someone else's code.

    Anyway here's mine. Now...
  18. Replies
    31
    Views
    4,323

    Here's a test running a group of 16 letters....

    Here's a test running a group of 16 letters. Server is pretty low spec so it takes about 5 seconds to run but it is much quicker on my laptop.

    bokehman.com/scrabble/?letters=nomnieoimprsises
    ...
  19. Replies
    31
    Views
    4,323

    Ok, not too difficult (probably could do it in...

    Ok, not too difficult (probably could do it in around 20 line of code once any variables are set) but may need a bit of lateral thought. Scrabble type word finder. I'll give you a list of words so...
  20. Replies
    31
    Views
    4,323

    Who fancies a code challenge just for fun?

    We've done this before, but not for a long time. If a few people are interested I'll dream up a challenge.
  21. Replies
    339
    Views
    110,820

    You need to start a new thread and post all your...

    You need to start a new thread and post all your code. Switch on error reporting on the server that doesn't work. If it all works on you windows server but not on another it is probably a permissions...
  22. Replies
    339
    Views
    110,820

    Something like this: function...

    Something like this:

    function ResizeToAspectRatio($source, $destination = NULL, $longside = 800, $as = NULL)
    {
    $as = $as?$as:4/3; // default aspect ratio (4/3)
    $as = ($as < 1) ? 1 : $as;...
  23. Replies
    339
    Views
    110,820

    How do you want to resize?

    How do you want to resize?
  24. Replies
    339
    Views
    110,820

    What email notification? Looks like you need to...

    What email notification? Looks like you need to start another thread because what you are asking is not related.
  25. Replies
    339
    Views
    110,820

    Nothing complicated about PHP. ...

    Nothing complicated about PHP.


    $uploadFilename = $_FILES[$fieldname]['name'];
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles