Talk:Meetings:2008-12

From GTALUG

Contents

Presentation and some code snippets.

_design/contacts

contact_list

map.js
function(doc) {
	if (doc.fn) {
		var name = (doc.fn['given-name'] + " " + doc.fn['family-name'])
		emit(name, doc);
	}
	else if (doc.org) {
		emit(doc.org['organization-name'], doc)
	}
};
Returns
$ curl 'http://127.0.0.1:5984/address_book/_view/contacts/contact_list'
{"total_rows":5,"offset":0,"rows":[
{"id":"69d9c50aa8eed5a32541c8090c6a65c8","key":"Drew Sullivan","value":{"_id":"69d9c50aa8eed5a32541c8090c6a65c8","_rev":"604577340","fn":{"family-name":"Sullivan","given-name":"Drew"},"email":[{"value":"drew@ss.org","type":"Personal"}]}},
{"id":"3681f5d3ba59f287435c39a60428d95e","key":"GTALUG","value":{"_id":"3681f5d3ba59f287435c39a60428d95e","_rev":"3572474232","org":{"organization-name":"GTALUG"},"url":{"value":"http:\/\/gtalug.org\/","type":"Homepage"}}},
{"id":"cf1d2dba7ad65874a1ab73aa987b52eb","key":"Ipsum Lorem","value":{"_id":"cf1d2dba7ad65874a1ab73aa987b52eb","_rev":"2522191247","fn":{"family-name":"Lorem","given-name":"Ipsum"}}},
{"id":"3f34a6fa196bca12a33e6f7e3ec12a1d","key":"John Smith","value":{"_id":"3f34a6fa196bca12a33e6f7e3ec12a1d","_rev":"1758314975","fn":{"family-name":"Smith","given-name":"John"}}},
{"id":"93a31f6756545d9d59ca53fba6f92fe0","key":"Myles Braithwaite","value":{"_id":"93a31f6756545d9d59ca53fba6f92fe0","_rev":"3685624062","fn":{"family-name":"Braithwaite","given-name":"Myles"},"email":[{"value":"me@mylesbraithwaite.net","type":"Personal"},{"value":"myles@monkeyinyoursoul.com","type":"Work"}],"org":{"organization-name":"Monkey in your Soul"}}}
]}

email_list

map.js
function(doc) {
	if (doc.fn && doc.email) {
		for (var idx in doc.email) {
			emit(doc.email[idx]['value'], doc)
		}
	}
};
Returns
$ curl 'http://127.0.0.1:5984/address_book/_view/contacts/email_list'
{"total_rows":3,"offset":0,"rows":[
{"id":"69d9c50aa8eed5a32541c8090c6a65c8","key":"drew@ss.org","value":{"_id":"69d9c50aa8eed5a32541c8090c6a65c8","_rev":"604577340","fn":{"family-name":"Sullivan","given-name":"Drew"},"email":[{"value":"drew@ss.org","type":"Personal"}]}},
{"id":"93a31f6756545d9d59ca53fba6f92fe0","key":"me@mylesbraithwaite.net","value":{"_id":"93a31f6756545d9d59ca53fba6f92fe0","_rev":"3685624062","fn":{"family-name":"Braithwaite","given-name":"Myles"},"email":[{"value":"me@mylesbraithwaite.net","type":"Personal"},{"value":"myles@monkeyinyoursoul.com","type":"Work"}],"org":{"organization-name":"Monkey in your Soul"}}},
{"id":"93a31f6756545d9d59ca53fba6f92fe0","key":"myles@monkeyinyoursoul.com","value":{"_id":"93a31f6756545d9d59ca53fba6f92fe0","_rev":"3685624062","fn":{"family-name":"Braithwaite","given-name":"Myles"},"email":[{"value":"me@mylesbraithwaite.net","type":"Personal"},{"value":"myles@monkeyinyoursoul.com","type":"Work"}],"org":{"organization-name":"Monkey in your Soul"}}}
]}

org_list

