Search results

  1. M

    extracting from a string

    MySQL doesn't support the concept of "file uploads" (all network communication is based on SQL statements; local files can be read with a LOAD DATA statement, if you have the FILE privilege), so you'd need to use something else. phpMyAdmin is probably your best bet. It accepts CSV and SQL...
  2. M

    CSS Layout Not Fluid

    Then the issue is still absolute positioning. It's useful for things like corner images, but not so much for content.
  3. M

    CSS Layout Not Fluid

    It would also be useful if you were more descriptive. What, precisely, is the behavior you want? What is the behavior you get? What browsers are you testing? The only issue I see is on Safari 3.2, where the #wrapper-background and #wb-bottom elements aren't containing the "Valid XHTML and...
  4. M

    Can I install a new module?

    If the module makefile doesn't do anything more complex than copying files and setting attributes (ie no compilation and doesn't alter file contents), you can install the module by hand into (eg) ~/lib/perl. At the start of every script that uses the module, add ~/lib/perl to @INC: BEGIN {...
  5. M

    Checking and logging user name in database tables...

    Does such a thing exist? If it's not secure, why have password-protected user accounts? It looks like $_POST['user_name'] should make it through the script to the INSERT statement. Make sure there isn't a typo in the login form. Examine $_POST in the wtmp (login recording) script print while...
  6. M

    extracting from a string

    Not at all. Anytime you can find a package that does what you need and you can avoid work it's a win. Too bad about chessboard. Unless some other PGN processor pops up, it's not too hard to do yourself. Your script could slurp in the file, separate the games and parse each individually, or you...
  7. M

    Using Java with MySQL on x10

    We do seem to be misunderstanding each other. I was responding to where you said: "For now I will be embedding the pgn data in the HTML. Where else would the java applet get the data from?" The question may have been rhetorical, but it did have an answer: URL gamesURL=new...
  8. M

    extracting from a string

    I think any approach will come down to separating the games first, then parse each game separately. Trying to do it all at one go will just be a mess. You can split the games up, then find the one you want, then parse those, or you can extract the games you want (using REs, maybe?) and parse...
  9. M

    Using Java with MySQL on x10

    A few of the previously linked pages show the details, but you use a URL to get a URLConnection to get an InputStream, which holds the entity body (eg HTML page) sent by the server. As for using HTTP vs <param>, each works in its own way. <param>s mean one less network connection, which...
  10. M

    Using Java with MySQL on x10

    Quick question: are you embedding the PGN data in the HTML page, or just the game ID and having the applet fetch the PGN data on its own?
  11. M

    Using Java with MySQL on x10

    Sending data to the server is one nice thing about XML-RPC and the like. In Java, it takes just a few lines to set up a parameters object, then you call "rpcClient.execute(methodName, params);". To use just HTTP, check out "Reading from and Writing to a URLConnection". You can get an...
  12. M

    Project please help

    Setting overflow on some node N clips descendents whose containing block is descended from N's padding block (that is, the containing block is the padding block of N or a descendent of N). The containing block for positioned elements (such as the absolutely positioned pictures) is the nearest...
  13. M

    Using Java with MySQL on x10

    Though ChessGames' web service at "/perl/nph-chesspgn.pgn" uses CGI as a client-to-server messaging protocol and PGN as a data interchange format, you don't have to. If your client and web service already have PGN generators & parsers, there isn't as much reason to switch to another interchange...
  14. M

    Project please help

    You first need a suitable ancestor whose bounding box is the display region you want to limit the images to (td#chalkboard is a candidate). If no such ancestor exists, find or create one and (by some method) set its bounding box. Set the ancestor's overflow property to 'hidden'.
  15. M

    Uploading mySQL databases?

    While MySQL stores some table contents, definitions and indices on disk (temporary and memory table contents and indices are stored in RAM), this is an implementation detail and isn't reflected in public interfaces. For DB clients, the DB namespace is completely separate from the filesystem...
  16. M

    Hotspot Troubles

    The most important problem is that your design may not appear to be navigation to a user. You may say "of course a user will know what to do," but remember that you're the designer, which makes it hard to think like a user. You've gotten rid of underlines, so the user doesn't have that visual...
  17. M

    mod_rewrite outside of public_html?!? & dir hiding

    The [L] is working just fine. Rewriting stops, the redirect (you probably want a 301, not a 302) is sent to the browser, which requests the new page. The 'moola_cms/' is then prefixed to the URI by the 2nd RewriteRule, as it should. The problem is internal redirects. Other modules (such...
  18. M

    do you like my c++ game

    The preferred form is: int MyGuess = 0; int Bob = 1234; The game would be a little harder if you uncommented this line and changed "guess" to "Bob". No need to repeat yourself. cout << "wrong ,try again!!!\n" << "you guessed " << MyGuess << "...
  19. M

    Project please help

    You did most of the work yourself, so kudos for that. One last suggestion: rather than continually calling 'setTimeout' in fadeIn, call setInterval to run fadeIn periodically and call clearInterval when the fade-in completes (the links are to MDC, but setInterval and clearInterval are cross...
  20. M

    Perl?

    FTP clients may change the permissions of an uploaded file to match the local version, even if the local filesystem doesn't use Unix style permissions. Considering the error page resulting from mail_form.cgi says "Additionally, a 404 Not Found error was encountered while trying to use an...
Top