Re: tr question (probably wrong list to ask, but ...)
On 1 Dec 2007, at 00:33, Joel Rees wrote: This is probably the wrong list for this question, but is anyone willing to give me a clue why $line =~ tr/+/ /; would clip out the lead bytes of a shift-JIS string in a cgi script? That's a badly-formed regular expression. + means one or more of what was just expressed, but you haven't expressed anything so far, so god knows what it will match. I think you meant to say .+, but that will just delete the whole string in this context. What did you want to do?
Re: Odd 'head' problem
On 15 Jun 2006, at 12:22, Dennis Putnam wrote: I'm not exactly sure this is what happened but I can't think of anything else. After installing several packages from CPAN, my daily log maintenance began failing. After some investigation I found that '/etc/periodic/daily/500.daily' was getting an error from the '/usr/bin/head' command. When I ran 'head' manually the command was not the normal one. It appears that one of the perl packages replaced the normal 'head' command that works on files, with one that works on URLs. Has anyone encountered this, or can anyone determine if my surmise about one of the perl packages is correct? Thanks. This is a common gotcha on Os X. For some reason which I forget, but which I think was due to backwards compatibility with earlier versions of MacOs, the standard file system is not case sensitive: HEAD and head are considered equivalent. In the Perl distribution there is a script called HEAD which indeed does fetch the header of an HTML file from the web. This clashes with the standard Unix head command. There is a standard workaround, but just renaming the HEAD script solves things without (ISTR) breaking too much else.
Re: OT-good DEDICATED hosting service
On 11 Jun 2005, at 18:57, Joseph Alotta wrote: Hi Joel, What does colocation mean? Colocation is when you set up a server on your own machine, and then pay an ISP or similar connectivity provider a rental to place your machine on their network, connected to the Internet. Included in this is usually guaranteed 24/7 power and connectivity, security, and occasionally backups. The two biggest providers of these in the UK are Telehouse and TeleCity, both in London's docklands. In these cases you rent a 19 rack cabinet in which you can place as many servers as you want. That really costs big, though.
Re: What Perl editor do you recommend?
On 2 Mar 2005, at 22:15, John Delacour wrote: At 9:45 pm + 2/3/05, Phil Dobbin wrote: I'm thinking that if he's not comfortable with pico maybe emacs is not the best idea... I'd love to hear a convincing explanation from someone why anyone would use such tools in preference to TextWrangler, BBEdit or Affrus. I can imagine they'd make it a chore to write code in us-ascii and either a nightmare or an impossibility to deal with non-ascii, but maybe that's because I'm just an unreformed Mac user :-) Personally, because I learned Emacs in 1986, so the control keys are hard-coded in my brain :-)
Re: BBEdit 8.0
On 10 Sep 2004, at 09:59, Andy Holyer wrote: On 10 Sep 2004, at 02:54, Doug McNutt wrote: At 19:41 -0500 9/9/04, Ian Ragsdale wrote: Shell worksheets (allows easy editing running of shell commands) And there is by far the most important item. When the MacPerl port ran as an MPW tool it looked a whole lot like UNIX perl and you could run it from a command line, with arguments, and redirect output to another open window or to a file. Any open window, if it contained shell commands, could be invoked as a tool by simply naming it. I am told, by my son, that the best replacement for MPW in OS neXt is really emacs but it requires that I learn smalltalk or something similar and, though I have read the book, I just ain't there. X11 isn't that easy to use either with my four monitors. Lisp, actually. You don't really need to know ant coding to use emacs (I don't recall doing any programming at least in the last ten years or so). Then again, I learned to use emacs some time early 1986, so your milage may well vary. The GNU version for OS X which runs windowing is really nice with the one irritation that it uses emacs cut/paste/etc control keys rather than mac ones (so paste is ctrl-y, for example). Before someone pops up with why would they do that? remember most of the emacs control-key bindings date back to the TOPS-10 days, so they probably predate Unix, let alone the Macintosh. --- Andy Holyer, Technical stuff Hedgehog Broadband, 11 Marlborough Place Brighton BN1 1UB 08451 260895 x 241 --- Andy Holyer, Technical stuff Hedgehog Broadband, 11 Marlborough Place Brighton BN1 1UB 08451 260895 x 241
Re: Problem running perl cgi scripts
On Sunday, April 14, 2002, at 08:00 pm, Puneet Kishor wrote: ... Here are some additional ways you can look at the log more conveniently... from the terminal, type tail /private/var/log/httpd/error_log to see the last 10 lines. Sometimes last 10 lines are not enough so you can pass a number to the tail command. Even better, do tail -f /private/var/log/httpd/error_log That continually checks to see if the file has bee added to, so you can see it scrolling up in real time. Useful for watching who's looking at your web server as well...
Re: socket
On Thursday, March 14, 2002, at 10:45 pm, bob ackerman wrote: yes. i uncommented the daytime tcp line, did a 'kill -HUP 239' and the script worked. i didn't find 'killall' on my system. and 'kill -HUP inetd' didn't work. i had to use the pid of inetd. Thanks. i learning am. You should find kill -HUP 1 works - it sends a HUP signal to init, which is the father of all other Unix processes, and that then sends the signal to all the others.