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 Chriss Miller 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: Kirsle
  • Content: Threads
  • Order by date
  1. Kirsle

    LWP::UserAgent max_size question

    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...
  2. Kirsle

    Linksys routers IRREPARABLY slow down over time?

    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...
  3. Kirsle

    Build dynamic JSON-like data structure

    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...
  4. Kirsle

    Getting an X11 Window List and Icons

    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...
  5. Kirsle

    appendChild can be used to relocate a row inside a table?

    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...
  6. Kirsle

    Perl Upload Progress Bar

    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...
  7. Kirsle

    Time::Local for a different time zone

    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...
  8. Kirsle

    Perl/Tk Webcam Access

    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...
  9. Kirsle

    CentOS Kickstart Scripts w/ External CD Drive

    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...
  10. Kirsle

    Zero-width Character Set

    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...
  11. Kirsle

    Class that uses sockets as a private class variable

    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 -...
  12. Kirsle

    Directory Slash Format for Perl on Windows

    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...
  13. Kirsle

    FTP - Root vs Home Directory

    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...
  14. Kirsle

    Query String Delimiter: & vs ;

    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...
  15. Kirsle

    IE7 Bug - Set iframe onload before submit

    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...
  16. Kirsle

    Multi-level HashMaps

    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...
  17. Kirsle

    HTML 4.01, Forms, and </p>

    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...
  18. Kirsle

    Embeddable/Recursive Regexp?

    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...
  19. Kirsle

    Play audio files from Perl scripts on Linux (high level audio playing)

    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...
  20. Kirsle

    #!/usr/bin/perl -w versus #!/usr/bin/perl

    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...

Part and Inventory Search

Back
Top