July 28th, 2010 Meeting Announcement

6 views
Skip to first unread message

JimCifarelli

unread,
Jul 26, 2010, 9:26:41 AM7/26/10
to TechValley Ruby Brigade
Hello Everyone,

We are meeting this 4th Wednesday of this month, July 28th, in
downtown Troy at the headquarters of Celery:

Celery, LLC
212 River Street
Troy, NY 12180
http://www.mycelery.com

We can begin to gather at 5:30PM with presentations/lightning rounds/
discussions at 6:00PM.

Please add to this thread anything you would like to discuss!

Please RSVP to this thread. Thank you Neil for hosting the group!

Thank you,
Jim

Doon

unread,
Jul 26, 2010, 11:02:38 AM7/26/10
to TechValley Ruby Brigade
I'll Be there.

I've been attempting to dust off and update my using vim
presentation. Hopefully I get it cleaned up and updated enough to get
give a quick presentation on how to get started with using it.

-patrick

JimCifarelli

unread,
Jul 26, 2010, 2:20:36 PM7/26/10
to TechValley Ruby Brigade
I'll be discussing the use of credit card magnetic strip readers and
barcode scanners in web aplications.

Also, I need everyones help to finish a ruby script to identify
duplicate directories within a given path. It's not enough to just
know the thousands of files that are duplicates. To know that a
directory and it's underlying "branch" is duplicated on a hard drive
can make cleaning a filesystem less painful. My goal isn't to download
a program and run it, but to write the script in Ruby! (Gen 1: Compare
using file and directory names, Gen 2: Compare using MD5 hashes of
file content, Bonus: Knowing when a branch is 98% equal to another
branch)


-Jim

Dallas DeVries

unread,
Jul 26, 2010, 2:34:40 PM7/26/10
to techva...@googlegroups.com
Sounds like a fun activity Jim.  I will of course be there as usual and hopefully not have to leave too early :)


--
You received this message because you are subscribed to the Google Groups "TechValley Ruby Brigade" group.
To post to this group, send email to techva...@googlegroups.com.
To unsubscribe from this group, send email to techvalleyrb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/techvalleyrb?hl=en.




--
Dallas DeVries
SportSpyder, LLC
http://sportspyder.com

Thomas Porter

unread,
Jul 26, 2010, 2:43:05 PM7/26/10
to techva...@googlegroups.com
Can you use python? There is a really slick library that compares two
directories and their contents. I'll follow up with details when I
get home.

Sent from my iPhone

Edward Prevost

unread,
Jul 26, 2010, 2:46:34 PM7/26/10
to techva...@googlegroups.com
Python!?!?

Blasphemy!!

Mark Menard

unread,
Jul 26, 2010, 3:07:32 PM7/26/10
to techva...@googlegroups.com
If the baby doesn't show up I will be there. Otherwise I'll send pictures.

Mark

--
Mark Menard
518.369.7356
http://www.vitarara.net/
Twitter: @mark_menard
AIM: MJFXMenard

Mark Menard

unread,
Jul 26, 2010, 3:09:01 PM7/26/10
to techva...@googlegroups.com
Stone him! Stone him!

;)


^
|

Yes, that's a wink!

We love you Tom.

Mark

> --
> You received this message because you are subscribed to the Google Groups "TechValley Ruby Brigade" group.
> To post to this group, send email to techva...@googlegroups.com.
> To unsubscribe from this group, send email to techvalleyrb...@googlegroups.com.

> For more options, visit this group at http://groups.google.com/group/techvalleyrb?hl=en.

Gemma Hentsch

unread,
Jul 26, 2010, 3:10:35 PM7/26/10
to techva...@googlegroups.com
Though I walk through the valley of the shadow of ruby, I shall fear
no rails for I carry the power and word of python in my heart!

Sent from my iPhone

Mark Menard

unread,
Jul 26, 2010, 3:51:30 PM7/26/10
to techva...@googlegroups.com
On Mon, Jul 26, 2010 at 3:10 PM, Gemma Hentsch <rassil...@gmail.com> wrote:
> Though I walk through the valley of the  shadow of ruby, I shall fear
> no rails for I carry the power and word of python in my heart!

Oh thou parsel tongued one. Your one line comprehensions are no match
for our multi-line block expressions. You have been blinded by the
light of your "white" space. Seek ye out the true path to dynamic
wisdom.....

...and learn Lisp!

Bet you didn't see that coming,

Mark

Gemma Hentsch

unread,
Jul 26, 2010, 3:56:17 PM7/26/10
to techva...@googlegroups.com
I offer the way to true power, free from your feeble magic, lack of requirement for beautifully formatted code, and your strange and sinful monkey patching....

- the corruptor of innocent ruby programmers

Edward Prevost

unread,
Jul 26, 2010, 3:58:40 PM7/26/10
to techva...@googlegroups.com
Is that you Scala?!

JimCifarelli

unread,
Jul 26, 2010, 4:14:36 PM7/26/10
to TechValley Ruby Brigade
Hi Tom,

There may be a slick library for Ruby too.... I haven't looked. If
anyone out there has some wisdom with regards to this issue, bring it!

-Jim

