From swartz at pobox.com Wed Feb 1 10:15:18 2012 From: swartz at pobox.com (Jonathan Swartz) Date: Wed, 1 Feb 2012 10:15:18 -0800 Subject: [sf-perl] [job] Senior Perl developers wanted at ChargeSmart/Verifone In-Reply-To: References: Message-ID: <45BF635D-3B72-43A3-AC02-E9D931CBD36A@pobox.com> ChargeSmart (http://chargesmart.com/) is a thriving and innovative payments company within Verifone (NYSE: PAY). We're seeking multiple senior Perl developers to build advanced web applications. What we use: * Clean, modern OO Perl - Moose, PSGI/Plack, Dancer, DBIx::Class, Perl::Tidy * Linux, Apache/mod_perl 2, svn, mysql (eventually postgresql), memcached We've got a strong team of Perl developers including several prolific CPAN authors. Our office is in the heart of San Francisco's financial district, though we are growing fast and expect to move to a larger space near Montgomery St BART in the near future. Primarily seeking locally based permanent employees though we're open to contract-to-hire. We like to work together in the office but have a liberal work-from-home-or-cafe policy. ChargeSmart has three main products: * Bill Payments - on pace to process $250 million dollars of consumer payments in the coming year * Direct - providing merchants a turnkey e-commerce solution for accepting credit card payments on their site * Mobile - poised to make a huge impact in the disruptive mobile payments space We've recently become part of the Verifone family, which gives us greater market opportunities and the resources to offer competitive benefits and salaries. Please reply with resume (text format is fine) and details about your Perl and software engineering experience. Code samples from CPAN or github a plus. Look forward to hearing from you! Thanks Jon From extasia at extasia.org Fri Feb 3 14:43:00 2012 From: extasia at extasia.org (David Alban) Date: Fri, 3 Feb 2012 14:43:00 -0800 Subject: [sf-perl] not understanding program behavior with alarm() Message-ID: greetings, my code is not doing what i expect. i have: $ cat junk.test.alarm #!/usr/bin/perl use strict; use warnings; eval { local $SIG{ ALRM } = sub { die "alarm\n"; }; alarm 5; system 'bash', "$ENV{ HOME }/junk.sh"; alarm 0; }; if ( $@ ) { if ( $@ eq "alarm\n" ) { die "timed out!\n"; } else { die "non-timeout error: $!\n"; } } print "right before exit stmt\n"; exit 0; and: $ cat ~/junk.sh #!/bin/bash export PATH=/sbin:/bin:/usr/sbin:/usr/bin i=0 while true ; do i=$(( $i + 1 )) echo $i sleep 1 done exit 0 when i run, i get: $ perl junk.test.alarm $ perl junk.test.alarm 1 2 3 4 5 timed out! dalban at srwd00reg008 Fri Feb 03 22:41:37 ~ $ 6 7 8 9 10 11 12 13 with junk.sh continuing until i kill it from the command line. what am i missing? should the die() stop junk.sh? thanks, david -- Live in a world of your own, but always welcome visitors. *** Rule of law is for the little people. http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 From fobispo at isc.org Fri Feb 3 14:57:23 2012 From: fobispo at isc.org (Francisco Obispo) Date: Fri, 3 Feb 2012 14:57:23 -0800 Subject: [sf-perl] not understanding program behavior with alarm() In-Reply-To: References: Message-ID: <6948691A-B021-4D26-9C50-FE02CEE58BED@isc.org> Perl's system() call performs a fork() on the specified process, you might want to try exec() instead.. On Feb 3, 2012, at 2:43 PM, David Alban wrote: > greetings, > > my code is not doing what i expect. i have: > > $ cat junk.test.alarm > #!/usr/bin/perl > > use strict; > use warnings; > > eval { > local $SIG{ ALRM } = sub { die "alarm\n"; }; > alarm 5; > system 'bash', "$ENV{ HOME }/junk.sh"; > alarm 0; > }; > > if ( $@ ) { > if ( $@ eq "alarm\n" ) { > die "timed out!\n"; > } > else { > die "non-timeout error: $!\n"; > } > } > > print "right before exit stmt\n"; > > exit 0; > > and: > > $ cat ~/junk.sh > #!/bin/bash > > export PATH=/sbin:/bin:/usr/sbin:/usr/bin > > i=0 > while true ; do > i=$(( $i + 1 )) > echo $i > sleep 1 > done > > exit 0 > > when i run, i get: > > $ perl junk.test.alarm > $ perl junk.test.alarm > 1 > 2 > 3 > 4 > 5 > timed out! > > dalban at srwd00reg008 Fri Feb 03 22:41:37 > ~ > $ 6 > 7 > 8 > 9 > 10 > 11 > 12 > 13 > > with junk.sh continuing until i kill it from the command line. > > what am i missing? > > should the die() stop junk.sh? > > thanks, > david > -- > Live in a world of your own, but always welcome visitors. > *** > Rule of law is for the little people. > http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From extasia at extasia.org Fri Feb 3 16:08:36 2012 From: extasia at extasia.org (David Alban) Date: Fri, 3 Feb 2012 16:08:36 -0800 Subject: [sf-perl] not understanding program behavior with alarm() In-Reply-To: <6948691A-B021-4D26-9C50-FE02CEE58BED@isc.org> References: <6948691A-B021-4D26-9C50-FE02CEE58BED@isc.org> Message-ID: hmmm... then i should probably fork() first... ? On Fri, Feb 3, 2012 at 2:57 PM, Francisco Obispo wrote: > Perl's system() call performs a fork() on the specified process, > > you might want to try exec() instead.. -- Live in a world of your own, but always welcome visitors. *** Rule of law is for the little people. http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 From greg at blekko.com Sat Feb 4 21:17:14 2012 From: greg at blekko.com (Greg Lindahl) Date: Sat, 4 Feb 2012 21:17:14 -0800 Subject: [sf-perl] not understanding program behavior with alarm() In-Reply-To: References: <6948691A-B021-4D26-9C50-FE02CEE58BED@isc.org> Message-ID: <20120205051714.GC13341@bx9.net> Yes, you need to fork first. sub system_with_timeout { my ( $timeout, @argv ) = @_; my $status = 1; return 1 unless defined $timeout and $timeout > 0; return 1 unless @argv and "@argv"; my $pid = fork; if ( ! defined $pid ) { die "fork failed: $!"; } if ( $pid ) # parent { local $SIG{ALRM} = sub { die "Alarm fired\n"; }; alarm $timeout; eval { waitpid $pid, 0; $status = $?; }; if ( $@ ) # alarm fired { kill 9, $pid; return $status || 1; # force it to non-zero } alarm 0; } else { exec @argv; die "exec failed: $!"; } return $status; } On Fri, Feb 03, 2012 at 04:08:36PM -0800, David Alban wrote: > hmmm... then i should probably fork() first... ? > > On Fri, Feb 3, 2012 at 2:57 PM, Francisco Obispo wrote: > > Perl's system() call performs a fork() on the specified process, > > > > you might want to try exec() instead.. > > -- > Live in a world of your own, but always welcome visitors. > *** > Rule of law is for the little people. > http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From fobispo at isc.org Sun Feb 5 06:27:24 2012 From: fobispo at isc.org (Francisco Obispo) Date: Sun, 5 Feb 2012 09:27:24 -0500 Subject: [sf-perl] not understanding program behavior with alarm() In-Reply-To: <20120205051714.GC13341@bx9.net> References: <6948691A-B021-4D26-9C50-FE02CEE58BED@isc.org> <20120205051714.GC13341@bx9.net> Message-ID: <693B005F-1448-49F5-8E43-D238BB111B7A@isc.org> Or avoid the fork() altogether.. Try using: my $result=qx{/path/to/my/script.sh}; regards, On Feb 5, 2012, at 12:17 AM, Greg Lindahl wrote: > Yes, you need to fork first. > > sub system_with_timeout > { > my ( $timeout, @argv ) = @_; > my $status = 1; > return 1 unless defined $timeout and $timeout > 0; > return 1 unless @argv and "@argv"; > > my $pid = fork; > if ( ! defined $pid ) { die "fork failed: $!"; } > if ( $pid ) # parent > { > local $SIG{ALRM} = sub { die "Alarm fired\n"; }; > alarm $timeout; > eval { > waitpid $pid, 0; > $status = $?; > }; > if ( $@ ) # alarm fired > { > kill 9, $pid; > return $status || 1; # force it to non-zero > } > alarm 0; > } > else > { > exec @argv; > die "exec failed: $!"; > } > return $status; > } > > > On Fri, Feb 03, 2012 at 04:08:36PM -0800, David Alban wrote: >> hmmm... then i should probably fork() first... ? >> >> On Fri, Feb 3, 2012 at 2:57 PM, Francisco Obispo wrote: >>> Perl's system() call performs a fork() on the specified process, >>> >>> you might want to try exec() instead.. >> >> -- >> Live in a world of your own, but always welcome visitors. >> *** >> Rule of law is for the little people. >> http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From extasia at extasia.org Sun Feb 5 15:56:55 2012 From: extasia at extasia.org (David Alban) Date: Sun, 5 Feb 2012 15:56:55 -0800 Subject: [sf-perl] timing out wedged ssh processes [was: not understanding program behavior with alarm()] Message-ID: fyi, the problem i was trying to solve was to time out "wedged" ssh connections.[1] what i call a wedged connection is when the ssh connection is successfully established but hangs. an interactive session never gives you a prompt. a non-interactive sessions never runs your command(s). i wanted to set an alarm to timeout the hang. turns out it works quite well for wedged ssh invocations, but when i went to add the alarm() functionality to our library subroutine we use to ssh, and was testing it, i noticed that the commands issued in non-interactive ssh sessions that *don't* wedge are not stopped when perl stops a timed out ssh invocation. which made me wonder if the same thing was happening with my previous strategy: our programs do something like: my $now = time; my $started_string = "_STARTED=$now"; my $timeout = ... ; # seconds my $timeout_string = "_TIMEOUT=$timeout"; my $remote command = ... ; my $ssh_command = qq{ssh $remote_host "$started_string ; $timeout_string ; $remote_command"}; ... execute ssh command ... the variable assignments aren't used on the remote host, but they show up in the process table on the local host, on which a reaper program is invoked by cron every minute and checks the process table for ssh process which have both _STARTED and _TIMEOUT in the command. if the current time indicates any such process has timed out with respect to its value for _STARTED and _TIMEOUT, it kills the process (wedged ssh processes will hang forever). for instance, say for simplicity that the remote command is "hostname". we expect this command to complete in a second or less, so we may set _TIMEOUT to 20. i found that with this reaper strategy, as with using alarm(), it works well on wedged ssh processes, but doesn't stop the remote command(s) of non-wedged ssh processes. we decided that if we need for remote commands to timeout, the timeout functionality must be part of the remote commands. perhaps alarm() in them if they're perl. [1] ssh's -o option argument ConnectTimeout will time out ssh processes waiting for connections, not "wedged" ones in which a connection has been made successfully and then hangs. On Fri, Feb 3, 2012 at 2:43 PM, David Alban wrote: > $ perl junk.test.alarm > 1 > 2 > 3 > 4 > 5 > timed out! > > dalban at srwd00reg008 ? ? ? ? ? ? Fri Feb 03 22:41:37 > ~ > $ 6 > 7 > 8 > 9 > 10 > 11 > 12 > 13 > > with junk.sh continuing until i kill it from the command line. > > what am i missing? > > should the die() stop junk.sh? -- Live in a world of your own, but always welcome visitors. *** Rule of law is for the little people. http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 From Paul.Makepeace at realprogrammers.com Sun Feb 5 17:35:52 2012 From: Paul.Makepeace at realprogrammers.com (Paul Makepeace) Date: Mon, 6 Feb 2012 01:35:52 +0000 Subject: [sf-perl] timing out wedged ssh processes [was: not understanding program behavior with alarm()] In-Reply-To: References: Message-ID: autossh ftw! http://www.harding.motd.ca/autossh/ On Sun, Feb 5, 2012 at 23:56, David Alban wrote: > fyi, the problem i was trying to solve was to time out "wedged" ssh > connections.[1] ?what i call a wedged connection is when the ssh > connection is successfully established but hangs. ?an interactive > session never gives you a prompt. ?a non-interactive sessions never > runs your command(s). > > i wanted to set an alarm to timeout the hang. ?turns out it works > quite well for wedged ssh invocations, but when i went to add the > alarm() functionality to our library subroutine we use to ssh, and was > testing it, i noticed that the commands issued in non-interactive ssh > sessions that *don't* wedge are not stopped when perl stops a timed > out ssh invocation. > > which made me wonder if the same thing was happening with my previous strategy: > > our programs do something like: > > my $now = time; > my $started_string = "_STARTED=$now"; > > my $timeout = ... ; ? ?# seconds > my $timeout_string = "_TIMEOUT=$timeout"; > > my $remote command = ... ; > > my $ssh_command = qq{ssh $remote_host "$started_string ; > $timeout_string ; $remote_command"}; > > ... execute ssh command ... > > the variable assignments aren't used on the remote host, but they show > up in the process table on the local host, on which a reaper program > is invoked by cron every minute and checks the process table for ssh > process which have both _STARTED and _TIMEOUT in the command. ? if the > current time indicates any such process has timed out with respect to > its value for _STARTED and _TIMEOUT, it kills the process (wedged ssh > processes will hang forever). ?for instance, say for simplicity that > the remote command is "hostname". ?we expect this command to complete > in a second or less, so we may set _TIMEOUT to 20. > > i found that with this reaper strategy, as with using alarm(), it > works well on wedged ssh processes, but doesn't stop the remote > command(s) of non-wedged ssh processes. > > we decided that if we need for remote commands to timeout, the timeout > functionality must be part of the remote commands. ?perhaps alarm() in > them if they're perl. > > [1] ssh's -o option argument ConnectTimeout will time out ssh > processes waiting for connections, not "wedged" ones in which a > connection has been made successfully and then hangs. > > On Fri, Feb 3, 2012 at 2:43 PM, David Alban wrote: >> $ perl junk.test.alarm >> 1 >> 2 >> 3 >> 4 >> 5 >> timed out! >> >> dalban at srwd00reg008 ? ? ? ? ? ? Fri Feb 03 22:41:37 >> ~ >> $ 6 >> 7 >> 8 >> 9 >> 10 >> 11 >> 12 >> 13 >> >> with junk.sh continuing until i kill it from the command line. >> >> what am i missing? >> >> should the die() stop junk.sh? > > -- > Live in a world of your own, but always welcome visitors. > *** > Rule of law is for the little people. > http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From extasia at extasia.org Sun Feb 5 17:46:18 2012 From: extasia at extasia.org (David Alban) Date: Sun, 5 Feb 2012 17:46:18 -0800 Subject: [sf-perl] timing out wedged ssh processes [was: not understanding program behavior with alarm()] In-Reply-To: References: Message-ID: : - If autossh itself receives a SIGTERM, SIGINT, or a SIGKILL signal, it assumes that it was deliberately signalled, and exits after killing the child ssh process; thanks! On Sun, Feb 5, 2012 at 5:35 PM, Paul Makepeace wrote: > autossh ftw! > > http://www.harding.motd.ca/autossh/ -- Live in a world of your own, but always welcome visitors. *** Rule of law is for the little people. http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 From fred at redhotpenguin.com Mon Feb 6 20:12:33 2012 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 6 Feb 2012 20:12:33 -0800 Subject: [sf-perl] [meeting] Pinto; a new way to manage Perl based application dependencies Message-ID: We'll be at Mother Jones this February the 28th at 7pm for our first official 2012 meeting. Pinto is a new module dependency manage system for Perl applications. Version management for Perl modules can pose significant maintenance costs in larger organizations where you have several layers of application stacks, from developer to production. Pinto helps you take control of the madness and lets you get back to writing code. Pinto is authored by Jeff Thalhammer, creator of widely acclaimed Perl::Critic. Pinto on CPAN - http://search.cpan.org/~thaljef/Pinto-0.030... THALJEF on CPAN - http://search.cpan.org/~thaljef/ RSVP at http://www.meetup.com/San-Francisco-Perl-Mongers/events/51343902/ From fred at redhotpenguin.com Mon Feb 6 21:39:13 2012 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 6 Feb 2012 21:39:13 -0800 Subject: [sf-perl] Fw: [announce] Pinto-0.026 In-Reply-To: <74F4EE37-1AAB-41DA-A707-AA2A45C2B265@imaginative-software.com> References: <74F4EE37-1AAB-41DA-A707-AA2A45C2B265@imaginative-software.com> Message-ID: In case you saw the meeting announcement but would like to know more about Pinto, please refer to this thread. Coming to our next meeting on February 28th. RSVP here - http://www.meetup.com/San-Francisco-Perl-Mongers/events/51343902/ Forwarded message: > From: Jeffrey Thalhammer > To: sfpug at sf.pm.org > Date: Saturday, December 17, 2011 2:35:43 PM > Subject: Re: [sf-perl] [announce] Pinto-0.026 > > > On Dec 16, 2011, at 10:17 PM, Fred Moyer wrote: > > This has the disadvantage of taking a couple hours to get a full set of needed Perl modules installed, but does return some long term benefits such as being able to install whatever module you want whenever you want without breaking modules that are shared between developers. > > Carton (http://search.cpan.org/dist/carton) or Dist::Zilla::Chef (http://search.cpan.org/dist/Dist-Zilla-Chef) can help with that. Both of them will stash all the required CPAN dists _inside_ your project. So all you need to do is checkout the project from the VCS system, fire some carton or dzil commands, and it will build everything into a local::lib sandbox (without going over the network, and without "accidentally" upgrading to the latest version on the CPAN). > > For example, I have 2 or 3 different versions of perl (via perlbrew) that I can switch between, but I never install any modules in them. Each of my projects has its own private slice of CPAN that installs into its own local::lib. This means I never contaminate my environment for one project with the modules from another project. All is neat, clean, and reproducible. > > -Jeff > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org (mailto:SanFrancisco-pm at pm.org) > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > From gatorreina at gmail.com Wed Feb 8 15:12:02 2012 From: gatorreina at gmail.com (Richard Reina) Date: Wed, 8 Feb 2012 17:12:02 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl Message-ID: I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? Thanks for any help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fobispo at isc.org Wed Feb 8 15:24:22 2012 From: fobispo at isc.org (Francisco Obispo) Date: Wed, 8 Feb 2012 18:24:22 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: Message-ID: <6F02BBCF-DD6F-4F2E-9EB5-063DB5962489@isc.org> if your terminal is UTF8 try this: perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (0..255)' It will print the first 256 characters.. note that ASCII text is 7-bit so you only have the range 0-127. Francisco On Feb 8, 2012, at 6:12 PM, Richard Reina wrote: > I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? > > Thanks for any help. > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From jackofnotrades at gmail.com Wed Feb 8 15:30:01 2012 From: jackofnotrades at gmail.com (Jeff Bragg) Date: Wed, 8 Feb 2012 15:30:01 -0800 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: Message-ID: Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. 2012/2/8 Richard Reina > I am needing to print the TM symbol for a trademark into a regular ascii > text file and having no luck doing so. Does anyone know how? > > Thanks for any help. > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatorreina at gmail.com Wed Feb 8 15:31:10 2012 From: gatorreina at gmail.com (Richard Reina) Date: Wed, 8 Feb 2012 17:31:10 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <6F02BBCF-DD6F-4F2E-9EB5-063DB5962489@isc.org> References: <6F02BBCF-DD6F-4F2E-9EB5-063DB5962489@isc.org> Message-ID: Hi Francisco, Thanks for the reply. That gives me a map but the TM symbol ? is not listed. 2012/2/8 Francisco Obispo > if your terminal is UTF8 try this: > > perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (0..255)' > > It will print the first 256 characters.. note that ASCII text is 7-bit so > you only have the range 0-127. > > Francisco > > > > On Feb 8, 2012, at 6:12 PM, Richard Reina wrote: > > > I am needing to print the TM symbol for a trademark into a regular ascii > text file and having no luck doing so. Does anyone know how? > > > > Thanks for any help. > > _______________________________________________ > > SanFrancisco-pm mailing list > > SanFrancisco-pm at pm.org > > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatorreina at gmail.com Wed Feb 8 15:36:40 2012 From: gatorreina at gmail.com (Richard Reina) Date: Wed, 8 Feb 2012 17:36:40 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: Message-ID: I don't know whether it is or not. I was hoping it was because I have to find a way to print it. 2012/2/8 Jeff Bragg > Is that actually in the ASCII set? I see (in the output from a for loop > printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) > and the copyright symbol (ord 169), but no trademark symbol. > > 2012/2/8 Richard Reina > >> I am needing to print the TM symbol for a trademark into a regular ascii >> text file and having no luck doing so. Does anyone know how? >> >> Thanks for any help. >> >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fobispo at isc.org Wed Feb 8 15:42:27 2012 From: fobispo at isc.org (Francisco Obispo) Date: Wed, 8 Feb 2012 18:42:27 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: Message-ID: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> I was hoping it would show up in the table. On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > I don't know whether it is or not. I was hoping it was because I have to find a way to print it. > > 2012/2/8 Jeff Bragg > Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > > 2012/2/8 Richard Reina > I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? > > Thanks for any help. > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From fobispo at isc.org Wed Feb 8 15:47:41 2012 From: fobispo at isc.org (Francisco Obispo) Date: Wed, 8 Feb 2012 18:47:41 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> Message-ID: Actually in UTF-8 its: 8482 perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' http://www.fileformat.info/info/unicode/char/2122/index.htm On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > I was hoping it would show up in the table. > > > > On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > >> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >> >> 2012/2/8 Jeff Bragg >> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >> >> 2012/2/8 Richard Reina >> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >> >> Thanks for any help. >> >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> >> >> >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From jackofnotrades at gmail.com Wed Feb 8 15:51:31 2012 From: jackofnotrades at gmail.com (Jeff Bragg) Date: Wed, 8 Feb 2012 15:51:31 -0800 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> Message-ID: Also Unicode codepoint "\N{U+2122}" (superfluous, though, since you've found a solution already). On Wed, Feb 8, 2012 at 3:47 PM, Francisco Obispo wrote: > Actually in UTF-8 its: 8482 > > > perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (8482)' > > > http://www.fileformat.info/info/unicode/char/2122/index.htm > > > > > > On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > > > I was hoping it would show up in the table. > > > > > > > > On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > > > >> I don't know whether it is or not. I was hoping it was because I have > to find a way to print it. > >> > >> 2012/2/8 Jeff Bragg > >> Is that actually in the ASCII set? I see (in the output from a for > loop printing the characters for ordinals 10 - 255) the circled 'r' (ord > 174) and the copyright symbol (ord 169), but no trademark symbol. > >> > >> 2012/2/8 Richard Reina > >> I am needing to print the TM symbol for a trademark into a regular > ascii text file and having no luck doing so. Does anyone know how? > >> > >> Thanks for any help. > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >> > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > _______________________________________________ > > SanFrancisco-pm mailing list > > SanFrancisco-pm at pm.org > > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatorreina at gmail.com Thu Feb 9 05:27:23 2012 From: gatorreina at gmail.com (Richard Reina) Date: Thu, 9 Feb 2012 07:27:23 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> Message-ID: Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? 2012/2/8 Francisco Obispo > Actually in UTF-8 its: 8482 > > > perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (8482)' > > > http://www.fileformat.info/info/unicode/char/2122/index.htm > > > > > > On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > > > I was hoping it would show up in the table. > > > > > > > > On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > > > >> I don't know whether it is or not. I was hoping it was because I have > to find a way to print it. > >> > >> 2012/2/8 Jeff Bragg > >> Is that actually in the ASCII set? I see (in the output from a for > loop printing the characters for ordinals 10 - 255) the circled 'r' (ord > 174) and the copyright symbol (ord 169), but no trademark symbol. > >> > >> 2012/2/8 Richard Reina > >> I am needing to print the TM symbol for a trademark into a regular > ascii text file and having no luck doing so. Does anyone know how? > >> > >> Thanks for any help. > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >> > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > _______________________________________________ > > SanFrancisco-pm mailing list > > SanFrancisco-pm at pm.org > > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fobispo at isc.org Thu Feb 9 08:35:35 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 11:35:35 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> Message-ID: you need to check your encoding to make sure that they match, and if they don't set them properly. LANG="en_US.UTF-8" or any other UNICODE-compatible encoding. It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). Francisco On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? > > > > 2012/2/8 Francisco Obispo > Actually in UTF-8 its: 8482 > > > perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' > > > http://www.fileformat.info/info/unicode/char/2122/index.htm > > > > > > On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > > > I was hoping it would show up in the table. > > > > > > > > On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > > > >> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. > >> > >> 2012/2/8 Jeff Bragg > >> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > >> > >> 2012/2/8 Richard Reina > >> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? > >> > >> Thanks for any help. > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >> > >> > >> _______________________________________________ > >> SanFrancisco-pm mailing list > >> SanFrancisco-pm at pm.org > >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > _______________________________________________ > > SanFrancisco-pm mailing list > > SanFrancisco-pm at pm.org > > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > From el.dodgero at gmail.com Thu Feb 9 09:22:37 2012 From: el.dodgero at gmail.com (Dodger) Date: Thu, 9 Feb 2012 09:22:37 -0800 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> Message-ID: <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. Sent from my iPhone On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > you need to check your encoding to make sure that they match, and if they don't set them properly. > > LANG="en_US.UTF-8" > > or any other UNICODE-compatible encoding. > > It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). > > Francisco > > On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > >> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >> >> >> >> 2012/2/8 Francisco Obispo >> Actually in UTF-8 its: 8482 >> >> >> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >> >> >> http://www.fileformat.info/info/unicode/char/2122/index.htm >> >> >> >> >> >> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >> >>> I was hoping it would show up in the table. >>> >>> >>> >>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >>> >>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >>>> >>>> 2012/2/8 Jeff Bragg >>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >>>> >>>> 2012/2/8 Richard Reina >>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >>>> >>>> Thanks for any help. >>>> >>>> _______________________________________________ >>>> SanFrancisco-pm mailing list >>>> SanFrancisco-pm at pm.org >>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>> >>>> >>>> >>>> _______________________________________________ >>>> SanFrancisco-pm mailing list >>>> SanFrancisco-pm at pm.org >>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> >>> _______________________________________________ >>> SanFrancisco-pm mailing list >>> SanFrancisco-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> >> > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From fobispo at isc.org Thu Feb 9 09:26:57 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 12:26:57 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> Message-ID: <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> exactly. It's how you interpret it, as long as it is the right character. Francisco On Feb 9, 2012, at 12:22 PM, Dodger wrote: > It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. > > > Sent from my iPhone > > On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > >> you need to check your encoding to make sure that they match, and if they don't set them properly. >> >> LANG="en_US.UTF-8" >> >> or any other UNICODE-compatible encoding. >> >> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). >> >> Francisco >> >> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >> >>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >>> >>> >>> >>> 2012/2/8 Francisco Obispo >>> Actually in UTF-8 its: 8482 >>> >>> >>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >>> >>> >>> http://www.fileformat.info/info/unicode/char/2122/index.htm >>> >>> >>> >>> >>> >>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >>> >>>> I was hoping it would show up in the table. >>>> >>>> >>>> >>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >>>> >>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >>>>> >>>>> 2012/2/8 Jeff Bragg >>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >>>>> >>>>> 2012/2/8 Richard Reina >>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >>>>> >>>>> Thanks for any help. >>>>> >>>>> _______________________________________________ >>>>> SanFrancisco-pm mailing list >>>>> SanFrancisco-pm at pm.org >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> SanFrancisco-pm mailing list >>>>> SanFrancisco-pm at pm.org >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>> >>>> _______________________________________________ >>>> SanFrancisco-pm mailing list >>>> SanFrancisco-pm at pm.org >>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> >>> >> >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From el.dodgero at gmail.com Thu Feb 9 09:32:15 2012 From: el.dodgero at gmail.com (Dodger) Date: Thu, 9 Feb 2012 09:32:15 -0800 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> Message-ID: <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. Sent from my iPhone On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > exactly. > It's how you interpret it, as long as it is the right character. > > Francisco > > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. >> >> >> Sent from my iPhone >> >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >> >>> you need to check your encoding to make sure that they match, and if they don't set them properly. >>> >>> LANG="en_US.UTF-8" >>> >>> or any other UNICODE-compatible encoding. >>> >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). >>> >>> Francisco >>> >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >>> >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >>>> >>>> >>>> >>>> 2012/2/8 Francisco Obispo >>>> Actually in UTF-8 its: 8482 >>>> >>>> >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >>>> >>>> >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >>>> >>>> >>>> >>>> >>>> >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >>>> >>>>> I was hoping it would show up in the table. >>>>> >>>>> >>>>> >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >>>>> >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >>>>>> >>>>>> 2012/2/8 Jeff Bragg >>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >>>>>> >>>>>> 2012/2/8 Richard Reina >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >>>>>> >>>>>> Thanks for any help. >>>>>> >>>>>> _______________________________________________ >>>>>> SanFrancisco-pm mailing list >>>>>> SanFrancisco-pm at pm.org >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> SanFrancisco-pm mailing list >>>>>> SanFrancisco-pm at pm.org >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>> >>>>> _______________________________________________ >>>>> SanFrancisco-pm mailing list >>>>> SanFrancisco-pm at pm.org >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>> >>>> >>> >>> _______________________________________________ >>> SanFrancisco-pm mailing list >>> SanFrancisco-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > From fobispo at isc.org Thu Feb 9 09:39:34 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 12:39:34 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> Message-ID: <8C982DED-A851-4462-BA53-83058BB93B69@isc.org> On Feb 9, 2012, at 12:32 PM, Dodger wrote: > Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. > right. this is why I think is a very bad idea to rely on the character if the file doesn't contain encoding information. HTML and XML files can include an encoding instruction for the client to set it. > Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. > Perl can check the client encoding (i.e. by looking at $ENV{LANG}) and determining whether is capable of displaying the character or not. That's usually what happens with some libraries that use encodings. > Sent from my iPhone > > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > >> exactly. >> It's how you interpret it, as long as it is the right character. >> >> Francisco >> >> >> On Feb 9, 2012, at 12:22 PM, Dodger wrote: >> >>> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. >>> >>> >>> Sent from my iPhone >>> >>> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >>> >>>> you need to check your encoding to make sure that they match, and if they don't set them properly. >>>> >>>> LANG="en_US.UTF-8" >>>> >>>> or any other UNICODE-compatible encoding. >>>> >>>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). >>>> >>>> Francisco >>>> >>>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >>>> >>>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >>>>> >>>>> >>>>> >>>>> 2012/2/8 Francisco Obispo >>>>> Actually in UTF-8 its: 8482 >>>>> >>>>> >>>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >>>>> >>>>> >>>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >>>>> >>>>>> I was hoping it would show up in the table. >>>>>> >>>>>> >>>>>> >>>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >>>>>> >>>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >>>>>>> >>>>>>> 2012/2/8 Jeff Bragg >>>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >>>>>>> >>>>>>> 2012/2/8 Richard Reina >>>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >>>>>>> >>>>>>> Thanks for any help. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> SanFrancisco-pm mailing list >>>>>>> SanFrancisco-pm at pm.org >>>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> SanFrancisco-pm mailing list >>>>>>> SanFrancisco-pm at pm.org >>>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>>> >>>>>> _______________________________________________ >>>>>> SanFrancisco-pm mailing list >>>>>> SanFrancisco-pm at pm.org >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> SanFrancisco-pm mailing list >>>> SanFrancisco-pm at pm.org >>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> From gatorreina at gmail.com Thu Feb 9 09:50:19 2012 From: gatorreina at gmail.com (Richard Reina) Date: Thu, 9 Feb 2012 11:50:19 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> Message-ID: Thanks for the replies. I think we're getting down to the crux of the issue. Ultimately, what has to happen is that I have to get the ? into text emails that our sent out by a script using mime::lite. This is proving to be daunting for me any help would be greatly appreciated. 2012/2/9 Dodger > Moreover even if he changes the character set so it displays right in his > viewer or editor, if that file is supposed to be used by someone else in a > different environment that may expect a different charset it won't work. > > Perl can't help that. About the only way around it is using some format > like XML in which the character set can be explicitly specified. > > Sent from my iPhone > > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > > > exactly. > > It's how you interpret it, as long as it is the right character. > > > > Francisco > > > > > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > > > >> It seems to me the problem isn't printing any given character into a > file but, rather, whatever is being used to display the file not rendering > the right character. > >> > >> > >> Sent from my iPhone > >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > >> > >>> you need to check your encoding to make sure that they match, and if > they don't set them properly. > >>> > >>> LANG="en_US.UTF-8" > >>> > >>> or any other UNICODE-compatible encoding. > >>> > >>> It is generally a bad idea to rely on it because it if clients don't > understand UNICODE they will see whatever character correspond to their > table? and believe me, it's even worse when the client doesn't support > multi-byte characters (in general). > >>> > >>> Francisco > >>> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > >>> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. > However, it only works on my Ununtu Machines that are running Xwindows. > When I try it on a Centos machines in console mode it prints the circled > "r" for registered trademark. Would anyone know why this is and how to get > the TM to print on a Centos machine? > >>>> > >>>> > >>>> > >>>> 2012/2/8 Francisco Obispo > >>>> Actually in UTF-8 its: 8482 > >>>> > >>>> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (8482)' > >>>> > >>>> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > >>>> > >>>>> I was hoping it would show up in the table. > >>>>> > >>>>> > >>>>> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > >>>>> > >>>>>> I don't know whether it is or not. I was hoping it was because I > have to find a way to print it. > >>>>>> > >>>>>> 2012/2/8 Jeff Bragg > >>>>>> Is that actually in the ASCII set? I see (in the output from a for > loop printing the characters for ordinals 10 - 255) the circled 'r' (ord > 174) and the copyright symbol (ord 169), but no trademark symbol. > >>>>>> > >>>>>> 2012/2/8 Richard Reina > >>>>>> I am needing to print the TM symbol for a trademark into a regular > ascii text file and having no luck doing so. Does anyone know how? > >>>>>> > >>>>>> Thanks for any help. > >>>>>> > >>>>>> _______________________________________________ > >>>>>> SanFrancisco-pm mailing list > >>>>>> SanFrancisco-pm at pm.org > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> SanFrancisco-pm mailing list > >>>>>> SanFrancisco-pm at pm.org > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>>> > >>>>> _______________________________________________ > >>>>> SanFrancisco-pm mailing list > >>>>> SanFrancisco-pm at pm.org > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>> > >>>> > >>> > >>> _______________________________________________ > >>> SanFrancisco-pm mailing list > >>> SanFrancisco-pm at pm.org > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fobispo at isc.org Thu Feb 9 09:56:00 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 12:56:00 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> Message-ID: <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Ah!, well, just make sure you set your quoted-printable and UTF-8, you might want to read: http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ regards, On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: > Thanks for the replies. I think we're getting down to the crux of the issue. Ultimately, what has to happen is that I have to get the ? into text emails that our sent out by a script using mime::lite. This is proving to be daunting for me any help would be greatly appreciated. > > > 2012/2/9 Dodger > Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. > > Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. > > Sent from my iPhone > > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > > > exactly. > > It's how you interpret it, as long as it is the right character. > > > > Francisco > > > > > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > > > >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. > >> > >> > >> Sent from my iPhone > >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > >> > >>> you need to check your encoding to make sure that they match, and if they don't set them properly. > >>> > >>> LANG="en_US.UTF-8" > >>> > >>> or any other UNICODE-compatible encoding. > >>> > >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). > >>> > >>> Francisco > >>> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > >>> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? > >>>> > >>>> > >>>> > >>>> 2012/2/8 Francisco Obispo > >>>> Actually in UTF-8 its: 8482 > >>>> > >>>> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' > >>>> > >>>> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > >>>> > >>>>> I was hoping it would show up in the table. > >>>>> > >>>>> > >>>>> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > >>>>> > >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. > >>>>>> > >>>>>> 2012/2/8 Jeff Bragg > >>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > >>>>>> > >>>>>> 2012/2/8 Richard Reina > >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? > >>>>>> > >>>>>> Thanks for any help. > >>>>>> > >>>>>> _______________________________________________ > >>>>>> SanFrancisco-pm mailing list > >>>>>> SanFrancisco-pm at pm.org > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> SanFrancisco-pm mailing list > >>>>>> SanFrancisco-pm at pm.org > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>>> > >>>>> _______________________________________________ > >>>>> SanFrancisco-pm mailing list > >>>>> SanFrancisco-pm at pm.org > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >>>> > >>>> > >>> > >>> _______________________________________________ > >>> SanFrancisco-pm mailing list > >>> SanFrancisco-pm at pm.org > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > From gatorreina at gmail.com Thu Feb 9 10:08:29 2012 From: gatorreina at gmail.com (Richard Reina) Date: Thu, 9 Feb 2012 12:08:29 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: I tried but when I do: Data => encode("utf8", $body), I get: Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. 2012/2/9 Francisco Obispo > Ah!, > well, just make sure you set your quoted-printable and UTF-8, you might > want to read: > > > http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ > > regards, > > > > > On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: > > > Thanks for the replies. I think we're getting down to the crux of the > issue. Ultimately, what has to happen is that I have to get the ? into > text emails that our sent out by a script using mime::lite. This is > proving to be daunting for me any help would be greatly appreciated. > > > > > > 2012/2/9 Dodger > > Moreover even if he changes the character set so it displays right in > his viewer or editor, if that file is supposed to be used by someone else > in a different environment that may expect a different charset it won't > work. > > > > Perl can't help that. About the only way around it is using some format > like XML in which the character set can be explicitly specified. > > > > Sent from my iPhone > > > > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > > > > > exactly. > > > It's how you interpret it, as long as it is the right character. > > > > > > Francisco > > > > > > > > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > > > > > >> It seems to me the problem isn't printing any given character into a > file but, rather, whatever is being used to display the file not rendering > the right character. > > >> > > >> > > >> Sent from my iPhone > > >> > > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > > >> > > >>> you need to check your encoding to make sure that they match, and if > they don't set them properly. > > >>> > > >>> LANG="en_US.UTF-8" > > >>> > > >>> or any other UNICODE-compatible encoding. > > >>> > > >>> It is generally a bad idea to rely on it because it if clients don't > understand UNICODE they will see whatever character correspond to their > table? and believe me, it's even worse when the client doesn't support > multi-byte characters (in general). > > >>> > > >>> Francisco > > >>> > > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > > >>> > > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. > However, it only works on my Ununtu Machines that are running Xwindows. > When I try it on a Centos machines in console mode it prints the circled > "r" for registered trademark. Would anyone know why this is and how to get > the TM to print on a Centos machine? > > >>>> > > >>>> > > >>>> > > >>>> 2012/2/8 Francisco Obispo > > >>>> Actually in UTF-8 its: 8482 > > >>>> > > >>>> > > >>>> perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (8482)' > > >>>> > > >>>> > > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > > >>>> > > >>>>> I was hoping it would show up in the table. > > >>>>> > > >>>>> > > >>>>> > > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > > >>>>> > > >>>>>> I don't know whether it is or not. I was hoping it was because I > have to find a way to print it. > > >>>>>> > > >>>>>> 2012/2/8 Jeff Bragg > > >>>>>> Is that actually in the ASCII set? I see (in the output from a > for loop printing the characters for ordinals 10 - 255) the circled 'r' > (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > > >>>>>> > > >>>>>> 2012/2/8 Richard Reina > > >>>>>> I am needing to print the TM symbol for a trademark into a > regular ascii text file and having no luck doing so. Does anyone know how? > > >>>>>> > > >>>>>> Thanks for any help. > > >>>>>> > > >>>>>> _______________________________________________ > > >>>>>> SanFrancisco-pm mailing list > > >>>>>> SanFrancisco-pm at pm.org > > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> _______________________________________________ > > >>>>>> SanFrancisco-pm mailing list > > >>>>>> SanFrancisco-pm at pm.org > > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>>> > > >>>>> _______________________________________________ > > >>>>> SanFrancisco-pm mailing list > > >>>>> SanFrancisco-pm at pm.org > > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>> > > >>>> > > >>> > > >>> _______________________________________________ > > >>> SanFrancisco-pm mailing list > > >>> SanFrancisco-pm at pm.org > > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fobispo at isc.org Thu Feb 9 10:24:31 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 13:24:31 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: use Encode; Then: encode_utf8 Remember to set the character set Francisco On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: > I tried but when I do: > > Data => encode("utf8", $body), > > I get: > > Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. > > 2012/2/9 Francisco Obispo > Ah!, > well, just make sure you set your quoted-printable and UTF-8, you might want to read: > > http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ > > regards, > > > > > On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: > > > Thanks for the replies. I think we're getting down to the crux of the issue. Ultimately, what has to happen is that I have to get the ? into text emails that our sent out by a script using mime::lite. This is proving to be daunting for me any help would be greatly appreciated. > > > > > > 2012/2/9 Dodger > > Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. > > > > Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. > > > > Sent from my iPhone > > > > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > > > > > exactly. > > > It's how you interpret it, as long as it is the right character. > > > > > > Francisco > > > > > > > > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > > > > > >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. > > >> > > >> > > >> Sent from my iPhone > > >> > > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: > > >> > > >>> you need to check your encoding to make sure that they match, and if they don't set them properly. > > >>> > > >>> LANG="en_US.UTF-8" > > >>> > > >>> or any other UNICODE-compatible encoding. > > >>> > > >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). > > >>> > > >>> Francisco > > >>> > > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > > >>> > > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? > > >>>> > > >>>> > > >>>> > > >>>> 2012/2/8 Francisco Obispo > > >>>> Actually in UTF-8 its: 8482 > > >>>> > > >>>> > > >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' > > >>>> > > >>>> > > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > > >>>> > > >>>>> I was hoping it would show up in the table. > > >>>>> > > >>>>> > > >>>>> > > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > > >>>>> > > >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. > > >>>>>> > > >>>>>> 2012/2/8 Jeff Bragg > > >>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > > >>>>>> > > >>>>>> 2012/2/8 Richard Reina > > >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? > > >>>>>> > > >>>>>> Thanks for any help. > > >>>>>> > > >>>>>> _______________________________________________ > > >>>>>> SanFrancisco-pm mailing list > > >>>>>> SanFrancisco-pm at pm.org > > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> _______________________________________________ > > >>>>>> SanFrancisco-pm mailing list > > >>>>>> SanFrancisco-pm at pm.org > > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>>> > > >>>>> _______________________________________________ > > >>>>> SanFrancisco-pm mailing list > > >>>>> SanFrancisco-pm at pm.org > > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > >>>> > > >>>> > > >>> > > >>> _______________________________________________ > > >>> SanFrancisco-pm mailing list > > >>> SanFrancisco-pm at pm.org > > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatorreina at gmail.com Thu Feb 9 11:39:24 2012 From: gatorreina at gmail.com (Richard Reina) Date: Thu, 9 Feb 2012 13:39:24 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: I can' find any good documentation for this. Here is my code can you tell me what I am doing wrong? use strict; use MIME::Lite; use Encode; my $body = ' TEST TM ?'; my $msg = MIME::Lite->new( From =>'ar at rushlogistics.com', To =>'richard at rushlogistics.com, loads at rushlogistics.com', Cc =>'gatorreina at gmail.com, loads at rushlogistics.com', Subject =>'Test TM mark', Data => encode_utf8("utf8", $body), #Type =>'multipart/mixed'; ); 2012/2/9 Francisco Obispo > use Encode; > > Then: > > encode_utf8 > > Remember to set the character set > > Francisco > > On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: > > I tried but when I do: > > Data => encode("utf8", $body), > > I get: > > Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. > > 2012/2/9 Francisco Obispo > >> Ah!, >> well, just make sure you set your quoted-printable and UTF-8, you might >> want to read: >> >> >> http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ >> >> regards, >> >> >> >> >> On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: >> >> > Thanks for the replies. I think we're getting down to the crux of the >> issue. Ultimately, what has to happen is that I have to get the ? into >> text emails that our sent out by a script using mime::lite. This is >> proving to be daunting for me any help would be greatly appreciated. >> > >> > >> > 2012/2/9 Dodger >> > Moreover even if he changes the character set so it displays right in >> his viewer or editor, if that file is supposed to be used by someone else >> in a different environment that may expect a different charset it won't >> work. >> > >> > Perl can't help that. About the only way around it is using some format >> like XML in which the character set can be explicitly specified. >> > >> > Sent from my iPhone >> > >> > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: >> > >> > > exactly. >> > > It's how you interpret it, as long as it is the right character. >> > > >> > > Francisco >> > > >> > > >> > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: >> > > >> > >> It seems to me the problem isn't printing any given character into a >> file but, rather, whatever is being used to display the file not rendering >> the right character. >> > >> >> > >> >> > >> Sent from my iPhone >> > >> >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >> > >> >> > >>> you need to check your encoding to make sure that they match, and >> if they don't set them properly. >> > >>> >> > >>> LANG="en_US.UTF-8" >> > >>> >> > >>> or any other UNICODE-compatible encoding. >> > >>> >> > >>> It is generally a bad idea to rely on it because it if clients >> don't understand UNICODE they will see whatever character correspond to >> their table? and believe me, it's even worse when the client doesn't >> support multi-byte characters (in general). >> > >>> >> > >>> Francisco >> > >>> >> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >> > >>> >> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. >> However, it only works on my Ununtu Machines that are running Xwindows. >> When I try it on a Centos machines in console mode it prints the circled >> "r" for registered trademark. Would anyone know why this is and how to get >> the TM to print on a Centos machine? >> > >>>> >> > >>>> >> > >>>> >> > >>>> 2012/2/8 Francisco Obispo >> > >>>> Actually in UTF-8 its: 8482 >> > >>>> >> > >>>> >> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: >> %s\n},$_,encode_utf8(chr($_)))} (8482)' >> > >>>> >> > >>>> >> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >> > >>>> >> > >>>>> I was hoping it would show up in the table. >> > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >> > >>>>> >> > >>>>>> I don't know whether it is or not. I was hoping it was because I >> have to find a way to print it. >> > >>>>>> >> > >>>>>> 2012/2/8 Jeff Bragg >> > >>>>>> Is that actually in the ASCII set? I see (in the output from a >> for loop printing the characters for ordinals 10 - 255) the circled 'r' >> (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >> > >>>>>> >> > >>>>>> 2012/2/8 Richard Reina >> > >>>>>> I am needing to print the TM symbol for a trademark into a >> regular ascii text file and having no luck doing so. Does anyone know how? >> > >>>>>> >> > >>>>>> Thanks for any help. >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>> >> > >>>>> _______________________________________________ >> > >>>>> SanFrancisco-pm mailing list >> > >>>>> SanFrancisco-pm at pm.org >> > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>> >> > >>>> >> > >>> >> > >>> _______________________________________________ >> > >>> SanFrancisco-pm mailing list >> > >>> SanFrancisco-pm at pm.org >> > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > > >> > >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Makepeace at realprogrammers.com Thu Feb 9 11:56:24 2012 From: Paul.Makepeace at realprogrammers.com (Paul Makepeace) Date: Thu, 9 Feb 2012 11:56:24 -0800 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: If you have actual UTF-8 in your source code, use utf8; http://perldoc.perl.org/utf8.html 2012/2/9 Richard Reina : > I can' find any good documentation for this.? Here is my code can you tell > me what I am doing wrong? > > use strict; > use MIME::Lite; > use Encode; > > my $body = ' TEST TM ?'; > > my $msg = MIME::Lite->new( > ??????? From???? =>'ar at rushlogistics.com', > ??????? To?????? =>'richard at rushlogistics.com, loads at rushlogistics.com', > ??????? Cc?????? =>'gatorreina at gmail.com, loads at rushlogistics.com', > ??????? Subject? =>'Test TM mark', > ???????? Data => encode_utf8("utf8", $body), > ??????? #Type???? =>'multipart/mixed'; > ????????????????? ); > > > > > 2012/2/9 Francisco Obispo >> >> use Encode; >> >> Then: >> >> encode_utf8 >> >> Remember to set the character set >> >> Francisco >> >> On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: >> >> I tried but when I do: >> >> ? Data => encode("utf8", $body), >> >> I get: >> >> Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. >> >> 2012/2/9 Francisco Obispo >>> >>> Ah!, >>> well, just make sure you set your quoted-printable and UTF-8, you might >>> want to read: >>> >>> >>> http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ >>> >>> regards, >>> >>> >>> >>> >>> On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: >>> >>> > Thanks for the replies. ?I think we're getting down to the crux of the >>> > issue. ?Ultimately, what has to happen is that I have to get the ? into text >>> > emails that our sent out by a script using mime::lite. ?This is proving to >>> > be daunting for me any help would be greatly appreciated. >>> > >>> > >>> > 2012/2/9 Dodger >>> > Moreover even if he changes the character set so it displays right in >>> > his viewer or editor, if that file is supposed to be used by someone else in >>> > a different environment that may expect a different charset it won't work. >>> > >>> > Perl can't help that. About the only way around it is using some format >>> > like XML in which the character set can be explicitly specified. >>> > >>> > Sent from my iPhone >>> > >>> > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: >>> > >>> > > exactly. >>> > > It's how you interpret it, as long as it is the right character. >>> > > >>> > > Francisco >>> > > >>> > > >>> > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: >>> > > >>> > >> It seems to me the problem isn't printing any given character into a >>> > >> file but, rather, whatever is being used to display the file not rendering >>> > >> the right character. >>> > >> >>> > >> >>> > >> Sent from my iPhone >>> > >> >>> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >>> > >> >>> > >>> you need to check your encoding to make sure that they match, and >>> > >>> if they don't set them properly. >>> > >>> >>> > >>> LANG="en_US.UTF-8" >>> > >>> >>> > >>> or any other UNICODE-compatible encoding. >>> > >>> >>> > >>> It is generally a bad idea to rely on it because it if clients >>> > >>> don't understand UNICODE they will see whatever character correspond to >>> > >>> their table? and believe me, it's even worse when the client doesn't support >>> > >>> multi-byte characters (in general). >>> > >>> >>> > >>> Francisco >>> > >>> >>> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >>> > >>> >>> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. >>> > >>>> ?However, it only works on my Ununtu Machines that are running Xwindows. >>> > >>>> ?When I try it on a Centos machines in console mode it prints the circled >>> > >>>> "r" for registered trademark. ?Would anyone know why this is and how to get >>> > >>>> the TM to print on a Centos machine? >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> 2012/2/8 Francisco Obispo >>> > >>>> Actually in UTF-8 its: 8482 >>> > >>>> >>> > >>>> >>> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: >>> > >>>> %s\n},$_,encode_utf8(chr($_)))} (8482)' >>> > >>>> >>> > >>>> >>> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >>> > >>>> >>> > >>>>> I was hoping it would show up in the table. >>> > >>>>> >>> > >>>>> >>> > >>>>> >>> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >>> > >>>>> >>> > >>>>>> I don't know whether it is or not. I was hoping it was because I >>> > >>>>>> have to find a way to print it. >>> > >>>>>> >>> > >>>>>> 2012/2/8 Jeff Bragg >>> > >>>>>> Is that actually in the ASCII set? ?I see (in the output from a >>> > >>>>>> for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord >>> > >>>>>> 174) and the copyright symbol (ord 169), but no trademark symbol. >>> > >>>>>> >>> > >>>>>> 2012/2/8 Richard Reina >>> > >>>>>> I am needing to print the TM symbol for a trademark into a >>> > >>>>>> regular ascii text file and having no luck doing so. ?Does anyone know how? >>> > >>>>>> >>> > >>>>>> Thanks for any help. >>> > >>>>>> >>> > >>>>>> _______________________________________________ >>> > >>>>>> SanFrancisco-pm mailing list >>> > >>>>>> SanFrancisco-pm at pm.org >>> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> > >>>>>> >>> > >>>>>> >>> > >>>>>> >>> > >>>>>> _______________________________________________ >>> > >>>>>> SanFrancisco-pm mailing list >>> > >>>>>> SanFrancisco-pm at pm.org >>> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> > >>>>> >>> > >>>>> _______________________________________________ >>> > >>>>> SanFrancisco-pm mailing list >>> > >>>>> SanFrancisco-pm at pm.org >>> > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> > >>>> >>> > >>>> >>> > >>> >>> > >>> _______________________________________________ >>> > >>> SanFrancisco-pm mailing list >>> > >>> SanFrancisco-pm at pm.org >>> > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >>> > > >>> > >>> >> > > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > From fobispo at isc.org Thu Feb 9 12:09:47 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 15:09:47 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: <791BF92B-F4EE-4976-8113-B6C894DA1876@isc.org> perl already uses utf-8 for its code, so there's no need for 'use utf8;' so the problem is, since you're not generating the character through the chr() call, you are double-encoding the $body.. just remove the encode_utf8() call and you should be ok. On Feb 9, 2012, at 2:39 PM, Richard Reina wrote: > I can' find any good documentation for this. Here is my code can you tell me what I am doing wrong? > > use strict; > use MIME::Lite; > use Encode; > > my $body = ' TEST TM ?'; > > my $msg = MIME::Lite->new( > From =>'ar at rushlogistics.com', > To =>'richard at rushlogistics.com, loads at rushlogistics.com', > Cc =>'gatorreina at gmail.com, loads at rushlogistics.com', > Subject =>'Test TM mark', > Data => encode_utf8("utf8", $body), > #Type =>'multipart/mixed'; > ); > > > > 2012/2/9 Francisco Obispo > use Encode; > > Then: > > encode_utf8 > > Remember to set the character set > > Francisco > > On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: > >> I tried but when I do: >> >> Data => encode("utf8", $body), >> >> I get: >> >> Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. >> >> 2012/2/9 Francisco Obispo >> Ah!, >> well, just make sure you set your quoted-printable and UTF-8, you might want to read: >> >> http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ >> >> regards, >> >> >> >> >> On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: >> >> > Thanks for the replies. I think we're getting down to the crux of the issue. Ultimately, what has to happen is that I have to get the ? into text emails that our sent out by a script using mime::lite. This is proving to be daunting for me any help would be greatly appreciated. >> > >> > >> > 2012/2/9 Dodger >> > Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. >> > >> > Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. >> > >> > Sent from my iPhone >> > >> > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: >> > >> > > exactly. >> > > It's how you interpret it, as long as it is the right character. >> > > >> > > Francisco >> > > >> > > >> > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: >> > > >> > >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. >> > >> >> > >> >> > >> Sent from my iPhone >> > >> >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >> > >> >> > >>> you need to check your encoding to make sure that they match, and if they don't set them properly. >> > >>> >> > >>> LANG="en_US.UTF-8" >> > >>> >> > >>> or any other UNICODE-compatible encoding. >> > >>> >> > >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). >> > >>> >> > >>> Francisco >> > >>> >> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >> > >>> >> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >> > >>>> >> > >>>> >> > >>>> >> > >>>> 2012/2/8 Francisco Obispo >> > >>>> Actually in UTF-8 its: 8482 >> > >>>> >> > >>>> >> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >> > >>>> >> > >>>> >> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >> > >>>> >> > >>>>> I was hoping it would show up in the table. >> > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >> > >>>>> >> > >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >> > >>>>>> >> > >>>>>> 2012/2/8 Jeff Bragg >> > >>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >> > >>>>>> >> > >>>>>> 2012/2/8 Richard Reina >> > >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >> > >>>>>> >> > >>>>>> Thanks for any help. >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>> >> > >>>>> _______________________________________________ >> > >>>>> SanFrancisco-pm mailing list >> > >>>>> SanFrancisco-pm at pm.org >> > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>> >> > >>>> >> > >>> >> > >>> _______________________________________________ >> > >>> SanFrancisco-pm mailing list >> > >>> SanFrancisco-pm at pm.org >> > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > > >> > >> >> > From fobispo at isc.org Thu Feb 9 12:10:35 2012 From: fobispo at isc.org (Francisco Obispo) Date: Thu, 9 Feb 2012 15:10:35 -0500 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> Message-ID: <5FDE384C-6871-4B20-8F43-1FA69B88C8DF@isc.org> One more thing. Add the attribute charset like this: my $msg = MIME::Lite->new( From => 'francisco at obispo.com.ve', To => 'fobispo at isc.org', #Cc => 'gatorreina at gmail.com, loads at rushlogistics.com', Subject => 'Test TM mark', Data => $body, Type =>'text/plain' ); $msg->attr('content-type.charset' => 'UTF-8'); On Feb 9, 2012, at 2:39 PM, Richard Reina wrote: > I can' find any good documentation for this. Here is my code can you tell me what I am doing wrong? > > use strict; > use MIME::Lite; > use Encode; > > my $body = ' TEST TM ?'; > > my $msg = MIME::Lite->new( > From =>'ar at rushlogistics.com', > To =>'richard at rushlogistics.com, loads at rushlogistics.com', > Cc =>'gatorreina at gmail.com, loads at rushlogistics.com', > Subject =>'Test TM mark', > Data => encode_utf8("utf8", $body), > #Type =>'multipart/mixed'; > ); > > > > 2012/2/9 Francisco Obispo > use Encode; > > Then: > > encode_utf8 > > Remember to set the character set > > Francisco > > On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: > >> I tried but when I do: >> >> Data => encode("utf8", $body), >> >> I get: >> >> Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. >> >> 2012/2/9 Francisco Obispo >> Ah!, >> well, just make sure you set your quoted-printable and UTF-8, you might want to read: >> >> http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ >> >> regards, >> >> >> >> >> On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: >> >> > Thanks for the replies. I think we're getting down to the crux of the issue. Ultimately, what has to happen is that I have to get the ? into text emails that our sent out by a script using mime::lite. This is proving to be daunting for me any help would be greatly appreciated. >> > >> > >> > 2012/2/9 Dodger >> > Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work. >> > >> > Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified. >> > >> > Sent from my iPhone >> > >> > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: >> > >> > > exactly. >> > > It's how you interpret it, as long as it is the right character. >> > > >> > > Francisco >> > > >> > > >> > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: >> > > >> > >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character. >> > >> >> > >> >> > >> Sent from my iPhone >> > >> >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo wrote: >> > >> >> > >>> you need to check your encoding to make sure that they match, and if they don't set them properly. >> > >>> >> > >>> LANG="en_US.UTF-8" >> > >>> >> > >>> or any other UNICODE-compatible encoding. >> > >>> >> > >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table? and believe me, it's even worse when the client doesn't support multi-byte characters (in general). >> > >>> >> > >>> Francisco >> > >>> >> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: >> > >>> >> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. However, it only works on my Ununtu Machines that are running Xwindows. When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark. Would anyone know why this is and how to get the TM to print on a Centos machine? >> > >>>> >> > >>>> >> > >>>> >> > >>>> 2012/2/8 Francisco Obispo >> > >>>> Actually in UTF-8 its: 8482 >> > >>>> >> > >>>> >> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)' >> > >>>> >> > >>>> >> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: >> > >>>> >> > >>>>> I was hoping it would show up in the table. >> > >>>>> >> > >>>>> >> > >>>>> >> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: >> > >>>>> >> > >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it. >> > >>>>>> >> > >>>>>> 2012/2/8 Jeff Bragg >> > >>>>>> Is that actually in the ASCII set? I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol. >> > >>>>>> >> > >>>>>> 2012/2/8 Richard Reina >> > >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so. Does anyone know how? >> > >>>>>> >> > >>>>>> Thanks for any help. >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>>> >> > >>>>>> >> > >>>>>> >> > >>>>>> _______________________________________________ >> > >>>>>> SanFrancisco-pm mailing list >> > >>>>>> SanFrancisco-pm at pm.org >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>>> >> > >>>>> _______________________________________________ >> > >>>>> SanFrancisco-pm mailing list >> > >>>>> SanFrancisco-pm at pm.org >> > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > >>>> >> > >>>> >> > >>> >> > >>> _______________________________________________ >> > >>> SanFrancisco-pm mailing list >> > >>> SanFrancisco-pm at pm.org >> > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> > > >> > >> >> > From gatorreina at gmail.com Thu Feb 9 12:42:15 2012 From: gatorreina at gmail.com (Richard Reina) Date: Thu, 9 Feb 2012 14:42:15 -0600 Subject: [sf-perl] Printing TM trademark symbol in perl In-Reply-To: <5FDE384C-6871-4B20-8F43-1FA69B88C8DF@isc.org> References: <296E19E8-F993-4C38-865F-89833D6BE102@isc.org> <99AB3486-88C4-4399-ABCD-3C2C02CCA0AC@gmail.com> <718C67BD-51E5-484A-A1F1-755067F68B8A@isc.org> <0010C9EF-5A21-4601-989A-7F0145849109@gmail.com> <43C54A3A-09DB-463B-A29E-BD44FA7C9BC7@isc.org> <5FDE384C-6871-4B20-8F43-1FA69B88C8DF@isc.org> Message-ID: $msg->attr('content-type.charset' => 'UTF-8'); Did the trick! Now it works without a hitch. Thank you so much for all the help. My long day of frustration is finally over. Thank you again! Have a great day!!! 2012/2/9 Francisco Obispo > One more thing. > > Add the attribute charset like this: > > > my $msg = MIME::Lite->new( > From => 'francisco at obispo.com.ve', > To => 'fobispo at isc.org', > #Cc => 'gatorreina at gmail.com, loads at rushlogistics.com', > Subject => 'Test TM mark', > Data => $body, > Type =>'text/plain' > > ); > > > $msg->attr('content-type.charset' => 'UTF-8'); > > > > On Feb 9, 2012, at 2:39 PM, Richard Reina wrote: > > > I can' find any good documentation for this. Here is my code can you > tell me what I am doing wrong? > > > > use strict; > > use MIME::Lite; > > use Encode; > > > > my $body = ' TEST TM ?'; > > > > my $msg = MIME::Lite->new( > > From =>'ar at rushlogistics.com', > > To =>'richard at rushlogistics.com, loads at rushlogistics.com', > > Cc =>'gatorreina at gmail.com, loads at rushlogistics.com', > > Subject =>'Test TM mark', > > Data => encode_utf8("utf8", $body), > > #Type =>'multipart/mixed'; > > ); > > > > > > > > 2012/2/9 Francisco Obispo > > use Encode; > > > > Then: > > > > encode_utf8 > > > > Remember to set the character set > > > > Francisco > > > > On Feb 9, 2012, at 1:08 PM, Richard Reina wrote: > > > >> I tried but when I do: > >> > >> Data => encode("utf8", $body), > >> > >> I get: > >> > >> Undefined subroutine &main::encode called at test_MIME_mail.pl line 8. > >> > >> 2012/2/9 Francisco Obispo > >> Ah!, > >> well, just make sure you set your quoted-printable and UTF-8, you might > want to read: > >> > >> > http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/ > >> > >> regards, > >> > >> > >> > >> > >> On Feb 9, 2012, at 12:50 PM, Richard Reina wrote: > >> > >> > Thanks for the replies. I think we're getting down to the crux of > the issue. Ultimately, what has to happen is that I have to get the ? into > text emails that our sent out by a script using mime::lite. This is > proving to be daunting for me any help would be greatly appreciated. > >> > > >> > > >> > 2012/2/9 Dodger > >> > Moreover even if he changes the character set so it displays right in > his viewer or editor, if that file is supposed to be used by someone else > in a different environment that may expect a different charset it won't > work. > >> > > >> > Perl can't help that. About the only way around it is using some > format like XML in which the character set can be explicitly specified. > >> > > >> > Sent from my iPhone > >> > > >> > On 09/02/2012, at 9:26 AM, Francisco Obispo wrote: > >> > > >> > > exactly. > >> > > It's how you interpret it, as long as it is the right character. > >> > > > >> > > Francisco > >> > > > >> > > > >> > > On Feb 9, 2012, at 12:22 PM, Dodger wrote: > >> > > > >> > >> It seems to me the problem isn't printing any given character into > a file but, rather, whatever is being used to display the file not > rendering the right character. > >> > >> > >> > >> > >> > >> Sent from my iPhone > >> > >> > >> > >> On 09/02/2012, at 8:35 AM, Francisco Obispo > wrote: > >> > >> > >> > >>> you need to check your encoding to make sure that they match, and > if they don't set them properly. > >> > >>> > >> > >>> LANG="en_US.UTF-8" > >> > >>> > >> > >>> or any other UNICODE-compatible encoding. > >> > >>> > >> > >>> It is generally a bad idea to rely on it because it if clients > don't understand UNICODE they will see whatever character correspond to > their table? and believe me, it's even worse when the client doesn't > support multi-byte characters (in general). > >> > >>> > >> > >>> Francisco > >> > >>> > >> > >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote: > >> > >>> > >> > >>>> Hi Franisco, Your suggestion as well as print chr('8482') works. > However, it only works on my Ununtu Machines that are running Xwindows. > When I try it on a Centos machines in console mode it prints the circled > "r" for registered trademark. Would anyone know why this is and how to get > the TM to print on a Centos machine? > >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> 2012/2/8 Francisco Obispo > >> > >>>> Actually in UTF-8 its: 8482 > >> > >>>> > >> > >>>> > >> > >>>> perl -e 'use Encode; map { printf(qq{char %d is: > %s\n},$_,encode_utf8(chr($_)))} (8482)' > >> > >>>> > >> > >>>> > >> > >>>> http://www.fileformat.info/info/unicode/char/2122/index.htm > >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote: > >> > >>>> > >> > >>>>> I was hoping it would show up in the table. > >> > >>>>> > >> > >>>>> > >> > >>>>> > >> > >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote: > >> > >>>>> > >> > >>>>>> I don't know whether it is or not. I was hoping it was because > I have to find a way to print it. > >> > >>>>>> > >> > >>>>>> 2012/2/8 Jeff Bragg > >> > >>>>>> Is that actually in the ASCII set? I see (in the output from > a for loop printing the characters for ordinals 10 - 255) the circled 'r' > (ord 174) and the copyright symbol (ord 169), but no trademark symbol. > >> > >>>>>> > >> > >>>>>> 2012/2/8 Richard Reina > >> > >>>>>> I am needing to print the TM symbol for a trademark into a > regular ascii text file and having no luck doing so. Does anyone know how? > >> > >>>>>> > >> > >>>>>> Thanks for any help. > >> > >>>>>> > >> > >>>>>> _______________________________________________ > >> > >>>>>> SanFrancisco-pm mailing list > >> > >>>>>> SanFrancisco-pm at pm.org > >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >>>>>> > >> > >>>>>> > >> > >>>>>> > >> > >>>>>> _______________________________________________ > >> > >>>>>> SanFrancisco-pm mailing list > >> > >>>>>> SanFrancisco-pm at pm.org > >> > >>>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >>>>> > >> > >>>>> _______________________________________________ > >> > >>>>> SanFrancisco-pm mailing list > >> > >>>>> SanFrancisco-pm at pm.org > >> > >>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > >>>> > >> > >>>> > >> > >>> > >> > >>> _______________________________________________ > >> > >>> SanFrancisco-pm mailing list > >> > >>> SanFrancisco-pm at pm.org > >> > >>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > >> > > > >> > > >> > >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at imaginative-software.com Fri Feb 10 12:04:35 2012 From: jeff at imaginative-software.com (Jeffrey Thalhammer) Date: Fri, 10 Feb 2012 12:04:35 -0800 Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations Message-ID: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> Hi everyone- My client is trying to get a grip on their software. It is a mid-sized organization and they have over 100 different home-grown software "projects" that all live in one Subversion repository. There are various interdependencies among the projects. For example project A may depend on a database provided by project B. Or project C may depend on a web service provided by project D. The fundamental question they want answered is: When a new version of a project is released, whom do I need to notify? So basically they need to track project owners and dependencies between projects. They have started building a home-grown solution to do this, but it is quickly spiraling out of control. I figure every large enterprise has this exact same problem, so there has to be some off-the-shelf solutions out there. I believe the general term for this (and related things) is Software Asset Management. So my questions for all of you are: Have you solved this kind of problem in your organization? How did you solve it? Did you use an off-the-shelf solution (either in part or in full)? If so, which one and would you recommend it? -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From quinn at pgexperts.com Fri Feb 10 12:44:05 2012 From: quinn at pgexperts.com (Quinn Weaver) Date: Fri, 10 Feb 2012 12:44:05 -0800 Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> Message-ID: <894149AB-CEB1-4B56-976B-B45A8F766127@pgexperts.com> On Feb 10, 2012, at 12:04 PM, Jeffrey Thalhammer wrote: > Hi everyone- > > My client is trying to get a grip on their software. It is a mid-sized organization and they have over 100 different home-grown software "projects" that all live in one Subversion repository. There are various interdependencies among the projects. For example project A may depend on a database provided by project B. Or project C may depend on a web service provided by project D. The fundamental question they want answered is: > > When a new version of a project is released, whom do I need to notify? > > So basically they need to track project owners and dependencies between projects. I don't know a complete solution to the problem you pose, but I do know a hack that might help. If you have to homebrew, are you thinking of using your distro's packaging system? Some packaging systems will allow you to write post-install hooks[1]. You could write one that mails a list of stakeholders whenever a new version of a package is installed (in, say, QA), it mails a list of stakeholders. That might or might not work, depending on your client's procedures around installing things in different environments. If you need to get fancy (and it sounds like you might), you could store each package's list of stakeholders in a database and write a web UI for it, rather than hard-coding it into the RPM. Would that work, or is that a mismatch for your client's way of doing things? Hope this helps, [1] In the RPM world, this is the %post hook. There are other hooks as well; see this article ( http://www.ibm.com/developerworks/library/l-rpm2/ ), plus the latest official docs for writing RPMs. -- Quinn Weaver PostgreSQL Experts, Inc. http://pgexperts.com/ 1-888-743-9778 (my extension: 510) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at imaginative-software.com Fri Feb 10 13:04:24 2012 From: jeff at imaginative-software.com (Jeffrey Thalhammer) Date: Fri, 10 Feb 2012 13:04:24 -0800 Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: <894149AB-CEB1-4B56-976B-B45A8F766127@pgexperts.com> References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> <894149AB-CEB1-4B56-976B-B45A8F766127@pgexperts.com> Message-ID: On Feb 10, 2012, at 12:44 PM, Quinn Weaver wrote: > If you have to homebrew, are you thinking of using your distro's packaging system? Some packaging systems will allow you to write post-install hooks[1]. You could write one that mails a list of stakeholders whenever a new version of a package is installed (in, say, QA), it mails a list of stakeholders. That might or might not work, depending on your client's procedures around installing things in different environments. Unfortunately, the software is not deployed with any packaging system. Individual teams just throw files into production at will. Sigh. > If you need to get fancy (and it sounds like you might), you could store each package's list of stakeholders in a database and write a web UI for it, rather than hard-coding it into the RPM. That is basically what they have started to build. Each project in Subversion has a magical XML file that declares who owns it and what it depends on. Then they've build a system that periodically collects this data into a DB and a web UI for browsing it. From what I've seen, the system generally works but few projects participate (however, that is a management problem). For reasons unclear to me, folks are re-examining the requirements and implementation. But the discussions are often unproductive. I'd like to propose that they just buy something and be done with it. So my task is to go find that something. -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From david_v_wright at yahoo.com Fri Feb 10 13:20:09 2012 From: david_v_wright at yahoo.com (david wright) Date: Fri, 10 Feb 2012 13:20:09 -0800 (PST) Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> <894149AB-CEB1-4B56-976B-B45A8F766127@pgexperts.com> Message-ID: <1328908809.12721.YahooMailNeo@web31816.mail.mud.yahoo.com> RT (http://www.bestpractical.com/rt/) may work for what you need, it's free and written in Perl :) with RT you can appoint a person for each project and keep track of who needs to be informed when changes (even if outside the company) ? you can also keep track of relationships between projects (i.e. dependencies). it's been quite a while since I've used it but it came to mind. >________________________________ > From: Jeffrey Thalhammer >To: Quinn Weaver >Cc: sfpug at sf.pm.org >Sent: Friday, February 10, 2012 1:04 PM >Subject: Re: [sf-perl] Looking For Software Asset Management Tool Recommendations > > > > >On Feb 10, 2012, at 12:44 PM, Quinn Weaver wrote: > >If you have to homebrew, are you thinking of using your distro's packaging system??Some packaging systems will allow you to write post-install hooks[1]. You could write one that mails a list of stakeholders whenever a new version of a package is installed (in, say, QA), it mails a list of stakeholders. That might or might not work, depending on your client's procedures around installing things in different environments. > > >Unfortunately, the software is not deployed with any packaging system. ?Individual teams just throw files into production at will. ?Sigh. > >If you need to get fancy (and it sounds like you might), you could store each package's list of stakeholders in a database and write a web UI for it, rather than hard-coding it into the RPM. > > >That is basically what they have started to build. ?Each project in Subversion has a magical XML file that declares who owns it and what it depends on. ?Then they've build a system that periodically collects this data into a DB and a web UI for browsing it. ?From what I've seen, the system generally works but few projects participate (however, that is a management problem). > > >For reasons unclear to me, folks are re-examining the requirements and implementation. But the discussions are often unproductive. ?I'd like to propose that they just buy something and be done with it. ?So my task is to go find that something. > > >-Jeff > >_______________________________________________ >SanFrancisco-pm mailing list >SanFrancisco-pm at pm.org >http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Fri Feb 10 13:22:10 2012 From: fred at redhotpenguin.com (Fred Moyer) Date: Fri, 10 Feb 2012 13:22:10 -0800 Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> Message-ID: > The fundamental question they want answered is:>> When a new version of a project is released, whom do I need to notify? The ASF has developed a fairly robust structure and set of processes for software development that may be worth examining to see if your organization is facing similar problems. JIRA is used for issue tracking on some projects, but like any piece of software there it has shortcomings, breaks as much as any other software does, and gets disparaged by the users on a daily basis. I'd suggest reading through the Apache website, if nothing else than to see how the organizational structure has evolved to manage several hundred projects which power a good chunk of the web - http://apache.org/ 2012/2/10 Jeffrey Thalhammer : > Hi everyone- > > My client is trying to get a grip on their software. ?It is a mid-sized > organization and they have over 100 different home-grown software "projects" > that all live in one Subversion repository. ? There are various > interdependencies among the projects. ?For example project A may depend on a > database provided by project B. ?Or project C may depend on a web service > provided by project D. ?The fundamental question they want answered is: > > When a new version of a project is released, whom do I need to notify? > > So basically they need to track project owners and dependencies between > projects. ?They have started building a home-grown solution to do this, but > it is quickly spiraling out of control. ?I figure every large enterprise has > this exact same problem, so there has to be some off-the-shelf solutions out > there. ?I believe the general term for this (and related things) is?Software > Asset Management. ?So my questions for all of you are: > > Have you solved this kind of problem in your organization??How did you solve > it? ?Did you?use an off-the-shelf solution (either in part or in full)? ?If > so, which one and would you recommend it? > > -Jeff > > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > From david_v_wright at yahoo.com Fri Feb 10 13:35:21 2012 From: david_v_wright at yahoo.com (david wright) Date: Fri, 10 Feb 2012 13:35:21 -0800 (PST) Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> Message-ID: <1328909721.60115.YahooMailNeo@web31801.mail.mud.yahoo.com> Yes, Maven for example: http://maven.apache.org/index.html >________________________________ > From: Fred Moyer >To: Jeffrey Thalhammer >Cc: sfpug at sf.pm.org >Sent: Friday, February 10, 2012 1:22 PM >Subject: Re: [sf-perl] Looking For Software Asset Management Tool Recommendations > >> The fundamental question they want answered is:>> When a new version of a project is released, whom do I need to notify? >The ASF has developed a fairly robust structure and set of processes >for software development that may be worth examining to see if your >organization is facing similar problems. JIRA is used for issue >tracking on some projects, but like any piece of software there it has >shortcomings, breaks as much as any other software does, and gets >disparaged by the users on a daily basis. > >I'd suggest reading through the Apache website, if nothing else than >to see how the organizational structure has evolved to manage several >hundred projects which power a good chunk of the web - >http://apache.org/ > >2012/2/10 Jeffrey Thalhammer : >> Hi everyone- >> >> My client is trying to get a grip on their software. ?It is a mid-sized >> organization and they have over 100 different home-grown software "projects" >> that all live in one Subversion repository. ? There are various >> interdependencies among the projects. ?For example project A may depend on a >> database provided by project B. ?Or project C may depend on a web service >> provided by project D. ?The fundamental question they want answered is: >> >> When a new version of a project is released, whom do I need to notify? >> >> So basically they need to track project owners and dependencies between >> projects. ?They have started building a home-grown solution to do this, but >> it is quickly spiraling out of control. ?I figure every large enterprise has >> this exact same problem, so there has to be some off-the-shelf solutions out >> there. ?I believe the general term for this (and related things) is?Software >> Asset Management. ?So my questions for all of you are: >> >> Have you solved this kind of problem in your organization??How did you solve >> it? ?Did you?use an off-the-shelf solution (either in part or in full)? ?If >> so, which one and would you recommend it? >> >> -Jeff >> >> _______________________________________________ >> SanFrancisco-pm mailing list >> SanFrancisco-pm at pm.org >> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm >> >_______________________________________________ >SanFrancisco-pm mailing list >SanFrancisco-pm at pm.org >http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at imaginative-software.com Fri Feb 10 14:42:07 2012 From: jeff at imaginative-software.com (Jeffrey Thalhammer) Date: Fri, 10 Feb 2012 14:42:07 -0800 Subject: [sf-perl] Looking For Software Asset Management Tool Recommendations In-Reply-To: References: <2F5A2B94-7BDA-42AA-83E7-96A7A6CD2E46@imaginative-software.com> Message-ID: <95A290FE-A51C-4164-B9AD-DF9D992CBDF3@imaginative-software.com> On Feb 10, 2012, at 1:22 PM, Fred Moyer wrote: > The ASF has developed a fairly robust structure and set of processes > for software development that may be worth examining to see if your > organization is facing similar problems. At first, I doubted that Apache would have much to offer. I know about Maven and Ivy, but this is a project management tool, not a library dependency thing. But then I found this in the ASF site: http://projects.apache.org/doap.html It sounds like DOAP is exactly what my client is doing -- collecting and organizing project metadata. And there are even some tools for aggregating and browsing DOAP files: http://code.google.com/p/simal/ Thanks for the great suggestion. I'll dig deeper and let you know if this pans out. -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From extasia at extasia.org Fri Feb 17 10:22:00 2012 From: extasia at extasia.org (David Alban) Date: Fri, 17 Feb 2012 10:22:00 -0800 Subject: [sf-perl] [OT] recommendations sought: website developer for small business Message-ID: greetings, an acquaintance of mine would like help developing a simple website for her business. can you recommend a person or a business with whom/which you have personally had good experience? thanks, david -- Live in a world of your own, but always welcome visitors. *** Rule of law is for the little people. http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 From el.dodgero at gmail.com Fri Feb 17 10:57:46 2012 From: el.dodgero at gmail.com (Dodger) Date: Fri, 17 Feb 2012 10:57:46 -0800 Subject: [sf-perl] [OT] recommendations sought: website developer for small business In-Reply-To: References: Message-ID: <57B888DA-4B53-48A6-A27A-D205FA426DEC@gmail.com> Me! Sent from my iPhone On 17/02/2012, at 10:22 AM, David Alban wrote: > greetings, > > an acquaintance of mine would like help developing a simple website > for her business. can you recommend a person or a business with > whom/which you have personally had good experience? > > thanks, > david > -- > Live in a world of your own, but always welcome visitors. > *** > Rule of law is for the little people. > http://www.amazon.com/Liberty-Justice-Some-Equality-Powerful/dp/0805092056 > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From fred at redhotpenguin.com Wed Feb 22 08:55:30 2012 From: fred at redhotpenguin.com (Fred Moyer) Date: Wed, 22 Feb 2012 08:55:30 -0800 Subject: [sf-perl] Fw: [meeting] Pinto; a new way to manage Perl based application dependencies In-Reply-To: References: Message-ID: A quick reminder, our next meeting is 6 days away on Tuesday at Mother Jones. Be there, or occupy another point in time and space. RSVP at http://www.meetup.com/San-Francisco-Perl-Mongers/events/51343902/ Forwarded message: > From: Fred Moyer > To: San Francisco Perl Mongers User Group > Date: Monday, February 6, 2012 8:12:33 PM > Subject: [meeting] Pinto; a new way to manage Perl based application dependencies > > We'll be at Mother Jones this February the 28th at 7pm for our first > official 2012 meeting. > > Pinto is a new module dependency manage system for Perl applications. > Version management for Perl modules can pose significant maintenance > costs in larger organizations where you have several layers of > application stacks, from developer to production. Pinto helps you > take control of the madness and lets you get back to writing code. > > Pinto is authored by Jeff Thalhammer, creator of widely acclaimed Perl::Critic. > > Pinto on CPAN - http://search.cpan.org/~thaljef/Pinto-0.030... > > THALJEF on CPAN - http://search.cpan.org/~thaljef/ > > > RSVP at http://www.meetup.com/San-Francisco-Perl-Mongers/events/51343902/ From swartz at pobox.com Thu Feb 23 10:19:44 2012 From: swartz at pobox.com (Jonathan Swartz) Date: Thu, 23 Feb 2012 10:19:44 -0800 Subject: [sf-perl] [job] Perl engineering manager at ChargeSmart/Verifone In-Reply-To: References: Message-ID: <7B5F370A-E55B-4508-B87E-A4EA41D57E32@pobox.com> ChargeSmart is a thriving and innovative payments company within Verifone (NYSE: PAY). We're seeking an engineering manager to lead a team of five technically strong and motivated Perl software engineers. Our Core team works on two products: * Bill Payments - on pace to process $250 million dollars of consumer payments in the coming year (http://billpay.chargesmart.com) * Direct - providing merchants a turnkey e-commerce solution for accepting credit card payments on their site (http://direct.chargesmart.com) Responsibilities: * Work with product manager to prioritize and define tasks * Make sure engineers are kept busy and happy * Contribute technically alongside the team * Set up agile processes for prioritization and software release * Provide constructive feedback and reviews * Recruit and hire new engineers Tools we use: * Modern OO Perl, Linux, Apache/mod_perl, mysql * Subversion (open to moving to git) * Trac for task management and wiki (open to other solutions) * Jenkins for task automation This is not a management-only job - we expect and need you to develop as well. Depending on your desires and our current needs you might spend 25 to 50% of your time on coding and related tasks. Our current office is in the financial district but we are moving soon to a nice new space near Montgomery St BART. ChargeSmart recently became part of the Verifone family, which gives us greater market opportunities and the resources to offer competitive benefits and salaries. Please reply with resume (text format is fine) and details about your technical management experience. Look forward to hearing from you! From doom at kzsu.stanford.edu Thu Feb 23 16:59:38 2012 From: doom at kzsu.stanford.edu (Joseph Brenner) Date: Thu, 23 Feb 2012 16:59:38 -0800 Subject: [sf-perl] The Fourth Camel arrives Message-ID: So, at long last the fourth edition of "Programming Perl" is "Released" (or so says this web page)... (though my pre-ordered copies still haven't been shipped): http://shop.oreilly.com/product/9780596004927.do There's a PDF version available, marked down to $20 at the moment. And if you're interested, don't forget to try the super-secret user's group code: DSUG. I really want to read the Unicode chapter... Tom Christiansen has been beating his head again this for quite some time now. He's also working on a new perl man page "perlunicook" (he's posted a few drafts to perl5-porters already). From jeff at imaginative-software.com Wed Feb 29 00:15:39 2012 From: jeff at imaginative-software.com (Jeffrey Thalhammer) Date: Wed, 29 Feb 2012 00:15:39 -0800 Subject: [sf-perl] Thanks for coming to the meeting Message-ID: Hi everyone- I just wanted to thank all of you who came out for the PM meeting tonight. I really enjoyed speaking with you, and I hope you found the presentation on Pinto informative. I'll let you know when I've posted the slides to Slideshare. I'll be presenting Pinto to LA.PM next month and again at YAPC in June. So if you have any feedback that would help me make the presentation better, I'd love hear from you. Lastly, if you see an opportunity for Pinto to help your team manage their dependencies, I'd be happy to provide you with some consulting services in that area. You can reach me via jeff at imaginative-software.com or 415-215-2834. Special thanks to Fred Moyer for organizing and Mother Jones for hosting too. Cheers! -Jeff From greg at blekko.com Wed Feb 29 10:41:06 2012 From: greg at blekko.com (Greg Lindahl) Date: Wed, 29 Feb 2012 10:41:06 -0800 Subject: [sf-perl] SVPerl tomorrow, MongoDB talk, 7pm Sunnyvale Message-ID: <20120229184106.GB22052@bx9.net> Sorry for the short notice! Lambert Lum will be talking about MongoDB, one of those newfangled NoSQL databases, and the Perl bindings thereof, 7pm at the Plug & Play Tech Center at 440 North Wolfe Road, Sunnyvale. http://www.meetup.com/SVPerl/events/50974832/ -- greg