Hi, I'm making a web app where a user can "upload" an image by providing the URL to an existing image somewhere on the Internet.
To prevent them giving a URL to an extremely large file, I'm trying to limit the max file size that LWP::UserAgent will download.
The documentation for...
Is it a known problem that Linksys routers irreparably slow down over time?
I used to have a WRT54G Linksys router that I replaced about 6 months ago because it would keep dropping the wifi, and the new one I got is a Linksys E1000 (believe it ran me about $70).
It used to run just fine, and...
Hi,
I'm porting a Perl module for a chatterbot reply scripting language over to C++. The chatterbot scripting language consists of text files containing commands and data that is parsed by the module and turned into usable data in-memory so that the chatterbot app can receive messages from a...
I'm playing around with the idea of creating an X11 desktop panel using something like Tkx (ActivePerl) or Tcl::Tk, so I was experimenting with some of the X11 modules on CPAN to get a window list, which would be a necessity to create a task list applet for my panel.
I found X11::Tops which...
Today I discovered a rather strange anomaly in JavaScript, or more specifically in the DOM.
The Background - you can skip this if you'd like and read from the next bolded label.
I was recently assigned the task of making a complicated table be sortable by any column. The table is complicated...
This is in re: http://www.tek-tips.com/viewthread.cfm?qid=1552072&page=1
The code I ended up with wasn't quite correct. By the time a CGI script gets to the point where you can do $q->upload() to get an upload file handle, it's already too late - the server has already fully received your file...
Something "strange" just happened with a site I'm developing that left me confused about time with Perl again.
Part of the web application I'm building includes a web blog, and there's a user-friendly way of specifying what time the blog should be posted with, where the...
Just thought I'd share the results of my latest mad-scientist experiments with Perl:
Accessing a webcam through Perl, in a way that Perl receives all the jpeg images for each frame recorded by the webcam device, and can do with them what it wants (in this case, displaying them in a Perl/Tk...
I'm running into a problem trying to install CentOS on some servers using a kickstart script, for servers that don't have internal CD drives (and therefore need external USB CD drives for installation).
At the initial boot screen I select the kickstart script and then it boots to the blue...
In bash you can colorize your bash prompt using ANSI colors using a method like this:
PS1="\e[1;31m[\u@\h \W]\$\e[0m "
This method of getting a colored prompt however messes up the word wrapping of the terminal. Since the entire sequence of "\e[1;31m" actually takes up zero characters when...
I'm relatively new to C++ - I usually use Perl, then dabbled in some Java, and have been teaching myself C++ for the past week or so.
I'm trying to make a class that connects to a simple chat room that uses a simple but proprietary protocol, called CyanChat -...
Maybe this will settle the confusion about whether to use a backslash \ or a forward slash / when using a path name for Perl on Windows.
Every Windows I've ever run Perl on (Windows 2000 and newer) have accepted the forward / just fine, even when using absolute path names like...
This is an interesting phenomenon that I've noticed since Fedora Core 5 and with every subsequent version of Fedora since then (and presumably with other distros too).
If a Fedora server is running vsftpd for FTP, and you use Nautilus on another Linux desktop to connect to it (via typing...
I wrote this blog entry about this here: http://www.cuvou.com/?p=blog&id=48
Below is the summary:
I started using ; as a delimiter for query strings instead of & for the following reasons:
* The W3C HTML validator doesn't like having a & by itself for HTML 4.01
* YaBB Forum uses a ; which is...
I've stumbled upon a rather annoying bug in Internet Explorer 7.
I have a form on one page that submits into an iframe on the same page. Just before allowing the form to submit, it needs to set an onLoad handler on the iframe, so that a callback can be called when the page is loaded -- to give...
I'm developing a program that needs to read data in from text files and store them in a hierarchical data structure. Here is example input and the data structure in the way Perl would parse it:
(this is for chatting robots. + is what the human says, - is how the bot replies (can have more than...
I'm hoping somebody can provide some insight on a couple of little quirks about HTML 4.01 that I don't quite get.
I've been making sites that validate as HTML 4.01 Strict for a few years, and every page on all the sites would validate except for pages that contain forms. The validator would say...
I was wondering how to write a regexp that can handle "matching pairs" of the delimeters used in the regexp.
For example, if you were trying to parse script code (we'll say JavaScript to avoid the argument of "only Perl can parse Perl" and discussions of how complicated Perl is) and you wanted...
This is a follow-up to my previous thread about this, thread219-1355244, which is closed now.
I was wondering if there was an easy way to just play an audio file in Linux from a Perl script, in a way equivalent to Win32::MediaPlayer for Windows.
Last night I was investigating audio libraries...
I'm wondering if anyone can clarify this for me:
When I was first learning Perl I started all my files off with a fairly basic shebang line:
#!/usr/bin/perl
My ActivePerl was installed in C:\Perl\bin\perl but Windows didn't care because it was going by file extensions, but when uploaded to...
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.