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 Mike Lewis 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. courtarro

    mod_rewrite redirect 301

    It sounds like you might want the [R=301] modifier, which means "redirect with a 301 HTTP code", which subsequently means "permanently moved" ... like so: RewriteRule ^foo_old_file\.(php|html)$ http://www.myurl.com/foo_new_file.html [nc,R=301] RewriteRule ^/?(.*)\.html$ $1.php Also note...
  2. courtarro

    Allowing URL access only after mod_rewrite

    Hypothetical situation: I've got a PHP script: /dostuff.php It takes a parameter "thing": /dostuff.php?thing=monster But I'm using mod_rewrite to make it look better, so the URL I want users to see (and use) is: /dostuff/monster For this purpose I've created a simple rewrite rule...
  3. courtarro

    Efficient image resources (not bitmaps?)

    VS2005 doesn't like that. As far as I can tell, BITMAP resources can only be BMP files in proper bitmap format. However, BMP files can be RLE-compressed, which is not as efficient as GIF or JPG, but it helps a good bit. I tried that on my app and successfully trimmed off some excess size...
  4. courtarro

    Proper way to reference build date (a la __DATE__)

    That's close, but I believe it would cause the build process to re-link all binaries even if they had no other changes (and thus didn't really need to be re-linked). I worry about this situation for two reasons: 1. I have a bunch of binaries (EXEs) that will be created when I do a batch...
  5. courtarro

    Proper way to reference build date (a la __DATE__)

    I'd like to include the build date of my app in its About box. Unfortunately the About box class is only compiled whenever it is changed, thus the value of __DATE__ that it uses is frozen even as I make changes elsewhere in the app. When the final app is compiled and linked, the About box's OBJ...
  6. courtarro

    Efficient image resources (not bitmaps?)

    The program I'm maintaining has a large collection of BMP-format resources. As such, the binary is rather large. VS2005 allows me to load GIFs and JPEGs when importing resources, but then it wants to call them custom resources. Is it possible to use a more efficient file format (than...
  7. courtarro

    Handling tabs in unmanaged VC++

    I'm new to VC++ but used to languages/architectures like C#, Flex, VB, etc. In most of those languages, tab controls are handled like containers, where the OS and/or runtime handle creating the tabs, switching between them, etc. It looks to me like VC++ (with MFC) does things at a lower level...
  8. courtarro

    Form.Show freezes if called within event handler

    That was not exactly what I needed, but it got me on the right track. The problem was indeed that the form had started but that the parent thread (started by the event) was ending as soon as the form was displayed. Thus, there was no thread available to handle messages for that form. The...
  9. courtarro

    C# telnet

    I wouldn't recommend running the telnet client to do this - that'd be a bit convoluted. You should use sockets to connect to the telnet server (on port 23 usually) and communicate with it that way. Parsing the server's telnet responses won't be easy, but you could save the data to a file and...
  10. courtarro

    Updating GUI from object

    You should create a custom event in the class so that the form may register a handler for it. Then, the form can do the status update whenever the child class fires that event. This is ideal since it keeps form-based actions (updating the status bar) within the code of the form itself. In the...
  11. courtarro

    modify pdf with php

    My personal favorite way to do this is to create a form field in the PDF and fill it using FDF data. An FDF has a set of field names (from the PDF) and text to put into each field. You can create an FDF file using forge_fdf, then merge the PDF with its FDF data using Pdftk. Pdftk can also...
  12. courtarro

    Form.Show freezes if called within event handler

    I have a problem with an event handler that opens a form. The form appears, but it freezes immediately. This doesn't happen for all events, such as those that my other forms create (like menu items or button clicks), but it does happen for the system-based events like FileSystemWatcher and...
  13. courtarro

    Need help with the file system filter sample FSDSPY

    I am trying to build a filesystem filter using CE's FSDSPY as a starting point, but at the moment I cannot get it working. I feel that I'm very close: I have compiled the dll with VS2005, set up the registry to load the filter, and filesys.exe loads the DLL after a soft reset (in the Pocket PC...
  14. courtarro

    PHP Profiler (free)

    I'm looking for an automated profiler for PHP that will give me a GDB-like summary of all function calls and delays caused by those calls. I've seen things like this output from DBG, but I wasn't able to get it running, and there seems to be a horribly scarce amount of "getting started"...
  15. courtarro

    Auto Print PDF Doc to Network Printer

    Is it really possible to cause the Acrobat client to automatically print a document upon loading? That sounds like it could be pretty annoying! To the original poster: there are some useful comments in the "printer functions" section of the PHP manual, even though that particular set of...
  16. courtarro

    Schema: require attributes based on the value of other attributes

    I have a schema, shown below, for the XML file that is parsed by a form-generating PHP script. It takes the XML file, which has items like this: <field type="text" size="30" /> <field type="textarea" rows="5" cols="40" /> <field type="select" size="20"> <option>red</option>...

Part and Inventory Search

Back
Top