havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
djbkd has quit [Remote host closed the connection]
statelesscode has quit [Ping timeout: 248 seconds]
william3 has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
djbkd has joined #ruby
dcluna has joined #ruby
<zenspider> minitest 5.10.1 released
dcluna has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bodgix has quit [Quit: Leaving.]
statelesscode has joined #ruby
bodgix has joined #ruby
adavia has joined #ruby
montanonic has joined #ruby
bturker has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
bodgix has quit [Quit: Leaving.]
Gadgetoid has quit [Quit: ZNC - http://znc.in]
Azure has quit [Remote host closed the connection]
chopin has quit [Remote host closed the connection]
jaguarmagenta has quit [Remote host closed the connection]
chopin has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
bturker has quit [Ping timeout: 256 seconds]
Gadgetoid has joined #ruby
tau has quit [Remote host closed the connection]
Azure has joined #ruby
jaguarmagenta has joined #ruby
BillyTheKid has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
c355e3b has joined #ruby
chopin has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
dcluna has joined #ruby
tomchapin has quit [Ping timeout: 250 seconds]
tomchapin has joined #ruby
jgnagy has joined #ruby
Iarfen has quit [Quit: Going offline, see ya! (www.adiirc.com)]
millerti has joined #ruby
Derperperd has joined #ruby
skweek has joined #ruby
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Max SendQ exceeded]
SteenJobs has quit [Quit: SteenJobs]
<blackbom1> zenspider: what is that [git-p4] stuff that is added to your commits?
skweek has joined #ruby
ziarkaen has quit [Ping timeout: 250 seconds]
skweek has quit [Max SendQ exceeded]
jgnagy has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> sync information from my repo to git
antoniobeyah has quit [Quit: antoniobeyah]
nemermel has quit [Ping timeout: 260 seconds]
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
haraoka has joined #ruby
gnufied has quit [Quit: Leaving]
Gadgetoid has left #ruby [#ruby]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
dcluna has joined #ruby
jcao219 has joined #ruby
Ebok has joined #ruby
xcyclist has joined #ruby
marr has quit [Ping timeout: 250 seconds]
JoshS has quit [Ping timeout: 240 seconds]
<xcyclist> I'm trying to use minitest on redhat 2.6.32-573.el6.x86_64
<xcyclist> ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
Ebok has quit [Client Quit]
<centrx> xcyclist: that's ancient
<xcyclist> Most of the must_* methods and all the wont ones are missing.
<xcyclist> I believe it.
Devalo has joined #ruby
<xcyclist> But even the ancient ones had the wont stuff.
<centrx> but they provided their own security and maintenance
<zenspider> xcyclist: need a gist or an issue w/ an example
<xcyclist> NoMethodError: undefined method `wont_raise' for #<Proc:0x00000000faac80@QPIDStatScoreTreeTest.rb:9>
<zenspider> I can't help you by guessing
Rodya_ has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
chris2 has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
<zenspider> xcyclist: ... I need (at least) lines 1-9 of QPIDStatScoreTreeTest.rb
Jardayn has quit [Remote host closed the connection]
<xcyclist> Thank you I cannot yet.
<zenspider> cannot what?
Rodya_ has quit [Ping timeout: 260 seconds]
tax has joined #ruby
nelsonsar has quit [Ping timeout: 244 seconds]
kobain has joined #ruby
charliesome has joined #ruby
cdg has quit [Remote host closed the connection]
tomchapin has quit [Read error: Connection reset by peer]
<b0nn> so, I have a stream that I want to write to a file. do I just my_local_file = File.open(open(streaming_url).read, "w")
<zenspider> b0nn: `ri File.open`
<b0nn> sorry?
<zenspider> run that
jcao219 has quit [Ping timeout: 265 seconds]
<zenspider> you'll get doco for File.open
<zenspider> then you can see what it takes / does
nankyokusei has joined #ruby
<b0nn> sorry, you'll have to be a little more explicit
<b0nn> $ `ri File.open`
<b0nn> Nothing known about File
raul782 has quit [Remote host closed the connection]
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
<b0nn> $ ri File.open
<b0nn> Nothing known about File
<zenspider> fix that first. you using rvm or something?
<b0nn> not that I am aware of
<zenspider> `which ruby`
djbkd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b0nn> /usr/bin/ruby
beanHolez has quit [Remote host closed the connection]
<b0nn> $ ruby --version
<b0nn> ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
<zenspider> ugh. there's probably ruby-doc or some package you need to install
<zenspider> I don't know that name tho
beanHolez has joined #ruby
<zenspider> worth it tho
jenrzzz has quit [Ping timeout: 244 seconds]
<b0nn> rdoc-data
centrx has quit []
nankyokusei has quit [Ping timeout: 250 seconds]
<zenspider> cool. now... try ri again
<al2o3-cr> b0nn: IO.copy_stream(open(url), 'whatever.txt')
nelsonsar has joined #ruby
tomchapin has joined #ruby
<zenspider> al2o3-cr: you fail at teaching... again. and again and again
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
beanHolez has quit [Ping timeout: 240 seconds]
<b0nn> heh, in this case it's ok, because I see that the differene is using the IO lib instead of the File lib
raul782 has joined #ruby
<zenspider> there's a bunch of ways to do it... what's important is getting to where you can answer the questions yourself easily
<b0nn> I hear you
<b0nn> I don't know if I would have got there on my own though
<b0nn> the ri for File has See IO.new for a description of the mode and opt parameters. at the bottom
<b0nn> but doesn't mention anything about streams
<b0nn> is there a search for ri?
charliesome has joined #ruby
axyjo has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
Guest43_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Read error: Connection reset by peer]
kies has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
ziarkaen has joined #ruby
<zenspider> xcyclist: when people ask for help but have absolutely no intention of working with the people trying to help... makes us want to not help at all...
sucks has joined #ruby
Immune has quit [Read error: Connection reset by peer]
whathappens has quit [Quit: Leaving...]
ResidentBiscuit has joined #ruby
sarbs_ is now known as sarbs
tomchapin has joined #ruby
xall_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ziarkaen has quit [Ping timeout: 250 seconds]
sucks has quit [Quit: Leaving]
sucks has joined #ruby
sucks has quit [Remote host closed the connection]
sucks has joined #ruby
sucks_ has joined #ruby
beanHolez has joined #ruby
Dimik has joined #ruby
sucks has quit [Remote host closed the connection]
sucks_ has quit [Remote host closed the connection]
sucks_ has joined #ruby
sucks has joined #ruby
sucks has quit [Remote host closed the connection]
sucks_ has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 250 seconds]
lucas has quit [Ping timeout: 250 seconds]
Felipe__ has joined #ruby
hardest has joined #ruby
<hardest> I didnt change a thing on my code
<hardest> whois library is getting this error undefined method `created_on' for #<Whois::Record:0x00000002878d48>
<hardest> for any domain
enterprisey has joined #ruby
<zenspider> is your network on? ;)
<hardest> yep
<zenspider> did you change any underlying code? eg upgrade the whois library
<hardest> I can get othr internet queries on python
<hardest> no
<zenspider> you have a repro I can play with?
<hardest> I will try to snapshot that
<hardest> I will let you know
<zenspider> kk
<hardest> ive installed linkedin-scrapper
<hardest> gem
<zenspider> since it's just whois... I can't imagine what could screw it up
<hardest> after that
jenrzzz has quit [Ping timeout: 258 seconds]
<zenspider> I'd look at the data within your instance to start
<zenspider> work backwards from there
djbkd has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
bmurt has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
Derperperd has quit [Quit: Derperperd]
skweek has quit [Ping timeout: 256 seconds]
dcluna has joined #ruby
Rodya_ has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
gnufied has joined #ruby
ResidentBiscuit has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
splud has quit [Quit: splud]
Rodya_ has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
jcao219 has joined #ruby
jeffaustin81 has joined #ruby
raul782 has quit [Remote host closed the connection]
Devalo has joined #ruby
Ebok has joined #ruby
Ebok has quit [Client Quit]
JoshS has joined #ruby
raul782 has joined #ruby
domgetter has quit [Ping timeout: 248 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
ResidentBiscuit has joined #ruby
Channel6 has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
antoniobeyah has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
skweek has joined #ruby
Ebok has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 250 seconds]
xall_ has joined #ruby
bturker has joined #ruby
Guest43568 has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
Sammichmaker has joined #ruby
xall_ has quit [Ping timeout: 246 seconds]
tomchapin has joined #ruby
chouhoulis has quit [Remote host closed the connection]
silverdust has joined #ruby
blackbombay has joined #ruby
silverdust is now known as Guest89272
bturker has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
blackbom1 has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
blackbom1 has joined #ruby
hardest has quit [Ping timeout: 240 seconds]
haraoka has quit [Ping timeout: 248 seconds]
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
SteenJobs has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Client Quit]
jgnagy has joined #ruby
ur5us has quit []
ziarkaen has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 256 seconds]
jgnagy has quit [Ping timeout: 244 seconds]
cibs has joined #ruby
d^sh has joined #ruby
ziarkaen has quit [Ping timeout: 250 seconds]
ForeignBiscuit has joined #ruby
edgr_ has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 250 seconds]
sexurity has joined #ruby
nettoweb has joined #ruby
arescorpio has joined #ruby
yardenbar has joined #ruby
nettoweb has quit [Client Quit]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Jonah11_ has joined #ruby
william3 has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
zapata has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
miqlas-H has joined #ruby
astrobunny has joined #ruby
blackbombay has joined #ruby
aryaching_ has joined #ruby
Snowy has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
Snowy has joined #ruby
blackbom1 has quit [Ping timeout: 260 seconds]
qguv has quit [Excess Flood]
pilne has quit [Quit: Quitting!]
qguv has joined #ruby
pawnbox has joined #ruby
tdy has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 244 seconds]
terens has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
terens has quit [Ping timeout: 246 seconds]
libastral has quit [Ping timeout: 250 seconds]
SpikeMaster has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
libastral has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
nankyokusei has joined #ruby
SpikeMaster has quit [Quit: ERC (IRC client for Emacs 26.0.50.1)]
Rodya_ has joined #ruby
harai_ has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
baiyang has joined #ruby
jhack has joined #ruby
JR042444__ has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
tomchapin has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ForeignBiscuit has quit [Ping timeout: 246 seconds]
tau has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
baiyang has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
igniting has quit [Ping timeout: 246 seconds]
cinderhaze has joined #ruby
<cinderhaze> Hello everyone.... I have a question... I'm working on getting more comfortable with ruby, and I am looking at adventofcode.com. I'm trying to figure out how to set up a good test harness so I can try to TDD my way to some solutions
c355e3b has quit [Quit: Connection closed for inactivity]
tomchapin has joined #ruby
sexurity has quit [Quit: Leaving]
domgetter has joined #ruby
chouhoulis has joined #ruby
saneax-_-|AFK is now known as saneax
Ebok has joined #ruby
LoneHermit has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
boombox_ has joined #ruby
ResidentBiscuit has joined #ruby
yardenbar has joined #ruby
jlkjlkj has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
masta`` has quit [Ping timeout: 246 seconds]
<baweaver> cinderhaze: Y'mean like Rspec or Minitest?
iMadper has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
bturker has joined #ruby
ForeignBiscuit has joined #ruby
aryaching_ has quit [Ping timeout: 250 seconds]
boombox_ has quit [Remote host closed the connection]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
railssmith has quit [Ping timeout: 240 seconds]
<cinderhaze> thanks for the link!
JR042444__ has quit [Ping timeout: 258 seconds]
bturker has quit [Ping timeout: 256 seconds]
byte512 has quit [Ping timeout: 250 seconds]
howdoi has joined #ruby
<jhack> is it bad practice to use pluralized method names? ex: organize_fields vs organize_field
<jhack> lol
JR042444__ has joined #ruby
JR042444__ has quit [Max SendQ exceeded]
<jhack> or it doesnt’ matter
JR042444__ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
JR042444__ has quit [Max SendQ exceeded]
JR042444__ has joined #ruby
JR042444__ has quit [Max SendQ exceeded]
JR042444__ has joined #ruby
JR042444__ has quit [Max SendQ exceeded]
JR042444__ has joined #ruby
<cinderhaze> So, question about writing tests.. (organization) How should I structure my code? I Think what I am going to do (for adventofcode.com) is make a module for each day. where would I put my spec folder... would I have a spec folder at the top, or do I put a spec folder in with each module?
pawnbox has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ForeignBiscuit has quit [Ping timeout: 258 seconds]
JR042444__ has quit [K-Lined]
Yzguy has joined #ruby
KnownSyntax_ is now known as KnownSyntax
Jonah11_ has joined #ruby
Felipe__ has quit [Quit: Leaving]
<nofxx> jhack, do the method organize a lot of fields or just one? simple
<jhack> a lot of fields
<nofxx> cinderhaze, usually you'll have 1:1 lib spec
<baweaver> cinderhaze: bundle gem advent_of_code
<baweaver> that'll generate all the structure for you.
<baweaver> you don't _have_ to actually publish the gem but it's handy for dependency management and everything else.
<nofxx> cinderhaze, so if you have lib/foo/bar.rb you'll have spec/foo/bar_spec.rb
Yzguy has quit [Client Quit]
montanonic has quit [Ping timeout: 260 seconds]
<nofxx> jhack, ruby is all about reading nice (what says the book), and avoiding comments hehe (the real intention)
<jhack> ok
<jhack> great
<jhack> that’s what i thought
<jhack> thanks
Jonah11_ has quit [Remote host closed the connection]
<cinderhaze> baweaver: I keep forgetting about how much generation there is in the ruby world (I come from C++ / Java, but I have been doing mostly puppet for the past year)
montanonic has joined #ruby
<baweaver> nofxx: Comments are still necessary
<nofxx> jhack, only conventions to follow: keep_it_snake, use ! for destructive, and ? for boolean return
<baweaver> If only for documentation standards like YARDoc after the fact.
<cinderhaze> nofxx: so by default bundle exec rspec will run everything under spec/*_spec.rb ?
<baweaver> yep
<nofxx> baweaver, yup, it was a joke ;)
<baweaver> Making sure, because the no comment folks give me a headache
Jonah11_ has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
<nofxx> baweaver, they will eventually figure it out, usually takes a year or two
<nofxx> when you come back to that code, you know? =D
<baweaver> In the mean time I avoid hiring them at all costs XD
harai_ has joined #ruby
jlkjlkj has quit []
saneax is now known as saneax-_-|AFK
<nofxx> cinderhaze, yup, convention
<nofxx> rspec also accepts a folder, recursevely, or a file
<nofxx> or just a line in a spec file hehe
jenrzzz has joined #ruby
<cinderhaze> nofxx: I'm a little familar with it, because the puppet tests are written using rspec-puppet. But I'm usually really railroaded into the way they are specifically set up... and I don't fully understand all of the things going on in Rakefile / spec_helper / etc...
tdy has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
<nofxx> cinderhaze, rake just calls something... spec_helper just think is the file every spec needs
<nofxx> all the requires, clean ups.. it's pretty literal really, just read don't be afraid ;)
Sammichmaker has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
Devalo has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
edgr_ has quit [Quit: ZNC - http://znc.in]
jgnagy has joined #ruby
edgr has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
mim1k|work has quit [Ping timeout: 246 seconds]
antoniobeyah has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
axyjo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k|work has joined #ruby
gix has quit [Ping timeout: 250 seconds]
quakephil has quit [Read error: Connection reset by peer]
gix has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
tomchapin has quit [Read error: Connection reset by peer]
pawnbox has quit [Read error: No route to host]
tau has quit [Remote host closed the connection]
Sammichmaker has joined #ruby
tomchapin has joined #ruby
duper` is now known as duper
pawnbox has joined #ruby
chouhoulis has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 268 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
blackwind_123 has joined #ruby
pawnbox_ has joined #ruby
ziarkaen has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
railssmith has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
Coldblackice has quit []
beanHolez has quit [Remote host closed the connection]
beanHolez has joined #ruby
djbkd has joined #ruby
balazs has quit [Ping timeout: 250 seconds]
beanHolez has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ruby
cinderhaze has left #ruby ["WeeChat 0.3.8"]
montanonic has joined #ruby
beanHolez has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
chopin has joined #ruby
balazs has joined #ruby
Immune has joined #ruby
igniting has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
tdy1 has joined #ruby
nankyokusei has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
ICantCook has joined #ruby
Janky has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
harai_ has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
enterprisey has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
mitt3ns has joined #ruby
hahuang61 has joined #ruby
adavia has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 258 seconds]
ICantCook has quit [Quit: bye]
agent_white has quit [Ping timeout: 258 seconds]
william3 has joined #ruby
enterprisey has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
Channel6 has quit [Quit: Leaving]
zzxc has left #ruby [#ruby]
ResidentBiscuit has joined #ruby
Guest43 has joined #ruby
pawnbox has joined #ruby
Guest43 has quit [Client Quit]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
bturker has joined #ruby
bovis has quit [Quit: leaving]
nelsonsar has quit [Ping timeout: 268 seconds]
eggshke has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
tomchapin has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
amclain has quit [Quit: Leaving]
nofxxx has joined #ruby
lucas has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
freedrull has joined #ruby
postmodern has quit [Quit: Leaving]
<freedrull> is there a difference between using next vs. return inside of a block? there seems to be something, but i'm having trouble finding documentation about it
<nofxxx> freedrull, a lot, next will go to next, return will break/return/close the block
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
antoniobeyah has quit [Ping timeout: 256 seconds]
<freedrull> nofxxx: "next will go to next" what if the block is not an enumeration, say a rails transaction "User.transaction do" ? is there still a difference?
<nofxxx> freedrull, let me know ;)
Dimik has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
last_staff has joined #ruby
Janky[PHI] has joined #ruby
Janky has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 248 seconds]
harai_ has joined #ruby
Jonah11_ has joined #ruby
dcluna has quit [Quit: ZNC 1.7.x-git-705-2e6c8d9 - http://znc.in]
antoniobeyah has joined #ruby
ziarkaen has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
<antoniobeyah> freedrull: use whats most appropriate for your context. next is generally used for loops to bypass an iteration, return is for everything else
ziarkaen has quit [Ping timeout: 244 seconds]
<antoniobeyah> i.e. avoid being clever
jenrzzz has joined #ruby
xberg has joined #ruby
banisterfiend has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
lenwood has joined #ruby
<freedrull> antoniobeyah: sounds good to me, thanks
Macaveli has joined #ruby
Ishido has joined #ruby
conta has joined #ruby
bocaneri has joined #ruby
Macaveli has quit [Client Quit]
conta has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
symm- has quit [Ping timeout: 246 seconds]
troulouliou_div2 has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
terens has joined #ruby
Macaveli has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
<nofxxx> hopefully it fails, silent running as 'return' sounds strange... heh antoniobeyah I knew as least surprise
<nofxxx> that often surprises
auzty has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
_2easy has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Client Quit]
codfection has joined #ruby
nankyokusei has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
Janky[PHI] has joined #ruby
harfangk has joined #ruby
brent__ has joined #ruby
nadir has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
Fichtenstein has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
jgnagy has quit [Ping timeout: 256 seconds]
conta has joined #ruby
andikr has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
www-bukolay-net has joined #ruby
jphase has quit [Remote host closed the connection]
flughafen has quit [Ping timeout: 258 seconds]
mlehrer has quit [Ping timeout: 260 seconds]
<KrzaQ> is there map_with_object that's equivalent to each_with_object?
<al2o3-cr> KrzaQ: map.with_object
<KrzaQ> well, that was quick
<KrzaQ> Thanks!
<al2o3-cr> np
hahuang61 has quit [Ping timeout: 260 seconds]
tomchapin has quit [Read error: Connection reset by peer]
<KrzaQ> hm, I guess it's not exactly what I wanted, but I'll have to work with it
<al2o3-cr> KrzaQ: how so?
riotjone1 has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
beanHolez has quit []
lenwood has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
<KrzaQ> Eh, I'm trying to do todays advent of code puzzle. I thought I'd do something like map_with_object(initial_position){ change_pos } and get an array of absolute positions. I'm not sure how this would be supposed to work though :)
<KrzaQ> map.with_object examples on the net are more than enough though :)
mlehrer has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<al2o3-cr> KrzaQ: everyone one is on the advent of code :)
<KrzaQ> well, it's a great idea
<al2o3-cr> KrzaQ: i wanna get on board, you got a link?
<KrzaQ> al2o3-cr: http://adventofcode.com/
<al2o3-cr> thanks :)
<KrzaQ> if it's anything like last year, the difficulty level will be higher with each day
tomchapin has joined #ruby
<KrzaQ> right now the tasks are trivial and great golf/esotheric languages material
* KrzaQ solved last years first one in Shakespeare
flughafen has joined #ruby
<al2o3-cr> oh, nice, this looks fun
montanonic has joined #ruby
tjbiddle has joined #ruby
bturker has joined #ruby
jphase has joined #ruby
jphase_ has joined #ruby
miqlas-H has joined #ruby
banisterfiend is now known as banister_
bturker has quit [Ping timeout: 256 seconds]
jphase has quit [Ping timeout: 246 seconds]
lenwood has quit [Ping timeout: 246 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
saneax-_-|AFK is now known as saneax
Derperperd has joined #ruby
conta1 has joined #ruby
fenre has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Ebok has joined #ruby
lenwood has joined #ruby
conta1 has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
william3 has joined #ruby
<al2o3-cr> KrzaQ: is todays bathroom security?
<KrzaQ> yeah
<al2o3-cr> cool
tomchapin has joined #ruby
bruce_lee has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
dikaio has joined #ruby
tomphp has joined #ruby
blaxter has joined #ruby
dionysus70 has joined #ruby
muelleme has joined #ruby
Rodya_ has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
haxrbyte has joined #ruby
fenre_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
fenre has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
last_staff has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
Janky[PHI] has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
william3 has quit [Remote host closed the connection]
lenwood has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
TomyWork has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
Bish_ has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
Bish has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
biberu has joined #ruby
Bish has joined #ruby
www-bukolay-net has quit [Ping timeout: 240 seconds]
SesMan has joined #ruby
haxrbyte_ has joined #ruby
jshjsh has joined #ruby
mitt3ns has quit [Quit: mitt3ns]
Ebok has quit [Quit: This computer has gone to sleep]
jphase_ has quit [Remote host closed the connection]
hahuang61 has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
Bish_ has quit [Ping timeout: 260 seconds]
Derperperd has quit [Quit: Derperperd]
astrobunny has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
ziarkaen has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
bodgix has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
kareelee has joined #ruby
nowhereman has joined #ruby
salut has joined #ruby
haxrbyte_ has quit [Quit: Leaving...]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domgetter has quit [Ping timeout: 260 seconds]
tomchapin has quit [Read error: Connection reset by peer]
hits1911 has joined #ruby
pawnbox has quit [Remote host closed the connection]
jphase has joined #ruby
<zenspider> KrzaQ: you might want to look at inject/reduce
firstdayonthejob has joined #ruby
<KrzaQ> same difference I guess
<KrzaQ> or well, a line less
<KrzaQ> it's annoying that map.with_object passes arguments in reverse order to that of inject
jphase has quit [Ping timeout: 258 seconds]
SCHAAP137 has joined #ruby
bodgix has quit [Quit: Leaving.]
hightower2 has quit [Ping timeout: 244 seconds]
blaxter has quit [Quit: foo]
tomchapin has joined #ruby
hightower2 has joined #ruby
pawnbox has joined #ruby
blaxter has joined #ruby
JiYu has left #ruby ["Leaving"]
hits1911 has left #ruby ["rcirc on GNU Emacs 24.3.1"]
mikecmpbll has quit [Quit: inabit. zz.]
Humdai has joined #ruby
<zenspider> it makes sense that they're in different order
<zenspider> >> [1, 2, 3].map
<ruby[bot]> zenspider: # => #<Enumerator: [1, 2, 3]:map> (https://eval.in/689622)
vondruch has joined #ruby
<zenspider> >> [1, 2, 3].map.with_object 'thingy
<ruby[bot]> zenspider: # => /tmp/execpad-c2d3088e3b51/source-c2d3088e3b51:2: unterminated string meets end of file ...check link for more (https://eval.in/689623)
<zenspider> grr... too many languages
<zenspider> >> [1, 2, 3].map.with_object :thingy
<ruby[bot]> zenspider: # => #<Enumerator: #<Enumerator: [1, 2, 3]:map>:with_object(:thingy)> (https://eval.in/689624)
ropeney has joined #ruby
www-bukolay-net has joined #ruby
TvL2386 has joined #ruby
kareelee has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
kareelee has joined #ruby
<zenspider> I don't think I can get my solution any cleaner in racket...22 lines still seems a bit steep
jphase has joined #ruby
djbkd has quit [Quit: My people need me...]
konsolebox has joined #ruby
mikecmpbll has joined #ruby
<mikecmpbll> !spam www-bukolay-net #ruby
kareelee has quit [Ping timeout: 260 seconds]
<mikecmpbll> derp
<zenspider> didn't seem spammy to me?
AlphaAtom has joined #ruby
<mikecmpbll> pm'd me a link
* zenspider shrugs
<zenspider> ah. fuck em then
<KrzaQ> eh
<KrzaQ> I have 74 lines of ruby
miqlas-H has quit [Ping timeout: 265 seconds]
jphase has quit [Ping timeout: 260 seconds]
<mikecmpbll> you win.
chris2 has quit [Ping timeout: 240 seconds]
miqlas-H has joined #ruby
Fichtenstein has quit [Quit: Fichtenstein]
<zenspider> should I do a ruby version to see how it compares?
pandaant has joined #ruby
Janky has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
djbkd has joined #ruby
luckyruby has joined #ruby
jgnagy has joined #ruby
dklima_ has joined #ruby
miqlas-H has quit [Ping timeout: 246 seconds]
jaruga___ has joined #ruby
miqlas-H has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
andrzejku has joined #ruby
AlexRussia has joined #ruby
pawnbox has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
jaruga___ has quit [Ping timeout: 250 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
<mikecmpbll> !ops
<ruby[bot]> mikecmpbll: ops currently in #ruby: adaedra, aredridel, havenwood, Radar, apeiros, banister_, baweaver, helpa, jhass, ljarvis, matthewd, miah, ruby[bot], zenspider and zzak
hightower2 has joined #ruby
<mikecmpbll> !ops all
miqlas-H has quit [Ping timeout: 240 seconds]
ziarkaen has joined #ruby
jphase has joined #ruby
william3 has joined #ruby
jphase has quit [Ping timeout: 245 seconds]
grh has joined #ruby
nofxxx has quit [Ping timeout: 268 seconds]
hightower2 has quit [Ping timeout: 256 seconds]
hightower3 has joined #ruby
william3 has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
tau has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
fenre_ has quit [Read error: Connection reset by peer]
claudiui_ has joined #ruby
fenre has joined #ruby
cyphase has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
bturker has joined #ruby
bodgix has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
Skarlso has quit [Ping timeout: 246 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
axyjo has joined #ruby
dagelf has quit [Remote host closed the connection]
Skarlso has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
sts has quit [Ping timeout: 246 seconds]
claudiuinberlin has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
colegatron_origi has quit [Ping timeout: 246 seconds]
wnd has quit [Ping timeout: 260 seconds]
zeroDivisible has quit [Ping timeout: 240 seconds]
sts has joined #ruby
wnd has joined #ruby
colegatron_origi has joined #ruby
sts is now known as Guest16615
axyjo has quit [Max SendQ exceeded]
dagelf has joined #ruby
william3 has joined #ruby
IceDragon has joined #ruby
<nyuszika7h> mikecmpbll: ...you are an op yourself, why are you calling for ops?
IceDragon is now known as Guest20907
<mikecmpbll> nyuszika7h : was my name listed? :)
<nyuszika7h> well, only by cloak, but safe to say ruby/staff is more of an op in #ruby than freenode/staff
zeroDivisible has joined #ruby
<nyuszika7h> 10:39:28 -- ChanServ (ChanServ@services.): 22 *!*@ruby/staff/* +Aiotv [modified 31w 3d 9h ago]
<zenspider> mikecmpbll: sorry. I was away... still going on?
bturker has quit [Ping timeout: 256 seconds]
<zenspider> !spam www-bukolay-net
www-bukolay-net was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikecmpbll> zenspider : naw it's good, was just wondering y no powa
ruby[bot] has left #ruby ["leaving"]
ruby[bot] has joined #ruby
jphase has joined #ruby
flying has joined #ruby
jphase has quit [Ping timeout: 245 seconds]
Beams has joined #ruby
marr has joined #ruby
xberg has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 260 seconds]
xberg has joined #ruby
william3 has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
william3 has joined #ruby
xberg has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
jaruga___ has joined #ruby
william3 has quit [Ping timeout: 256 seconds]
muelleme has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
flughafen has left #ruby ["WeeChat 1.3"]
jaruga___ has quit [Ping timeout: 248 seconds]
senayar has joined #ruby
claudiui_ has quit [Remote host closed the connection]
omphe has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
claudiuinberlin has joined #ruby
william3 has quit [Remote host closed the connection]
jphase has joined #ruby
dikaio has quit [Ping timeout: 268 seconds]
Janky[PHI] has joined #ruby
Janky has quit [Read error: Connection reset by peer]
dikaio has joined #ruby
william3 has joined #ruby
claudiuinberlin has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
Guest70452 is now known as ndrst
jphase has quit [Ping timeout: 260 seconds]
william3 has quit [Remote host closed the connection]
fenre_ has joined #ruby
claudiuinberlin has joined #ruby
dikaio has quit [Ping timeout: 260 seconds]
dikaio has joined #ruby
fenre has quit [Ping timeout: 258 seconds]
ResidentBiscuit has joined #ruby
salut_ has joined #ruby
djbkd has quit [Remote host closed the connection]
william3 has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
salut has quit [Ping timeout: 256 seconds]
salut_ is now known as salut
iamayam has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
dn` has quit [Ping timeout: 258 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
dn` has joined #ruby
iamayam has joined #ruby
kareelee has joined #ruby
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
Snowy has joined #ruby
workmad3 has joined #ruby
hahuang61 has joined #ruby
matp_ has joined #ruby
dikaio has quit [Quit: leaving]
matp has quit [Ping timeout: 250 seconds]
terens has quit [Ping timeout: 256 seconds]
jphase has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
bturker has joined #ruby
raul782 has joined #ruby
ButtMuffler has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 265 seconds]
JoshS has joined #ruby
raul782 has quit [Ping timeout: 250 seconds]
terens has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
tomchapin has quit [Ping timeout: 250 seconds]
ButtMuffler is now known as ScrubLord
ScrubLord is now known as SkrubLord
Snowy has quit [Ping timeout: 246 seconds]
lee-jon has joined #ruby
Guest16615 is now known as sts
frozengeek____ has joined #ruby
xberg has joined #ruby
jphase has joined #ruby
tomchapin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
bodgix has quit [Quit: Leaving.]
claudiuinberlin has joined #ruby
ferr1 has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
bodgix has joined #ruby
dklima_ is now known as sparch_
sparch_ has quit [Changing host]
sparch_ has joined #ruby
claudiui_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
johnmccabe has joined #ruby
Hyuk has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
chris2_ has joined #ruby
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chris2_ is now known as chris2
lee-jon has quit [Quit: lee-jon]
Janky[PHI] has quit [Read error: Connection reset by peer]
Janky[PHI] has joined #ruby
nankyokusei has joined #ruby
_2easy has quit [Ping timeout: 244 seconds]
bweston92 has joined #ruby
jschoolcraft has joined #ruby
tvw has joined #ruby
jphase has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
platzhirsch has joined #ruby
ResidentBiscuit has joined #ruby
djbkd has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
koooge has quit [Quit: Leaving...]
fenre has joined #ruby
Snowy has joined #ruby
fenre_ has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Ping timeout: 248 seconds]
psychicist__ has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
yardenbar has joined #ruby
hahuang61 has joined #ruby
frmendes has joined #ruby
salut has quit [Quit: salut]
hahuang61 has quit [Ping timeout: 258 seconds]
jshjsh has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
tomchapin has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
jphase has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
jphase has quit [Ping timeout: 258 seconds]
djbkd has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 260 seconds]
tomchapin has joined #ruby
iMadper` has joined #ruby
llabrat has joined #ruby
iMadper has quit [Ping timeout: 250 seconds]
salut has joined #ruby
riotjone1 has quit [Quit: leaving]
lee-jon has joined #ruby
auzty has quit [Remote host closed the connection]
salut has quit [Client Quit]
iMadper` is now known as iMadper
iMadper has quit [Changing host]
iMadper has joined #ruby
c355e3b has joined #ruby
jphase has joined #ruby
lee-jon has quit [Quit: lee-jon]
maattdd has quit [Ping timeout: 268 seconds]
evie_hammond has quit [Quit: WeeChat 1.6]
bruce_lee has quit [Read error: Connection reset by peer]
jphase has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
<wnd> Yet another case "I've often been wondering". In Perl I'd do my ($foo) = $input =~ /\((\d+)\)/ to capture a number in the first set of parentheses (e.g. from "foo (123) bar". This happily survives a case when there is no match. What would be the idiomatic Ruby equivalent? I'd start with String#match, but I can't think of a convenient = one-line way. Using String#scan also feels awkward.
jaguarmagenta has quit [Remote host closed the connection]
<tobiasvl> wnd: can't you just do the exact same thing?
iMadper` has joined #ruby
<tobiasvl> I'm no perl fiend but
byte512 has joined #ruby
<tobiasvl> >> "foo (aa) bar" =~ /\((\d+)\)/
<ruby[bot]> tobiasvl: # => nil (https://eval.in/689735)
<tobiasvl> >> "foo (123) bar" =~ /\((\d+)\)/
<ruby[bot]> tobiasvl: # => 4 (https://eval.in/689736)
iMadper has quit [Ping timeout: 260 seconds]
<zenspider> >> "blah (moo) blah"[/\((\d+)\)/, 1]
<ruby[bot]> zenspider: # => nil (https://eval.in/689737)
<zenspider> >> "blah (42) blah"[/\((\d+)\)/, 1]
<ruby[bot]> zenspider: # => "42" (https://eval.in/689738)
<wnd> I'd still have to read the result from $1, as return value seems to be the index of the match. It could be my undoing that I also try to avoid such Perlisms in Ruby.
<tobiasvl> oh yeah, I understand what you mean now. yeah, what zenspider said then probably
<zenspider> >> Integer("blah (42) blah"[/\((\d+)\)/, 1]) rescue nil
<ytti> are not later verifying if $foo has value or not?
<ruby[bot]> zenspider: # => 42 (https://eval.in/689739)
<zenspider> >> Integer("blah (moo) blah"[/\((\d+)\)/, 1]) rescue nil
<ruby[bot]> zenspider: # => nil (https://eval.in/689740)
ziarkaen has quit [Ping timeout: 256 seconds]
<wnd> thanks, both of you. I'm not sure if I like [regexp, 1] but it's definitely better than the alternatives I've considered so far.
<ytti> "foo (13) bar".match(/\((\d+)\)/)[1] rescue nil
Janky[PHI] has quit [Read error: Connection reset by peer]
<ytti> is more idiomatic
<ytti> but still fugly to use rescue like this
Janky[PHI] has joined #ruby
<ytti> are you really sure you want the valuae to be nil or value?
<wnd> I had the idea that "foo rescue bar" was considered evil
<ytti> your requirement is evil
<ytti> you don't know what happened
<ytti> why would you want that
<ytti> why not
<ytti> match = "foo (13) bar".match /\((\d+)\)/
ziarkaen has joined #ruby
<ytti> if match
<ytti> value = match[1].to_i
<ytti> or
<ytti> raise SomeError, "blaa blaa" unless match
<ytti> etc
<ytti> but to have your evil result, you need evil rescue
<ytti> but i can't immeidately undersatnd the use case
<ytti> where you don't care if you succeeded or not
<ytti> i imagine later in your perl code
<ytti> you do some conditionals (in the wrong place)
mikecmpbll has quit [Ping timeout: 245 seconds]
<zenspider> ytti: relax and stop hitting return every third word
<zenspider> wnd: it isn't evil. ignore the ranting
<zenspider> >> ["0".to_i, nil.to_i]
<ruby[bot]> zenspider: # => [0, 0] (https://eval.in/689750)
<ytti> i'd say there is rough concensus that using exceptions for control flow is an antipattern
<zenspider> ytti: go run your version through a benchmark and see how it fares
nadir has joined #ruby
<ytti> and that is measure of code quality?
<ytti> how fast it executes?
<zenspider> you're doing it again. chill out
jphase has joined #ruby
<zenspider> Integer(str) -> int or raise... if you want to map to int or nil this is an easy way
<zenspider> and all your "evil" bullshit is just that... bullshit.
<ytti> wnd raised it himself, it is generally regarded an antipattern
mikecmpbll has joined #ruby
<ytti> i just confirmed his suspicion
<zenspider> no, he didn't
<jokke> hello
<jokke> has anyone here worked with yaks? https://github.com/plexus/yaks
<ytti> 14:08 < wnd> I had the idea that "foo rescue bar" was considered evil
<jokke> is it still maintained?
<jokke> last commit was may 2nd
<zenspider> jokke: so? maybe it is _perfect_ as-is
rodfersou is now known as rodfersou|lunch
<jokke> :)
<zenspider> but no, I have no idea. I've never used it
jphase has quit [Ping timeout: 258 seconds]
salut has joined #ruby
JoshS has joined #ruby
<zenspider> I think this is worse, personally:
<zenspider> >> (x="blah (42) blah"[/\((\d+)\)/, 1]) && x.to_i
<ruby[bot]> zenspider: # => 42 (https://eval.in/689773)
<zenspider> >> (x="blah (moo) blah"[/\((\d+)\)/, 1]) && x.to_i
<ruby[bot]> zenspider: # => nil (https://eval.in/689774)
<zenspider> bed for me
jshjsh has quit [Ping timeout: 268 seconds]
_2easy has joined #ruby
<wnd> again, thanks. I've clearly overlooked String#[] because of years and years of Perl influence.
<zenspider> n/p
ResidentBiscuit has joined #ruby
<zenspider> more perly
<zenspider> >> x = "blah (moo) blah"[/\((\d+)\)/, 1] && $1.to_i
<ruby[bot]> zenspider: # => nil (https://eval.in/689779)
<zenspider> >> x = "blah (42) blah"[/\((\d+)\)/, 1] && $1.to_i
<ruby[bot]> zenspider: # => 42 (https://eval.in/689781)
salut has quit [Quit: salut]
<zenspider> perlly? perlish?
* zenspider goes to bed
charliesome has joined #ruby
govg has quit [Ping timeout: 268 seconds]
dcluna has joined #ruby
william3 has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
salut has joined #ruby
<dminuoso> zenspider: if only you had used $i
ResidentBiscuit has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
nankyokusei has joined #ruby
ace_33 has joined #ruby
lele has joined #ruby
<herwin> $1 is close enough
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase has joined #ruby
jcmj has joined #ruby
raul782 has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
pawnbox has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
jaruga___ has joined #ruby
_2easy has quit [Ping timeout: 250 seconds]
raul782 has joined #ruby
lenwood has joined #ruby
william3 has quit [Ping timeout: 268 seconds]
csk has joined #ruby
psychicist__ has quit [Ping timeout: 250 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
maattdd has joined #ruby
ferr1 has joined #ruby
tobiasvl has quit [Quit: Upgrade to Fedora 25]
synthroid has joined #ruby
nemermel has joined #ruby
claudiui_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
nemermel has left #ruby [#ruby]
nemermel has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
nelsonsar has joined #ruby
claudiuinberlin has joined #ruby
jphase has joined #ruby
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
nikivi has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
johnmilton has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Remote host closed the connection]
arount has joined #ruby
eggshke has quit []
fmcgeough has joined #ruby
Rodya_ has joined #ruby
Janky has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
arount has quit [Quit: leaving]
thoolihan has quit [Ping timeout: 244 seconds]
Narzew has joined #ruby
blackbombay has joined #ruby
mib_testing3 has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
Couch has joined #ruby
eggshke has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
thoolihan has joined #ruby
Narzew has quit [Quit: Leaving]
ziarkaen has quit [Ping timeout: 244 seconds]
william3 has joined #ruby
mib_testing3 has quit [Quit: Page closed]
millerti has joined #ruby
ace_33 has quit [Ping timeout: 244 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
jphase has joined #ruby
donkey_h0tei has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 248 seconds]
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arount has joined #ruby
arount has left #ruby [#ruby]
jphase has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
rippa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
Jonah11_ has joined #ruby
marr has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 244 seconds]
llabrat has quit [Remote host closed the connection]
tvw has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
nettoweb1 has joined #ruby
claudiuinberlin has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikivi has quit [Quit: zzz]
augcesar has joined #ruby
armyriad has joined #ruby
saneax is now known as saneax-_-|AFK
nettoweb has quit [Ping timeout: 240 seconds]
tyang_ has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
nelsonsar has quit [Remote host closed the connection]
GodFather has joined #ruby
nelsonsar has joined #ruby
tyang__ has joined #ruby
raul782 has quit [Read error: Connection reset by peer]
ziarkaen has joined #ruby
nelsonsa_ has joined #ruby
raul782 has joined #ruby
nikivi has joined #ruby
GodFather has quit [Remote host closed the connection]
jphase has joined #ruby
SteenJobs has joined #ruby
nikivi has quit [Client Quit]
tyang_ has quit [Ping timeout: 260 seconds]
nelsonsar has quit [Ping timeout: 245 seconds]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Salih has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
GodFather has joined #ruby
nelsonsa_ has quit [Remote host closed the connection]
ramortegui has joined #ruby
nelsonsar has joined #ruby
eggshke has quit []
nelsonsar has quit [Ping timeout: 260 seconds]
terens has quit [Ping timeout: 265 seconds]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
SteenJobs has quit [Quit: SteenJobs]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jaguarmagenta has joined #ruby
omphe has joined #ruby
<Zarthus> Heya folks, does anyone have an easy solution to the common Windows problem of rubygems not being able to connect over SSL?
disconnekted has joined #ruby
<Zarthus> It's a pain every ruby install I do, and every time I have to do it it involves some obnoxious setup with no clear "just do this and it works" answer beyond "turn ssl verify off"
<Zarthus> my previous setup required me to enhance some OPENSSL_*_DIR environment variable to force ruby to look there.
<Zarthus> I tried setting it up via docker, but my IDE falls short when it comes to autocompletion then.
Jonah11_ has joined #ruby
rwb has quit [Ping timeout: 250 seconds]
jphase has joined #ruby
shinnya has joined #ruby
psycho_one has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has joined #ruby
Jonah11_ has quit [Ping timeout: 245 seconds]
jphase has quit [Ping timeout: 240 seconds]
nelsonsar has joined #ruby
Janky[PHI] has joined #ruby
Janky has quit [Read error: Connection reset by peer]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
raul782 has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
ruby-lang363 has joined #ruby
nikivi has joined #ruby
blackbombay has joined #ruby
nikivi has quit [Client Quit]
jaruga___ has quit [Quit: jaruga___]
blackbombay has quit [Ping timeout: 244 seconds]
andikr has quit [Ping timeout: 265 seconds]
raul782 has joined #ruby
andikr has joined #ruby
cdg has joined #ruby
csk has quit [Quit: ZZZzzz…]
nemermel has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
yardenbar has joined #ruby
blackbombay has joined #ruby
nettoweb has joined #ruby
domgetter has joined #ruby
jphase has joined #ruby
pragmaticus has joined #ruby
adavia has joined #ruby
troulouliou_div2 has joined #ruby
ResidentBiscuit has joined #ruby
jphase has quit [Ping timeout: 245 seconds]
yardenbar has quit [Ping timeout: 268 seconds]
fenre has quit [Read error: Connection reset by peer]
fenre_ has joined #ruby
SteenJobs has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
ropeney has quit [Ping timeout: 240 seconds]
igniting has quit [Remote host closed the connection]
jphase has joined #ruby
jhack has quit [Quit: jhack]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
SteenJobs has quit [Client Quit]
millerti has joined #ruby
william3 has quit [Remote host closed the connection]
aegis3121 has joined #ruby
william3 has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikivi has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
lenwood has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Quit: Leaving]
tomchapin has quit [Read error: Connection reset by peer]
Ishido has quit [Remote host closed the connection]
jphase_ has joined #ruby
jphase_ has quit [Changing host]
jphase_ has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
kobain has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
warrshrike has joined #ruby
Ishido has joined #ruby
<warrshrike> Does one need to be cognizant of cache friendly code while writing ruby
william3 has quit [Remote host closed the connection]
DLSteve has quit [Client Quit]
raul782 has quit [Read error: Connection reset by peer]
tomchapin has joined #ruby
DLSteve has joined #ruby
saslam has joined #ruby
nikivi has quit [Quit: zzz]
Rodya_ has quit [Remote host closed the connection]
nikivi has joined #ruby
Rodya_ has joined #ruby
raul782 has joined #ruby
fmcgeough has joined #ruby
<blackbombay> not usually
Salih has quit [Quit: Leaving]
fenre_ has quit [Remote host closed the connection]
cdg_ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
saslam has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 260 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
jaruga___ has joined #ruby
x77686d has joined #ruby
nettoweb has joined #ruby
SteenJobs has joined #ruby
Devalo has joined #ruby
csk has joined #ruby
tomchapin has quit [Read error: Connection reset by peer]
SteenJobs has quit [Client Quit]
ResidentBiscuit has joined #ruby
last_staff has quit [Quit: last_staff]
Devalo has quit [Ping timeout: 268 seconds]
iMadper`` has joined #ruby
psychicist__ has joined #ruby
iMadper` has quit [Ping timeout: 250 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 240 seconds]
rodfersou|lunch is now known as rodfersou
last_staff has joined #ruby
tyang__ has quit [Quit: Leaving]
blaxter has quit [Quit: foo]
konsolebox has quit [Read error: Connection timed out]
TomyWork has joined #ruby
frmendes has joined #ruby
tomchapin has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
Janky[PHI] has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
william3 has joined #ruby
ferr1 has quit [Quit: WeeChat 1.5]
raul782 has quit [Read error: Connection reset by peer]
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
SteenJobs has joined #ruby
jhack has joined #ruby
tyang has joined #ruby
rwb has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
kareelee has quit [Remote host closed the connection]
kareelee has joined #ruby
psychicist__ has joined #ruby
raul782 has joined #ruby
Rodya_ has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
polishdub has joined #ruby
patarr has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
tomchapin has quit [Read error: Connection reset by peer]
kareelee has quit [Ping timeout: 245 seconds]
cassianoleal has joined #ruby
deadnull has joined #ruby
TomyWork has joined #ruby
railssmith has quit [Ping timeout: 244 seconds]
william3 has quit [Remote host closed the connection]
ascarter has joined #ruby
william3 has joined #ruby
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flying has quit []
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
pandaant has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
frmendes has joined #ruby
cibs has quit [Read error: Connection reset by peer]
cibs has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
jhack has quit [Quit: jhack]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
jgt has joined #ruby
xberg has quit [Ping timeout: 268 seconds]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
djbkd has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
hahuang61 has joined #ruby
jhack has joined #ruby
william3 has quit [Ping timeout: 256 seconds]
fenre has joined #ruby
pachinsv has joined #ruby
william3 has joined #ruby
marr has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
iceden|2 has joined #ruby
x77686d has quit [Quit: x77686d]
hahuang61 has quit [Ping timeout: 250 seconds]
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
x77686d has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
OTORelic has joined #ruby
jcao219 has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
rfoust has joined #ruby
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
tvw has quit [Remote host closed the connection]
conta has quit [Quit: conta]
raul782 has quit [Read error: Connection reset by peer]
raul782_ has joined #ruby
TomyWork has joined #ruby
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
x77686d has quit [Quit: x77686d]
jhack has quit [Quit: jhack]
TvL2386 has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 248 seconds]
x77686d has joined #ruby
conta has joined #ruby
Jonah11_ has joined #ruby
jhack has joined #ruby
flying has joined #ruby
x77686d has quit [Client Quit]
Couch has quit [Remote host closed the connection]
cibs has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
lee-jon has joined #ruby
conta has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
aganov has quit [Quit: Leaving]
TomyWork has quit [Remote host closed the connection]
jbeeze_ has joined #ruby
Snowy has quit [Ping timeout: 246 seconds]
aegis3121 has quit [Ping timeout: 258 seconds]
TomyWork has joined #ruby
synthroid has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 268 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
yardenbar has joined #ruby
<warrshrike> Does one need to be cognizant of cache friendly code while writing ruby
<warrshrike> blackbombay: why not?
jshjsh has joined #ruby
<warrshrike> I'd think order of doing things in a matrix multiplication would matter
Jonah11_ has quit []
jgt has quit [Quit: WeeChat 1.4]
TomyWork has quit [Remote host closed the connection]
nfsnobody- has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
centrx has joined #ruby
A_Drone has joined #ruby
voxxit has quit [*.net *.split]
aredridel has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
Aria has joined #ruby
Janky has joined #ruby
TomyWork has joined #ruby
tercenya has quit [Remote host closed the connection]
raul782_ has quit [Read error: Connection reset by peer]
TomyWork has quit [Remote host closed the connection]
tercenya has joined #ruby
raul782 has joined #ruby
TomyWork has joined #ruby
Janky[PHI] has quit [Ping timeout: 260 seconds]
A_Drone has quit [Client Quit]
pachinsv has left #ruby [#ruby]
TomyWork has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|afk
chouhoulis has joined #ruby
TomyWork has joined #ruby
hightower2 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
UserJosh has joined #ruby
william3 has quit [Remote host closed the connection]
jshjsh has quit [Ping timeout: 258 seconds]
deadnull is now known as _deadnull
ascarter has joined #ruby
SteenJobs has joined #ruby
_deadnull has quit [Quit: AFK]
SteenJobs has quit [Client Quit]
crdprink has joined #ruby
SteenJobs has joined #ruby
pawnbox has quit [Remote host closed the connection]
SteenJobs has quit [Client Quit]
Devalo has joined #ruby
_2easy has joined #ruby
ruby-lang363 has quit [Ping timeout: 260 seconds]
_crdpink has quit [Ping timeout: 240 seconds]
frmendes has quit [Quit: Textual IRC Client: www.textualapp.com]
SteenJobs has joined #ruby
TomyWork has quit [Remote host closed the connection]
cibs has joined #ruby
TomyWork has joined #ruby
kareelee has joined #ruby
conta has joined #ruby
<blackbombay> because it's not a typical concern when writing ruby code, but yeah depends what you're doing on whether or not it's important to you.
kareelee_ has joined #ruby
<blackbombay> if you care about that wouldn't you use a lower level language like C?
kareelee has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
saneax-_-|AFK is now known as saneax
senayar has quit []
jshjsh has joined #ruby
UserJosh has quit [Read error: Connection reset by peer]
cibs has quit [Read error: Connection reset by peer]
<warrshrike> Youre saying performance isnt a typical concern?
raul782 has quit [Read error: Connection reset by peer]
<apeiros> not on that level, warrshrike
<warrshrike> Yes that makes sense as ruby is mostly used as a 'glue' language and mostly with rails at that
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warrshrike> but wouldnt it still matter if your array traversal is 100x slower? I'm just having some trouble wrapping my mind around it
cibs has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ascarter has quit [Client Quit]
<apeiros> where would cache friendly code be 100x faster when iterating an array?
<baweaver> Effectively just use a hash
<warrshrike> if your stride length is 100? spatial locality would be much worse
skweek has joined #ruby
<baweaver> Then make a decorator method that intercepts *args to it and uses that as the key. Cache hit is key match, done
<centrx> Ruby keeps getting faster and faster
<baweaver> There are already a few gems that do this, but I'd need to find them
<blackbombay> performance is important but actaully you will find a lot of ruby code that doesn't even try to care about performance.
<warrshrike> and swapping the access order in a two dimensional array?
<apeiros> warrshrike: and how would you optimize your ruby code for that stride length?
raul782 has joined #ruby
<warrshrike> id argue using a hash in this case counts as writing cache friendly code...
ziarkaen has quit [Quit: Lost terminal]
<apeiros> o0
<warrshrike> apeiros: you change your array layout so things are together in memory
<apeiros> warrshrike: again, how do you do that in ruby?
vuoto has joined #ruby
<warrshrike> I understand that this is sort of breaking the principle of abstraction paramount in higher level languages
vuoto has quit [Remote host closed the connection]
saslam has joined #ruby
vuoto has joined #ruby
<apeiros> it's not "sort of breaking". you can't do it.
csk has quit [Quit: ZZZzzz…]
<warrshrike> well the array you're getting items from were stored in there earlier somehow. so store them in a way that access order is more sequential?
<apeiros> ruby does not provide you any way to access memory, or arrange memory.
<warrshrike> I know that
<warrshrike> but you can place items anywhere in buffers
<warrshrike> arrays*
<apeiros> it might be because I've got a headache atm, but what you say seems to be a thought-mess.
<warrshrike> lol
<warrshrike> so you're saying that it is impossible to write cache friendly code in ruby?
<centrx> warrshrike: The underlying implementation handles those details
vuoto has quit [Remote host closed the connection]
<centrx> warrshrike: They're not accessible to the programmer writing in straight Ruby
voxxit has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
<apeiros> warrshrike: which caches are you talking about?
orion has joined #ruby
vuoto has joined #ruby
<apeiros> I got the impression you're talking about L1-L3 cpu caches
<blackbombay> me2
vuoto has quit [Remote host closed the connection]
<warrshrike> cache is supposed to be programmer invisible anyways
<warrshrike> hmm
tvw has joined #ruby
<warrshrike> Okay so I was just trying to relate
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
<warrshrike> all the performance engineering stuff I studied in C
<warrshrike> to ruby
Devalo has quit [Remote host closed the connection]
<warrshrike> it appears to be largely fruitless
<apeiros> yeah, all the stuff about memory alignment, cpu caches etc is useless.
<apeiros> the part which matters are algorithmic complexity
Devalo has joined #ruby
<apeiros> and data complexity
<centrx> warrshrike: Also, Ruby is written in C, so it finds application there
<blackbombay> you can interface with ruby through C.
omphe has joined #ruby
ta_ has quit [Remote host closed the connection]
<warrshrike> apeiros: now thats just flatout incorrect :)
frozengeek____ has quit [Quit: frozengeek____]
<apeiros> oh, yes, and to a degree when writing native extensions. but then you're not writing ruby, so I wouldn't really count that.
<apeiros> warrshrike: how so?
raul782 has quit [Ping timeout: 248 seconds]
<warrshrike> constant factors matter too in addition to aymptotic complexity
frozengeek____ has joined #ruby
Jayson_Virissimo has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
* apeiros sobs
vasilakisfil has quit [Quit: Konversation terminated!]
psychicist__ has quit [Ping timeout: 250 seconds]
<warrshrike> You're saying a 100x-1000x performance difference doesnt matter!?!
frozengeek____ has joined #ruby
<apeiros> you're saying that's not part of understanding algorithmic complexity?
frozengeek____ has quit [Remote host closed the connection]
<warrshrike> your rails server would be on its knees with 100 users!
<apeiros> understanding things like big-O means you also understand what it hides.
psychicist__ has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
<warrshrike> lol yes. The same algorithm would run order of magnitude slower
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 256 seconds]
Guest89272 is now known as silverdust
pawnbox has joined #ruby
silverdust has quit [Changing host]
silverdust has joined #ruby
<warrshrike> all these variants have the same asymptotic complexity
frozengeek____ has joined #ruby
<warrshrike> Anyways yeah your point stands...
<warrshrike> so Ruby is really too well abstracted away fort his stuff
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 260 seconds]
rodfersou|afk is now known as rodfersou
deadnull has joined #ruby
grh has joined #ruby
amclain has joined #ruby
cassianoleal has quit [Quit: Off to the other side!]
ResidentBiscuit has joined #ruby
ascarter has joined #ruby
frozengeek____ has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
TomyWork has joined #ruby
tmtwd has joined #ruby
tomphp has quit [Client Quit]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 250 seconds]
nelsonsar has quit [Remote host closed the connection]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nelsonsar has joined #ruby
ResidentBiscuit has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit []
sepp2k has joined #ruby
Beams has quit [Quit: .]
<baweaver> My stick is bigger
omphe has joined #ruby
Derperperd has joined #ruby
<baweaver> ....or are we still posturing here?
* havenwood strikes a pose
TomyWork has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
rwb has quit [Ping timeout: 248 seconds]
nelsonsar has quit [Ping timeout: 240 seconds]
mim1k|work has quit [Quit: Lost terminal]
Janky has quit [Read error: Connection reset by peer]
SuperLag has quit [Quit: Changing server]
Janky[PHI] has joined #ruby
SuperLag has joined #ruby
antoniobeyah has joined #ruby
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
frozengeek____ has joined #ruby
kareelee_ is now known as kareelee
frozengeek____ has quit [Remote host closed the connection]
fenre has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
fenre has joined #ruby
fenre has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
fenre has joined #ruby
nikivi has quit [Quit: irc]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
fenre has quit [Remote host closed the connection]
uranellus has quit [Ping timeout: 245 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
frozengeek____ has joined #ruby
solocshaw has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
ResidentBiscuit has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
nelsonsar has joined #ruby
deadnull is now known as _deadnull
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
solocshaw has quit [Client Quit]
marxarelli has joined #ruby
_deadnull has quit [Quit: AFK]
frozengeek____ has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
nikivi has joined #ruby
frozengeek____ has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
frozengeek____ has joined #ruby
<apeiros> !fixcon frozengeek____
frozengeek____ was kicked from #ruby by ruby[bot] [repeated join/part detected]
uranellus has joined #ruby
uranellus has joined #ruby
solocshaw has joined #ruby
maattdd has quit [Quit: WeeChat 1.5]
nemermel has joined #ruby
nikivi has quit [Client Quit]
maattdd has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
rwb has joined #ruby
Jayson_Virissimo has quit []
solocshaw has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
madsa_ has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
hahuang61 has joined #ruby
x77686d has quit [Client Quit]
shintaro has joined #ruby
shintaro has quit [Client Quit]
gener1c has quit [Ping timeout: 252 seconds]
rfoust has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
csk has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 258 seconds]
fjj[m] has joined #ruby
arquebus has joined #ruby
istrasci has joined #ruby
tvw has quit []
fenre has joined #ruby
<orion> !fixcon apeiros
<blackbombay> lol
<istrasci> Can the items in a %w array be separated by newlines, or only spaces?
Devalo has joined #ruby
<blackbombay> newlines should work too.
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> istrasci: https://eval.in/689980
<blackbombay> just leave a space before you break to the newline.
<istrasci> So the blank lines between the items are necessary?
LoneHermit has quit [Remote host closed the connection]
<elomatreb> No, just an example. Any whitespace (spaces, newlines, tabs, etc) will work
iceden|2 is now known as iceden
<istrasci> OK, thank you.
mikeXsh has joined #ruby
bmurt has joined #ruby
TomyWork has joined #ruby
ruby286 has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
SCHAAP137 has joined #ruby
mikecmpbll has joined #ruby
uranellus has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 250 seconds]
deadnull has joined #ruby
ruby286 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Remote host closed the connection]
nankyokusei has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
UserJosh has joined #ruby
psychicist__ has quit [Ping timeout: 244 seconds]
Humdai has quit [Quit: Leaving]
jshjsh has quit [Ping timeout: 268 seconds]
TomyLobo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
flying has quit []
TomyWork has quit [Remote host closed the connection]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lee-jon has quit [Quit: lee-jon]
millerti has joined #ruby
nemermel has quit [Ping timeout: 246 seconds]
millerti has quit [Client Quit]
<baweaver> orion: Won't work for non-ops
_2easy has quit [Quit: Lost terminal]
rcvalle has joined #ruby
nankyoku_ has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
<apeiros> !ban orion seriously don't even try to abuse op-tools
orion was kicked from #ruby by ruby[bot] [seriously don't even try to abuse op-tools]
nankyokusei has quit [Ping timeout: 245 seconds]
redpants has joined #ruby
<elomatreb> RIP
bodgix has quit [Quit: Leaving.]
<elomatreb> orion
<elomatreb> Uh, hexchat? I'm reasonably sure I typed that into Ctrl+F, but w/e
pragmaticus has quit [Ping timeout: 244 seconds]
pragmaticus has joined #ruby
l33n has joined #ruby
<l33n> hey all, so I am a pretty novice programmer, I've done some school projects with Java, and I just made this cordova app in my spare time with a ruby server, javascript in the front end, and obviously html, css, and it's sort of wrapping up now, long preface there, but, any good ideas for an open source project for someone like me
<l33n> something challenging but not too crazy for a newbie like me
tercenya has quit [Remote host closed the connection]
<centrx> baweaver: what does it do?
tercenya has joined #ruby
nankyokusei has joined #ruby
arquebus has quit [Quit: Konversation disconnected]
<baweaver> magic
<Papierkorb> l33n: I give you the standard response to this kind of question: Build something you like. Solve an issue you have, something that's nagging you, or build something you always wondered how it worked
Janky has joined #ruby
Janky[PHI] has quit [Read error: Connection reset by peer]
Janky has quit [Client Quit]
SeepingN has joined #ruby
omphe has joined #ruby
nankyoku_ has quit [Ping timeout: 258 seconds]
<Papierkorb> l33n: Don't throw an idea away just because "it's too complex". That's fine, that just means, you'll learn more. Just make sure you enjoy doing it, as the road may be rocky at times.
<Zarthus> l33n: if you have an interest in IRC and IRC bots, I still have an open issue for Twitch, YouTube, imgur and image integration in my bot.
<Zarthus> specifically for titles
zotherstupidguy has joined #ruby
jphase has joined #ruby
<Zarthus> (and even if you don't care for that, I find using cinch and IRC bots in general a pretty decent way to fire off experience in a new language)
<l33n> Papierkorb, yeah, I just mean, not something so far out of reach as to ruin flow, but yeah
<zotherstupidguy> i am looking for a gem generator such as hoe or ore that supports minitest\spec ??
<Papierkorb> l33n: An example. I do some photography, and for a specific use-case I had, it bothered me that I didn't have a good picture archive I can use to store pics in I find on the internet to try out myself. Small project, wasn't hard, but something I still actually use. Look into your interests/hobbys for annoyances
psychicist__ has joined #ruby
<l33n> Zarthus I'm don't think I really know what an IRC bot is
<Zarthus> Do you know what IRC is?
<elomatreb> >> "hi I'm a bot"
<ruby[bot]> elomatreb: # => "hi I'm a bot" (https://eval.in/689984)
<l33n> ha yeah
<l33n> well i know its what were using
<Zarthus> an IRC bot is basically an user not controlled by humans.
<baweaver> hrm, testing time then.
<baweaver> !new_to_opensource
<baweaver> ?new_to_opensource
<baweaver> aha
<l33n> thanks baweaver
<blackbombay> a bot is primitive AI at its best
jphase_ has quit [Ping timeout: 248 seconds]
<l33n> interesting
luckyruby has quit [Quit: Leaving...]
pilne has joined #ruby
ascarter has quit [Remote host closed the connection]
ascarter has joined #ruby
nankyoku_ has joined #ruby
<l33n> Zarthus, what is your project, or is there some documentation I can look at?
Ebok has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
govg has joined #ruby
banister_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Zarthus> In my case it's just an utility bot for a specific channel I op; I'll PM you some details.
nankyokusei has quit [Ping timeout: 256 seconds]
splud has joined #ruby
hahuang61 has joined #ruby
symm- has joined #ruby
bodgix has joined #ruby
bodgix has quit [Client Quit]
jhack has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 268 seconds]
salut has quit [Quit: salut]
Gadgetoid has joined #ruby
millerti has joined #ruby
istrasci has quit [Quit: Leaving.]
jhack has joined #ruby
deadnull is now known as _deadnull
_deadnull has quit [Quit: AFK]
djbkd has joined #ruby
psychicist__ has joined #ruby
deadnull has joined #ruby
ta_ has joined #ruby
AlphaAtom has joined #ruby
l33n has quit [Quit: Leaving]
deadnull has quit [Quit: Bye]
nelsonsar has quit [Remote host closed the connection]
nankyokusei has joined #ruby
nelsonsar has joined #ruby
<b0nn> hrm, I'm having a hell time trying to find how to code for oauth WITHOUT using a gem.
<b0nn> I'm a bit lost where to start
ferr1 has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
<baweaver> Why?
eggshke has joined #ruby
nankyoku_ has quit [Ping timeout: 244 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
<antoniobeyah> b0nn: do you know how oauth works?
<baweaver> Not using a premade gem seems silly.
<b0nn> antoniobeyah: not really, and I cannot for the life of me find a good tutorial
<b0nn> baweaver: I don't make the rules, I just follow them
<antoniobeyah> ahh, that explains it. go look at one of the existing gems and copy the code
<baweaver> Then you need to have a conversation with the person who does
<baweaver> and tell them how pointless it is to reimplement common protocol
jgnagy has joined #ruby
<b0nn> baweaver: sure, in the mean time I'll do as I'm told :)
<b0nn> antoniobeyah: I've been looking at a few gems, but the code is a bit obscure
<antoniobeyah> b0nn: trying to do it yourself will be painful, oauth is a framework for authorization, but its commonly used in different flavors for authentication as well. different providers have their different flavors
nelsonsar has quit [Ping timeout: 248 seconds]
<baweaver> Good luck, have fun.
<b0nn> antoniobeyah: I can see where creadentials are stored (for example) but I cannot find where they are used
govg has quit [Ping timeout: 245 seconds]
<b0nn> baweaver: thank you for your input, it's been invaluable.
<Papierkorb> b0nn: https://oauth.net/2/ Maybe look at the "OAuth 2.0 Simplified" guide, but I haven't read it in its entirety
<Papierkorb> b0nn: Also note that OAuth 1 != 2
<b0nn> Papierkorb: crikey! :) Thanks, I hadn't found that page so far
<antoniobeyah> b0nn: dealing with the various grant types is where it becomes challenging
<b0nn> antoniobeyah: thanks! that stormpath link looks helpful
<Papierkorb> b0nn: Do note that you usually only reinvent the wheel for (personal) research projects, or sometimes, school/university projects
<b0nn> Papierkorb: yeah, I'm no fan of reinventing the wheel, but in this instance I have no choice
jordanm has joined #ruby
<b0nn> Papierkorb: actually I lie, I don't mind reinventing the wheel when I am trying to learn a new tech. It gives me a low level understanding of how broken my implementation is :)
jshjsh has joined #ruby
harai_ has joined #ruby
<antoniobeyah> b0nn: well lets hope the next requirement isn’t saml ;)
<b0nn> +1
govg has joined #ruby
libastral has quit [Ping timeout: 246 seconds]
marxarelli has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
UserJosh has quit [Ping timeout: 268 seconds]
nelsonsar has joined #ruby
libastral has joined #ruby
zeroDi has joined #ruby
banisterfiend has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
izaac has quit [Quit: Lost terminal]
miqlas-H has joined #ruby
centrx has quit []
Snowy has joined #ruby
grh has quit [Ping timeout: 240 seconds]
Guest30798 has quit [Quit: - Bye]
ta_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 250 seconds]
psychicist__ has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
kareelee has quit []
adavia has quit [Ping timeout: 260 seconds]
nelsonsar has quit [Remote host closed the connection]
ferr1 has quit [Quit: WeeChat 1.6]
nelsonsar has joined #ruby
ferr1 has joined #ruby
harai_ has quit [Ping timeout: 260 seconds]
_joes_ has quit [Quit: Connection closed for inactivity]
pawnbox_ has quit [Remote host closed the connection]
nelsonsar has quit [Ping timeout: 258 seconds]
claudiuinberlin has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bturker has quit [Ping timeout: 256 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
avdi has quit [Remote host closed the connection]
deimos has quit [Remote host closed the connection]
psychicist__ has joined #ruby
pizzaops has quit [Remote host closed the connection]
istrasci has joined #ruby
istrasci has left #ruby [#ruby]
ResidentBiscuit has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
omphe has joined #ruby
zotherstupidguy has joined #ruby
andikr has quit [Remote host closed the connection]
cdg_ has quit [Remote host closed the connection]
qguv has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
XV8 has joined #ruby
bocaneri has quit [Remote host closed the connection]
solocshaw has joined #ruby
rwb has quit [Remote host closed the connection]
rwb has joined #ruby
qguv has joined #ruby
jaguarmagenta has joined #ruby
Ebok has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
nelsonsar has joined #ruby
enterprisey has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
maattdd has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
Rutix has quit []
Snowy has joined #ruby
Jackneill has joined #ruby
nadir has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 245 seconds]
nadir has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
pfg has quit [Remote host closed the connection]
alxndr has quit [Remote host closed the connection]
skmp has quit [Remote host closed the connection]
Travis-42 has quit [Remote host closed the connection]
LyndsySimon has quit [Remote host closed the connection]
Yonk_ has quit [Remote host closed the connection]
jimeh has quit [Remote host closed the connection]
lipoqil has quit [Remote host closed the connection]
rfv has quit [Remote host closed the connection]
cstrahan has quit [Remote host closed the connection]
danzilio has quit [Remote host closed the connection]
johnkpaul has quit [Remote host closed the connection]
bastilian has quit [Remote host closed the connection]
chrisseaton has quit [Remote host closed the connection]
makufiru has quit [Remote host closed the connection]
bcavileer has quit [Remote host closed the connection]
adambeynon has quit [Remote host closed the connection]
charles81 has quit [Remote host closed the connection]
mrfooo has quit [Remote host closed the connection]
zzak has quit [Remote host closed the connection]
davidmichaelkarr has quit [Remote host closed the connection]
codepete has quit [Remote host closed the connection]
ewilliam_ has quit [Remote host closed the connection]
manveru has quit [Remote host closed the connection]
avdi has joined #ruby
ghostlight has quit [Ping timeout: 245 seconds]
tercenya has quit [Remote host closed the connection]
ghostlight has joined #ruby
tercenya has joined #ruby
JoshS has joined #ruby
SkrubLord has quit []
SkrubLord has joined #ruby
nemermel has joined #ruby
alxndr has joined #ruby
jshjsh has quit [Ping timeout: 258 seconds]
adambeynon has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
pizzaops has joined #ruby
lipoqil has joined #ruby
deimos has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
mrfooo has joined #ruby
nemermel has left #ruby ["WeeChat 1.6"]
johnkpaul has joined #ruby
charles81 has joined #ruby
bcavileer has joined #ruby
manveru has joined #ruby
rfv has joined #ruby
skmp has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
LyndsySimon has joined #ruby
cstrahan has joined #ruby
ResidentBiscuit has joined #ruby
cloaked1 has quit [Read error: Connection reset by peer]
gloscombe has joined #ruby
chrisseaton has joined #ruby
ewilliam_ has joined #ruby
cloaked1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pfg has joined #ruby
eggshke has quit []
<dviola> I'm trying to parse 15 million rows of CSV data, I'm using CSV#read but it's just too slow, I want to parse and insert the data into postgres with activerecord
<dviola> any suggestions for doing that faster?
jcao219 has joined #ruby
rodfersou has quit [Quit: leaving]
<dviola> CSV#read will load the data in RAM, I don't think I want that
ResidentBiscuit has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
AlphaAtom has quit [Read error: Connection reset by peer]
makufiru has joined #ruby
<SeepingN> yeah you probably need to read line by line and them possibly parse just that line using CSV methods
zzak has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Client Quit]
davidmichaelkarr has joined #ruby
csk has quit [Quit: ZZZzzz…]
harai_ has joined #ruby
sparch_ has quit [Ping timeout: 256 seconds]
nadir has quit [Ping timeout: 245 seconds]
Yonk_ has joined #ruby
nadir has joined #ruby
csk has joined #ruby
Ebok has quit [Ping timeout: 245 seconds]
codepete has joined #ruby
<al2o3-cr> dviola: have you tried using foreach?
<dviola> not yet
Snowy has quit [Read error: Connection reset by peer]
<al2o3-cr> maybe it will speed things up a little bit :P
jenrzzz has quit [Ping timeout: 260 seconds]
johnmilton has quit [Remote host closed the connection]
Snowy has joined #ruby
danzilio has joined #ruby
<dviola> al2o3-cr: that works, thanks
x77686d has joined #ruby
Travis-42 has joined #ruby
bastilian has joined #ruby
enterprisey has quit [Ping timeout: 246 seconds]
SteenJobs has joined #ruby
jimeh has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
athena has joined #ruby
jshjsh has joined #ruby
tax has quit [Quit: Leaving]
Derperperd has quit [Quit: Derperperd]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nettoweb has quit [Ping timeout: 244 seconds]
adavia has joined #ruby
enterprisey has joined #ruby
workmad3 has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
blackmesa has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
whathappens has joined #ruby
Ebok has joined #ruby
<SeepingN> keeps it from reading the whole file into memory, yes?
blackmesa has quit [Ping timeout: 240 seconds]
athena has left #ruby ["Leaving"]
x77686d has quit [Quit: x77686d]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
balazs has quit [Ping timeout: 260 seconds]
jaruga___ has quit [Quit: jaruga___]
Devalo has joined #ruby
domgetter has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
SteenJobs has joined #ruby
Hink has joined #ruby
<apeiros> SeepingN: reading a csv line by line is not the best idea. a newline can be part of a quoted field. luckily the csv lib can read records separately (CSV::foreach as al2o3-cr mentioned)
johnmilton has joined #ruby
VeryBewitching has joined #ruby
ascarter has joined #ruby
tyang has quit [Read error: Connection reset by peer]
chopin has quit [Remote host closed the connection]
balazs has joined #ruby
chopin has joined #ruby
<SeepingN> ah yes of course
rwb has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
nankyoku_ has joined #ruby
chopin has quit [Ping timeout: 246 seconds]
tyang has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
SteenJobs has quit [Read error: Connection reset by peer]
gloscombe has quit [Quit: gloscombe]
gnufied has quit [Quit: Leaving]
SteenJobs has joined #ruby
lee-jon has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
psychicist__ has quit [Ping timeout: 265 seconds]
psychicist__ has joined #ruby
rwb has joined #ruby
gnufied has joined #ruby
jwheare has quit []
SteenJobs has quit [Ping timeout: 240 seconds]
jwheare has joined #ruby
jrafanie has joined #ruby
nankyokusei has joined #ruby
jcao219 has quit [Ping timeout: 246 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyoku_ has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
lee-jon has quit [Quit: lee-jon]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Immune has quit [Ping timeout: 265 seconds]
nankyoku_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
madsa_ has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
cdg has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 268 seconds]
ta_ has quit [Remote host closed the connection]
nelsonsar has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jcao219 has joined #ruby
JoshS has joined #ruby
Dimik has quit [Ping timeout: 265 seconds]
jshjsh has quit [Ping timeout: 268 seconds]
nankyoku_ has quit [Remote host closed the connection]
abc2 has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
abc2 has joined #ruby
Mon_Ouie has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
johnmilton has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
kladden has joined #ruby
matp has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
matp_ has quit [Ping timeout: 250 seconds]
tercenya has quit []
harai_ has quit [Ping timeout: 246 seconds]
psychicist__ has quit [Ping timeout: 268 seconds]
abc2 has quit [Ping timeout: 246 seconds]
nankyoku_ has joined #ruby
rfoust has joined #ruby
psychicist__ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
majjoha has left #ruby ["WeeChat 1.6"]
solocshaw has joined #ruby
vuoto has joined #ruby
jaguarmagenta has joined #ruby
jshjsh has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
abc2 has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
patarr_ has joined #ruby
conta has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
nankyoku_ has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
patarr has quit [Ping timeout: 250 seconds]
minimalism has joined #ruby
disconnekted has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has quit [Quit: Leaving]
konsolebox has quit [Ping timeout: 258 seconds]
uranellus has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
nankyoku_ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
nankyokusei has quit [Ping timeout: 265 seconds]
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
jgnagy has joined #ruby
izaac has joined #ruby
kladden has quit []
synaps3 has joined #ruby
synaps3 has joined #ruby
synaps3 has quit [Changing host]
patarr_ has quit [Ping timeout: 260 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
nankyoku_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
montanonic has joined #ruby
railssmith has joined #ruby
ResidentBiscuit has joined #ruby
firstdayonthejob has joined #ruby
Madplatypus has joined #ruby
patarr has joined #ruby
ResidentBiscuit has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit []
nankyokusei has quit [Remote host closed the connection]
Snowy has quit [Quit: ragequit]
troulouliou_div2 has joined #ruby
SkrubLord has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
madsa_ has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 250 seconds]
rwb has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
skweek has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Client Quit]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
csk has quit [Ping timeout: 244 seconds]
nankyoku_ has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
skweek has quit [Ping timeout: 248 seconds]
www-bukolay-net has quit []
ResidentBiscuit has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ramortegui has quit [Quit: Ex-Chat]
polishdub has quit [Quit: Leaving]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
Sammichmaker has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
toretore has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby
vuoto has quit [Read error: Connection reset by peer]
patarr has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
Immune has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
fenre has quit [Remote host closed the connection]
x77686d has joined #ruby
jhack has quit [Quit: jhack]
dcluna has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
jhack has joined #ruby
patarr has joined #ruby
SuperLag has quit [Ping timeout: 244 seconds]
SuperLag has joined #ruby
tvw has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Derperperd has joined #ruby
nankyoku_ has quit [Ping timeout: 260 seconds]
jschoolcraft has quit [Quit: peace]
Devalo has quit [Ping timeout: 260 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
OTORelic has quit [Quit: WeeChat 1.4]
muelleme has joined #ruby
ruid has joined #ruby
SuperLag_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
SuperLag has quit [Ping timeout: 245 seconds]
SCHAAP137 has joined #ruby
adavia has quit [Ping timeout: 260 seconds]
muelleme has quit [Ping timeout: 265 seconds]
jhack has quit [Quit: jhack]
claudiuinberlin has joined #ruby
roshanavand has joined #ruby
rfoust has joined #ruby
ramfjord_ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
kbdkode has joined #ruby
nowhereman has joined #ruby
enterprisey has quit [Ping timeout: 245 seconds]
troulouliou_div2 has quit [Quit: Leaving]
workmad3 has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
millerti has joined #ruby
tvw has quit []
workmad3 has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
claudiuinberlin has quit []
cloaked1 has quit [Quit: Lost terminal]
dnicole has quit [Remote host closed the connection]
adavia has joined #ruby
ResidentBiscuit has joined #ruby
Joufflu has joined #ruby
cloaked1 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 245 seconds]
ruid has quit [Ping timeout: 260 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
olidas has joined #ruby
olidas has left #ruby [#ruby]
sarbs has quit [Ping timeout: 260 seconds]
<b0nn> I'm really confused by oauth.rubyforge.org/rdoc/
<b0nn> I cannot see how to make the access token I have give me verbose feedback
jaguarmagenta has joined #ruby
<b0nn> there is a verbose?() but I don't see how to action it
<darix> b0nn: this is really old
<darix> you probably want
cdg has quit [Remote host closed the connection]
madsa_ has quit [Ping timeout: 248 seconds]
<b0nn> hmm, I still cannot see how to make the response 'show' me what it got
synaps3 has quit [Quit: Leaving]
<b0nn> this is the response: <Net::HTTPOK 200 OK readbody=true>
<b0nn> but that doesn't tell me what's in the response, just that it was good
<b0nn> so, I'm a lot lost :\
jaguarmagenta has quit [Ping timeout: 248 seconds]
<b0nn> The docs are really confusing, they give great examples of use, but no .. troubleshoot ideas
biberu has quit [Read error: Connection reset by peer]
patarr has joined #ruby
konsolebox has quit [Quit: Leaving]
<antoniobeyah> b0nn: try response.body
workmad3 has quit [Ping timeout: 248 seconds]
saslam has quit [Ping timeout: 268 seconds]
zeroDi has quit [Quit: WeeChat 1.6]
<antoniobeyah> this is the object you have: https://ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTPOK.html follow its parents up to the Net::HTTPResponse to get there
bruce_lee has quit [Read error: Connection reset by peer]
<b0nn> thanks, how do I tell what the parent of the object is?
<b0nn> oh
<antoniobeyah> on the ruby docs, left column ‘Parent'
<b0nn> yes, thanks, just saw it :)
johnmccabe has joined #ruby
<b0nn> perfect .body() was what I wanted!
<b0nn> thanks again :)
<antoniobeyah> anytime you print something and its formatted like that it usually means its just printing the type of class
<antoniobeyah> you can search the docs for methods after you have that
* baweaver munches on popcorn
<antoniobeyah> baweaver can explain further :)
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
* antoniobeyah disappears
Jammyham has quit [Ping timeout: 260 seconds]
<baweaver> ?pry_the_good_parts
<ruby[bot]> Pry the Good Parts: https://www.youtube.com/watch?v=jDXsEzOHb2M
<b0nn> ok, yeah I knew I had an instance of the class, I just didn't know how to leverage that knowledge into finding out more about it
<baweaver> I take it you no longer have the library restriction?
<b0nn> I still do
<b0nn> I figure I have enough problems, so I will cheat on the oauth (for the moment)
<baweaver> Why exactly is that a restriction?
<b0nn> Because the person that set the task chose that
<b0nn> I have no idea why they chose to include it
<baweaver> Who set the task and why did they do so?
<baweaver> If it's for school it's understandable. If it's not there's something seriously wrong.
<SeepingN> I love how "wtf?" is a command in pry
<b0nn> baweaver: sorry, I just cannot explain
<baweaver> so is lolcat iirc
<baweaver> We can't help if you can't explain
<baweaver> you're going to keep running into that
herbmillerjr has quit [Quit: Konversation terminated!]
jbeeze_ has quit [Remote host closed the connection]
<baweaver> maybe you get a few more inches in when you ask again, but it's always going to come back to why are you doing this
<antoniobeyah> +1
<baweaver> help us help you
tvw has joined #ruby
<baweaver> if you can't tell us I would strongly suggest hiring a consultant
<baweaver> because rolling your own authentication framework is a mistake
VladGh has quit [Remote host closed the connection]
<baweaver> it's a security hazard and a very hard problem to solve
firstdayonthejob has quit [Ping timeout: 258 seconds]
<blackbombay> nyan-cat
cloaked1 has quit [Ping timeout: 256 seconds]
<baweaver> aha
<baweaver> that was it
VladGh has joined #ruby
herbmillerjr has joined #ruby
skweek has joined #ruby
<baweaver> In any case, the only people on here with the knowledge to reimplement OAuth are going to come back to that point because of one simple fact: No sane person wants to.
<apeiros> or if somebody truly wanted to, there'd have to be an actual reason for it
<apeiros> and without knowing the reason, there's no point to do it
<baweaver> hence consultants
<apeiros> ^
antoniobeyah has quit [Quit: antoniobeyah]
Jackneill has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 250 seconds]