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 Wanet Telecoms Ltd 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: *

  • Users: Supra
  • Order by date
  1. Supra

    Loading XML with LWP

    Nevermind, I figured out that you need to pass in a suitable useragent, otherwise you're not given the pretty XML ;)
  2. Supra

    Loading XML with LWP

    Hi all, I'm trying to load an XML file, but the file is being converted to HTML because it uses an XSL. Rather than parse out the HTML returned, I want to see the XML that the XSL is transforming. Is there a way I can get to it? Example: Load...
  3. Supra

    Parsing a string with RegExp

    Giving a star because it works, but isn't there any way to do in a single shot? Seems like there should be.
  4. Supra

    Parsing a string with RegExp

    ...a "%%string%%" tag. var data = '"%%string%%hello %%number%%1%%%end%%% and hello %%number%%2%%%end%%%.%%%end%%%"'; var pattern = /(?:"%%string%%)((.*?)(%%number%%([0-9])%%%end%%%))+/g; var result = data.replace(pattern,'"%%string%%$2$4'); Expected Result: "%%string%%hello 1 and hello...
  5. Supra

    RC4 is pissing me off.

    ...the hex value was exactly the encrypted value I was looking for. So I knew my 'garbly gook' text was right, but just not in the correct format. A simple Google search led me to find my solution! my $encrypted = unpack('H*',RC4($key,$str)); Voila it works! Thanks a ton for all your help!!!!!
  6. Supra

    RC4 is pissing me off.

    Ok I lied. I need help. I found some shorter, seemingly cleaner code. sub RC4 { my $x = 0; my $y = 0; my $key = shift; my @k = unpack( 'C*', $key ); my @s = 0..255; for ($x = 0; $x != 256; $x++) { $y = ( $k[$x % @k] + $s[$x] + $y ) % 256; @s[$x, $y] = @s[$y, $x]; } $x = $y =...
  7. Supra

    RC4 is pissing me off.

    ...text as previous. I tried various things but to no avail. Perhaps it would help to note that my key is Hex. I did try using $key = unpack("C*",$key) but I'm a little intermediate with Perl so I'm not sure if that's even correct. Anyway thanks a lot for your time guys. I really do...
  8. Supra

    RC4 is pissing me off.

    Alright, so I'm just trying to get a working version of RC4 encryption for use on my website. I wanted to use Crypt::RC4, but my host is GoDaddy and it's not supported. So I've been ruthlessly scrawling the internet looking for ways, and I came across 3. One was a rip of the Crypt::RC4 module...
  9. Supra

    Finding a way to play Scorched3d :)

    Hi Burt! I actually thought about that, so I did some research and found that they are using LodgeNet's StayOnline wireless service, and the GuestPass Director: http://www.stayonline.net/PAGE-37-web-based-bandwidth-management.html I think I found the router's IP, but I get an error from their...
  10. Supra

    Finding a way to play Scorched3d :)

    ...a list of servers. I've read a few articles here and there on Google, but nothing proved useful enough to solve my problem. On the plus side, I *CAN* connect to my desktop at home with full control, so is there a way to use it as a tunneler of sorts? That is, can I direct my laptop's...
  11. Supra

    Getting 400 Bad Request from a script that worked YESTERDAY

    I just wanted to see if anyone had that happen before, and if they knew offhand maybe why. But an hour after I posted this, it started working again magically. I'm still curious as to why that would happen, but at least it works. Thanks anyway!
  12. Supra

    Getting 400 Bad Request from a script that worked YESTERDAY

    Oddly enough, I came home to find that one of my scripts is now broken, and nothing changed. It has been working for literally weeks, and all of a sudden, today it stopped. It's a simple code that gets the source of another webpage and picks what it needs out of it. Now I get a "400 Bad...
  13. Supra

    Custom loader not working ;(

    ...Here's the end result: ifFrameLoaded(120) { //gotoAndPlay(4); } var loaded = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100); Gauge._width = loaded * 2.21; Tip.text = loaded + "%"; //And of course in the 2nd frame, it shoots you back to the first :) THANK YOU...
  14. Supra

    Custom loader not working ;(

    ...above it are being updated. Here's the code: ifFrameLoaded(120) { //gotoAndPlay(4); } var loaded = Math.floor((_root._framesloaded / 120) * 100); _root.ProgBar._width = loaded * 2.21; _root.TipText.text = loaded + "%"; The progress bar takes the percentage loaded times 2.21 because 221...
  15. Supra

    Loading XML from a different server?

    Hello! What I'm trying to do is load an XML file from someone else's server and use the information in that file to display on my website. I wrote the following code which works great on my desktop, but when I upload the file, no go ;( <script> <!-- function checkState() { var mainNode =...
  16. Supra

    Outlook is making things sort of &quot;faux bold&quot;

    Hello, Outlook worked fine yesterday but today it's making my text sort of bold. When I actually put the text on bold, it's even bolder. But when I sent the email to someone else and they read it, the text comes up just italic size 12 Georgia font like it should - not bold at all. I am using...
  17. Supra

    Bad Memory?

    Well I have finally resolved the issue. I tested the PSU and it was fine. I tested different sticks of RAM and it was still slow. So the only thing left to check was the mobo. Well I thought, no way is this thing running slow because of the mobo. So I said screw it and reinstalled XP...
  18. Supra

    Recovering Data From a DEAD Hard Drive

    Well no go on the freezer attempt, but I only left it in for an hour, so I plan to do 2 hours tomorrow. Hopefully this works because damn do I want some of that data back!!
  19. Supra

    Recovering Data From a DEAD Hard Drive

    ...which, likes burtsbees said, talked about switching control boards with the same firmware. However, also as burtsbees said, the drive isn't *completely* dead - just mechanically ;| I also read something about putting the drive into the freezer for a while. Apparently the cold makes the...
  20. Supra

    Recovering Data From a DEAD Hard Drive

    Hi felixc, That's what I was wondering about actually - if someone could get my stuff through other means. It's not even the applications I'm worried about, but rather the source code. I have written tons of applications that are now completely untouchable, and the last time I backed them up...

Part and Inventory Search

Back
Top