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...
I'm going insane trying to figure out why this RegExp is cutting my string in half. The purpose of the pattern is to replace any "tags" within a "%%string%%" tag.
var data = '"%%string%%hello %%number%%1%%%end%%% and hello %%number%%2%%%end%%%.%%%end%%%"';
var pattern =...
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...
Hi folks,
I am staying at a hotel that provides free wireless internet access. I thought I'd play some Scorched3d while I have absolutely nothing better to do, but to my dismay, my wireless connection appears to be blocking UDP packets, as I can play WoW just fine (TCP-based) but the UDP-based...
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...
I'm starting to get really pissed with this one! I have some simple code I wrote to determine what percentage of my Flash movie is loaded, and all I want to do is display a little progress bar, but for some reason it's not working. Neither the progress bar nor the text box displayed above it...
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 =...
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...
Hey guys,
My HDD has been clicking a lot recently, and today it finally gave out. Moving the drive slightly would cause it to spin up and down furiously, and I actually had it to the point where it attempted to load Windows, but froze shortly after. I know it's the HDD because it's been on...
Hey folks,
A friend's machine recently became very, very slow, and she says all she did was delete a few unneeded programs. I immediately assumed she may have deleted the folder(s) rather than use Add/Remove Programs in the Control Panel, so I swapped out her drive and put in a working spare...
Hey folks,
I modified someone else's code which converted a decimal to hex so that it would convert a string to one which a web browser can understand - IE: A space is %20. Anyway, a couple bits of just 2 lines of the code I borrowed I do not understand. They are highlighted in red below...
Hi folks,
I'm trying to connect to my own machine from my own server, and I'm not having much luck. I wrote a simple program to monitor connection requests and a simple Perl script to attempt to connect to it using both LWP::UserAgent and IO::Socket::INET, but neither worked. I have my router...
Hi folks,
This question has been asked plenty of times, however I couldn't find the information I needed when I searched. Basically, I want a cross-browser embedded movie with support at least for IE and FireFox. The catch is, I'd like to have the movie paused at the first frame. So instead...
I recently developed a 2-way encryption method to use on my website. I ported the method over to Perl and it seems to work well, however it was my first attempt at encryption with no prior experience whatsoever, so I'm a little sketchy about using it to protect passwords of my members. The...
Hey folks, what I've done is used .htaccess in my root folder to specify the following:
DirectoryIndex index.pl
ErrorDocument 403 http://www.something.com/error.pl?403
ErrorDocument 404 http://www.something.com/error.pl?404
ErrorDocument 500 http://www.something.com/error.pl?500
Options...
This should be simple for the more advanced Perl users, but I need to write an expression that removes all characters from a string except letters, numbers and underscores. Could someone give an example of how this would be done? Also, could you explain exactly what's going on so I can learn...
As I understand it, if I use the following header..
Content-Type: text/html
Set-Cookie: Username=Justin;
Set-Cookie: Password=Password2;
..those cookies should remain until I close the browser since I didn't set an expiration date. So correct me if I'm wrong, but shouldn't navigating to a...
I am EXTREMELY new to SQL, so please bear with me. This is the code I have..
# Go through database and look for this email
$driver = DBI->install_driver("mysql");
$dsn = "DBI:mysql:database=TEST;host=mysql127.secureserver.net";
$db = DBI->connect($dsn,"USER1","PASSWORD1");
my $query =...
Basically what I want to do is hook up a USB device and have it be wireless. Let's take the Microsoft fingerprint scanner for instance. For the sake of example, let's say I wanted to mount the fingerprint scanner outside of my apartment door. Well, my computer is in the bedroom, so I'd need...
This is weird - I am writing an incredibly simple Perl script (with absolutely NO taint checking) and it is not cooperating when I have "To: blah@blah.com" specified. Here's what I have:
open(MAIL,"|/usr/sbin/sendmail");
print MAIL "To: blah@blah.com\n";
print MAIL "From: anon\n"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.