User Profile

Collapse

Profile Sidebar

Collapse
Brosert
Brosert
Joined: Jul 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 1) Not sure what you mean by optimisation. I am making sure that where possible, indexes are being used for joins (the data was designed to be queried roughly how I query it)
    2) The query joins on 3 tables, but I wouldn't consider it overly complex
    3) No I did not have a look at the explain plan, because I didn't really think it was overly relevant to the question - I hoped someone might discuss whether on the whole they think it more...
    See more | Go to post

    Leave a comment:


  • Where and how is waveOutDevices (passed to your switch statement) set?

    Currently, it appears that within playAllAvailabl eDevices
    you switch based on a variable that is never set.
    Further, there is only 1 pass through the function, so only 1 device will ever play.
    See more | Go to post

    Leave a comment:


  • How efficient are queries that use DISTINCT (vs filtering data yourself)

    I have a query on a database that returns a large number of rows from a database (somewhere near a million) to an application that then does some processing with them. Some of these returns may be duplicates, and I considered using DISTINCT to make sure these duplicates do not occur, however I suspect I would be better off filtering the duplicates within the application, rather than within the database.

    My justification would be...
    See more | Go to post

  • Brosert
    started a topic Webservices and DLL's (in third party software)

    Webservices and DLL's (in third party software)

    I realise that many people have asked very similar questions, however none of the solutions outlined seem to quite fit my problem.

    I should point out that I am new to both c# and the very idea of WebServices ....

    I have a Webservice that calls a managed (?) DLL from a third party. This DLL in turn requires another DLL (not managed), which appears to me to be C or C++ based.
    When I try to run the WebService, I...
    See more | Go to post

  • Brosert
    replied to sscanf input problems
    in C
    (
    Raghu,

    I would imagine because he is printing Hex numbers...
    It's common to see Hex numbers prefixed with "0x" to identify that they are in base 16 rather than base 10...

    0x32 (50) is easily distinguished from 32 (32)....

    )
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to Access specifier
    in Java
    This sounds like Homework....
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to string concatenation
    in C
    is "Form" a function that you have created yourself, or does it come from an external library.
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to Printf question
    in Java
    Eclipse needs to be able to see the Java 5.0 files (which it may not be able to now that they have been moved to d:

    Make sure Eclipse is pointing to the correct version of Java -> it sounds like you might be picking up an older version of java (again, possibly because you moved the newer one)


    You could pass the integer as a (new) Array {val}, or you could use java's print rather than printf - but this hides...
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to Printf question
    in Java
    Which version of Eclipse are you running?
    What is version is Compiler compliance set to?
    See more | Go to post

    Leave a comment:


  • How are you checking which Checkboxes are checked to send emails to?

    It is difficult to comment without seeing what you have done, but it sounds like you are not checking which checkboxes are checked properly before sending.

    You might like to look at Here or Here to see how to play with checkboxes
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to free webhosting with out add
    Believe it or not:
    http://www.freehost.ne t.au/

    will give you quite a bit of free webspace (with only a little, almost unnoticeable link to themselves down the bottom).
    As far as I know, they will give very little in terms of 'Instant pages' (rather they assume you can make your own pages - and are comfortable uploading them one way or another).
    Obviously they have conditions about what you can and can't do with...
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to Maze Generation Algorithm(s)
    Thanks Jos,

    Actually the problem was that I was using cells without the concept of walls - that is, this cell is either filled in or it isn't. In this way, each 'cell' was a filled square - and was either there or not (so the whole thing could be stored in a boolean array.
    Everything I found on the net seemed to suggest the same sort of method you specified, but I really didn't want to change the way I was drawing the maze...
    See more | Go to post

    Leave a comment:


  • The PHP needs to be installed on the server that is hosting the web page - which if you're using a professional hosting service, it usually is!! - if you're using you're own server from home/work you would need to install it!

    (Incedently, silly me didn't read that you weren't so interested in php solutions)
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to How to tale only hour from the date time
    in PHP
    Why are there 4 seperate Times in the field??

    I think you will have to manipulate the string yourself....
    firtunately, the field should always be the same size. You can use the php substr method which takes string, offset and lengh as arguments....eg , the first hour would be
    Code:
    $hr1=substr($Date,0,2);
    the second would be
    Code:
    $h2=substr($Date8,2);
    ...
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to C++ ENCRYPTION (how to encrypt a text)
    in C
    Do you get the wrong output for smaller strings, or none at all?
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to C++ ENCRYPTION (how to encrypt a text)
    in C
    Not real sure....
    try changing
    count = sizeof(string1) to = strlen(string1) (as you had in your first program....

    Meanwhile I'll have a deeper look/think
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to C++ ENCRYPTION (how to encrypt a text)
    in C
    because only half of the characters go in each string....
    so string2 and string3 will be half the size of string1.

    In c (and I think most languages) if we divide a number in a place where we can only use an integer, it will autometically round the number down....
    so 0/2 = 0 (obviously)
    but 1/2 = 0 (because we can only use the integer part of the answer).

    this means, that if we always take the current...
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to C++ ENCRYPTION (how to encrypt a text)
    in C
    Part of the problem is that it always takes the THIRD character....
    If your string is shorter than 3 characters, it takes a (probably) NULL character, which terminates the string, and would give you a single character output....

    where you get string try making the following modification :

    Code:
    int charAt =2;
    
    count=strlen(string);
    //If we have a short input, take the last letter instead
    ...
    See more | Go to post

    Leave a comment:


  • Brosert
    replied to C++ ENCRYPTION (how to encrypt a text)
    in C
    in that case, use a for loop....imnstea d of the while loop

    eg
    Code:
    int count = sizeof(string1);
    for(int x=0; x<count; x++)
    {
      /Check whether x is a multiple of 2
      if(x%2 == 0)
      {
        string2[x/2] = string1[x];
      }
      else
      {
        string3[x/2] = string1[x];
    }
    See more | Go to post

    Leave a comment:


  • Truth be known, that wasn't quite what I meant....

    But great to hear it's working!!!
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...