Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

223 Neutral

About silencer-

  • Rank
  1. silencer-

    name AT domain DOT com

    The primary influx of spam to Gmail comes as randomly-generated name feeding. Particularly annoying for those of us with fairly common names. Filtering using period-aliasing or plus-addressing cuts most of it. Unfortunately, as Gmail doesn't currently implement absolute recipient filters, spammers get around this by making spam appear as though it were forwarded.
  2. silencer-

    [web] mod_rewrite difficulties.

    I was going to reply with something along the lines of a "I don't know" until I remembered that you'd had it working earlier. I'd recommend scrapping the current structure, and reconstruct it sequentially. This way you can see just where it goes wrong. For starters, try RewriteRule ^/([^.]*)$ /cgi-bin/Fleurin.cgi?P=$1 [QSA,L] For what it's worth, I tested the whole thing on two setups, and it performed correctly. I'm not sure what's so different here.
  3. silencer-

    [web] mod_rewrite difficulties.

    Actually, I think that L deserves an omission entirely. I'm unsure as to what's happening there, however... [edit:] Try placing AddHandler cgi-script .cgi Options +ExecCGI in the root directory configuration. I'd forgotten that your CGI scripts were registered to a single directory.
  4. silencer-

    [web] mod_rewrite difficulties.

    Quote:Original post by Thevenin Quote:Original post by silencer- Also, in the quote where you attempted my example, you missed the last directive. I don't believe I did. If they are located in .htaccess, then after the first rewrite is complete (Which I stored in the htdocs folder), the remaining rewrites are now in the hands of the cgi-bin htaccess, and so they'd have to be delt with explicity by those last three rewrites. Ah, I hadn't noticed where you said you'd separated them [headshake]. Anyway, from what I recall, .htaccess is only executed upon user request, and mod_rewrite doesn't support .htaccess invocation during substitutions. I did a quick search and couldn't find anything to verify this, but I believe it to be correct.
  5. silencer-

    [web] mod_rewrite difficulties.

    Quote:Original post by Sander Also, on windows servers it's usually htaccess (without the .) I wouldn't've known that. Nice catch. It's also worth noting that you can change this lookup path in the configuration. If it still doesn't work, check the error logs. Additionally, I've needed to set RewriteBase / on one of my hosts whenever I use mod_rewrite--I still haven't figured out exactly why this is required. Either it's because of different Apache versions, or some obscure configuration settings. @Thevenin: I wasn't exactly clear when I specified the differences in setting directives between .htaccess and httpd.conf. As the server configuration file can't understand relative paths, it must have a full path in the search expression (a / maps to the base directory). Rules placed in .htaccess can only understand relative paths to the executing directory--i.e., you must omit this forward slash in rules therein. Therefore, a rule in httpd.conf consisting of RewriteRule ^/(.*)$ [L] becomes the following when placed in .htaccess: RewriteRule ^(.*)$ [L] Also, in the quote where you attempted my example, you missed the last directive. You might already understand the logic taking place behind it, but I'll put it forth anyhow. Quote:RewriteRule ^cgi-bin/Fleurin.cgi/$ /cgi-bin/Fleurin.cgi?P=Home This is simple. It re-maps any empty request to Fleurin.cgi to go to a default page (this shouldn't be handled here). Quote:RewriteRule ^cgi-bin/Fleurin.cgi/forum/(.+)$ /cgi-bin/Fleurin.cgi?P=Thread&T=$1 [QSA,NC] This takes a case-insensitive (specified by the NC flag) request to .../forum/ and substitutes it to the forum thread marked by the trailing value. The QSA flag makes sure that any additional query values are left intact. Quote:RewriteRule ^cgi-bin/Fleurin.cgi/(.*)$ /cgi-bin/Fleurin.cgi?P=$1 [QSA] Pretty much the same as the above rule, except that it controls page presentation. Quote:RewriteRule ^([^.]*)$ /cgi-bin/Fleurin.cgi/$1 [N,QSA,L] You might have noticed that, until now, the previous rules were all defined with a full prefix to the script. This takes any request that hasn't passed a previous rule, and conjoins with the script path. Then, the directives are re-examined with the newly modified request (consigned by the N flag). The double parsing takes a slight [unnoticable] performance hit, but it's much cleaner. This should (I think) be negated if the rules are placed in the server configuration file.
  6. silencer-

    [web] mod_rewrite difficulties.

    This is much less ugly. Hopefully it works. RewriteEngine on RewriteRule ^/cgi-bin/Fleurin.cgi/$ /cgi-bin/Fleurin.cgi?P=Home RewriteRule ^/cgi-bin/Fleurin.cgi/forum/(.*)$ /cgi-bin/Fleurin.cgi?P=Thread&T=$1 [QSA,NC] RewriteRule ^/cgi-bin/Fleurin.cgi/(.*)$ /cgi-bin/Fleurin.cgi?P=$1 [QSA] RewriteRule ^/([^.]*)$ /cgi-bin/Fleurin.cgi/$1 [N,QSA,L]
  7. silencer-

    [web] mod_rewrite difficulties.

    Sorry, I assumed that you were using .htaccess for the directives (which you should, for ease of portability). Redirections within the server configuration file require that paths be absolute. Directory configuration, on the other hand, allows relative paths. As a side note, I'd only glanced over your first post. What you're trying to do (encapsulate all URL requests) is extremely difficult to manage. Optimally, instead of hiding the user request from the script, it should be supporting its own URL format specification (as it is currently, but with the ugly URLs). Nevertheless, it is possible to implement a limited redirect sequence. RewriteEngine on RewriteRule ^/forum/(.*)$ /cgi-bin/Fleurin.cgi?P=Thread&T=$1 [QSA,NC] # Should be caught in the dispatcher (change the last rule's plus sign to an asterisk). RewriteRule ^/$ /cgi-bin/Fleurin.cgi?P=Home # Rather than explicitly setting each requestable page, allow the script to determine the request validity. RewriteRule ^/([^.]+)$ /cgi-bin/Fleurin.cgi?P=$1 [QSA,L]
  8. silencer-

    How do you 'read' fantasy?

    Quote:Original post by tstrimp I have read it too. If you think about it the death's were quite predictable. ... Dwelling largely OT, but... (Spoiler) Chalk that up to another character that I'd forgotten about: Tarathiel. He'd already done much, being an elf and all, and so I didn't feel heavily about his demise. The important character that I was thinking of was Dagnabbit, who would've taken the throne upon Bruenor's death. Bruenor has to die eventually, and Dagnabbit was the perfect successor (and one of the few dwarves that had had focus). The "interesting" person was Shoudra. I believe she could've filled an important role later on, or even have her own experiences narrated--her past was certainly there for the undertaking. The abrubt and gruesome depiction of her death had me breathless (likely the intent). I hardly care for anyone in the party. Delly was, as you said, boring. Nonetheless, her death was strange, and I've a feeling she might somehow make a reappearance.
  9. silencer-

    How do you 'read' fantasy?

    Quote:Original post by tstrimp The problem with Salvatore, Goodkind and Jordan is their tendency to make their characters super powerful, therefore they have to have even more powerful enemies in the next book which quickly causes the books to spiral out of control. Salvatore's books are becoming more and more like a soap opera where no one REALLY dies. You know he isn't going to kill off any of his characters and you lose any sense of danger for them. He should have stopped his Drizzt saga after the first couple trilogies. I think Salvatore's attempted to take some of these criticisms to heart with his latest trilogy (sorry, but I just had to read it). He'll likely never kill off any main character, but one very prominant figure, and another soon-to-be interesting character were killed--suddenly and with no warning. [edit: There was another killed too--a member of the party--which I forgot about.] Short of what you might expect, it actually made me dislike Salvatore even more, as, in my opinion, they were the wrong people to kill. Furthermore, Drizzt is displayed as being much weaker than his former self: fights are no longer interesting, or even very detailed. I hardly care what happens anymore. Quote:Original post by Daerax I say Dri [short i] zit. Not that it matters much, but the books themselves proclaim this to be incorrect.
  10. silencer-

    How do you 'read' fantasy?

    I don't understand the issue. Obviously, you can't just hop into the middle of a text and expect to pick up on the details: this must be learned by starting from the beginning. Any semi-professional work that covers multiple pieces will reintroduce old concepts and details, further reducing the required work of the reader. If you have a genuine problem of forgetting things, then you should examine the problem more thoroughly, and attempt to fix it. Are you stressed? Reading is a recreational activity: your mind should be clear of all else beforehand. Try writing things down that you think you may have trouble recollecting. Secondly, skipping things that confuse you is a bad idea: you will only become more confused, and eventually lose perspective. Stop reading, and attempt to clear up on where you're lost. I will admit this, however: that quote you chose is horrendous. Luckily, LotR doesn't expect the reader to remember everything, nor does it mash every proper noun into its passages (nor are most that complex). Perhaps it just takes practice. Quote:Original post by tstrimp How the hell do you pronounce Drizzt? (I think Dritz even though I know it's wrong.) I've always pronounced it as Drizz-T (think combining the words drizzle and kept). I hardly care if it's correct--it's not like I'll be using it regularly in real speach [grin]. Quote:Original post by Sneftel Personally, I'm fed up with orcs n' elves in general. Who isn't? Seriously, orcs and other goblin-kin are not interesting! The same goes for the old "Lone Heroes Beset by the Wilderness" plot. The only FR material I actually read anymore are by authors who primarily deal with the intrigues of men (such as Cunningham). Quote:Original post by tstrimp So, I guess I'm the only one who thoguht LoTR was too boring to finish? It took me five attempts to finally get past the two-hundred page mark of The Fellowship. After that, it was interesting enough.
  11. silencer-

    The pain of losing everything on your hard drive

    Quote:Original post by Raghar You should have all data and programs always installed on other partition than windoze. It greatly decrease amount of neccessary reinstalls. Also one directory full of installers is really nice. Drivers, and system updates needs to be reinstalled. Data yes, applications, no. If you use Windows Repair, it doesn't matter where the applications are installed--they will still remain. Formatting the system drive, on the other hand, will completely break most applications, as the majority depend on things that were set at install-time (registry, system modification). All I can say is, while Windows greatly encourages it, stop installing programs with no categorical structure! Your start menu--even install directory--should actually have a layout, not just one big blob of applications in the global scope. Example: Development Debugging Editors IDEs Languages SDKs Utilities Games Applications First-Person Simulation (etc.) Internet Browsers Chat Communication Mail Media Editing Entertainment Recording Viewing Utilities Benchmarks Diagnosis Drivers Misc. But... you don't have to. I just find it much more easy to look at--not to mention the inherent efficiency--and being forced to use other systems which don't use this approach... angers me.
  12. silencer-

    err EDI

    That's meaningless--likely a typo in a configuration value. If you backtrace etherealdarkness.com you'll see that the message does indeed originate from there.
  13. silencer-

    Search & Replace for Files?

    Well, I believe CVS--just like SVN--stores all its repository information in the .cvs subdirectories, so deleting them should be the goal here. [edit:] If it doesn't work this way for CVS, I'm sorry. In SVN you can import respositories without the .svn subs.
  14. silencer-

    Search & Replace for Files?

    The only problem with that is that, from what I recall, not specifying a single character consisting of a wildcard or "." in a FOR statement will only enumerate files, not directories. The following should do a directory-only search and move them if the path is a .cvs folder. @ECHO off SETLOCAL SETLOCAL ENABLEDELAYEDEXPANSION FOR /R . %%f IN (.) DO ( SET DIR=%%f CALL SET DIR=%%DIR:~0,-2%% REM Moves the directory if the last four characters of the path == ".cvs" IF "!DIR:~-4!" == ".cvs" CALL move "!DIR!" "C:\Backup\" ) ENDLOCAL [edit:] Fixed. Twice. [Edited by - silencer- on April 5, 2006 8:04:35 PM]
  15. silencer-

    I wondered how long until we got an april fools joke

    SQL on Rails Not game related, but it's perhaps the best April Fools joke I've seen in years (just watch the screencast). Loading the internet... 45%
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!