From mdeazley at krystalmonolith.com Wed Dec 2 04:48:48 2009 From: mdeazley at krystalmonolith.com (Mark Deazley) Date: Wed, 02 Dec 2009 07:48:48 -0500 Subject: [Buffalo-pm] Meeting? Message-ID: <4B166230.7030000@krystalmonolith.com> Was there a PM meeting last night? I was wondering if there was a meeting last night, but after reviewing the emails yesterday afternoon I didn't see a firm location. Feeling gregarious, I visited the Hackerspace last night to meet the PHP group. They demoed the relatively simple process of putting up a PHP based Drupal site on top of Apache 2, literally 30 minutes from a bare Debian system to a working Drupal site. Maybe that could be a goal for a future PM meeting, i.e., do something similar using a bare Linux system and a Perl based CMS, then compare the results. I am going to join Hackerspace as a paying member. With my bandwidth limitations at home the $30 a month for 24x7 access is worth it. So far the only issue *may* be insufficient parking during he day. We'll see... MJD From eye at buffalo.edu Wed Dec 2 06:21:49 2009 From: eye at buffalo.edu (Eye, Kevin) Date: Wed, 2 Dec 2009 09:21:49 -0500 Subject: [Buffalo-pm] Meeting? In-Reply-To: <4B166230.7030000@krystalmonolith.com> Message-ID: I assume there was no meeting (or at least I wasn't there if there was). At the 11/23 gathering, I think we said we'd wait a bit and find a good regular date. I think we fell down at communicating that on the list. - Kevin On 12/2/09 7:48 AM, "Mark Deazley" wrote: > Was there a PM meeting last night? I was wondering if there was a > meeting last night, but after reviewing the emails yesterday afternoon I > didn't see a firm location. Feeling gregarious, I visited the > Hackerspace last night to meet the PHP group. They demoed the relatively > simple process of putting up a PHP based Drupal site on top of Apache 2, > literally 30 minutes from a bare Debian system to a working Drupal site. > Maybe that could be a goal for a future PM meeting, i.e., do something > similar using a bare Linux system and a Perl based CMS, then compare the > results. > > I am going to join Hackerspace as a paying member. With my bandwidth > limitations at home the $30 a month for 24x7 access is worth it. So far > the only issue *may* be insufficient parking during he day. We'll see... > > MJD > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm -- Kevin Eye Web Applications Developer University Communications University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye at buffalo.edu phone (716) 645-4579 From dmagnuszewski at yahoo.com Wed Dec 2 08:36:03 2009 From: dmagnuszewski at yahoo.com (Daniel Magnuszewski) Date: Wed, 2 Dec 2009 08:36:03 -0800 (PST) Subject: [Buffalo-pm] Meeting? In-Reply-To: References: Message-ID: <320743.31165.qm@web33305.mail.mud.yahoo.com> That's right Kevin. It seemed like a lot of people were going to be out this week, so we were just going to push the meeting back. I meant to send something out but got sidetracked with some other things. Mark, I like the suggestion and I was talking to another member about having a meetup with the Ruby, PHP, and any other groups around the area and have each group show how to do X with their language. For example: "How can I setup a REST service using $language?". -Dan ----- Original Message ---- From: "Eye, Kevin" To: Mark Deazley ; Buffalo Perl Mongers Sent: Wed, December 2, 2009 9:21:49 AM Subject: Re: [Buffalo-pm] Meeting? I assume there was no meeting (or at least I wasn't there if there was). At the 11/23 gathering, I think we said we'd wait a bit and find a good regular date. I think we fell down at communicating that on the list. - Kevin On 12/2/09 7:48 AM, "Mark Deazley" wrote: > Was there a PM meeting last night? I was wondering if there was a > meeting last night, but after reviewing the emails yesterday afternoon I > didn't see a firm location. Feeling gregarious, I visited the > Hackerspace last night to meet the PHP group. They demoed the relatively > simple process of putting up a PHP based Drupal site on top of Apache 2, > literally 30 minutes from a bare Debian system to a working Drupal site. > Maybe that could be a goal for a future PM meeting, i.e., do something > similar using a bare Linux system and a Perl based CMS, then compare the > results. > > I am going to join Hackerspace as a paying member. With my bandwidth > limitations at home the $30 a month for 24x7 access is worth it. So far > the only issue *may* be insufficient parking during he day. We'll see... > > MJD > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm -- Kevin Eye Web Applications Developer University Communications University at Buffalo 330 Crofts Hall Buffalo, NY 14260 eye at buffalo.edu phone (716) 645-4579 _______________________________________________ Buffalo Perl Mongers Homepage http://buffalo.pm.org Buffalo-pm mailing list Buffalo-pm at pm.org http://mail.pm.org/mailman/listinfo/buffalo-pm From jkeen at verizon.net Wed Dec 2 15:30:19 2009 From: jkeen at verizon.net (James E Keenan) Date: Wed, 02 Dec 2009 18:30:19 -0500 Subject: [Buffalo-pm] Hackerspace In-Reply-To: <4B166230.7030000@krystalmonolith.com> References: <4B166230.7030000@krystalmonolith.com> Message-ID: On Dec 2, 2009, at 7:48 AM, Mark Deazley wrote: > Feeling gregarious, I visited the Hackerspace last night to meet > the PHP group. I didn't know you had a Hackerspace in Buffalo. I encourage you to support it because, AFAICT from the net, we don't really have a similar space in New York City! I searched its location. Is the Larkin Building one of those large loft buildings you see on the north side of the Thruway as you drive into town? If so, there's a chance it's the building in which I worked in a factory making microscope slides in early 1973. jimk From dmagnuszewski at yahoo.com Thu Dec 3 10:42:43 2009 From: dmagnuszewski at yahoo.com (Daniel Magnuszewski) Date: Thu, 3 Dec 2009 10:42:43 -0800 (PST) Subject: [Buffalo-pm] Hackerspace In-Reply-To: References: <4B166230.7030000@krystalmonolith.com> Message-ID: <885246.30928.qm@web33308.mail.mud.yahoo.com> I've been meaning to make it up to some of the hackerspace meetings but have been too busy. Buffalo Perl Mongers should have a presence there. I'm planning on going to a 2600 meeting that they're having tomorrow. James, it's probably the same building that you're thinking of. I know the original Larkin Building was knocked down in 1950, so it's not that one :-) -Dan ----- Original Message ---- From: James E Keenan To: Buffalo Perl Mongers Sent: Wed, December 2, 2009 6:30:19 PM Subject: [Buffalo-pm] Hackerspace On Dec 2, 2009, at 7:48 AM, Mark Deazley wrote: > Feeling gregarious, I visited the Hackerspace last night to meet the PHP group. I didn't know you had a Hackerspace in Buffalo. I encourage you to support it because, AFAICT from the net, we don't really have a similar space in New York City! I searched its location. Is the Larkin Building one of those large loft buildings you see on the north side of the Thruway as you drive into town? If so, there's a chance it's the building in which I worked in a factory making microscope slides in early 1973. jimk _______________________________________________ Buffalo Perl Mongers Homepage http://buffalo.pm.org Buffalo-pm mailing list Buffalo-pm at pm.org http://mail.pm.org/mailman/listinfo/buffalo-pm From joshpauljohnson at gmail.com Tue Dec 8 09:53:23 2009 From: joshpauljohnson at gmail.com (Joshua Johnson) Date: Tue, 8 Dec 2009 12:53:23 -0500 Subject: [Buffalo-pm] Test if module is loaded Message-ID: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> Hello all! Is there a way to test if a perl module is loaded? I'm working on a small project where I load some modules dynamically as part of a configuration and then "use" them at that time. I don't get any errors but I just feel dirty loading a module that may have already been loaded. So, if at the top of the file I do: use Whatever::Project::MyStuff; Can I find out later if Whatever::Project::MyStuff is already loaded? I suppose it may not matter or have any kind of performance impact but now I'm just curious to know if it can be done. Thanks, Josh J From a.r.ferreira at gmail.com Tue Dec 8 10:01:48 2009 From: a.r.ferreira at gmail.com (Adriano Ferreira) Date: Tue, 8 Dec 2009 16:01:48 -0200 Subject: [Buffalo-pm] Test if module is loaded In-Reply-To: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> References: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> Message-ID: <73ddeb6c0912081001h41440c5w8913144a66315d20@mail.gmail.com> On Tue, Dec 8, 2009 at 3:53 PM, Joshua Johnson wrote: > Hello all! > > Is there a way to test if a perl module is loaded? I'm working on a > small project where I load some modules dynamically as part of a > configuration and then "use" them at that time. I don't get any errors > but I just feel dirty loading a module that may have already been > loaded. So, if at the top of the file I do: > > use Whatever::Project::MyStuff; > > Can I find out later if Whatever::Project::MyStuff is already loaded? > I suppose it may not matter or have any kind of performance impact but > now I'm just curious to know if it can be done. > > I think "require" will do just fine, with minimum performance impact in this case. But it can be done by looking at the corresponding entry for the module in %INC array. So after use Whatever::Project::MyStuff; or simply require Whatever::Project::MyStuff; you must find a true value at $INC{'Whatever/Project/MyStuff.pm'} So you have to transform the module name into a file name (for example, like UNIVERSAL::require does). You can read the docs of %INC with a new version of perldoc with $ perldoc -v '%INC' or just look for the corresponding section of "perlvar.pod" if your perldoc is not so new. Cheers, Adriano Ferreira Thanks, > Josh J > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eye at buffalo.edu Tue Dec 8 10:08:05 2009 From: eye at buffalo.edu (Eye, Kevin) Date: Tue, 8 Dec 2009 13:08:05 -0500 Subject: [Buffalo-pm] Test if module is loaded In-Reply-To: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> References: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> Message-ID: All the "use" statements execute as the script is being read (compiled) and it won't actually run the code in them a second time. It's basically already doing the "if" statement you're trying to write. "require" is the same way -- it will only load/run it once (though at run-time). You need to use "do" to actually run a file more than once. You could verify all of this with a few test files and some print statements. If you do really need to see if something has already been loaded you can look in the global/special variable %INC. To see if My::Module is loaded, check to see if $INC{'My/Module.pm'} is defined. Not sure why it is all translated that way (the /'s and :'s). Might be documented here: http://perldoc.perl.org/perlvar.html - Kevin On Dec 8, 2009, at 12:53 PM, Joshua Johnson wrote: > Hello all! > > Is there a way to test if a perl module is loaded? I'm working on a > small project where I load some modules dynamically as part of a > configuration and then "use" them at that time. I don't get any errors > but I just feel dirty loading a module that may have already been > loaded. So, if at the top of the file I do: > > use Whatever::Project::MyStuff; > > Can I find out later if Whatever::Project::MyStuff is already loaded? > I suppose it may not matter or have any kind of performance impact but > now I'm just curious to know if it can be done. > > Thanks, > Josh J > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm From agianni at buffalo.edu Tue Dec 8 11:13:20 2009 From: agianni at buffalo.edu (Gianni, Andrew) Date: Tue, 8 Dec 2009 14:13:20 -0500 Subject: [Buffalo-pm] Test if module is loaded In-Reply-To: References: <20533c760912080953g5955b3bao11ec428bfd26144b@mail.gmail.com> Message-ID: <47A67B70BCB6A546BBDEDE72C3F627B401C5F57D7454@MBCCR2.itorg.ad.buffalo.edu> Kevin is correct, in that you don't really need to worry about checking, as use and require do that for you. That said, the easiest way to check for a loaded package is to simply check for the definedness of %That::Package:: (not the extra set of ::). For example: eval 'require That::Package' unless eval 'defined %That::Package::'; die $@ if $@ # check for eval error if you dump %That::Package::, you'll see that it shows you all of the available data structures and methods/functions for that package space *if* it has already been required/used. Andrew > -----Original Message----- > From: buffalo-pm-bounces+agianni=buffalo.edu at pm.org [mailto:buffalo-pm- > bounces+agianni=buffalo.edu at pm.org] On Behalf Of Eye, Kevin > Sent: Tuesday, December 08, 2009 1:08 PM > To: Joshua Johnson > Cc: Buffalo Perl Mongers > Subject: Re: [Buffalo-pm] Test if module is loaded > > All the "use" statements execute as the script is being read (compiled) > and it won't actually run the code in them a second time. It's > basically already doing the "if" statement you're trying to write. > "require" is the same way -- it will only load/run it once (though at > run-time). You need to use "do" to actually run a file more than once. > You could verify all of this with a few test files and some print > statements. > > If you do really need to see if something has already been loaded you > can look in the global/special variable %INC. To see if My::Module is > loaded, check to see if $INC{'My/Module.pm'} is defined. Not sure why > it is all translated that way (the /'s and :'s). Might be documented > here: http://perldoc.perl.org/perlvar.html > > - Kevin > > > > > On Dec 8, 2009, at 12:53 PM, Joshua Johnson wrote: > > > Hello all! > > > > Is there a way to test if a perl module is loaded? I'm working on a > > small project where I load some modules dynamically as part of a > > configuration and then "use" them at that time. I don't get any > errors > > but I just feel dirty loading a module that may have already been > > loaded. So, if at the top of the file I do: > > > > use Whatever::Project::MyStuff; > > > > Can I find out later if Whatever::Project::MyStuff is already loaded? > > I suppose it may not matter or have any kind of performance impact > but > > now I'm just curious to know if it can be done. > > > > Thanks, > > Josh J > > _______________________________________________ > > Buffalo Perl Mongers Homepage > > http://buffalo.pm.org > > > > Buffalo-pm mailing list > > Buffalo-pm at pm.org > > http://mail.pm.org/mailman/listinfo/buffalo-pm > > _______________________________________________ > Buffalo Perl Mongers Homepage > http://buffalo.pm.org > > Buffalo-pm mailing list > Buffalo-pm at pm.org > http://mail.pm.org/mailman/listinfo/buffalo-pm From dmagnuszewski at yahoo.com Mon Dec 14 11:02:43 2009 From: dmagnuszewski at yahoo.com (Daniel Magnuszewski) Date: Mon, 14 Dec 2009 11:02:43 -0800 (PST) Subject: [Buffalo-pm] Buffalo BarCamp Tonight Message-ID: <763194.22163.qm@web33301.mail.mud.yahoo.com> There's a BarCamp tonight: Location: Merge Buffalo (439 Delaware Ave, Buffalo) Time: 7PM - ??? For more information: http://bit.ly/7l2zh7 -Dan From dmagnuszewski at yahoo.com Thu Dec 17 08:16:08 2009 From: dmagnuszewski at yahoo.com (Daniel Magnuszewski) Date: Thu, 17 Dec 2009 08:16:08 -0800 (PST) Subject: [Buffalo-pm] Fw: Richard Stallman Message-ID: <736757.45912.qm@web33304.mail.mud.yahoo.com> This may be a little off topic, but Richard Stallman will be giving a talk at UB this February and is looking for a place to crash for a few days (apparently he doesn't like hotels). ----- Forwarded Message ---- From: Brian Borncamp To: ACM-CHAPTER-LIST at LISTSERV.BUFFALO.EDU Sent: Thu, December 17, 2009 10:05:48 AM Subject: Richard Stallman Hi everyone, I'm passing along a request/email from Richard Stallman's assistant. Is there anybody who might be willing to host rms for a few days? Regarding accommodations here's an excerpt from another email. -Brian ----------------------------------------------------------------------------------------------------------- But if there is anyone who wants to offer a spare couch, or even some spare floor, I would much rather stay there than in a hotel (provided I have a door I can close, in order to have some privacy). Staying with someone is more fun for me than a hotel, and it would also save you money. Floor space is sufficient because I bring an air mattress with me. ------------------------------------------------------------------------------------------------------------ Hello, Brian, I have a quick question about accommodations. RMS is on the road for a good majority of the year and likes to avoid hotels as much as possible. Do you know if anyone (a professor, a student, etc.) would be able and willing to house him while he is in town? Also, do you know how long they would be willing to house him? I'm asking because it's looking like he might be speaking in Pittsburgh on February 19th. If he took the bus to Buffalo that same day or the next day, and then gave a talk in Buffalo on Monday the 22nd, that would mean that he would need a place to stay in Buffalo for at least three nights. Would that work? Thanks a lot for getting back to me on this. Thanks for your time. Sincerely, -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmagnuszewski at yahoo.com Thu Dec 17 14:39:02 2009 From: dmagnuszewski at yahoo.com (Daniel Magnuszewski) Date: Thu, 17 Dec 2009 14:39:02 -0800 (PST) Subject: [Buffalo-pm] Send Randal Schwartz A Holiday Present! Message-ID: <517102.26350.qm@web33308.mail.mud.yahoo.com> Mongers, I hope this doesn't come across as spam, but I saw a tweet last night from Randal Schwartz and figured we could assist: "I will have to pick what bills to pay in december if I don't get some cash. paypal merlyn at stonehenge.com $1 will help." Randal has done a couple of talks for the Buffalo Perl Mongers in the past, along with visiting for social meetings, and has never charged us for it. With this being the "season of giving" and the strain of the economy on his business, I encourage everyone to donate a $1 or more to keep him afloat. https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=marketing_us/send_money Thanks. -Dan