align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditemptyheartfacebookfullheartglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Re: [ny-scala] Scalathon this Saturday -- you should come

From: Eugene Y.
Sent on: Wednesday, July 25, 2012 3:11 PM
scala> val profs2 = Http(profiles <<? key + ("fields" -> "attendance_count") + ("group_urlname" -> "ny-scala") + ("member_id" -> ids().mkString(",")) OK as.xml.Elem)
profs2: dispatch.Promise[scala.xml.Elem] = Promise(-incomplete-)

scala> val attendances = for (p <- profs2) yield for (i <- p \\ "item"; n <- i \ "name"; a <- i \ "attendance_count") yield (n.text, a.text.toInt)
attendances: dispatch.Promise[scala.collection.immutable.Seq[(String, Int)]] = Promise(List((Richard Costine,1), (Nilanjan,1), (Geoffrey Knauth,0), (Brendan W. McAdams,10), (jherber,1), (Artie Pesh-Imam,9), (Jon Shea,3), (Josh Suereth,1), (Prashanth Acharya,1), (Richard Wall,0), (Rose Toomey,11), (Mahmood Ali,5), (Joe Stein,4), (Jon Pretty,1), (Brian Enochson,0), (Hywel Evans,0), (Eric Pederson,19), (Chris League,22), (Paul Fryzel,13), (Derek Brown,2), (Seth Tisue,1), (Alex Gleyzer,14), (Steve Levine,2), (Stan Rosenberg,1), (Leon Tubert,2), (John Tan,2), (Mike Selender,14), (Jorge Ortiz,17), (Owein,1), (Ievgen Platonov,17), (Jim Powers,8), (Nikita Ivanov,2), (Oleksii Iepishkin,14), (Nermin Serifovic,1), (Doug Tangren,35), (Rao Venu,2), (Eugene Yokota,8), (Bill Venners,0), (Brian Clapper...
scala> for (n <- attendances().groupBy(_._2).toSeq.sortBy(_._1)) println("%s: %s" format (n._1, n._2.map(_._1).sorted.mkString(", ")))
0: Aemon Cannon, Bill Venners, Brian Enochson, Geoffrey Knauth, Hywel Evans, Richard Wall
1: Brian Clapper, Jon Pretty, Josh Suereth, Nermin Serifovic, Nik Kolev, Nilanjan, Owein, Prashanth Acharya, Richard Costine, Seth Tisue, Stan Rosenberg, jherber
2: Derek Brown, John Tan, Leon Tubert, Nikita Ivanov, Rao Venu, Steve Levine
3: Jon Shea
4: Joe Stein
5: Mahmood Ali
8: Eugene Yokota, Jim Powers
9: Artie Pesh-Imam
10: Brendan W. McAdams
11: Rose Toomey
13: Paul Fryzel
14: Alex Gleyzer, Mike Selender, Oleksii Iepishkin
17: Ievgen Platonov, Jorge Ortiz
19: Eric Pederson
22: Chris League
35: Doug Tangren
43: Nathan Hamblen



On Wed, Jul 25, 2012 at 2:32 PM, Talmai Oliveira <[address removed]> wrote:
A solution would be then to do an analysis of the number of meetups each profile RSVP'd to, but didn't attend. That could give us a rough analysis of how "reliable" the person was. Maybe also consider "time registered on meetup.com", "number of meetups attended", and other features.

False-positives is hard to deal with, given that "life happens" and even "reliable" people may be unable to go... And people are inherently unstable. ;)

T.

On Wed, Jul 25, 2012 at 2:25 PM, Nik Kolev <[address removed]> wrote:
i guess i'll be the "well actually" dood...

the question as stated was asking for NY'ers which I guess means New Yorkers or in the context of the conversation people that will be coming down to the city of brotherly love from new york. if that's the case, the solution, although technically clever, provides an answer that may be polluted by false positives as at least one of the specimens in the answer is a member of ny-scala due to his attending the inaugural NE Scala Symposium.


On Wed, Jul 25, 2012 at 12:03 PM, Talmai Oliveira <[address removed]> wrote:
Ah, I see what you did there. :)

Thanks.

T.

On Wed, Jul 25, 2012 at 11:43 AM, Nathan Hamblen <[address removed]> wrote:
On 07/25/[masked]:51 AM, Talmai Oliveira wrote:
Do we have a list of NY'ers who are going?

We can query the Meetup API to see who's going from ny-scala.

scala> import dispatch._
import dispatch._

scala> val key = Map("key" -> aRealAPIKey)
key: scala.collection.immutable.Map[java.lang.String,java.lang.String] = Map(key -> 2a[masked]e612c631a854a71427)

scala> val rsvps = url("https://api.meetup.com/2/rsvps.xml")
rsvps: com.ning.http.client.RequestBuilder = com.ning.http.client.RequestBuilder@3ff70d3c

scala> val elems = Http(rsvps <<? key + ("event_id" -> "[masked]") OK as.xml.Elem)
elems: dispatch.Promise[scala.xml.Elem] = Promise(-incomplete-)

scala> val ids = for (e <- elems) yield for (id <- e \\ "member_id") yield id.text
ids: dispatch.Promise[scala.collection.immutable.Seq[String]] = Promise(List[masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked],[masked], [masked],[masked],[masked],[masked],[masked], 534604...
scala> val profiles = url("https://api.meetup.com/2/profiles.xml")
profiles: com.ning.http.client.RequestBuilder = com.ning.http.client.RequestBuilder@6bbe5a32

scala> val profs = Http(profiles <<? key + ("group_urlname" -> "ny-scala") + ("member_id" -> ids().mkString(",")) OK as.xml.Elem)
profs: dispatch.Promise[scala.xml.Elem] = Promise(-incomplete-)

scala> val names = for (p <- profs) yield for (i <- p \\ "item"; n <- i \ "name") yield n.text
names: dispatch.Promise[scala.collection.immutable.Seq[String]] = Promise(List(Nik Kolev, Richard Costine, Nilanjan, Geoffrey Knauth, Brendan W. McAdams, jherber, Artie Pesh-Imam, Jon Shea, Josh Suereth, Brian Clapper, Prashanth Acharya, Richard Wall, Rose Toomey, Bill Venners, Mahmood Ali, Aemon Cannon, Joe Stein, Jon Pretty, Brian Enochson, Hywel Evans, Eric Pederson, Chris League, Paul Fryzel, Derek Brown, Seth Tisue, Alex Gleyzer, Steve Levine, Stan Rosenberg, Leon Tubert, John Tan, Mike Selender, Jorge Ortiz, Owein, Ievgen Platonov, Jim Powers, Nikita Ivanov, Oleksii Iepishkin, Nermin Serifovic, Doug Tangren, Rao Venu, Nathan Hamblen, Eugene Yokota))

scala> for (n <- names().sorted) println(n)
Aemon Cannon
Alex Gleyzer
Artie Pesh-Imam
Bill Venners
Brendan W. McAdams
Brian Clapper
Brian Enochson
Chris League
Derek Brown
Doug Tangren
Eric Pederson
Eugene Yokota
Geoffrey Knauth
Hywel Evans
Ievgen Platonov
Jim Powers
Joe Stein
John Tan
Jon Pretty
Jon Shea
Jorge Ortiz
Josh Suereth
Leon Tubert
Mahmood Ali
Mike Selender
Nathan Hamblen
Nermin Serifovic
Nik Kolev
Nikita Ivanov
Nilanjan
Oleksii Iepishkin
Owein
Paul Fryzel
Prashanth Acharya
Rao Venu
Richard Costine
Richard Wall
Rose Toomey
Seth Tisue
Stan Rosenberg
Steve Levine
jherber






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Nathan Hamblen ([address removed]) from ny-scala.
To learn more about Nathan Hamblen, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Talmai Oliveira ([address removed]) from ny-scala.
To learn more about Talmai Oliveira, visit his/her member profile





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Nik Kolev ([address removed]) from ny-scala.
To learn more about Nik Kolev, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Talmai Oliveira ([address removed]) from ny-scala.
To learn more about Talmai Oliveira, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy