Search results

  1. M

    C# - Run a command on shutdown

    You need to be more informative. What isn't working? Can you install the service? Does the service create the log file? Is anything logged? The name of the Install class will cause problems as the base class has an Install method and methods with the same name as the class are constructors...
  2. M

    Navagation bar help...

    That's basically it on the HTML side of things. Note that you can leave off the "http://www.cykstudios.net" in the URLs, since you're not linking offsite. Google has info on using hidden text links for search engines. Hiding text with CSS is usually accomplished by moving the text offscreen...
  3. M

    Navagation bar help...

    The problem with the "Podcasts" link is a typo either in the ID attribute for the tab element or in the selector, preventing the "background-position" rule from applying. The posted CSS looks fine, so it's probably a typo in the HTML source. As for Downloads link, it's wider than 70px in the...
  4. M

    C# - Run a command on shutdown

    Make sure whatever user the service runs as has write access to this folder. You might want to change it to public static string filesource = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\UseMonitor\"; As for the rest, the main thing is to follow...
  5. M

    C# - Run a command on shutdown

    The code you posted still converts a DateTime to a string array and back again, which is still inefficient. Application.Run runs a Form's message loop in the same thread, so Application.Run doesn't return until the message loop is done. The use of a AutoResetEvent is unnecessary. This is...
  6. M

    Small errors with feedback section

    Just make sure you remove unsafe tags, such as <script>, <object>, <link>, <embed>, <style> &c, so your site isn't vulnerable to cross-site scripting.
  7. M

    C# - Run a command on shutdown

    Since you're now using threads, you'll want to use synchronization. The UpdateLog methods are critical sections that will need locking. Also, you'll have to handle the possibility that opening the log file will fail when another process already has a write lock (synchronization should prevent...
  8. M

    Local SQL database transfer

    The phpMyAdmin section uses an old version, but otherwise looks alright.
  9. M

    Create/Modify Files (ASP.NET)

    The permissions on which file are 755? Default.aspx? It doesn't need execute permission because it isn't directly executed. The maps directory, however, needs to give write access to the web server process's user. Try temporarily giving maps the mode 777, but don't leave it that way otherwise...
  10. M

    PHP - XPATH - Scraping Data From A Page

    You understand filesystem paths, right? XPath is a little like filesystem paths given the 6-million-dollar man treatment, with a teleporter, targeting computer and a high powered sensor array. A filesystem path selects a file or directory, wherease an XML path selects document nodes. Nodes can...
  11. M

    I know.. Python Help again, but its not working..

    We're using mod_cgi, not mod_python, so the shebang line is mandatory. Without the shebang line, mod_cgi will run the script as a shell script, causing an internal server error because almost no python script is a valid shell script, and those that are valid won't work as CGI scripts. File...
  12. M

    I know.. Python Help again, but its not working..

    It's a file coding issue. myscript.cgi uses MS-DOS line endings ("\x0D\x0A"), while the server uses Unix line endings ("\x0A"). If you're using FTP, upload it to the server using ASCII transfer mode. From the Python tutorial, 2.2.2. "Executable Python Scripts": This is a system limitation...
  13. M

    I know.. Python Help again, but its not working..

    That should be sufficient. Chances are there's something wrong with the script, such as a unicode byte-order mark (BOM). Please post a zipped copy of the script as an attachment.
  14. M

    PHP - XPATH - Scraping Data From A Page

    Have you read any tutorials on XPATH? What XML library do you want to use to parse the document (DOM, libxml, SimpleXML, XML or XMLReader)?
  15. M

    I know.. Python Help again, but its not working..

    Did you remove the blank line at the start of the script? Is "Options +ExecCGI" included in .htaccess?
  16. M

    C# - Run a command on shutdown

    From the MSDN documentation for SessionEnding Is the handcoded user name the same as Environment.UserName? One potential problem is you're adding a deny permission for FileSystemRights.ChangePermissions, which means non-admins can't then remove all the deny permissions. Note that you don't...
  17. M

    enable allow_url_fopen

    Including a script over HTTP is almost always the wrong thing. If you include a file using URL wrappers, the script will fetch the page using HTTP, which means it gets the processed output of the included page. If the included page printed a PHP script, this would probably work, but...
  18. M

    I know.. Python Help again, but its not working..

    Only the first shebang will have any affect, and it needs to be on the first line. Remember, "#!" is actually a magic number. Any shebangs not on the first line are just comments. Also note that you typically don't need to print CRLF. LF will be translated to CRLF.
  19. M

    Remote host cannot be found.

    Work your way up the protocol stack. First, run `ping ftp.electrocity.exofire.net` from the command line to see if your computer can resolve the address and reach the server (you can also run `nslookup ftp.electrocity.exofire.net` just to test domain name resolution). After that, try different...
  20. M

    CSS & 100% Heighter?

    As I've said multiple times, please wrap source in [code], [php] or [html] tags as appropriate. You can even use the little , or buttons. Edit your post and add [code] tags now. Remove the empty paragraphs at the bottom of the page, they're the white space. Set the background color of...
Top