From ingy at ingy.net Mon Apr 4 00:43:18 2011 From: ingy at ingy.net (Ingy dot Net) Date: Mon, 4 Apr 2011 15:43:18 +0800 Subject: [Pdx-pm] Kwiki 3.0 Message-ID: Greetings, I woke up this morning with the idea to revive Kwiki. I noticed that pdx.pmstill uses Kwiki. I was wondering if you guys would be my customers? :) Round 1 is: 1. Plack based web app 2. Git based data store 3. Split apart the giant Kwiki repo into separate smaller ones 4. File::ShareDir instead of inline files I've been working on a app framework called Cog. It is extremely responsive. 200ms response times are typical. I want to not necessarily make Kwiki a Cog app, but take the good ideas back from Cog to Kwiki. I guess what I would want from you is a tarball of your current kwiki installation. Once I got that all working, I could give it back to you. What do you think? Who should I be talking to? Maybe join #kwiki on irc.freenode.net for a more interactive conversation. Be aware that I am in Taiwan and Australia for the time being... Love, Ingy -------------- next part -------------- An HTML attachment was scrubbed... URL: From fashizzlepop at gmail.com Mon Apr 4 00:49:50 2011 From: fashizzlepop at gmail.com (Brady Sullivan) Date: Mon, 4 Apr 2011 00:49:50 -0700 Subject: [Pdx-pm] Kwiki 3.0 In-Reply-To: References: Message-ID: <565A423F-233E-4C36-8380-B618E50E7FBC@gmail.com> I didn't know venn diagram like schemes were allowed in geography class. Sent from my iPhone On Apr 4, 2011, at 12:43 AM, Ingy dot Net wrote: > Be aware that I am in Taiwan and Australia for the time being... > > Love, Ingy From jonathan at leto.net Mon Apr 4 12:46:58 2011 From: jonathan at leto.net (Jonathan "Duke" Leto) Date: Mon, 4 Apr 2011 12:46:58 -0700 Subject: [Pdx-pm] Kwiki 3.0 In-Reply-To: References: Message-ID: Howdy, Ingy, I think a lot of people will love you for fixing the PDX.pm kwiki. Eric Wilhelm knows the man that can get you the tarball. I will play Devil's Advocate for a second: Why not use or improve Gollum?: https://github.com/github/gollum Yes, it's not written in Perl or Plack, but it understand about 10 markup languages and uses a git datastore. It is what powers the new git-repo-ish wikis on Github. It has been tested in the field. I consider it the spiritual successor of ikiwiki. If nothing else, it is a good thing to steal ideas from. Duke 2011/4/4 Ingy dot Net : > Greetings, > > I woke up this morning with the idea to revive Kwiki. I noticed that pdx.pm > still uses Kwiki. I was wondering if you guys would be my customers? :) > > Round 1 is: > > Plack based web app > Git based data store > Split apart the giant Kwiki repo into separate smaller ones > File::ShareDir instead of inline files > > I've been working on a app framework called Cog. It is extremely responsive. > 200ms response times are typical. I want to not necessarily make Kwiki a Cog > app, but take the good ideas back from Cog to Kwiki. > > I guess what I would want from you is a tarball of your current kwiki > installation. Once I got that all working, I could give it back to you. > > What do you think? Who should I be talking to? > > Maybe join #kwiki on irc.freenode.net for a more interactive conversation. > Be aware that I am in Taiwan and Australia for the time being... > > Love, Ingy > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -- Jonathan "Duke" Leto jonathan at leto.net http://leto.net From enobacon at gmail.com Mon Apr 4 14:46:07 2011 From: enobacon at gmail.com (Eric Wilhelm) Date: Mon, 4 Apr 2011 14:46:07 -0700 Subject: [Pdx-pm] Kwiki 3.0 In-Reply-To: References: Message-ID: <201104041446.07134.enobacon@gmail.com> # from Ingy dot Net # on Monday 04 April 2011 00:43: >Round 1 is: > >? ?1. Plack based web app >? ?2. Git based data store >? ?3. Split apart the giant Kwiki repo into separate smaller ones >? ?4. File::ShareDir instead of inline files Sounds good. Plack will be a big plus. I'm not sure if git-based storage is worth the added dependency (isn't page history going to still be linear?) The ability to lock specific pages as password-required would be great. I currently use ssh and chmod for the front page. --Eric -- I arise in the morning torn between a desire to improve the world and a desire to enjoy the world. This makes it hard to plan the day. --E.B. White --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- From enobacon at gmail.com Wed Apr 6 15:38:52 2011 From: enobacon at gmail.com (Seven till Seven) Date: Wed, 6 Apr 2011 15:38:52 -0700 Subject: [Pdx-pm] Mock::Quick -- April meeting next week Message-ID: <201104061538.52421.enobacon@gmail.com> http://pdx.pm.org/kwiki/?April2011Meeting Wed. April 13th, 6:53pm at FreeGeek ? 1731 SE 10th Ave. topic: Mock::Quick speaker: Chad 'Exodist' Granum Mock::Quick: (CPAN, Github) Is a modern mocking library taking advantage of modern Perl interface design. Topics include: * Quickly throwing together a minimum object to shove somewhere * Mocking a quick, but strict object * Takeover an already loaded class redefining and restoring specific methods * Generate a mocked class that prevents the real one from loading * Anonymous package mocking for a reusable mock * Collecting usage data * Brief overview of internals (the more you know! -=*) As always, the meeting will be followed by social hour at the LuckyLab. -- http://pdx.pm.org From ben.hengst at gmail.com Fri Apr 8 16:36:24 2011 From: ben.hengst at gmail.com (benh) Date: Fri, 8 Apr 2011 16:36:24 -0700 Subject: [Pdx-pm] Fwd: UG News: O'Reilly's writable API competition In-Reply-To: <1302264121.11969.0.475524@post.oreilly.com> References: <1302264121.11969.0.475524@post.oreilly.com> Message-ID: ---------- Forwarded message ---------- From: Jon Johns & Marsee Henon Date: Fri, Apr 8, 2011 at 05:02 Subject: UG News: O'Reilly's writable API competition To: ben.hengst+oreilly at gmail.com Hi UG Leaders, Please forward this along to your group members, it's a great opportunity. ======================================================================= O'Reilly Media offers a writable API competition Got a great idea for O'Reilly's new API? Make it happen and you might win a prize. Competition details: While we want you to develop an application however you see fit, we imagine entries will fall into three rough classes. None of these are required in an entry and they are independent of the judging criteria: 1. Uses of the basic O'Reilly book and author data, such as building a different UI to books and authors. 2. Interesting data added to the Fluidinfo book and/or author objects. Entries in this class would not build applications. 3. Mashups of original and new data: add to the original data, and write an application that combines both in a provocative way. Judges Entries will be judged by Tim O'Reilly, O'Reilly editor Mike Loukides, and O'Reilly GM Joe Wikert. Prizes In total, three prizes will be awarded: 1st prize: An OSCON package that includes a full conference pass, coach airfare from within the US, and 4 nights hotel accommodation. 2nd prize: Choice of either one 3G iPad 2 64GB or one Xoom tablet 32GB (second prize includes device only, no wireless service is included). 3rd prize: $500 worth of O'Reilly ebooks and/or videos; selection to be at third prize winner's discretion. Deadline The competition opens today (12:01 a.m. Pacific, March 21, 2011) and runs until 11:59 p.m. (Pacific) April 10, 2011. Winners will be announced on Radar on or around May 1, 2011. Restrictions Employees of O'Reilly Media and Fluidinfo are not eligible to enter the competition. Full details can be found here: http://post.oreilly.com/rd/9z1zjghrmipd9e5nenhfcuv77f6eofucr0ejcmqmruo Thanks, Marsee & Jon ======================================================================= -- benh~ http://three.sentenc.es/ From pagaltzis at gmx.de Tue Apr 12 17:23:12 2011 From: pagaltzis at gmx.de (Aristotle Pagaltzis) Date: Wed, 13 Apr 2011 02:23:12 +0200 Subject: [Pdx-pm] diff_painter.pl In-Reply-To: References: Message-ID: <20110413002312.GF8770@klangraum.plasmasturm.org> Hi Matthew, * Matthew Wickline [2011-03-10 04:35]: > piped to diff_painter.pl: > http://wickline.org/diff_painter/exhibit_C.png > holy painless code reviews, batman! I can?t get it to show me anything like that, even on output on which it ostensibly should. All it shows me is the same output as the regular diff (except also colourised with background colours): if a portion of a line has changed, it just shows the before and after lines, rather than a single line with a colourised portion. What could be the culprit? What input does it expect? How picky is it about that? Regards, -- Aristotle Pagaltzis // From enobacon at gmail.com Wed Apr 13 09:43:34 2011 From: enobacon at gmail.com (Seven till Seven) Date: Wed, 13 Apr 2011 09:43:34 -0700 Subject: [Pdx-pm] meeting tonight: Mock::Quick Message-ID: <201104130943.35168.enobacon@gmail.com> http://pdx.pm.org/kwiki/?April2011Meeting Wed. April 13th, 6:53pm at FreeGeek ? 1731 SE 10th Ave. topic: Mock::Quick speaker: Chad 'Exodist' Granum Mock::Quick: (CPAN, Github) Is a modern mocking library taking advantage of modern Perl interface design. Topics include: * Quickly throwing together a minimum object to shove somewhere * Mocking a quick, but strict object * Takeover an already loaded class redefining and restoring specific methods * Generate a mocked class that prevents the real one from loading * Anonymous package mocking for a reusable mock * Collecting usage data * Brief overview of internals (the more you know! -=*) As always, the meeting will be followed by social hour at the LuckyLab. -- http://pdx.pm.org From sam at aboutus.org Tue Apr 12 20:52:19 2011 From: sam at aboutus.org (Sam Goldstein) Date: Tue, 12 Apr 2011 20:52:19 -0700 Subject: [Pdx-pm] diff_painter.pl In-Reply-To: <20110413002312.GF8770@klangraum.plasmasturm.org> References: <20110413002312.GF8770@klangraum.plasmasturm.org> Message-ID: I had pretty good results piping the output of git diff or git log -p into it. On Apr 12, 2011 5:23 PM, "Aristotle Pagaltzis" wrote: > Hi Matthew, > > * Matthew Wickline [2011-03-10 04:35]: >> piped to diff_painter.pl: >> http://wickline.org/diff_painter/exhibit_C.png >> holy painless code reviews, batman! > > I can?t get it to show me anything like that, even on output on > which it ostensibly should. All it shows me is the same output as > the regular diff (except also colourised with background colours): > if a portion of a line has changed, it just shows the before and > after lines, rather than a single line with a colourised portion. > > What could be the culprit? What input does it expect? How picky > is it about that? > > Regards, > -- > Aristotle Pagaltzis // > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list -------------- next part -------------- An HTML attachment was scrubbed... URL: From m_pm_pdx at wickline.org Wed Apr 13 22:31:28 2011 From: m_pm_pdx at wickline.org (Matthew Wickline) Date: Wed, 13 Apr 2011 22:31:28 -0700 Subject: [Pdx-pm] diff_painter.pl In-Reply-To: <20110413002312.GF8770@klangraum.plasmasturm.org> References: <20110413002312.GF8770@klangraum.plasmasturm.org> Message-ID: > I can?t get it to show me anything like that, even on output on > which it ostensibly should. All it shows me is the same output as > the regular diff (except also colourised with background colours): > if a portion of a line has changed, it just shows the before and > after lines, rather than a single line with a colourised portion. I've added some examples. If you diff -u the before and after files you should get something like the png at https://github.com/wickline/diff_painter/blob/master/examples/painted_diff.png Note that the bottom two block edits didn't render as block edits because a rows was added or inserted. The script does not try to merge lines when presented with N minus lines followed by other-than-N plus lines. It only wants to merge N minus lines with N plus lines. Another case you might be hitting is that if too many edits are done in a line, it decides that it would look better to show you "this whole line changed into this other whole line" rather than trying to merge the two lines. As for input, basically anything that looks like diff or diff -u. That would include svn diff and git diff and git log -p. From pagaltzis at gmx.de Thu Apr 14 23:06:45 2011 From: pagaltzis at gmx.de (Aristotle Pagaltzis) Date: Fri, 15 Apr 2011 08:06:45 +0200 Subject: [Pdx-pm] diff_painter.pl In-Reply-To: References: <20110413002312.GF8770@klangraum.plasmasturm.org> Message-ID: <20110415060644.GG3627@klangraum.plasmasturm.org> * Matthew Wickline [2011-04-14 07:35]: > I've added some examples. If you diff -u the before and after > files you should get something like the png at > > https://github.com/wickline/diff_painter/blob/master/examples/painted_diff.png > > Note that the bottom two block edits didn't render as block > edits because a rows was added or inserted. The script does not > try to merge lines when presented with N minus lines followed > by other-than-N plus lines. It only wants to merge N minus > lines with N plus lines. Ahh. I see. That was the case I was hitting at least in several of the cases it seemed to not be doing anything. It finally worked fine on other diffs since, so it *is* working. > Another case you might be hitting is that if too many edits are > done in a line, it decides that it would look better to show > you "this whole line changed into this other whole line" rather > than trying to merge the two lines. No. But there was one case where I had a single-line change where into which I had inserted a short substring, that diff_painter was not rendering as I expected, even though it seemed that it should be able to. Unfortunately I didn?t write down the commit in question so I can?t re-check now. Was this possibly because `git diff` merged the one-line change into a single diff hunk together with another change where one line was split into three? In that case it means diff_painter would be able to sprinkle its magic on more of the diff if the context is reduced (`-U0` in the extreme) ? right? If so then it would be better to split the diff hunks on its own (ie collect +/- stretches between unchanged lines) instead of only relying on the numbers in the hunk head, and then operate on these sub-hunks. (Otherwise it?s useless for complex changes best read using `-U999` to get a before/after of the whole file, where it could do the most to help the reader.) > As for input, basically anything that looks like diff or diff > -u. That would include svn diff and git diff and git log -p. Right, yes. -- Aristotle Pagaltzis // From david at kineticode.com Tue Apr 19 20:26:35 2011 From: david at kineticode.com (David E. Wheeler) Date: Tue, 19 Apr 2011 20:26:35 -0700 Subject: [Pdx-pm] PGXN: It's CPAN for PostgreSQL References: Message-ID: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> Fellow Perl Mongers, On Thursday night, I'll be giving a talk for the Portland PostgreSQL User Group (PDXPUG) on PGXN, my implementation of something like CPAN for PostgreSQL. Yes, you can write and distribute modules for the database! Interested? Site is here: http://pgxn.org/ And the talk details are below. See you there? Best, David Begin forwarded message: > From: Mark Wong > Date: April 14, 2011 5:33:45 PM PDT > To: Postgresql PDX_Users > Subject: [pdxpug] April 2011 Meeting > > This month's meeting marks the fourth installment in our "Founders Series".. > > When: 7-9pm Thu Apr 21, 2011 > Where: FreeGeek > Who: David Wheeler > What: Distributing Extensions on PGXN > > So you've solved a common problem in PostgreSQL, a serious pain point > that lots of other people could take advantage of. You want to > open-source the code, and would like to package it up and distribute > it where people can find it, read its docs, and download and install > it. > > The newest destination for distributing PostgreSQL extensions is PGXN, > the PostgreSQL Extension network. PGXN offers a central index of > PostgreSQL extensions and their documentation, making it easy for > people to find an install extensions. > > How do you optimize your extension distribution for maximum PGXN > exposure? By careful packaging, thorough documentation, and simple > installation. Join me for an overview of how best to achieve that ? > including how to build extensions compatible with PostgreSQL 9.1's > improved extension support. > > David Wheeler is an associate at PGExperts, and is responsible for > PGXN, the PostgreSQL Extension Network) and pgTAP. He's into testing > and extension distribution. > > Beer afterwards at the Lucky Lab. See you there! > > -- > Sent via pdxpug mailing list (pdxpug at postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pdxpug From jonathan at leto.net Wed Apr 20 10:17:11 2011 From: jonathan at leto.net (Jonathan "Duke" Leto) Date: Wed, 20 Apr 2011 10:17:11 -0700 Subject: [Pdx-pm] PGXN: It's CPAN for PostgreSQL In-Reply-To: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> References: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> Message-ID: Howdy David, This sounds awesome. Are there tools to help authors create a PGXN distribution (or whatever it is called) from an already existing project ? I am thinking specifically of putting PL/Parrot and PL/Perl6 on PGXN. And yes, I will bribe you with beer if you help me hack on it :) Duke On Tue, Apr 19, 2011 at 8:26 PM, David E. Wheeler wrote: > Fellow Perl Mongers, > > On Thursday night, I'll be giving a talk for the Portland PostgreSQL User Group (PDXPUG) on PGXN, my implementation of something like CPAN for PostgreSQL. Yes, you can write and distribute modules for the database! Interested? Site is here: > > ?http://pgxn.org/ > > And the talk details are below. > > See you there? > > Best, > > David > > Begin forwarded message: > >> From: Mark Wong >> Date: April 14, 2011 5:33:45 PM PDT >> To: Postgresql PDX_Users >> Subject: [pdxpug] April 2011 Meeting >> >> This month's meeting marks the fourth installment in our "Founders Series".. >> >> When: 7-9pm Thu Apr 21, 2011 >> Where: FreeGeek >> Who: David Wheeler >> What: Distributing Extensions on PGXN >> >> So you've solved a common problem in PostgreSQL, a serious pain point >> that lots of other people could take advantage of. You want to >> open-source the code, and would like to package it up and distribute >> it where people can find it, read its docs, and download and install >> it. >> >> The newest destination for distributing PostgreSQL extensions is PGXN, >> the PostgreSQL Extension network. PGXN offers a central index of >> PostgreSQL extensions and their documentation, making it easy for >> people to find an install extensions. >> >> How do you optimize your extension distribution for maximum PGXN >> exposure? By careful packaging, thorough documentation, and simple >> installation. Join me for an overview of how best to achieve that ? >> including how to build extensions compatible with PostgreSQL 9.1's >> improved extension support. >> >> David Wheeler is an associate at PGExperts, and is responsible for >> PGXN, the PostgreSQL Extension Network) and pgTAP. He's into testing >> and extension distribution. >> >> Beer afterwards at the Lucky Lab. See you there! >> >> -- >> Sent via pdxpug mailing list (pdxpug at postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pdxpug > > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -- Jonathan "Duke" Leto jonathan at leto.net http://leto.net From david at kineticode.com Wed Apr 20 10:20:03 2011 From: david at kineticode.com (David E. Wheeler) Date: Wed, 20 Apr 2011 10:20:03 -0700 Subject: [Pdx-pm] PGXN: It's CPAN for PostgreSQL In-Reply-To: References: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> Message-ID: On Apr 20, 2011, at 10:17 AM, Jonathan Duke Leto wrote: > This sounds awesome. > > Are there tools to help authors create a PGXN distribution (or > whatever it is called) from an already existing project ? Not yet. I plan at some point to do something with Dist::Zilla. > I am thinking specifically of putting PL/Parrot and PL/Perl6 on PGXN. > > And yes, I will bribe you with beer if you help me hack on it :) Right on! At this point, it's really as simple as creating a META.json. Everything else is gravy. Best, David From jonathan at leto.net Wed Apr 20 10:25:17 2011 From: jonathan at leto.net (Jonathan "Duke" Leto) Date: Wed, 20 Apr 2011 10:25:17 -0700 Subject: [Pdx-pm] PGXN: It's CPAN for PostgreSQL In-Reply-To: References: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> Message-ID: Howdy, >> And yes, I will bribe you with beer if you help me hack on it :) > > Right on! At this point, it's really as simple as creating a META.json. Everything else is gravy. Ok, a question: PL/Perl6 is really just PL/Parrot with more stuff enabled, if the end user has Rakudo Perl 6. How would I create separate PGXN dists for PL/Parrot and PL/Perl6 ? Duke -- Jonathan "Duke" Leto jonathan at leto.net http://leto.net From david at kineticode.com Wed Apr 20 10:28:24 2011 From: david at kineticode.com (David E. Wheeler) Date: Wed, 20 Apr 2011 10:28:24 -0700 Subject: [Pdx-pm] PGXN: It's CPAN for PostgreSQL In-Reply-To: References: <139DCDD2-FB56-45EA-8973-50A5F93490C8@kineticode.com> Message-ID: On Apr 20, 2011, at 10:25 AM, Jonathan Duke Leto wrote: > Ok, a question: PL/Perl6 is really just PL/Parrot with more stuff > enabled, if the end user has Rakudo Perl 6. > > How would I create separate PGXN dists for PL/Parrot and PL/Perl6 ? You've already designed them to be built using PGXS, right? Really, a PGXN distribution is just that plus a META.json file. I've written up a HOWTO here: http://manager.pgxn.org/howto Will be updating that over the next day or so for 9.1 CREATE EXTENSION details. Best, David From joshua at keroes.com Thu Apr 21 09:27:04 2011 From: joshua at keroes.com (Joshua Keroes) Date: Thu, 21 Apr 2011 09:27:04 -0700 Subject: [Pdx-pm] diff_painter.pl In-Reply-To: <20110415060644.GG3627@klangraum.plasmasturm.org> References: <20110413002312.GF8770@klangraum.plasmasturm.org> <20110415060644.GG3627@klangraum.plasmasturm.org> Message-ID: A useful non-Perl offering from the Googles: http://code.google.com/p/google-diff-match-patch/ ? diff with efficiency (diff by block(?), word, or character) ? fuzzy matching ? patching Caveat: not Perl. On Thu, Apr 14, 2011 at 11:06 PM, Aristotle Pagaltzis wrote: > * Matthew Wickline [2011-04-14 07:35]: > > I've added some examples. If you diff -u the before and after > > files you should get something like the png at > > > > > https://github.com/wickline/diff_painter/blob/master/examples/painted_diff.png > > > > Note that the bottom two block edits didn't render as block > > edits because a rows was added or inserted. The script does not > > try to merge lines when presented with N minus lines followed > > by other-than-N plus lines. It only wants to merge N minus > > lines with N plus lines. > > Ahh. I see. That was the case I was hitting at least in several > of the cases it seemed to not be doing anything. > > It finally worked fine on other diffs since, so it *is* working. > > > Another case you might be hitting is that if too many edits are > > done in a line, it decides that it would look better to show > > you "this whole line changed into this other whole line" rather > > than trying to merge the two lines. > > No. But there was one case where I had a single-line change where > into which I had inserted a short substring, that diff_painter > was not rendering as I expected, even though it seemed that it > should be able to. Unfortunately I didn?t write down the commit > in question so I can?t re-check now. > > Was this possibly because `git diff` merged the one-line change > into a single diff hunk together with another change where one > line was split into three? > > In that case it means diff_painter would be able to sprinkle its > magic on more of the diff if the context is reduced (`-U0` in the > extreme) ? right? > > If so then it would be better to split the diff hunks on its own > (ie collect +/- stretches between unchanged lines) instead of > only relying on the numbers in the hunk head, and then operate > on these sub-hunks. (Otherwise it?s useless for complex changes > best read using `-U999` to get a before/after of the whole file, > where it could do the most to help the reader.) > > > As for input, basically anything that looks like diff or diff > > -u. That would include svn diff and git diff and git log -p. > > Right, yes. > > -- > Aristotle Pagaltzis // > _______________________________________________ > Pdx-pm-list mailing list > Pdx-pm-list at pm.org > http://mail.pm.org/mailman/listinfo/pdx-pm-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kellert at ohsu.edu Fri Apr 22 11:58:42 2011 From: kellert at ohsu.edu (Tom Keller) Date: Fri, 22 Apr 2011 11:58:42 -0700 Subject: [Pdx-pm] searching LDAP within a domain Message-ID: <266FABAC-92CD-42F9-9EF1-6AA43DE5C069@ohsu.edu> Greetings, How would you search LDAP at ohsu.edu for a list of email addresses? I need to know the valid email addresses. thanks, Tom Thomas (Tom) Keller, PhD kellert at ohsu.edu 503.494.2442 6588 R Jones Hall (BSc/CROET) www.ohsu.edu/xd/research/research-cores/dna-analysis/ From erik at hollensbe.org Fri Apr 22 12:03:22 2011 From: erik at hollensbe.org (Erik Hollensbe) Date: Fri, 22 Apr 2011 15:03:22 -0400 Subject: [Pdx-pm] searching LDAP within a domain In-Reply-To: <266FABAC-92CD-42F9-9EF1-6AA43DE5C069@ohsu.edu> References: <266FABAC-92CD-42F9-9EF1-6AA43DE5C069@ohsu.edu> Message-ID: On Apr 22, 2011, at 2:58 PM, Tom Keller wrote: > Greetings, > How would you search LDAP at ohsu.edu for a list of email addresses? I need to know the valid email addresses. Do you know what the attribute name that carries it is? It's typically 'mail', but not always. Anyhow, search would be as such: (mail=*) Replace with proper attribute. -Erik From paull at peak.org Tue Apr 26 17:56:07 2011 From: paull at peak.org (Paul Liebert) Date: Tue, 26 Apr 2011 17:56:07 -0700 Subject: [Pdx-pm] standard for copy constructors in Moose? Message-ID: <1303865767.1671.20.camel@cebolla> This is like the third time I'm having to write a copy constructor so laziness got the best of me. Comments? Critiques? Pointers to std Moosian ways to do this etc. It does shallow copy on unblessed references and pushes heavier lifting off to like-named constructors for member objects. Thanks in advance -Paul sub copy { my( $self ) = @_; my @kv_pairs = map{ $_, blessed( $self->$_ ) ? $self->$_->copy : $self->$_ } map{ $_->name } grep{ defined $_->init_arg } $self->meta->get_all_attributes; return $self->new( @kv_pairs ); } From hdp.perl.pm.pdx at weftsoar.net Tue Apr 26 18:10:40 2011 From: hdp.perl.pm.pdx at weftsoar.net (Hans Dieter Pearcey) Date: Tue, 26 Apr 2011 21:10:40 -0400 Subject: [Pdx-pm] standard for copy constructors in Moose? In-Reply-To: <1303865767.1671.20.camel@cebolla> References: <1303865767.1671.20.camel@cebolla> Message-ID: <20110427011040.GA5690@glaive.weftsoar.net> On Tue, 26 Apr 2011 17:56:07 -0700, Paul Liebert wrote: > This is like the third time I'm having to write a copy constructor so > laziness got the best of me. Comments? Critiques? Pointers to std > Moosian ways to do this etc. http://search.cpan.org/~doy/Moose-2.0001/lib/Class/MOP/Class.pm#Object_instance_construction_and_cloning http://search.cpan.org/~nuffin/MooseX-Clone-0.05/lib/MooseX/Clone.pm Cloning is a tricky subject. Your copy method assumes that running the constructor again is the right thing to do, but this isn't necessarily true; RAII is one obvious case where it may be wrong. hdp. From paull at peak.org Wed Apr 27 06:19:49 2011 From: paull at peak.org (Paul Liebert) Date: Wed, 27 Apr 2011 06:19:49 -0700 Subject: [Pdx-pm] standard for copy constructors in Moose? In-Reply-To: <20110427011040.GA5690@glaive.weftsoar.net> References: <1303865767.1671.20.camel@cebolla> <20110427011040.GA5690@glaive.weftsoar.net> Message-ID: <1303910389.1671.36.camel@cebolla> On Tue, 2011-04-26 at 21:10 -0400, Hans Dieter Pearcey wrote: > http://search.cpan.org/~nuffin/MooseX-Clone-0.05/lib/MooseX/Clone.pm This is what I was looking for. I knew I wanted it implemented as a Role, but using traits to tag attributes is an elegance that I would not have figured out on my own. > Cloning is a tricky subject. Your copy method assumes that running the > constructor again is the right thing to do, but this isn't necessarily true; > RAII is one obvious case where it may be wrong. Thanks. This was helpful as well. -Paul