apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
tabolario has joined #ruby
aspiers_ has quit [Read error: Operation timed out]
dkamioka has joined #ruby
<pontiki> Nilium: it is rough. my most creative hours are from 9pm to 3am.
iliketur_ has joined #ruby
the_mentat has quit [Quit: All I've had today is, like, six gummy bears and some scotch.]
chxane has quit [Quit: Leaving]
chxane has joined #ruby
the_mentat has joined #ruby
hiroyuki has joined #ruby
guns has quit [Quit: guns]
nari_ has joined #ruby
volty has joined #ruby
JZTech101 has quit [Remote host closed the connection]
JZTech101 has joined #ruby
chairabanta|away has quit [Quit: Leaving...]
<s2013> the difference between detect and find_all is that detect returns the first record whre as find_all returns all right?
hiroyuki has quit [Remote host closed the connection]
aspiers_ has joined #ruby
hiroyuki has joined #ruby
<s2013> >>
<eval-in> s2013 => nil (https://eval.in/46366)
pirelenito has joined #ruby
<s2013> >> (1..100).detect { |i| i % 45 == 0 and i % 18 == 0 } == (1..100).find_all { |i| i % 45 == 0 and i % 18 == 0 }[0]
<eval-in> s2013 => true (https://eval.in/46367)
randomautomator has joined #ruby
ehaliewicz has joined #ruby
<xybre> s2013: detect == find; find_all == select
<xybre> iirc
hiroyuki has quit [Ping timeout: 264 seconds]
<s2013> i see
<volty> s2013: bash, ri Enumerable#find, ...
tkuchiki has joined #ruby
<volty> (or other if under windows)
<s2013> so its interchangeable?
<s2013> find/detect and find_all/select
markalanevans has joined #ruby
philcrissman_ has joined #ruby
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."
<popl> volty: there's ruby-doc.org
hiyosi has joined #ruby
DanKnox is now known as DanKnox_away
pirelenito has quit [Quit: pirelenito]
nari_ has quit [Ping timeout: 246 seconds]
<popl> volty: I'm just joking around.
ejnahc has quit [Remote host closed the connection]
<volty> ah! ... now I see :)
<xybre> I use http://rubydoc.info/ for documentation, mostly
<popl> there's that one too
<xybre> Or Pry's show-doc functions.
ejnahc has joined #ruby
<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]
pskosinski has joined #ruby
snovak has joined #ruby
<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> open3
<flaccid> as usual there is so many options. maybe start with http://rubygems.org/gems/net-ssh-gateway ?
freerobby has joined #ruby
<flaccid> bnagy: does that have ssh support? i need to run the commands on a remote host through ssh tunnel
<bnagy> well ssh has ssh support
lyanchih has joined #ruby
duncan_bayne has joined #ruby
<flaccid> bnagy: do you mean http://rubygems.org/gems/ssh or just in general?
<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]
agjacome has quit [Quit: leaving]
jerome__ has joined #ruby
Monie has quit [Ping timeout: 256 seconds]
<jerome__> hi
<flaccid> is it just .value when using pipeline http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open3/rdoc/Open3.html
<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__> so
<bnagy> >> Process::Status.instance_methods
<eval-in> bnagy => [:==, :&, :>>, :to_i, :to_s, :inspect, :pid, :stopped?, :stopsig, :signaled?, :termsig, :exited?, :exitstatus, :success?, :coredump?, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class ... (https://eval.in/46378)
<bnagy> flaccid: ^^
Liothen has joined #ruby
mansi has joined #ruby
<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.
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
<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 ?
<popl> jerome__: paste your code to http://gist.github.com
<jerome__> and also, this occur without any "return" command
fsck3r has quit [Quit: Leaving...]
<jerome__> i have 3 files in .rb code and so much in yaml...
<popl> well you know it's nearly impossible for someone else to determine what your problem is without seeing any code.
<jerome__> hmmm....
<popl> jerome__: I suggest you listen to what banisterfiend said above and examine your code for something that matches the behavior he suggested.
mansi has joined #ruby
<jerome__> i try to do something more little who can make hang the same error, if not, you will hate me, sure...
<jerome__> popi, i think this not comes from MY code.
<popl> I'm sorry, I didn't understand that.
<popl> jerome__: There's no way for *us* to know if it does come from your code or not.
<jerome__> i write now a little code ather who can retrun the same error....
<jerome__> more simple to see.
<popl> Ah, ok. You want to make a test case.
<popl> Great idea.
snath has joined #ruby
<jerome__> yes
<popl> :)
jamesaanderson has quit [Client Quit]
mrsolo_ has joined #ruby
areil has joined #ruby
<popl> jerome__: Usually when we write test cases we find the error ourselves.
mrsolo_ has quit [Remote host closed the connection]
<popl> In my experience.
mrsolo_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
brain_shim has quit [Ping timeout: 240 seconds]
mrsolo has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Remote host closed the connection]
ezra has quit [Remote host closed the connection]
browndawg1 has joined #ruby
caju has quit [Remote host closed the connection]
snovak has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
mrsolo_ has quit [Quit: This computer has gone to sleep]
trygil has joined #ruby
nwertman has quit [Remote host closed the connection]
<jerome__> ok...
shellox has quit [Quit: leaving]
snovak has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
trygil has quit [Client Quit]
<jerome__> and i not find why this error.
blueOxigen has joined #ruby
<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> there's no code cache
<bnagy> basically either the change doesn't work like you think it does, or you're not running the code you think you are
<bnagy> eg I get this all the time when I change gems and forget to install the new version :P
<cpg> yeah
<cpg> i get that, … i am trying to drill down on how/where this happens
<cpg> if i raise something in the class, it gets raised
<cpg> so the class is loaded
<bnagy> also btw just do File.read fname or File.binread fname
banisterfiend has quit [Quit: Computer has gone to sleep.]
<cpg> bnagy: what line?
<bnagy> 37..40
<cpg> there is no other code in the app that can write "picked up from cache."
xibalba has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
cantonic has joined #ruby
<cpg> yet if i put a raise in line 31, it does not get raised
<bnagy> oh, that
<bnagy> I bet you're passing an empty string
<cpg> i am a bit baffled but this. i am running this code from a ruby script that calls the deployed rails app (under script/install-app)
<bnagy> that won't be falsey, you should check sha1.empty?
neo_ has quit [Quit: Leaving]
Ripp__ has quit [Quit: Ripp__]
<cpg> it feels as if this method was "compiled" somewhere and executing from there
<cpg> not when i change it and re-run it from the command line
<cpg> some mystery
jamesaanderson has joined #ruby
DanKnox is now known as DanKnox_away
<bnagy> NFI what rails does
jamesaanderson has quit [Client Quit]
Bofu2U has quit [Ping timeout: 276 seconds]
stonevil has joined #ruby
<cpg> bnagy: IO.binread() ?
<cpg> or maybe File inherits from IO ?
<bnagy> well I usually use File.binread when working with files
<bnagy> it does, yeah
<bnagy> it basically the same as File.open(fname, 'rb') {|io| io.read}
<bnagy> but way shorter and easier to understand
nanoxd has quit [Ping timeout: 264 seconds]
<cpg> got it
<cpg> changed
<bnagy> and you got the bit about and empty string is not going to raise at L31, yeah?
<bnagy> *an
bklane has joined #ruby
<bnagy> raise "you suck" unless sha1 && not sha1.empty?
<cpg> bnagy: yes, but i added an unconditional raise
<cpg> that is not raised
<bnagy> ok then I guess you're not running the code you think you are
mrsolo has joined #ruby
stonevil has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
<cpg> bnagy: totally agree. the code prints this https://gist.github.com/cpg/15eb8a6f54004531a49e
<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
antulik-afk is now known as antulik
antulik is now known as antulik-afk
okinomo has quit [Quit: Lost terminal]
<popl> jerome__: reposting will only annoy people.
<dkamioka> Was here that someone said had time capsule running a torrent client?
<jerome__> ok, so, i not understand if people, before beeing annoyed have read or not ?
brianpWins has joined #ruby
<jerome__> so popl, do you have an idea about that ?
<bnagy> yeah I read it, before being annoyed
dhruvasagar has joined #ruby
antulik-afk is now known as antulik
<bnagy> and thought "lol monkey patching NilClass XD"
<jerome__> thanks bnagy, happy to know that.
<jerome__> sure...
<jerome__> take it off and you will see
<jerome__> so, there is no one from wxruby online or in the web.
<popl> in the web?
<popl> like, the WWW?
<jerome__> i try that the force of ruby can be to find an other way for solution... like monkey thinks
<jerome__> sorry popl ?
<jerome__> second ?
<popl> World Wide Web
<jerome__> that's why i'm here... i think i can ask of the best of the best one who caould find wthout use debug mode... (lol
<popl> Is that what you were asking about?
<jerome__> second popy ? I not understand what you mean.
<popl> the feeling is mutual
<popl> :)
<jerome__> i asking about trying to resolve a problem
<jerome__> a problem from wxruby and can maybe contourned by ruby
<jerome__> do you have an idea about that ?
<bnagy> not apart from "don't monkeypatch NilClass"
<jerome__> so, i not understand why it said an error for unexpected return (LocalJumpError)
<bnagy> I guess either you're invoking something incorrectly or wxruby has a bug
<bnagy> so you should work out which of those is the case, and then fix it
<jerome__> maybe
<jerome__> i no have the level for do it
<jerome__> but maybe with ruby i can do with
<jerome__> like create a method (monkey blablabla and also) for do the job missing
<jerome__> do you think it is possible with ruby ?
<jerome__> and why this error from return ?
<bnagy> not a clue
<popl> jfc
DanKnox_away is now known as DanKnox
<jerome__> etr
W|cKeD has joined #ruby
<cpg> dkamioka: i actually started a project that has both time machine targets and a bittorrent client as apps (and built in ruby and rails! :) )
<jerome__> dyk
<bnagy> well the localjumperror is probably your code
<jerome__> ?
<cpg> dkamioka: https://www.amahi.org
<jerome__> sure is it.
<jerome__> but why ?
<bnagy> return event.get_event_object.get_date.to_s
<dkamioka> cpg: does it run on TC?
<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]
travisjeffery has quit [Quit: Textual IRC Client: www.textualapp.com]
yacks has quit [Read error: Operation timed out]
KobraKao has joined #ruby
yacks has joined #ruby
dkamioka has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
KobraKao has quit [Client Quit]
Guest38007 has quit [Quit: Page closed]
pootler has quit [Ping timeout: 256 seconds]
amacgregor_ has joined #ruby
snath has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacgregor has quit [Ping timeout: 256 seconds]
kumarat9pm has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
<flaccid> oh i see, methadone is very intelligient heh, my bads
kumarat9pm has left #ruby [#ruby]
amacgregor_ has quit [Ping timeout: 264 seconds]
DonRichie has quit [Quit: Verlassend]
axeman- has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
insanedreamr has quit [Ping timeout: 240 seconds]
druonysuse has quit [Ping timeout: 245 seconds]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
insanedreamr has joined #ruby
lukec has quit [Quit: lukec]
eldariof has joined #ruby
insanedreamr has quit [Remote host closed the connection]
W|cKeD has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Domon has joined #ruby
cantonic has joined #ruby
bklane has quit [Remote host closed the connection]
insanedreamr has joined #ruby
frobs has quit [Quit: Konversation terminated!]
druonysuse has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 264 seconds]
tagrudev has joined #ruby
brain_shim has joined #ruby
relix has joined #ruby
timonv has joined #ruby
braoru has joined #ruby
yacks has quit [Quit: Leaving]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
snovak has joined #ruby
dross has quit [Ping timeout: 256 seconds]
mneorr has joined #ruby
jordanbsanders has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has quit [Ping timeout: 245 seconds]
thyagu has quit [Quit: Leaving.]
W|cKeD has joined #ruby
cpg has left #ruby [#ruby]
johest has joined #ruby
johest has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacgregor has joined #ruby
pvizcay has quit [Quit: leaving]
amacgregor_ has joined #ruby
ananthakumaran has joined #ruby
ericmathison has joined #ruby
linux_noob_666 has joined #ruby
amacgregor has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
mneorr has quit [Remote host closed the connection]
Targen has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Targen has joined #ruby
tonni has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
apeiros has joined #ruby
ehaliewicz has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
iliketur_ has quit [Quit: zzzzz…..]
optimusprimem has quit [Ping timeout: 245 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
johnkary has quit [Quit: @johnkary]
osvico has quit [Ping timeout: 245 seconds]
echevemaster has quit [Quit: Leaving]
noop has joined #ruby
johnkary has joined #ruby
ananthakumaran has joined #ruby
browndawg has joined #ruby
znode has quit [Remote host closed the connection]
Monie has joined #ruby
tvw has joined #ruby
W|cKeD has quit [Quit: Leaving]
browndawg1 has joined #ruby
andikr has joined #ruby
pootler has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
Zeeraw has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mneorr has joined #ruby
ewnd9_ has joined #ruby
browndawg1 has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
ewnd9 has quit [Ping timeout: 245 seconds]
tonni has joined #ruby
Matriks has joined #ruby
insanedreamr has quit [Quit: insanedreamr]
amacgregor has joined #ruby
amacgregor__ has joined #ruby
tspike_ has joined #ruby
amacgregor_ has quit [Ping timeout: 256 seconds]
jbomo has quit [Ping timeout: 246 seconds]
tspike has quit [Ping timeout: 268 seconds]
snovak has joined #ruby
amacgregor has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
greenysan has joined #ruby
krz has quit [Quit: krz]
krz has joined #ruby
browndawg has joined #ruby
tspike_ has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
iliketur_ has joined #ruby
filipe has joined #ruby
tspike has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
Ripp__ has joined #ruby
greenysan has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby
BlueShark has quit [Ping timeout: 264 seconds]
zoee has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest92486
kevinfagan has quit [Ping timeout: 264 seconds]
ryandeussing has quit [Remote host closed the connection]
ayaz has joined #ruby
jerome__ has quit [Quit: jerome__]
iliketur_ has quit [Quit: zzzzz…..]
tonini has quit [Ping timeout: 245 seconds]
zeroXten has quit [Ping timeout: 256 seconds]
BlueShark has joined #ruby
kevinfagan has joined #ruby
zeroXten has joined #ruby
tonini has joined #ruby
ahawkins has joined #ruby
filipe has quit [Ping timeout: 246 seconds]
Anticom has joined #ruby
hakunin has joined #ruby
pkrnj has joined #ruby
lemonsparrow has joined #ruby
tspike has quit [Ping timeout: 245 seconds]
dash_ has joined #ruby
r4nd0m1 has joined #ruby
ndrei has joined #ruby
pootler has quit [Quit: Lost terminal]
JDHankle has quit [Remote host closed the connection]
tspike has joined #ruby
yxhuvud2 has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
dash_ has quit [Ping timeout: 264 seconds]
dash_ has joined #ruby
cads has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
johnkary has quit [Quit: @johnkary]
noop is now known as noopq
yxhuvud has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 256 seconds]
filipe has joined #ruby
amacgregor__ has quit [Ping timeout: 264 seconds]
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
<jrobeson> in another*
samsden has quit [Quit: Textual IRC Client: www.textualapp.com]
<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 :(
<shevy> could be worse
<shevy> could be you call it AR
<jrobeson> also.. screw activerecord :(
<jrobeson> where's my proper datamapper
<shevy> hehe
<nesoi> where do I find that?
<jrobeson> rubyonrails.org
<shevy> that's the power of google for ya nesoi
<jrobeson> don't people do googleing anymore
lysw123 has quit [Ping timeout: 256 seconds]
<shevy> and why did rails infiltrate #ruby :(
<nesoi> right, the problem with that is that it assumes you're using rails, which I'm not
<shevy> yay \o/
<shevy> jrobeson you evil evil man trying to make people use rails here!
<jrobeson> shevy, using activerecord outside of rails makes that unclear
<nesoi> so it's full of $rails generate whatever
<nesoi> which I'm not using
<jrobeson> nesoi, just read it anyways
<jrobeson> it shows you what style they use.. that's the key.. not the commands
quoin has joined #ruby
<nesoi> ok, thanks
nomenkun has quit [Remote host closed the connection]
<jrobeson> shevy, in that case.. activerecord is just another ruby library that they could ask about
darksoox has joined #ruby
<nesoi> I got it to work though. It complained about reusing the name
<nesoi> later!
nesoi has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<shevy> catch him!
<jrobeson> that's idiotic
<jrobeson> wow
<jrobeson> "it complained about reusing the name"
<jrobeson> duh..
<workmad3> hehe
s2r2 has joined #ruby
<jrobeson> now where's my rom . :(
nomenkun has joined #ruby
<jrobeson> aka datamapper 2 ..
<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.
<jrobeson> net.methods ?
<jrobeson> i'm not personally sure :)
<workmad3> jrobeson: http://rom-rb.org/
<shevy> how do you guys feel about
quoin has quit [Ping timeout: 264 seconds]
<shevy> begin; some_code_that_could_fail; rescue; end
<hoelzro> I feel pretty awful about that.
okinomo has quit [Quit: Lost terminal]
<shevy> hehe
<hoelzro> swallowing errors is seldom a good idea
quoin has joined #ruby
<jrobeson> workmad3, yes that's what i'm talking about
okinomo has joined #ruby
<jrobeson> workmad3, it's just in an unusable state for rdbms atm
<workmad3> jrobeson: :)
darksoox has quit [Quit: Lost terminal]
Alina-malina has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
cha1tanya has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
BizarreCake has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
mrsolo has quit [Quit: This computer has gone to sleep]
samsden has joined #ruby
zets has joined #ruby
nari_ has joined #ruby
wudofyr has quit [Remote host closed the connection]
Stygia has joined #ruby
zets has quit []
wudofyr has joined #ruby
zarubin has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<s2r2> jrobeson: just discovered ipaddress...it can do that...
ananthakumaran has quit [Read error: Connection reset by peer]
samsden has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
gokul has quit [Read error: Connection reset by peer]
wudofyr has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
samsden has joined #ruby
helvete has quit [Quit: Leaving...]
wudofyr has joined #ruby
__Cr0 has joined #ruby
MrZYX|off is now known as MrZYX
OZzl has quit [Quit: leaving]
hogeo has joined #ruby
Lewix has quit [Remote host closed the connection]
Astralum has joined #ruby
nignaztic has quit [Ping timeout: 240 seconds]
zoee has joined #ruby
jbpros has quit [Quit: jbpros]
__Cr0 has quit [Remote host closed the connection]
blackmesa has joined #ruby
buscon has quit [Ping timeout: 264 seconds]
__Cr0 has joined #ruby
yacks has joined #ruby
hogeo has quit [Remote host closed the connection]
snovak has joined #ruby
camilasan has quit [Remote host closed the connection]
weems has quit [Ping timeout: 260 seconds]
shaunbak_ has quit [Remote host closed the connection]
zmike1234 has quit [Quit: ~]
ananthakumaran has quit [Read error: Connection reset by peer]
jp- has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
jbpros has joined #ruby
__Cr0 has quit [Remote host closed the connection]
__Cr0 has joined #ruby
julweber has quit [Remote host closed the connection]
mengu has joined #ruby
rcosta has quit [Remote host closed the connection]
shaunbaker has joined #ruby
Astral_ has joined #ruby
shaunbak_ has joined #ruby
agjacome has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
Astralum has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
johchri has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
pyrac has quit [Quit: pyrac]
ananthakumaran has quit [Read error: Connection reset by peer]
greenrose1 has joined #ruby
KobraKao has joined #ruby
julweber has joined #ruby
greenrose has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
decoponio has joined #ruby
alepore has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
zarubin has quit [Quit: Leaving]
zarubin has joined #ruby
Olipro has joined #ruby
Domon has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
cantonic has joined #ruby
poga_ has joined #ruby
jibi has quit [Quit: .]
shaunbak_ has quit [Remote host closed the connection]
poga_ has quit [Remote host closed the connection]
julweber_ has joined #ruby
shaunbaker has joined #ruby
julweber has quit [Read error: Operation timed out]
greenrose1 is now known as greenrose
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
browndawg has joined #ruby
poga has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 264 seconds]
Hanmac has quit [Quit: Leaving.]
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
mikecmpbll has joined #ruby
shaunbaker has quit [Remote host closed the connection]
ndrei has joined #ruby
Gadgetoid has quit [Read error: Connection reset by peer]
bluenemo has quit [Remote host closed the connection]
gadgetoid_ has joined #ruby
gadgetoid_ is now known as gadgetoid
codecop has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
tk___ has joined #ruby
katsrc has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
tobago has joined #ruby
soba has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
dennus has joined #ruby
pyrac has joined #ruby
areil has quit [Remote host closed the connection]
tobago has quit [Client Quit]
alepore has quit [Quit: This computer has gone to sleep]
bluenemo has joined #ruby
bluenemo has joined #ruby
tobago-work has joined #ruby
tobago-work has quit [Client Quit]
tobago has joined #ruby
tobago has quit [Client Quit]
dagobah has joined #ruby
tobago has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
caju has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
ldnunes has joined #ruby
sevenseacat has joined #ruby
tobago has quit [Client Quit]
stonevil has joined #ruby
tobago has joined #ruby
Hanmac has joined #ruby
mark_locklear has joined #ruby
ereslibre_laptop is now known as ereslibre
tobago has quit [Client Quit]
tobago has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
varfoo has joined #ruby
stonevil has quit [Ping timeout: 245 seconds]
johchri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Cr0 has left #ruby [#ruby]
amacgregor has joined #ruby
tvw has quit []
tk___ has quit [Ping timeout: 260 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
zastern has joined #ruby
eka has joined #ruby
tobago has quit [Remote host closed the connection]
krz has quit [Quit: krz]
ananthakumaran has quit [Read error: Connection reset by peer]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
krz has quit [Client Quit]
ananthakumaran has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
rockets has quit [Ping timeout: 256 seconds]
tobago has joined #ruby
dennus has quit []
dennus has joined #ruby
mike4_ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
nerdman has joined #ruby
samsden has quit [Ping timeout: 240 seconds]
tobago has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
johchri has joined #ruby
tobago has joined #ruby
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
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"
ryandeussing has quit [Ping timeout: 245 seconds]
<jlebrech> awesome :P
<apeiros> >> "foo.bar.baz\nblabla.blupp"[/\.[^.]*$/]
<eval-in> apeiros => ".baz" (https://eval.in/46438)
<apeiros> and
<apeiros> >> "foo.bar.baz\nblabla.blupp".scan(/\.[^.]*$/)
<eval-in> apeiros => [".baz", ".blupp"] (https://eval.in/46439)
<apeiros> that should cover your question as asked
* apeiros off
atyz has joined #ruby
mupkoo has joined #ruby
mupkoo has quit [Remote host closed the connection]
mupkoo has joined #ruby
shaunbaker has joined #ruby
Bry8Star{T2 has joined #ruby
Speed has joined #ruby
atyz has quit [Quit: Leaving...]
banisterfiend has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has joined #ruby
aaronmcadam has quit [Ping timeout: 264 seconds]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
sjltaylor has joined #ruby
Targen has quit [Read error: Operation timed out]
Targen has joined #ruby
diegoviola has joined #ruby
tobago has joined #ruby
fgo has joined #ruby
ewnd9_ has joined #ruby
s0ny123 has joined #ruby
fgo has quit [Remote host closed the connection]
swordsmanz has joined #ruby
fgo has joined #ruby
snovak has joined #ruby
<Hanmac> apeiros: guckguck … did you know about "frozen strings" ? ;P
banisterfiend has quit [Ping timeout: 244 seconds]
nextdropping has joined #ruby
tk__ has joined #ruby
banisterfiend has joined #ruby
<jlebrech> how can I display 217.chr in html via rails?
<Hanmac> in the newestnewestnewest ruby, you can use "string"f ;P and even if you call it in a loop it will always return the same object id ;P
<Hanmac> jlebrech: isnt that a #rubyonrails question?
<jlebrech> hanmac: it might be, rails related?
snovak has quit [Ping timeout: 245 seconds]
angusigu2ss has joined #ruby
<Hanmac> >> puts 217,chr
<eval-in> Hanmac => undefined local variable or method `chr' for main:Object (NameError) ... (https://eval.in/46452)
<jlebrech> hanmac: http://www.theasciicode.com.ar/extended-ascii-code/block-ascii-code-219.html displaying 219.chr should do the job right?
<Hanmac> >> puts 217.chr
<Hanmac> cant you just use "█" ?
<jlebrech> might just be a font issue
_serial_ has quit [Ping timeout: 260 seconds]
<jlebrech> it confuses the interpreter
<jlebrech> # coding: utf-8
<jlebrech> ;)
<jlebrech> that does it
polaco_zZz is now known as polaco
Rym has joined #ruby
<Hanmac> banisterfiend: ruby now has a frozen string syntax ;p
akam-it has quit [Quit: Leaving]
<banisterfiend> hanmac show bb
kobain has joined #ruby
yfeldblum has joined #ruby
jbpros has quit [Quit: jbpros]
<workmad3> hanmac: I assume that's from ruby 2.1+
<workmad3> ?
blueOxigen has quit [Ping timeout: 240 seconds]
<Hanmac> workmad3 its from a commit, 6hours ago, what do you expect? ;P
huoxito has joined #ruby
<workmad3> hanmac: ruby 2.2? ruby 3? :)
<workmad3> hanmac: I'm not sure how much of ruby 2.1, in terms of new syntax, is already sorted :)
cody-- has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<Hanmac> hm it seems that it will be put into 2.1 …. with that you can do "frozen string"f and "binary string"b
dEPy has joined #ruby
nari_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
zeel has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
angusigu2ss has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
osvico has joined #ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
Targen has quit [Ping timeout: 245 seconds]
<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]
pyrac has quit [Quit: pyrac]
senayar has joined #ruby
C0C0_ has left #ruby [#ruby]
christianrojas has joined #ruby
devoldmx3 has quit [Quit: Bye]
devoldmx has joined #ruby
polaco is now known as polaco_zZz
nari_ has joined #ruby
lucazi has joined #ruby
Uranio has joined #ruby
obs has joined #ruby
agjacome has quit [Quit: leaving]
viszu has joined #ruby
atyz has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mklappstuhl has joined #ruby
angusigu2ss has joined #ruby
andikr has quit [Remote host closed the connection]
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
awc737 has quit [Ping timeout: 245 seconds]
awc737 has joined #ruby
ixti has joined #ruby
tkuchiki has quit [Remote host closed the connection]
aryaching has joined #ruby
Astral_ has quit [Quit: Leaving]
girija has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
rcosta has quit [Remote host closed the connection]
adambeynon has joined #ruby
julweber_ has joined #ruby
ryandeussing has joined #ruby
awwaiid_ is now known as awwaiid
cody-- has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
ryandeussing has quit [Ping timeout: 245 seconds]
azcodex has joined #ruby
tvw has joined #ruby
jbomo has joined #ruby
snovak has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
angusigu2ss has quit [Ping timeout: 240 seconds]
philcrissman_ has joined #ruby
cads has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
shaunbak_ has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 245 seconds]
jonkri has joined #ruby
nextdropping has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
johnjohnson has joined #ruby
dkamioka has joined #ruby
tkuchiki has joined #ruby
mengu has quit [Quit: Leaving]
noopq has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
philcrissman_ has quit [Remote host closed the connection]
quoin has quit [Quit: This computer has gone to sleep]
angusigu2ss has joined #ruby
AndChat| has quit [Quit: Bye]
tinyhippo has joined #ruby
sr78ger has joined #ruby
YaNakilon has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
Banistergalaxy has joined #ruby
wallerdev has joined #ruby
YaNakilon has joined #ruby
sweet_kid has quit [Excess Flood]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
buibex has joined #ruby
sweet_kid has joined #ruby
greenysan has joined #ruby
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 ?
ananthakumaran has quit [Quit: Leaving.]
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
krainboltgreene has joined #ruby
<rdhdroid> No. I did define it to ruby as '127.0.0.1' but 127.1 is the same address.
rezzack has quit [Quit: Leaving.]
<_br_> That makes no sense.
nerdman has quit [Quit: leaving]
Jake232 has joined #ruby
codecop has joined #ruby
braoru has quit [Remote host closed the connection]
<rdhdroid> ping 127.1 go on. the 3rd and also 2nd octets may be ommited if 0. That OLD news. the new news is that ruby won't connect to my smtpd.
gyzmodo has quit [Ping timeout: 246 seconds]
jprovazn has quit [Quit: Leaving]
snath has quit [Read error: Operation timed out]
relix has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
buibex has quit [Remote host closed the connection]
Jake232 has quit [Client Quit]
<sevenseacat> color me surprised.
<rdhdroid> I did add the likes of config.action_mailer.delivery_method = :smtp to my ./config/environments/test.rb
<MrZYX> so that's rails?
<sevenseacat> yeah
tagrudev has quit [Remote host closed the connection]
<MrZYX> #rubyonrails might be able to help you better then
<_br_> rdhdroid: Interesting, didn't know that. Does ruby implement this? I doubt it.
Rym has quit [Quit: Rym]
mark_locklear has quit [Ping timeout: 245 seconds]
yacks has quit [Ping timeout: 260 seconds]
Rym has joined #ruby
devoldmx3 has joined #ruby
zoee has quit [Quit: zoee]
<_br_> Interesting, actually this behavior is not in the RFC. http://www.linuxsa.org.au/pipermail/linuxsa/2007-September/088131.html
devoldmx has quit [Ping timeout: 260 seconds]
<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]
devoldmx has quit [Ping timeout: 264 seconds]
Anticom has quit [Quit: Nettalk6 - www.ntalk.de]
zigomir has quit [Read error: Connection reset by peer]
bluenemo has quit [Quit: Verlassend]
denver has joined #ruby
shaunbak_ has joined #ruby
zigomir has joined #ruby
jbpros has joined #ruby
companion is now known as Companion
blz37 has joined #ruby
s0ny123 has quit [Read error: Connection reset by peer]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
shaunbaker has quit [Ping timeout: 245 seconds]
s0ny123 has joined #ruby
huoxito has joined #ruby
browndawg has quit [Quit: Leaving.]
ntus1017 has joined #ruby
ffranz has joined #ruby
devoldmx has joined #ruby
kjellski has quit [Quit: Leaving]
ryandeussing has quit [Ping timeout: 240 seconds]
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.
devoldmx has joined #ruby
<_br_> thanks :) I'll give it a try
<apeiros> I think this comes at least close to what you want if your server doesn't support range queries: http://stackoverflow.com/questions/2458953/nethttpresponse-body-as-io
noopq has joined #ruby
sevenseacat has left #ruby [#ruby]
ananthakumaran has joined #ruby
IceDragon has joined #ruby
claymore has joined #ruby
<apeiros> not sure whether net/http has provisions to ensure it loads the whole resource, though (which would go counter your intention).
* apeiros back at work
greenysan has quit [Ping timeout: 245 seconds]
girija has joined #ruby
Fractional has joined #ruby
<Fractional> How can I make this check shorter? elsif string[i] == 'a' || string[i] == 'e' || string[i] == 'i' || string[i] == 'o' || string[i] == 'e' || string[i] == 'y'
buibex has quit [Ping timeout: 264 seconds]
<apeiros> string[i] =~ /[aeioy]/
<apeiros> and you have 'e' checked twice. wanted 'u'?
<Fractional> Oh yeah thanks. What's that operation called?
<_br_> apeiros: Nice, thank you. Yes, I was digging into the same direction. Seems Faraday has a nice abstraction for range queries. http://www.thehayley.com/blog/2012/partial-http-downloads-with-ruby-and-faraday/
tonni has joined #ruby
<apeiros> Fractional: it's called "Invoke the `=~` method of String"
<apeiros> and commonly "pattern matching"
<Fractional> Thank you very much Apeiros. Will have to look that up!
<Fractional> Why do you need / and / before and after the brackets?
<Morrolan> The thing between the two slashes is a regex.
<Fractional> en the two slashes is a regex.
<Fractional> elsif string[i] =~ /[]/
<Fractional> That comments out my entire code.
visof has quit [Ping timeout: 245 seconds]
<Morrolan> It comments out your entire code?
<Fractional> Yes.
<_br_> You have a typo somewhere probably.
<Morrolan> How do you notice?
greenysan has joined #ruby
<Fractional> Wait, it for some reason turned back into normal.
<_br_> Try ruby -c on it to see if you have syntax errors.
<Fractional> That was weird :P
<Morrolan> Blame your editor. ;)
<_br_> ah
<Fractional> Poor sublime, can't hurt her feelings :<
jonahR has joined #ruby
camilasan has quit [Remote host closed the connection]
mwlang has joined #ruby
diegoviola has joined #ruby
angusigu2ss has joined #ruby
Rollabunna has quit [Remote host closed the connection]
ahegyi has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
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]
haxrbyte has joined #ruby
<Fractional> !~
<Fractional> Solved it. Cheers!
joonty has quit [Client Quit]
Rollabunna has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
samsden has quit [Ping timeout: 240 seconds]
sjltaylor has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
ryandeussing has joined #ruby
alup has quit [Quit: Leaving]
snovak has quit [Ping timeout: 245 seconds]
<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.
<mwlang> [0x50304601,0x04,192,168,50,104,0,0,0,0].pack("L1C9") => "\x01F0P\x04\xC0\xA82h\0\0\0\0"
<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
<apeiros> and you said yourself it should be 16
cantonic has quit [Ping timeout: 245 seconds]
<apeiros> >> [0x50304601,0x04,192,168,50,104,0,0,0,0].size
<eval-in> apeiros => 10 (https://eval.in/46492)
shredding has joined #ruby
<apeiros> as per your own statement, that should be 1+1+16 = 18 components.
relix has joined #ruby
cantonic has joined #ruby
jbpros has quit [Quit: jbpros]
<blackmesa> Hi all. When I use =~ to test a string and it returns "0", does this mean true?
<apeiros> blackmesa: yes. 0 is a true-ish value in ruby.
okinomo has quit [Ping timeout: 240 seconds]
<apeiros> and it actually means "match found at position 0"
<blackmesa> thx for the quick reply apeiros
<apeiros> blackmesa: also, the ruby docs could have told you as much ;-)
<apeiros> (`ri String#=~` in your bash/zsh/whatevershellyouuse)
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby
Stygia has quit [Quit: Leaving]
[Goodoog] has joined #ruby
* Morrolan waves with a YARD server
[Goodoog] has left #ruby [#ruby]
<blackmesa> apeiros: havent used ri before. thx
kdaigle has joined #ruby
dennus has quit []
<blackmesa> thats much quicker :)
* apeiros waves with yri
<apeiros> but yri doesn't have core-docs for me :-|
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<apeiros> hm, actually no docs… I think I gotta check why that is
<apeiros> but for now: to the commute!
apeiros has quit [Remote host closed the connection]
maletor has joined #ruby
Xeago has joined #ruby
<blackmesa> have a nice day!
roninn has joined #ruby
io_syl has joined #ruby
dagobah has quit [Remote host closed the connection]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
camilasan has quit [Remote host closed the connection]
verto has joined #ruby
polaco_zZz is now known as polaco
girija has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
foobArrr has quit [Quit: bye]
blackmesa has quit [Ping timeout: 240 seconds]
Voiden has quit [Quit: Voiden]
shashin has quit [Quit: shashin]
<mwlang> apeiros: I think I got it now: [0x50304601,0x04,192,168,50,104,0,0,0,0].pack("L1C1S8").bytes
<mwlang> => [1, 70, 48, 80, 4, 192, 0, 168, 0, 50, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0] => 21 bytes total.
foobArrr has joined #ruby
krnflake has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
krnflake has joined #ruby
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.
cantonic has joined #ruby
<pingo> Is there anything wrong with this http://pastebin.com/Dk64yBLk
ndrei has joined #ruby
Rym has quit [Ping timeout: 245 seconds]
<pingo> I'm getting kismet.rb:64: Invalid break (SyntaxError)
<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
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
<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
robbyoconnor has joined #ruby
<apeiros> >> "##He lives in a house##"[3..-3]
<eval-in> apeiros => "e lives in a house" (https://eval.in/46499)
<apeiros> whoops
<apeiros> >> "##He lives in a house##"[2..-3]
<eval-in> apeiros => "He lives in a house" (https://eval.in/46500)
<apeiros> by index
<apeiros> >> "##He lives in a house##"[/##(.+)##/]
<eval-in> apeiros => "##He lives in a house##" (https://eval.in/46501)
<apeiros> >> "##He lives in a house##"[/##(.+)##/, 1]
<eval-in> apeiros => "He lives in a house" (https://eval.in/46502)
<apeiros> what hanmac showed (after fixing it :-p)
<apeiros> which works by regular expressions
Elhu has joined #ruby
Guest92486 has quit [Read error: Connection reset by peer]
<apeiros> and then there's others which don't fit one line
dangerousdave has joined #ruby
tonni has joined #ruby
__userna1 has joined #ruby
axeman- has quit [Remote host closed the connection]
gfdgfdg has joined #ruby
snath has joined #ruby
<crunch-choco> looks quite good :O hm what is the // (.+) syntax? i have never seen them
<apeiros> / is a regular expression
<apeiros> // is a regular expression
gfdgfdg has quit [Client Quit]
<crunch-choco> ah yes i saw a topic about this, i have to read it
gfdgfdg has joined #ruby
<apeiros> you can learn more about it on: http://www.regular-expressions.info rubular.com and http://www.debuggex.com
gfdgfdg has quit [Excess Flood]
<apeiros> also in rubys own docs under `ri Regexp`
pyrac has quit [Quit: pyrac]
<apeiros> a regular expression is basically a recipe by which the computer will process a string character by character
<Morrolan> What on earth is debuggex.com doing, Firefox freezes for a few seconds. :o
<apeiros> use a real browser :-p
miskander has quit [Quit: miskander]
<crunch-choco> lol
<apeiros> debuggex is awesome sauce packaged in a website
endash has joined #ruby
<pontiki> better than sri racha?!?!
<crunch-choco> thanks a lot guys, apeiros, Morrolan, eval-in, hanmac
<pontiki> yes, thank the bot :>
turduks has quit []
<Morrolan> Unit tests for my regex? I'm sold.
<apeiros> Morrolan: hu?
browndawg has left #ruby [#ruby]
<apeiros> no, it's a visual representation of your regex, it allows you to step through your regex char by char
<Morrolan> "Login to add unit tests". It seems to allow you to add unit tests to your regex.
snovak has joined #ruby
Matriks has quit [Remote host closed the connection]
linux_noob_666 has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
<apeiros> ah
<apeiros> ok
ehaliewicz has joined #ruby
Companion is now known as companion
Hanmac has quit [Quit: Leaving.]
snovak has quit [Ping timeout: 240 seconds]
<Morrolan> Heh, looks nice indeed.
psyprus has quit [Remote host closed the connection]
psyprus has joined #ruby
butblack has joined #ruby
snath has quit [Ping timeout: 264 seconds]
mityaz has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
randomautomator has joined #ruby
<butblack> How do I get a ruby date time that looks like this? 2013-09-10T10:00:00.000-07:00
julweber has joined #ruby
mrsolo has quit [Client Quit]
pyrac has joined #ruby
mwlang has quit [Read error: Connection reset by peer]
<apeiros> butblack: check the docs for Time#strftime
Monie has joined #ruby
<butblack> apeiros: beautiful, thanks
<MrZYX> >> require 'date'; Date.today.rfc3339
<eval-in> MrZYX => "2013-09-02T00:00:00+00:00" (https://eval.in/46503)
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has joined #ruby
Davey has quit [Client Quit]
<apeiros> doesn't include second fractions
<MrZYX> ah, hm
yacks has quit [Ping timeout: 245 seconds]
<apeiros> I prefer the term iso8601, though :)
<Xeago> see the optional argument length
neonlex has joined #ruby
<apeiros> >> require 'time'; Time.now.iso8601
<eval-in> apeiros => "2013-09-02T20:17:23+02:00" (https://eval.in/46504)
<apfelbox> Since when is rubygems bundled with ruby?
<Xeago> apfelbox: since 1.9
<apeiros> apfelbox: a couple of years
<apeiros> 1.9
kenneth has quit [Quit: kenneth]
zachrab has joined #ruby
<apfelbox> thanks
starfox21 has quit [Quit: starfox21]
julweber has quit [Ping timeout: 240 seconds]
<Xeago> DateTime.now.rfc3339(3) should be what he asked
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> oh
<apeiros> never figured it took an argument
<Xeago> rfc3339 is very flexible
tonni has quit [Remote host closed the connection]
* apeiros still prefers iso8601 over rf3339
<apeiros> *rfc
<apeiros> iso is an actual standard, rfc is just a 'request for comment' :-p
<Xeago> they actually are the same
<apeiros> I know
<apeiros> that's not what I mean
<apeiros> I mean if you use a name with something, use the one which is actually a standard
<MrZYX> heh, they have a "internet standard" status :P
Guest92121 has quit [Quit: Bye]
s2013 has joined #ruby
<Xeago> isn't iso8601 the result of rfc3339?
yacks has joined #ruby
<Xeago> no it's not
<Xeago> apeiros: iso8601 has some wacky stuff in it tho
<apeiros> I know the standard quite well, so color me curious - what parts are wacky IYHO?
<s2013> what are some simple beginner friendly open source ruby programs? so i can look at the code and try to mess around with it to learn better
<apeiros> oh, tho, not imho :)
<apeiros> s2013: ruby-warrior.com might be nice
dankest has joined #ruby
<s2013> let me check it thanks
Davey has joined #ruby
<apeiros> uh, bler? wrong url? let me try again
<apeiros> wth…
<s2013> https://www.bloc.io/ruby-warrior#/ this one apeiros ?
<Xeago> bloc.io/ruby-warrior
<Xeago> I sent it to a former sysadmin one day
<apeiros> yes. I thought it had its own domain :(
<Xeago> he didn't stop until it was finished
<Xeago> apeiros: "2013-243"
<Xeago> "2013-W35-6"
<dobry-den> s2013: https://github.com/ryanb/ruby-warrior <-- source
zachrab_ has joined #ruby
<s2013> dobry-den: thanks
<apeiros> ordinal and commercial
<apeiros> sure, what's wacky about that?
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
jprovazn has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<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.
<_br_> not sure, depends on your usecase :)
<_br_> sure, thats always better
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
neonlex has joined #ruby
<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
snovak has joined #ruby
<Vivekananda> pontiki: coz I dont know how those two things function so I guess should read that first
snath has joined #ruby
cantonic has joined #ruby
<pontiki> i told you about it 2 hours ago
Cache_Money has quit [Quit: Leaving]
amacgregor_ has quit [Ping timeout: 264 seconds]
snovak has quit [Read error: Operation timed out]
<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…]
<Mattias> The docs? :)
noopq has quit [Ping timeout: 246 seconds]
Quashie has quit [Ping timeout: 245 seconds]
ckampfe has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
cantonic has joined #ruby
pyrac has joined #ruby
<Mattias> Stygia: http://rubymonk.com/ is fun though, try it :)
jamesaanderson has joined #ruby
ihme-TTilus is now known as TTilus
neonlex has quit []
senayar_ has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
jbrechtel has joined #ruby
hadees has quit [Quit: hadees]
iliketur_ has quit [Quit: zzzzz…..]
gyre007 has quit [Ping timeout: 256 seconds]
Quashie has joined #ruby
Elhu has joined #ruby
linux_noob_666 has joined #ruby
jbrechtel has quit [Ping timeout: 245 seconds]
blaxter_ has quit [Quit: foo]
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
optimusprimem has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
mityaz has joined #ruby
relix has quit [Max SendQ exceeded]
jbpros has joined #ruby
relix has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
<TTilus> Stygia: just peek into https://www.ruby-lang.org/en/documentation/ one by one, it doesnt take you very long to see if the resource is for you or not
<apfelbox> Is there a formal specification / meta model / grammar for ruby somewhere online?
eldariof has quit [Ping timeout: 264 seconds]
zigomir_ has joined #ruby
<Stygia> TTilus, Mattias Oh sorry, missed this for a bit. Do you know any books? I really prefer books when I have to learn things.
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
<TTilus> apeiros: hmm, did ragel page have it
angusigu2ss has joined #ruby
<TTilus> apeiros: uh, sorry, damn tab completion
<TTilus> apfelbox: see above
<apfelbox> where above? ;-)
marek_ has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
<TTilus> Stygia: well, books are listed there too, that pragprog is a classic
tvw has quit []
tylersmith has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
stonevil has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
<apfelbox> http://www.ruby-doc.org/core-2.0.0/ looks like it
<Stygia> Mattias, Alright, and this book doesn't waste the first few chapters pandering to non-programmers?
marek_ has joined #ruby
<Mattias> Stygia: Never read it, but it is supposed to be "the" reference manual for ruby
zachrab has quit [Remote host closed the connection]
<Mattias> Someone in here have probably read it
<Stygia> Mattias, Hmm alright, I'll download it and give it a try.
<Stygia> Yea, I'd love if someone could say "Yup, I've read this book, and it gets to the point".
<Mattias> Stygia: which languages do you come from?
iliketur_ has joined #ruby
<Stygia> Mattias, Python, Perl and various other languages I use but don't like (php).
jbpros has quit [Ping timeout: 260 seconds]
weems has quit [Ping timeout: 264 seconds]
iliketur_ has quit [Client Quit]
<Mattias> Maybe you've read that already ^.^
angusigu2ss has quit [Ping timeout: 264 seconds]
rcosta_ has joined #ruby
<Stygia> Mattias, Nope. I like books. :)
<Stygia> Mattias, Sigh, can only find downloads for the 2'nd ed of that pragmatic programmer's book, though.
tvw has joined #ruby
<TTilus> apfelbox: what do you need the grammar for?
<Mattias> Stygia: How about downloading a github ruby project and check the code out while referencing to the online docs?
<Mattias> Stygia: I'd highly recommend rubymonk though, it's really fun ;)
sayan has quit [Ping timeout: 256 seconds]
* Mattias likes boooks too
<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")`
<Rylai> here's an example of it that a friend of mine (hi Kabaka) wrote: https://gist.github.com/rylai-/cec0ba4f5c44525d7c3f
<apeiros> also `every 3.minutes do stuff end` is preferred over `every(3.minutes) do stuff end`
<Rylai> i think the lack of parentheses makes it easier to read and understand than with them
<Stygia> apeiros, is that DSL or idomatic ruby?
<Stygia> apeiros, I though it was 3.times{stuff}
hasrb has quit [Remote host closed the connection]
<Rylai> sounds like rails
<Stygia> apeiros, Oh wait. Never mind. :)
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Stygia> Those obviously aren't the same.
<apeiros> ;-)
<Stygia> apeiros, Yea, I clearly misread that. But that "every", is that idomatic?
alvaro_o has quit [Quit: Ex-Chat]
marek_ has quit [Ping timeout: 256 seconds]
<apeiros> yeah, why not?
blueOxigen has joined #ruby
<Stygia> apeiros, It just looks a bit funny to me.
<apeiros> it's not a core/stdlib method
<pontiki> it would depend on context
shaunbaker has joined #ruby
<apeiros> but you could easily implement it
<apeiros> (in fact, I did, years ago)
<Stygia> apeiros, Alright, well fair enough.
<Stygia> Heh.
<Stygia> I'll read the book before I talk too much about the core language anyway.
freerobby has joined #ruby
shaunbaker has quit [Remote host closed the connection]
kdaigle has quit [Quit: Textual IRC Client: www.textualapp.com]
alvaro_o has joined #ruby
cody-- has joined #ruby
adambeynon has joined #ruby
St_Marx has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
mark_locklear has joined #ruby
Monie has joined #ruby
gusnasis has joined #ruby
Monie has quit [Client Quit]
sambao21 has quit [Ping timeout: 245 seconds]
Vivekananda has quit [Quit: Ex-Chat]
Monie has joined #ruby
jbrechtel has joined #ruby
__userna1 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Ren^ has joined #ruby
jbrechtel has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
<Senjai> Stygia: I would use parens whenever there is more than one method call on a line
elaptics is now known as elaptics`away
<Senjai> otherwise, I don't
<Senjai> unless theres OOP issues I need to worry about.
<Senjai> Order of precedence, not OOP OOP lol
__userna1 has quit [Ping timeout: 256 seconds]
<Ren^> Is there a freelance channel here?
Elhu has joined #ruby
<Stygia> Senjai, Hah, alright. OOP doesn't usually mean that. ;)
azcodex has quit [Quit: azcodex]
azcodex has joined #ruby
nhhagen has joined #ruby
mklappstuhl has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Elhu has quit [Client Quit]
azcodex has quit [Client Quit]
vlad_starkov has joined #ruby
azcodex has joined #ruby
yfeldblum has quit [Read error: Operation timed out]
banghouse2 has quit [Remote host closed the connection]
azcodex has quit [Client Quit]
codecop has quit [Remote host closed the connection]
colonolGron has joined #ruby
Companion is now known as companion
timonv_ has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
IceDragon has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
azcodex has joined #ruby
Xeago has quit [Remote host closed the connection]
mrsolo has joined #ruby
alyi has joined #ruby
Ren^ has quit [Ping timeout: 240 seconds]
jbrechtel has joined #ruby
angusigu2ss has joined #ruby
Ziarkaen has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
senayar_ has quit [Remote host closed the connection]
d2dchat_ has joined #ruby
KobraKao has quit [Ping timeout: 264 seconds]
xk_id_ has quit [Quit:
xk_id has joined #ruby
zachrab has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
zachrab has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cody-- has joined #ruby
platzhirsch1 has left #ruby [#ruby]
Xaitec has joined #ruby
nhhagen has quit [Ping timeout: 245 seconds]
gusnasis__ has joined #ruby
gusnasis has quit [Read error: Connection reset by peer]
indigo has joined #ruby
sambao21 has joined #ruby
snovak has joined #ruby
zigomir_ has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
gusnasis__ has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
blueOxigen has joined #ruby
mrsolo has joined #ruby
angusigu2ss has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
falten has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
volty has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
jbpros has quit [Quit: jbpros]
naquad has quit [Ping timeout: 256 seconds]
GeissT has joined #ruby
freerobby has joined #ruby
randomautomator has joined #ruby
Ren^ has joined #ruby
naquad has joined #ruby
<Ren^> Hey guys got d/c befoere. Is there a freelance channel here ?
falten has joined #ruby
randomau_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christianrojas has joined #ruby
gusnasis__ has joined #ruby
DaZ has quit [Ping timeout: 268 seconds]
jamesaanderson has joined #ruby
tonni has joined #ruby
rcosta has quit [Remote host closed the connection]
gusnasis__ has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
gusnasis__ has joined #ruby
randomautomator has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
__userna1 has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
gusnasis__ has quit [Read error: Connection reset by peer]
rcosta has joined #ruby
<volty> hi, what do you suggest for reading & writing the metadata of audio files?
nhhagen has quit [Ping timeout: 260 seconds]
gusnasis__ has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
gusnasis__ has quit [Read error: Connection reset by peer]
gusnasis___ has joined #ruby
workmad3 has joined #ruby
DaZ has joined #ruby
sayd has joined #ruby
rcosta has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
gusnasis___ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
gusnasis___ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i8igmac has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Ren^ has left #ruby ["Leaving"]
foobot has joined #ruby
gusnasis___ has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
d45h has quit [Quit: d45h]
Vivekananda has joined #ruby
Vivekananda has quit [Max SendQ exceeded]
brain_shim has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
randomautomator has joined #ruby
gyre007 has joined #ruby
Vivekananda has joined #ruby
randomau_ has quit [Read error: Connection reset by peer]
ckampfe has quit [Ping timeout: 246 seconds]
Agamemnus has joined #ruby
<Agamemnus> hello
<Agamemnus> i'm very confused, ...
<Agamemnus> wrote a short script.
<Agamemnus> should be working, but i'm getting an error
<Agamemnus> "dynamic constant assignment"
ylluminate has quit [Quit: Bye!]
<Agamemnus> anyone?
<Agamemnus> that's on line 54.
<MrZYX> just don't make it a constant?
<Agamemnus> i don't understand.
<MrZYX> Constant not_a_constant
<Agamemnus> what's the code?
randomautomator has quit [Remote host closed the connection]
<MrZYX> everything that start's with an upper case letter is a constant
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
<Agamemnus> i have very similar code without any errors
<Agamemnus> i don't know why this is different..
<MrZYX> $global Constant @instance_variable @@class_variable local_variable
<Agamemnus> it's somewhere in the def
<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 :)
<miah> =)
Bira_ has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
<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
<miah> Agamemnus: Ruby devs tend to follow this: https://github.com/bbatsov/ruby-style-guide
Guedes0 has left #ruby ["Saindo"]
<miah> and ya, honestly. i looked at your pastebin but its legability lead me to closing the window almost immediately
<Agamemnus> i can't seem to get defined working
<Agamemnus> I'
<volty> miah: hi dosn't know what '@' stays for
<miah> i'd <3 to help though.
<MrZYX> Agamemnus: wait, did you mean to use a modifier if there? last_rotation_layer.visible = false if defined? last_rotation_layer ?
<Agamemnus> I've tried both "defined? last_wheels_layer" and "last_wheels_layer.defined?"
<miah> volty: ya. this is #ruby though. and iirc, matz is nice so we are nice =)
amarsahinovic has quit [Read error: Connection reset by peer]
<Agamemnus> maybe the error morphs into something else
<volty> matz is nice and you are redundant
<miah> maybe
<Agamemnus> "if defined? last_rotation_layer last_rotation_layer.visible = false" doesn't work either..
<miah> 'defined? last_wheels_layer' likely wouldnt work because 'defined?' isnt a object
<volty> but all ok if you want to pose as teachers (for illiterate) , and the other do not protest
<Agamemnus> I see
|jemc| has joined #ruby
<miah> defined? needs to be a method defined by whatever class you're instantiating
<waxjar> defined? is an operator if im not mistaken
<miah> oh?
<waxjar> i've never seen it used though
<Agamemnus> So, defined isn't some inherent thing?
jonkri has quit [Quit: jonkri]
<MrZYX> Agamemnus: you're still doing the modifier if backwards, it's execute_this if condition
<miah> there we go
volty has left #ruby ["Konversation terminated!"]
<Agamemnus> MrZYX... is that a stylistic thing again?
<MrZYX> no
<MrZYX> syntax
snovak has quit [Ping timeout: 246 seconds]
<waxjar> ah no, lives on Object apparantly
<Agamemnus> wait, do I need an "end" there?
verto has joined #ruby
<Agamemnus> MrZYX: that's crazy, I've used "if (condition) stuff"... and it worked..
Fuzai_ has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
d2dchat_ has quit [Remote host closed the connection]
<Agamemnus> i'm missing a "then"...
<MrZYX> don't use then
<miah> you dont need then
Fuzai has quit [Ping timeout: 240 seconds]
malcolmva has quit [Quit: Leaving]
<miah> and end is only needed if you're passing a block iirc
<MrZYX> for one line things we have the modifier if, for everything else just use a newline
Soda has quit [Remote host closed the connection]
Liquid-- has joined #ruby
<miah> create_some_object unless foo.nil?
gusnasis___ has joined #ruby
<miah> eg
<Agamemnus> important note,
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Agamemnus> i'm using Ruby 1.6 here (Sketchup)
<miah> holy wow
<waxjar> oh god
<MrZYX> oh my... that still compiles anywhere?
<Agamemnus> I think I needed a "then" :)
<MrZYX> is that like pre 2000?
<Agamemnus> the last version was released last month, but they never bothered to update the Ruby API
banisterfiend has joined #ruby
jbrechtel has quit [Remote host closed the connection]
<MrZYX> Ruby 1.6 was initially released in September 2000.
<miah> i swear, the ultimate way to troll any programming language channel is to ask for support with something that was EOL'd 10+ years ago.
jbrechtel has joined #ruby
<Agamemnus> lol, sorry guys, I trolled myself, too.
maroloccio has quit [Quit: WeeChat 0.4.0]
Vivekananda has quit [Quit: Ex-Chat]
KobraKao has joined #ruby
Vivekananda has joined #ruby
gusnasis___ has quit [Ping timeout: 240 seconds]
<Agamemnus> no 64-bit support, super-slow Ruby API
<Agamemnus> getting really pathetic now, but I really like Sketchup.
<waxjar> does the interpreter live in sketchup or something?
jbrechtel has quit [Ping timeout: 240 seconds]
<Agamemnus> sketchup loads all the rb files from a specific directory
<miah> waxjar: ya, ruby is bundled with it
bronson_ has joined #ruby
<Agamemnus> there is also a console
<MrZYX> okay, I'm out then
<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]
jamesaanderson has joined #ruby