Form re-submission woes!
How can I catch page refreshes and prevent form values from being re-submitted?
[more inside]
posted by purephase
on Sep 16, 2005 -
9 answers
I am in a shared hosting environment, but I host multiple domains using mod_rewrite. Of course, this means all the domains get lumped together in one logfile. I need to be able to separate the individual domains for log analysis, without using a CustomLog statement.
[more inside]
posted by joshwa
on Aug 17, 2005 -
6 answers
This might be a little esoteric - but has anynone managed to get Perl's DBD::mysql module working on OSX Tiger?
[more inside]
posted by Dag Maggot
on Jul 16, 2005 -
4 answers
Access 2003, ActiveState Perl, Win32::ODBC: my MEMO fields are being truncated to 255 characters when I pull them via SQL queries from a Perl script.
[more inside]
posted by IshmaelGraves
on May 25, 2005 -
6 answers
What's the most efficient way to provide a MeFi-style x new comments count for a MeFi-style chat board?
[more inside]
posted by bonaldi
on Mar 28, 2005 -
7 answers
On the Mac, if I need to munge text in extremis, I prefer to use BBEdit. Recently, on the PC, I am finding myself in need of a text editor which is similar to BBEdit. I will use it both for coding and for text-cleaning. I prefer freeware and shareware but that's by no means the deciding factor. Which programs should I check out? Which should I avoid?
[more inside]
posted by mwhybark
on Mar 16, 2005 -
21 answers
I have a Perl script which is supposed to handle user registration. It works fine from the command line (perl blah.pl "username=blah&password=blah") but doesn't modify the file it's supposed to modify when run as a CGI script in Apache 2.0.
[more inside]
posted by IshmaelGraves
on Mar 15, 2005 -
2 answers
Example:
------------
my $include_file_name = 'include.pm';
use $include_file_name;
posted by bryanzera
on Mar 11, 2005 -
5 answers
I need a new way of transforming XML with XSL. Till date I've used PHP's Sablotron, which I absolutely love and is simple to use, but my host keeps forgetting to enable and include it each time they recompile Apache, so I was wondering if someone here knows of a way to do the same with either Perl or JSP/Tomcat or even PHP as long as it is without Sablotron's xslt_create().
[more inside]
posted by riffola
on Mar 7, 2005 -
10 answers
Using a PHP, Perl, or cron, how do I grab a xml page from a my TiVo that requires https authorization? I have the username and password.
[more inside]
posted by riffola
on Feb 26, 2005 -
16 answers
Is there a script (perl or php, no MySQL because I don't understand it and don't want to learn it) that password-protects a webpage so that it can be viewed only by someone who logs in with a username and a password, and also logs that user, so that you can have a record (very important) of who's viewed the page? If so, where can I get me one?
posted by iconomy
on Jan 26, 2005 -
11 answers
Due to "security concerns," my web host provider has just banned two
Form-to-email scripts (Formmail and NMS Formmail). Now I'm hard up to find a replacement. Any ideas? I'd prefer a solution that doesn't require a mastery of PERL to configure.
posted by Pinwheel
on Jan 17, 2005 -
4 answers
I'm using Grep within BBedit 6.1.2 lite, in order to change some data in tables from "regular" time in the format: "0530PM" to military time: "1730"
Essentially, I am able to locate the data I want using:
(####)PM
Which, in the above example returns: "0530"
So here's the question: I want to treat that result as a number, and add 1200 to it to convert it to military time.
Is there a way to do this within BBedit using the replacement patterns, or do I have to go figure out how to write a perl/python/awk/applescript to accomplish this?
posted by mecran01
on Jan 6, 2005 -
10 answers
I've got an interview this week where I'll have to take "a perl test". I haven't used perl for a few years and feel quite rusty. What's a good online resource for a refresher? (besides the Camel Book)
posted by anonymous
on Jan 3, 2005 -
7 answers
I am looking for a simple script (perl,php,whatever) or even binary utility that can programatically render graphical images in this manner: take XYZ font (true-type/postscript/whatever) and render an image with the text ABC.
Does such a thing exist?
posted by xmutex
on Nov 12, 2004 -
13 answers
Looking for a reasonably quick introduction to Perl Unix scripting, preferably online.
posted by Krrrlson
on Nov 4, 2004 -
7 answers
Can anyone recommend a program (in say perl or java or something) that will execute on my linux web server and a) slurp the file references in the pages (html, php) and b) compare them to the actual files in my web root tree giving me a list of all of the unreferenced files (not referenced on public web pages)? I want to clean up this junky file system, but I don't want to break any links and I inherited the mess. Thanks.
posted by pissfactory
on Sep 13, 2004 -
5 answers
I need to set up a database-driven document archive of mostly text files and links. I want the archive to have a tree structure and allow the public to browse it without logging in. I want each file to have a description. I prefer PHP or Perl and need to use it on a shared hosting account. I would think something open source like this would be out there, but I can't find it. Any advice?
posted by johnnydark
on Sep 4, 2004 -
2 answers
Do you happen to know of any artists who are using actual code (programming languages) in their work? I've been toying with this idea a little and have come up with a few concepts that I feel are pretty unique. [mi]
[more inside]
posted by pissfactory
on Jul 2, 2004 -
14 answers
Does anyone know of a Perl or PHP or Python script that can basically do the same thing that del.icio.us does? I also wonder whether the code of del.icio.us itself is for sale.
posted by hoder
on Jun 28, 2004 -
6 answers
I have Apache 2.0 running. I can easily set stuff up like mod_perl and PHP. I want to start developing w/ Java and I want to run servlets and Tomcat scares me. Does it run under Apache? Seperate from Apache? Any info appreciated.
posted by xmutex
on Jun 23, 2004 -
5 answers
I want the CPAN shell to install modules it's done building to a directory other than /usr/lib/perl5blahetc (largely because I am not root on this particular server and won't be). This being perl I'd be _highly_ surprised if there's no way to set the installation directory, but a quick perusal of the CPAN shell settings gives no such option. Nor does a similarly quick perusal of ~/.cpan/.
[more inside]
posted by namespan
on May 25, 2004 -
5 answers
Any MeFi perl/cgi programmers feel like writing a few lines of code?
I need to add a function to an existing script, which looks like a piece of cake if you know perl.
Given a $newstring and a file of records, each consisting of a count and a string delimited by a space:
201 this.thing
23 that.thing
14 someother.thing
...
I need a function to check whether $newstring already exists in the file. If so, increment the count. If not, add a new record to the file with a count of 1. Finally, sort the file in descending order by count.
Maybe 5 minutes for you. Learning perl first for me. If it would be easier with fixed length counts like 0000201, that is fine, too.
If this is inappropriate for Ask MeFi, my apologies. I'll take it over to answers.google.
posted by Geo
on Apr 29, 2004 -
10 answers
Hoping this isn't too obscure, but here goes:
So I've got a perl CGI script. That script kicks off another process using
system (or
exec, or backticks, same difference.) That other process takes a long time, and produces a lot of output, which I'd like to stream to the browser continuously -- or at least often enough to keep the connection open -- instead of waiting for it to end before flushing the buffer.
I know how to use $| to get perl to autoflush its own output. How do I do the same for the system process being called from within perl?
posted by ook
on Mar 15, 2004 -
5 answers
I'm trying to write a short Perl script under Mac OS X (Panther) to post to a Moveable Type weblog using the Atom API. After some initial problems with installing packages, I'm having this issue. [more inside]
[more inside]
posted by mmangano
on Feb 7, 2004 -
2 answers
I have been looking at changing my web development focus from Windows/ASP/.NET to LAMP(Linux, Apache, MySQL, PHP/Python/Perl) because my gut is telling me that this is where things are going. Oh, Java should be in there as well.
What's the skinny on LAMP in the real world (Netcraft
surveys aside)? Is it difficult to change to LAMP/Java? Is the open source thing really sticking?
posted by grefo
on Jan 9, 2004 -
14 answers
I'm interested in filling out my workday learning perl, php and mysql at my own speed. I have no programming background. Anybody have any good experiences with any online courses, or any other advice? Money is not an object, what is important is good structure (logical progression of concepts) and the ability to get personalized help when needed.
posted by luser
on Dec 17, 2003 -
25 answers
I need a simple PHP/Perl script that displays the subjects of the last 10 emails in my inbox via an IMAP connection. I'd like to use it as an include on a personal portal page. [more inside]
[more inside]
posted by machaus
on Dec 11, 2003 -
7 answers
What exactly is
Perl? I've recently acquired a domain and am interested in server-side programming. The problem is that I have no experience and it's difficult as hell to find a reliable resource for beginners (minus any
quick scripts). Any help would be most appreciated.
posted by poopy
on Dec 8, 2003 -
28 answers