jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Senjai> jhack: What zenspider said. But its really the individual, not the bootcamp
<zenspider> ferret_guy: I don't know how to determine whether passenger is actually being invoked or not, but it seems like it isn't in the pipeline
<zenspider> it's ALSO the bootcamp.
<zenspider> if they don't provide the structure, pedagogy, and support, it's gonna suck
<ferret_guy> @zenspider that's what I was thinking
<jhack> I've been working on the Odin project, on their courses
hotpancakes has quit [Remote host closed the connection]
<jhack> Opinions on ways to prepare?
<zenspider> I can't speak for flatiron. I know a few around here in seattle, and ... uh... j3's school
<ferret_guy> @zenspider their is nothing in the log after startup from them
<bricker> ferret_guy: did you set DocRoot to "public" directory?
hotpancakes has joined #ruby
RobertBirnie has quit [Ping timeout: 276 seconds]
<ferret_guy> @bricker ya most updated config https://gist.github.com/markomo/9f8fc20aabe38f5d476a
<zenspider> I don't see a docroot
bafbomb_1 has left #ruby [#ruby]
<Senjai> jhack: zenspider I find https://www.youtube.com/watch?v=nmdGZk-fF98 is relevant (not entirely) but still worth watching
<zenspider> hrm... butter, lard, or butter and lard?
<jhack> Also, does anyone use Irc on their phones haha
rodfersou has joined #ruby
<bricker> ferret_guy: you also need "PassengerEnabled On" under the Location block
<Senjai> zenspider: I say splurge
<Senjai> You've been waiting for this
JDiPierro has joined #ruby
Azulinho has quit [Ping timeout: 246 seconds]
<Senjai> You DESERVE this
<zenspider> haha
<Senjai> /end
<zenspider> I _do_! I'm totally torn up from my workout yesterday. I need this
dgutierrez1287 has joined #ruby
hahuang65 has quit [Ping timeout: 244 seconds]
<zenspider> 3 more degrees... gonna sauté up some garlic scapes to go with
<ferret_guy> @bricker no go still does not work :(
<zenspider> ferret_guy: not twitter. @ not needed
transiency has quit [Remote host closed the connection]
<bricker> is passenger running? show your latest config
<ferret_guy> zenspider: I know dumb habbit :)
JDiPierro has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
avril14th has quit [Ping timeout: 276 seconds]
zacstewart has quit [Remote host closed the connection]
icebourg has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
mistermocha has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
avril14th has joined #ruby
<ferret_guy> any ideas?
<bricker> ferret_guy: try changing PassengerAppRoot to the root dir
<Senjai> zenspider: Seriously making me hungry
<bricker> /home/mark/dashboard
<Senjai> This might be the most distracting IRC conversation I've ever had
<bricker> ferret_guy: and you might need PassengerDocumentRoot pointing to public
baweaver has quit [Remote host closed the connection]
<bricker> ferret_guy: just try the first suggestion though
<ferret_guy> I don't have a PassengerDocumentRoot, first suggestion did not work
<i8igmac> xpath("//h1[contains(@class, 'header')]").children.text
sevenseacat has joined #ruby
snockerton has quit [Quit: Leaving.]
<i8igmac> this xpath example will output something like => " some name\n\n", "\t", "(","2009",")"
<ferret_guy> bricker should I have a PassengerDocumentRoot?
<bricker> ferret_guy: I don't know, just a thought
<bricker> I've only ever setup subdomains in passenger with nginx
<bricker> and I remember it being non-trivial
<ferret_guy> where might I add it? location?
<bricker> and that was 3 years ago
<bricker> yeah
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
enebo has joined #ruby
<ferret_guy> Invalid command 'PassengerDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration
Yiota has joined #ruby
hahuang65 has joined #ruby
Yiota has quit [Client Quit]
eggoez has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
zendrix has quit [Ping timeout: 256 seconds]
<ferret_guy> bricker: might it be called something else?
Brainling has joined #ruby
JDiPierro has quit [Remote host closed the connection]
wallerdev_ has quit [Quit: wallerdev_]
mistermocha has quit [Ping timeout: 255 seconds]
<ferret_guy> no idea why the alias is not working though... should be dropping me into /public
bodgix_wrk_ has joined #ruby
<bricker> dunno sorry
<bricker> if I had it all in front of me I could figure it out but this is a difficult problem to debug by proxy
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avril14th has quit [Ping timeout: 264 seconds]
<ferret_guy> bricker: thanks for your help! I think it has something to do with alias not working right if I dont get it figured out in the next several hours hopefully the passenger irc can help
astrobun_ has joined #ruby
eggoez has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ZoanthusR has joined #ruby
meph has quit [Quit: Leaving.]
hahuang65 has quit [Quit: WeeChat 1.2]
<zenspider> omfg... so tasty
meph has joined #ruby
zacstewart has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
nateberkopec has joined #ruby
chouhoulis has quit [Remote host closed the connection]
hotpancakes has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
kotk has quit [Quit: Leaving...]
symbol has joined #ruby
jhack has quit [Remote host closed the connection]
jhack has joined #ruby
hahuang65 has joined #ruby
Feyn has joined #ruby
<sphex> I assume the singleton classes are not allocated until they are needed?
jhack has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bayed has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
<zenspider> sphex: don't think about it. it's magic
jackjackdripper has quit [Quit: Leaving.]
wallerdev_ has joined #ruby
<sphex> ooohh.. now I want to know even more.
j_mcnally has joined #ruby
CloCkWeRX has joined #ruby
nateberkopec has quit [Quit: Leaving...]
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
bruno- has quit [Ping timeout: 252 seconds]
olistik has joined #ruby
<zenspider> all you really need to know: http://t.co/xXVyakyUH5
<zenspider> Senjai: ^^
workmad3 has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Quit: WeeChat 1.2]
baweaver has joined #ruby
oo_ has joined #ruby
<ferret_guy> bricker: still there?
hahuang65 has joined #ruby
<bricker> yep
keen__________14 has joined #ruby
<ferret_guy> bricker: so I got an error message form passenger, We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.
hololeap has joined #ruby
KaZeR has quit [Remote host closed the connection]
<ferret_guy> I found out I had 2 virtual hosts one in another file and one in the conf directory
blackmes1 has quit [Quit: WeeChat 1.2]
keen__________13 has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 252 seconds]
<ferret_guy> bricker: moved my stuff to the other one from the main dir and that happened, new conf https://gist.github.com/markomo/c48f9908d320dede9446
jaygen has joined #ruby
hotpancakes has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Limix has quit [Quit: Limix]
freerobby has joined #ruby
jaygen_ has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
casadei_ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.2]
podman has quit [Quit: Connection closed for inactivity]
chipotle has quit [Quit: cheerio]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sphex> zenspider: looks like it's allocated on-demand by singleton_class_of() in class.c
Alayde has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
Igorshp has joined #ruby
<zenspider> sphex: this is my "don't care" face. it just works.
Channel6 has joined #ruby
sharpmachine has quit [Read error: Connection reset by peer]
<bricker> ferret_guy: that sounds like a Rails error, which is good because it means your app is running
<ferret_guy> bricker: yay! i'm enabling friendly error pages
apt-get_ has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
<sphex> it's attached to it via an internal instance variable, so it doesn't even waste memory for a pointer when not used. oh zenspider! isn't that fascinating?
<Papierkorb> Why is "Fixnum === Fixnum" 'false' ?
chipotle has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
segmond has quit [Ping timeout: 244 seconds]
sarkyniin has quit [Ping timeout: 252 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> Papierkorb: because you're invoking Module#===
<zenspider> >> Fixnum === 42
<ruboto> zenspider # => true (https://eval.in/394571)
<zenspider> Class === Fixnum
<ferret_guy> bricker: yep took a dump
<zenspider> >> Class === Fixnum
<ruboto> zenspider # => true (https://eval.in/394572)
<zenspider> >> Fixnum === Fixnum
<ruboto> zenspider # => false (https://eval.in/394573)
<zenspider> gotta go to study group
zacstewart has quit [Remote host closed the connection]
<ferret_guy> bricker: where would I put lines, RailsAppSpawnerIdleTime 0 and PassengerMinInstances 1?
kies^ has joined #ruby
<Papierkorb> zenspider: mh, ok, thanks
<zenspider> Papierkorb: make sense?
<bricker> ferret_guy: it can go pretty much anywhere
<bricker> ferret_guy: if you only have one app running it doesn't really matter
Igorshp has quit [Ping timeout: 252 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> zenspider: Reading Module#=== ..
sharpmachine has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
<ferret_guy> bricker: I jammed it in error message is: https://gist.github.com/markomo/c48f9908d320dede9446 I am still working on my ruby skills it's cripitic to me :)
blue_deref has quit [Quit: bbn]
<Papierkorb> >> Object === Fixnum
<ruboto> Papierkorb # => true (https://eval.in/394574)
chipotle has quit [Client Quit]
<Papierkorb> zenspider: Yep, got it. thanks. Mh, so I have a type inside a variable 'type', and want to do a case over it.
<Papierkorb> Thinking about it, I think I want classes instead of a case.
<bricker> ferret_guy: invalid YAML syntax in history.yml
chipotle has joined #ruby
<ferret_guy> bricker: hmm my app starts w/o problems let me check what that does
segmond has joined #ruby
RegulationD has joined #ruby
Cache_Money has joined #ruby
Ilyas has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
jeramyRR has joined #ruby
<ferret_guy> bricker: fixed YAML, dashing is now redirecting me to /sample where the dashboard is but of coursr Apache has no idea how to handle that, what should I do?
hotpancakes has joined #ruby
unreal has joined #ruby
<sphex> hey. could anyone recommend some documentation about ruby's class system? I read some random bits here and there, but I'm not too confidant I could do metaprogramming right as it is.
towski_ has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
gambl0re has quit []
kkeuning has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
<bricker> sphex: what kind of information are you looking for exactly?
kkeuning has quit [Max SendQ exceeded]
jpfuentes2 has joined #ruby
<sphex> *everything*!
hotpancakes has quit [Ping timeout: 256 seconds]
<pontiki> everything2.com is for you, then
apt-get_ has quit [Read error: No route to host]
<sphex> I just figured out that classes do not have class methods; just instance methods and singleton instance methods. so I'm basically "there". I guess if there would be some doc that presented it from the start it would help me to reread it too. :/
<sphex> this is really neat and seems all really well thought out.. but still pretty confusing
sarkyniin has joined #ruby
<pontiki> anyone suggested metaprogramming ruby 2?
CloCkWeRX has left #ruby [#ruby]
bronson has joined #ruby
kreantos has quit [Ping timeout: 248 seconds]
kreantos has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<sphex> oh... yeah, I didn't check for real books yet. maybe I should.
sepp2k has quit [Quit: Leaving.]
<sphex> pontiki: can you recommend that one?
Lucky_ has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxpx777 has joined #ruby
Lucky_ has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddarkpassenger has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
<sphex> well then
snapfractalpop has left #ruby ["WeeChat 1.3-dev"]
sarkyniin has quit [Remote host closed the connection]
jfarmer has quit []
fmcgeough has quit [Quit: fmcgeough]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ddarkpassenger has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
sarkyniin has joined #ruby
balazs has joined #ruby
<ferret_guy> it works!!!!!!!!
hotpancakes has joined #ruby
Rickmasta has joined #ruby
ferret_guy has left #ruby [#ruby]
zendrix has joined #ruby
momomomomo has quit [Quit: momomomomo]
mistermocha has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
reset has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
baweaver has quit [Remote host closed the connection]
stantonnet has joined #ruby
zendrix has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
kkeuning has joined #ruby
Azulinho has joined #ruby
kkeuning has quit [Max SendQ exceeded]
nateberkopec has quit [Quit: Leaving...]
mistermocha has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: leaving]
mistermocha has joined #ruby
kkeuning has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
sarkyniin has quit [Quit: Quit]
kkeuning has quit [Max SendQ exceeded]
zacstewart has joined #ruby
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky_ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Nick_joes_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
Nick_joes_ has joined #ruby
jeramyRR has joined #ruby
sepp2k has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
Guest24 has quit [Ping timeout: 256 seconds]
jacaballero has joined #ruby
werelivinginthef has joined #ruby
hahuang65 has joined #ruby
jhwhite has joined #ruby
jhwhite has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
mistermocha has quit [Read error: Connection reset by peer]
sharpmachine has quit [Remote host closed the connection]
lele has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
griffindy has joined #ruby
Igorshp has joined #ruby
wallerdev_ has quit [Ping timeout: 265 seconds]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Client Quit]
shinnya has quit [Ping timeout: 264 seconds]
Igorshp has quit [Ping timeout: 248 seconds]
christiandsg has joined #ruby
blokc has joined #ruby
nerium has quit [Quit: nerium]
hotpancakes has quit [Remote host closed the connection]
jerematic has quit []
kkeuning has joined #ruby
christiandsg has quit [Remote host closed the connection]
<Antiarc> sphex: If you think of classes as instances of Class, which themselves have instance methods, then it becomes even more clear :)
d0lph1n98 has joined #ruby
GriffinHeart has joined #ruby
<Antiarc> ("eigenclass" is a keyword that may serve you well)
chipotle has quit [Quit: cheerio]
GriffinHeart has quit [Remote host closed the connection]
kkeuning has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
jeramyRR has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
momomomomo has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
christiandsg has joined #ruby
Limix has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
devbug has joined #ruby
astrobun_ has joined #ruby
werelivinginthef has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
prettiestPony11 has joined #ruby
casadei_ has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
<sphex> Antiarc: huh. I guess. I'm really having a hard time figuring all of this out. :/ maybe I just need to concentrate harder. my brain must be hardwired for simula/C++ style classes.
astrobun_ has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
casadei_ has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
<Antiarc> sphex: The way I think about it (which isn't entirely correct, but works well enough 99% of the time) is just "instance methods and static methods"
GriffinHeart has quit [Remote host closed the connection]
<Antiarc> Is there something in particular you're struggling with, metaprogramming-wise?
ohaibbq has quit [Quit: Leaving...]
dstarh has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
GriffinHeart has joined #ruby
Rixius has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
transiency has joined #ruby
towski_ has joined #ruby
c_nick has joined #ruby
workmad3 has joined #ruby
Agoldfish has quit [Quit: G'Bye]
bronson has joined #ruby
<sphex> Antiarc: not at the time, but thanks! I get confused real easy when there are a lot of includes/extends happening. I prolly need to practice. or get a book. I guess understanding the eigenclass better will really help me though.
<c_nick> Active record where function is used but it takes all the column entries as parameters how can I send a like query in it
eggoez has joined #ruby
louism2wash has joined #ruby
<louism2wash> hey guys, what does the ** operator do in a file path?
Oog has joined #ruby
<c_nick> Louism2wash directories and subdirectories
<Antiarc> louism2wash: that's used for a recursive glob, usually
hotpancakes has quit [Remote host closed the connection]
<Antiarc> @sphex ^
bodgix_wrk_ has quit [Quit: Connection closed for inactivity]
<Oog> Date.parse('7/7/15') => Sun, 15 Jul 2007 wtf?!?!
<louism2wash> Thanks guys
<Antiarc> Oog: Makes perfect sense to me! y/m/d! :P
<blokc> Elegant Ruby is my favorite Ruby book @sphex
<sevenseacat> Oog: makes sense.
workmad3 has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
hornairs_ has joined #ruby
jesterfraud has joined #ruby
dopie has joined #ruby
<sphex> Antiarc: hey thanks a lot, I'm doing to reread that a few times...
<Oog> Date.strptime('7/17/15', '%-m/%-d/%y') => invalid date.... ?
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c_nick> I want to query select * from students where name is Josh and address like %newyork% and age = 23
<Oog> i figured it out. that was a bad bug
hornairs has quit [Ping timeout: 246 seconds]
<Oog> major problem there
<c_nick> But my active record function is like Student.where(name: sname, address: sadd age:sage)
eggoez has quit [Ping timeout: 248 seconds]
<c_nick> How to get a like field in the address field
<blokc> Foo.where("bar LIKE ?", "%#{query}%")
<cout> mmm.. sage
* cout licks his chops
Rickmasta has quit [Ping timeout: 252 seconds]
<sphex> Antiarc: oh yeah.. it helps to see it work with an anonymous class too. it probably would have confused the s**t out of me if I saw it in the wild.
<c_nick> blokc: that would give me all students living in new York but how to filter it with Josh with age
darkf has joined #ruby
<c_nick> I had tried merge bit then this like query did not return anything also in rails u could traverse db using rails console how to try db in normal active records
lessless has joined #ruby
eggoez has joined #ruby
Rickmasta has joined #ruby
<sevenseacat> c_nick: Student.where("name LIKE "%#{whatever}%").where(age: 25, address: whatever)
shadoi has quit [Quit: Leaving.]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
jhwhite has joined #ruby
hololeap has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
<c_nick> sevenseacat: name like ? Right ?
kies^ has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
<sevenseacat> you get the idea. it wasnt exact code.
zacstewart has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<c_nick> Oh ok sorry I got a little skeptical hehe
djbkd has quit [Remote host closed the connection]
<blokc> I feel like citing the Rails warning about SQL injection.
<blokc> Client.where("first_name LIKE '%#{params[:first_name]}%'") is not safe.
hotpancakes has joined #ruby
freerobby has quit [Quit: Leaving.]
jhwhite has quit [Ping timeout: 276 seconds]
sharpmachine has joined #ruby
freerobby has joined #ruby
J4D has quit [Quit: Textual IRC Client: www.textualapp.com]
<c_nick> blokc had read that but what's the right approach then
<blokc> Yay, good question, I'm reading more now.
hahuang65 has quit [Ping timeout: 246 seconds]
<blokc> It mentions handling conditions in an array.
msnyon has quit [Ping timeout: 246 seconds]
ZeeNoodleyGamer has quit [Ping timeout: 240 seconds]
jxpx777 has quit [Read error: Connection reset by peer]
msnyon has joined #ruby
<blokc> Ok so the safe way is to use the '?' syntax
<blokc> Student.where("name LIKE "%#{whatever}%").where(age: 25, address: whatever)
hotpancakes has quit [Ping timeout: 248 seconds]
<blokc> The above query places the value as-is directly into the SQL that's built.
Pupeno_ has joined #ruby
sharpmachine has quit [Ping timeout: 276 seconds]
<blokc> Foo.where("bar LIKE ?", "%#{query}%")
<blokc> or
<blokc> Foo.where("bar LIKE :query", query: "%#{query}%")
<sevenseacat> yes, always parameterize your queries.
baweaver has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
NeverDie has joined #ruby
mistermocha has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alicef has joined #ruby
<sevenseacat> I was not posting exact code to be used, which I thought was obvious by the fact I was using the wrong field names and the wrong variables.
alicef has left #ruby ["Leaving"]
<sevenseacat> I was showing how it could be done by chaining where queries.
yfeldblum has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
yfeldblum has joined #ruby
<c_nick> The parameters need to be a hash ?_
<sevenseacat> ?rails also
<ruboto> also, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
msnyon has quit [Ping timeout: 252 seconds]
kkeuning has joined #ruby
JoshuaPaling has joined #ruby
<blokc> I'm in #rubyonrails too.
<c_nick> No seven I meant on the link blokc gave there it mentions name like :dname", {dname: name}
hololeap has joined #ruby
<c_nick> Blokc ActiveRecords is rails active record aint :)
<blokc> We need to move this to the RubyonRails Channel @c_nick
<c_nick> Hmm ok
<sevenseacat> i... what?
<sevenseacat> nvm
<c_nick> I will try these.
hakunin has quit [Remote host closed the connection]
<c_nick> Thanks seven and blokc moving to rails channel
<blokc> True it's not rails @c_nick, but this discussion would benefit people in that channel more.
<blokc> I'm in that channel as well.
<c_nick> Cool no problem. :)
charliesome has joined #ruby
hotpancakes has joined #ruby
Sehryn has quit [Ping timeout: 276 seconds]
jesterfraud has joined #ruby
balazs has joined #ruby
Channel6 has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
<havenwood> Radar: sevenseacat: Hoping this might be interesting to Rubyists learning Elixir: https://github.com/havenwood/elixir.rb
<sevenseacat> o.o
<sevenseacat> havenwood: you're crazy lol
<havenwood> sevenseacat: ;)
braincrash has quit [Quit: bye bye]
<sevenseacat> also, "Fabulous run in 0.113416s, 2451.1581 runs/s, 3147.7102 assertions/s." nice.
<havenwood> OptionParser was hard :O
<havenwood> sevenseacat: :D
vt102 has quit [Remote host closed the connection]
<sevenseacat> interesting idea
Scroff has quit [Ping timeout: 246 seconds]
<havenwood> I'm learning some Elixir in the process, which I'm enjoying.
<sevenseacat> :)
<havenwood> And some concurrent-ruby.
<sevenseacat> I'm enjoying it also, but I don't fully grok it yet
<sevenseacat> nor feel like I want to use it over ruby for anything
casadei_ has joined #ruby
<sevenseacat> but its an enjoyable learning experience
mistermocha has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
bungoman has joined #ruby
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mistermocha has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
werelivinginthef has joined #ruby
tkuchiki has joined #ruby
casadei_ has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
c_nick has quit [Quit: Bye]
nathan has joined #ruby
neohunter has quit [Ping timeout: 255 seconds]
werelivinginthef has quit [Ping timeout: 240 seconds]
t3k has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
mistermocha has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Sehryn has joined #ruby
kkeuning has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
jeramyRR has quit [Quit: Peace out!]
jamesaxl has quit [Remote host closed the connection]
jcdesimp has quit [Quit: Leaving...]
Spami has joined #ruby
iwishiwerearobot has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
dellavg has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
gix has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
slumos has joined #ruby
towski_ has quit [Remote host closed the connection]
gix has joined #ruby
dgutierrez1287 has joined #ruby
bronson has joined #ruby
aryaching has joined #ruby
lessless has quit [Ping timeout: 256 seconds]
bosma is now known as hodI
penzur has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
symbol has quit [Ping timeout: 240 seconds]
christiandsg has quit [Remote host closed the connection]
sharpmachine has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
sebbers_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
jimmiejohnson48 has joined #ruby
bungoman has quit [Remote host closed the connection]
jimmiejohnson48 has left #ruby [#ruby]
j_mcnally has joined #ruby
momomomomo has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
aryaching has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
sharpmachine has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
xxneolithicxx has joined #ruby
Soda has joined #ruby
Sehryn has quit [Ping timeout: 264 seconds]
bronson_ has joined #ruby
bronson has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
bhuvanaurora has joined #ruby
bhuvan_aurora has joined #ruby
christiandsg has joined #ruby
bungoman has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
christiandsg has quit [Remote host closed the connection]
nathan has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
bronson_ has quit [Remote host closed the connection]
Metus has joined #ruby
Igorshp has joined #ruby
bhuvanaurora has quit [Ping timeout: 256 seconds]
bhuvan_aurora has quit [Ping timeout: 252 seconds]
jfarmer has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
vale_tudo has quit [Ping timeout: 240 seconds]
j_mcnally has quit [Remote host closed the connection]
j_mcnally has joined #ruby
swgillespie has joined #ruby
garysollin has joined #ruby
GriffinHeart has joined #ruby
<garysollin> hello
<blokc> hello
workmad3 has joined #ruby
casadei_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<garysollin> hey
<garysollin> what we doing here
yayfoxes has quit [Quit: installing Haiku]
dopie has quit [Quit: This computer has gone to sleep]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
t0rrieri has joined #ruby
solocsha1 has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
casadei_ has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
nathan has joined #ruby
scripore has joined #ruby
ivanskie has joined #ruby
nathan has left #ruby [#ruby]
Torrieri has quit [Ping timeout: 248 seconds]
sigurding has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blokc> asking and answering questions
jenrzzz has joined #ruby
<blokc> chatting the general
<blokc> things of ruby and whatnot
<blokc> working on anything interesting with Ruby?
<jesterfraud> that and reusing terribly old IRC tropes
* jesterfraud slaps blokc around a bit with a large trout
<blokc> righto, that's the spirit
<garysollin> learning from the begining with ruby
<blokc> very nice. can I recommend some sites and books?
Soda has quit [Remote host closed the connection]
<garysollin> yea, if something like the webside, or everything else, that will be awesome
mistermocha has joined #ruby
<blokc> by the lucky stiff (and friends) is a classic
<blokc> the go to book I read once a week is 'Elegant Ruby' by Russ Olsen.
<blokc> That book will more than anything help you right in the style of Ruby.
<blokc> So if you're coming from another language that'll help.
Xoro has quit [Read error: Connection reset by peer]
t0rrieri has quit [Quit: Be back later ...]
<garysollin> great, I kind of like the interface
<sevenseacat> jesterfraud: lol
GriffinHeart has joined #ruby
kfpratt has quit [Remote host closed the connection]
<garysollin> learn by doing, lol
bungoman has quit [Remote host closed the connection]
<blokc> makes sense to me. also key is to have fun.
GriffinHeart has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
<garysollin> gotta work now, good luck guys
iateadonut has joined #ruby
wallerdev has quit [Quit: wallerdev]
jcp has quit [Remote host closed the connection]
<blokc> \wave
lessless has joined #ruby
lessless has left #ruby [#ruby]
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
dellavg has quit [Ping timeout: 264 seconds]
balazs has quit [Remote host closed the connection]
balazs has joined #ruby
ohaibbq has joined #ruby
kfpratt has joined #ruby
<Aeyrix> wtf bundler is being a little shit
<Aeyrix> demanding sudo
sigurding has quit [Quit: sigurding]
<blokc> could be permissions on your gem dir
<blokc> that's happened to me once
jhwhite has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
<Aeyrix> Nah it's because this isn't my server.
<Aeyrix> <__<
Azulinho has quit [Ping timeout: 252 seconds]
<Aeyrix> fixed with `bundle install --path ~/.gem`
mistermocha has quit [Read error: Connection reset by peer]
<Aeyrix> although this is probably going to break something fierce when I try and use system ruby with user gems.
Azulinho has joined #ruby
mistermocha has joined #ruby
Rickmasta has joined #ruby
GriffinHeart has joined #ruby
<Aeyrix> Radar:
<Aeyrix> what's your blog post url again
<Aeyrix> i actually need it for this stupid box
<Radar> Aeyrix: Google "Ryan Bigg ubuntu"
<Radar> first result
<Aeyrix> <3
Oog has quit []
<sevenseacat> you're internet famous!
<Aeyrix> wait
<Radar> Sure am.
<Aeyrix> son of a bitch
<Aeyrix> oh christ, okay, so here's my issue
<Aeyrix> there's a system ruby installed already that I can't touch
<Aeyrix> I can't remove it
<Aeyrix> ruby 1.9.1
jhwhite has quit [Ping timeout: 252 seconds]
<Aeyrix> what do?
<Radar> Can't touch it? Why not?
hotpancakes has quit [Ping timeout: 256 seconds]
<Aeyrix> Because this isn't my server.
<Aeyrix> I am but a tenant.
<Radar> Oh right, you've hacked into someone else's server :P
<Aeyrix> Actually no.
<Radar> Install ruby-install + chruby as your user.
<Aeyrix> Just throw them in ~/bin or something?
<Radar> It'll install all your gems in your home directory.
<Aeyrix> nvm misread
<Radar> Aeyrix: It will install it on a user-level unless you specify --system.
<Aeyrix> disregard me im shit
<Radar> hah no you're not
<Aeyrix> also does bundler install gems systemwide by default?
<Aeyrix> it appears to do so, isn't that bad practice according to basically everybody?
<Aeyrix> (inc. me)
<Radar> No, bundler installs them depending on your Ruby install. Use ruby-install + chruby and make sure that `which bundler` shows the one coming from your home directory and it should be fine.
<Aeyrix> rite
<Radar> i.e. on my machine: `which ruby` shows as: /Users/ryanbigg/.rubies/ruby-2.2.2/bin/ruby
<Aeyrix> elliot@vega:~ $ which ruby
<Aeyrix> kek
<Aeyrix> /usr/local/bin/ruby
<Radar> `which bundler` shows as /Users/ryanbigg/.gem/ruby/2.2.2/bin/bundler
<Aeyrix> Thanks homebrew!
<Radar> Do you chruby+ruby-install setup?
<Aeyrix> Nah this is my dev box - homebrew.
<Radar> Could be that chruby's autoswitching isn't turned on by default
<Aeyrix> Because I know I can nuke it at any time.
<Aeyrix> Servers I use your guide.
<Aeyrix> mostly
<Radar> :D
<Aeyrix> I'm gonna bash script that entire guide
<Aeyrix> out of pure laziness
<Radar> I'm writing a new guide atm for servers.
stardiviner has quit [Ping timeout: 246 seconds]
<Aeyrix> Hmm?
mistermocha has quit [Ping timeout: 276 seconds]
<Radar> Uses ruby-install + apache + Passenger
<Radar> Because it's simple
<Aeyrix> Is 0.5.0 the latest ruby-install still or something?
<Radar> yes
<Aeyrix> Can you encourage people to use our preference instead? :P
<Aeyrix> it's kind of cleaner, and nginx config really isn't hard
<Radar> another version of the guide would use nginx+unicorn :)
<Aeyrix> woot
Scroff has joined #ruby
<Aeyrix> ruby-install ruby
<Aeyrix> >>> Installing ruby 2.1.3
<ruboto> Aeyrix # => /tmp/execpad-25372ae30b51/source-25372ae30b51:2: syntax error, unexpected '>' ...check link for more (https://eval.in/394613)
<Aeyrix> hshiiiiiieeeeet
<Radar> 2.1.3? wtf m8
<Radar> ruby-install ruby 2.2.2
allomov has joined #ruby
<Aeyrix> It asked for sudo.
<Aeyrix> :
<Aeyrix> :| *
oo_ has joined #ruby
<Radar> it might be trying to install packages?
<Aeyrix> fuq
<Aeyrix> ok
<Aeyrix> looks like i'll have to add this user to sudo
zacstewart has joined #ruby
<Aeyrix> >>> Installing ruby 2.2.2 into /home/arachni/.rubies/ruby-2.2.2 ...
<ruboto> Aeyrix # => /tmp/execpad-0744fa245968/source-0744fa245968:2: syntax error, unexpected '>' ...check link for more (https://eval.in/394614)
<Radar> shut up ruboto
<Radar> the humans are talking
<Aeyrix> My fault, sorry.
<Radar> All good.
<sevenseacat> lol
<Aeyrix> vsnprintf.c:822:8: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
<Aeyrix> WOW BUGS
Scroff has quit [Ping timeout: 256 seconds]
lucas__ has joined #ruby
dopie has joined #ruby
<Radar> patches welcome :D
<lucas__> hello?
<Radar> lucas__: yes hello this is dog
<Aeyrix> Yo lucas__ .
<Aeyrix> loool
<lucas__> Hey, is this a place where I can get some ruby help? I've been pounding my head on my desk on some homework lately
<Radar> indeed
<Aeyrix> Yes.
<lucas__> holy moly thank goodness haha
<lucas__> So, I've been trying to make a stupid mode calculator. I'm sorry if this is like, beginner stuff... I'm trying to learn
zacstewart has quit [Ping timeout: 252 seconds]
<baweaver> It is
<lucas__> should I just copy and paste what I have? I mean, it's super close, but I am a little hung up on the last part.
<baweaver> How dare you ask
<Aeyrix> @lucas__: We'll field any questions as long as there's a will to learn. :D
<baweaver> :P
<Radar> lucas__: !gist
<Radar> lucas__: ?gist
<baweaver> third time's a charm there
<Radar> Argh what's the command
<Radar> lucas__: Put your code there + give us the link
<Aeyrix> Help us help you! We need to see what you've tried. Push your code to https://gist.github.com/.
<Aeyrix> [ruboto intensifies ]
mleung has joined #ruby
mleung has quit [Client Quit]
<lucas__> so, basically, here's the logic here. So, it takes an input of mode([5, 4, 3, 1, 1]) right? And it inputs all the values into the hash. then so the values of the hash is at a default 0, and it counts one by one
<lucas__> and then it will return the value with the highest number. So I feel like I'm close... But the assignment says the output only should give back the "1", and not [0] 1, [1] 2
<lucas__> I hope that makes sense....
christiandsg has joined #ruby
<lucas__> and so i was thinking, well, it'll give back x, y, and so I just want the x, so I put in the .select... but that doesn't work, I guess
sigurding has joined #ruby
bruno- has joined #ruby
mjuszczak has joined #ruby
bronson has joined #ruby
<Aeyrix> Radar: `which bundle`
<Aeyrix> Mine's /usr/bin/bundle :(
<Radar> Aeyrix: chruby autoswitching turned on?
<lucas__> I'm sorry?
<Aeyrix> $ ruby -v
<Aeyrix> ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
<Aeyrix> lucas__: He's talking to me, sorry. Resolving a separate issue at the same time.
<lucas__> oh oh oh, no no! please don't let me interrupt
<Aeyrix> We can multitask. ;)
bhuvanaurora has joined #ruby
<Radar> lucas__: I can multithread, unlike Ruby
<lucas__> I am gonna keep working on this! but I'll interrupt
<Radar> oooohhh burn
<Aeyrix> rekt
<Radar> lucas__: What should that produce?
_ht has joined #ruby
<lucas__> so.... what it should produce right now is:
<lucas__> [0] 1
<Radar> I'm guessing 1
<lucas__> [1] 2
<Aeyrix> Yeah
<Radar> irb(main):008:0> mode [5,4,3,1,1]
<Radar> => [5, 1]
christiandsg has quit [Ping timeout: 265 seconds]
<lucas__> but, I guess my frustrations are just.... I only need it to give me the 1
bhuvan_aurora has joined #ruby
<lucas__> and I guess I just don't understand .select enough. the fool i am
<baweaver> >> puts "Radar, you can eval here"
<ruboto> baweaver # => Radar, you can eval here ...check link for more (https://eval.in/394619)
bruno- has quit [Ping timeout: 248 seconds]
<Radar> baweaver: not a whole method
<baweaver> >> def lol; 'you sure?' end; lol
<ruboto> baweaver # => "you sure?" (https://eval.in/394620)
<Radar> Over multiple lines
eggoez has quit [Ping timeout: 252 seconds]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> ah
<baweaver> there we go
bronson has quit [Ping timeout: 276 seconds]
<baweaver> Ox0dea has some oneliners though :P
<blokc> lucas__: looked at ruby docs on .select?
<blokc> best place to find yourself with a method you don't understand.
<blokc> that and here
lkba has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
hodI is now known as bosma
lkba has joined #ruby
chrissonar has joined #ruby
<lucas__> hmm.... yeah, I guess my question is... I wasn't sure select would be the right method to use, but I really don't know what else to use here. I guess I just want a part of the output it's giving me, and I don't really know how to specify like, ruby, just give me this part
<lucas__> I guess select is more like, if x is _____, then we will select it
<lucas__> and i guess what i put in doesn't really follow that formula?
<Radar> result.max will return the wrong value I think
<Radar> Sorry, hash.max
<Radar> hash.to_a.sort { |k,(a,b)| a <=> b }.last
<Radar> That's my first attempt
<Aeyrix> help i've fallen and i can't get up
<Radar> There's a better way
eggoez has joined #ruby
<lucas__> hmm.you know what. i think you're right. that would return the highest value in the hash.
<Radar> result.sort_by { |k,v| v } .last
<lucas__> ugh.
* sevenseacat picks Aeyrix up
<Aeyrix> Thank. :>
<Radar> That returns a 2-D array of the hash, with the value that appears the most being the last element of that array
<Radar> result.sort_by { |k,v| v }.last => [1,2]
<Radar> Which tells you that 1 appeared twice
transiency has quit [Ping timeout: 244 seconds]
<lucas__> ohhh i see i see
<lucas__> can you explain what a <=> b does?
<lucas__> oh never mind i found something to read up on it
<lucas__> I'm going to read this and then i'll get back on here
iwishiwerearobot has joined #ruby
* Aeyrix is lost with this shit.
<Aeyrix> I think I broke something.
<Radar> Aeyrix: Walk me through it?
<blokc> Excellent, now learn how to break it some more.
<Aeyrix> blokc: My day job is breaking shit
<Aeyrix> that's why i'm confused
<blokc> err fix it. I meant fix it.
<Radar> Aeyrix: Did you install Bundler first?
<Aeyrix> heh
<Aeyrix> Radar: yes
<Radar> Aeyrix: `which gem`?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> $ which gem && which bundle
<Aeyrix> goddamn preslash
ndrei has joined #ruby
<Radar> mhm
<Aeyrix> >2.2.0
<Aeyrix> >2.2.2
<Aeyrix> why.avi
<Radar> yeah, that's weird
mattp__ has joined #ruby
<Aeyrix> rm -rf incoming
<Radar> ruby -v?
<Aeyrix> 2.2.2p95
<Aeyrix> chruby only has 2.2.2
<Radar> seems legit
<Radar> gem install bundler again?
eggoez has quit [Ping timeout: 246 seconds]
<Aeyrix> Goes into 2.2.0
mattp_ has quit [Ping timeout: 256 seconds]
<Aeyrix> /home/elliot/.gem/ruby/2.2.0/bin/bundle
scripore has quit [Quit: This computer has gone to sleep]
iwishiwerearobot has quit [Ping timeout: 246 seconds]
<Radar> nooo
<Radar> nuke it from orbit
<Aeyrix> done
<Aeyrix> starting again
GriffinHeart has quit [Remote host closed the connection]
Burgestrand has joined #ruby
mjuszczak has quit []
eggoez has joined #ruby
wallerdev has quit [Quit: wallerdev]
allomov has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
allomov has joined #ruby
davedev24_ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
hmnhf has joined #ruby
davedev24_ has joined #ruby
<Aeyrix> Radar: zzz
<Aeyrix> still broke
<Aeyrix> now installed in 2.2.2 but more path errors
* Radar watches as Aeyrix rips off his face, to reveal he is really Miesco
<Aeyrix> wow rude
<Aeyrix> I'D HAVE GOTTEN AWAY WITH IT TOO
<Aeyrix> IF IT WEREN'T FOR YOU TYRANNICAL OPERS
<Aeyrix> Oh wait, no, I lie
<Aeyrix> back in 2.2.0
<Aeyrix> why is it doing that?
<havenwood> Aeyrix: echo $GEM_HOME
<Aeyrix> .gem/ruby/2.2.2
* Aeyrix is confused as to why it's not 2.2.2, as that's the only version installed.
<lucas__> Hey Radar, so basically, the logic behind the <=> is so when the value of the mode is equal... It will say both? Is that right?
<havenwood> Aeyrix: gem env gemdir
<Aeyrix> Same, havenwood .
<Radar> lucas__: >> 1 <=> 2
* Radar cannot please ruboto
<havenwood> Aeyrix: echo $GEM_PATH
<Aeyrix> >> 1 <=> 2
<ruboto> Aeyrix # => -1 (https://eval.in/394635)
arup_r has joined #ruby
<Radar> >> 2 <=> 1
<ruboto> Radar # => 1 (https://eval.in/394636)
<Radar> >> 1 <=> 1
<ruboto> Radar # => 0 (https://eval.in/394637)
<Radar> lucas__: does that make more sense?
<Aeyrix> havenwood: /home/elliot/.gem/ruby/2.2.2:/home/elliot/.rubies/ruby-2.2.2/lib/ruby/gems/2.2.0
<Aeyrix> wat
<Radar> Aeyrix: I think that's correct. All 2.2.0 gems are compatible with all other 2.2.2 gems.
<Radar> 2.2.0*
<havenwood> yup
stardiviner has joined #ruby
<Aeyrix> i c
<havenwood> 2.2.0 is the ABI
<Radar> Aeyrix: gist `gem env`?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
khebbie has joined #ruby
<Radar> - "gem" => "--user-install --no-documentation"
<Radar> Why the --user-install option?
<lucas__> Yeah that makes sense.... Maybe I'm focusing on the wrong thing here
sebbers_ has quit [Remote host closed the connection]
<Aeyrix> Radar: Because under no circumstances do I want to pollute anywhere other than ~
pengin has joined #ruby
<Radar> Aeyrix: It won't because the gem paths are set to your home directory.
<Aeyrix> So redundant?
timonv has joined #ruby
<Radar> Aeyrix: I'm guessing so.
<flughafen> morning
<Aeyrix> what the fuck
<Aeyrix> removed it
<Aeyrix> it worked
<Aeyrix> ??????????
<sevenseacat> \o/
<Aeyrix> ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿
<Aeyrix> Thanks y'all.
<Aeyrix> Fix'd.
<Aeyrix> Noooo idea why, but hey.
<sevenseacat> btw Radar's paypal address is... something <_<
<Radar> radarlistener@gmail.com
<Aeyrix> I still owe him for the new book.
<flughafen> radarlove@gmail.com
<Aeyrix> I just haven't gotten around to buying it.
<Radar> I also accept hugs.
yardenbar has joined #ruby
<Aeyrix> Radar: Next meetup, hugs it is.
<Aeyrix> I am hug enthusiast.
<Aeyrix> I would've said connoisseur but I had to Google the spelling.
<Radar> Aeyrix: If that --user-install option wasn't it then I would've had no clue at all
<Radar> it was the only thing that was different to my setup
<Aeyrix> Heh.
hotpancakes has joined #ruby
<lucas__> oh hey, I'm really grateful for the help! let me send ya a little somethin
<Radar> lucas__: awww thanks :D
<havenwood> Aeyrix: It'll work in the mysterious future. Need some RubyGems side changes first.
bluOxigen has joined #ruby
riotjones has joined #ruby
<lucas__> Hey, can I ask one more question?
<blokc> no, yes
ndrei has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Remote host closed the connection]
<Radar> Thanks lucas__ :)
<blokc> this is a choose your own adventure
astrobun_ has joined #ruby
<lucas__> I choose yes
<Aeyrix> [Yes] No
* sevenseacat turns to page 53
<lucas__> did I die?
<blokc> nope, just some pages turned.
<havenwood> Aeyrix: Here's the issue to watch if you want to know when it's resolved. But it'll follow the upstream RubyGems issue above.
<blokc> great question
<blokc> Ok I'm out \wave
blokc has quit [Quit: blokc]
hotpancakes has quit [Ping timeout: 255 seconds]
mhib has joined #ruby
<havenwood> --env-shebang default ftw
solars has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
pengin has quit [Remote host closed the connection]
RegulationD has joined #ruby
wallerdev has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lucas__> https://gist.github.com/lucasrim/d11b591988750960accd I guess I'm still having problems with my original question... if the input were mode([5, 4, 1, 1] it would output [0] 1, [1] 2, but I really only want the 0 line. is there a way to speicfy which part of the hash i want returned?
dopieee has joined #ruby
mistermocha has joined #ruby
Xoro has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
sharpmachine has joined #ruby
Ilyas has joined #ruby
<Burgestrand> lucas__: you want the number only, not its' count?
<lucas__> yeah...
RegulationD has quit [Ping timeout: 252 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<Burgestrand> lucas__: yes there is a way, thing is, as soon as you've done to_a, it's no longer a hash, it's an array of [key, values], I'm guessing you've observed this?
oo_ has quit [Remote host closed the connection]
<Burgestrand> Sorry, bad pluralisation, [key, value]
<lucas__> ahhhh you're right. you're right. yeah i want to return it as a hash, so I can just take that out.
sharpmachine has quit [Ping timeout: 246 seconds]
railsraider has joined #ruby
<Burgestrand> lucas__: so you go from [5, 4, 1, 1], into hash { 5 => 1, 4 => 1, 1 => 2 }, into array with to_a, [[5, 1], [4, 1], [1, 2]], you sort it (happens to end up in same order), and pick the last element, [1, 2]
<Burgestrand> lucas__: (hint) your final step is you want the first element of that final result
niemcu has joined #ruby
tagrudev has joined #ruby
oo_ has joined #ruby
allomov has joined #ruby
Brainling has quit [Read error: Connection reset by peer]
<Radar> first element or last element?
Feyn has quit [Quit: Leaving]
* Radar reads again
<lucas__> so can I just do... an .at(0) ?
<Burgestrand> it wants the key
<Radar> lucas__: [0] is shorter :)
<Burgestrand> lucas__: yes, there's also a .first that you can use, very similar to .last, except it's… first :)
aganov has joined #ruby
<lucas__> ohhh... So if I used [0], and if there was more than one mode.... would it return just the 1?
<Burgestrand> lucas__: what is a mode, is each of 5, 4, 1, 1 a mode?
oo_ has quit [Remote host closed the connection]
<lucas__> no no, so i'm looking for the mode, so the mode would be 1
<Burgestrand> lucas__: I don't know what a mode is.
<lucas__> ohhh a mode is the number in the sequence that occurs most often
workmad3 has joined #ruby
<lucas__> so... if the input was 5, 4, 1, 1, 5, the mode would be both 5 and 1
<Burgestrand> lucas__: so if there's a tie in the number of occurrences you want them all?
<Radar> that'd made it bimodal
<Burgestrand> or trimodal!
<Radar> multimodal!
<Radar> MULTIBALL
<Burgestrand> MEGAMODAL
eGGsha has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
<Burgestrand> Getting all of them makes the problem so much trickier I guess. :)
<lucas__> ideally. yeah. or however many ___modal...
<Radar> Not that much tricker
niemcu has quit [Ping timeout: 240 seconds]
<lucas__> m-m-m-m-monster modal
<Radar> Find the maximum count, then find all other keys in the hash with that value
<Burgestrand> It's all relative to how accustomed you are to the programming and language
Carnage\ has joined #ruby
<lucas__> almost completely new.... this would be about 1 week in to learning :\
<lucas__> on my own.
<Burgestrand> lucas__: I believe it'd help with your understanding if you split up all your method calls into one line each, so you could observe what it looks like at every step
<Burgestrand> lucas__: http://ideone.com/ca71sR
<lucas__> so I'm not very good :(
allomov has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
tkuchiki has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
<Burgestrand> lucas__: so there's always multiple ways of doing this. Since you have an array in the end, there's no good way to just "pick this key" or "pick this count" from it, you'll need to walk through the list and pick out the parts you want.
workmad3 has quit [Ping timeout: 240 seconds]
<Burgestrand> lucas__: because it's sorted, the items you want (those sharing the highest mode) will always be at the end of the list, you'll have at least one but you could have many.
Carnage\ has quit [Client Quit]
jacaballero has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<lucas__> okay. so... Uh okay, I think I have a better answer.... Give me one second to write this out
rushed has joined #ruby
<lucas__> then i'll type it
<Burgestrand> lucas__: I'll be here for at least 8 hours more, no hurry ;)
eGGsha is now known as eGGshke
allomov has joined #ruby
mistermocha has joined #ruby
<certainty> moin
<Burgestrand> \o.
<certainty> o/
<lucas__> Burgerstand: just checking if this works
<lucas__> hmm.
<Burgestrand> lucas__: there's a bug in your current code as well, but it might disappear if you retype your solution, we'll see :)
balazs has joined #ruby
TinkerTyper has quit [Ping timeout: 256 seconds]
eGGshke is now known as eGGsha
<lucas__> I'm gonna start from scratch, if you don't mind. Honestly, I've been staring at this code for 2 hours, and I would like to just start again.
riotjones has joined #ruby
tkuchiki has joined #ruby
howdoi has joined #ruby
<Burgestrand> ;)
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
TinkerTyper has joined #ruby
kfpratt has quit [Remote host closed the connection]
dopieee has quit [Quit: This computer has gone to sleep]
arturaz has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
ivanskie has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
<lucas__> also I'm not sure if that's the correct way to blip you.... I haven't really used irc
<Radar> lucas__: Type the first couple of characters of someone's name and hit tab
<Aeyrix> lucas__: Just type their name, or type some of it and press TAB.
jfarmer has quit []
yeticry has joined #ruby
<lucas__> ohhh okay
allomov has quit [Remote host closed the connection]
christiandsg has joined #ruby
<Burgestrand> Tap completion is very useful when you have a name that looks like burgerstand, but isn't ;).
wallerdev has quit [Quit: wallerdev]
Xeago has joined #ruby
* Aeyrix actually thought it was Burgerstand.
<Aeyrix> :P
<Burgestrand> Most do :)
<shevy> mhhmmm burgers
<shevy> this is strange, #ruby is a channel that makes me hungry
<lucas__> hey i think i got it actually
El3ktra has joined #ruby
<Burgestrand> lucas__: \o/
mistermocha has quit [Ping timeout: 255 seconds]
<lucas__> let me write in some comments to explain my thoughts i guess
hotpancakes has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
Ilyas has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 248 seconds]
icosa1 has joined #ruby
Asher has quit [Remote host closed the connection]
Asher has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<Burgestrand> A nice part about this channel is that you sometimes get small fun problems to solve, it's therapeutic.
<Burgestrand> Writing ruby code just for the sake of throwing it away once done.
roolo has joined #ruby
<shevy> hehe
astrobu__ has joined #ruby
olistik has quit [Remote host closed the connection]
<shevy> for that purpose I usually store that ruby code in a .rb file, so that I can invoke it lateron through a call again, by calling the method there
<baweaver> Wow, Twitter must be Nirvana then
<baweaver> they throw out lots of Ruby code :troll:
astrobun_ has quit [Ping timeout: 265 seconds]
<Burgestrand> lucas__: yeah, looks good, well done :)
<lucas__> cool! very happy. Thank you guys so much! Radar and Burgestrand
<Radar> No worries mate :)
roolo_ has joined #ruby
<shevy> we use a radar to find a burger...
lucas__ has quit [Quit: Page closed]
Scroff has joined #ruby
lucas__ has joined #ruby
ndrei has joined #ruby
dgutierrez1287 has joined #ruby
hoofed has quit [Read error: Connection reset by peer]
bronson has joined #ruby
<Burgestrand> lucas__: in case you're interested, I also made one, https://repl.it/vu0, I wanted to try and reduce the number of iterations to a minimum
roolo has quit [Ping timeout: 256 seconds]
jhwhite has joined #ruby
mhib has quit [Remote host closed the connection]
<baweaver> group_by is a thing
<Burgestrand> There are many things!
<baweaver> >> ["a", "b", "c", "c", "a"].group_by(&:itself)
<ruboto> baweaver # => {"a"=>["a", "a"], "b"=>["b"], "c"=>["c", "c"]} (https://eval.in/394669)
jas02 has joined #ruby
krz has joined #ruby
Bitcrusher01 has joined #ruby
lucas___ has joined #ruby
Azulinho has quit [Ping timeout: 276 seconds]
Scroff has quit [Ping timeout: 265 seconds]
Xeago has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.2]
<baweaver> >> ["a", "b", "c", "c", "a"].group_by(&:itself).values.max_by(&:size) # though that ignores c
<ruboto> baweaver # => ["a", "a"] (https://eval.in/394673)
andikr has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
<Burgestrand> baweaver: yeah we can't have that.
<lucas__> I am not familiar with "require 'set'" so I'm gonna read up on it now!
<Burgestrand> ;)
<Burgestrand> lucas__: it's like an array, but it cannot contain duplicates.
<Burgestrand> lucas__: and also it does not have an order, so there is no first element for example.
jhwhite has quit [Ping timeout: 276 seconds]
Ox0dea has joined #ruby
MagePsycho_ has quit [Quit: Ex-Chat]
jfarmer has joined #ruby
ta has quit [Remote host closed the connection]
<Ox0dea> Burgestrand: For what it's worth, Ruby's Set is a wrapper around Hash, and Ruby's hashes do preserve insertion order.
<sevenseacat> (unless you're using ruby < 1.9 iirc)
<Burgestrand> Ox0dea: indeed, but Set is semantically not ordered, there's SortedSet for that.
joonty has quit [Quit: joonty]
<Ox0dea> Fair enough.
rdark has joined #ruby
jfarmer has quit [Client Quit]
<baweaver> >> ["a", "b", "c", "c", "a"].group_by(&:itself).map { |k,v| [k,v.size] } # gives you counts
<ruboto> baweaver # => [["a", 2], ["b", 1], ["c", 2]] (https://eval.in/394674)
sharpmachine has joined #ruby
<Ox0dea> The mode is the mean of the most frequently occurring element(s), is it not?
<baweaver> indeed
<Ox0dea> What's the mean of 'a' and 'b'? :)
<ljarvis> moin
<lucas__> okay, I think I got it!
<lucas__> Burgestrand Is there any way I can get you back?
<Burgestrand> lucas__: Back?
<lucas__> hmm.. like a paypal or something
<lucas__> your help has been invaluable
<Burgestrand> lucas__: ah, buy some strawberries and enjoy them
<lucas__> :) thanks again! I've gotta head to bed now!
<Ox0dea> lucas__: But the mean!
<baweaver> pretty much just pay things forward
codecop has joined #ruby
codecop_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<lucas__> I'll try, I feel i'll have to learn a lot more before I feel useful
mike___1234 has joined #ruby
<Burgestrand> lucas__: if you meet yourself from one week ago in somebody else you can already be useful ;)
fabrice31 has joined #ruby
<Ox0dea> Zen.
<lucas__> Very wise
<lucas__> goodnight y'all
<Burgestrand> \o.
konsolebox has joined #ruby
lucas__ has quit [Quit: Page closed]
lucas___ is now known as lucas__
lucas__ has quit [Quit: lucas__]
sharpmachine has quit [Ping timeout: 256 seconds]
<Ox0dea> baweaver: Reckon it's possible to get input a line at a time? I can do [*$<] to grab ARGF.lines, but then no interactivity. :/
fabrice31 has quit [Remote host closed the connection]
A124 has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
<baweaver> unless you can loop it somehow
<Ox0dea> It blocks.
<baweaver> yeah
<baweaver> hm
<baweaver> ah, also writing a ruby book because fun
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
randiman has joined #ruby
haxrbyte has joined #ruby
<Ox0dea> baweaver: It's going to be a cross between __ and __, and maybe a little __.
<baweaver> and because apparently writing a 500+ page fiction book wasn't masochistic enough
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
devbug_ has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
codecop_ has quit [Quit: Išeinu]
<Ox0dea> No direct influences, then?
bhuvanaurora has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
bhuvan_aurora has quit [Ping timeout: 255 seconds]
warriorkitty has joined #ruby
arup_r has quit []
devbug has quit [Ping timeout: 265 seconds]
<warriorkitty> Hi all. I need to get the time in New York (different time zone than mine)? What would be the easiest way? New York is in UTC-4 timezone. Thank you very much.
krz has quit [Quit: WeeChat 1.0.1]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
eGGsha has joined #ruby
<Burgestrand> warriorkitty: I'm assuming you want it through ruby, and not by googling "time in new york"?
<warriorkitty> Burgestrand: Yes. :)
<Burgestrand> warriorkitty: are you using Rails?
<warriorkitty> Burgestrand: Yes, I'm doing it through rake as a task.
gagrio has joined #ruby
iwishiwerearobot has joined #ruby
krz has joined #ruby
<Burgestrand> warriorkitty: in that case yes, that documentation is where you should look. I'm not sure I feel good setting it globally through Time.zone, so I'd look for an alternative, but in a pinch that should do.
<warriorkitty> Burgestrand: Thank you.
warriorkitty has quit [Quit: Lost terminal]
jenrzzz has quit [Ping timeout: 256 seconds]
tno has joined #ruby
jenrzzz has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
roolo_ has quit [Remote host closed the connection]
jacaballero has quit [Read error: Connection reset by peer]
jacaballero has joined #ruby
bhuvan_aurora has joined #ruby
bhuvanaurora has joined #ruby
AlexAltea has quit [Ping timeout: 244 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
jacaballero has quit [Max SendQ exceeded]
ta has joined #ruby
jacaballero has joined #ruby
blueOxigen has joined #ruby
mistermocha has joined #ruby
t3k has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unshadow has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
dumdedum has joined #ruby
lxsameer has joined #ruby
t3k has joined #ruby
randiman has quit [Quit: (null)]
slucx has joined #ruby
troulouliou_dev has joined #ruby
xcesariox has joined #ruby
t3k has quit [Client Quit]
Musashi007 has quit [Read error: Connection reset by peer]
devbug_ has quit [Read error: Connection reset by peer]
olistik has joined #ruby
slucx has quit [Client Quit]
slucx has joined #ruby
Musashi007 has joined #ruby
slucx has left #ruby [#ruby]
dumdedum has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
kies^ has joined #ruby
anaeem1 has joined #ruby
bosma has quit [Read error: Connection reset by peer]
ValicekB has quit [Ping timeout: 250 seconds]
unshadow has quit [Quit: leaving]
bosma has joined #ruby
Xeago has quit [Remote host closed the connection]
jacaballero has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
jacaballero has joined #ruby
RegulationD has joined #ruby
workmad3 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<shevy> jhass, crystal would be faster for GUI stuff such as gtk bindings because it is compiled rather than interpreted, such as ruby, right?
bnizzle has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
oo_ has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<arup_r> I am always getting `401` error.. I am sure username/password is correct.. as I can login using browser .. what wrong with my code ? https://gist.github.com/aruprakshit/611ec7128ed5bee1e842
mistermocha has joined #ruby
t3k has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
ValicekB has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
k3asd` has joined #ruby
k3asd`_ has joined #ruby
<jhass> shevy: s/for gui stuff//, it's just faster for pretty much everything
<Burgestrand> arup_r: your 'xxx' and 'xxxx!' are proxy parameters.
t_ has joined #ruby
AlphaAtom has quit [Client Quit]
<Burgestrand> arup_r: is that correct, or do you want to do http auth?
Spami has quit [Quit: This computer has gone to sleep]
<arup_r> sI want to do http auth
d0lph1n98 has quit [Quit: leaving]
AlphaAtom has joined #ruby
<ljarvis> yeah those are proxy credentials
krz has quit [Quit: WeeChat 1.0.1]
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> Hi
<Burgestrand> Hi!
krz has joined #ruby
<arup_r> thanks Burgestrand.. I misread the doco
dumdedum has joined #ruby
msgodf has joined #ruby
GitGud has quit [Quit: My name is your name]
haxrbyte has quit [Remote host closed the connection]
AlphaAtom has quit [Client Quit]
senayar has quit [Remote host closed the connection]
casadei_ has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
white_bear has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Xeago has joined #ruby
haxrbyte_ has joined #ruby
rushed has quit [Quit: rushed]
sharpmachine has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
anaeem1 has quit [Remote host closed the connection]
livathinos has joined #ruby
Igorshp has joined #ruby
anaeem1 has joined #ruby
casadei_ has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
Feyn has joined #ruby
ta has joined #ruby
Scroff has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
jmhmccr has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
jacaballero has quit [Max SendQ exceeded]
Xzanron has joined #ruby
krz has quit [Read error: Connection reset by peer]
ohaibbq has quit [Quit: Leaving...]
workmad3 has joined #ruby
krz has joined #ruby
michael_mbp has quit [Excess Flood]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
haraoka has joined #ruby
gix has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
dhjondoh has joined #ruby
t3k has quit [Quit: Textual IRC Client: www.textualapp.com]
eGGsha has joined #ruby
jacaballero has joined #ruby
iwishiwerearobot has joined #ruby
Spami has joined #ruby
ndrei has joined #ruby
intinig has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
DaniG2k has joined #ruby
doertedev has joined #ruby
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
<yorickpeterse> morning
michael_mbp has joined #ruby
Hounddog has joined #ruby
<neanias> yorickpeterse: mornen
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hmnhf has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
chthon has joined #ruby
Siyfion has joined #ruby
hmnhf has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
bayed has joined #ruby
zacstewart has joined #ruby
allomov has joined #ruby
allomov_ has joined #ruby
allomov has quit [Read error: Connection reset by peer]
axl__ has joined #ruby
olistik has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 256 seconds]
rushed has joined #ruby
Zai00 has joined #ruby
RegulationD has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rushed has quit [Client Quit]
Spami has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
lee-jon has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
jhwhite has joined #ruby
yeticry has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
renderful has joined #ruby
GPrime has joined #ruby
oo_ has quit [Remote host closed the connection]
jhwhite has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
Spami has joined #ruby
ferr has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ringarin has joined #ruby
Zai00 has quit [Ping timeout: 252 seconds]
sharpmachine has joined #ruby
anisha has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
lkba_ has joined #ruby
lkba_ has joined #ruby
willhumphreys has joined #ruby
penzurx has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
sharpmachine has quit [Ping timeout: 256 seconds]
[SaM] has joined #ruby
astrobu__ has quit [Remote host closed the connection]
senayar has joined #ruby
oo_ has joined #ruby
Igorshp has joined #ruby
penzur has quit [Ping timeout: 248 seconds]
olistik has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
Nick_joes_ has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
sevenseacat has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
arup_r has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
bruno- has joined #ruby
GriffinHeart has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
dgutierrez1287 has joined #ruby
zacts has joined #ruby
sevenseacat has joined #ruby
hotpancakes has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
yardenbar has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
poguez_ has quit [Quit: Connection closed for inactivity]
hmnhf has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
hmnhf has joined #ruby
hotpancakes has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
chinmay_dd_ has joined #ruby
bhuvanaurora has quit [Ping timeout: 248 seconds]
quimrstorres has quit [Remote host closed the connection]
bhuvan_aurora has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
shredding has joined #ruby
Gadgetoid has quit [Read error: Connection reset by peer]
ruby-lang240 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Xeago has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
<ytti> what time series database solution would you recommend for rubyist?
<ytti> preferably performant solution
<ytti> but so that I can interface it with good ruby library
chinmay_dd_ has quit [Ping timeout: 248 seconds]
willhumphreys has quit [Ping timeout: 244 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
dhjondoh has quit [Quit: dhjondoh]
mhib has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<izzol> hmm, there is a simply way to return the value in rspec from the is_expected ?
Zai00 has joined #ruby
<izzol> I mean, I have something like: it { is_expected. bla bla bla .config(nameserver: dns) }
xcesariox has joined #ruby
<yorickpeterse> ytti: PostgreSQL
<izzol> where dns is from each or from the method.
Drakevr has joined #ruby
<izzol> And on the result/ouput I have only "dns", instead of the real value.
arup_r has joined #ruby
<izzol> And in this case I don't see which DNS I'm quering :)
sigurding has joined #ruby
<maloik> izzol: I didn't quite get your question, best option is to post some real code
<ljarvis> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
konsolebox has quit [Ping timeout: 255 seconds]
<izzol> sure.
penz has joined #ruby
codecop has quit [Quit: Išeinu]
eGGsha has joined #ruby
foooobear has joined #ruby
oo_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
casadei_ has joined #ruby
<izzol> The problem is that I don't see my DNS server on the output.
<izzol> but just the 'dns'.
<izzol> so basicialy I would like to see: config(nameserver: 8.8.8.8)
penzurx has quit [Ping timeout: 255 seconds]
<maloik> try this: describe "test_host with #{dns} as the server" do
<ljarvis> what even is this syntax
<izzol> I did that but it doens't work
<ljarvis> dammit rspec
<ljarvis> when i thought i knew you
<maloik> still using should?
casadei_ has quit [Ping timeout: 256 seconds]
<izzol> ohh wait
<izzol> it works when I changed '' to ""
<izzol> :)
<izzol> cool, now I see what I want to see :P
<maloik> yes, that's how interpolation works ;-)
<izzol> thanks maloik
<maloik> yw
hotpancakes has joined #ruby
quimrstorres has quit []
bhuvan_aurora has joined #ruby
bhuvanaurora has joined #ruby
<yorickpeterse> ljarvis: yeah, the it { ... } form is really confusing
<maloik> yea, there's that
<ytti> yorickpeterse, do you think postgres is good for large time series?
<maloik> we hardly ever use that except for with the "is expected to validate presence of" things
<ytti> yorickpeterse, like billions of entries?
workmad3 has joined #ruby
quimrstorres has joined #ruby
rodfersou has joined #ruby
<maloik> ytti: at the risk of sounding incredulous, is that an actual problem right now? billions of entries sounds like quite a lot ;)
<yorickpeterse> ytti: do you actually need a database for that?
<yorickpeterse> as in, will you actually reach that scale within now and the next ~2 years?
<maloik> ^ that
oo_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<yorickpeterse> yay floats: [array of lots of integers supposedly adding up to 100].sum # => 100.00000000000001
<yorickpeterse> but surely float + float _always_ give back consistent decimals right?
<yorickpeterse> right??
<ytti> maloik, yorickpeterse yes
<ytti> tsdb scale usually is trillions
GriffinHeart has quit [Remote host closed the connection]
<yorickpeterse> "usually" != your use case
<ytti> when you want to collect persistent metrics from many datapoints, very frequently, and store them for lon
<yorickpeterse> Either way, if the data is small Pg can probably handle it just fine
<ytti> i'm asking for tsdb, because i know the dataset will be very large
<yorickpeterse> If you need zomgscale you'll have to look into whatever timeseries DB out of many out there suits your needs
<ytti> yes, and that is what i was asking, if people here have recommendation
<yorickpeterse> Row counts doesn't really matter also
DaniG2k has quit [Quit: leaving]
<yorickpeterse> it's the size of each row that you need to be worried about
<yorickpeterse> and how much you intend to index
AlexAltea has joined #ruby
last_staff has joined #ruby
hmnhf has quit [Remote host closed the connection]
decoponyo has joined #ruby
christiandsg has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
decoponyo has quit [Max SendQ exceeded]
chinmay_dd has joined #ruby
decoponyo has joined #ruby
decoponio has quit [Ping timeout: 240 seconds]
krz has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 252 seconds]
parabolize has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Spami has joined #ruby
decoponyo has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
felixr has joined #ruby
sharpmachine has joined #ruby
zacstewart has joined #ruby
garysollin has quit [Quit: Leaving]
decoponio has quit [Max SendQ exceeded]
konsolebox has joined #ruby
decoponio has joined #ruby
marr has joined #ruby
bronson has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
sharpmachine has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
Zai00 has quit [Quit: Zai00]
adamski2600 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<maloik> Our SSL provider's API is being routed through CloudFlare and returning a ton of http 525 errors because CloudFlare can't complete the SSL handshake with the provider's servers... something is not right here :/
bronson has quit [Ping timeout: 265 seconds]
platzhirsch has joined #ruby
Scroff has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
krz has joined #ruby
oo_ has quit [Remote host closed the connection]
Scroff has joined #ruby
Macaveli has joined #ruby
oo_ has joined #ruby
yaw has joined #ruby
AlexAltea has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> there's something satisfying to having decent spec descriptions
<yorickpeterse> besides it actually being easy to understand what the heck the specs do
aryaching has joined #ruby
RegulationD has joined #ruby
chipotle has joined #ruby
lkba has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
dhjondoh has joined #ruby
oo_ has joined #ruby
sigurding has quit [Quit: sigurding]
lkba_ has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shadeslayer has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
felixr has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
bhuvanaurora has quit [Ping timeout: 264 seconds]
bhuvan_aurora has quit [Ping timeout: 256 seconds]
khebbie has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
<Bitcrusher01> I've got at quick question; I'm currently making some tests using serverspec, and found an example for testing a network interfaces netmask - I just don't understand the format the variable is in --- it { should have_ipv4_address("${2:ipaddress/netmask}") }
nerium has joined #ruby
<Bitcrusher01> can anyone explain it to me?
mistermocha has quit [Read error: Connection reset by peer]
<Bitcrusher01> the ${2:ipaddress/netmask} part - I've only seen #{} till now
decoponio has quit [Quit: Leaving...]
leonardoajim has quit [Quit: Be back later ...]
sdothum has joined #ruby
mistermocha has joined #ruby
denver has joined #ruby
felixr has joined #ruby
<apeiros> Bitcrusher01: that's not something which comes from ruby itself
<apeiros> i.e. it's probably something serverspec or whatever interpolates itself. e.g. using gsub.
<Bitcrusher01> apeiros: thanks :) I'll try to figure out what $ is when using serverspec
<apeiros> I assume it's some kind of template mechanism / variable substitution
<maloik> could very well be chef-specific? afaik, they embed some kind of ruby in the latest versions
yaw has joined #ruby
jhwhite has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maloik> although im not sure to what end serverspec is linked to chef
<maloik> (if at all, for that matter)
Voker57 has joined #ruby
<Bitcrusher01> I have not installed chef directly (assuming it's a gem) - only if it's been installed as some king of mandatory dependency for server
<Bitcrusher01> *serverspec
<maloik> I just googled for that piece of code, the only place I've found a result for is a snippets file for what I believe to be a vim autocompletion plugin
nfk has joined #ruby
<maloik> is that .snip file the one you're looking at?
<Bitcrusher01> oh! it's for a vim plugin so it supports serverspec!?!
<maloik> it's not quite an example for serverspec
<Bitcrusher01> damn, I missed that part
<Bitcrusher01> sorry about that
<maloik> probably has something to do with regexes in vim, or allowing you to quickly tab between the parts you can edit in that snippet or so
zacstewart has joined #ruby
dangerousdave has joined #ruby
<zenspider> Bitcrusher01: that looks like bash variables w/ default values if not set
sigurding has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bitcrusher01> ahh, I didn't know you could make default values for bash vars
jhwhite has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
<zenspider> there's a bunch of different ${blahblah} formats. doesn't mean this is one of them, but I bet they're related
<zenspider> ok. bed for me.
<Bitcrusher01> zenspider: good night then :)
senayar has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
decoponio has joined #ruby
bruno- has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yaw has joined #ruby
haraoka has quit [Ping timeout: 276 seconds]
yaw has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
arturmartins has joined #ruby
idafyaid has joined #ruby
zeeraw has joined #ruby
cir0x has joined #ruby
bhuvanaurora has joined #ruby
bhuvan_aurora has joined #ruby
sigurding has quit [Quit: sigurding]
sharpmachine has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
Killerkeksdose_ has quit [Ping timeout: 276 seconds]
griffindy has joined #ruby
hotpancakes has joined #ruby
sharpmachine has quit [Ping timeout: 250 seconds]
Muhannad has joined #ruby
codecop has joined #ruby
stoodfarback has quit [Ping timeout: 246 seconds]
shredding has quit [Ping timeout: 252 seconds]
revath has joined #ruby
revath has left #ruby [#ruby]
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
centrx has joined #ruby
surs has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
mandarinkin has joined #ruby
ndrei has joined #ruby
Xeago has joined #ruby
Yiota has joined #ruby
arturmartins has quit [Quit: Leaving...]
Igorshp has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 246 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
ebbflowgo has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
anaeem1 has joined #ruby
Xeago has joined #ruby
zacstewart has joined #ruby
Kully3xf has joined #ruby
arup_r_ has joined #ruby
oo_ has quit [Remote host closed the connection]
lele is now known as Guest24
Xeago has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 250 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
oo_ has joined #ruby
arturmartins has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 276 seconds]
Igorshp has joined #ruby
zeeraw has joined #ruby
fabrice31 has joined #ruby
jaimessi has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
phutchins has joined #ruby
fabrice31 has joined #ruby
rodfersou has quit [Quit: leaving]
Igorshp has quit [Remote host closed the connection]
Kully3xf has quit [Ping timeout: 265 seconds]
eggoez has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby
fabrice31_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
felixr has quit [Quit: Konversation terminated!]
felixrsmith has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
christiandsg has joined #ruby
quazimodo has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niemcu has joined #ruby
ebbflowgo has joined #ruby
segmond has quit [Quit: Fail]
christiandsg has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
Metus has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
symbol has joined #ruby
bhuvan_aurora has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
bhuvanaurora has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
icosa1 has quit [Read error: Connection reset by peer]
felixrsmith has quit [Quit: Konversation terminated!]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
felixr has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Zai00 has joined #ruby
Scroff has quit [Remote host closed the connection]
Aeyrix has quit [Quit: ZNC - http://znc.in]
Igorshp has joined #ruby
Aeyrix has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
wallerdev has quit [Quit: wallerdev]
yeticry has joined #ruby
JDiPierro has joined #ruby
sharpmachine has joined #ruby
bhuvanaurora has joined #ruby
bhuvan_aurora has joined #ruby
Musashi007 has joined #ruby
sigurding has joined #ruby
bronson has joined #ruby
willhumphreys has joined #ruby
prettiestPony11 has joined #ruby
nettoweb has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
sharpmachine has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
<izzol> :D
<izzol> I installed ruby ruby 2.2.2p95 on C5 and after that servers is down :P
<izzol> server*
Aeyrix has quit [Quit: ZNC - http://znc.in]
stamina has joined #ruby
Aeyrix has joined #ruby
nateberkopec has joined #ruby
ringarin has quit [Quit: WeeChat 0.4.2]
mistermocha has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
Papierkorb has joined #ruby
hotpancakes has joined #ruby
RegulationD has joined #ruby
leonardoajim has joined #ruby
mistermocha has joined #ruby
bruno- has joined #ruby
Scroff has joined #ruby
jakobhans has joined #ruby
jhwhite has joined #ruby
symm- has joined #ruby
eggoez has joined #ruby
Killerkeksdose has joined #ruby
JDiPierro has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
hakunin has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
k3asd`_ has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
diegoviola has joined #ruby
tkuchiki has joined #ruby
freerobby has quit [Quit: Leaving.]
jhwhite has quit [Ping timeout: 246 seconds]
andikr has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bhuvan_aurora has quit [Ping timeout: 248 seconds]
andikr has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bhuvanaurora has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
jhwhite has joined #ruby
arturmartins has quit [Quit: Leaving...]
stamina has quit [Ping timeout: 240 seconds]
Gadgetoid has joined #ruby
CloCkWeRX has left #ruby [#ruby]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonathanwallace has joined #ruby
fella6s is now known as fella5s
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kully3xf has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
stamina has joined #ruby
kkeuning has joined #ruby
mary5030 has joined #ruby
kkeuning has quit [Client Quit]
bhorn1 has joined #ruby
willhumphreys has quit [Ping timeout: 246 seconds]
krz has joined #ruby
vt102 has joined #ruby
zacstewart has quit [Remote host closed the connection]
anaeem1 has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
sgambino has joined #ruby
Sehryn has joined #ruby
yaw has joined #ruby
kies^ has joined #ruby
mary5030 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
bhuvan_aurora has joined #ruby
victortyau has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
bhuvanaurora has joined #ruby
nerium has quit [Quit: nerium]
mjuszczak has joined #ruby
bruno- has joined #ruby
nateberkopec has quit [Quit: Leaving...]
griffindy has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Remote host closed the connection]
livathinos has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
bosma_ has joined #ruby
felixr has quit [Ping timeout: 240 seconds]
Zarthus has quit [Ping timeout: 248 seconds]
anaeem1__ has joined #ruby
anaeem1 has quit [Read error: No route to host]
felixr has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
knikolov has quit [Ping timeout: 248 seconds]
InternetFriend has joined #ruby
artmann_ has joined #ruby
artmann has quit [Ping timeout: 248 seconds]
tobyx_ has joined #ruby
AlexAltea has joined #ruby
hackeron has quit [Ping timeout: 265 seconds]
PlasmaStar has quit [Ping timeout: 256 seconds]
Bitcrusher01 has quit [Read error: Connection reset by peer]
kiki_lamb has quit [Ping timeout: 252 seconds]
Sehryn has quit [Ping timeout: 264 seconds]
marsjaninzmarsa has quit [Ping timeout: 250 seconds]
jhass has quit [Ping timeout: 248 seconds]
tobyx has quit [Ping timeout: 248 seconds]
Hien has quit [Ping timeout: 248 seconds]
Cork has quit [Ping timeout: 248 seconds]
ukd1_ has quit [Ping timeout: 276 seconds]
Zarthus has joined #ruby
knikolov has joined #ruby
krz has quit [Read error: Connection reset by peer]
marsjaninzmarsa has joined #ruby
kiki_lamb has joined #ruby
bosma has quit [Ping timeout: 248 seconds]
hackeron has joined #ruby
jhass has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
Hien has joined #ruby
felixr has quit [Client Quit]
ukd1 has joined #ruby
felixr has joined #ruby
quimrstorres has joined #ruby
PlasmaStar has joined #ruby
Cork has joined #ruby
cir0x1 has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
bigkevmcd has joined #ruby
sharpmachine has joined #ruby
dblessing has joined #ruby
cir0x1 has left #ruby [#ruby]
cir0x has quit [Ping timeout: 276 seconds]
eGGsha has joined #ruby
mjuszczak has quit []
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
JDiPierro has joined #ruby
quimrstorres has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
<neanderslob> hi everyone, I'm attempting to install the latest version of a rather popular ruby gem but am being told when I run bundle install that the given version doesn't exist
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
<sevenseacat> is the command you ran, a big secret or something?
t0rrieri has joined #ruby
nateberkopec has joined #ruby
leonardoajim has quit [Quit: Be back later ...]
<apeiros> same question regarding the error you get…
<ddv> sexy gem?
zacstewart has joined #ruby
<neanderslob> sevenseacat: trying to install version 1.10 of cancan
<sevenseacat> there is no 1.10 version
sharpmachine has quit [Ping timeout: 244 seconds]
<sevenseacat> latest is 1.6.10
<sevenseacat> that would be why :)
<neanderslob> sevenseacat: ok, that's consistent with what I'm finding :-P
<sevenseacat> that helps.
nateberkopec has quit [Client Quit]
<neanderslob> sevenseacat: however this fork says that I should be able to install their latest version (1.10) by simply adding it to my gem file
<sevenseacat> thats a different gem
<neanderslob> sevenseacat: are they way off, or am I missing a step
<sevenseacat> thats cancancan, which is also not the latest version
<ddv> cancancancan
<neanderslob> ahhhhh
<neanderslob> heh
<neanderslob> missed a can there
<sevenseacat> yep.
<neanderslob> well thanks then!
bungoman has joined #ruby
<jhass> we should upload can that fixes any gem "cancan" to gem "cancancan"
<shevy> this is why we can't have nice names
<sevenseacat> we should tell anyone using cancan or cancancan to just use pundit instead
tkuchiki has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
felixrsmith has joined #ruby
tmtwd has joined #ruby
<neanderslob> sevenseacat: not a cancan or cancancan fan I take it?
<sevenseacat> definitely not.
jlast has joined #ruby
RegulationD has joined #ruby
balazs has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
nertzy has joined #ruby
hotpancakes has joined #ruby
felixr has quit [Ping timeout: 244 seconds]
withnale_ has joined #ruby
Muhannad has quit [Ping timeout: 250 seconds]
icebourg has joined #ruby
freerobby has joined #ruby
charliesome has joined #ruby
icflournoy has joined #ruby
jerius has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
JakFrist has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
malconis has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
phutchins has quit [Quit: WeeChat 1.1.1]
ksjdflsjldf has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
tomphp has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
mistermocha has joined #ruby
Xeago has quit [Remote host closed the connection]
Squarepy has joined #ruby
icebourg has quit []
swills has joined #ruby
Xeago has joined #ruby
nateberkopec has joined #ruby
freerobby has quit [Quit: Leaving.]
JDiPierro has joined #ruby
yashinbasement has joined #ruby
leonardoajim has joined #ruby
ta has quit [Remote host closed the connection]
chthon has joined #ruby
krz has joined #ruby
devdazed has joined #ruby
prettiestPony11 has joined #ruby
yaw has joined #ruby
tkuchiki has quit [Remote host closed the connection]
yaw has quit [Max SendQ exceeded]
jlast has left #ruby ["Leaving..."]
christiandsg has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
kies^ has quit [Ping timeout: 246 seconds]
willhumphreys has joined #ruby
nettoweb has joined #ruby
rbennacer has joined #ruby
hotpancakes has joined #ruby
Xeago has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
ebbflowgo has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
Igorshp has quit [Remote host closed the connection]
unshadow has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
duggiefresh has joined #ruby
Igorshp has joined #ruby
mistermocha has joined #ruby
JDiPierro has quit [Remote host closed the connection]
whippythellama has joined #ruby
ESpiney has joined #ruby
JoshL has joined #ruby
ebbflowgo has quit [Ping timeout: 276 seconds]
acke has quit [Read error: Connection reset by peer]
acke has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has joined #ruby
JDiPierro has joined #ruby
konsolebox has quit [Quit: Leaving]
freerobby has joined #ruby
poguez_ has joined #ruby
ksjdflsjldf has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
nertzy has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
charliesome has quit [Quit: zzz]
xcesariox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
nertzy has joined #ruby
dhjondoh has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola> I'm getting this when installing the treat gem, any ideas?
<diegoviola> I'm on arch
axl__ has quit [Remote host closed the connection]
Sehryn has joined #ruby
paulcsmith has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
yashinbasement has quit [Quit: Leaving]
scripore has joined #ruby
<jhass> probably GCC5
ebbflowgo has joined #ruby
mdarby has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
fabrice31 has joined #ruby
<rapha> big_array_full_with_words.uniq.sort <= how could it happen that a word is still in there twice?
axl_ has joined #ruby
hinbody has joined #ruby
senayar has quit [Remote host closed the connection]
<diegoviola> sigh
<jhass> diegoviola: the issue you opened seems to be a duplicate of https://github.com/louismullie/treat/issues/91
<jhass> and it works for 2.1 here, so just broken on 2.2
senayar has joined #ruby
davedev24_ has joined #ruby
Xzanron has quit [Quit: Leaving]
<adaedra> rapha: unicode?
<jhass> rapha: you look at it with puts instead of p (.inspect)
workmad3 has joined #ruby
<diegoviola> jhass: ok
<jhass> and don't realize they're in fact different
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cgrieger^away has quit [Ping timeout: 252 seconds]
<rapha> adaedra: yes, Arabic text
casadei_ has joined #ruby
InternetFriend has joined #ruby
<rapha> jhass: and yes, I .puts it into a file
quazimodo has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
<jhass> rapha: as said, they byte sequences will be different, due to invisible chars, things that look the same or something
<jhass> *the
enebo has joined #ruby
cats has quit [Ping timeout: 252 seconds]
Kilo`byte has quit [Ping timeout: 256 seconds]
dhjondoh has quit [Quit: dhjondoh]
<rapha> jhass: you were right, they look exactly the same, but are slightly different forms of the same letter. thank you!
<jhass> copy paste the two "identical" words into your irb and do "foo".bytes
nertzy has quit [Quit: This computer has gone to sleep]
Xeago has quit [Remote host closed the connection]
Patrick_Bateman has joined #ruby
wlknsn has joined #ruby
linuxboytoo has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
<linuxboytoo> Hey all -- I had someone suggest using "%{}" instead of "#{}" for delayed interpolation however I am not finding it to actually work - anyone have input on this?
cgrieger^away has joined #ruby
<jhass> >> "%{foo}" % {foo: "bar"}
<ruboto> jhass # => "bar" (https://eval.in/394946)
<neanias> %{} doesn't do interpolation
<neanias> Does it?
[H]unt3r has joined #ruby
<neanias> Oh
<jhass> String#% does replace it
Xeago has joined #ruby
<linuxboytoo> I didn't think so either but maybe I am missing something
<jhass> linuxboytoo: see my example
charliesome has joined #ruby
<linuxboytoo> @jhass -- OHHHHH I see
<linuxboytoo> the space
cats has joined #ruby
<linuxboytoo> its not %{} its the string thingie
<jhass> >> "%{foo}".%({foo: "bar"})
<ruboto> jhass # => "bar" (https://eval.in/394949)
<jhass> more clear what's happening?
<diegoviola> anyone familiar with opennlp? will this play well with jruby?
ebbflowgo has quit [Ping timeout: 276 seconds]
sharpmachine has joined #ruby
<yorickpeterse> Yeah you can bind it to JRuby just fine
<yorickpeterse> but it's pretty much a bring-your-own-beer library
livathinos has quit [Ping timeout: 265 seconds]
<yorickpeterse> I think I have it somewhere talking to JRuby, lemme see
<diegoviola> you mean not many docs, etc?
tjohnson has joined #ruby
ebbflowgo has joined #ruby
senayar has quit [Remote host closed the connection]
<yorickpeterse> oh hm, that actually goes through Python to then start OpenNPL via the CLI
<yorickpeterse> lol
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<yorickpeterse> diegoviola: No as in, it's just the libraries
<yorickpeterse> They don't ship ready-made models and all that last I checked
bronson has joined #ruby
<yorickpeterse> If they do they're probably pretty basic
<diegoviola> ok
mleung has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
<yorickpeterse> https://github.com/opener-project *COUGH COUGH* she aint pretty but can do quite a few languages
<yorickpeterse> complete with enterprise XML
quimrstorres has joined #ruby
jpfuentes2 has joined #ruby
chthon has quit [Read error: Connection reset by peer]
<yorickpeterse> ^ we use said code to do all our NLP
cats has quit [Ping timeout: 252 seconds]
<yorickpeterse> which is euh lets see
<yorickpeterse> eugh lemme see how many documents we processed
sharpmachine has quit [Ping timeout: 246 seconds]
<yorickpeterse> once new relic finishes loading...
Kilo`byte has joined #ruby
<yorickpeterse> 820 000 XML documents in the past month
<yorickpeterse> well, times the amount of components we run
<yorickpeterse> which is like 820 000 * 6 or so
<yorickpeterse> ^ also 820 000 documents processed by Oga
rwilcox has joined #ruby
momomomomo has joined #ruby
<yorickpeterse> I should probably Twitters that
<diegoviola> NLTK looks easy but I'd hate to write python
millerti has joined #ruby
ebbflowgo has quit [Ping timeout: 256 seconds]
hotpancakes has quit [Remote host closed the connection]
<diegoviola> sigh
bronson has quit [Ping timeout: 246 seconds]
JakFrist has joined #ruby
<neanias> It's a trade off
<neanias> Great NLP stuff, but python
Patrick_Bateman has quit []
tkuchiki has quit [Remote host closed the connection]
lokulin has quit [Ping timeout: 264 seconds]
<diegoviola> I asked whey I can't do print "foo" if ... in python and they were barking all day to me
<diegoviola> why*
kobain has joined #ruby
sigurding has quit [Quit: sigurding]
<diegoviola> well not really
Spami has joined #ruby
mleung has quit [Quit: mleung]
<diegoviola> meh I'll try NLTK
dangerousdave has joined #ruby
<neanias> Yeah, I missed that when having to do some NLTK stuff
wlknsn has quit [Quit: WeeChat 1.2]
Scroff has quit [Remote host closed the connection]
<neanias> I think you can at least do if ... : print "foo"
Outlastsheep is now known as zz_Outlastsheep
Scroff has joined #ruby
aganov has quit [Remote host closed the connection]
RegulationD has joined #ruby
andikr has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
t0rrieri has joined #ruby
<neanias> >> puts "foo" if true
<ruboto> neanias # => foo ...check link for more (https://eval.in/394954)
jpfuente_ has joined #ruby
jpfuentes2 has quit [Read error: No route to host]
neoscene has joined #ruby
sigurding has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neoscene has quit [Client Quit]
<diegoviola> java might have a lot of this nlp stuff, maybe I can just use jruby then
fabrice31 has quit [Ping timeout: 265 seconds]
<yorickpeterse> diegoviola: what are you trying to do?
hotpancakes has joined #ruby
<yorickpeterse> Because that opener-project thing works via Ruby
chrissonar has quit [Remote host closed the connection]
<yorickpeterse> (although we shell out to Python/Perl in a few cases, huehue)
msnyon has joined #ruby
* yorickpeterse runs
scripore has quit [Quit: This computer has gone to sleep]
lokulin has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
EagleDelta has joined #ruby
Al3ks has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<Ox0dea> yorickpeterse: For Lingua?
Feyn has quit [Quit: Leaving]
ksjdflsjldf has joined #ruby
<yorickpeterse> Yeah no shit, what I meant was what specifically. Do they just want language detection, or the whole package of language -> pos -> opinion detection etc
<diegoviola> yorickpeterse: just trying to get started with NLP
bigkevmcd has quit [Quit: Outta here...]
Scroff has quit [Remote host closed the connection]
<Ox0dea> yorickpeterse: What? I was asking you to clarify why you were shelling out to Perl for NLP.
<yorickpeterse> diegoviola: Ah, then opener might be a bit too much since the output is pretty raw
<yorickpeterse> Ox0dea: oh right
<yorickpeterse> heh
bigkevmcd has joined #ruby
<yorickpeterse> Some researcher wrote the underlying code and thought that was a good idea
ksjdflsjldf has quit [Remote host closed the connection]
<yorickpeterse> we've been replacing a bunch of parts with pure Ruby lately
<diegoviola> boss said "Go learn some NLP, we need it for some project" and here I am
Al3ks has quit [Client Quit]
lee-jon has left #ruby [#ruby]
<yorickpeterse> https://github.com/opener-project/opinion-detector-basic used to be Python, is now pure Ruby
ksjdflsjldf has joined #ruby
neoscene has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
<diegoviola> what do you recommend then? nltk?
<yorickpeterse> diegoviola: http://www.opener-project.eu/webservices/entrance.html you can use this to see what output you'd get, it's basically the same if you'd use it via Ruby
Scroff has joined #ruby
<yorickpeterse> diegoviola: No idea, never used nltk
quazimodo has joined #ruby
<DefV> more like opeNERD, amirite
<Ox0dea> DefV: That might make people think it's a daemon.
lokulin has quit [Ping timeout: 240 seconds]
<yorickpeterse> it actually has daemons
<yorickpeterse> and webapps
<jhass> and clouds. and unicorns
jhwhite has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 252 seconds]
genpaku has quit [Ping timeout: 276 seconds]
Sehryn has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
Sehryn has joined #ruby
<yorickpeterse> worth mentioning I know basically fuck all about NLP, I just make it work
<yorickpeterse> our part in this project was to basically whip people, ship things, etc
yokel has joined #ruby
<yorickpeterse> Now we're basically the only ones left to maintain it :<
<yorickpeterse> because everybody else ran
genpaku has joined #ruby
<pontiki> especially the people whipping....
<DefV> as they should
<yorickpeterse> Funny that I actually predicted that at the start and everybody was like "nooooo that won't happen"
<yorickpeterse> 2 years later...
Xeago has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
Xeago has joined #ruby
mleung has joined #ruby
lokulin has joined #ruby
<yorickpeterse> I was also once told we'd write a scientific paper, sadly that never happened
<diegoviola> "because everybody else ran" <-- how every project end up sooner or later
<yorickpeterse> I would've quite enjoyed having it published with exactly 0 degrees
<yorickpeterse> (as in, me not having any academic background)
revath has joined #ruby
gthank has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola> screw that
bruno- has joined #ruby
nertzy has joined #ruby
tkuchiki has joined #ruby
davedev24_ has quit [Ping timeout: 246 seconds]
davedev2_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Kully3xf_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
j_mcnally has joined #ruby
<gthank> Is there a "standard" gem for patching .inspect to make it spit out JSON strings?
RegulationD has joined #ruby
<gthank> I've tried DDG and Google, and most of the top results are actually about install errors in the JSON gem
konsolebox has joined #ruby
<yorickpeterse> No, and you shouldn't
<yorickpeterse> "inspect" is meant for humans
Kully3xf has quit [Ping timeout: 252 seconds]
<yorickpeterse> If you want JSON output of something, define a method called "to_json"
eGGsha has joined #ruby
felixrsmith has quit [Quit: Konversation terminated!]
penz has quit [Quit: Leaving]
<gthank> I find JSON far more readable than the haphazard, "human-friendly" stuff I get from a lot of objecgts
penzur has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gthank> Especially if I'm going to be looking for stuff in logs that can be quite large
ferr has quit [Quit: WeeChat 1.2]
<jhass> I'm sure pry has a similar hook
solars has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
JoshL_ has joined #ruby
Agoldfish has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
JoshL has quit [Read error: Connection reset by peer]
<shevy> hook hook hook it up!
tkuchiki has joined #ruby
<ccooke> the downside of course is that some objects *can't* be converted to json
<ccooke> or whatever
redteam has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy> gthank should be simple to write a gem that would modify the inspect output upon an include-event
tmtwd has quit [Ping timeout: 240 seconds]
penzur has quit [Quit: Leaving]
redteam has quit [Client Quit]
<shevy> I envision the name for this gem be ... "viral_json" :)
pdoherty has joined #ruby
redteam has joined #ruby
<ccooke> shevy: Nah, use objectspace to find every instance method called "inspect" and patch in a wrapper. It'll be easy!
jgpawletko has joined #ruby
axl__ has joined #ruby
oo_ has joined #ruby
dgutierrez1287 has joined #ruby
victortyau has joined #ruby
<shevy> objectspace scares me
<jhass> why not use tracepoint to catch the inspect calls actually happening only, much more efficient
<ccooke> I had to use it recently. I love that it's *there*.
<ccooke> but I think that every single time I've used it, I've added a comment including exactly how long this particular dirty hack should be tolerated
<shevy> what did you have to do there? find some rogue objects?
Outlastsheep is now known as zz_Outlastsheep
duggiefresh has quit [Remote host closed the connection]
Soda has quit [Read error: Connection reset by peer]
ksjdflsjldf has quit [Quit: Leaving...]
but3k4 has joined #ruby
<gthank> TracePoint looks like it would be **terribly** inefficient
iamninja has quit [Ping timeout: 252 seconds]
<gthank> Isn't it adding (best-case) an operation to every single method invocation?
railsraider has quit [Ping timeout: 276 seconds]
joaomdmoura has quit []
mleung has quit [Quit: mleung]
<ccooke> shevy: No. I had to patch an object to infect its exception handling with a .ignore method
joaomdmoura has joined #ruby
<shevy> hahaha
<shevy> that's actually great :)
Xeago has quit [Remote host closed the connection]
<ccooke> A couple of weeks and *that* hack will be deleted :-)
dgutierrez1287 has quit [Remote host closed the connection]
eGGsha has quit [Read error: Connection reset by peer]
dopie has joined #ruby
dgutierrez1287 has joined #ruby
jhwhite has joined #ruby
<shevy> should be stored in "best of objectspace modifications - top 20"
<shevy> I am sure there will be lots more competition for it ccooke!
Xeago has joined #ruby
jas02 has quit [Quit: jas02]
<ccooke> basically, we're building a complex infrastructure involving third party code and parts of it aren't there yet. I implemented a dirty hack to replace two web services that aren't there with the ability to recursively pull stuff from a git repo, but the object I could add this to was a cleanroom-style protected DSL
JoshL_ has quit []
<shevy> gthank tracepoint stuff confuses me... last time I tried it, was through pickaxe playing with set_trace_var I think... and there is also set_trace_func? or something like that... when I used global variables less and less, it lost a lot of its appeal to continue to play with it
jas02 has joined #ruby
bodgix_wrk has joined #ruby
JoshL has joined #ruby
mistermocha has joined #ruby
anmeng has joined #ruby
bbeer has joined #ruby
kfpratt has joined #ruby
<bbeer> Hello, anyone here. I'm trying to setup gitlab and I'm failing on the mysql "gem". I don't know anything about ruby, so....help?
JoshL has quit [Client Quit]
<ccooke> said DSL would not allow you to add a method to it, because it would only call methods defined in the DSL's core file. Solution? Patch in .ignore, catch the no method exception, ignore it. :-)
<shevy> bbeer what error do you get
renderful has joined #ruby
jas02 has quit [Client Quit]
JoshL has joined #ruby
duggiefresh has joined #ruby
nfk has quit [Quit: yawn]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
aryaching has quit []
<bbeer> sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
<bbeer> gives:
tmtwd has joined #ruby
<ccooke> shevy: This fact says a lot - good and bad - about Ruby: I had applied this, tested it and got it working within five minutes of deciding this was the best answer. It took me longer to write the comment explaining the why and when this should be deleted.
<bbeer> Could not find mysql2-0.3.16 in any of the sources
mary5030 has joined #ruby
<shevy> wait... never gonna let you go
<shevy> isn't that rick rolling?
<ccooke> yes
anmeng has left #ruby [#ruby]
tkuchiki has joined #ruby
<shevy> do I dare to click on such an URL :D
<ccooke> the theme is used in the code :-)
aryaching has joined #ruby
<shevy> bbeer hmm so it's also related to bundler; I am sure someone else can help you with bundler, let me see if that mysql2 gem exists though
Sehryn has quit [Ping timeout: 264 seconds]
hmnhf has joined #ruby
<shevy> ok so the version are at: https://rubygems.org/gems/mysql2/versions and I do see 0.3.16, 0.3.16 - May 15, 2014 (47 KB)
<shevy> *the versions
<ytti> i've used this previously to automate CLI interactions - https://github.com/avdi/greenletters
<ytti> is this right tool for the job, or can someone recommend another tool
renderful has quit [Ping timeout: 244 seconds]
<shevy> you can click on the "0.3.16" part and download it there, then you have the .gem file, and perhaps you can do "gem install *.gem", or just pass the specific version to "gem" itself... gem install mysql2 -v 0.3.16 or so I think. but whether this works with bundler or not I have no idea, I have not been able to demystify bundler yet
acke has quit [Remote host closed the connection]
sigurding has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
solars has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bbeer> shevy: All I see in the Gemfile is :gem "mysql2", group: :mysql
<bbeer> I'm so confused.
jeanjack has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
sepp2k has joined #ruby
<shevy> yeah no idea sorry. The most recent version is 0.3.18 so I am not sure why it wants 0.3.16. jhass is a bundler expert, perhaps he knows
sarkyniin has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
<bbeer> shevy: it still says mysql2 is not part of the Gemfile...
<bbeer> :(
<jhass> bbeer: bundle -v?
<bbeer> segfault
<shevy> there also is #bundler by the way in the event that jhass sleeps but I just see he does not sleep!
<jhass> pardon, sudo -u git -H bundle -v
linuxboytoo has quit [Remote host closed the connection]
<bbeer> I might have another version of ruby installed. I thought I deleted it. Is there a way to remove ruby?
doertedev has quit [Ping timeout: 264 seconds]
<bbeer> I had to do a source build.
livathinos has joined #ruby
<jhass> a sudo make install is not easy to undo, no
linuxboytoo has joined #ruby
livathinos is now known as livathinos|away
<jhass> hence why it's discouraged
livathinos|away is now known as livathinos
linuxboytoo has quit [Read error: Connection reset by peer]
failshell has quit []
linuxboytoo has joined #ruby
Xeago has joined #ruby
yardenbar has quit [Ping timeout: 252 seconds]
<shevy> couldn't he do a make uninstall?
genpaku has quit [Ping timeout: 250 seconds]
yokel has quit [Ping timeout: 246 seconds]
<DefV> shevy: if make uninstall is implemented
allomov_ has quit [Remote host closed the connection]
j_mcnally has joined #ruby
balazs has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheBrayn is now known as TheBrany
<shevy> I trust my japanese ruby hackers!
j_mcnally has quit [Max SendQ exceeded]
TheBrany is now known as TheBrayn
yokel has joined #ruby
<bbeer> shevy: Make uninstall is not implemented.
j_mcnally has joined #ruby
rippa has joined #ruby
<shevy> :(
genpaku has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
<shevy> ccooke lol I see it now... module NeverGonnaLetYouDown
j_mcnally has joined #ruby
<jhass> bbeer: so, what about my question? what's your bundler version?
<ccooke> shevy: indeed
<ccooke> shevy: it's quite nicely written, for what it does.
oo_ has quit [Remote host closed the connection]
allomov has joined #ruby
Xeago has quit [Remote host closed the connection]
<ccooke> shevy: Definitely an argument for or against Ruby ;-)
gambl0re has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
Hounddog has quit [Remote host closed the connection]
<bbeer> jhass: It segfaulted, so I deleted the ruby in /usr/local so the latest in /usr/ would work. But now it says /usr/local/ items doesn't exit.
balazs has quit [Ping timeout: 256 seconds]
<bbeer> jhass: I'm rebuilding 2.1.6 with --prefix=/usr/local maybe that will overwrite the old install?
fabrice31 has quit [Remote host closed the connection]
centrx has joined #ruby
Xeago has joined #ruby
serivich has joined #ruby
<havenwood> There are: make clean && make distclean
jhack has joined #ruby
<havenwood> shevy: Sounds like a name for a supervisor gem.
<shevy> bbeer yeah, if you omit --prefix, then it will default to /usr/local
momomomomo has joined #ruby
<jhack> jhass: sasl auth?
<shevy> bbeer but you may have one ruby at /usr/bin/ruby and then one at /usr/local/bin/ruby
abuzze has quit [Remote host closed the connection]
Kully3xf has joined #ruby
<shevy> bundle -v should not segfault though :)
<bbeer> shevy: It seems to search /usr/local before /usr, which seems weird to me.
<bbeer> backwards to me.
renderful has joined #ruby
<shevy> I just installed bundler to test... "bundle -v" # Output is -> Bundler version 1.9.4
<jhass> shevy: oO
mistermocha has quit [Ping timeout: 256 seconds]
mistermo_ has joined #ruby
<jhass> "just installed" and you get an that old version?
<shevy> bbeer well, /usr/local would default to "user compiled programs", in the traditional FHS
<shevy> yeah
Kully3xf_ has quit [Ping timeout: 252 seconds]
<shevy> I install from my local repository usually, if I have to update, I grab a new version
<havenwood> shevy: Are you... time traveling?
<shevy> which happens only for gems I use!
<havenwood> Oh.
<shevy> ok ok I do a gem install bundler now, you pests :P
mesamoo has joined #ruby
<bbeer> It looks like my server is out of space!
bungoman has quit [Remote host closed the connection]
<bbeer> Fook!
<shevy> ok so now ... "bundle -v" -> Bundler version 1.10.5
bungoman has joined #ruby
<shevy> bbeer if I can do it, you can too, without segfaulting!
<ght> Question: I have this simple function that pulls data from a MySQL DB, iterates through it, and appends it to an array via <<, as seen here: https://gist.github.com/anonymous/3ab91cc7f8ed9f95fa4d
<bbeer> shevy: I cant' complete the install. I'm out of space.
<shevy> bbeer delete something you don't need!
<ght> I'd like to add a new key, "execute_push", to each of those "tag" entries when they're stored in the array. It's temporary so it doesn't need to be written to the DB.
<ght> For some reason, the syntax for doing such is escaping me.
yardenbar has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhack has quit [Ping timeout: 256 seconds]
<jhass> user_profile["mysql_client"] - that looks sooo wrong...
tkuchiki has quit [Remote host closed the connection]
<ght> Don't worry about that part, that works.
<ljarvis> i always store my db clients in my user_profile
<ght> I'm worried about adding the key.
linuxboytoo has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
<jhass> ght: conceptually wrong, not technically
linuxboytoo has joined #ruby
<ljarvis> also using interpolation in an sql query = bad
<ght> Werd, so, in that .each loop for populating the user_profile["tags"] array with the entries from the table, it's working fine, but is there any way on each tag entry to add an "execute_push" boolean value?
<ght> On a per array entry, temporary basis.
momomomomo has quit [Quit: momomomomo]
<ght> I feel like there is but the technique is escaping me for some reason.
<bbeer> shevy: I need it all. It's a new server!
InternetFriend has joined #ruby
nerium has joined #ruby
<jhass> I hesitate to answer it, it sounds like doing the design mistake over and over again ...
christiandsg has joined #ruby
<ght> lol, dude, it works otherwise.
<ght> So does anyone know?
j_mcnally has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
<ght> Ok, to keep you placated, I'll bite. What is the design mistake exactly in the code?
allomov has quit [Remote host closed the connection]
<shevy> ght I don't think I understood it. can't you just simply add more data to your array?
adamski2600 has quit [Remote host closed the connection]
<ght> I add a reference to the mysql_client and pass it around functions because I execute queries in various sections.
davedev24_ has joined #ruby
but3k4 has joined #ruby
<shevy> if your current array is [['bananas','apples','peaches']] you could turn it into a [['bananas','yummy'],['apples','totally awesome'],['peaches','allergic to peaches']]
<ght> shevy: It's the .each loop. I'm doing myquery.tags.each do |tag|; myarray << tag; end;
<shevy> though that sounds more like a Hash
<ght> Essentially
<jhass> ght: user_profile, pretending to or being a hash should know shit about your database connection, it should only cater about the user profile data
<shevy> isn't that just a case for .map ?
jhack has joined #ruby
<ght> ok jhass, thanks for the tip.
<ght> shevy: Might be, I rarely use .map, I need to study that method more.
<shevy> I mean that just looks like a classical example
<jhass> ght: anyway... so what's tag.class that you think you can add more random attributes to it?
<shevy> you iterate over a collection, then modify parts of it via a << method call
mistermo_ has quit [Ping timeout: 264 seconds]
riotjones has quit [Remote host closed the connection]
<ght> user_profile["tags"] is an array
<ght> []
linuxboytoo has quit [Ping timeout: 264 seconds]
<jhass> yeah, not what I asked because not what you want stick stuff to
tmtwd has joined #ruby
werelivinginthef has quit [Read error: Connection reset by peer]
jhack has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
<ght> What?
<shevy> >> array = %w( a b c ); array.map {|l| l+l.succ }
<ruboto> shevy # => ["ab", "bc", "cd"] (https://eval.in/394975)
christiandsg has quit [Ping timeout: 265 seconds]
<jhass> ght: you asked to add some random attribute ("execute_push", whatever that means) to the tag
<ght> That's correct.
<ljarvis> what is "tag"?
<ght> I suppose, before pushing the tag to the array, I could add that attribute?
Spami has joined #ruby
<jhass> so I wonder what tag is that makes you think it takes attributes in the first place
<ght> Tag... is a database record?
jobewan has joined #ruby
<ljarvis> what does that mean?
<ght> The code is right there, it's a query.
momomomomo has joined #ruby
<ljarvis> uh
<jhass> ght: the code shows nothing about that
<ght> Not you ljarvis.
<ljarvis> ght: excuse me?
programmerq has quit [Remote host closed the connection]
<jhass> and you're the only one not needing to guess here, ask your code
<ght> jhass: line 2?
<ght> user_tags = user_profile["mysql_client"].query("SELECT * FROM tags WHERE profile_id='#{user_profile['id']}'")
<jhass> p tag.class
sharpmachine has joined #ruby
<jhass> ght: query is not a method defined on Object
neoscene has quit [Quit: Try HydraIRC -> http://www.hydrairc.com <-]
sharpmachine has quit [Client Quit]
<shevy> aha! a special object
jhwhite has quit [Disconnected by services]
<jhass> and Object is the only thing I can be fairly sure about that is included into whatever user_profile["mysql_client"] returns
programmerq has joined #ruby
<ght> Ok, thanks for the help, appreciated.
momomomomo has quit [Client Quit]
<jhass> I also hesitate on going on a hunt into what I guess would be the right docs to figure out what tag is if it takes you 15 seconds to find out by simply doing p tag.class
Azulinho has joined #ruby
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby
chouhoulis has joined #ruby
spider-mario has joined #ruby
Rickmasta has joined #ruby
s2013 has joined #ruby
cochise_ has joined #ruby
cochise has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 246 seconds]
khebbie has joined #ruby
arturaz has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
sharpmachine has joined #ruby
Zai00 has quit [Quit: Zai00]
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
iamse7en has joined #ruby
txdv has left #ruby [#ruby]
rqde has joined #ruby
Cache_Money has joined #ruby
<rqde> Hey, I'm trying to deploy my first ruby app to openshift, but I've run into some problems. Help?
DoubleMalt has quit [Remote host closed the connection]
<ljarvis> ?help
<ruboto> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
<ljarvis> o
bronson has joined #ruby
<ljarvis> ?ask rqde
<ruboto> rqde, Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
adamski2600 has joined #ruby
Timba-as has quit [Quit: Be back later ...]
joonty has joined #ruby
rcvalle has joined #ruby
solars has quit [Ping timeout: 246 seconds]
bungoman has quit [Remote host closed the connection]
<jhass> is it rails 4.2? :P
<shevy> :D
<shevy> if it is then jhass has some mind reading powers
bbeer is now known as WarWeasle
bnizzle has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
WarWeasle is now known as warweasle
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
jamesaxl has joined #ruby
<shevy> oh
icflournoy has quit [Ping timeout: 244 seconds]
<shevy> does anyone happen to know why .start_with? does not allow a // regex?
haxrbyte has joined #ruby
Zai00 has joined #ruby
<shevy> I just wanted to check for a number... hmm now I probably have to use /^\d+/
<jhass> because we have .match /\A for that
yardenbar has quit [Quit: Leaving]
jhack has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
<havenwood> >> "x\n5"[/^\d+/]
<ruboto> havenwood # => "5" (https://eval.in/394985)
<shevy> too verbose!
<havenwood> shevy: ^
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> shevy: /\A\d/
icflournoy has joined #ruby
nerium has quit [Quit: nerium]
<jhack> Is there a way where can i have sasl encryption with smuxi?
<jhass> better question for #freenode
podman has joined #ruby
bungoman has joined #ruby
<shevy> jhack and jhass... so similar nicks
<jhass> sasl isn't encryption btw, it's authentication. It just requires a TLS connection
<eam> what's the right way to make a string safe to print on a terminal?
phutchins has joined #ruby
<jhass> depends on the terminal I'd guess
<jhass> so, limit it to ascii?
<eam> let's say standard ansi-supporting vt100
<shevy> yay, colours!
jhack has quit [Client Quit]
<eam> jhass: what if I want to support unicode?
<eam> (because yeah, right now my stopgap is & 0x7F)
jhack has joined #ruby
armyriad has joined #ruby
Agoldfish has quit [Quit: G'Bye]
danman has joined #ruby
andrewstewart has left #ruby [#ruby]
anisha has quit [Quit: Leaving]
nerium has joined #ruby
sdothum has joined #ruby
symbol_ has joined #ruby
kies^ has joined #ruby
okdas has quit [Ping timeout: 256 seconds]
woodennails has joined #ruby
bhuvan_aurora has quit [Ping timeout: 250 seconds]
niemcu has quit [Ping timeout: 255 seconds]
bhuvanaurora has quit [Ping timeout: 248 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
symbol has quit [Ping timeout: 256 seconds]
dumdedum has quit [Ping timeout: 246 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
arturaz has joined #ruby
bungoman has quit [Remote host closed the connection]
icebourg has joined #ruby
hotpancakes has joined #ruby
icebourg has quit [Max SendQ exceeded]
<iamse7en> using Devise, i want to add a time_zone_select for :account_update but not :sign_up. I added the field to registrations/edit and put it in strong parameters for :account_update. however, when I do a sign up, it has error "Time zone is not included in the list". Time Zone isn't in sign_up because I don't want it there. how do I make it so it's not required for sign_up?
<shevy> [Silence in the channel after eam's unicode question.]
<adaedra> ?rails iamse7en
<ruboto> iamse7en, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
warweasle has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
noname1 has quit [Ping timeout: 256 seconds]
linuxboytoo has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
adamski2600 has quit [Remote host closed the connection]
bmurt has joined #ruby
baweaver has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<eam> well, I actually do want to allow the non-ascii characters
<eam> it's ansi escape sequences I'm concerned with
<Senjai> Good morning ruby
<ccooke> eam: ansi escape sequences are by definition valid for a terminal, though
InternetFriend has joined #ruby
<eam> right
<eam> just like html sequences are by definition valid for a web page, but there are often good reasons to filter or escape them ;)
gambl0re has joined #ruby
<eam> this is an untrusted input scenario
<ccooke> Right
__butch__ has joined #ruby
<ccooke> That's not the easiest thing to do
<eam> so & 0x7F keeps it ascii just fine, but then I can't support other languages
<ccooke> the *simplest* thing is to escape the escape characrer
<ccooke> There *are* other sequences, but they are rare
<ccooke> and hardware-dependant
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ccooke> and since 0x1b is never printable, it helps
<eam> well, just removing 0x1b is going to break unicode where that byte appears as part of a character, right?
okdas has quit [Ping timeout: 256 seconds]
<ccooke> no, not if you remove it sensibly
joonty has quit [Quit: joonty]
<ccooke> work on each character, not each byte
<eam> hm, that's probably adequate
<ccooke> if your string is encoded as unicode, there won't be an 0x1b in it unless there's actually an escape
towski_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<ccooke> you should also remove anything from 0x00-0x1f and 0x7f
bigkevmcd has quit [Read error: Connection reset by peer]
livathinos has quit []
<ccooke> the "printable" range of ANSI is 0x20-0x7e
Xeago has joined #ruby
<eam> I suppose another complication is I don't know the encoding of this string ;)
acke has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Ox0dea> ccooke: From a philosophical standpoint, it's difficult to say whether 0x20 should be considered "printable".
<ccooke> depending on what you need, you could also whitelist 0x09 (tab), 0x0a (newline)
<ccooke> Ox0dea: this is true, but from a *mechanical* standpoint it is definitely an expected character if you want sensible text :p-)
sigurding has quit [Quit: sigurding]
eGGsha has joined #ruby
<ccooke> eam: that is a much harder problem to solve.
<eam> ccooke: specifically, I want to print out /proc/*/cmdline on linux, for various other processes, and I don't want an attacker to mess with my terminal
<eam> eg by putting an arg into a command with an escape sequence
<jhass> eam: [[:print:]] perhaps?
<eam> jhass: oooh
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
<ccooke> jhass: nice.
<ccooke> that'll not sort out the encoding issue
railsraider has joined #ruby
momomomomo has joined #ruby
<eam> but, that depends on having a valid encoding, right? I guess what I'll do is try system default first, then fall back to 7bit clean bytes?
<jhass> never checked whether that considers the ANSI codes printable though
<ccooke> however, for /proc/*/cmdline... get the default system encoding, force the string to be encoded as that, then print it safely. worst case scenario, you'll have a bit of damage.
RegulationD has quit [Remote host closed the connection]
Lucky_ has joined #ruby
khebbie has joined #ruby
blaines_ has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
revath has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
revath has joined #ruby
grey_beard has quit [Ping timeout: 276 seconds]
k3asd` has joined #ruby
k3asd`_ has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
jonathanwallace has quit [Quit: Leaving.]
blaines has joined #ruby
grey_beard has joined #ruby
victortyau has quit [Quit: Leaving]
icebourg has quit []
JakFrist has joined #ruby
Ilyas has joined #ruby
mistermocha has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1__ has quit [Remote host closed the connection]
Agoldfish has joined #ruby
victortyau has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bricker has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
momomomomo has quit [Quit: momomomomo]
gagrio has quit [Ping timeout: 265 seconds]
Zai00 has quit [Quit: Zai00]
khebbie has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
senayar has quit []
revath has quit [Quit: Leaving.]
benlieb has joined #ruby
Zai00 has quit [Client Quit]
duggiefresh has quit [Remote host closed the connection]
revath has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
arturaz has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lee-jon has joined #ruby
c_nick has joined #ruby
zendrix has joined #ruby
Spami has joined #ruby
zendrix has quit [Read error: Connection reset by peer]
cmisenas has joined #ruby
zendrix has joined #ruby
Igorshp has joined #ruby
jhack_ has joined #ruby
jhack__ has joined #ruby
jhack99 has joined #ruby
quazimod1 has joined #ruby
jhack99 has quit [Remote host closed the connection]
jhack411 has joined #ruby
jhack411 has quit [Remote host closed the connection]
djbkd has joined #ruby
jhack__ has quit [Remote host closed the connection]
jhack_ has quit [Remote host closed the connection]
jhack has quit [Remote host closed the connection]
jhack has joined #ruby
ljt has joined #ruby
symbol_ has quit [Quit: WeeChat 1.1]
willhumphreys has quit [Ping timeout: 250 seconds]
thiagovsk has joined #ruby
baweaver has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 240 seconds]
white_bear has quit [Quit: leaving]
DoubleMalt has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has joined #ruby
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alayde has joined #ruby
revath has quit [Quit: Leaving.]
revath has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
NeverDie has joined #ruby
intinig has quit []
bronson has joined #ruby
railsraider has quit [Quit: railsraider]
mistermocha has quit [Read error: Connection reset by peer]
j_mcnall_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
hahuang65 has joined #ruby
mistermocha has joined #ruby
bb010g has joined #ruby
j_mcnally has quit [Ping timeout: 250 seconds]
bodgix_wrk has quit [Quit: Leaving...]
bronson has quit [Ping timeout: 264 seconds]
linuxboytoo has quit [Quit: Leaving...]
bruno- has quit [Quit: Lost terminal]
Xeago has joined #ruby
revath has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
SCHAAP137 has joined #ruby
revath has joined #ruby
t_ has quit [Remote host closed the connection]
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #ruby
willhumphreys has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
jakobhans has quit []
AlphaAtom has joined #ruby
kerrizor has joined #ruby
adamski2600 has joined #ruby
jaroslav has left #ruby [#ruby]
victortyau has quit [Ping timeout: 252 seconds]
t_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
pengin has joined #ruby
yardenbar has joined #ruby
bruno- has quit [Quit: Lost terminal]
yardenbar has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
User458764 has joined #ruby
momomomomo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
jerius has quit [Quit: /quit]
bungoman has joined #ruby
momomomomo has quit [Client Quit]
ljt has quit [Read error: Connection reset by peer]
lee-jon has left #ruby [#ruby]
JoshL has quit [Ping timeout: 265 seconds]
willhumphreys has quit [Ping timeout: 264 seconds]
livathinos has joined #ruby
christiandsg has joined #ruby
bocelli202 has joined #ruby
shadoi has joined #ruby
bhorn1 is now known as bhorn1|lunchz
jerius has joined #ruby
<Senjai> What's the canonical way to determine if an argument is a class? E.g when a method needs to accept both MyClass and :my_class
darkf has quit [Quit: Leaving]
j_mcnally has joined #ruby
bocelli202 has quit [Remote host closed the connection]
<centrx> Senjai, Sounds like you want a case statement that tests against MyClass or Symbol
slumos has left #ruby [#ruby]
<centrx> Senjai, or if x.is_a?(MyClass)
jpfuentes2 has joined #ruby
<Senjai> c_nick: MyClass can by any class
<Senjai> centrx: **
<centrx> oh, all classes are of type Class right?
nerium has quit [Quit: nerium]
<Senjai> At the moment I'm at defined?(thing) == "constant"
j_mcnall_ has quit [Ping timeout: 265 seconds]
balazs has joined #ruby
<jhass> .is_a? Class ?!
<Senjai> For some reason I thought that wouldn't work.
victortyau has joined #ruby
<jhass> or .respond_to? :new for some duck typing
kobain has quit [Ping timeout: 252 seconds]
<Senjai> In this case I could probably ductype on #activate!
duggiefresh has joined #ruby
<Senjai> but yeah, that'd work
<Senjai> Essentially if its a symbol, I need to constantize it, and if its a Class, I can do the ducktyping
khebbie has joined #ruby
khebbie has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
notalanturing has joined #ruby
dented42 has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 265 seconds]
jtdoncas has joined #ruby
<Ox0dea> Senjai: const_get(arg.to_sym) would cover both cases.
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enders has joined #ruby
RegulationD has joined #ruby
jonathanwallace has joined #ruby
victortyau has quit [Max SendQ exceeded]
victortyau has joined #ruby
<Senjai> Ox0dea: I have some silly complexities that might prevent that. For example if it's a symbol, I need to constantize under a specific namespace.
<Senjai> E.g. :my_class should resolve to Namespace::Something::MyClass
Igorshp has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
JDiPierro has joined #ruby
Azulinho has quit [Quit: Leaving]
<centrx> It shall work, with the Power of Ruby!
yardenbar has joined #ruby
khebbie has joined #ruby
khebbie has quit [Client Quit]
bosma_ is now known as bosma
pullphinger has joined #ruby
<Senjai> Eh, I'm not really big on this metaprogramming stuff
bungoman has quit [Remote host closed the connection]
<Senjai> I dont really like having to write code like this
hotpancakes has joined #ruby
bungoman has joined #ruby
dangerousdave has joined #ruby
revath has quit [Quit: Leaving.]
revath has joined #ruby
Jackneill has joined #ruby
pengin has quit [Remote host closed the connection]
ht__ has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
<shevy> :)
kobain has joined #ruby
livathinos has quit []
howdoi has quit [Quit: Connection closed for inactivity]
lessless has joined #ruby
<Ox0dea> >> ([Object] + %w[Resolv DNS Resource IN A]).reduce(:const_get)
<ruboto> Ox0dea # => uninitialized constant Resolv (NameError) ...check link for more (https://eval.in/395057)
<Ox0dea> >> require 'resolv'; ([Object] + %w[Resolv DNS Resource IN A]).reduce(:const_get)
<ruboto> Ox0dea # => Resolv::DNS::Resource::IN::A (https://eval.in/395058)
<Ox0dea> Interesting use for #reduce.
<lessless> folks, maybe somebody can help to generate signed url for s3?
ht__ has quit [Client Quit]
numberten has left #ruby [#ruby]
sbhatore has joined #ruby
foooobear has quit [Quit: (null)]
towski_ has quit [Remote host closed the connection]
ht__ has joined #ruby
<rqde> Im a first time programmer trying to deploy a ruby app on OpenShift (this one: https://github.com/rqde/soundboard-demo/), but when I do I get "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly." - Is that a fault of mine?
bungoman has quit [Remote host closed the connection]
<jhass> Ox0dea: .inject(Object, :const_get), no?
revath has quit [Read error: Connection reset by peer]
sbhatore is now known as jaimessi
wookiehangover has quit [Ping timeout: 248 seconds]
<jhass> rqde: you'll want to have a look at the log
hmnhf has quit [Quit: Konversation terminated!]
abuzze has joined #ruby
hmnhf has joined #ruby
revath has joined #ruby
<jhass> rqde: one issue might be that your rack version is too new
Soda has joined #ruby
gambl0re has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
<Ox0dea> jhass: Aye, that'd've been better.
gambl0re has joined #ruby
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has quit [Ping timeout: 252 seconds]
<Ox0dea> What do all of these companies have in common?
<rqde> jhass: That link looks an awful lot like the output I got from doing a rhc train as suggested on openshift
towski_ has joined #ruby
<rqde> trail*
<centrx> They are all train aficionados!
railsraider has joined #ruby
pengin has joined #ruby
wookiehangover has joined #ruby
revath has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotles has joined #ruby
Scroff has quit [Remote host closed the connection]
ta has joined #ruby
eGGsha has joined #ruby
eGGsha has quit [Client Quit]
mike___1234 has quit [Ping timeout: 276 seconds]
christiandsg has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonathanwallace has quit [Quit: Leaving.]
maletor has joined #ruby
christiandsg has joined #ruby
bungoman has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
lkba_ has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
iateadonut has quit [Quit: Leaving.]
platzhirsch has left #ruby [#ruby]
qubits has left #ruby [#ruby]
neohunter has joined #ruby
rdark has quit [Ping timeout: 248 seconds]
last_staff has quit [Ping timeout: 248 seconds]
werelivinginthef has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
zdman135 has joined #ruby
jhack has quit [Remote host closed the connection]
J4D has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
<zacts> I'm a coltrane aficionado
yaw has joined #ruby
freerobby has joined #ruby
Squarepy has quit [Quit: Leaving]
Mendenhall has joined #ruby
mistermocha has joined #ruby
jhack has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood> Ox0dea: JRuby
<Ox0dea> Oui.
rbennacer has joined #ruby
reset has joined #ruby
withnale_ has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
<zacts> oui
bigkevmcd has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<havenwood> metadata \o/
lkba has joined #ruby
<zacts> j'adore le francais
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
last_staff has joined #ruby
zacstewart has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
chussenot has quit [Quit: chussenot]
jonathanwallace has joined #ruby
allomov has joined #ruby
zacstewart has joined #ruby
baweaver has joined #ruby
mhib has quit [Quit: Leaving]
kobain has quit [Ping timeout: 256 seconds]
malcolmva has joined #ruby
jerius has quit [Quit: /quit]
mike___1234 has joined #ruby
<shevy> adaedra look
<adaedra> j'ai vu
towski_ has quit [Remote host closed the connection]
c355E3B has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
bigbadbear has joined #ruby
<jhack> Does anyone use codewars.com? what do you think about it? useful?
chipotle_ has joined #ruby
hotpancakes has joined #ruby
mando has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
chipotles has quit [Ping timeout: 265 seconds]
dopie has joined #ruby
soxet has joined #ruby
<iszak> jhack: is free?
quimrstorres has joined #ruby
<jhack> iszak: yeah
monod has joined #ruby
renderful has quit [Read error: Connection reset by peer]
jerius has joined #ruby
renderful has joined #ruby
<iszak> jhack: I use codeacademy but they mostly suck for me (as a more seasoned developer)
<iszak> s/use/used/
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
mleung has joined #ruby
mistermocha has joined #ruby
bungoman has quit [Remote host closed the connection]
arcanez has joined #ruby
yaw has quit [Ping timeout: 252 seconds]
<redondos> codewars is fun
<redondos> haven't visited it in quite a while but still
<arcanez> is there a shorter/better way to write: foo = bar if bar.present?
<zdman135> codewars is fun for like 20 min and then the novelty wears off
christiandsg has quit [Remote host closed the connection]
<redondos> aren't they all like that?
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zdman135> especially when you constantly get beat by people that are better than you
riotjones has joined #ruby
<jhack> wasn't really helpful in improving your ruby skills then?
<redondos> i enjoyed looking at better solutions
<iszak> there will /always/ be someone better than you
<redondos> it taught me quite a bit
riotjones has quit [Read error: Connection reset by peer]
dstarh has joined #ruby
<zdman135> yeah improved me some
<zdman135> if I cared to actually look into it
<zdman135> if it was ok I got beat whatever
riotjones has joined #ruby
<zdman135> then no i didn't learn a damn thing
c_nick has left #ruby [#ruby]
<jhass> jhack: exercism.io seems to have the better community
jonathanwallace has quit [Quit: Leaving.]
<jhass> in that it forces review more than codewars does
<jhack> hm
<jhack> okay
<jhack> gonna take a look at exercism
livathinos has joined #ruby
<iszak> I think it just depends on how you like to learn
scripore has quit [Quit: This computer has gone to sleep]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iszak> all I can say is I wish there was this sort of resource around when I was learning to program, the barrier to entry is lower now than ever.
<iszak> unless you're talking f/e then you need to relearn everything every 6 months with different tools.
acke has quit [Remote host closed the connection]
rsty1 has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
khebbie has joined #ruby
<rsty1> i am building my first sinatra app and for some reason, i cannot require the libraries i need. I get cannot load such file
<rsty1> only 3 out of 4 of them cause this error
zendrix has quit [Remote host closed the connection]
scripore has joined #ruby
<shevy> do you use bundler
<havenwood> rsty1: Do you have a Gemfile?
riotjones has quit [Ping timeout: 252 seconds]
Scroff has joined #ruby
<rsty1> shevy: I have require "bundler" in my config.ru
<jhass> did you add the gems you need to your Gemfile?
baweaver has joined #ruby
kobain has joined #ruby
<rsty1> and then in my app.rb, i have the 4 libraries i need (yaml, net/netconf/jnpr, junos-ez/stdlib, junos-ez/srx)
<rsty1> let me see, i didn't touch gemfile though
kies^ has joined #ruby
<rsty1> they aren't in my Gemfile
<jhass> then that's your issue
<rsty1> why does yaml work without being in Gemfile?
<jhass> because it's in stdlib
<rsty1> awesome... just the info i needed :)
<rsty1> ill test, thanks!
ZeeNoodleyGamer has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
werelivinginthef has joined #ruby
khebbie has quit [Ping timeout: 244 seconds]
kiddora__ has joined #ruby
jhack has quit [Remote host closed the connection]
jhack has joined #ruby
InternetFriend has joined #ruby
jhack has quit [Read error: Connection reset by peer]
cabreraM516 has joined #ruby
kreantos has quit [Remote host closed the connection]
<rsty1> jhass: thanks again. App works now :)
eggoez has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
railsraider has quit [Quit: railsraider]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 248 seconds]
madzhuga has joined #ruby
yardenbar has quit [Remote host closed the connection]
aryaching has quit []
Oog has joined #ruby
<Oog> is there something like concat but returns a hash?
acke has joined #ruby
<Oog> inject will do it but such an odd function
<jhass> Oog: not clear, please provide inputs and desired outputs
iinzg has joined #ruby
eggoez has joined #ruby
jpfuentes2 has joined #ruby
iinzg has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
ged_ is now known as ged
<Oog> hash = users.inject({}) { |memo, user| memo[user.id] = user.name; memo } - just seems odd but this does what i want
<hanmac> Oog: why not that: hash = users.each_object({}) { |user, memo| memo[user.id] = user.name }
<jhass> users.map {|user| [user.id, user.name] }.to_h
jpfuentes2 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
craysiii has joined #ruby
chipotle_ has quit [Ping timeout: 264 seconds]
<Oog> thanks. hanmacyou sure about each_object? i do you mean each_cons? i dont see docs
nfk has joined #ruby
<jhass> no, he means each_with_object
Outlastsheep is now known as zz_Outlastsheep
JoshL has joined #ruby
denver has quit [Remote host closed the connection]
<Oog> thanks what is *args in each_with_object im looking at the docs
snockerton has joined #ruby
<jhass> the arguments yielded
<jhass> since it's in Enumerable that's variable
swgillespie has joined #ruby
jhack has joined #ruby
genpaku has quit [Ping timeout: 240 seconds]
<Oog> so on a hash it is k,v ? why isnt .inject like that? inject just gives you each obj
yokel has quit [Ping timeout: 244 seconds]
<jhass> dunno, just a documentation inconsistency I guess
kiddora__ has quit [Remote host closed the connection]
monod has quit [Quit: Sto andando via]
hahuang65 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
tituspullo has joined #ruby
madzhuga has quit [Quit: (null)]
genpaku has joined #ruby
bungoman has joined #ruby
yokel has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
<Oog> ok thanks
j_mcnally has joined #ruby
whiteline has quit [Remote host closed the connection]
evanjs has joined #ruby
jhack has quit [Quit: jhack]
shtirlic has joined #ruby
jhack has joined #ruby
notalanturing has quit [Remote host closed the connection]
<arcanez> is there a shorter/better way to write: foo = bar if bar.present?
<jhack> d
evanjs is now known as evanfreeman
<jhass> arcanez: nope
pengin has joined #ruby
evanfreeman is now known as evanjs
InternetFriend has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 256 seconds]
yardenbar has joined #ruby
whiteline has joined #ruby
<arcanez> ruby, you let me down
craysiii has quit [Ping timeout: 248 seconds]
gambl0re has quit [Read error: Connection reset by peer]
zendrix has joined #ruby
GPrime has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
jhack has quit [Quit: jhack]
serivich has joined #ruby
jhack has joined #ruby
<jhass> hey, still better than if (bar && bar.isPresent()) { foo = bar } :P
shtirlic has joined #ruby
towski_ has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
<iszak> that's not so bad
foooobear has joined #ruby
jhack has quit [Client Quit]
<arcanez> I think I read someone wrote ??= and !!=
jhack has joined #ruby
<jhass> don't see how that would parse
Channel6 has joined #ruby
Channel6 has quit [Client Quit]
gambl0re has joined #ruby
<jhass> there are ||= and &&= but those conditionalize on the left hand side
timonv has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
bungoman has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
symm- has joined #ruby
shtirlic has quit [Remote host closed the connection]
bungoman has joined #ruby
shtirlic has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
allomov has joined #ruby
livathinos has quit []
t0rrieri has joined #ruby
c0ncealed has quit [Quit: Makin' like a tree... I'ma leafin'.]
mdarby has quit [Remote host closed the connection]
monod has joined #ruby
hoofed has joined #ruby
hololeap has quit [Ping timeout: 252 seconds]
mdarby has joined #ruby
c0ncealed has joined #ruby
Oog has quit [Remote host closed the connection]
msgodf has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craysiii has joined #ruby
<diegoviola> hrm, I've tried NLTK in python but the support for other languages other than english is poor
t0rrieri has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eggoez has joined #ruby
<shevy> diegoviola are you still using windows at your new company?
rqde has quit [Quit: Page closed]
<diegoviola> shevy: yes
mdarby has quit [Ping timeout: 248 seconds]
<diegoviola> shevy: send me a SATA to USB cable and I will use my SSD with Arch instead :)
quimrstorres has quit [Remote host closed the connection]
<diegoviola> I run Arch in VBox (fullscreen)
<diegoviola> so I don't really use windows, but it's running in the background
mando has quit [Ping timeout: 240 seconds]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
lkba_ has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
mando has joined #ruby
hololeap has joined #ruby
icebourg has joined #ruby
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
lkba has quit [Ping timeout: 246 seconds]
gdakram has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Rickmasta has joined #ruby
thelastinuit has joined #ruby
kith_ has joined #ruby
adamski2600 has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
adamski2600 has joined #ruby
thelastinuit has quit [Client Quit]
KnownSyntax has quit [Read error: Connection reset by peer]
KnownSyntax has joined #ruby
<iszak> diegoviola: why don't you use your host?
gambl0re has quit [Read error: Connection reset by peer]
aef has quit [Ping timeout: 256 seconds]
jinie has quit [Ping timeout: 256 seconds]
allomov has quit [Remote host closed the connection]
shtirlic has quit [Quit: ZNC - http://znc.in]
Alina-malina has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 240 seconds]
gambl0re has joined #ruby
kith has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
<diegoviola> iszak: I don't think my boss will allow me to install Linux on the host
centrx has quit [Quit: Shutting down, Please wait...]
<iszak> diegoviola: no good, what's your setup? terminal multiplexer? shell? etc.
bougyman has quit [Ping timeout: 248 seconds]
jinie has joined #ruby
aef has joined #ruby
zendrix has quit [Remote host closed the connection]
anaeem1 has joined #ruby
Alina-malina has joined #ruby
mhib has joined #ruby
allomov has joined #ruby
gdakram has quit [Quit: gdakram]
bougyman has joined #ruby
mistermocha has joined #ruby
zendrix has joined #ruby
bruno- has joined #ruby
<diegoviola> iszak: i3wm with termite/bash/tmux/vim
jenrzzz has quit [Ping timeout: 256 seconds]
<diegoviola> I miss a good graphics file manager sometimes
<diegoviola> I was using KDE a few months ago
drewo has quit [Ping timeout: 276 seconds]
<Ox0dea> diegoviola: Why?
snockerton has quit [Quit: Leaving.]
Lucky_ has quit [Ping timeout: 244 seconds]
mistermocha has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<diegoviola> what do you mean why?
<diegoviola> why what?
baweaver has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
snockerton has joined #ruby
mhib has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
A205B064 has joined #ruby
MVPhelp has quit [Remote host closed the connection]
MVPhelp has joined #ruby
icebourg has quit []
<Ox0dea> diegoviola: If you miss having a graphical file manager, why don't you just use one?
<weaksauce> is $RUBY_VERSION always set?
<Ox0dea> Yes.
scripore has joined #ruby
<weaksauce> I am calling ruby from vim and that variable seems to not get set correctly and it is nil
Channel6 has joined #ruby
<Ox0dea> diegoviola: Clicking this and this and right-clicking that and making sure you've caught everything that matches a certain pattern is much better than learning basic regular expressions. :)
hahuang65 has joined #ruby
maletor has joined #ruby
<Ox0dea> weaksauce: Ah, sorry, RUBY_VERSION is a constant available only from within Ruby; it's not a global or environment variable.
<weaksauce> yeah. I was using it from within ruby
<weaksauce> get a nil error just to see if the code was actually being called
<Ox0dea> weaksauce: Nix the $.
<Ox0dea> Global variables and constants are different things.
<diegoviola> Ox0dea: but which one would I use in i3?
t0rrieri has joined #ruby
<diegoviola> if I use a file manager I'd like to use a DE but when using a DE I miss i3wm
<diegoviola> catch 22
<weaksauce> ah nice. that worked. yeah i know that they are different but why does this work from the command line but not from inside a system call from vim?
<weaksauce> x=`ruby -e "puts '$RUBY_VERSION'"`
<diegoviola> :(
v4n has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 276 seconds]
<shevy> vim sucks!
bruno- has quit [Ping timeout: 256 seconds]
<diegoviola> shevy: no
<Ox0dea> weaksauce: Erm, I can't imagine that actually worked?
kies^ has quit [Ping timeout: 256 seconds]
lee-jon has joined #ruby
<shevy> works in irb!
<Ox0dea> weaksauce: The double quotes expand $ variables at the shell, so it must be the case you have a RUBY_VERSION environment variable.
<shevy> :)
<weaksauce> perhaps yeah
jonathanwallace has joined #ruby
<Ox0dea> It must be so. :)
konsolebox has quit [Ping timeout: 264 seconds]
<nofxx> can't think of many things that sucks more than vim... lost an hour of my life 10 ys ago. Still can remember the agony.
<Ox0dea> You people are silly.
<weaksauce> nofxx wow a whole hour?!?!
<shevy> Emacs made me a better person.
<Ox0dea> shevy: Which is your favorite Lisp?
warweasle has joined #ruby
<nofxx> weaksauce, hope not. Swear was the only time in my life I punched the screen.
ESpiney_ has joined #ruby
<shevy> The unwritten kind of Lisp.
<nofxx> luckly it was a crt
neohunter has quit [Ping timeout: 248 seconds]
<warweasle> Liiiisp?
<diegoviola> shevy: Emacs is a good OS only lacking a good text editor
cmisenas has quit [Quit: cmisenas]
<Ox0dea> shevy: So you use an editor that you don't even know how to customize?
<nofxx> diegoviola, old bad joke but ok
<weaksauce> Ox0dea yeah there is an environment variable that was interfering with my best laid plans
<diegoviola> shevy: but there's evil-mode now, so good for you
<shevy> I don't use emacs
ESpiney_ has quit [Remote host closed the connection]
<Ox0dea> weaksauce: Alas, we are but men.
<diegoviola> nofxx: lol ikr
<warweasle> Student: Does emacs have Buddha nature? Master: Why the hell not. It has everything else.
<diegoviola> nofxx: emacs is nice, don't get me wrong
J4D has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Aryasam has quit [Read error: No route to host]
aryaching has joined #ruby
<warweasle> Question about modernizer 2.0.2.sudo -u git -H bundle install --deployment --without development test postgres aws
zendrix has quit [Remote host closed the connection]
<nofxx> it's simple: I change my editor, not the other way around. Those crazy emacs keybinding are like that for you to change, not to use em ;)
<warweasle> Could not find modernizr-2.6.2 in any of the sources
<warweasle> And I can't download the damn thing either.
ESpiney has quit [Ping timeout: 240 seconds]
<nofxx> diegoviola, thing with emacs is that you need a) find a good .emacs.d repo to start or b) give it a month to write yours
lee-jon has quit [Quit: lee-jon]
lee-jon has joined #ruby
lee-jon has left #ruby [#ruby]
<nofxx> those inspired by mac/textmate RUBY guys are your best bet.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mistermocha has quit [Read error: Connection reset by peer]
<warweasle> Can anyone describe how modernizer-2.6.2 is MISSING FROM RUBY? Why would you do that?
<nofxx> WarWeasle, if that version ever was it was yanked
<nofxx> check the site
<warweasle> nofxx: Yes. I've looked everywhere and I can't download it to install it.
<izzol> hmm, I'm getting Dnsruby::ServFail.
momomomomo has joined #ruby
<izzol> But not sure why:(
mistermocha has joined #ruby
kies^ has joined #ruby
<izzol> I'm querying google NS 8.8.8.8 and all works fine. The thing is sometimes I'm getting this Dnsruby::ServFail.
<izzol> I don't think that there is a problem in google ;P
peter_paule has joined #ruby
<izzol> and in my DC as well.
kadoppe has quit [Ping timeout: 255 seconds]
<Antiarc> WarWeasle: https://rubygems.org/gems/modernizer - did you mean another gem perhaps?
jonathanwallace has quit [Quit: Leaving.]
<nofxx> izzol, what is Dnsruby ?
<eam> izzol: with what frequency?
<Antiarc> https://rubygems.org/gems/modernizr is at 2.6.2 and has been yanked
scripore has quit [Quit: This computer has gone to sleep]
<izzol> eam: I got this 5 times from around 500 queries.
<warweasle> GitLab requires this "Gem".
<izzol> nofxx: I don't know:P I'm using rspec-dns :-)
revath has joined #ruby
<Antiarc> WarWeasle: Joshua Peek/@joshpeek on twitter is the author, so maybe tweet at him and ask
<Antiarc> That said it just provides the modernizr JS package so you can probably work around it pretty easily
<warweasle> Antiarc: I'm not even on twitter
lxsameer has quit [Ping timeout: 256 seconds]
kadoppe has joined #ruby
<eam> izzol: are you sure you don't have 1% packetloss along the route between you/google?
<warweasle> I found a download link, but the link is down.
<Antiarc> https://github.com/josh has his email.
zendrix has joined #ruby
symm- has joined #ruby
bruno- has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<izzol> eam: I'm sure. I'm running it from the Datacenter so I doubt that there is any packetloss. Anyway our monitoring is saying that network is fine. hmm.
<diegoviola> nofxx: same with vim I think, except that vim is already half way useful without a ~/.vimrc
Jackneill has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 256 seconds]
<eam> izzol: mtr to 8.8.8.8?
<eam> "the network" is never fine, the internet's always a variable place
<warweasle> Antiarc: I just had a thought: I swiched gitlab to the master branch
jenrzzz has joined #ruby
<eam> izzol: you could also instrument and look for patterns in the errors
sharpmachine has quit [Remote host closed the connection]
Mendenhall has joined #ruby
scripore has joined #ruby
jpfuentes2 has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
revath has quit [Ping timeout: 255 seconds]
drewo has joined #ruby
spider-mario has joined #ruby
lkba_ has quit [Remote host closed the connection]
scripore has quit [Client Quit]
mjuszczak has joined #ruby
foooobear has quit [Quit: (null)]
revath has joined #ruby
jgpawletko has joined #ruby
workmad3 has joined #ruby
mjuszczak has quit [Client Quit]
Papierkorb has joined #ruby
<nofxx> diegoviola, the diff is that vim will continue half useful
multi_io has quit [Ping timeout: 265 seconds]
<Ox0dea> nofxx: Pfft.
hahuang65 has joined #ruby
enders has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 264 seconds]
<diegoviola> nofxx: vim is very capable editor, what are you talking about?
multi_io has joined #ruby
<diegoviola> but it's not like emacs that it's an editor and also a kitchen sink
<weaksauce> and a clawhand
<diegoviola> if you want the editor and the kitchen sink integrated with it, sure, vim is not capable... if all you want is a text editor, vim is good enough
revath has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
ballPointPenguin has left #ruby [#ruby]
<adaedra> ^
chouhoulis has quit [Ping timeout: 256 seconds]
<warweasle> diegoviola: Emacs is a programming language with an editor built in. It gets rediculous when you use slime with common lisp;.
baweaver has quit [Remote host closed the connection]
jmignault has joined #ruby
<diegoviola> WarWeasle: yeah I know
<Ox0dea> diegoviola: If all you want is a text editor, Vim is far more than "good enough".
<diegoviola> Ox0dea: sure
mjuszczak has joined #ruby
<Ox0dea> Most people don't just want to edit text, though, and it's really quite easy to turn Vim into "more than a text editor".
<adaedra> “but it is so hard to use” – Sublime Text average user
<Ox0dea> Not the tool's fault.
mando has joined #ruby
mjuszczak has quit [Read error: Connection reset by peer]
<diegoviola> vim is not hard to use at all
zendrix has quit []
<Antiarc> it is kind of amazing to me that it's 2015 and we're still squabbling over text editors
<slash_nick> why everyone doesn't just use "ed", i'll never understand
<diegoviola> some people try to use vim without understanding that it's a modal editor, and I think that's why they find it hard to use
<diegoviola> because they try to use it like other editors
scripore has joined #ruby
<Ox0dea> diegoviola: Quick, name all the modes. :)
<diegoviola> Ox0dea: no
<Ox0dea> Well, how many are there?
<adaedra> because they /want/ it, no?
jonathanwallace has joined #ruby
<diegoviola> Ox0dea: no idea
<diegoviola> I know 3
<adaedra> mh, Normal, Insert, Replase, Visual, V-Line, V-Block, Command
<adaedra> Replace*
<Antiarc> "it doesn't conform to my expectations" is a pretty standard definiton of "hard to use" for the average user, to be fair. Not just in editors, but in all UX.
<Ox0dea> adaedra: Select.
<Antiarc> And I say that as a vim user.
<adaedra> Ox0dea: that's visual, no?
<Ox0dea> It's not.
<adaedra> Oh
chussenot has joined #ruby
<Antiarc> vim is really good at subverting your expectations :P
<adaedra> vim is really good imo, and I know that I use it at such a low level of its possibilities :x
tomphp has joined #ruby
acke has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
<Ox0dea> Neovim's :terminal command = <3
<diegoviola> "Why is not deleting my text when I keep pressing backspace key. This editor sucks, I'm going back to sublime." -- Averga sublime text user when using vim in normal mode
<diegoviola> average*
felixr has joined #ruby
<adaedra> NeoVim's usable now?
<Senjai> Ox0dea: we have one neovimmer that is all crazy about that
<Senjai> Ox0dea: The rest of us just use vim tmux navigator and vim dispatch
<Ox0dea> Senjai: Yep, I made the switch from precisely that setup.
freerobby has quit [Quit: Leaving.]
<Ox0dea> I still use <C-\>, but now it's to switch to the most recently active terminal buffer and back again.
freerobby has joined #ruby
bluOxigen has joined #ruby
<diegoviola> sorry about that, I didn't want to offend any sublime users :)
<Senjai> You totally did
<Senjai> that's the whole point of your statement
<Senjai> not that i use sublime
<adaedra> diegoviola: you're not the first one ;)
Scroff has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
<adaedra> altern with atom for best effects.
<diegoviola> adaedra: what do you mean?
phat4life has left #ruby ["WeeChat 1.2"]
<axisys> how do I get the name hlr-prod from here? http://dpaste.com/1CH3BQK.txt
swgillespie has joined #ruby
<adaedra> diegoviola: to pick on sublime users, I did it just above.
Scroff has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
<diegoviola> adaedra: to offend them you mean?
<diegoviola> adaedra: yeah sorry about that
christiandsg has joined #ruby
<axisys> print clusters.name gets me undefined name
<adaedra> I'm sure it wasn't meant to do so :>
gambl0re has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
felixr has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
pengin has joined #ruby
<Senjai> axisys: Its in a hash thats stored in the object
<Senjai> You can do crazy things using instance_variable_get
icebourg has joined #ruby
bronson has quit [Remote host closed the connection]
<Senjai> but I dont recommend it
icebourg has quit [Max SendQ exceeded]
<Senjai> There should be some proper interface for doing so
<Senjai> thing.instance_variable_get(:@cached_hash)["name"]
<Senjai> but you're pretty much saying fuck you to encapsulation :P
warweasle has quit [Remote host closed the connection]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
gambl0re has joined #ruby
icebourg has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
icebourg has quit [Max SendQ exceeded]
scripore has joined #ruby
<Ox0dea> Senjai: That's a little off the mark; there are probably attribute readers set up for those instance variables.
<nofxx> oh, poor souls. There's still time: https://stallman.org/saintignucius.jpg
<Senjai> Ox0dea: I couldn't possibly know
<nofxx> but heck, ignorance is bliss.
<Senjai> Ox0dea: Also I said: "There should be some proper interface for doing so"
BrianBoyko has joined #ruby
rsty1 has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
<adaedra> rms.sexy
icebourg has quit [Max SendQ exceeded]
<Ox0dea> The only reason for that TLD's existence.
christiandsg has quit [Ping timeout: 265 seconds]
icebourg has joined #ruby
Voker57 has joined #ruby
icebourg has quit [Max SendQ exceeded]
sharpmachine has joined #ruby
bronson has joined #ruby
jonathanwallace has quit [Quit: Leaving.]
pfish has joined #ruby
icebourg has joined #ruby
<pfish> is there a method to get the size of an arbitrary ruby object in c code?
icebourg has quit [Max SendQ exceeded]
<Ox0dea> pfish: ObjectSpace.memsize_of
<Ox0dea> Or did you mean from C?
<pfish> thanks!
<pfish> oh yeah from c...
hinbody has quit [Quit: leaving]
bnobu has joined #ruby
<Antiarc> Do you mean the heap size or the rvalue size?
<pfish> the actual amount of memory it takes up
<pfish> so heap size?
<Antiarc> Just the object, or the object and all its fields (which will be other objects)
<Ox0dea> pfish: rb_obj_memsize_of() looks to be the function you want.
evanjs has quit [Remote host closed the connection]
roolo has joined #ruby
Lucky_ has joined #ruby
<pfish> thanks!
adamski2600 has quit [Remote host closed the connection]
<pfish> and probably just the object
<pfish> yeah just the object
chussenot has quit [Quit: chussenot]
MagePsycho has joined #ruby
senayar has joined #ruby
<axisys> Senjai: puts clusters.name gives #<RbVmomi::VIM::ObjectContent:0x00000003d3cf18>
<Ox0dea> axisys: Please scroll up and read the advice you've been given on this matter.
<MagePsycho> form['reference[database]'] = 'magento#{mageVersion}_vanilla' -> not working
<Ox0dea> MagePsycho: Double quotes to enable interpolation.
yeltzooo has joined #ruby
<axisys> Ox0dea: referring to this? thing.instance_variable_get(:@cached_hash)["name"]
<MagePsycho> ah i missed :)
<MagePsycho> thanks
<Ox0dea> axisys: That was bad advice that led to good advice.
TheHodge has joined #ruby
gix has joined #ruby
<axisys> Ox0dea: hmm.. I do not see any other suggestion after that
lkba has joined #ruby
<axisys> Ox0dea: I am still learning this rbvmomi
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
<axisys> puts clusters["name"] gives `[]': can't convert String into Integer (TypeError)
icebourg has joined #ruby
sharpmachine has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
brettnem has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
gambl0re has quit [Remote host closed the connection]
dblessing has quit [Ping timeout: 240 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felixr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Lucky_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 252 seconds]
<sphex> hey. since an object's singleton class has the object's class as its superclass, can one say that method lookups are done by recursing throught the singleton class (and thus only incidentally reach the object's class), or are the lookup rules more complicated?
symm- has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
gambl0re has joined #ruby
<Ox0dea> >> String.singleton_class.superclass
<ruboto> Ox0dea # => #<Class:Object> (https://eval.in/395086)
<Ox0dea> sphex: Your initial assumption was invalid.
scripore has quit [Quit: This computer has gone to sleep]
<sphex> dammit!
symm- has joined #ruby
<Ox0dea> A singleton class's superclass is the singleton class of its superclass. :)
<sphex> I was only looking at ''.singleton_class.superclass
J4D has joined #ruby
<Ox0dea> Ah, right, then my previous statement isn't always true either.
icebourg has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
jimothy has joined #ruby
J4D has quit [Max SendQ exceeded]
hanmac has quit [Ping timeout: 246 seconds]
Scroff has quit [Ping timeout: 264 seconds]
<sphex> Ox0dea: I remembered reading the method lookup rules somewhere and they were a bit complicated. but I can't find it back. :/ I was wondering if they could actually have been simpler than that.
J4D has joined #ruby
<Ox0dea> sphex: Method lookup essentially just ascends the ancestor chain until it finds the method; if it doesn't find it anywhere, it starts over looking instead for a definition of #method_missing.
J4D has quit [Max SendQ exceeded]
<Ox0dea> It's how the ancestor chain obtains its links that can be tricky.
J4D has joined #ruby
cochise_ has quit [Ping timeout: 264 seconds]
sumark has quit [Remote host closed the connection]
cochise has joined #ruby
danzilio has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 248 seconds]
msgodf has quit [Ping timeout: 276 seconds]
silkfox has joined #ruby
sumark has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hahuang65 has joined #ruby
bigbadbear has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
<Ox0dea> axisys: Does it help to point out that your `clusters` is an array of one element?
tomphp has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
bhorn1|lunchz has quit [Remote host closed the connection]
mdarby has joined #ruby
<axisys> puts clusters gives #<RbVmomi::VIM::ObjectContent:0x00000003906a98> and yes today it is but I like to prepare for multiples
mdarby has quit [Max SendQ exceeded]
solars has joined #ruby
<Senjai> Ox0dea: It wasn't advice, it was an answer :P
adamski2600 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<Ox0dea> An answer is arguably the platonic ideal of advisement.
Kully3xf_ has joined #ruby
pfish has quit [Ping timeout: 246 seconds]
jtdoncas has quit [Quit: WeeChat 1.1.1]
J4D has quit [Quit: Textual IRC Client: www.textualapp.com]
Kully3xf has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
mando has quit [Ping timeout: 264 seconds]
jtdoncas has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
jenrzzz has joined #ruby
Alayde has joined #ruby
mistermocha has joined #ruby
hanmac has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
djbkd has quit [Remote host closed the connection]
gambl0re has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
postmodern has quit [Quit: Leaving]
v4n has quit []
postmodern has joined #ruby
Channel6 has quit [Quit: Leaving]
gambl0re has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
mistermocha has quit [Read error: Connection reset by peer]
mwlang has joined #ruby
mistermocha has joined #ruby
<sphex> if I ever figure out ruby's class system correctly.. I'm gonna write a tutorial. the one that I would have needed. "singleton classes for simpletons"
vdamewood has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
MagePsycho has quit [Quit: MagePsycho]
<mwlang> So I’m going through a new project and I encountered this: https://gist.github.com/mwlang/84090a1c092ab152df55 (glance at it at your own sanity’s risk!)
blueOxigen has joined #ruby
<mwlang> I actually had to turn on soft-wrapping in my editor to fully appreciate that one.
mike___1234 has joined #ruby
<Ox0dea> mwlang: Could be worse. http://code.iamcal.com/php/rfc822/full_regexp.txt
<apeiros> somebody doesn't know that regexen can be composited
<jhass> I like how fast it must be to that little backtracking
bluOxigen has quit [Ping timeout: 256 seconds]
bmurt has quit []
<apeiros> also superduper that all strings now know whether they're a valid email address…
<mwlang> sheez.
Ilyas has quit [Read error: Connection reset by peer]
<mwlang> most email validations I’ve seen are just simple one liners. I don’t know about y’all, but just validate it has the prerequisite components, send an email to the person and have ‘em verify the email by clicking the token link.
duncannz has joined #ruby
<felixr> mwlang: http://regexpal.com/
<apeiros> mwlang: that strategy has a huge flaw
<eam> what are the prerequisite components?
<apeiros> a) in some places you don't want to send an email
<mwlang> alright, apeiros, enlighten me.
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> apeiros: this is for a new user sign up form…
<apeiros> b) in some places you get a huge drop in registrants due to invalid email addresses and people not fixing it
Limix has joined #ruby
<mwlang> so let’s say its for the purposes of collecting a “real user’s” email.
<eam> if you don't send an email and get positive confirmation the email very likely is bogus
pdoherty has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 1.2]
krz has quit [Quit: WeeChat 1.0.1]
jonathanwallace has joined #ruby
<mwlang> eam, I’ve used a few repexp over the years, but basically, just something like this: [A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}
ixti has joined #ruby
hotpancakes has joined #ruby
<sphex> mwlang: email addresses can have double-quotes and backslash escapes in their "local" component. but those are very rarely accepted by web forms.
bruno- has joined #ruby
<jhack> I'm a little confused with exercism.io lol
<jhack> I can't seem to see other peoples exercises that they're working on..?
<jhack> in the ruby section
<mwlang> jhack: for a moment I thought you were misspelling exorcism (which is what I def. want to do on this new project). :-)
<havenwood> jhack: Complete the exercise yourself first.
Notte has joined #ruby
momomomomo has quit [Quit: momomomomo]
pengin has quit [Remote host closed the connection]
<jhack> havenwood, i have completed the hello-world project already
_ixti_ has quit [Ping timeout: 240 seconds]
felixrsmith has joined #ruby
duggiefresh has quit []
<havenwood> jhack: And you can't see others' hello-world?
<jhack> no
<jhack> its under Ntpick > Ruby, right?
msgodf has joined #ruby
<havenwood> jhack: Did you finalize it, or whatever it's called. Submit that you're done modifying it based on comments?
<jhack> havenwood: yeah
MagePsycho has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<shevy> havenwood you working on any cool projects lately?
<havenwood> jhack: Yeah, when I click the same I see what I've finished.
<mwlang> I guess my point with the regexp for email validation is why go to such extremes when the end goal is a user’s email you’re going to send an email to anyway? (in our case, new user signup). I personally can’t even read and understand that regexp.
<havenwood> shevy: Did you see my Elixir stdlib in Ruby thing?
<shevy> nope, what is that?
<mwlang> and I look at it and think, “there’s guaranteed to be a bug there."
aryaching has quit [Ping timeout: 256 seconds]
<jhack> havenwood: do you see other peoples projects?
hotpancakes has quit [Ping timeout: 248 seconds]
dagda1 has joined #ruby
<havenwood> jhack: yup
mdarby has joined #ruby
<Antiarc> mwlang: Agreed; I just validate "something@anything.anything"
MagePsycho has quit [Client Quit]
<jhack> havenwood: wth
acke has joined #ruby
<Antiarc> Valid emails can be completely nutso
mistermocha has joined #ruby
mdarby has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 252 seconds]
felixr has quit [Ping timeout: 256 seconds]
mdarby has joined #ruby
<apeiros> mwlang: nice. you disallow all IDN email addresses
<mwlang> now….if I were a service like evite.com where one can paste a giant list of emails….I could see something like this being a good idea.
<apeiros> mwlang: also probably a couple of the new TLDs
ldnunes has quit [Quit: Leaving]
platzhirsch has joined #ruby
<yorickpeterse> The only valid Email regex is /[^@]+@[^@]+/
<yorickpeterse> or maybe just /.+/
<mwlang> apeiros: yeah. Important if you want International users…but most of my clients are solely concerned with US-based customers.
<bougyman> yorickpeterse: /@/ suffices
gambl0re has quit [Read error: Connection reset by peer]
danzilio has joined #ruby
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> you churn out lots of code!
sharpmachine has joined #ruby
<havenwood> shevy: Run the tests, Wheeee!
<yorickpeterse> bougyman: good point
<mwlang> yorickpeterse: I think I’ll just adopt your first form.
gambl0re has joined #ruby
<yorickpeterse> Seriously, just send an Email
<yorickpeterse> then you're absolutely sure it's actually valid _and_ working
<apeiros> yorickpeterse: see above flaws. but yes, if you can send an email, even if you validate, do send one.
peter_paule has quit [Ping timeout: 256 seconds]
k3asd`_ has quit [Ping timeout: 250 seconds]
zdman135 has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 264 seconds]
christiandsg has joined #ruby
jtdoncas has quit [Ping timeout: 264 seconds]
<jhass> I wanted to save a nice image of it so you could print a poster, but it breaks the image export of https://jex.im/regulex :(
<havenwood> shevy: Try it out! :)
gamename has joined #ruby
JMoir has joined #ruby
silkfox has quit [Ping timeout: 276 seconds]
blueOxigen has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Quit: Leaving.]
hotpancakes has joined #ruby
rbennacer has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
peter_paule has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Juanchito has joined #ruby
scripore has joined #ruby
jtdoncas has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
v4n has joined #ruby
tkuchiki has joined #ruby
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Remote host closed the connection]
<v4n> Are Puma Threads and Workers synonyms? As I understand a Cluster is a forked process that runs Threads (Workers?).
leonardoajim has quit [Ping timeout: 244 seconds]
leonardoajim has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
<havenwood> v4n: Yes, each worker is a Thread in the pool.
iamninja has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
vvgomes has joined #ruby
Kully3xf has joined #ruby
matp has quit [Ping timeout: 255 seconds]
rwilcox has quit [Ping timeout: 264 seconds]
icebourg has joined #ruby
vvgomes has quit [Client Quit]
<mwlang> jhass: are you saying you tried that massive regexp I gist’d to jex.im?
<v4n> havenwood: good to know. Any idea what's the benefit of having more than 1 Cluster? If I want more Concurrency I could just increase the Thread count.
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kully3xf_ has quit [Ping timeout: 264 seconds]
<Antiarc> Are you on MRI or jruby?
paulcsmith has quit [Ping timeout: 248 seconds]
<Antiarc> MRI can't use more than 1 core's worth of CPU per process
quimrstorres has joined #ruby
<jhass> mwlang: sure, it works fine if you replace the octal stuff with hex escapes
<jhass> except for the image export
paulcsmith has joined #ruby
<jhass> let's see if copy pasting the generated svg works
<mwlang> ah, I bet that’s a fun visual. I wouldn’t mind seeing it if you get it to save.
<mwlang> whatever happened to SMTP’s query email validity feature? I know that’s been around forever, but not all SMTP servers correctly implemented it, so it never really got adopted as a way to validate emails.
shtirlic has joined #ruby
<havenwood> v4n: ^ what Antiarc said. Here's a series of articles if you want to read about CRuby's GVL (Global VM Lock): http://www.jstorimer.com/blogs/workingwithcode/8085491-nobody-understands-the-gil
djbkd has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<v4n> Antiarc: I'm using MRI
<momomomomo> JRuby is pretty dope
<Antiarc> You will want 1 process per core in your CPU then
<v4n> havenwood: thanks
<Antiarc> To fully utilize the box
<Antiarc> Or use jruby and get all cores with one process :)
shazaum_ has joined #ruby
<apeiros> havenwood: uh, no? each worker is a process. and each process has a thread-pool.
<Antiarc> threading in MRI is mostly nice for parallelizing IO-heavy work; it won't help you with CPU-intensive stuff.
GPrime has joined #ruby
paulcsmith has quit [Client Quit]
<apeiros> havenwood: i.e. puma forks + threads
<momomomomo> apeiros: are we talking about straight ruby or something like puma
dagda1 has joined #ruby
<momomomomo> apeiros: "On MRI, there is a Global Interpreter Lock (GIL) that ensures only one thread can be run at a time. But if you're doing a lot of blocking IO (such as HTTP calls to external APIs like Twitter), Puma still improves MRI's throughput by allowing blocking IO to be run concurrently (EventMachine-based servers such as Thin turn off this ability, requiring you to use special libraries). Your mileage may vary. In order to get the best throughput, it i
<momomomomo> highly recommended that you use a Ruby implementation with real threads like Rubinius or JRuby."
<momomomomo> from puma docs
<apeiros> momomomomo: I'm talking about "v4n: Are Puma Threads and Workers synonyms?" - "havenwood: v4n: Yes" - and that's wrong
<Antiarc> (ps jruby is awesome)
mjuszczak has quit []
<momomomomo> ah gotta go meeting
iamninja has quit [Ping timeout: 264 seconds]
<havenwood> apeiros: hrm?
paulcsmith has joined #ruby
baweaver has joined #ruby
paulcsmith has quit [Client Quit]
<apeiros> havenwood: I'd love to answer your question, but can't do much with "hrm?" :-)
scripore has joined #ruby
paulcsmith has joined #ruby
stantonnet has quit [Ping timeout: 256 seconds]
paulcsmith has quit [Client Quit]
<havenwood> apeiros: The Puma ThreadPool is started with "workers" which are Threads.
peter_paule has quit [Ping timeout: 264 seconds]
<apeiros> unless they badly reuse the term worker, that's incorrect. workers are processes in puma.
<havenwood> apeiros: The code I linked above ^. I'm not following what you mean.
<apeiros> and each process has threads.
<apeiros> see https://github.com/puma/puma "Clustered Mode". --workers to control forking, -t to control threads per worker
pengin has joined #ruby
<Antiarc> per the puma doc, workers are the number of processes in a cluster
crdpink2 has joined #ruby
<apeiros> ^
<Antiarc> And each process runs a threadpool of -t threads
<apeiros> precisely
<havenwood> okay, so term reuse
<jhack> what does arr do again? finds the array?
<Antiarc> jhack: It emphasizes your point, if you're a pirate
<Antiarc> Arr.
<jhack> lol
crdpink has quit [Ping timeout: 248 seconds]
<cout> R
olistik has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
<apeiros> havenwood: shame on them :<
<havenwood> v4n: So I retract what I said. I've contributed to the ThreadPool code so that's what I'm most familiar with. I got confused.
olistik has joined #ruby
<havenwood> apeiros: Thanks for the correction, I *should* have kept them straight. Looking at the command line args it's coming back to me.
<apeiros> yw
<apeiros> masterpedant loves to correct
<havenwood> :)
<Antiarc> you kids and your "clusters" and "threads" these days. Back in my day, we managed a pack of single-threaded mongrels manually. Uphill. Both ways. In the snow.
icebourg has quit []
baweaver has quit [Ping timeout: 244 seconds]
Notte has quit [Remote host closed the connection]
<mwlang> Antiarc: you forgot a bit….”without electricity” :-D
<Antiarc> Damn straight. If I wanted to serve a web request, I had to pull out the hand crank.
JoshL has quit []
<mwlang> I still remember the night I switch an entire cluster of 70+ servers from mongrel to Passenger.
<Antiarc> I'll bet that was a good day.
mando has joined #ruby
gamename has quit [Remote host closed the connection]
<mwlang> That’s 70 different Rails apps…yeah, it was a great day…I went home at 4am, came in the next afternoon and everybody wanted to know what I did last night.
sharpmachine has joined #ruby
BrianBoyko has quit [Ping timeout: 248 seconds]
gamename has joined #ruby
<jacky> "Just saved us a whole bunch of money by switching to Geico, that's what."
<mwlang> My first question was, “why? what’s broke?” They said, “nothing…its just that not one single crash report’s come in yet."
<mwlang> That comment made my year.
<Antiarc> OTOH, mongrel did a good job of forcing you to build redundant, monitored systems.
charliesome has quit [Quit: zzz]
sharpmachine has quit [Remote host closed the connection]
<havenwood> apeiros: Think I might submit a PR to clear up the nomenclature internally. Will ponder.
shazaum_ has quit [Quit: Leaving]
<mwlang> Antiarc: indeed. Mongrel is the reason I know how to virtualize the fluie out of everything.
workmad3 has joined #ruby
<Antiarc> havenwood: Since you seem to have your fingers in puma, is there any plan for zero-downtime reloads under non-forking runtimes (ie, jruby)?
<mwlang> Xen would not be in my backpack without Mongrel.
<Antiarc> We're on torquebox right now but jboss makes me cry with many sads
yardenbar has quit [Quit: Leaving]
danzilio has quit [Quit: My computer has fallen asleep!]
<havenwood> Antiarc: How about fork and exec via ffi?
gamename has quit [Ping timeout: 248 seconds]
<Antiarc> The JVM doesn't support forking, I'm not sure you could even do it via ffi
zacstewart has quit [Remote host closed the connection]
<apeiros> havenwood: I'm curious - what will you use internally as name?
zacstewart has joined #ruby
<havenwood> apeiros: That's what I'd need to ponder. :O
<apeiros> heh
JMoir has quit [Ping timeout: 276 seconds]
<apeiros> I think I had the same problem before. trying to remember with what I settled.
<Antiarc> Whoa, okay, headius has a post on doing so
<Antiarc> Wellll now.
<Antiarc> I'm going to do some reasing.
<Antiarc> reading*
<eam> you can fork the jvm
<havenwood> Antiarc: Yeah, I don't have experience setting it up personally. I'll have to try that.
workmad3 has quit [Ping timeout: 246 seconds]
<Antiarc> Ah, but that'd be multiple JVM instances. Hrm.
ndrei has quit [Ping timeout: 256 seconds]
<havenwood> Line em up!
<eam> forking any GC'd language is fraught with peril
Jamal has joined #ruby
<apeiros> eam: hm? because of COW?
<havenwood> eam: though it's really not forking, just exec
<apeiros> or why?
tilllt has joined #ruby
<eam> because of non-determinism in finalizers
<eam> havenwood: oh, in that case just vfork / create_process
<eam> er, create_process? I mean posix_spawn
<eam> havenwood: is this starting up a new server without downtime in the old one?
<havenwood> bug sprayer coming through, must evacuate to safety
<apeiros> havenwood: best I came up with so far is "processor". not happy about it :-|
<havenwood> eam: sorry, i think i'm equivocating - puma internally just execs but i guess we're also discussing forking the jvm
<havenwood> back in a few
<eam> ah
<jhass> mwlang: didn't manage to render a viewable PNG (stuff breaks at 70k x 2.5k pixels), but just enter http://paste.mrzyx.de/pkdukxsic/3rvjfc/raw into regulex and give your browser a minute or two to render
baweaver has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> jhass: ok
<eam> so if it's a server re-exec'ing itself one neat trick is to spin up a new one and use IPC to pass the listening socket from one to the other
<eam> (vs inheriting it across an exec)
<eam> added bonus is you can warm-up the new server before the old one goes away, or even test-load traffic on it, entirely hitless
jerius has quit [Quit: /quit]
<eam> I have some example ruby code for that
hotpancakes has joined #ruby
Soda has quit [Remote host closed the connection]
Mendenhall has joined #ruby
<mwlang> jhass: looks like a lot of the same thing is repeated over and over.
<jhass> yeah
blaines has joined #ruby
jhack has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
<mwlang> but this is a nice tool. You’ve introduced me to several regexp sites that are quite useful.
soxet has quit [Quit: Leaving]
vdamewood has quit [Ping timeout: 248 seconds]
pengin has quit [Remote host closed the connection]
danzilio has joined #ruby
<jhass> I find it a bit weird how it seems to allow tabs and newlines everywhere
<tilllt> hi people. i am a ruby beginner and i fear the (simple) project i chose is beyond what i can figure out without some help. basically i want to write a program that copies a file from one place to another as quickly as possible, BUT creating checksums of the original and the destination file. i figured that the „zero copy“ approach (http://www.bigfastblog.com/zero-copy-transfer-data-faster-in-ruby) probably is the fastest way possible for the copy process its
<tilllt> (at least while you are on linux) and xxHash (https://github.com/justinwsmith/xxhash) is the fastest hashing algorithm, so these two in combination could be a good approach. the IO.splice used for zero copy also comes with an IO.tee example, but i fail to understand if it is possible to „pipe“ an input file to the hashing algorithm with tee and at the same time write it to a destination file… by chance anyone here knows about these approaches and point me i
<tilllt> the right direction?
<jhass> ?flood
<ruboto> Please use https://gist.github.com for more than three lines of text!
v4n has quit []
blaines has quit [Ping timeout: 244 seconds]
ZeeNoodleyGamer has quit [Read error: Connection reset by peer]
<shevy> ?godzilla
<ruboto> I don't know anything about godzilla
<jhass> meh, it actually is three lines :D
<mwlang> jhass: yeah, I saw that. I really have no idea what the previous developers were thinking. It’s almost like they grabbed one of the RFC ones linked earlier.
jenrzzz has quit [Ping timeout: 248 seconds]
ixti has quit [Ping timeout: 276 seconds]
<jhass> I've seen regex generators for some RFCs
acke has quit [Ping timeout: 244 seconds]
<jhass> wouldn't be surprised if this is generated in fact
<baweaver> ? 'that, but I do know why kids love cinnamon toast crunch'
<baweaver> ?'that, but I do know why kids love cinnamon toast crunch'
vdamewood has joined #ruby
<baweaver> drat
<al2o3-cr> tilllt: probably look at IO.copy_stream
blaines has joined #ruby
<al2o3-cr> that is, if you are using IO
vdamewood has quit [Max SendQ exceeded]
felixrsmith has quit [Quit: Konversation terminated!]
<apeiros> jhass: regulex better than debuggex?
vdamewood has joined #ruby
<tilllt> al2o3-cr: i managed to use the IO.splice code fine and make a copy of a file, it is very fast, faster than linux „cp“ i think.… the question is, am i on the wrong path thinking that i could use IO.tee to additionally create a checksum while reading the file…
jenrzzz has joined #ruby
j_mcnally has joined #ruby
<mwlang> tilllt: if speed is your biggest concern, you may want to go with a compiled language — especially if you’re aiming to operate on entire disk volumes.
<jhass> apeiros: regulex renders nicer IMO (and handles bigger inputs if you give it some time), but it doesn't do anything beyond rendering
<apeiros> well, the mail regex rendered quickly enough :)
<al2o3-cr> well tee'ing is going to be considerably slowing things down
<jhass> most time is your browser rendering the generated svg, yeah
polpak has joined #ruby
x1337807x has joined #ruby
<mwlang> tilllt: doing zero-copy means your app isn’t interested in the data that’s being transferred, so you’re cutting the middle-man (your app) out of the process. The kernel does the work and lets you know when it’s done. However computing CRC means you are interested in the data, so the two seem mutually exclusive to me.
baweaver has quit [Remote host closed the connection]
vdamewood has quit [Max SendQ exceeded]
<zenspider> hard linking and shelling out to md5 cmdline seems the fastest in my mind (not measured)
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> :D
pengin has joined #ruby
zacstewart has quit [Remote host closed the connection]
Olipro has quit [Ping timeout: 256 seconds]
<tilllt> mwlang: thats what i feared, yes. still, zero copy is so much faster then a regular copy, that i think it might be still a good approach to copy the file and then create the checksum hashes afterwards. so i guess that zero copy also implies that the file is not cached, so successive reads will not access a cached version (and benefit from that, speedwise) but read the entire file again for hashing?
renderful has quit []
FernandoBasso has joined #ruby
duncannz has quit [Remote host closed the connection]
<mwlang> tilllt: yeah, you’re going to read the file twice in your scenario, as far as I can tell.
<zenspider> you only need to hash one of them, right?
<mwlang> …and without digging into Linux system level api docs….
<tilllt> zenspider: no, both. i need to make sure the file is identical.
davedev24_ has quit [Ping timeout: 248 seconds]
<zenspider> tilllt: why are you testing whether the copy worked? it'll error out if it didn't work
NeverDie has joined #ruby
<eam> ruby is the wrong language for this level of optimization
podman has quit [Quit: Connection closed for inactivity]
<tilllt> zenspider: md5 is overkill (from my research for data integrity), i dont need a cryptographic hash. https://code.google.com/p/xxhash/
freerobby1 has joined #ruby
Timba-as has joined #ruby
davedev24_ has joined #ruby
<tilllt> zenspider: check the link to give you an idea of checksum algorithm speed comparison
freerobby has quit [Read error: Connection reset by peer]
<zenspider> still doesn't address my question
postmodern has joined #ruby
momomomomo has quit [Quit: momomomomo]
havenwood has joined #ruby
christiandsg has joined #ruby
arcanez has left #ruby [#ruby]
<tilllt> i want to build a system that copies video / audio files, on-set, to several backup volumes (insurances usually require at least 3 copies). This data might then be transferred to other facilities and be processed again. if a file is corrputed on any of these steps, i need to be able to document on any of these distribution steps that the data is entirely intact. so i think there is no way around checksums.
ixti has joined #ruby
Mendenhall has quit [Ping timeout: 256 seconds]
victortyau has quit [Quit: Leaving]
<Antiarc> I'd just use rsync ;)
<eam> tilllt: are the files larger than RAM?
<tilllt> oh yes
<tilllt> think hundreds of GB
mistermocha has joined #ruby
<eam> yeah, it might make sense to build your own copy command then
<tilllt> in worst case
duncannz has joined #ruby
pullphinger has quit []
<eam> cp breaks down at edge cases with extremely large sets of files - so does rsync
Scroff has joined #ruby
<zenspider> there's a multi-dest rsync variant
<eam> tilllt: but, if you really care you should also make sure to use a filesystem which takes care of this for you
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> but I don't think you'll benefit if this is local volumes
<eam> like zfs
enebo has quit [Quit: enebo]
<zenspider> but, I'm not sure you can do zero-copy across volumes
<eam> see the CERN paper on bit-flips per GB, you'll get some at that size
<tilllt> eam: i cant force the people that are going to use the system to any kind of filesystem. this entirely depends on what they need to pass to their editors, so this might be NTFS / HFS / ext3 or whateve they need in their editing suites…
eggoez has quit [Ping timeout: 256 seconds]
Kully3xf has quit [Ping timeout: 246 seconds]
<eam> fair. So, you definitely want a rolling checksum as you copy
redteam has quit [Read error: Connection reset by peer]
christiandsg has quit [Ping timeout: 265 seconds]
<tilllt> obviously zfs or btrFS would have some advantages for data integrity. but thats not the reality on a film-set :)
<eam> I wouldn't worry about the cost of copying -- the cost of writing to disk will be many orders of magnitude higher
<eam> you should be able to ignore the cost of copying the buffer in ram
t0rrieri has quit [Quit: Be back later ...]
<eam> zerocopy matters when it's a webserver serving the same file from vfs cache a million times
<eam> it won't help much when your dataset > RAM
jenrzzz has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
Scroff has quit [Ping timeout: 265 seconds]
eggoez has joined #ruby
Leef_ has joined #ruby
Leef_ has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
<eam> tilllt: but, just running `md5` on the file post-copy is still probably the best
<tilllt> eam: so you are saying that if file > ram, i can just use any kind if IO read / write and it will be the same speed?
<zenspider> very interesting talk about video processing w/ huge datasets ... at... cascadia
mistermocha has joined #ruby
<tilllt> zenspider: thanks i will take a look.
<zenspider> its gonna go through the same bottleneck every time
xtsee has joined #ruby
<eam> tilllt: essentially. https://gist.github.com/jboner/2841832
techietrash has joined #ruby
momomomomo has joined #ruby
<eam> the cost of putting 4k on disk is maybe 10,000 times more than the cost of copying 4k in memory (or the cost of checksumming it)
<tilllt> eam: from my research md5 is really not the optimal algorithm for my purpose, again: https://gist.github.com/tilllt/8fc9b9de1a037126bb7f
<eam> so if you're looking to optimize that memory copy, you're looking to do a 0.001% optimization
<eam> tilllt: again, that's a 0.01% speed issue
platzhirsch has quit [Ping timeout: 246 seconds]
<eam> your overwhelming cost will be reading the bytes off the platters
<eam> it's like planning a road trip across the US, then arguing over which side of the gas station is faster to pull up to
baweaver has joined #ruby
olistik has quit [Remote host closed the connection]
Metus has joined #ruby
<zenspider> haha
<zenspider> that's a great analogy
<tilllt> well, the source media that contains the data files will probably anything from SSD’s to SD Cards, CFAST, CF … some of those (especially SSD) are quite fast…
<eam> car analogies ftw
<eam> tilllt: yeah, ssd can maybe get it to 100x
<eam> memory is still massively faster
<zenspider> not fast enough
brettnem has quit [Quit: brettnem]
<eam> (a top of the line ssd like a FusionIO)
<eam> tilllt: by all means, use the checksum you want, though
<eam> but benchmark your entire process before you put too much time into any optimization
<apeiros> xxhash seems to have a command utility too
<apeiros> at least one is in the PRs
<tilllt> it has a ruby gem ;)
EagleDelta has quit [Read error: Connection reset by peer]
<apeiros> ruby probably adds quite a bit of overhead too
<apeiros> i.e. reading with ruby and checksumming there is probably quite a bit slower than using the xxhash command utility
<eam> you can't really do zerocopy in ruby at all, unless the entire mechanism is hidden in an extension
bruno- has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tilllt> io_splice ?
devdazed has quit [Ping timeout: 264 seconds]
<eam> that'd be one such extension
<eam> but then you can't read the data to checksum it
<havenwood> Release... the GVL!!
<mwlang> I’m so behind the times… “Note : as Google Code is closing, the new official xxHash repository is now on Github…”
<tilllt> apeiros: there is also a ruby wrapper around the c version of xxhash, i guess that should be pretty much the same as the command line version… https://github.com/nashby/xxhash
brettnem has joined #ruby
<tilllt> speedwise
bricker has quit [Ping timeout: 256 seconds]
<havenwood> nice
<al2o3-cr> it will be in ruby 3.0 (hopefully) :D
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* al2o3-cr crosses fingers
<eam> tilllt: note the ruby gem for xxhash requires you to have the entire file in memory :)
<eam> ah, no, there's a stream interface
<tilllt> yeah, thats what i was trying to use...
bricker has joined #ruby
Ropeney has joined #ruby
<eam> tilllt: if you're doing this in ruby, just read 4k chunks, and write them into the xxhash IO object and the destination file object
<eam> don't sweat the copying
<eam> the read/write will be even in the best case with a $10k FusionIO backing drive still 99% of the time spent
<Senjai> tilllt: Do you have a speed problem?
quimrstorres has quit [Remote host closed the connection]
<eam> now, if you really want to go fast, you could investigate parallel copies
<Senjai> If you do, then worry about your algorithm, if you dont, waste all the resources you want
<eam> slice the file into N threads where N is the optimal parallelism for your storage device (say N spindles of disk drives)
danzilio has quit [Quit: My computer has fallen asleep!]
<eam> and have each thread write 1/N of the file
danzilio has joined #ruby
jimmiejohnson has joined #ruby
solars has quit [Ping timeout: 255 seconds]
<eam> that could give you potentially an order of magnitude speed boost
quazimod1 has quit [Ping timeout: 256 seconds]
adamski2600 has quit [Remote host closed the connection]
jimmiejohnson has quit [Client Quit]
<tilllt> eam: this is possible in ruby?
mistermocha has quit [Read error: Connection reset by peer]
<eam> sure
mwlang has quit [Quit: mwlang]
danzilio has quit [Client Quit]
yizr has joined #ruby
<tilllt> what do i have to look for when researching on parallelizing stuff in ruby?
gambl0re has quit [Ping timeout: 252 seconds]
<eam> you could thread or fork
gambl0re has joined #ruby
mistermocha has joined #ruby
[H]unt3r has quit []
<eam> you'll want to do a bunch of reading on how to do threaded programming before you tackle that approach though
<eam> it's one of the more complex paradigms folks struggle with
last_staff has quit [Quit: last_staff]
Xeago has joined #ruby
<tilllt> yeah, probably too much for me at this point but still a very interesting aspect…
spider-mario has quit [Remote host closed the connection]
thiagovsk has quit [Quit: Connection closed for inactivity]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<Senjai> tilllt: avdi wrote a decent book on threading
<Senjai> Sorry
<Senjai> got the author wrong
icebourg has joined #ruby
<Senjai> Jesse Storimer
<Senjai> tilllt: ^
icebourg has quit [Max SendQ exceeded]
sarkyniin has joined #ruby
<tilllt> senja: sounds great, thanks for the link.
<Senjai> It is verry basic
<Senjai> though
choke has joined #ruby
<al2o3-cr> +1 Jesse Storimer
<Senjai> But if you want ruby specific, thats the one I would recommend
<tilllt> perfect for me then ;)
<Senjai> tilllt: After reading it, try writing an IRC bot. It's a great case for writing threaded code
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Senjai> *from scratch*
x1337807x has quit [Ping timeout: 252 seconds]
<avdi> Senjai: hahaha, I was all, I did what now??
<tilllt> i think i’ll centre my ruby learning around this video / audio backup thingy for the moment. sounded simple at first but proves to have a steeper leaning curve then i expected.
<eam> if you wish to write an irc bot from scratch you must first invent the universe
<tilllt> again?
<tilllt> parallel universe?
mistermocha has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<eam> tilllt: ;) interestingly, almost any mundane computing problem can become arbitrarily complex in corner cases
<Senjai> avdi: Sorry man, your books are good too
jenrzzz has joined #ruby
brettnem has quit [Quit: brettnem]
monod has quit [Quit: Sto andando via]
<Senjai> eam: The only crappiness is around message codes and format
<Senjai> eam: The whole respond while still reading input stuff is kind of a cute thing to do to learn how to write concurrent code
momomomomo has quit [Quit: momomomomo]
<Senjai> But yeah, you'll run into a lot of complexities with IRC
ramblinpeck has quit [Ping timeout: 248 seconds]
but3k4 has joined #ruby
<eam> yeah, still relatively basic compared to say http though
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> like the fact your bot must respond to a PING every little while to prevent being disconnected
<eam> great for beginners, especially since you can talk to it
<Senjai> I'll leave the rest of the goodies to discover for you
ramblinpeck has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
vcoinminer has quit [Ping timeout: 248 seconds]
swgillespie has joined #ruby
<Senjai> When I did mine, I had a ping thread, a input thread, and a response thread
skmp has quit [Ping timeout: 248 seconds]
avdi has quit [Ping timeout: 248 seconds]
alekst_ has quit [Ping timeout: 248 seconds]
frode15243 has quit [Ping timeout: 248 seconds]
saintcajetan has quit [Ping timeout: 248 seconds]
duoi has quit [Ping timeout: 248 seconds]
Lingo has quit [Ping timeout: 248 seconds]
duoi has joined #ruby
avdi has joined #ruby
frode15243 has joined #ruby
vcoinminer has joined #ruby
waxjar has joined #ruby
alekst_ has joined #ruby
saintcajetan has joined #ruby
skmp has joined #ruby
rgs has quit [Ping timeout: 246 seconds]
<eam> bonus points: one thread, multiplex all the i/o interaction
<eam> parallelism vs concurrency
rgs has joined #ruby
j_mcnally has joined #ruby
<havenwood> Then use a FiberPool for something.
j_mcnally has quit [Max SendQ exceeded]
tno has quit [Remote host closed the connection]
bruno- has joined #ruby
casadei_ has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
jesterfraud has joined #ruby
codecop has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
vdamewood has joined #ruby
acke has joined #ruby
<havenwood> Or not.
Timba-as has quit [Quit: Be back later ...]
ixti has quit [Ping timeout: 240 seconds]
devdazed has joined #ruby
rqde has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
workmad3 has joined #ruby
jobewan has quit [Quit: Leaving]
acke has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
quimrstorres has joined #ruby
michael_mbp has quit [Excess Flood]
<rqde> I've pushed https://github.com/rqde/soundboard-demo to OpenShift, but I get a "Something went wrong" message once it's running. Doing rhc tail -a myapp I get this http://pastebin.com/hP7Gud2e . Im new to programming and I have no clue how to approach this (let alone fix it). Can you guys help?
<ruboto> rqde, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/403fcb2a82a3c1d78775
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
mary5030 has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
pengin has joined #ruby
j_mcnally has joined #ruby
kerrizor has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
freerobby1 has quit [Quit: Leaving.]
paulcsmith has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
mando has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
t0rrieri has joined #ruby
sharpmachine has joined #ruby
hackeron has joined #ruby
dopie has quit [Ping timeout: 246 seconds]
dstarh has joined #ruby
bubbys has joined #ruby
yizr has quit [Quit: Leaving]
gambl0re has quit [Ping timeout: 246 seconds]
zacstewart has joined #ruby
paulcsmith has quit [Ping timeout: 256 seconds]
Scroff has joined #ruby
gguggi has quit [Ping timeout: 248 seconds]
bubbys has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
meph has quit [Disconnected by services]
meph1 has joined #ruby
zacstewart has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Client Quit]
paulcsmith has joined #ruby
<sphex> hey. does "extend" have somekind of hook in the source module (like "include" and "included")?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy2 has joined #ruby
mandarinkin has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
nertzy has quit [Ping timeout: 256 seconds]
<sphex> huh. nevermind. it's "extended". *DURR*
Olipro has joined #ruby
tilllt has quit [Quit: tilllt]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
nertzy2 has quit [Ping timeout: 252 seconds]
dstarh has joined #ruby
zacstewart has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yizr has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
zacstewart has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
bubbys has joined #ruby
havenwood has joined #ruby
iateadonut has joined #ruby
Guest70152 has quit [Ping timeout: 276 seconds]
Olipro has quit [Ping timeout: 244 seconds]
iateadonut has quit [Client Quit]
lupine has quit [Quit: ZNC - http://znc.in]
i8igmac has quit [Ping timeout: 252 seconds]
cndiv has joined #ruby
tituspullo has quit [Remote host closed the connection]
idafyaid has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
cndiv has quit [Quit: Quit]
MichaelGG has joined #ruby
Olipro has joined #ruby
<MichaelGG> Hi there! I'd like to use Ruby to use it to make a website (gonna make a simple blog/cms for my company). I've got a lot of experience programming, mostly C/C#/F#. Where should I start? If I use a RoR tutorial will I pickup enough Ruby on the way?
mando has joined #ruby
<MichaelGG> Or should I look into a ruby tutorial before touching rails?
dstarh has quit [Ping timeout: 248 seconds]
<zenspider> probably depends on how you learn
RegulationD has quit [Remote host closed the connection]
<zenspider> there's a book by david black for teaching ruby to people who's already dove into rails
<Senjai> zenspider: Really
<Senjai> zenspider: Damn, I'd say there are books for everything in ruby these days
jtdoncas has quit [Ping timeout: 276 seconds]
Muhannad has joined #ruby
<baweaver> I'm writing one too now :D
bruno- has quit [Ping timeout: 265 seconds]
<MichaelGG> I guess I'm asking if the RoR tutorials from the ror site are suitable for also picking up Ruby or if I need to go learn ruby first. It looks easy enough
mando has quit [Ping timeout: 252 seconds]
<MichaelGG> ive been in webdev for ~ 2 decades so i dont need a beginners guide just tell me what to do in ror/ruby
<cout> if you have experience you can pick up the basics of ruby in a day or so
finisherr has joined #ruby
mistermocha has joined #ruby
yizr has quit [Ping timeout: 264 seconds]
t0rrieri has quit [Ping timeout: 250 seconds]
Olipro has quit [Ping timeout: 252 seconds]
<MichaelGG> ok thanks ill dive in cheers
<baweaver> The Ruby Way and Eloquent Ruby
t0rrieri has joined #ruby
<Senjai> MichaelGG: The ones baweaver recommended would be good
<baweaver> The Ruby Way is more of a comprehensive guide, and Eloquent is more of how to do things like a Ruby programmer
zacstewart has joined #ruby
axl_ has quit [Quit: axl_]
<baweaver> Rails 4 in Action was written by members on the channel, but I haven't read it myself yet
<MichaelGG> Excellent
<Senjai> I can vouch for it
<baweaver> Radar: R4iA, more of a beginners book or what level in general?
<Senjai> I've read both R3IA and R4IA
<Senjai> It's a beginners book
<Senjai> But its "fast"
tvw has quit [Remote host closed the connection]
<Senjai> because you're actively writing an application while reading
<baweaver> I still need to read it later
<MichaelGG> beginner as in new to ruby/ror not new to programming
<Radar> baweaver: Beginners book for those who have experience with Ruby.
howdoicomputer has joined #ruby
<Radar> (basic experience)
<Radar> Say you've been toying around with Ruby for a week... you should be able to pick up R4IA and read it
<MichaelGG> thanks Radar
<baweaver> ^ is one of the authors
Olipro has joined #ruby
<Radar> MichaelGG: Read The Well-Grounded Rubyist first :)
<baweaver> sevenseacat whenever they're online too
<Radar> baweaver: in about 30 minutes iirc
shevy has quit [Ping timeout: 252 seconds]
<Radar> TWGR is the book that zenspider is thinking of I think
<MichaelGG> Radar, ok I'll do that now
tkuchiki has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> David Black wrote it, so probably
<Radar> He might be thinking of a prequel to that book too, Ruby for Rails.
lupine has joined #ruby
war_pigs has joined #ruby
<MichaelGG> Just seems like for building little content sites, Ruby has more community, like it's easy to drop in A/B testing and stuff. Whereas ASP.NET MVC doesnt have that community and python's somewhere in the middle
<Radar> Which is not what I would recommend at all since it's very out of date.
<MichaelGG> should be fun since Ruby's on the other end of the spectrum from what I like
mistermocha has quit [Read error: Connection reset by peer]
<baweaver> define what you like
<Senjai> MichaelGG: TBH there are more bad resources for learning ruby then there are good ones. Just ask us if a resource your considering is worthwhile.
jeanlinux has joined #ruby
<baweaver> because if you're already keen on F# you're going to notice things
<Senjai> It's also a simple language, so yeah.
Agoldfish has quit [Quit: G'Bye]
symbol has joined #ruby
<MichaelGG> baweaver, yes I'm much more into statically typed functional programming. And Rust when I need C compat.
mistermocha has joined #ruby
<baweaver> http://egonschiele.github.io/contracts.ruby/ - If you _really_ want it
eggoez has quit [Ping timeout: 252 seconds]
<baweaver> and spend too much time around Haskell