On Jul 26, 2:43 pm, Thomas Porter <tom.x.por...@gmail.com> wrote:
> Can you use python?  There is a really slick library that compares two  
> directories and their contents.  I'll follow up with details when I  
> get home.
>
> Sent from my iPhone
>
> On Jul 26, 2010, at 2:20 PM, JimCifarelli <cifare...@gmail.com> wrote:
>
>
>
> > I'll be discussing the use of credit card magnetic strip readers and
> > barcode scanners in web aplications.
>
> > Also, I need everyones help to finish a ruby script to identify
> > duplicate directories within a given path.  It's not enough to just
> > know the thousands of files that are duplicates.  To know that a
> > directory and it's underlying "branch" is duplicated on a hard drive
> > can make cleaning a filesystem less painful. My goal isn't to download
> > a program and run it, but to write the script in Ruby! (Gen 1: Compare
> > using file and directory names, Gen 2: Compare using MD5 hashes of
> > file content, Bonus: Knowing when a branch is 98% equal to another
> > branch)
>
> > -Jim
>
> > --
> > You received this message because you are subscribed to the Google  
> > Groups "TechValley Ruby Brigade" group.
> > To post to this group, send email to techva...@googlegroups.com.
> > To unsubscribe from this group, send email to techvalleyrb...@googlegroups.com
> > .
> > For more options, visit this group athttp://groups.google.com/group/techvalleyrb?hl=en
> > .- Hide quoted text -
>
> - Show quoted text -

Thomas Porter

unread,
Jul 26, 2010, 9:18:33 PM7/26/10
to techva...@googlegroups.com
gist of sample python code that compares two dirs and copies to a third

http://gist.github.com/491559

Mark Menard

unread,
Jul 28, 2010, 11:35:35 AM7/28/10
to TechValley Ruby Brigade
It's looking like I might not be at RB tonight. Sylva thinks she might
be starting very early labor. If I don't make it have a good time.

Mark

On Jul 26, 9:26 am, JimCifarelli <cifare...@gmail.com> wrote:
> Hello Everyone,
>
> We are meeting this 4th Wednesday of this month, July 28th, in
> downtown Troy at the headquarters of Celery:
>
> Celery, LLC
> 212 River Street
> Troy, NY 12180http://www.mycelery.com

Gemma Hentsch

unread,
Jul 28, 2010, 11:37:43 AM7/28/10
to techva...@googlegroups.com
Preemptive congratulations :)

Thomas Porter

unread,
Jul 28, 2010, 12:15:30 PM7/28/10
to techva...@googlegroups.com
Linda and I will be thinking of you both!

Thomas Porter

unread,
Jul 28, 2010, 12:15:46 PM7/28/10
to techva...@googlegroups.com
JIm,

I will be there.

Andrew Badera

unread,
Jul 28, 2010, 12:28:44 PM7/28/10
to techva...@googlegroups.com
w00t!

--ab


On Wed, Jul 28, 2010 at 11:35 AM, Mark Menard <mark.me...@gmail.com> wrote:

Edward Prevost

unread,
Jul 28, 2010, 12:32:09 PM7/28/10
to techva...@googlegroups.com
Well if Porter is going, so am I. :)
++attendees

Mark Menard

unread,
Jul 28, 2010, 12:59:24 PM7/28/10
to techva...@googlegroups.com
You know. Someone might think you were stalking Tom. ;)

Mark

--
Mark Menard
518 369 7356
ma...@mjm.net
Business: http://www.vitarara.net/
Personal: http://www.vitarara.org/

Sent from my iPhone

Thomas Porter

unread,
Jul 28, 2010, 2:59:02 PM7/28/10
to techva...@googlegroups.com
In Soviet Russia, Tom stalks YOU

Edward Prevost

unread,
Jul 28, 2010, 3:03:18 PM7/28/10
to techva...@googlegroups.com
Moving to Russia!

Andrew Badera

unread,
Jul 28, 2010, 3:04:10 PM7/28/10
to techva...@googlegroups.com
Or perhaps Russia is moving to you?

--ab

Edward Prevost

unread,
Jul 28, 2010, 3:05:50 PM7/28/10
to techva...@googlegroups.com
Making room for Russia in the guestroom!

Edward Prevost

unread,
Sep 4, 2010, 11:16:59 AM9/4/10
to techva...@googlegroups.com
I thought this was a good overview, as we had touched on some of this
at the last meeting.... food for thought:
http://www.collegescholarships.org/research/student-loans/

Edward Prevost

unread,
Nov 13, 2012, 6:11:09 PM11/13/12
to techva...@googlegroups.com
LibXML?

Given:

<this>
<that id="1" which="was" those="that" are="characteristics"/>
<that id="2" which="was" those="that" are="characteristics"/>
<that id="3" which="was" those="that" are="characteristics"/>
<that id="4" which="was" those="that" are="characteristics"/>
</this>

What am i doing wrong here:

require 'open-uri'
require 'xml'

p 'start xml test'

url = 'https://path/to/uri/that/returns/the/above/given/'
xml = open(url).read
source = XML::Parser.string(xml)
content = source.parse

p "consumed url"

nodes = content.root.find('/this/that')
nodes.each do |thing|
p thing
end

-Ed

Ryan Scott Lewis

unread,
Nov 13, 2012, 6:17:08 PM11/13/12
to techva...@googlegroups.com
What errors are you getting?
This is working fine for me.

test.xml:

<this>
<that id="1" which="was" those="that" are="characteristics"/>
<that id="2" which="was" those="that" are="characteristics"/>
<that id="3" which="was" those="that" are="characteristics"/>
<that id="4" which="was" those="that" are="characteristics"/>
</this>

xml.rb:

require 'pathname'
require 'xml'

xml = Pathname.new('test.xml').expand_path.read
source = XML::Parser.string(xml)
content = source.parse

nodes = content.root.find('/this/that')
nodes.each do |thing|
  p thing
end

- Ryan

Edward Prevost

unread,
Nov 13, 2012, 6:20:05 PM11/13/12
to techva...@googlegroups.com, Ryan Scott Lewis
no errors, just no output...
Reply all
Reply to author
Forward
0 new messages