map.js
function(doc) {
	if (doc.org) {
		emit(doc.org['organization-name'], doc)
	}
};
Returns
$ curl 'http://127.0.0.1:5984/address_book/_view/contacts/org_list' 
{"total_rows":2,"offset":0,"rows":[
{"id":"3681f5d3ba59f287435c39a60428d95e","key":"GTALUG","value":{"_id":"3681f5d3ba59f287435c39a60428d95e","_rev":"3572474232","org":{"organization-name":"GTALUG"},"url":{"value":"http:\/\/gtalug.org\/","type":"Homepage"}}},
{"id":"93a31f6756545d9d59ca53fba6f92fe0","key":"Monkey in your Soul","value":{"_id":"93a31f6756545d9d59ca53fba6f92fe0","_rev":"3685624062","fn":{"family-name":"Braithwaite","given-name":"Myles"},"email":[{"value":"me@mylesbraithwaite.net","type":"Personal"},{"value":"myles@monkeyinyoursoul.com","type":"Work"}],"org":{"organization-name":"Monkey in your Soul"}}}
]}

_design/emails

email_list

map.js
function(doc) {
  if (doc.Subject && doc.From) {
    emit([Date.parse(doc.Date), doc.Subject], doc);
  }
};
Returns
$ curl 'http://127.0.0.1:5984/address_book/_view/contacts/org_list' 
{"total_rows":2,"offset":0,"rows":[
{"id":"3681f5d3ba59f287435c39a60428d95e","key":"GTALUG","value":{"_id":"3681f5d3ba59f287435c39a60428d95e","_rev":"3572474232","org":{"organization-name":"GTALUG"},"url":{"value":"http:\/\/gtalug.org\/","type":"Homepage"}}},
{"id":"93a31f6756545d9d59ca53fba6f92fe0","key":"Monkey in your Soul","value":{"_id":"93a31f6756545d9d59ca53fba6f92fe0","_rev":"3685624062","fn":{"family-name":"Braithwaite","given-name":"Myles"},"email":[{"value":"me@mylesbraithwaite.net","type":"Personal"},{"value":"myles@monkeyinyoursoul.com","type":"Work"}],"org":{"organization-name":"Monkey in your Soul"}}}
]}myles@Ariel ~$ curl 'http://127.0.0.1:5984/address_book/_view/contacts/org_list' 
myles@Ariel ~$ curl 'http://127.0.0.1:5984/address_book/_view/emails/email_list' 
{"total_rows":7,"offset":0,"rows":[
{"id":"36e9cd31a4e2a3518acd08c31a39b95b","key":[1218476103000,"[TLUG-ANNOUNCE]: Tlug Meeting"],"value":{"_id":"36e9cd31a4e2a3518acd08c31a39b95b","_rev":"435391704","Date":"Mon, 11 Aug 2008 13:35:03 -0400","From":{"name":"Drew Sullivan","email":"drew@ss.org"},"Subject":"[TLUG-ANNOUNCE]: Tlug Meeting","To":"tlug-announce@ss.org","body":"==============================================================\n===== Please Note -- While gtalug.org is unavailable\n===== http:\/\/tlug.ss.org\/   \n===== Has current information\n==============================================================\nDate\n\nTuesday August 12, 2008\n\nTime\n\n7:30 pm \n\nTopic\n\nIntroduction to the D-Bus System\n\nSpeakers\n\nMadison Kelly\n\nDescription\n\nD-Bus is a relatively new and very flexible system for IPC being used by\nmany popular applications in the OSS family. It is used by Gnome to\nlisten to HAL for hardware changes, by Pidgen and Skype for connection\ninformation and more.\n\nThe talk will cover an introduction to D-Bus and will use Perl and it's\nNet::DBus to show example usage and code where needed. Examples will be\ngiven on building methods for export on the D-Bus message bus, message\nbroadcasting and retrieval, using existing and dedicated message buses\nand more.\n\nLocation\n\n   Room GB248, Galbraith Building, University of Toronto\n   Toronto, Ontario M5S 3G8 \n   University of Toronto\n\nSchedule\n\n6:00 PM - There will be an informal get together of Linux fans at the\nPho Hung restaurant 350 Spadina Ave. to talk about Linux related topics\nover Vietnamese style food.\n\n7:30 PM - Meeting and presentation.\n\nLate evening - After the presentation a large group of Linux fans will\nmove to a nearby pub for further informal socializing.\n\n\n--\nThe Toronto Linux Users Group.      Meetings: http:\/\/gtalug.org\/\nHow to UNSUBSCRIBE: http:\/\/gtalug.org\/wiki\/Mailing_lists"}},
{"id":"efb95c296110bfac80ad8642679aa095","key":[1220839667000,"[TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9"],"value":{"_id":"efb95c296110bfac80ad8642679aa095","_rev":"3241498054","Subject":"[TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9","Date":"Sun, 07 Sep 2008 22:07:47 -0400","To":"tlug-announce@ss.org","From":{"name":"Drew Sullivan","email":"drew@ss.org"},"body":"Date\n\nTuesday September 9, 2008\n\nTime\n\n7:30 pm \n\nTopic\n\nDjango\n\nSpeakers\n\nMyles Braithwaite\n\nDescription\n\nDjango is an open source web framework written in Python. It was\noriginally developed by Lawrence Journal-World to manage their newspaper\nwebsites.\n\nDjango market itself as a \"web framework for perfectionists with\ndeadlines\" and allows web developers to create complex database-driven\nwebsites with a DRY (Do not Repeat Yourself) philosophy.\n\nVersion 1.0 was released in 3 September, 2008 and has some exciting new\nfeatures.\n\nLocation\n\nTBA, but will likely be:\n\n   Room GB248, Galbraith Building, University of Toronto\n   Toronto, Ontario M5S 3G8 \n   University of Toronto\n\nSchedule\n\n6:00 PM - There will be an informal get together of Linux fans at the\nPho Hung restaurant 350 Spadina Ave. to talk about Linux related topics\nover Vietnamese style food.\n\n7:30 PM - Meeting and presentation.\n\nLate evening - After the presentation a large group of Linux fans will\nmove to a nearby pub for further informal socializing.\n\n-- \nDrew Sullivan <drew@ss.org>\nSystems Software\n\n--\nThe Toronto Linux Users Group.      Meetings: http:\/\/gtalug.org\/\nHow to UNSUBSCRIBE: http:\/\/gtalug.org\/wiki\/Mailing_lists","Message-Id":"<1220839668.20490.7.camel@coral.ss.org>"}},
{"id":"246747ad93386f65d00711a3e9dc35a1","key":[1221053133000,"[TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9"],"value":{"_id":"246747ad93386f65d00711a3e9dc35a1","_rev":"1345784467","Date":"Wed, 10 Sep 2008 09:25:33 -0400","From":{"name":"Myles Braithwaite","email":"me@mylesbraithwaite.com"},"Subject":"[TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9","To":"tlug@ss.org","body":"If anyone is interested in the code I was going to show if I have a\nprojector you can take a look at it here:\n\nhttp:\/\/github.com\/myles\/tlug-presentation-2008-09\/tree\/master\n\n---\nMyles Braithwaite\nme@mylesbraithwaite.com\nhttp:\/\/mylesbraithwaite.com\/\n\nPlease consider the trees before print this email.\nvOn 7-Sep-08, at 10:07 PM, Drew Sullivan wrote:\n\n>\n> Date\n>\n> Tuesday September 9, 2008\n>\n> Time\n>\n> 7:30 pm\n>\n> Topic\n>\n> Django\n>\n> Speakers\n>\n> Myles Braithwaite\n>\n> Description\n>\n> Django is an open source web framework written in Python. It was\n> originally developed by Lawrence Journal-World to manage their  \n> newspaper\n> websites.\n>\n> Django market itself as a \"web framework for perfectionists with\n> deadlines\" and allows web developers to create complex database-driven\n> websites with a DRY (Do not Repeat Yourself) philosophy.\n>\n> Version 1.0 was released in 3 September, 2008 and has some exciting  \n> new\n> features.\n>\n> Location\n>\n> TBA, but will likely be:\n>\n>   Room GB248, Galbraith Building, University of Toronto\n>   Toronto, Ontario M5S 3G8\n>   University of Toronto\n>\n> Schedule\n>\n> 6:00 PM - There will be an informal get together of Linux fans at the\n> Pho Hung restaurant 350 Spadina Ave. to talk about Linux related  \n> topics\n> over Vietnamese style food.\n>\n> 7:30 PM - Meeting and presentation.\n>\n> Late evening - After the presentation a large group of Linux fans will\n> move to a nearby pub for further informal socializing.\n>\n> -- \n> Drew Sullivan <drew@ss.org>\n> Systems Software\n>\n> --\n> The Toronto Linux Users Group.      Meetings: http:\/\/gtalug.org\/\n> How to UNSUBSCRIBE: http:\/\/gtalug.org\/wiki\/Mailing_lists","References":["<1220839668.20490.7.camel@coral.ss.org>"],"Message-Id":"<0CAAE4C8-EE39-42D1-9696-54ADF50C245C@mylesbraithwaite.com>","In-Reply-To":"<1220839668.20490.7.camel@coral.ss.org>"}},
{"id":"5a44492e2f271e79c86fe7e44ade792d","key":[1221073945000,"Re: [TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9"],"value":{"_id":"5a44492e2f271e79c86fe7e44ade792d","_rev":"3898641775","From":{"name":"Dave Doyle","email":"dave.s.doyle@gmail.com"},"To":"tlug@ss.org","Date":"Wed, 10 Sep 2008 15:12:25 -0400","Subject":"Re: [TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9","body":"Thank you sir!\n\nWere you basically going to navigate through the code or was there also a\nslideshow with this?\n\nThanks,\nD\n\nOn Wed, Sep 10, 2008 at 9:25 AM, Myles Braithwaite\n<me@mylesbraithwaite.com>wrote:\n\n> If anyone is interested in the code I was going to show if I have a\n> projector you can take a look at it here:\n> http:\/\/github.com\/myles\/tlug-presentation-2008-09\/tree\/master\n>\n> ---*Myles Braithwaite*\n> me@mylesbraithwaite.com\n> http:\/\/mylesbraithwaite.com\/\n>\n> Please consider the trees before print this email.\n>\n>\n\n\n-- \ndave.s.doyle@gmail.com","Message-Id":"<ccef7f7b0809101212s6ef6ec71pf36b7c66bacaafa7@mail.gmail.com>","In-Reply-To":"<0CAAE4C8-EE39-42D1-9696-54ADF50C245C@mylesbraithwaite.com>"}},
{"id":"1074d8805eaa79dfec356d34aa719a95","key":[1221074902000,"Re: [TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9"],"value":{"_id":"1074d8805eaa79dfec356d34aa719a95","_rev":"3720758831","From":{"name":"Myles Braithwaite","email":"me@mylesbraithwaite.net"},"To":"tlug@ss.org","Subject":"Re: [TLUG]: Re: [TLUG-ANNOUNCE]: TLUG Meeting. Tue Sep 9","Date":"Wed, 10 Sep 2008 15:28:22 -0400","body":"I just uploaded it:\n\nhttp:\/\/s3.mylesbraithwaite.com\/presentations\/gtalug\/Django.pdf\n\n---\nMyles Braithwaite\nme@mylesbraithwaite.com\nhttp:\/\/mylesbraithwaite.com\/\n\nPlease consider the trees before print this email.\n\nOn 10-Sep-08, at 3:12 PM, Dave Doyle wrote:\n\n> Thank you sir!\n>\n> Were you basically going to navigate through the code or was there  \n> also a slideshow with this?\n>\n> Thanks,\n> D\n>\n> On Wed, Sep 10, 2008 at 9:25 AM, Myles Braithwaite <me@mylesbraithwaite.com \n> > wrote:\n> If anyone is interested in the code I was going to show if I have a  \n> projector you can take a look at it here:\n>\n> http:\/\/github.com\/myles\/tlug-presentation-2008-09\/tree\/master\n>\n> ---\n> Myles Braithwaite\n> me@mylesbraithwaite.com\n> http:\/\/mylesbraithwaite.com\/\n>\n> Please consider the trees before print this email.\n>\n>\n>\n>\n> -- \n> dave.s.doyle@gmail.com","References":["<1220839668.20490.7.camel@coral.ss.org>","<0CAAE4C8-EE39-42D1-9696-54ADF50C245C@mylesbraithwaite.com>","<ccef7f7b0809101212s6ef6ec71pf36b7c66bacaafa7@mail.gmail.com>"],"In-Reply-To":"<ccef7f7b0809101212s6ef6ec71pf36b7c66bacaafa7@mail.gmail.com>","Message-Id":"<8A3BAD8C-0029-469E-9487-ECD68A951B0E@mylesbraithwaite.com>"}},
{"id":"8c7beca9335ec371c48e4e111cba7a7f","key":[1227469173000,"[TLUG-ANNOUNCE]: Nov 25th NewTLUG meeting: 1) The Horizon of Human Interface  2) Linux on Netbooks [oops]"],"value":{"_id":"8c7beca9335ec371c48e4e111cba7a7f","_rev":"439684514","Date":"Sun, 23 Nov 2008 14:39:33 -0500 (EST)","From":{"name":"Herb Richter","email":"hgr@buynet.com"},"Subject":"[TLUG-ANNOUNCE]: Nov 25th NewTLUG meeting: 1) The Horizon of Human Interface  2) Linux on Netbooks [oops]","To":"tlug-announce@ss.org","body":"was:\nThis meeting is free and all are welcome, however, all attendees will be\nrequired to have a security badge. Badges should be prepared in advance.\nIf you plan to attend, please send your name to Paul (off-list at\n<pmora@ca.ibm.com>), preferably by Monday Oct 27th. ...and please be sure\nto return badges to the front reception at the end of the session.\n\nshould be:\npreferably by Monday Nov 24th.\n\n\nHerb Richter\n\n--\nThe Toronto Linux Users Group.      Meetings: http:\/\/gtalug.org\/\nHow to UNSUBSCRIBE: http:\/\/gtalug.org\/wiki\/Mailing_lists"}},
{"id":"656df43234e31da6a6dd60a83fa861eb","key":[1228799786000,"[TLUG-ANNOUNCE]: TLUG Meeting Tue Dec 9."],"value":{"_id":"656df43234e31da6a6dd60a83fa861eb","_rev":"3029887327","Subject":"[TLUG-ANNOUNCE]: TLUG Meeting Tue Dec 9.","From":{"name":"Drew Sullivan","email":"drew@ss.org"},"To":"tlug-announce@ss.org","body":"From:   http:\/\/tlug.ss.org\/wiki\/Meetings:2008-12\nDate: Tuesday December 9, 2008\n\nTime: 7:30 pm \n\nTopic: Apache CouchDB\n\nSpeaker: Myles Braithwaite\n\nDescription:\n\nApache CouchDB is a document-oriented database written in Erlang. It is\nnot a normal RDMS (like PostgreSQL and MySQL) but stores it's\ninformation in JSON documents that can be accessed though a RESTful HTTP\nAPI. It is similar to Amazon SimpleDB, Google BigTable, and Lotus Notes.\n\nIf you are interested please download and install CouchDB on your laptop\nbefore the meeting.\n\nLocation:\n\nTBA, but will likely be:\n\n   Room GB248, Galbraith Building, University of Toronto\n   Toronto, Ontario M5S 3G8 \n   University of Toronto\n\nSchedule\n\n6:00 PM - There will be an informal get together of Linux fans at the\nPho Hung restaurant 350 Spadina Ave. to talk about Linux related topics\nover Vietnamese style food.\n\n7:30 PM - Meeting and presentation.\n\nLate evening - After the presentation a large group of Linux fans will\nmove to a nearby pub for further informal socializing.\n\nNext meeting see: http:\/\/tlug.ss.org\n\n\n\n\n--\nThe Toronto Linux Users Group.      Meetings: http:\/\/gtalug.org\/\nHow to UNSUBSCRIBE: http:\/\/gtalug.org\/wiki\/Mailing_lists","Date":"Tue, 09 Dec 2008 00:16:26 -0500"}}
]}

email_address_list

map.js
function(doc) {
  if (doc.Subject && doc.From) {
    emit(doc.From['email'], 1);
  }
};

===== reduce.js =====

<pre>function(keys, values) {
	return sum(values);
}
Returns
$ curl 'http://127.0.0.1:5984/address_book/_view/emails/email_address_list'
{"rows":[{"key":null,"value":7}]}

Images

Customize