On 16 Sep 2008, at 19:38, Techbelly wrote:
>
> I have two talk suggestions, the first more appropriate for an 8
> minute slot and the second for 30 minutes.
>
> 1. Ruby simple text processing on the command line (eg. on log files)
> • using -p, -n and -e flags to the ruby interpreter
> • one liners that are easier for mortals to grok than the
> equivalent grep, sed, awk and tr
> • some tips and tricks that'll make you look good and clever
Sounds like a good quick talk. Do you have some practical examples in
mind? Presumably stuff like getting information out of log files?
>
> 2. Using R with ruby for statistical programming
> • doing some proper statistics with error bars and everything
> using a mixture of R and ruby.
This is intriguing. What sort of statistics have you been performing?
Do you have any examples in mind?
James
>
> James,
>
> I like the way you're implying I might have some iceberg-like plan of
> which my previous email was the tip. Keep it up.
Will do :)
> I'll try and come up with some better examples than the log-file ones,
> although that's probably the most common use I've found. How about
> what to do if you come across one of those government data discs that
> they keep losing? If anyone could supply an actual disk that would be
> good otherwise I'll get one from ebay like all the other crims.
I think that log file examples are fine - I didn't mean to give the
impression that I didn't. My command-line grep/sed/awk-fu is as weak
as could be.
> In terms of R - I've used it to analyse and visualise all kinds of
> things but I think it's most interesting in how you attach ruby to it
> - you can call it from ruby, call ruby programs from it or ...
> translate R to ruby somehow.
>
> I found it pretty hard to get started with it, much of the web stuff
> written about R is google-invisible. But it's a really rich seam. My
> talk won't be about statistics, because I'd be willing to guess that
> anyone from the audience would know more than I do.
>
> Here's a taste of how R works with Python: Rpy
> (http://rpy.sourceforge.net/rpy_demo.html) And I'd like to approach
> connecting Ruby and R in that way as an idea at the Manor - there have
> been a few attempts but none have borne fruit AFAIK. The endpoint is
> that R can become a very good statistical library in ruby, and not
> just a scary stats thing.
For me, stats are indeed scary. But I think if you can find an example
that's compelling, this would make a very interesting topic.
Cheers,
James
+1 - my command line is stuck in the land of grep, sed and xargs, be
good to be reminded of Ruby alternatives, particularly useful would be
the incantation for "replace all occurrences of this with that in
these files"
> 2. Using R with ruby for statistical programming
+1 - played with R recently in its native syntax, bit of a nightmare
if you can't find an exact example already pasted online. Does running
from irb might make inspecting results easier?
Rob
2008/9/24 Paul Battley <pbat...@gmail.com>: