Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pfournier

    quotes in fields

    If you convert the names to UperCase, you will not need the quotes anymore... (nor will you need to write them in UperCase if you don't use quotes)
  2. pfournier

    Is there such thing as a "delinker"?

    If you put the module object file content into the data part of your executable (and reserve some amount of space for it to grow), dump it to some temp file on program startup (unless you know of a way to point a pseudo-file to a part of another file content) then dlopen() it, you should be able...
  3. pfournier

    quotes in fields

    Select case-insensitive fields when you import the data with Interbase DataPump...
  4. pfournier

    gbak output

    This is dependent on the shell you're using... For bash, you could use one of these solutions: If you want to /dev/null STDOUT: gbak ... 2>&1 1>/dev/null | split... gbak ... 2>&1 1>- | split... If you want STDOUT to be written on the tty: gbak ... 3>&2 2>&1 1>&3 | split...
  5. pfournier

    Slow SELECT .. IN (singelton SELECT..) ?

    I thought it was fixed in FB1.5... I don't know about Interbase 7.x. If you show us your queries, we can help reformulate them... Here is one way that could help: SELECT D.* FROM tblData D INNER JOIN tblIndex I ON D.idA = I.idB AND I.idC = 1234;
  6. pfournier

    Slow SELECT .. IN (singelton SELECT..) ?

    Why not use the = version as it does what you want?
  7. pfournier

    Slow SELECT .. IN (singelton SELECT..) ?

    That's because IB6 will run the subselect once for each row in table tblData to verify the IN clause, but (I believe) only once to verify the = clause. It is a problem with the optimizer.
  8. pfournier

    Expected semi-colon error and Object expected error

    Your error line may be off by one... look at the following line, you've got quotation marks inside quotation marks that aren't escaped. Also, your cases should be as: case "Tablet":
  9. pfournier

    mod_rewrite'ing for 'virtual hosts'?

    Can we see what you've done so far? You've looked at http://httpd.apache.org/docs/vhosts/mass.html I suppose? P.S. This directory layout would (unless specifically blocked) allow htdocs.mysite.com as an alias to www.mysite.com.
  10. pfournier

    libpcre : pcre_callout?

    As the search is not yet done, the whole match vector is not yet set (at offset 0). You can either change your code to use block->start_match and block->current_position in the callout (and put (?C) at the end of the pattern) or make the following changes: #define pattern "(ain)(?C)&quot...
  11. pfournier

    libpcre : pcre_callout?

    Have you tried to put (?C) at the end of the pattern? As there is nothing matched before the callout when it's at the beginning.
  12. pfournier

    Unwanted '!' in email

    Some versions of Sendmail will cut long lines (above 1000 bytes I believe) and add a '!' where it cuts the line. The solution is to make shorter lines (wordwrap() could help here) or encode the text in quoted-printable (which does make sure the lines are short enough to cause no problems with...
  13. pfournier

    Timing a Script Execution In Seconds

    SIGUSR1 and USR1 are the same. Some environments recognize one form while others recognize both. Use whichever one works for you. Only warning would be to make sure the new configuration file is valid before sending SIGUSR1 to Apache.
  14. pfournier

    Timing a Script Execution In Seconds

    Why not use SIGUSR1 to do a graceful restart (where childs currently serving pages will finish serving them before exiting and being replaced by new childs) See http://httpd.apache.org/docs/stopping.html
  15. pfournier

    RegEx: returning the numbers from a string

    var address = "121Anywhere"; var re = /^(\d+)(.*)$/; obj = re.exec(address); where obj will be an array with: obj[0] = "121Anywhere" obj[1] = "121" obj[2] = "Anywhere" so you can set a and b as such: var a = obj[1]; var b = obj[2];
  16. pfournier

    Javascript Development/Debug Console

    Thanks for that link BabyJeffy... While I prefer Mozilla's debugger, when a bug is specific to IE, it will be useful to have that debugger.
  17. pfournier

    What browsers to test in?

    Netscape 5 probably represents all Gecko (Mozilla) based browsers except Netscape 6 (but including Netscape 7) which has it's own entry. Those browsers send an identification string which starts with Mozilla/5.0 followed by more specific information. If the parser doesn't recognize the browser...
  18. pfournier

    setTimeout function

    Adding missing quotes to stormbind's second reply should work: setTimeout("document.getElementById('"+s_menu+"').style.visibility = 'hidden';", 1000);
  19. pfournier

    if select only has one option, select it

    if (objNodeList.length == 1) document.getElementById("comboresults").options[0].selected = true; should work.
  20. pfournier

    A+B when B is null?

    You could use/create a UDF for that purpose. FreeUDFLibC has a ROUND UDF (let's call it F_ROUND) that could do the job if you want NULLs to be treated as 0. SELECT a+F_ROUND(b) FROM tablename If you don't want/can't use UDFs, you could always use a small stored proc and use a more complicated...

Part and Inventory Search

Back
Top