Guest72959 has quit [Read error: Operation timed out]
<volty>
they are not 'interchangeable', they are synonims// read ri Enumerable#select, Enumerable#detect
<volty>
guys, no web frontend for ri (somewhere) ?
<s2013>
so if they are synonyms doesnt that mean they are interchangeable? or am i missing smething
<s2013>
so blah.find and blah.detect would be the same thing right?
<popl>
who needs a web frontend? what are you, a girl?
<xybre>
someone thought it was cute to make all the methods rhyme. Hence collect, reject, select, detect, inject == map, ??, find_all, find, reduce. Not sure if there's an equivilent to reject..
eka has quit [Quit: Computer has gone to sleep.]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
JDHankle has joined #ruby
fsck3r has quit [Quit: Leaving...]
<volty>
i like rhymes :) // popl: why not? just another way ... all the possibilities contribute to augmenting the richness (of choice )
<popl>
xybre: respec'?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<popl>
"Oh, let me pick up my pretty floral teacup from my pretty little chantilly lace doily and coquettishly sip while I look at documentation in my pretty pink web browser."
<xybre>
Or apidock.. there's too many places to look but yeah.
medeiros has joined #ruby
nfk has quit [Quit: yawn]
mrsolo has joined #ruby
<popl>
"but yeah" is an interesting linguistic artifact and I am curious about its origin.
<xybre>
I think I read something about it a while back, there's a term for the type of linguistic usage.
* xybre
can't remember the term
<popl>
right?
<popl>
:)
mansi has joined #ruby
<volty>
yap, plenty of docs arround // i need ri because i forget method s (and names too) so i use it integrated in in editor where i can click to jump to (e.g. ri select and then clicking on Enumerable#select instead of typing it)
nomenkun has quit [Remote host closed the connection]
<xybre>
I use "but uhm" all the time as a word whisker, it annoys me every time I do it. It doesn't serve much of a linguistic purpose, while "but yeah" and "so yeah", do serve linguistic purposes of conveying information.
<popl>
Yahoo! Answers is so entertaining.
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Read error: Operation timed out]
<popl>
xybre: I am part hick so I use "y'know?" quite a bit.
<volty>
enrich it by posting funny questions
zarubin has joined #ruby
agjacome has joined #ruby
<xybre>
popl: I like "I'll tell you what" usage as a full sentence.
<popl>
xybre: I do hear that occasionally. :P
<xybre>
Or actually "I tell you what"
snovak has quit [Ping timeout: 245 seconds]
<xybre>
One of my friends has a habit of saying "long as you know!" especially when he drinks.
travisjeffery has joined #ruby
ejnahc has quit [Ping timeout: 245 seconds]
<popl>
Alcohol is the great something-or-another.
xavier23 has quit [Quit: xavier23]
ejnahc has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
[Neurotic] has quit [Ping timeout: 264 seconds]
Naoe-Kanno has joined #ruby
binw has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
binw has joined #ruby
banisterfiend has joined #ruby
SHyx0rmZ has quit [Ping timeout: 240 seconds]
Monie has joined #ruby
pskosinski has quit [Read error: Connection timed out]
pskosinski has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
sayan has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
thesheff17 has joined #ruby
jonahR has quit [Quit: jonahR]
KevinSjoberg has joined #ruby
snath has joined #ruby
philcrissman_ has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
KevinSjoberg has quit [Read error: Connection reset by peer]
zarubin has quit [Read error: Operation timed out]
Deele has joined #ruby
dankest has quit [Quit: Peace]
pskosinski_ has joined #ruby
gnuweb has quit [Ping timeout: 256 seconds]
pskosinski has quit [Ping timeout: 256 seconds]
HavokOC has joined #ruby
philcris_ has joined #ruby
philcrissman_ has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
chairabanta has joined #ruby
gildo has quit [Quit: Leaving]
justsee has quit [Ping timeout: 245 seconds]
atno has quit [Quit: Leaving]
gnuweb has joined #ruby
kaldrenon has joined #ruby
nari_ has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
ericthegreen has joined #ruby
ericthegreen has left #ruby [#ruby]
gnuweb has quit [Read error: No route to host]
justsee has quit [Client Quit]
justsee has joined #ruby
kaldrenon has quit [Ping timeout: 245 seconds]
justsee has left #ruby [#ruby]
iliketur_ has quit [Quit: zzzzz…..]
markalanevans has quit [Quit: markalanevans]
medeiros has quit [Quit: Lost terminal]
hogeo has joined #ruby
stonevil has joined #ruby
chairabanta has quit [Quit: Leaving...]
soba has joined #ruby
bujindan has joined #ruby
marek_ has joined #ruby
Hanmac1 has joined #ruby
hamakn has quit [Remote host closed the connection]
lyanchih has joined #ruby
hamakn has joined #ruby
kinginky has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 268 seconds]
bujindan has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby
cody-- has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
pwh has joined #ruby
bklane_ has joined #ruby
wmoxam has joined #ruby
bklane has quit [Ping timeout: 245 seconds]
Astralum has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
snovak has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
nomenkun has joined #ruby
Ripp__ has joined #ruby
pskosinski_ has quit [Ping timeout: 256 seconds]
Monie has quit [Read error: Connection reset by peer]
Domon has joined #ruby
browndawg has joined #ruby
lyanchih has quit [Quit: lyanchih]
flaccid has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
<flaccid>
hey guys. can anyone recommend a library/gem that can be used for running remote ssh commands via a method and in the return includes both the stdout,stderr and exit code?
<bnagy>
oh you might need open4 to get the exit code though
<bnagy>
just the ssh command
pskosinski_ has joined #ruby
<duncan_bayne>
Hi folks, quick question: have you ever known 'bundle install' to fetch *all* the gemspecs from the server? It's just started doing that on several dev boxes here and is taking forever to complete (still fetching a*).
<flaccid>
ssh command with `` or system is not going to get exit code
Ripp__ has quit [Quit: Ripp__]
gyre007 has quit [Remote host closed the connection]
<flaccid>
bnagy: i'm not sure open4 would work with a command run through an ssh tunnel as that is remote
<bnagy>
why wouldn't it?
<bnagy>
ssh exits with the status of the remote command, no?
dv__ has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
<volty>
ssh's stdin, stdout and stderr are that of the remote command, no?
Monie has joined #ruby
<volty>
s/that/those/
<flaccid>
ah true it does too
dv_ has quit [Ping timeout: 264 seconds]
<flaccid>
i will give it a shot, thanks guys
snath has quit [Ping timeout: 260 seconds]
<bnagy>
I would check to see if open3 preserves $?, you might not even need open 4
<bnagy>
internet says it didn't used to, but it might have been fixed
bklane_ has quit [Remote host closed the connection]
bklane has joined #ruby
johnkary has joined #ruby
<flaccid>
bnagy: thanks. any reason to not just use open4?
<bnagy>
well open3 is stdlib, if it works then it's no dependencies
Alaude has quit []
r4nd0m1 has quit []
bklane has quit [Ping timeout: 264 seconds]
mengu has quit [Quit: This computer has gone to sleep]
aalmenar has joined #ruby
aalmenar has joined #ruby
volty has quit [Quit: Konversation terminated!]
weems has quit [Ping timeout: 240 seconds]
ereslibre has joined #ruby
ereslibre has joined #ruby
weems has joined #ruby
jp- has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
<flaccid>
kk, i will check doc thanks bnagy
philcris_ has quit [Remote host closed the connection]
<jerome__>
i have a problem with a unexpected return (LocalJumpError)
eliasp has joined #ruby
rcosta_ has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
<jerome__>
for turn off a problem due to " 'local' method undefined for nil::Nil:Class " with variable Wx.DatePickerCtrl (from wxruby2) .get_date return, i decide to cinstruct a method local in Nil:Class class... who can return what it attempted for do the job.
eliasp_ has quit [Ping timeout: 264 seconds]
duncan_bayne has quit [Ping timeout: 250 seconds]
<jerome__>
but i have this localjumperror apend.
lewis has joined #ruby
<jerome__>
is someone know how to resolve it ?
lewis is now known as Lewix
hashpuppy has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
Monie has joined #ruby
<banisterfiend>
jerome__ localjumperror usually happens when you 'return' inside a proc
dkamioka has joined #ruby
<flaccid>
bnagy: hmm so the 3rd value returned with for example capture3 is #<Process::Status: pid 16310 exit 1>. i am wondering how to use that object to get out the exit code..
<jerome__>
i read that on web. But here, i return from method def
<Lewix>
jerome__:
s2013 has quit [Ping timeout: 246 seconds]
<Lewix>
jerome__: what's your question
pskosinski_ has quit [Read error: Connection timed out]
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jerome__>
do you know how to resolve the problem ?
<jerome__>
i try go back without return.... same error.
marek_ has quit [Ping timeout: 245 seconds]
<Lewix>
jerome__: I just joined the channel; I have no idea what you're talking about ..fill me in -)
<jerome__>
ok, sorry.
mansi has quit [Remote host closed the connection]
<jerome__>
first, i run a code who works with Wxruby from gem wxruby-ruby-19-2.0.0-darwin9
<jerome__>
and then, when i use the Wx.DatePickerCtrl method (also from exemples include inside the sources), i have a error calling back and said that "local" method is unkowned from nil:NilClass....
<jerome__>
so...
tyfighter has joined #ruby
<jerome__>
i try to look inside, but i have a bundle file i don't know how to open it...
<jerome__>
and so, i try to turn off the problem by make an other method "local" from Nil.Class object
<jerome__>
like that, it is a way for call back what it search to have.
<jerome__>
because of: datepickerctrl.get_date not works with me.
<jerome__>
so...
<Lewix>
my instinct tell me you'll have better luck with Google
ckampfe has quit [Ping timeout: 256 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
<jerome__>
now, the error as changed due to the existence of method "local" in Nil:Class... but retrun an error unexpected return (LocalJumpError)
<jerome__>
i look for google 2 long days around this...
mansi has quit [Ping timeout: 256 seconds]
<jerome__>
i try (i think) all.
<jerome__>
also...
<jerome__>
i think the initial error can been from a "bad" install of gem.
<jerome__>
because when i run ruby -debug (alos for a simple "hello" code), it returns so many arror around "local" OS definition. Something like it lake a dependencie for inentification.
<jerome__>
Do you know something about that ? some other guys had the same problem but i not find the solution too.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Domon has quit [Remote host closed the connection]
pwh has quit [Quit: pwh]
cads has joined #ruby
<flaccid>
bnagy: open3 doing what i need, thanks again!
radic__ has joined #ruby
Domon has joined #ruby
snovak has joined #ruby
<bnagy>
flaccid: excellent :) Reinventing ssh in ruby was sounding crappy
<flaccid>
bnagy: yeah im doing a poc, but told myself that i should be using libs instead of hackery
<flaccid>
plus your point of stdlib yes
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
fsck3r has joined #ruby
Hanmac has joined #ruby
<bnagy>
you using pipeline?
<bnagy>
I never used it..
radic_ has quit [Ping timeout: 256 seconds]
<flaccid>
negative, i ended up using capture3 but i may need pipeline soon
ckampfe has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 245 seconds]
<bnagy>
ahh capture3.. ok I didn't see that for some reason
Ripp__ has joined #ruby
bluOxigen has quit [Remote host closed the connection]
<bnagy>
yeah looks dead simple
bluOxigen has joined #ruby
<flaccid>
it seems pretty fast too, glad i didn't code stuff myself or anything
swordsmanz has quit [Quit: swordsmanz]
[Neurotic] has joined #ruby
okinomo has joined #ruby
ewnd9 has joined #ruby
pwh has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
stonevil has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
freerobby has joined #ruby
Fuzai_ is now known as Fuzai
ewnd9 has quit [Ping timeout: 264 seconds]
jbomo has joined #ruby
DanKnox_away is now known as DanKnox
duggiefresh has joined #ruby
aalmenar has quit [Ping timeout: 245 seconds]
ereslibre_laptop has joined #ruby
ereslibre_laptop has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
okinomo has quit [Quit: Lost terminal]
ereslibre has quit [Ping timeout: 245 seconds]
duracrisis has joined #ruby
okinomo has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
randomau_ has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
freerobby has joined #ruby
randomau_ has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
jamesaanderson has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
Bry8Star{T2 has joined #ruby
jamesaanderson has quit [Client Quit]
<jerome__>
i try again...
jamesaanderson has joined #ruby
<jerome__>
is there someone here can have an idea about why i have a unexpected return (LocalJumpError) coming from a simple method return ?
<jerome__>
look at the and Nil/Class for local method def...
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpg has joined #ruby
<jerome__>
this is for trun off a problem from wxruby code.
jordanbsanders has joined #ruby
<jerome__>
without tuch the wxruby code
huoxito has quit [Quit: Leaving]
<r0bglees0n>
whats the error?
nanoxd has joined #ruby
lyanchih has quit [Quit: lyanchih]
<cpg>
hello, i am seeking some advice to figure out what looks like a weird "code caching" problem
<jerome__>
if you take it off... this is an other error talk about a "local" method missing from nil::Nil:Class (so... call inside wxruby an empty object where sure, there is no local method)
Hanmac has quit [Quit: Leaving.]
cody-- has quit [Quit: Computer has gone to sleep.]
<cpg>
there is some code that has to be executing, yet when i change it, there are no changes in behavior
<cpg>
this is on rails 2.0
<cpg>
woops, ruby 2.0
neo_ has joined #ruby
<cpg>
is there a code cache or something?
<jerome__>
the error: unexpected return (LocalJumpError)
bluOxigen has quit [Ping timeout: 264 seconds]
<jerome__>
cpg, what is ?
<cpg>
basically i change some code in a method that *seems* to be called
<cpg>
but i see no changes in behavior
<jerome__>
could you write how you do this ?
<cpg>
there is another process potentially running this ruby code as well, under rails and passenger
<popl>
cpg: have you asked in #rubyonrails?
<cpg>
popl: i think rails may not be involved, so did not ask there yet
<bnagy>
so I'm betting rails weirdness, cause ruby doesn't do that
NealJ has quit [Quit: :c]
<cpg>
and no other code can print the line that includes "picked up from cache"
insanedreamr has joined #ruby
<cpg>
so i am thinking i am not running that code
browndawg1 has quit [Read error: Connection timed out]
<cpg>
but what other code is being run???
<cpg>
i even stoppped the httpd process to make sure there no funky caching going on, etc.
<cpg>
hence my question about caching or something
browndawg has joined #ruby
<bnagy>
well either a long running interpreter still has an old copy, or whatever you're using copies your code somewhere at some point and runs the copy
<cpg>
i'm trying to drill down this
<bnagy>
eg gems
<bnagy>
the ruby interpreter doesn't 'cache'
<cpg>
k. good.
<cpg>
that is what i thought
angusigu2ss has joined #ruby
<cpg>
i see no process with ruby or mri in the name
<cpg>
passenger is stopped
<cpg>
https is also stopped
zigomir has joined #ruby
<cpg>
this ruby script does run through the rails environment
<cpg>
maybe rails (or rack?) does some copying
<bnagy>
*shrug*
<bnagy>
try running it by hand
<cpg>
this is good advice. i am running it by hand
<cpg>
is there some tracing i could turn on?
freerobby has quit [Quit: Leaving.]
nanoxd has joined #ruby
<cpg>
i never had to run ruby under a debugger
<cpg>
:)
<bnagy>
just use 'p' ;)
<bnagy>
I got no time for debuggers in HLLs
<cpg>
:)
dankest has joined #ruby
<cpg>
same here, 6+ years with ruby and never needed it
<bnagy>
looks weird to have in a block, but I dunno what that method is
pwh has quit [Quit: pwh]
<dkamioka>
cpg: oh, will check the website
<dkamioka>
thanks! :)
<cpg>
dkamioka: it's linux
<jerome__>
this is the code that invoke the method (get_date) who not works
<cpg>
on your own pc, with the help of ruby :)
ericmathison has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
<dkamioka>
oh i see
<dkamioka>
that's really neat, watching the video now.
<cpg>
dkamioka: feel free to stop by #amahi any time
<dkamioka>
but it's not what i wanted though, thanks! :)
jamesaanderson has joined #ruby
<dkamioka>
thanks!
<dkamioka>
some other day i was talking with someone about time capsule, and the guy said he was running some software on it.
<dkamioka>
i can not find anything on google. strange.
<dkamioka>
tried to search for 'time capsule jailbreak' 'time capsule ssh'
<dkamioka>
nothing :(
<cpg>
i'd find it more strange if apple allowed any other code running in the TC
<dkamioka>
oh, yeah
<dkamioka>
but i wanna hack it a little, jailbreaking and so.
postmodern has joined #ruby
<dkamioka>
i'v already got a jailbroken Apple TV2
axeman- has joined #ruby
<jerome__>
ok cpg, i see it and understand where it comes from. thanks for your help.
<jerome__>
ho sorry... bnagy and popl, thanks for help
<cpg>
:)
<cpg>
i'll happily take the credit :)
thyagu has joined #ruby
znode has joined #ruby
ericmathison has joined #ruby
__userna1 has quit [Ping timeout: 240 seconds]
crsdev has joined #ruby
ananthakumaran has joined #ruby
davidcelis has left #ruby [#ruby]
crsdev has left #ruby [#ruby]
davidcelis has joined #ruby
axeman- has quit [Remote host closed the connection]
pvizcay has joined #ruby
snovak has joined #ruby
xcfox has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
syed_ has joined #ruby
<cpg>
bnagy: figure out what code was being called (an external script was being called in this exceptional case i was using for debugging)
<cpg>
thanks for the sanity check!
Domon has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Domon has joined #ruby
<cpg>
sometimes, a good bouncing of ideas and sanity check is great
<bnagy>
\o/
Heero has joined #ruby
DonRichie has joined #ruby
Domon has quit [Ping timeout: 245 seconds]
ItSANgo has quit [Quit: Leaving...]
DanKnox is now known as DanKnox_away
KobraKao has joined #ruby
ericmathison has quit [Ping timeout: 240 seconds]
boccobrock has joined #ruby
syed_ has left #ruby [#ruby]
dankest has quit [Quit: Peace]
duracrisis has quit [Ping timeout: 245 seconds]
boccobrock has quit [Quit: WeeChat 0.4.1]
ItSANgo has joined #ruby
iliketur_ has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
snath has quit [Ping timeout: 240 seconds]
<flaccid>
i'm using methadone. and when i use on("--partition", "Indicate the partition of the virtual machine image to forklift") do |partition| , partition always returns true instead of the actual value provided by cli
girija has joined #ruby
KobraKao has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
senayar has joined #ruby
amacgregor has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
avril14th has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
sr78ger has joined #ruby
angusigu2ss has quit [Ping timeout: 256 seconds]
mootpointer has joined #ruby
ndrei has joined #ruby
Catie has quit [Ping timeout: 264 seconds]
filipe has quit [Ping timeout: 245 seconds]
eldariof has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
okinomo has quit [Ping timeout: 256 seconds]
girija has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
workmad3 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
relix has joined #ruby
fn_great has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Client Quit]
ananthakumaran has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alup has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
filipe has joined #ruby
Xeago has joined #ruby
Kabaka_ is now known as Kabaka
JohnBat26 has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
pyrac has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
ananthakumaran has joined #ruby
wallerdev has quit [Quit: wallerdev]
platzhirsch has joined #ruby
r4nd0m1 has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
snovak has joined #ruby
r4nd0m1 has joined #ruby
girija has joined #ruby
mrsolo has joined #ruby
angusigu2ss has joined #ruby
okinomo has joined #ruby
<platzhirsch>
What method again is used when putting objects to the stdout with puts?
<flaccid>
puts ?
snovak has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 264 seconds]
Coffers has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
casheew_ has joined #ruby
ndrei has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
angusigu2ss has quit [Ping timeout: 245 seconds]
tonni has quit [Remote host closed the connection]
pskosinski has joined #ruby
casheew has quit [Ping timeout: 264 seconds]
amarsahinovic has joined #ruby
jongilbraith has joined #ruby
greenysan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
troessner has joined #ruby
samuel02 has joined #ruby
ananthakumaran has joined #ruby
okinomo has joined #ruby
mikecmpbll has joined #ruby
filipe has quit [Ping timeout: 246 seconds]
jprovazn has joined #ruby
ckampfe has quit [Ping timeout: 245 seconds]
allsystemsarego has joined #ruby
pootler has joined #ruby
timonv has joined #ruby
zai has left #ruby [#ruby]
elaptics`away is now known as elaptics
mrsolo has quit [Quit: This computer has gone to sleep]
adambeynon has joined #ruby
okinomo has quit [Ping timeout: 256 seconds]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
okinomo has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
tonni has joined #ruby
bluenemo has joined #ruby
filipe has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
JDHankle has joined #ruby
antn has joined #ruby
visof has joined #ruby
blackmesa has joined #ruby
marek_ has joined #ruby
dgfdgf has joined #ruby
cha1tanya_ has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
dgfdgf is now known as `MArceLL`
filipe has quit [Ping timeout: 246 seconds]
_5kg has quit [Ping timeout: 264 seconds]
JDHankle has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
shaunbak_ has joined #ruby
msuszczy has joined #ruby
greenysan has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
mrsolo has joined #ruby
jibi has joined #ruby
bronson_ has quit [Quit: bronson_]
filipe has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
marek_ has quit [Ping timeout: 240 seconds]
blaxter_ has joined #ruby
blackmesa has joined #ruby
Zai00 has joined #ruby
Coffers has quit [Read error: No route to host]
Coffers has joined #ruby
zmike1234 has joined #ruby
snovak has joined #ruby
ryandeussing has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Matriks has quit [Remote host closed the connection]
antn has quit [Remote host closed the connection]
banisterfiend has joined #ruby
amacgregor has joined #ruby
stonevil has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
angusigu2ss has joined #ruby
ryandeussing has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
ananthakumaran has joined #ruby
angusigu2ss has quit [Ping timeout: 264 seconds]
apfelbox has joined #ruby
<apfelbox>
hi everyone
V8Energy has quit [Read error: Operation timed out]
<xybre>
oi
<apfelbox>
I am trying to create a unified method of calling a function (regardless if it's a proc or a regular function)
gyzmodo has joined #ruby
<apfelbox>
So far I tried (fun.class == Proc ? fun.call(args) : fun(args))
<apfelbox>
But somehow I get "wrong number of arguments" for fun
weems has quit [Ping timeout: 256 seconds]
<apfelbox>
So fun.class actually calls the function?
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<workmad3>
apfelbox: don't forget that 'method_name' is how you call a method in ruby
gustavn has joined #ruby
<hoelzro>
apfelbox: I'm guessing you want fun.call(*args)
<hoelzro>
also, what's a "regular function" here?
HavokOC has quit [Changing host]
HavokOC has joined #ruby
HavokOC has joined #ruby
<krz>
is there another way to merge arrays other than .merge?
<hoelzro>
if you have a method in an Objct, it'll probably respond to .call
<workmad3>
^^
mootpointer has quit [Quit: ENOCAFFEINE.]
<krz>
foo << bar << baz works great with arrays
<apfelbox>
Actually, I am writing a compiler to ruby and need to disambiguated procs and "regular methods".. Take for example:
<krz>
merge looks a bit polluted
<apfelbox>
module MyModule ... def fun ... end ... end
maroloccio has joined #ruby
<apfelbox>
I now have (MyModule.fun.class == Proc ? MyModule.fun.call( .. args inserted by the compiler here .. ) : MyModule.fun( .. args inserted by the compiler here .. ))
<workmad3>
apfelbox: MyModule.fun <-- that calls the method
<apfelbox>
So there is no way to inspect a method at runtime?
obs has joined #ruby
<workmad3>
apfelbox: there is... you need to ask for a method object
atno has joined #ruby
<apfelbox>
how=?
<workmad3>
apfelbox: MyModule.method(:fun)
<workmad3>
apfelbox: and once you have that, you can just use .call on it
<apfelbox>
But for this I already need the knowledge, whether it is a method or a proc. And this knowledge is what I need :)
<workmad3>
apfelbox: well, stepping back... MyModule.fun <-- doing that will *always* be a method call
<workmad3>
apfelbox: the only time there is ambiguity is when you do 'fun' on its own, at which point 'fun' may be a local variable containing a proc, or a method call
rdark has joined #ruby
akam-it has joined #ruby
<workmad3>
apfelbox: you can inspect that particular case with things like the local_variables collection, or 'defined?(fun)'
ananthakumaran has quit [Read error: Connection reset by peer]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
intuxicated has quit [Quit: Leaving]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
<workmad3>
apfelbox: however, I'd be more tempted, seeing as you're writing a compiler, to write the compiler in such a way that it's the compiler that keeps track of if something is a proc or not, and always output the correct code
gkunno has joined #ruby
gkunno has quit [Excess Flood]
ananthakumaran has joined #ruby
dv__ is now known as dv_
<apfelbox>
workmad3: yes, that is the obvious, but much more complicated way (because I wrote the compiler with the assumption that runtime inspection wouldn't be impossible :( )
gkunno has joined #ruby
gkunno has quit [Excess Flood]
<apfelbox>
Should have checked that up-front, though
gkunno has joined #ruby
gkunno has quit [Excess Flood]
<workmad3>
apfelbox: it's not impossible... but it requires jumping through quite a lot of hoops, and isn't as easy as the JS case where doing 'MyModule.fun' gives you a function object rather than calling the function itself ;)
okinomo has quit [Quit: leaving]
<apfelbox>
workmad3: that is exactly the case I hoped for B)
timonv has joined #ruby
obs has left #ruby ["Konversation terminated!"]
cha1tanya_ has quit [Quit: cha1tanya]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
okinomo has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
okinomo has quit [Client Quit]
gkunno has joined #ruby
gkunno has quit [Excess Flood]
okinomo has joined #ruby
<workmad3>
apfelbox: it's a bit difficult to support that while also supporting the ability to call parameter-less methods without the () ;)
<apfelbox>
workmad3: that's true, chaining of methods wouldn't work
gkunno has joined #ruby
lysw123 has joined #ruby
gkunno has left #ruby [#ruby]
<apfelbox>
Or just implement something like callable in PHP for procs, so that you can do proc() too
<apfelbox>
It's pretty convenient to have a common way of calling something
<workmad3>
apfelbox: it is
<workmad3>
apfelbox: in ruby, that common way is '.call'
<apfelbox>
except for methods ;-)
<workmad3>
apfelbox: for all objects that are callable
<workmad3>
apfelbox: it's true for method *objects*
io_syl has quit [Quit: io_syl]
ckampfe has joined #ruby
hakunin has quit [Remote host closed the connection]
zoee has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
brianpWins has quit [Remote host closed the connection]
mikecmpbll has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
zoee has joined #ruby
mikecmpbll has joined #ruby
antulik is now known as antulik-afk
ckampfe has quit [Ping timeout: 246 seconds]
ndrei has quit [Read error: Operation timed out]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jongilbraith has joined #ruby
marcgg has joined #ruby
calife has joined #ruby
sevenseacat has quit [Quit: Leaving.]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
calife has quit [Client Quit]
calife has joined #ruby
senayar has joined #ruby
jonkri has quit [Quit: jonkri]
ananthakumaran has joined #ruby
aaronmcadam has joined #ruby
ndrei has joined #ruby
calife has quit [Client Quit]
gustavn has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 245 seconds]
gokul has joined #ruby
hamakn has joined #ruby
KevinSjoberg has joined #ruby
samsden has joined #ruby
samsden has quit [Client Quit]
greenysan has joined #ruby
samsden has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
okinomo has quit [Quit: leaving]
okinomo has joined #ruby
greenysan has quit [Ping timeout: 245 seconds]
optimusprimem has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
julweber has joined #ruby
nesoi has joined #ruby
<nesoi>
hello
Alina-malina has quit [Ping timeout: 264 seconds]
<hoelzro>
howdy
cha1tanya has quit [Remote host closed the connection]
<nesoi>
I'm getting an error running rake for migrate to modify a table. It says "uninitialized constant ChangeMyTable". What may I be doing wrong?
<nesoi>
hi hoelzro
iliketur_ has quit [Quit: zzzzz…..]
<jrobeson>
!code
<jrobeson>
err.. no bot
<nesoi>
oh, nevermind... :)
<jrobeson>
your code is wrong nesoi ... ..
<nesoi>
heh, thanks jrobeson
<jrobeson>
next time.. if you have something like that.. paste the code to a pastie
<jrobeson>
it'll be easier for people to help
Hanmac has joined #ruby
<jrobeson>
uhmm i didn't help :(
<jrobeson>
not this time.. perhaps next time
<nesoi>
so if I have something like: class ChangeMyFile < ActiveRecored::Migration etc.
<nesoi>
can I have that in multiple migration files (or whatever the terminology is) or do they all have to be named differently?
ananthakumaran has quit [Read error: Connection reset by peer]
<Hanmac>
nesoi hm isnt that more an #rubyonrails question? i think the guys there have more exp with ActiveRecord
snovak has joined #ruby
<nesoi>
I'm not using rails though, but maybe
<jrobeson>
nesoi, you can't have classes named the same if they are all in the same namesapce
Lewix has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<jrobeson>
pretty sure it loops through the directory sorting by date.. loading one a a time
lewis has joined #ruby
stonevil has joined #ruby
buscon has joined #ruby
hamakn has joined #ruby
<nesoi>
ok thanks!
iliketur_ has joined #ruby
<jrobeson>
nesoi, so they will have to be uniquely named
andreifilimonov has joined #ruby
andreifilimonov has left #ruby [#ruby]
snovak has quit [Ping timeout: 245 seconds]
lewis is now known as Lewix
<nesoi>
jrobeson : really? so in 013_change_my_table and 014_change_my_table I have to have different class names?
cha1tanya has joined #ruby
rcosta has joined #ruby
<jrobeson>
nesoi, looking at a rails appliction example would show you how they do
cassivs has joined #ruby
<jrobeson>
nesoi, i have class CreateGames < ActiveRecord::Migration in one file CreateGamePlayer < ActiveRecord::Migration
<nesoi>
right, but can you have ChangeGamePlayer in two migrations?
gildo has joined #ruby
<workmad3>
nesoi: I wouldn't
<jrobeson>
then it's usually something like AddFooToGamePlayer
<jrobeson>
nesoi, this is all in the rails activerecord docs.. you should read em, even if you don't use rails
<workmad3>
nesoi: all the migrations are probably loaded at the same time, which would mean that if you had two migration classes called 'ChangeGamePlayer', the second one would alter the first one and cause nastiness
<jrobeson>
or rather.. active record migrations guide
<workmad3>
nesoi: they're class names after all... and you don't generally want to call two different classes the same thing ;)
<nesoi>
so how do you do it if there are a lot of changes? ChangeMyTable011 is in file 011_change_my_table.rb ?
browndawg has left #ruby [#ruby]
<workmad3>
nesoi: no, I put in what the changes are, or a description of what necessitated the change
<workmad3>
nesoi: e.g. AddEmailsToUsers. RemoveIpTrackingFromusers, etc
<nesoi>
hm. it didn't like that somehow
<jrobeson>
nesoi, please do what i said
<jrobeson>
go read the guide.. it's all right there
<workmad3>
nesoi: reading the guide also helps
<shevy>
is there a way to use YAML.load_file() with a specific encoding?
<cassivs>
Anyone looking for a new job? We are building a music streaming service and are expanding our tech team. PM for more info!
<nesoi>
what guide?
amacgregor has quit [Ping timeout: 256 seconds]
<jrobeson>
nesoi, the one i mentioned twice
ndrei has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
<jrobeson>
active record migrations guide
<shevy>
nesoi: <jrobeson> or rather.. active record migrations guide
<jrobeson>
i keep putting a space between active and record :(
<jrobeson>
looks like it will actually follow the datamapper pattern.
<jrobeson>
and use a unit of work
<jrobeson>
too bad it doesn't even support an RDBMS
Ripp__ has quit [Quit: Ripp__]
<jrobeson>
i should contribute to it in some way.. even if i'm not smart enough to code a full rdbms backend
katsrc has joined #ruby
rdxc has joined #ruby
ndrei has joined #ruby
<s2r2>
Hey #ruby. I feel stupid right now: is there any way to easily retrieve the netmask (as in 255.255.0.0) from an IPaddr object? I can see it in net.inspect, but regex'ing that output feels bad.
julweber_ has quit [Remote host closed the connection]
<mike4_>
what is this error?
<mike4_>
usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread': end of file reached (EOFError)
<_br_>
what are you trying to do?
<mike4_>
send an email
<mike4_>
ruby email.rb
<mike4_>
from /usr/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
<mike4_>
from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
<mike4_>
from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
<mike4_>
from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
<mike4_>
from /usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
<mike4_>
...
<mike4_>
it worked fine yesterday
alepore_ has joined #ruby
<_br_>
you have a network problem?
<_br_>
did you upgrade ruby?
alepore_ is now known as alepore
krz has quit [Quit: krz]
Bry8Star{T2 has quit [Remote host closed the connection]
krz has joined #ruby
<mike4_>
hmm
<mike4_>
not sure
<_br_>
what did you change from yesterday? Any new installs?
afd___ has quit [Read error: Connection reset by peer]
stonevil has joined #ruby
hiyosi has joined #ruby
parus has quit [Quit: leaving]
tobago has quit [Quit: Leaving]
<_br_>
It looks like some connection issue though, because timeout. Maybe the mail address you are trying to reach is down?
parus has joined #ruby
<mike4_>
don't think it's a network connection. it worked fine yesterday, maybe i need a reboot..
<mike4_>
EOFerror means it didn't read the file properly?
Al_ has quit [Quit: Al_]
<mike4_>
i got it already
<_br_>
Probably buffer
_serial_ has joined #ruby
julweber has joined #ruby
mansi has joined #ruby
mlue has joined #ruby
krz has quit [Quit: krz]
afd__ has joined #ruby
kjellski has joined #ruby
sumark has quit [Remote host closed the connection]
varfoo has quit [Quit: WeeChat 0.4.0]
mansi has quit [Remote host closed the connection]
sumark has joined #ruby
DaniG2k has joined #ruby
ewnd9_ has quit [Ping timeout: 264 seconds]
<DaniG2k>
hey all
mansi has joined #ruby
colonolGron has joined #ruby
<DaniG2k>
I have a few methods that need to use another method
jlebrech has joined #ruby
<DaniG2k>
however, this method differs slightly in one case
<DaniG2k>
I'm wondering what a smart way of writing this would be without repeating myself
<DaniG2k>
so I have Message.where("user_id = ? OR tutor_id = ?", id, id)
<DaniG2k>
so I have Message.where("user_id = ? OR tutor_id = ?", id, id).find(params[:id])
<DaniG2k>
and Message.includes(:tutor).where("user_id = ? OR tutor_id = ?", id, id).group('tutor_id')
<jlebrech>
how would you match the last "." in a string right up to the end of a line?
<DaniG2k>
so theyre all quite similar...wondering if there's a clever way to refactor
ryandeussing has joined #ruby
<apeiros>
jlebrech: what did you try?
mansi has quit [Ping timeout: 240 seconds]
<apeiros>
DaniG2k: #rubyonrails really. but: a) you can put that where into a scope, b) Message.where("user_id = ? OR tutor_id = ?", id, id) returns a relation, and you can store that and build up on it
<jlebrech>
apeiros: [.$]
<jlebrech>
apeiros: not sure how to get the last of anything
<DaniG2k>
apeiros: thanks
<apeiros>
jlebrech: [] is a character class which always only matches a single character, so [.$] matches a single dot or dollar
<jlebrech>
apeiros: or find something and make the match something based on that
<DaniG2k>
apeiros: although one of the ones I mentioned has an includes right after Message
<DaniG2k>
I guess that will have to just be on its own then
<apeiros>
DaniG2k: order of that doesn't matter as long as your where doesn't depend on it
<apeiros>
jlebrech: well, lucky guy, gotta go to a meeting hence: /\.[^.]*$/
<jlebrech>
lol
<DaniG2k>
apeiros: ok thanks
spider-mario has joined #ruby
<apeiros>
that's "dot followed by anything that is not a dot followed by end-of-line"
<banisterfiend>
hanmac kind of weird :) why not use a symbol rather than a frozen string?
johchri has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
<disgrntld>
hello, I have a list of booleans and I'd like to check whether they are all true, is there something like an equivalent to Haskell's 'and' function?
<Hanmac>
banisterfiend: maybe for a VERSION constant? ;P
mansi has quit [Ping timeout: 240 seconds]
<workmad3>
disgrntld: are they in an array?
<workmad3>
disgrntld: if so... ary.all?
<joonty>
disgrntld: [true, true, true].all?
<Hanmac>
banisterfiend: or i ask you why $LOAD_PATH << "path" works but $LOAD_PATH += ["path"] does not?
<disgrntld>
perfect, thanks guys
<workmad3>
hanmac: well, that one doesn't seem too un-obvious :)
<disgrntld>
yea, they are in an array, workmad3, that works great
cha1tanya has quit [Ping timeout: 264 seconds]
<workmad3>
hanmac: at a guess, $LOAD_PATH is assigned as a reference to an internal ruby VM array when the runtime starts up, so re-assigning it breaks stuff ;)
shashin has joined #ruby
shaunbaker has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
cads has joined #ruby
<Hanmac>
hm yeah PS: i make an request that you can make virtual/hooked/readonly global variables with ruby code too, but the ticket was ignored yet
shaunbak_ has joined #ruby
Al_ has joined #ruby
rcosta has joined #ruby
amarsahinovic has left #ruby ["Good night everyone!"]
amarsahinovic has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
colonolGron has quit [Quit: Lost terminal]
senayar has quit [Remote host closed the connection]
sr78ger has quit [Read error: Connection reset by peer]
sr78ger has joined #ruby
ryandeussing has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
verto has joined #ruby
pyrac has joined #ruby
banisterfiend has joined #ruby
jibi has joined #ruby
mike4_ has quit [Ping timeout: 240 seconds]
pixie79 has joined #ruby
angusigu2ss has quit [Ping timeout: 260 seconds]
dallasm_ has joined #ruby
rdhdroid has joined #ruby
Targen has joined #ruby
<rdhdroid>
I'm looking to get a ruby project (projectblacklight.org) using my local smtpd, but so far I've been unable to get it to open a connection to 127.1:25 any pointers?
<_br_>
rdhdroid: 127.1 is invalid, do you mean 127.0.0.1 ?
<rdhdroid>
also address: '127.0.0.1', domain: 'XXX.YYY.ZZZ.edu', port: 25, from: 'no-reply@XXX.YYY.ZZZ.edu' } but the rails app complains that "ArgumentError in CatalogController#email An SMTP From address is required to send a message. Set the message smtp_envelope_from, return_path, sender, or from address." Which I did, so ruby's broken (or not) ability to read ipv4 in dottedquad (with omitted octets) is not to blame.
<_br_>
Probably a bad idea to rely on 127.1 is old BSD heritage.
<rdhdroid>
I'm not really understanding from a sysadmin's POV how to get ruby to talk to my smptd.
eightbitraptor has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
<MrZYX>
ruby!=rails, this is rails yelling at you not ruby. So ask #rubyonrails
<rdhdroid>
I never use 127.1 in SCRIPTS as it takes ONE BAD PROGRAM to bring the stack down... I'll pop over there.
<rdhdroid>
thanks.
SHyx0rmZ has joined #ruby
greenysan has quit [Ping timeout: 264 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
turduks has joined #ruby
turduks has quit [Client Quit]
krainboltgreene has quit [Quit: krainboltgreene]
Neomex has quit [Quit: Neomex]
fgo has quit [Remote host closed the connection]
kenneth has joined #ruby
cads has joined #ruby
turduks has joined #ruby
Voiden has joined #ruby
dross has joined #ruby
turduks has quit [Client Quit]
jamesaanderson has joined #ruby
futilegames has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
cha1tanya has joined #ruby
filipe has quit [Quit: Leaving]
tobago has quit [Remote host closed the connection]
m8 has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
DaniG2k has quit [Quit: leaving]
samsden has joined #ruby
postmodern has quit [Quit: Leaving]
mansi has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
banisterfiend has joined #ruby
devoldmx3 has joined #ruby
IceDragon has joined #ruby
avril14th has quit [Remote host closed the connection]
mpereira has quit [Read error: Connection reset by peer]
maletor has joined #ruby
devoldmx3 has quit [Ping timeout: 245 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx3 has joined #ruby
cads2 has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoxd has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
KobraKao has quit [Ping timeout: 245 seconds]
snath has joined #ruby
<_br_>
Anyone here have experience with Neo4j and Ruby? Pitfalls? Comments? Trying to write an abstract social core with RPC to be used in other apps and am not sure if this is the right approach.
stonevil has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
NealJ has joined #ruby
verto has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
johnjohnson has joined #ruby
stonevil has joined #ruby
pyrac has quit [Ping timeout: 240 seconds]
NealJ has quit [Read error: Connection reset by peer]
NealJ has joined #ruby
jbpros has quit [Quit: jbpros]
axeman- has quit [Remote host closed the connection]
sprites has joined #ruby
okinomo has joined #ruby
sprites has quit [Max SendQ exceeded]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cha1tanya has quit [Quit: cha1tanya]
jbpros has joined #ruby
starfox21 has joined #ruby
MrPoT4tO has joined #ruby
mikecmpbll has joined #ruby
jamesaanderson has joined #ruby
buibex has joined #ruby
Rollabunna has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<_br_>
Is there a non socket, ruby idomatic way to download only a certain size of a given url ?
<apeiros>
_br_: since ultimately any tcp connection uses a socket - I'd say no :)
platzhirsch1 has joined #ruby
<apeiros>
or do you mean "without going as low-level as using a socket directly"?
IceDragon has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Ping timeout: 245 seconds]
<apeiros>
if so, then: iirc net/http can do range queries. not sure, though.
greenysan has joined #ruby
<_br_>
yeah I d
<_br_>
yeah I didn't want to touch socket directly.
<apeiros>
ok. range queries, or if the server you query doesn't support that, a streaming API. I think net/http has that too. but again, not sure.
joonty has quit [Read error: Connection reset by peer]
<_br_>
Fractional: Take a look also at rubular, very handly for regular expressions.
joonty has joined #ruby
<mwlang>
can anyone give me some pointers on constructing a stream of bytes to send across a TCPSocket? The task is simple, but I'm not quite sure how to do it with Ruby (can do it with Pascal and C): basically, I want to build a stream of exactly 21 bytes, first component is a DWORD (4 bytes), second component is a BYTE, and 3rd component is 16 individual bytes (basically a network IP address IP6).
<Fractional>
Rubular? will do. Thank you!
VTLob has joined #ruby
greenysan has quit [Ping timeout: 264 seconds]
<Fractional>
Is it possible to do string[i] !=~ /[aei]/?
V8Energy has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<mwlang>
here's my array of values that needs to become a 21 byte stream: => [1345340929, 4, 192, 168, 50, 104, 0, 0, 0, 0]
alepore has quit [Quit: This computer has gone to sleep]
snovak has joined #ruby
KobraKao has joined #ruby
<Fractional>
What would be the best book to buy for Ruby? I've some experience in C++ and Lua.
ryandeussing has joined #ruby
taion809 is now known as zzz_taion809
<mwlang>
Fractional: The Ruby "Pickaxe" book by Pragmatic Programmers
<sam113101>
Fractional: The Well-Grounded Rubyiest
JohnBat26 has quit [Ping timeout: 246 seconds]
<sam113101>
Rubyist*
<_br_>
mwlang: Puh, that can be messy. Unfortuantely, not as easy as in e.g. Erlang to do things like that. You probably need to play with #pack and #unpack. Also, make sure you know exactly what encoding and endianess you are sending.
ryandeussing has quit [Remote host closed the connection]
<mwlang>
_br_: That's actually what I'm looking at at the moment…just trying to figure out whether I really have a 21 byte stream or not that is appropriate.
<_br_>
mwlang: Its not really an answer, but if you can why don't you switch to e.g. Msgpack or other nice RPC's.
<Fractional>
So, which one of those two should I grab?
<mwlang>
Fractional: Start with the free ones…or read some of the extracts of the Pickaxe and decide: http://pragprog.com/book/ruby4/programming-ruby-1-9-2-0 has a Contents/Extracts tab that lets you review some of the chapters.
camilasan has joined #ruby
<Fractional>
Ok thank you very much!
multi_io_ has quit [Quit: leaving]
<apeiros>
mwlang: that's not really 16 parts in the end, though :)
<mwlang>
_br_: never heard of MsgPack before just now…looks interesting.
<apeiros>
("3rd component is 16 individual bytes")
<_br_>
Well, its one of many dynamic serializer and rpc libs out there.
<mwlang>
apeiros: it gave me same answer as: [0x50304601,0x04,192,168,50,104,0,0,0,0].pack("L1C1C1C1C1C1C1C1C1C1") => "\x01F0P\x04\xC0\xA82h\0\0\0\0"
<mwlang>
so I wasn't sure what the difference was. :-/
<apeiros>
C1C1C1C1C1C1C1C1C1 <-- C9 - but that's 9, not 16
<apeiros>
there's none. you can also put spaces in the pattern (makes some patterns easier to read)
<mwlang>
apeiros: pooh! nice tip
<apeiros>
mwlang: also bware: L | Integer | 32-bit unsigned, native endian (uint32_t)
<apeiros>
native endian
<apeiros>
usually if you have cross-computer communication, you'll want a fixed endian-format
<apeiros>
e.g. "N" instead of "L", which is fixed to "32-bit unsigned, network (big-endian) byte order"
swordsmanz has quit [Read error: Connection reset by peer]
punkrawkR has joined #ruby
swordsmanz has joined #ruby
<mwlang>
apeiros: looking at the docs now to understand better.
senayar has quit [Remote host closed the connection]
<mwlang>
I think this does make sense, so I'm going to give it a twirl and see if the server response with "OK"
<mwlang>
The server's README says, " - Magic dword (0x50304601), in native endian of the platform."
amarsahinovic has quit [Ping timeout: 264 seconds]
<mwlang>
it'll only respond to a client running on the same machine as the server (for security purposes), so I'm thinking I may need to stay with L1
devoldmx3 has joined #ruby
<mwlang>
16 bytes != 16 bits, correct?
devoldmx has quit [Ping timeout: 245 seconds]
pixie79 has quit [Remote host closed the connection]
<mwlang>
ah-ha, just figured out I can call "bytes" on the string: [0x50304601,0x04,192,168,50,104,0,0,0,0].pack("L1C9").bytes => [1, 70, 48, 80, 4, 192, 168, 50, 104, 0, 0, 0, 0]
<mwlang>
which isn't correct.
diegoviola has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
occam has joined #ruby
eightbitraptor has quit [Remote host closed the connection]
roninn has quit [Ping timeout: 264 seconds]
girija has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
occam has left #ruby [#ruby]
<apeiros>
mwlang: 16bytes = 128bits
<apeiros>
since 1byte = 8bits
hogeo has joined #ruby
<apeiros>
yeah, .bytes is essentially the same as .unpack("C*")
tk__ has quit [Quit: ばいばい]
<mwlang>
that's what I thought.
stefunel has joined #ruby
Yakko has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
<apeiros>
it's too short. again, you have only 8 bytes in your network address
devoldmx has quit [Read error: Connection reset by peer]
Davey has joined #ruby
devoldmx has joined #ruby
cantonic has joined #ruby
lucazi has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
timonv has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
Vivekananda has joined #ruby
Bry8Star{T2 has quit [Quit:]
spider-mario has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 260 seconds]
yacks has quit [Read error: Connection reset by peer]
yacks has joined #ruby
pootler has quit [Quit: leaving]
SHyx0rmZ has joined #ruby
chrisja has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
devoldmx has quit [Ping timeout: 260 seconds]
chrisja has quit [Client Quit]
alepore has joined #ruby
<Vivekananda>
Hello everyone. I learnt beginner - intermediate level ruby but nothing about rails
s0ny123 has quit [Quit: Lost terminal]
<Vivekananda>
I have a question
<Vivekananda>
1. how to write a quick crawler in python. ( needs to go in depth and breadth of the site eg ebay or newegg)
Neomex has joined #ruby
<Morrolan>
Python?
noopq has quit [Ping timeout: 264 seconds]
denver has quit [Remote host closed the connection]
<Vivekananda>
Morrolan: sorry looking for python and ruby and I guess ruby would be easier but dont know
<Vivekananda>
so am asking
Soda has joined #ruby
pingo has joined #ruby
bluOxigen has joined #ruby
<Morrolan>
Ah. :)
<Vivekananda>
2. how to get data out and store it in a database preferably avoid duplicate data
<Vivekananda>
Morrolan: what are things I can read / know to do this quickly
<Morrolan>
Web crawlers aren't exactly my area of expertise, stick around a bit, and wait for some others to comment. :)
<Vivekananda>
I had once naively implemented something similar but using regular expressions for gettings items and prices out of the page
noopq has joined #ruby
<Vivekananda>
sure
pel_daniel has joined #ruby
<Morrolan>
There's an excellent HTML parser, called nokogiri. I'd imagine this one will help with fetching information out of HTML pages.
krnflake has quit [Ping timeout: 245 seconds]
blueOxigen has joined #ruby
cha1tanya has joined #ruby
<pingo>
When I try to run a ruby script I get "`require': no such file to load -- kismet (LoadError)" at the line "require 'kismet'". There is a kismet.rb file in the same dierctory, what am I missing?
Rym has quit [Ping timeout: 260 seconds]
<Morrolan>
pingo: The current folder is not part of Ruby's loadpath anymore. Use require_relative 'kismet' in these cases.
Rym has joined #ruby
<pingo>
thanks ill try now
devoldmx has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 245 seconds]
phracker has quit [Ping timeout: 240 seconds]
dash_ has quit [Quit: dash_]
<dkamioka>
Morrolan: is it a 2.0.0 thing?
<dkamioka>
sry, 2.X
<Morrolan>
require_relative? No, 1 .9.x thing.
krnflake has joined #ruby
<pingo>
Morrolan thanks that did it
<Morrolan>
pingo: :)
<pingo>
Getting a syntax error now :/
<Vivekananda>
Morrolan: so should I wait around or look into it ?
<Morrolan>
Vivekananda: I'd stick around, maybe there's libraries which you can use to achieve that. Maybe you'll just get some input. Either way, it doesn't hurt to stay in here for an hour or so. :)
<Morrolan>
pingo: In many cases, the error message should tell you what's wrong. Else, upload error and code to a site like gist.github.com, and someone in here might be able to help.
<pontiki>
Vivekananda: you could look at Mechanize for the web crawler
<Vivekananda>
Morrolan: o no no not at all. I am around mostly.
<Morrolan>
Which line is line 64, pingo?
<pingo>
let me check
<Vivekananda>
pontiki: Morrolan a naive question. suppose you have to get all data of lenovo laptops from newegg. then you will virtually submit a form with the keyword and then go to all pagees and collect data and put it in a db right ? or would you do something else
<pingo>
Morrolan the "break if @die"
timonv has joined #ruby
Rym has joined #ruby
<pontiki>
Vivekananda: first, i'd give the newegg site a look to see how they work
<pontiki>
then, depending on whether they use javascript or not to drive the site, i'd use watirwebdriver (if javascript) or mechanize (if not) to scrape the data
krnflake has quit [Ping timeout: 264 seconds]
<Morrolan>
pingo: Break is only valid inside a, uh, loop-ish thingy. In this case you'll probably want `return if @die`.
<pontiki>
depending upon the sort of data i'm looking for, it's "shelf life", and so on, i'd probably store it in a key/value store
<pingo>
haha ok
julweber_ has quit [Remote host closed the connection]
snovak has joined #ruby
<Morrolan>
I *believe* break works inside blocks only, but I am not sure at all.
amarsahinovic has joined #ruby
<pontiki>
for some value of work
<Vivekananda>
pontiki: in the nuts and bolts of mechanize or watirwebdriver, would they be using reg expressions to actually get data out of an html page ? I wanted to know how the actual data is obtained from the page.
ndrei has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 245 seconds]
<pingo>
Morrolan :*
<pontiki>
if you're not in some block, there's nothing to break out of
<pingo>
it works now
<Vivekananda>
Also how can I know if js is being used? should I look for "text/javascript" ? or something similar ?
Bry8Star{T2 has joined #ruby
<pingo>
I just want to say: it's not my code!
krnflake has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
codezombie has joined #ruby
<pontiki>
i don't really know how they work internally, there must be some sort of regexp going on. however, you interact with them at the DOM level, via methods/css selectors/xpath selectors
viszu has quit [Quit: Leaving.]
snovak has quit [Read error: Operation timed out]
io_syl has quit [Quit: io_syl]
<pontiki>
Vivekananda: re: the js question, no, just because javascript is included doesn't mean it's used to drive the site
phracker has joined #ruby
jonahR has quit [Quit: jonahR]
<pontiki>
Vivekananda: what i mean is that when you click on a link, forever, instead of your client directly calling the http link, javascript intercepts it and does something else with it
mrsolo has joined #ruby
<pontiki>
or say, form submissions
<pontiki>
or paging through products, etc
<pontiki>
there is no simple or formulaic way to tell
<pontiki>
you have to study the page's source
ckampfe has joined #ruby
<Vivekananda>
pontiki: yep of course. So did you mean that if such things ( js taking control over forms) is happenning then the site is "run" by js ? Also, how do I know if a form has js script as its intermediary. Do I look for href tags inside a form for onsubmit ?
<zaargy>
$? is thread local but i keep getting $? set to nil when i run an op inside a thread?
caju has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
<pontiki>
Vivekananda: yes, that's basically what i mean
ndrei has joined #ruby
troessner has quit [Quit: Leaving]
caju has joined #ruby
mklappstuhl has joined #ruby
cantonic has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<pontiki>
Vivekananda: that's the hard part, really; if you're lucky and they have an onsubmit on the form itself, great. but those things can be added by js as well.
tonni has quit [Remote host closed the connection]
caju has quit [Remote host closed the connection]
caju has joined #ruby
<pontiki>
best thing is to use an inspector, like in chrome, safari or firefox's firebug
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
kdaigle has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Remote host closed the connection]
axeman- has joined #ruby
JumpMast3r has joined #ruby
ewnd9_ has quit [Ping timeout: 240 seconds]
ntus1017 has quit [Remote host closed the connection]
<Vivekananda>
pontiki: I have firebug and was using it . But I dont know if it will show all .js files associated with a page or something. ie I dont know how to use firebug like compeltely. Also if it is a huge website then there would be like 100s of .js and .html files not to mention jsp and what not
banghouse2 has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
<Vivekananda>
how will I locate a form in a page with corresponding js function in a .js
<pontiki>
then you should spend some time with it
kdaigle has joined #ruby
<pontiki>
it's too difficult to put into text
greenysan has joined #ruby
<Vivekananda>
pontiki: okay then
pyrac has joined #ruby
<Vivekananda>
so scrapy
carraroj has joined #ruby
<Vivekananda>
sorry mechanize
<Vivekananda>
and
<Vivekananda>
waiter..sth
atyz has joined #ruby
<pontiki>
watir-webdriver
<Vivekananda>
also can these be a part of a bigger software/webapp ?
<pontiki>
i have a few that are no where near as complex as your's sounds
<pontiki>
eh?
<pontiki>
sure? why not?
<pontiki>
i keep all mine in a separate library though, and just keep adding to them
<Vivekananda>
like do they have proper hooks to connect to other software / apps ?
maletor has quit [Quit: Computer has gone to sleep.]
<pontiki>
they're just library calls that return info
<Vivekananda>
eg I want the db layer abstracted. how do I achieve that ? will it be very difficult or require a lot of reading to do ?
<pontiki>
there's no "hooking" involved
<pontiki>
wait
<pontiki>
i'm only talking about the scrapers
<Vivekananda>
pontiki: yep I got the part about scrapers but I also needed to know of storage
<pontiki>
if you're using some kind of ORM (ActiveRecord, etc), it's already abstracted enough
<Vivekananda>
coz all this scraper data will then get to some storage right ?
<pontiki>
maybe
miskander has joined #ruby
<Vivekananda>
mongo db was going to be used but I dont know much about that
snath has quit [Ping timeout: 246 seconds]
<pontiki>
obtaining data and storing data are two completely separate things
<pontiki>
for your case, i'd go with mongodb
<Vivekananda>
I was hoping to provide scraping functionality with proper hooks ( eg hibernate in java) so that the data can be send to any db
<pontiki>
see, that's the exact opposite of what i'd do
<Vivekananda>
and the other guys can take it up from there ( ie storage part)
<Vivekananda>
plz elaborate
zeel has quit [Quit: Less is master race]
Al_ has quit [Quit: Al_]
<pontiki>
scrapers, being highly delicate and brittle things, should just be (re-)pluggable into any other application, and they have a highly specialized and single purpose
eldariof has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<pontiki>
you give it the parameters to look for in the call, it gets the data based on that, and returns an object with the data
<pontiki>
that's *it*
Ripp__ has joined #ruby
brain_shim has quit [Ping timeout: 264 seconds]
<pontiki>
the calling application decides what to do with that data
seich- has quit [Ping timeout: 245 seconds]
dankest has joined #ruby
<Vivekananda>
okay
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantonic has joined #ruby
<Vivekananda>
hmm okay that makes sense
psyprus has quit [Ping timeout: 240 seconds]
<Vivekananda>
the site I actually have to scrape is
jbrechtel has quit [Read error: Connection reset by peer]
<Vivekananda>
angie's list. I am have to try to do it for that site
greenysan has quit [Ping timeout: 245 seconds]
jbrechtel has joined #ruby
<pontiki>
i probably should have said this up front
<pontiki>
but make sure you aren't violating any TOS for the sites you scrape
<pontiki>
which is not in the scraping itself, but in the use of the scraped info
jbrechtel has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
jbrechtel has joined #ruby
seich- has joined #ruby
jamesaanderson has joined #ruby
wesside has joined #ruby
carraroj has quit [Read error: Operation timed out]
<Vivekananda>
pontiki: okay but that is for the company owner to decide
<Vivekananda>
I am just doing what he requested me to do
<Vivekananda>
pontiki: do I need to know a lot of ruby to do this. :(. I only went as far as beggineer- intermediate ruby
<Vivekananda>
and did not even study rails :(
mrsolo has quit [Quit: This computer has gone to sleep]
jbrechtel has quit [Ping timeout: 245 seconds]
mityaz has joined #ruby
duracrisis has joined #ruby
duracrisis has joined #ruby
<Morrolan>
You don't need rails for a web scraper.
chars6 has quit [Ping timeout: 240 seconds]
philcrissman_ has joined #ruby
<Morrolan>
Regarding how those scrapers extract information - I doubt they use regex. They'll use a proper parser.
<Morrolan>
mechanize, for example, depends on nokogiri. I'd wager the bet that it's using nokogiri to parse the HTML.
yacks has quit [Ping timeout: 245 seconds]
<pontiki>
Morrolan: indeed, mechanize uses nokogiri. pretty sure watir does as well, although i've not looked
tyfighter has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
dankest has quit [Quit: Peace]
cantonic has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
KevinSjoberg has joined #ruby
cantonic has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Vivekananda has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
timonv has quit [Remote host closed the connection]
wesside has quit [Quit: I think I heard an ice cream truck..]
<pontiki>
watir can also execute javascript, so it's clearly doing something more
rdark has quit [Quit: leaving]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crunch-choco has joined #ruby
<Hanmac>
apeiros: did you get the new "frozen string"f and "binary string"b syntax?
girija has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
ndrei has joined #ruby
turduks has joined #ruby
<apeiros>
hanmac: nope. sounds good. and frozen binary is "foo"fb ?
duracrisis_ has joined #ruby
<apeiros>
my toy language uses %(binary){text}, verbose, I know. but self-explaining. also sane editors can help with snippets :)
cantonic has quit [Ping timeout: 245 seconds]
<Hanmac>
apeiros: yeah i think yes, … but this freature is totally new its nearly an day old
<banisterfiend>
apeiros you should make your language lazy by default
<banisterfiend>
for the lols
girija has joined #ruby
turduks has quit [Client Quit]
<apeiros>
o0
duracrisis has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 245 seconds]
turduks has joined #ruby
fantazo has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
psyprus has joined #ruby
fenicks has joined #ruby
devoldmx has joined #ruby
<crunch-choco>
guys, i need your help
Vivekananda has joined #ruby
<crunch-choco>
i have a txt file, "##He lives in a house##"
MrPoT4tO has quit [Read error: Connection reset by peer]
<Morrolan>
apeiros: YARD ships core documentation via a separate gem, by the way.
<crunch-choco>
is it possible to copy the string inside both ##?
ndrei has quit [Ping timeout: 245 seconds]
<Morrolan>
(You left before I managed to hit enter)
MrPoT4tO has joined #ruby
<apeiros>
Morrolan: ah, nice. similar to pry-doc then.
<Morrolan>
Yea. :)
<apeiros>
I only really need the core-docs to verify before I tell people to rtfm ;-)
<Morrolan>
Hehe.
<Morrolan>
crunch-choco: Sure. Parsing wiki markup, or some such? :)
dennus has joined #ruby
Matriks has joined #ruby
<apeiros>
crunch-choco: it's possible in about 1001 ways
<Morrolan>
Anyway, depending on whether the amount of hashes are constant or not, and on other circumstances, yea.
<Morrolan>
There's many ways.
<apeiros>
crunch-choco: which one is what you want depends a lot on what you want
jonahR has joined #ruby
<crunch-choco>
:O i would like something simple, i have thought about loops but it's a bit confusing (i'm starting ruby)
robbyoconnor has quit [Excess Flood]
devoldmx has quit [Read error: Connection reset by peer]
<Hanmac>
crunch-choco: str[/##(.+)##/] or str.scan(/##(.+)##/)
<apeiros>
oh, haha, and that my friend depends a lot on your definition of simple :-p
zachrab has quit [Read error: Connection reset by peer]
<Xeago>
I hate having days and weeks explicit
<apeiros>
well, hate it all you want - it's required in some places
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago>
I see applicatios of it, never seen use
<apeiros>
and for those places I love having an actual standard
<dobry-den>
the bloc.io game is a gui layer on top of it. ryanb's original code is a command-line version. but i wouldn't consider it an easy beginner program to hack. but rather a nice game to play with ruby
dangerousdave has quit [Ping timeout: 240 seconds]
<apeiros>
well, financial institutions for one often work based on weeks, not months
lnormous has joined #ruby
<Xeago>
correct, but whenever I say iso8601 they assume yyyy-mm-dd-etc
mrsolo has joined #ruby
<apeiros>
because weeks are cleaner than months (no wacky changes of duration)
greenysan has joined #ruby
<apeiros>
yeah, sure. it's the most common :)
<Xeago>
in holland they always give the start and end-date
axeman- has joined #ruby
<apeiros>
iso8601 also defines durations and intervals
<apeiros>
that's not useful with recurring things, though ;-)
snath has joined #ruby
mwlang has joined #ruby
neonlex has quit [Ping timeout: 245 seconds]
helvete has joined #ruby
atyz has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
mwlang has quit [Read error: Connection reset by peer]
Monie has joined #ruby
rust has joined #ruby
neonlex has joined #ruby
greenysan has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
alvaro_o has joined #ruby
pyrac has quit [Quit: pyrac]
jamesaanderson has quit [Client Quit]
chorkpop has joined #ruby
jbrechtel has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 245 seconds]
chorkpop has quit [Client Quit]
marek_ has joined #ruby
Cache_Money has joined #ruby
<Cache_Money>
If I have a string ("09/02/2013"), how do I convert that to a Date object?
<butblack>
09/02/2013".to_date
dawkirst has quit [Ping timeout: 245 seconds]
<butblack>
"09/02/2013".to_date
<_br_>
Date.parse( "09/02/2013" )
r4nd0m1 has quit []
jbrechtel has quit [Ping timeout: 245 seconds]
greenysan has joined #ruby
companion is now known as Companion
<waxjar>
#to_date seems like a railsism
pyrac has joined #ruby
<_br_>
Yep, looks like namespace pollution to me.
yacks has joined #ruby
<Vivekananda>
pontiki: Morrolan sorry got dc. you guys said that that mechanize and pontiki use a proper 'parser' . What are some methods a parsor would emplay to parse data. I assumed that regex would be at the core of any parser. am I incorrect ?
neonlex has quit [Read error: Operation timed out]
angusigu2ss has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
kirun has joined #ruby
fantazo has quit [Remote host closed the connection]
echevemaster has joined #ruby
mwlang has joined #ruby
greenysan has quit [Ping timeout: 245 seconds]
duracrisis_ has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
DanKnox_away is now known as DanKnox
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
neonlex has joined #ruby
xpirator has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
girija has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
futilegames has quit [Quit: futilegames]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
neonlex has quit [Read error: Connection reset by peer]
<_br_>
Vivekananda: Parser consume Tokens. I think what you mean is called a Lexer (also known as Lexical Scanner, Tokenizer) which might utilize Regular Expressions.
d45h has joined #ruby
cantonic has joined #ruby
miskander has joined #ruby
<Vivekananda>
_br_: okay so now I will try to find out how what tokens are
<Vivekananda>
:)
dawkirst has joined #ruby
<Vivekananda>
so now I should look at mechanize or waiter---driver
neonlex has joined #ruby
<Vivekananda>
which one do I choose :(
<_br_>
What do you actually want to do? Compiler building or web scraping ?
<Morrolan>
When using a tool like nokogiri, you won't have to worry about the underlying parser.
tkuchiki has quit [Remote host closed the connection]
<Vivekananda>
_br_: lol okay. What I want to do is web scraping but I wanted to learn a little bit of the nitty gritty along with that if I could :)
snath has quit [Ping timeout: 245 seconds]
<_br_>
Well there is the choice between SAX and DOM in nokogiri I guess.
aryaching_ has joined #ruby
<Vivekananda>
Morrolan: but people recommended mechanize / waiter---sth as the two options
<Morrolan>
Oh, sure. If you want to do web scraping, those two are probably a good choice.
<Vivekananda>
should look for those or try to read up nokogiri
<Fractional>
Regex is quite interesting!
<Morrolan>
Nokogiri is used by (at least one of them) internally to parse the HTML.
cantonic has quit [Ping timeout: 245 seconds]
<_br_>
Learning parsers by studying webscraper? Hm, maybe not a good idea. Study webscraper by playing with mechanize / watir / phantomjs sure.
amacgregor_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
<Vivekananda>
good okay got it . Morrolan also will 1. Very difficult to learn/deploy 2. how do I store data retrived by parser 3. I need to scrape data at regular intervals so will it do that 4. I dont wish to store duplicate data
ckampfe has quit [Ping timeout: 264 seconds]
<pontiki>
Vivekananda: i believe i gave you the way to decide whether to use mechanize or watir: if the site requires the javascript to operate, you need to use watir
amacgregor has quit [Ping timeout: 256 seconds]
neonlex has quit [Ping timeout: 246 seconds]
<pontiki>
you will definitely need to understand css selectors and xpath selectors regardless, so study those
<apeiros>
dang, I show ruby-warrior to my wife and guess what happens to my computer…
<_br_>
de-duplicate html/xml data? uff. tricky.
<apeiros>
captive for the next half hour until I forcefully retrieve it :D
<pontiki>
hee
gyre007 has quit [Remote host closed the connection]
Matriks has joined #ruby
cads has quit [Ping timeout: 240 seconds]
<_br_>
you could store every node in camlistore
<apeiros>
re "09/02/2013" to date - using plain Date.parse(str) is not sane. there's a world besides US dates…
cads2 has quit [Ping timeout: 245 seconds]
ylluminate has joined #ruby
<_br_>
well, #parse is guessing
<apeiros>
precisely why it's not sane :)
<apeiros>
if you know the format, use a method which takes that as a parameter. e.g. strptime.
<Vivekananda>
pontiki: yep but could you help me figure out the other question I put up ( the 4 questions ? )
<_br_>
Vivekananda: Instead of watir many people also use PhantomJS for a headless browser.
<Morrolan>
3) Just execute your script at regular intervals.
<apeiros>
_br_: na, *guessing* in processing user input is never sane
<Vivekananda>
Morrolan: would I not need a web bot for that ?
<_br_>
apeiros: Point taken :)
<Morrolan>
Err, no. Cron will work just fine.
<apeiros>
(except for cases where this is explicitly what is wanted - like fuzzy inputs such as face recognition etc.)
<Vivekananda>
cron is system dependent isnt it ?
<pontiki>
_br_: you still need watir to actually navigate the site, but using phantomjs is the solution i'd use with it
<_br_>
Make sure when you scrape that you don't overdo it btw. Some sysadmins will not like this and try to block you.
<Morrolan>
Yes.
<Vivekananda>
what if this is a part of a bigger software and will run on , say, a windows system
<Morrolan>
Then use one of Windows' scheduling services to execute it regularly.
<pontiki>
Vivekananda: i cannot see any questions you are referring to
<Morrolan>
Or if you have an application running at all times, just have that one call the scraping tasks. It really depends on your environment.
<Morrolan>
pontiki: "How do I scrape in regular intervals"
miskander has quit [Quit: miskander]
<Vivekananda>
Morrolan: but why not use a web bot. The bot is for this purpose only ( to crawl the web at regular intervals)
<pontiki>
is that not answered, Morrolan ?
<Morrolan>
A web bot?
<Morrolan>
pontiki: Seemingly not. :P
<_br_>
apeiros: Face detection is alot of fun. Wavelets :)
<Vivekananda>
pontiki: -- repasting -- 1. Is mechanize / waiter-- Very difficult to learn/deploy 2. how do I store data retrived by parser 3. I need to scrape data at regular intervals so will it do that 4. I dont wish to store duplicate data
<Vivekananda>
Morrolan: or is the bot functionality already integrated in these scrapers ?
<apeiros>
_br_: I wish I could claim the same about face recognition libraries for ruby (or bindings for those)
<pontiki>
Vivekananda: these are all questions your application design will need to answer
<pontiki>
they aren't just simple one sentence answers
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<Morrolan>
I am unsure what kind of bot you are referring to. Similar to web crawlers emplyed by search engines?
<pontiki>
and, as ever, the only real answer i can give is "it depends"
<Vivekananda>
yes
<_br_>
apeiros: True, but there is always FFI I guess
<pontiki>
but here goes:
<apeiros>
sadly it starts with getting things like openvc installed on osx :'(
Kabaka has quit [Ping timeout: 240 seconds]
weems has joined #ruby
<apeiros>
*opencv
<Morrolan>
That's something which machinize / waiter would do.
<Vivekananda>
pontiki: :). your answer I understand for question 2 but not for 1 and 3 and 4.
<_br_>
apeiros: brew install is a no go?
cha1tanya has quit [Quit: cha1tanya]
<pontiki>
1. neither is difficult to learn or deploy. but the difficulty in using them is the complexity of understanding the sites you are driving/scraping
<Vivekananda>
pontiki: hmm
<apeiros>
_br_: don't remember what ways I tried last time. pretty sure if there was a brew recipe I tried it (and obviously failed)
<pontiki>
2. store it in the way the makes the most sense for persisting the information and accessing it
Elhu has quit [Quit: Computer has gone to sleep.]
<_br_>
apeiros: Hm :/
<apeiros>
_br_: granted, I didn't spend more than probably 2 hours or so since the face recognition stuff was supposed to be the "fun but unecessary" part
<pontiki>
3. there are many ways to schedule things. cron on *nix at the basic system level. delayed jobs is interesting at an application level. and there are so many more
<Vivekananda>
pontiki: so for a basic setup ( the only necessity being to go to all pages of the site and get data) would be easy
<_br_>
apeiros: Well installing stuff is always just boring unfortuatnely.
<pontiki>
4. then figure out a way to itemize your data so you won't duplicate it
<_br_>
ok, off commuting now... later!
<apeiros>
bye _br_
<pontiki>
Vivekananda: "easy" is a hugely subjective term, as well
<Vivekananda>
btw I another thing occured to me. normally a site and its children are easy to figure out if they dont have any js magic behind them but if they do! how would the scraper work ! ?
<pontiki>
oh good grief
amacgregor has joined #ruby
<pontiki>
did the entire discussion of watir go into the blue someplace?
<Vivekananda>
pontiki: if the use case is got to angie's list site and get all data on the site ..
<pontiki>
how did this "just occur to you" when it's the entire basis of the way to choose between mechanize and watir in the first place???
<Vivekananda>
pontiki: sorry sorry okay I will read up that first and then come back
<Vivekananda>
and uselful link ( preferable friendly to a newbie) would be great
<Vivekananda>
pontiki: yep but got dc and not net for sometime :)
<Vivekananda>
so willl read in a bit now
optimusprimem has quit [Ping timeout: 245 seconds]
pyrac has quit [Quit: pyrac]
alepore has quit [Quit: This computer has gone to sleep]
Andrevan has joined #ruby
Andrevan has quit [Changing host]
Andrevan has joined #ruby
Kabaka has joined #ruby
tyfighter has quit [Quit: tyfighter]
zachrab_ has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
ndrei has joined #ruby
BizarreCake has quit [Ping timeout: 240 seconds]
yacks has quit [Read error: Operation timed out]
punkrawkR has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
yacks has joined #ruby
Matriks has quit [Remote host closed the connection]
gildo has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
cantonic has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 245 seconds]
iliketur_ has joined #ruby
Bry8Star{T2 has joined #ruby
buibex has joined #ruby
Es0teric has joined #ruby
senayar has joined #ruby
sayan has joined #ruby
Stygia has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mneorr_ has joined #ruby
<Stygia>
Hey, can someone here recommend a good for someone who's already an experienced programmer, but is new to Ruby? Preferably it'd cover the better features of Ruby and such without the boring pandering to non-programmers.
butblack has quit [Quit: butblack]
gyre007 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Banistergalaxy has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
rcosta has joined #ruby
duggiefresh has joined #ruby
hexacode has joined #ruby
supergiantrobot has quit [Read error: Connection reset by peer]
<hexacode>
or will there be errors because the xml tag is missing? or will there be errors because the xml tag is missing?
supergiantrobot has joined #ruby
pyrac has quit [Quit: pyrac]
verto has quit [Ping timeout: 264 seconds]
<hexacode>
hey you guys. quick question about xml..i know if i work with xml, theres like this xml tag at the opening of the xml file. What i need to know is if any xml to language specific converter can convert a full blown html page (regardless of doctype and if the xml tag is not there) into the native language object? or will there be errors because xml tag is missing?
rcosta has quit [Remote host closed the connection]
<Andrevan>
hexacode: I think you would fall back to some default standard... so yeah it would convert but there might be errors if you used tags or features of a newer standard
rcosta has joined #ruby
relix has joined #ruby
<MrZYX>
look into nokogiri but first you have some misconceptions. HTML is not XML, it's SGML. There's HTML that's XML, called XHTML but that's not widely in use anymore
<Stygia>
Mattias, I really prefer reading a book on a topic to online tutorials... and I could find those just fine. Thanks either way though.
robustus has quit [Ping timeout: 245 seconds]
<apfelbox>
I am writing a compiler Haskell -> Ruby and it is nice to be clear about the semantics ;-)
<apfelbox>
thakns
<TTilus>
apfelbox: oh! nice!
<TTilus>
apfelbox: got it online somewhere?
jbpros has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
<apfelbox>
Not yet, it's an assignment at college
rcosta has quit [Ping timeout: 260 seconds]
<apfelbox>
it also only supports a small fraction of haskell ^^
randomautomator has quit [Remote host closed the connection]
<TTilus>
general translator would have been quite an assignment :)
<Mattias>
are these compilers for porting code?
robustus has joined #ruby
randomautomator has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
<apfelbox>
it is more a theoretical assignment with practical part (to compile a language of one paradigm into another)
jprovazn has quit [Quit: Odcházím]
<apfelbox>
but there are quite a lot (syntactical) differences, which are the real hard part :D
<Mattias>
And the compiler is written in C++? :)
<Mattias>
Three languages in one go!
Spami has quit [Quit: This computer has gone to sleep]
<TTilus>
actually five
mityaz has quit [Quit: See ya!]
<apfelbox>
It's written in haskell (with GHC I get the complete frontend for free B) )
wting has joined #ruby
rcosta has joined #ruby
<TTilus>
brings the count of languages involved down to two :)
brain_shim has joined #ruby
wting has left #ruby [#ruby]
obs has joined #ruby
sambao21 has joined #ruby
<apfelbox>
And that's more than enough! :D
Monie has joined #ruby
randomautomator has quit [Ping timeout: 245 seconds]
<TTilus>
exactly
adambeynon has joined #ruby
<Stygia>
Would anyone know if I'd miss out on anything major if I read Programming Ruby 3'rd ed instead of 3'th ed? It seems to target 1.9 instead of 2.0 - Is 2.0 radically different? Can I easily catch up if I read the 3'rd ed?
<TTilus>
more than enough reason to stay away from c++
<Mattias>
C++ with C code for optimizing a few parts, which also runs the logic in python? all of which compiles haskell into ruby? (that's five language)
<Mattias>
languages*
rcosta_ has quit [Ping timeout: 264 seconds]
<TTilus>
Stygia: not radically
<Stygia>
TTilus, So I wouldn't learn bad habits or anything?
<TTilus>
Stygia: you can easily catch up
<TTilus>
Stygia: no
<Mattias>
Enumerator::Lazy is one new cool thing in 2.0
<Stygia>
TTilus, Fantastic. I would buy the book and just get the newest version, but... 24$ for an ebook is just insane and more than I can afford.
cantonic has quit [Ping timeout: 245 seconds]
sambao21 has quit [Read error: Operation timed out]
<TTilus>
Stygia: to learn bad habits u need to read random snippets online ;)
<Mattias>
Get YNAB and save up for it :P
<Stygia>
TTilus, Hah I'll try to stick to the book and rubymonks, then.
<Stygia>
TTilus, I just really need a book to motivate myself to actually cram it. I swallow books whenever I'm on the bus (every day), but tutorials I mostly get stuck with and loose motivation.
weems has joined #ruby
<TTilus>
Stygia: dont forget to read and write code too
<Stygia>
TTilus, Of course not, I'm learning this to actually write code. :) On my personal project.
__userna1 has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
hasrb has joined #ruby
Fractional has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
timonv has joined #ruby
<TTilus>
good!
<Stygia>
Is there any consistent logic to when parenthesis are optional for function/method calls?
ndrei has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
apfelbox has quit [Remote host closed the connection]
apfelbox has joined #ruby
snovak has quit [Read error: Operation timed out]
timonv_ has joined #ruby
tyfighter has joined #ruby
<apeiros>
Stygia: you can just always use them
<apeiros>
and when you get more comfortable, start leaving them away in places you know you can
timonv has quit [Read error: Operation timed out]
<Stygia>
apeiros, So no consistent rule?
Banistergalaxy has quit [Ping timeout: 264 seconds]
<Stygia>
I'll probably always use them, I generally find they help readability. But still.
<apeiros>
Stygia: sure there is. but it's not quite easy :)
<apeiros>
it depends on what style guide you want to follow too
<apeiros>
easy ones to leave off parens: nothing but a method call on the line with plain params
<apeiros>
nothing but a method call with plain params and a do-block
<Senjai>
Stygia: what we talking about?
apfelbox has quit [Ping timeout: 264 seconds]
<Stygia>
Senjai, If there's a sane rule to when or when not to use parethesis.
<apeiros>
Stygia: actually the simple consistent rule is: leave them away whenever precedence allows it ;-)
mrsolo has joined #ruby
MrPoT4tO has quit [Remote host closed the connection]
<Stygia>
apeiros, Hmm I suppose, though I _tend_ to prefer having them there even if they do nothing for readability.
<Morrolan>
Chances are that this preference will change with time.
<apeiros>
indeed
<Stygia>
Quite possible.
<Stygia>
I just thought it was a mess in perl when they were left out, usually.
<Stygia>
But ruby isn't perl, I know. :P
<Stygia>
Perl's "magic" in my mind is black. I hope that isn't so for ruby.
<apeiros>
it's fine to not write idiomatic ruby code from the beginning
<Rylai>
not having parentheses is oddly really nice
Monie has quit [Ping timeout: 245 seconds]
<Stygia>
apeiros, So it is idomatic to leave them out? I'd rather write idotamic code and adapt my taste than vice versa.
<Stygia>
apeiros, In the specific cases you mentioned already. ;)
<Stygia>
Rylai, Alright, I suppose I'll adust. :)
<Stygia>
I just did not like that in perl.
<apeiros>
Stygia: the more you read & write, the more you'll adapt anyway
<apeiros>
but yes
<Morrolan>
We are Borg. :)
<apeiros>
in many cases it's idiomatic to leave them away
sambao21 has joined #ruby
<apeiros>
e.g. nobody writes `puts("hello world")`
axeman- has quit [Remote host closed the connection]
banisterfiend has joined #ruby
jamesaanderson has joined #ruby
workmad3 has joined #ruby
huoxito has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 264 seconds]
alyi has quit [Read error: Connection reset by peer]
claymore has quit [Read error: Operation timed out]
amacgregor_ has joined #ruby
hollyw00d has joined #ruby
yfeldblum has joined #ruby
obelich has joined #ruby
zacts has joined #ruby
carraroj has joined #ruby
<obelich>
hiyas some one here have experience installing passanger in Centos 5.x + apache2 ?i try to install and get https://gist.github.com/obelich/6417281
claymore has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
bluOxigen has joined #ruby
ldnunes has quit [Quit: Leaving]
<obelich>
?
christianrojas has quit [Ping timeout: 260 seconds]
carraroj has quit [Ping timeout: 264 seconds]
Guedes0 has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
ahegyi has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
St_Marx has quit [Remote host closed the connection]
Xaitec has quit [Remote host closed the connection]
mark_locklear has quit [Read error: Operation timed out]
angusigu2ss has quit [Read error: Connection reset by peer]
<volty>
Agamemnus: because the other code doesn't modify the object
vlad_starkov has quit [Ping timeout: 245 seconds]
<Agamemnus>
i think i found the error
<MrZYX>
also use def self. to make class /module methods
<Agamemnus>
hmm, nope..
<MrZYX>
and don't use instance variables if local variables would suffice
<Agamemnus>
quick question, what is @ for?
<Agamemnus>
@ is an instance variable?
<MrZYX>
yes
<volty>
noooooo
<Agamemnus>
so no @ at all?
<Agamemnus>
that makes it local?
<MrZYX>
yes
<MrZYX>
for i in 0..bar -> (0..bar).each do |i|
<volty>
I like to help people but they have to know at least the basics of the language
<MrZYX>
there's a shortcut to defining string arrays: foo = ['bar', 'baz'] -> foo = %w(bar baz)
aryaching has joined #ruby
<Agamemnus>
need to fix the error before stylistic changes ;)
<MrZYX>
I'm surprised that you don't end up with a NoMethodError right away
<MrZYX>
since you call model.layers without model being defined
<volty>
guys, what do you think about dividing ruby in sub-channels, something like : #ruby-lectures-level-0, #ruby-lectures-level-1 ..., #ruby-assistance etc etc etc
ffranz has quit [Quit: Leaving]
<MrZYX>
volty: we have enough work with redirecting the rails people all the time
<MrZYX>
and it's not like this channel would be extremely high volume
<volty>
redirect this one toward a document about essentials of ruby :)
<volty>
i know MrZYX, but it's too much clutter when about basics
<Agamemnus>
looks like the problem is actually here:
<Agamemnus>
if last_rotation_layer.defined? last_rotation_layer.visible = false
<Agamemnus>
what is wrong with that statement?
<MrZYX>
volty: the maximum of concurrent conversations I've seen here was about three, that's totally manageable
__userna1 has quit [Ping timeout: 240 seconds]
<Agamemnus>
anything obvious?
<MrZYX>
Agamemnus: fix all the stylistic issues, your code is very unreadable currently
<Agamemnus>
:|
<MrZYX>
also do proper indentation while at it
<volty>
MrZYX: es you wish, the mine was about lazy (or fuzzy) people that wish to write programs without knowing essentials (like running with broken legs)
ckampfe has joined #ruby
<Agamemnus>
this is how I do my indentation.
<MrZYX>
volty: that's still the best way to learn a language IMO, just starting to write in it
<miah>
volty: its hard to make an accurate and non-discriminatory assesment of somebodies skills via a few lines of code on irc =)
snovak has joined #ruby
<MrZYX>
Agamemnus: with if sublocks on the same level? ugh
<MrZYX>
I don't even know all the 1.8 specifics anymore
<MrZYX>
grew up with 1.9 :P
<sayd>
is boxen a decent tool? seems really difficult to isntall
<miah>
never used it, i'm a chef nerd though =)
<sayd>
yah its tough to say how many ppl even use it
<miah>
well, apart from github =)
<sayd>
i have a feel that lots have given up in getting anywhere w/it
<miah>
likely
randomautomator has joined #ruby
<miah>
configuration management isn't easy
cantonic has joined #ruby
<sayd>
I get this error trying to install: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)
<miah>
'gem install bundler'
<sayd>
I set GEM_HOME to ~/.gem
<miah>
=)
volty has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
<sayd>
thanks miah.. helped a bit
mklappstuhl has quit [Remote host closed the connection]
<sayd>
now its something with boxen: keychain.rb:54:in `set': Can't save GitHub Password in the keychain. (Boxen::Error)
randomautomator has quit [Remote host closed the connection]
randomautomator has joined #ruby
<miah>
ya, no idea. i dont ruby 1.8, or puppet
jarred has joined #ruby
Agamemnus has left #ruby [#ruby]
Spami has quit [Quit: This computer has gone to sleep]
rcosta has joined #ruby
kirun has quit [Quit: Client exiting]
claymore has quit [Quit: Leaving]
diego1 has joined #ruby
diego1 is now known as diegoviola
Neomex has quit [Quit: Neomex]
Liquid-- has quit [Quit: Computer has gone to sleep.]
randomautomator has quit [Read error: No route to host]
hollyw00d has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
randomautomator has joined #ruby
jarred has left #ruby [#ruby]
randomau_ has joined #ruby
jibi has quit [Quit: .]
apfelbox has joined #ruby
nfk has quit [Quit: yawn]
rcosta has quit [Remote host closed the connection]
randomautomator has quit [Ping timeout: 246 seconds]
tyfighter has quit [Quit: tyfighter]
Andrevan has quit []
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
<zacts>
what is the best way to install ruby-2.0 on debian 7.1.0 (wheezy)? <- debian 7 doesn't seem to include a package for it..
gusnasis___ has joined #ruby
<zacts>
and is RVM worth looking into?
<duggiefresh>
zacts: I'd go with rbenv
<zacts>
zacts <- ruby newbie
Monie has quit [Ping timeout: 264 seconds]
buibex has quit [Remote host closed the connection]
<zacts>
duggiefresh: is that kind of like perlbrew, but for ruby? (assuming you've dabbled in perl at all).
crunch-choco has quit [Quit: leaving]
<volty>
i suggest that newbies should stay with what they already have (invest your time in learning ruby)
<zacts>
volty: I do want to learn 2.0 rather than 1.8 or 1.9, or is there a big difference between those versions?
<volty>
time to learn = time package ryb-.2.0 ready
<duggiefresh>
zacts: I don't have a Perl background... rbenv is a version manager. I prefer it to rvm.
<volty>
little diff
VTLob has quit [Quit: VTLob]
<zacts>
duggiefresh: cool! yeah perlbrew I think is similar, it allows you to manage different versions of perl.
MrZYX is now known as MrZYX|off
Monie has joined #ruby
zzz_taion809 is now known as njkt
njkt is now known as taion809\
taion809\ is now known as taion809
<volty>
- especially for newbies // but if you already have experience with multiple versions ... // i don't know if all the gems are up to to 2 | if & how much backward compatible
Spami has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
pel_daniel has left #ruby [#ruby]
mansi has joined #ruby
cody-- has joined #ruby
brain_shim has joined #ruby
V8Energy has quit []
gusnasis___ has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
colonolGron has quit [Quit: Lost terminal]
mansi has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 264 seconds]
Bira_ is now known as Bira
blz37 has quit [Ping timeout: 246 seconds]
seich- has joined #ruby
gusnasis___ has joined #ruby
Speed has joined #ruby
dennus has quit []
mklappstuhl has joined #ruby
kenneth has quit [Ping timeout: 240 seconds]
adkron has joined #ruby
Asher has quit [Quit: Leaving.]
diegoviola has quit [Ping timeout: 260 seconds]
gstamp has joined #ruby
nhhagen has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
gusnasis___ has quit [Ping timeout: 241 seconds]
Asher has joined #ruby
sailias has joined #ruby
snovak has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lnormous has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 240 seconds]
vxtr9 has joined #ruby
nhhagen has quit [Remote host closed the connection]
snovak has quit [Read error: Operation timed out]
nhhagen has joined #ruby
vlad_starkov has joined #ruby
duggiefresh has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
taptapdan has joined #ruby
blz37 has joined #ruby
nhhagen has quit [Ping timeout: 264 seconds]
taptapdan has quit [Client Quit]
julweber has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
jbomo has quit [Ping timeout: 256 seconds]
gyre007 has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
user258467 has quit [Ping timeout: 256 seconds]
ra has joined #ruby
hasrb has joined #ruby
dennus has joined #ruby
user258467 has joined #ruby
Nisstyre-laptop has joined #ruby
Nisstyre-laptop is now known as Nisstyre
sailias has joined #ruby
slyv has joined #ruby
tkuchiki has joined #ruby
slyv has quit [Max SendQ exceeded]
sailias has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 260 seconds]
ismlages has quit [Remote host closed the connection]
Emiils has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
predator217 has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
dEPy has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: Leaving]
m8 has quit [Quit: Sto andando via]
sailias has joined #ruby
randomautomator has joined #ruby
bricker`LA has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
mansi has joined #ruby
christianrojas has quit [Ping timeout: 264 seconds]
randomau_ has quit [Read error: Connection reset by peer]
gildo has joined #ruby
mootpointer has joined #ruby
ixti has quit [Read error: Connection reset by peer]
ixti has joined #ruby
cads has joined #ruby
cads2 has joined #ruby
cads2 has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 264 seconds]
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonahR has quit [Quit: jonahR]
cody-- has joined #ruby
gusnasis___ has joined #ruby
mrsolo has joined #ruby
Rym has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
apfelbox has quit [Ping timeout: 264 seconds]
gusnasis___ has quit [Read error: Connection reset by peer]