jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Cyrus has joined #ruby
jenrzzz has joined #ruby
tvw has quit [Remote host closed the connection]
kfpratt has joined #ruby
LoneHermit has joined #ruby
stannard has joined #ruby
hinbody has quit [Quit: leaving]
Spami has quit [Quit: This computer has gone to sleep]
elifoster has joined #ruby
tomchapin has joined #ruby
hinbody has joined #ruby
tomchapin has quit [Client Quit]
LoneHermit has quit [Ping timeout: 248 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
junior2 has left #ruby [#ruby]
vdamewood has joined #ruby
tomchapin has joined #ruby
chipotle_ has quit [Ping timeout: 244 seconds]
adgtl has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
fullofcaffeine has joined #ruby
spider-mario has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
CloCkWeRX has joined #ruby
houhoulis has quit []
i8igmac has quit [Ping timeout: 268 seconds]
tomchapi_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
LuckyABA has quit [Ping timeout: 240 seconds]
sebstrax has quit [Quit: Connection closed for inactivity]
tomchapin has quit [Ping timeout: 276 seconds]
rubie has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
baweaver has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
i8igmac has joined #ruby
skade has quit [Client Quit]
elifoster has quit [Ping timeout: 240 seconds]
achamian has joined #ruby
crowell has quit [Ping timeout: 260 seconds]
tvon has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
tvon has quit [Client Quit]
tvon has joined #ruby
paradisaeidae_ has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
chipotle has joined #ruby
achamian has quit [Ping timeout: 246 seconds]
tvon has quit [Client Quit]
crowell has joined #ruby
RegulationD has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
N00B_S has joined #ruby
fragtastic has joined #ruby
last_staff has quit [Quit: last_staff]
dikaio has quit [Read error: Connection reset by peer]
war_pigs has joined #ruby
dikaio has joined #ruby
<fragtastic> i'm having a spot of trouble with the pocketsphinx-ruby gem
<fragtastic> /var/lib/gems/2.1.0/gems/pocketsphinx-ruby-0.3.0/lib/pocketsphinx/api/call_helpers.rb:10:in `block in api_call': Decoder#unset_search failed with error code -1 (Pocketsphinx::API::Error)
stannard has quit [Remote host closed the connection]
ascarter has joined #ruby
intrigueD has quit [Remote host closed the connection]
pawnbox has joined #ruby
nettoweb has quit [Ping timeout: 276 seconds]
ascarter_ has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
bry4n_ has joined #ruby
skweek has quit [Remote host closed the connection]
crowell has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
war_pigs has quit [Quit: laters.. I'm out.]
mfb2 has joined #ruby
bry4n_ has quit [Ping timeout: 260 seconds]
norc_ has joined #ruby
crowell has joined #ruby
N00B_S has quit [Quit: hasta la vista! - N00bS@uc3 OUT!]
nerium has quit [Quit: nerium]
`tim` has joined #ruby
Rodya_ has quit [Quit: Leaving...]
hxegon has joined #ruby
duckpuppy has joined #ruby
ascarter_ has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
jbrhbr has quit [Quit: Leaving.]
swills has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
duckpuppy has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
marr has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
BtcBen has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
cyrus_ has joined #ruby
cyrus_ has left #ruby [#ruby]
mfb2 has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
baweaver has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smoose has joined #ruby
steffkes has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
pawnbox has joined #ruby
bjpenn has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
auzty has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
moeabdol2 has quit [Ping timeout: 248 seconds]
mr_robot_ has joined #ruby
tvon has joined #ruby
ericn81 has joined #ruby
fullofca_ has joined #ruby
TinkerTyper has joined #ruby
<fragtastic> hmm, looks like the error occurs from creating a new LiveSpeechRecognizer with a configuration from a grammar file
fullofcaffeine has quit [Ping timeout: 276 seconds]
johnmilton has quit [Ping timeout: 248 seconds]
aclearman037 has joined #ruby
aclearma_ has quit [Ping timeout: 240 seconds]
frustrum has joined #ruby
<frustrum> save
<frustrum> :3
uglybandersnatch has quit [Ping timeout: 240 seconds]
aclearma_ has joined #ruby
hxegon has quit [Quit: BRB]
clorisu has joined #ruby
<clorisu> hey, anyone know whats going on here? http://pastie.org/10758806
marcdel has joined #ruby
<fragtastic> clorisu, looks like you don't have autoconf installed
babblebre has joined #ruby
aclearman037 has quit [Ping timeout: 240 seconds]
<fragtastic> probably safe to say it needs it. sudo apt install autoconf
<clorisu> fixed it fragtastic. thanks. for future reference: does 'command not found' basically translate to 'program not installed'?
<fragtastic> clorisu, basically :P
nettoweb has joined #ruby
marcdel has quit [Ping timeout: 246 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
<fragtastic> clorisu, if i'm doing any dev stuff i usually just `sudo apt install git build-essential autoconf libtool automake bison` since they're often required
<clorisu> saved :)
marcdel has joined #ruby
jenrzzz has joined #ruby
wjimenez5271_ has quit [Ping timeout: 244 seconds]
<clorisu> fragtastic: http://pastie.org/10758817 any idea why its not updating?
uglybandersnatch has quit [Ping timeout: 252 seconds]
poerror has joined #ruby
<fragtastic> clorisu, never used rbenv but if it's anything like python env then you need to activate it. see if there's an 'activate' file in your /home/adam/.benv/versions/2.0.0-dev folder
<fragtastic> otherwise you're just calling ruby from the system installation
rrrepsaj has joined #ruby
<clorisu> not that i can see
<fragtastic> clorisu, paste me your 'echo $PATH'
<clorisu> adam@mintpc ~ $ echo $PATH
<clorisu> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
diegoviola has quit [Quit: WeeChat 1.4]
<fragtastic> try 'export PATH=~/.rbenv/shims:$PATH'
poerror has quit [Ping timeout: 260 seconds]
<clorisu> no log
<clorisu> adam@mintpc ~ $ export PATH=~/.rbenv/shims:$PATH
<clorisu> adam@mintpc ~ $
houhoulis has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fragtastic> yeah, doesn't output anything
<clorisu> what am i trying if it fixes
<fragtastic> from what i can tell your path needs that shims added
trinaldi has quit [Quit: WeeChat 1.5-dev]
houhoulis has quit [Client Quit]
<fragtastic> then try `rbenv local 2.0.0-dev -v` or without the -v, never used rbenv
hxegon has joined #ruby
<clorisu> kk
<clorisu> what version manager do you use fragtastic
<clorisu> rvm?
<fragtastic> never used ruby before today
ivanskie has joined #ruby
<clorisu> ah :)
<clorisu> same boat
<Ox0dea> clorisu: Are you sure you need a Ruby environment manager?
<clorisu> im just trying to update ruby versions Ox0dea
<clorisu> apt didnt give me the latest vers and i ran into errors quickly
<Ox0dea> clorisu: Gotcha. Just a second.
tristanp has quit [Read error: No route to host]
<fragtastic> i usually run debian testing, but i wouldn't exactly recommend doing that
fullofca_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
DmitryBochkarev has joined #ruby
nettoweb has joined #ruby
adgtl has joined #ruby
jackjackdripper has joined #ruby
<clorisu> perfect Ox0dea
<clorisu> thanks
<Ox0dea> Happy to help. :)
<clorisu> i'm suprised this lynda tutorial i'm watching for rails only covers mac and windows installation
finisherr has joined #ruby
nettoweb has quit [Client Quit]
LoneHermit has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<fragtastic> if anyone has experience with pocketsphinx-ruby https://gist.github.com/fragtastic/5ef35c131e240524b274
uglybandersnatch has joined #ruby
<fragtastic> fails on line 11
gmas has quit [Ping timeout: 276 seconds]
adgtl has quit [Ping timeout: 246 seconds]
gmas has joined #ruby
Guest34101 has quit [Ping timeout: 264 seconds]
rubie has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
tristanp has joined #ruby
arlek_ has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
dikaio has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
dikaio has joined #ruby
stardiviner has joined #ruby
elifoster has joined #ruby
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
houhoulis has joined #ruby
dikaio has quit [Remote host closed the connection]
johnmilton has joined #ruby
dikaio has joined #ruby
bjpenn has quit [Ping timeout: 260 seconds]
dikaio has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
dikaio has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
chipotle has joined #ruby
johnmilton has quit [Remote host closed the connection]
blackmesa has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
dikaio has quit [Remote host closed the connection]
norc__ has joined #ruby
achamian has joined #ruby
bjpenn has joined #ruby
moeabdol2 has joined #ruby
houhoulis has quit []
blackmesa has quit [Ping timeout: 260 seconds]
norc_ has quit [Ping timeout: 252 seconds]
houhoulis has joined #ruby
hxegon has quit [Quit: BRB]
achamian has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 244 seconds]
moeabdol2 has quit [Ping timeout: 246 seconds]
cpup has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
arescorpio has joined #ruby
moos3 has joined #ruby
aclearma_ has quit [Quit: Textual IRC Client: www.textualapp.com]
aclearman037 has joined #ruby
fullofcaffeine has joined #ruby
aclearman037 has quit [Client Quit]
ensyde_ has quit [Ping timeout: 244 seconds]
aclearman037 has joined #ruby
moos3 has quit [Ping timeout: 246 seconds]
bjpenn has quit [Ping timeout: 248 seconds]
aclearman037 has quit [Client Quit]
aclearman037 has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
stephenott has joined #ruby
aclearman037 has quit [Client Quit]
aclearman037 has joined #ruby
freerobby has joined #ruby
bjpenn has joined #ruby
aclearman037 has quit [Client Quit]
aclearman037 has joined #ruby
stephenott has quit [Client Quit]
aclearman037 has quit [Client Quit]
fullofcaffeine has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
A124 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Technodrome has joined #ruby
<Technodrome> Good day
A124 has joined #ruby
console has quit [Quit: gone]
e has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
bry4n_ has joined #ruby
mr_robot_ has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
moei has quit [Quit: Leaving...]
ropeney has joined #ruby
edwinvdgraaf has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
rubie has joined #ruby
smoose has quit [Remote host closed the connection]
smoose has joined #ruby
mallu has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
ariel_17 has quit [Ping timeout: 268 seconds]
<clorisu> anybody know whats going on here? http://pastie.org/10758870
_djbkd has joined #ruby
skydiver_ has quit [Quit: WeeChat 1.4]
<pizzaops> Welp, there's the obvious permissions errors.
<pizzaops> I'd start with those.
<clorisu> what line pizzaops
<Ox0dea> clorisu: You skipped a step.
<clorisu> what step
<Ox0dea> > And you'll probably need the dev packages so you can build native extensions
<Ox0dea> From the Brightbox installation guide.
<pizzaops> clorisu: also if you literally just cmd/ctrl-f for "permission"
<clorisu> i installed rubydev2.2
<pizzaops> clorisu: not enough, it depends on libraries.
User458764 has joined #ruby
<clorisu> pizzaops: I corrected 82 on line 83
_djbkd has quit [Ping timeout: 240 seconds]
<clorisu> ah
<pizzaops> Even if you're not using ruby-build (rbenv), that should cover the dependencies for compiling most gems on most platforms.
<clorisu> kk let me give it a shot
paradisaeidae_ has joined #ruby
Abrin_AWAY has joined #ruby
<pizzaops> But probably listen to Ox0dea since I don't know anything at all about Brightbox.
<clorisu> i did both :-)
<pizzaops> haha ok
<Ox0dea> I don't either, really; I've just seen it ease the pain for Ubuntu users.
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
blackmesa has joined #ruby
<Ox0dea> That path to ruby_debug.h at the end there looks suspicious.
davedev24 has quit []
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
baweaver has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<clorisu> same problem?
liquid-silence has joined #ruby
liquid-silence has joined #ruby
kknight has joined #ruby
<Ox0dea> clorisu: I thought you just wanted a recent Ruby version? Why did you install so many?
<clorisu> Ox0dea: thats in the brightbox guide
<clorisu> that's why I said I only downloaded 2.2, but pizzaops said i needed the others libraries?
<pizzaops> I didn't say you needed the libraries from other rubies...
<pizzaops> I said you needed other libraries.
<clorisu> lol woops
<pizzaops> And then I linked you to what I was talking about.
<clorisu> <clorisu> i installed rubydev2.2
<clorisu> <pizzaops> clorisu: not enough, it depends on libraries.
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
<clorisu> ah
<clorisu> my mistake
<clorisu> should i remove them Ox0dea
<Ox0dea> clorisu: Seems to have gone all pear-shaped, mate. :/
Mia has quit [Read error: Connection reset by peer]
<liquid-silence> has anyone here used the jwt-ruby library?
<clorisu> removed ruby1.8 and ruby1.8-dev
<liquid-silence> I cannot figure out wtf I am doing wrong with this token
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<clorisu> okay well heres my problem right now Ox0dea http://pastie.org/10758879
<liquid-silence> I can sign this token with whatever the hell I want
<clorisu> I'm only trying to install debugger because I'm running into an error while trying to start the rails server
freerobby has quit [Quit: Leaving.]
<liquid-silence> JWT.encode payload, "dadas", 'HS512' , where "dads" should be the secret, if I use the secret supplied
<liquid-silence> it does the exact same thing
<liquid-silence> so which leaves me the secret should be parsed as something maybe?>
adgtl has quit [Ping timeout: 260 seconds]
<Ox0dea> clorisu: Seems the debugger gem doesn't support anything beyond 2.1.1: https://github.com/cldwalker/debugger/tree/master/ext/ruby_debug
<clorisu> ah
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<clorisu> should i switch back
<Ox0dea> Not sure why those 2x directories are even there, actually; they stopped support at 1.9.
tristanp_ has joined #ruby
<Ox0dea> You should definitely not switch back to 1.9; it's dead, Jim.
<shevy> clorisu be brave, enter the future!
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
tristanp has quit [Ping timeout: 268 seconds]
Chagel has quit [Remote host closed the connection]
<clorisu> shevy Ox0dea I installed the byebug gem. I'm still getting an error asking for debugger when I run `rails server`
ohaibbq has joined #ruby
<clorisu> `bundle install` sorry
LoneHerm_ has joined #ruby
<Ox0dea> clorisu: Are you able to upgrade rails?
<Ox0dea> The default Gemfile has used byebug instead of debugger for some time now.
<clorisu> im using rails (4.2.6)
quakephil has quit [Ping timeout: 244 seconds]
<clorisu> is that old?
Chagel has joined #ruby
<Ox0dea> Heh.
<clorisu> what version should I have
<clorisu> I found 4.2.6 on rubygems.org top result
Asher has quit [Quit: Leaving.]
<Ox0dea> Where did you get this Gemfile?
marcdel has quit [Ping timeout: 244 seconds]
<clorisu> Ox0dea: I think it was generated when I did `rails new simple_cms`
<Ox0dea> clorisu: And you did that recently, on Rails 4.2.6?
<clorisu> I'll try it again, I mightve done it with my old ruby installed
<clorisu> could be the problem
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fullofcaffeine has quit [Ping timeout: 248 seconds]
poerror has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
<clorisu> well the debugger error is gone :P
<clorisu> now im getting an sqlite one. lets see if it fixes quickly
kknight has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 276 seconds]
<clorisu> yeek. basically same problem as debugger
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Not really.
<clorisu> i mean the error message
<clorisu> one sec
<Ox0dea> $ sudo apt-get install sqlite3 libsqlite3-dev
<clorisu> this is after building the new simple_cms with new ruby
poerror has quit [Ping timeout: 248 seconds]
<clorisu> sec
<Ox0dea> clorisu: Lines 90 and 91 in your paste.
TomyLobo has quit [Ping timeout: 264 seconds]
<clorisu> this doesnt want work
tjohnson has joined #ruby
safe has joined #ruby
<Ox0dea> I have no idea what's going on there.
<Ox0dea> You'll need an Ubuntu expert.
<clorisu> seems its requesting gem1.8
<clorisu> ive got 1.9.1
<clorisu> should i downgrade gem
jeer has joined #ruby
<Ox0dea> ¯\_(ツ)_/¯
braincrash has joined #ruby
houhoulis has quit [Remote host closed the connection]
babblebre has quit [Quit: Connection closed for inactivity]
whippythellama has joined #ruby
whippythellama has quit [Client Quit]
pawnbox has joined #ruby
freerobby has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<Ox0dea> clorisu: Your system still thinks you have Ruby 1.8 installed, but I don't know why or how to convince it otherwise. :/
<Ox0dea> Do you know how to start a fire?
haxrbyte has joined #ruby
<clorisu> i think it was a dpkg issue
<clorisu> i mightve sorted it out, one moment
haxrbyte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 248 seconds]
<Ox0dea> Well, the problem is more likely in update-alternatives; I guess you confused it when you installed so many unnecessary Rubies. :P
haxrbyte has joined #ruby
<clorisu> im guessing so too :P
<clorisu> ah yes
<clorisu> sqlite installed
<clorisu> lets run bundle install again..
<clorisu> success !
<clorisu> rails server - success !
<clorisu> phew
rrrepsaj has quit [Remote host closed the connection]
<clorisu> okay, so im guessing 80% of the problem was the fact i was trying to run the server on an old Gemfile installed with old ruby before I updated
<clorisu> silly me
<Ox0dea> \o/
<Ox0dea> Glad you got it sorted.
<clorisu> thanks :)
<Ox0dea> Sure thing. :)
<clorisu> hopefully i can get around to trying to learn rails soon~
<bougyman> hopefully not
<clorisu> o.O? :P
<clorisu> why not bougyman ?
rrrepsaj has joined #ruby
<bougyman> not a fan.
<clorisu> why not?
<bougyman> because i've had to bail too many companies out of rails woes.
liquid-silence has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
<clorisu> :o hehe
<clorisu> what sort?
<clorisu> the twitter sort ?
_djbkd has joined #ruby
liquid-silence has joined #ruby
liquid-silence has joined #ruby
treaki__ has joined #ruby
moos3 has joined #ruby
Chagel has joined #ruby
krz has joined #ruby
Asher has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Uber|Dragon has joined #ruby
treaki_ has quit [Ping timeout: 240 seconds]
_djbkd has quit [Ping timeout: 250 seconds]
ericn81 has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
freerobby has quit [Quit: Leaving.]
jackjackdripper has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
RegulationD has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
achamian has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
`tim` has joined #ruby
mistermocha has quit [Remote host closed the connection]
achamian has quit [Client Quit]
moei has joined #ruby
rhg135 is now known as gelatobot
gix has quit [Ping timeout: 264 seconds]
gelatobot is now known as rhg135
mr_robot_ has joined #ruby
gix has joined #ruby
last_staff has joined #ruby
rvchangue has joined #ruby
vdamewood has quit [Quit: Life beckons.]
`tim` has quit [Ping timeout: 268 seconds]
last_staff has quit [Client Quit]
jeer has quit [Quit: Leaving.]
jeer has joined #ruby
jeer has quit [Client Quit]
htmldrum has joined #ruby
edwinvdgraaf has joined #ruby
norc__ has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
Chagel has joined #ruby
Asher has quit [Client Quit]
hxegon has quit [Quit: BRB]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
Uber|Dragon has quit [Ping timeout: 246 seconds]
Asher has joined #ruby
bluntman has left #ruby ["WeeChat 1.2"]
eljimmy has quit [Quit: Leaving]
Chagel_ has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
Asher has quit [Quit: Leaving.]
tvon has quit [Remote host closed the connection]
arescorpio has quit [Remote host closed the connection]
tvon has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
Asher has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
frustrum has quit [Ping timeout: 260 seconds]
adgtl has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
aNoble has joined #ruby
aNoble has quit [Client Quit]
hk238 has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
bjpenn has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
P1ro has joined #ruby
aNoble has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Technodrome> Good day
<Technodrome> and a long monday
Sammichmaker has joined #ruby
Asher has quit [Quit: Leaving.]
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
htmldrum has joined #ruby
LoneHerm_ has joined #ruby
chipotle has quit [Max SendQ exceeded]
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
uglybandersnatch has joined #ruby
stardiviner has joined #ruby
chipotle has joined #ruby
CloCkWeRX has joined #ruby
safe has quit [Quit: Leaving]
rrrepsaj has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 268 seconds]
aNoble has quit [Quit: aNoble]
saneax_AFK is now known as saneax
aNoble has joined #ruby
<P1ro> hi, im tryong to compile ruby rvm on arch but im getting this error: http://dpaste.com/1E84FJG.txt
Asher has joined #ruby
govg has quit [Ping timeout: 260 seconds]
hakunin_ is now known as hakunin
elifoster has joined #ruby
p1k has joined #ruby
<p1k> how can I use extend the ClassMethods module of one module with another set of ClassMethods
<p1k> it seems to work immedietly in included, but it doesn't seem to stick :o
aNoble has quit [Quit: aNoble]
aNoble has joined #ruby
aNoble has left #ruby [#ruby]
govg has joined #ruby
krz has quit [Ping timeout: 250 seconds]
arlek_ has quit [Ping timeout: 244 seconds]
Guest34101 has joined #ruby
saneax is now known as saneax_AFK
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
astrobun_ has quit [Remote host closed the connection]
Prominent has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
adgtl has quit [Client Quit]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
User458764 has joined #ruby
rkazak_ has joined #ruby
saneax_AFK is now known as saneax
rkazak has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
rkazak_ has quit [Ping timeout: 250 seconds]
krz has joined #ruby
fullofcaffeine has joined #ruby
moos3 has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
frustrum has joined #ruby
mr_robot_ has joined #ruby
auzty has quit [Quit: Leaving]
frustrum has quit [Ping timeout: 240 seconds]
p1k has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
skade has joined #ruby
astrobun_ has joined #ruby
djbkd_ has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
LoneHermit has joined #ruby
govg has quit [Ping timeout: 252 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nando293921 has quit [Ping timeout: 260 seconds]
rkazak_ has joined #ruby
Chagel has quit [Remote host closed the connection]
Rinalds has joined #ruby
Rinalds has quit [Client Quit]
rkazak has quit [Ping timeout: 260 seconds]
rkazak_ is now known as rkazak
RegulationD has quit [Ping timeout: 250 seconds]
Prominent has quit [Read error: Connection reset by peer]
LoneHermit has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
Xeago has joined #ruby
Chagel has joined #ruby
yakbrown has joined #ruby
darkf has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
intrigueD has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
BtcBen_ has joined #ruby
armyriad has quit [Quit: Leaving]
tomphp has joined #ruby
BtcBen has quit [Ping timeout: 268 seconds]
BtcBen_ is now known as BtcBen
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has quit [Ping timeout: 244 seconds]
solars has joined #ruby
bqscott_ has joined #ruby
klaas_ has joined #ruby
kenichi_ has joined #ruby
icedp has joined #ruby
rkazak_ has joined #ruby
pjaspers_ has joined #ruby
mattpatt_ has joined #ruby
shortdudey123_ has joined #ruby
Junaos_ has joined #ruby
jrod_ has joined #ruby
console has joined #ruby
raldu_ has joined #ruby
peterhu_ has joined #ruby
svkurowski_ has joined #ruby
bogdanteleaga_ has joined #ruby
sonOfRa_ has joined #ruby
rkazak has quit [Ping timeout: 244 seconds]
rkazak_ is now known as rkazak
TakumoKatekari has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
bahar_ has joined #ruby
Abrin_AWAY has quit [Ping timeout: 244 seconds]
bqscott has quit [Disconnected by services]
bqscott_ is now known as bqscott
andikr has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FastJack_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Eaven has joined #ruby
code_[BNC] has joined #ruby
quarcu_ has joined #ruby
tomaw_ has joined #ruby
df- has joined #ruby
julie_harshaw has joined #ruby
<shevy> is there a release cycle or policy for new ruby versions? like every 2 months or something? I only know of mandatory xmas releases :P
martinbjeldbak_ has joined #ruby
e has quit [*.net *.split]
hinbody has quit [*.net *.split]
davee_ has quit [*.net *.split]
reaVer has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
Cork has quit [*.net *.split]
sauvin has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
icey_ has quit [*.net *.split]
flopsec has quit [*.net *.split]
darix has quit [*.net *.split]
kies has quit [*.net *.split]
wnd has quit [*.net *.split]
glcx has quit [*.net *.split]
forgot has quit [*.net *.split]
genpaku has quit [*.net *.split]
svkurowski has quit [*.net *.split]
_br___ has quit [*.net *.split]
callumacrae has quit [*.net *.split]
djellemah has quit [*.net *.split]
Rasi has quit [*.net *.split]
axisys has quit [*.net *.split]
hogetaro_ has quit [*.net *.split]
RTG` has quit [*.net *.split]
decaff has quit [*.net *.split]
aibot has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
timonv1 has quit [*.net *.split]
pjaspers has quit [*.net *.split]
jzigmund has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
spacemud has quit [*.net *.split]
DrCode has quit [*.net *.split]
jtoy_ has quit [*.net *.split]
_ko1 has quit [*.net *.split]
ericwood_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
mhb has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
torarne has quit [*.net *.split]
FastJack has quit [*.net *.split]
Guest96677 has quit [*.net *.split]
eregon has quit [*.net *.split]
mattpatt has quit [*.net *.split]
IceDragon has quit [*.net *.split]
varesa has quit [*.net *.split]
df has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
peterhu has quit [*.net *.split]
Junaos has quit [*.net *.split]
bahar has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
quarcu has quit [*.net *.split]
code_ has quit [*.net *.split]
kenichi has quit [*.net *.split]
raldu has quit [*.net *.split]
jrod has quit [*.net *.split]
edulix_ has quit [*.net *.split]
john2 has quit [*.net *.split]
inukshuk has quit [*.net *.split]
zeroXten has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
lucas has quit [*.net *.split]
philtr_ has quit [*.net *.split]
cscheib_ has quit [*.net *.split]
tomaw has quit [*.net *.split]
Helheim has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
jsaak has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Takumo has quit [*.net *.split]
Raboo has quit [*.net *.split]
bakingbread has quit [*.net *.split]
ltd_ has quit [*.net *.split]
klaas has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
jrod_ is now known as jrod
davee__ has joined #ruby
bogdanteleaga_ is now known as bogdanteleaga
icey has joined #ruby
shortdudey123_ is now known as shortdudey123
Ox0dea_ has joined #ruby
timonv1 has joined #ruby
djellemah has joined #ruby
decaff has joined #ruby
AlexRussia has joined #ruby
guardian has joined #ruby
hinbody has joined #ruby
reaVer has joined #ruby
genpaku has joined #ruby
_br___ has joined #ruby
IceDragon has joined #ruby
forgot has joined #ruby
_ko1 has joined #ruby
john2 has joined #ruby
kies has joined #ruby
DrCode has joined #ruby
wnd has joined #ruby
torarne has joined #ruby
eregon has joined #ruby
axisys has joined #ruby
spacemud has joined #ruby
mhb has joined #ruby
varesa has joined #ruby
aibot has joined #ruby
lucas has joined #ruby
ericwood_ has joined #ruby
Guest96677 has joined #ruby
callumacrae has joined #ruby
philtr_ has joined #ruby
RTG` has joined #ruby
ahuman has joined #ruby
glcx has joined #ruby
xMopxShell has joined #ruby
Ariadeno has joined #ruby
chrisarcand has joined #ruby
KillerFox has joined #ruby
jtoy_ has joined #ruby
Helheim has joined #ruby
jsaak has joined #ruby
cscheib_ has joined #ruby
Raboo has joined #ruby
zeroXten has joined #ruby
ryotarai has joined #ruby
jzigmund has joined #ruby
edulix_ has joined #ruby
hypnosb has joined #ruby
hogetaro_ has joined #ruby
mame3 has joined #ruby
kallisti5 has joined #ruby
ltd_ has joined #ruby
inukshuk has joined #ruby
sauvin has joined #ruby
Rasi has joined #ruby
sauvin has quit [Client Quit]
callumacrae has quit [Max SendQ exceeded]
Ariadeno has quit [Max SendQ exceeded]
genpaku has quit [Max SendQ exceeded]
Helheim has quit [Max SendQ exceeded]
yakbrown has quit [Ping timeout: 252 seconds]
Ariadeno has joined #ruby
TheBrayn has joined #ruby
ohaibbq has quit [Quit: Leaving...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
Cork has joined #ruby
sauvin has joined #ruby
Guest13710 has joined #ruby
Ariadeno is now known as Guest75813
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Helheim has joined #ruby
pawnbox has quit [Remote host closed the connection]
flopsec has joined #ruby
chandlerbing has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
darix has joined #ruby
Ox0dea_ is now known as Ox0dea
agit0 has quit [Quit: zzzZZZ….]
callumacrae has joined #ruby
intrigueD has quit [Remote host closed the connection]
tvon has joined #ruby
saneax is now known as saneax_AFK
Chagel has quit [Remote host closed the connection]
phredus has joined #ruby
tristanp has joined #ruby
tvon has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
hxegon has quit [Quit: BRB]
Chagel has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
bMalum has joined #ruby
_djbkd has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
firstdayonthejob has joined #ruby
<manveru> shevy: no
SenpaiSilver has quit [Ping timeout: 244 seconds]
ta__ has quit [Remote host closed the connection]
ta_ has joined #ruby
<manveru> bougyman: right now i
<manveru> i'm having fun bailing them out of not-knowing-sql woes :P
_djbkd has quit [Ping timeout: 260 seconds]
<manveru> who would've known that replacing O(n5) queries with joins and such speeds your app up by a few factors
Tempesta has quit [Ping timeout: 260 seconds]
SenpaiSilver has joined #ruby
Tempesta has joined #ruby
niksrc has joined #ruby
saneax_AFK is now known as saneax
ta_ has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
ziyadb has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
codecop has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has joined #ruby
mhoungbo has joined #ruby
pawnbox has quit [Remote host closed the connection]
jas02 has joined #ruby
pawnbox has joined #ruby
AlexJakeGreen has joined #ruby
moeabdol2 has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
AlexJakeGreen has quit [Client Quit]
lxsameer has joined #ruby
biberu has joined #ruby
msg31 has quit [Remote host closed the connection]
moeabdol2 has quit [Ping timeout: 260 seconds]
bjpenn has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
steffkes has joined #ruby
Abrin_AWAY has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has joined #ruby
Guest13710 has quit [Quit: WeeChat 1.4]
emesa has joined #ruby
moos3 has joined #ruby
roshanavand has joined #ruby
moos3 has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
gagrio has joined #ruby
Chagel has joined #ruby
Don_John has quit [Quit: Later]
chandlerbing has joined #ruby
<adaedra> Hello
agit0 has joined #ruby
pawnbox has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
anisha has joined #ruby
aganov has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
jaruga has joined #ruby
vondruch has joined #ruby
tvon has joined #ruby
roshanavand has joined #ruby
maner has joined #ruby
terlar has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
frustrum has joined #ruby
aufi has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
tvon has quit [Ping timeout: 244 seconds]
igam has joined #ruby
LoneHermit has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jaiks has joined #ruby
frustrum has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Quit: Leaving]
anisha has quit [Quit: This computer has gone to sleep]
<manveru> adaedra: welcome
djbkd_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 240 seconds]
elifoster has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
<Ox0dea> Is there a workaround for `load '/dev/fd/0'` not doing The Right Thing?
<Ox0dea> It's true enough that it's technically not a file, but it still feels like that should be possible.
skade has joined #ruby
Couch has joined #ruby
mark2 has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
<Mon_Ouie> Is eval a good enough work around?
elaptics`away is now known as elaptics
Guest34101 has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
futilegames has joined #ruby
<Ox0dea> Ah, well, the only valid use case that comes to mind is demonstrating a #load patch on sites like eval.in, but that's precisely the situation in which I find myself.
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mdw has joined #ruby
Spami has joined #ruby
andikr has quit [Remote host closed the connection]
ta_ has joined #ruby
futilegames has left #ruby [#ruby]
sarbs has joined #ruby
rdark has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
lxsameer has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
poerror has joined #ruby
sarbs has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
roshanavand has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
rkazak has quit [Quit: Sleep.....ing....]
TakumoKatekari is now known as Takumo
duncannz has quit [Remote host closed the connection]
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
clorisu has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
bry4n_ has joined #ruby
drptbl has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
lxsameer has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
nofxx has quit [Ping timeout: 264 seconds]
Hobbyboy has quit [Ping timeout: 260 seconds]
sonOfRa_ has quit [Quit: Bye!]
bauruine has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
jhass has joined #ruby
blackmes1 has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
sonOfRa has joined #ruby
ferr has joined #ruby
mlehrer has quit [Quit: ZNC 1.6.2 - http://znc.in]
gbgdev has joined #ruby
Hobbyboy has joined #ruby
bauruine has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
ferr has quit [Client Quit]
anisha has joined #ruby
mlehrer has joined #ruby
clorisu has joined #ruby
Xeago has joined #ruby
pawnbox has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 252 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
mintux has joined #ruby
liquid-silence has quit [Read error: Connection reset by peer]
<mintux> when i try to run ruby on my apache server it shows source instead of excute it http://iliketech.ir/1.rb
sarlalian has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
roshanavand has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
kp666 has joined #ruby
clorisu has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
mrgrieves has joined #ruby
gbgdev has quit [Remote host closed the connection]
tomphp has joined #ruby
Chagel has joined #ruby
marr has joined #ruby
baweaver has joined #ruby
ferr has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
deduped has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
mlehrer has quit [Quit: ZNC 1.6.2 - http://znc.in]
nettoweb has joined #ruby
mlehrer has joined #ruby
araujo has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
<Ox0dea> mintux: You'll need to configure your server to interpret Ruby files as CGI scripts, but that's a really old-fashioned approach.
baweaver has quit [Ping timeout: 276 seconds]
_djbkd has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
<mintux> Ox0dea: it's my config in that virtualhost: http://codepad.org/Kyyvavyc
terlar has quit [Quit: WeeChat 1.4]
koneko has joined #ruby
koneko has quit [Client Quit]
BtcBen has quit [Ping timeout: 268 seconds]
jaruga_ has quit [Ping timeout: 244 seconds]
jaruga has quit [Ping timeout: 244 seconds]
<Ox0dea> mintux: I think you'll need something more like this: https://gist.github.com/jjulian/1860123
<Ox0dea> Do note the date on that.
clorisu has joined #ruby
pawnbox has joined #ruby
User458764 has joined #ruby
tulak has joined #ruby
_djbkd has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
tomphp has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 250 seconds]
tristanp_ has quit [Ping timeout: 276 seconds]
<b|ackwolf> what happens if a define a method that yields to nothing?
<b|ackwolf> def loop_; while true; yield; end; end
<adaedra> try and see?
terlar has joined #ruby
<b|ackwolf> I need to know what's the default yield argument.
roshanavand has joined #ruby
<Mon_Ouie> There's no such thing.
<Mon_Ouie> >> loop { |*a| break a.size }
<ruby[bot]> Mon_Ouie: # => 0 (https://eval.in/536080)
<Mon_Ouie> i.e. the block is called with 0 arguments
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
<b|ackwolf> Mon_Ouie, thanks. so it yields control to the code block, am I right?
<Mon_Ouie> Yes
LoneHerm_ has joined #ruby
roshanavand has quit [Client Quit]
poerror has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Ping timeout: 276 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
moos3 has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
vdamewood has joined #ruby
andikr has joined #ruby
roshanavand has quit [Client Quit]
emilkarl has joined #ruby
jaiks has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
moos3 has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
poerror has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
merida has joined #ruby
dgncn has quit [Excess Flood]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
tomphp has quit [Ping timeout: 276 seconds]
uglybandersnatch has joined #ruby
j2k has quit [Quit: bai]
j2k has joined #ruby
workmad3 has joined #ruby
poerror has quit [Ping timeout: 240 seconds]
dgncn has joined #ruby
blackgoat has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
vikas027 has joined #ruby
Snowy has joined #ruby
BtcBen has joined #ruby
anisha has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
n008f4g_ has joined #ruby
jaiks has joined #ruby
kent\n has quit [Ping timeout: 268 seconds]
MaienM has joined #ruby
bjpenn has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
drptbl has joined #ruby
St1gma has quit [Quit: laters]
<manveru> amazon
<manveru> damn, wrong tab
platzhirsch has joined #ruby
jaiks has quit [Remote host closed the connection]
mr_robot_ has joined #ruby
pandaant has joined #ruby
binaryplease has joined #ruby
ur5us has quit [Remote host closed the connection]
kent\n has joined #ruby
tvon has joined #ruby
jaiks has joined #ruby
ziyadb has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
frustrum has joined #ruby
tvon has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
nerium has quit [Quit: nerium]
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
frustrum has quit [Ping timeout: 260 seconds]
Takumo has quit [Quit: ZNC is going down!]
uglybandersnatch has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
mr_robot_ has joined #ruby
moeabdol2 has joined #ruby
AlexJakeGreen has joined #ruby
blackmes1 has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
<Ox0dea> What's that anonymous class that's being sent #method_added?
Prominent has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
<Ox0dea> I expected it to be the singleton class of the anonymous Module being introduced by Kernel#load, but that's not the case.
uglybandersnatch has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
moeabdol2 has quit [Client Quit]
Azure has joined #ruby
tulak_ has joined #ruby
shredding has joined #ruby
<hanmac> hey, for gem version depenency, how can i do it that both ~> 10.0 and ~> 11.0 does work?
tulak has quit [Ping timeout: 244 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
johnmilton has joined #ruby
mistermocha has joined #ruby
rodfersou has joined #ruby
pawnbox has joined #ruby
trosborn has joined #ruby
Xiti has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra> hanmac: '>= 10.0, < 12.0' ?
pawnbox has quit [Remote host closed the connection]
<hanmac> adaedra: hm that might work, or i just use ~>11.0 and force the others to update the gem ... (its only "rake" what can go wrong?) XD
mistermocha has quit [Ping timeout: 268 seconds]
bollullera has joined #ruby
<Ox0dea> adaedra, hanmac: That'd catch 11.1 and so forth.
roshanavand has joined #ruby
htmldrum has joined #ruby
<Ox0dea> (Ignore that.)
* adaedra adds Ox0dea to ignore list
<Ox0dea> I still love you.
<adaedra> :)
tvw has joined #ruby
Snowy is now known as borther
terlar has quit [Ping timeout: 276 seconds]
tesuji has joined #ruby
arlek_ has joined #ruby
jenrzzz has joined #ruby
aclearman037 has joined #ruby
mdih has joined #ruby
Chagel has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
uglybandersnatch has quit [Ping timeout: 244 seconds]
mujou has joined #ruby
pawnbox has joined #ruby
emilkarl is now known as emilkarl[away]
jenrzzz has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
aclearman037 has quit [Quit: Textual IRC Client: www.textualapp.com]
Chagel has joined #ruby
tomphp has joined #ruby
postmodern has quit [Quit: Leaving]
bry4n_ has joined #ruby
tlaxkit has joined #ruby
howdoi has joined #ruby
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
borther is now known as Snowy
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 260 seconds]
mr_robot_ has joined #ruby
bry4n_ has quit [Ping timeout: 260 seconds]
mr_robot_ has quit [Client Quit]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
emilkarl[away] has quit [Read error: Connection reset by peer]
_mak has left #ruby [".."]
emilkarl has joined #ruby
mfaeh has joined #ruby
adgtl has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
DanyC has joined #ruby
whatever has joined #ruby
whatever has quit [Client Quit]
agit0 has joined #ruby
bahar_ has quit [Ping timeout: 248 seconds]
<DanyC> Hi all, i'm a newbie on Ruby hence please bear with me. Anyone has any ideas on how can i find from a given gem pkg all the dependencies it requires ? I'm not looking only after the dem dependencies but also from the rpm side. The use case is simple: i had on a CentOS to install a gem pkg which failed because there were some missing rpms/ libs hence i'd like to find out all the req before installing it
baweaver has joined #ruby
frustrum has joined #ruby
aclearman037 has joined #ruby
davee__ has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Ping timeout: 240 seconds]
<Ox0dea> Very few gems use that field, and even fewer fill it with machine-readable values.
tomphp has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<Ox0dea> I suppose you could delegate to Arch or Gentoo packages for external dependency lists, but that'd be rather brittle.
kohvihoor has quit [Quit: WeeChat 1.0.1]
frustrum has quit [Ping timeout: 240 seconds]
trinaldi has joined #ruby
mikar has joined #ruby
ldnunes has joined #ruby
tomphp has joined #ruby
_djbkd has joined #ruby
arlek_ has quit [Ping timeout: 244 seconds]
<ujjain-> return s['lifeCycleState']
<ujjain-> return s['state']
<ujjain-> how can I make this return as an array?
ujjain- is now known as ujjain
tomphp has quit [Max SendQ exceeded]
LoneHerm_ has joined #ruby
<DanyC> Ox0dea: indeed very few use it ...hmmm, i guess there is no other option ?
tomphp has joined #ruby
Phage has joined #ruby
Phage has left #ruby ["WeeChat 1.4"]
_djbkd has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<Ox0dea> DanyC: I reckon it's on the CentOS crowd to ensure their dependency lists are correct. :/
rodfersou has quit [Read error: Connection reset by peer]
ljames has quit [Ping timeout: 276 seconds]
bricker has joined #ruby
maner has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 252 seconds]
<DanyC> Ox0dea: well yes, but i was coming from a different angle. A dev says - i need to install gem x but when i do install i mis some CentOS libraries/ rpm hence me thinking how to know what to pull from CentOS w/o waiting to fail 1st
<Ox0dea> DanyC: We've established that there's simply no way to ensure that programmatically; you'll just have to do your research.
rodfersou has joined #ruby
<DanyC> Ox0dea: okay, thank you for your help
<Ox0dea> Sure thing.
moos3 has joined #ruby
aclearman037 has quit [Quit: Textual IRC Client: www.textualapp.com]
r0bby_ is now known as robbyoconnor
pwnd_nsfw has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
moos3 has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
shredding has quit [Ping timeout: 246 seconds]
<ujjain> can somebody point me in the right direction with this? i'm trying to retunr an array based on 2 strings - http://pastebin.com/Z5UhaKpG
<ruby[bot]> ujjain: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9770fea7a0f366d1b5b4
<ruby[bot]> ujjain: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ljarvis_> ujjain: is there a problem with it?
<ujjain> ljarvis_, it looks so ugly.
<ljarvis_> ujjain: does it work as you want?
merida has quit [Remote host closed the connection]
ljames has joined #ruby
<ujjain> I haven't been able to try, it's part of a function, not sure how to test it tbh. But I'll try to test it.
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
<ljarvis_> you should work on your variable naming
theRealAlexz has joined #ruby
<AlexJakeGreen> I think the "return" is not needed. Functions always return something, for example, the last evaluation
<hanmac> ujjain: if s is a hash, why not use "values_at" ?
tomphp has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
gagrio has quit [Ping timeout: 260 seconds]
Chagel has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
stannard has quit [Remote host closed the connection]
eurialo has quit [Ping timeout: 244 seconds]
raimumizu has quit [Remote host closed the connection]
Shaboum has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
adgtl has joined #ruby
but3k4 has joined #ruby
poerror has joined #ruby
nixmaniack has joined #ruby
trosborn has quit [Quit: trosborn]
hinbody has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
synthroid has joined #ruby
joonty has joined #ruby
quakephil has joined #ruby
poerror has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
Eaven has joined #ruby
mfaeh has quit [Remote host closed the connection]
Tekneek has joined #ruby
evidex has joined #ruby
tomaw_ is now known as tomaw
gagrio has joined #ruby
duckpuppy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
htmldrum has quit [Ping timeout: 268 seconds]
Didac has joined #ruby
stannard has joined #ruby
mfaeh has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
krz has quit [Ping timeout: 264 seconds]
[afk]chocoelho is now known as chocoelho
skade has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
sandstrom has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
chocoelho is now known as [afk]chocoelho
tvon has joined #ruby
DanyC has quit []
vqrs has quit [Quit: ZNC 1.6.1 - http://znc.in]
nixmaniack has quit [Remote host closed the connection]
mfaeh has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
nixmaniack has joined #ruby
tvon has quit [Ping timeout: 276 seconds]
poerror has joined #ruby
duckpuppy has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
sepp2k has joined #ruby
sunslide has joined #ruby
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<sunslide> hi guys, this is a long shot but I'm trying to support TLS 1.2 on Ruby 1.9 where it is not supported (support for this was introduced on Ruby 2.0) *without* recompiling ruby (I have tons of workstations and most of them are Windows-based), ANY way I could do this?
vikas027 has left #ruby ["Textual IRC Client: www.textualapp.com"]
poerror has quit [Ping timeout: 240 seconds]
<hanmac> sunslide: isnt ruby1.9 already dead and unsupported?
<adaedra> it is
pawnbox has quit [Remote host closed the connection]
bricker has joined #ruby
<sunslide> it is :(
pawnbox has joined #ruby
<sunslide> but the corporate life isn't always in sync with the real world
RegulationD has joined #ruby
ruby-lang097 has joined #ruby
ruby-lang097 has quit [Client Quit]
<hanmac> are you guys still using stone cycles as calendar? ;P
bricker has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
anagha_ has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
ramortegui has joined #ruby
cpup has joined #ruby
nixmaniack has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 248 seconds]
joonty has quit [Ping timeout: 246 seconds]
sarlalian has joined #ruby
stannard has joined #ruby
sunslide has quit [Ping timeout: 252 seconds]
<shevy> hah
<shevy> he showed you his contempt by abandoning you hanmac!
pawnbox has quit [Remote host closed the connection]
<hanmac> maybe its stone cycle did stop working?
tacit7 has joined #ruby
avenj has quit [Ping timeout: 268 seconds]
gagrio has quit [Ping timeout: 252 seconds]
stannard has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
jenrzzz has joined #ruby
sandstrom has joined #ruby
joonty has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Takumo has joined #ruby
Takumo has joined #ruby
haylon has joined #ruby
steffkes has quit [Read error: No route to host]
nando293921 has joined #ruby
B4daBing73 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
cdg has joined #ruby
pawnbox has joined #ruby
cdg has quit [Remote host closed the connection]
<shevy> no I think these are usually people who do not use ruby a lot
cdg has joined #ruby
tomphp has quit [Ping timeout: 276 seconds]
<shevy> even I managed to upgrade!
bkxd has joined #ruby
binaryplease has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
mfaeh has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
bry4n_ has joined #ruby
bjpenn has joined #ruby
djcp has joined #ruby
davedev24 has joined #ruby
mistermocha has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
terlar has joined #ruby
<shevy> risk it with a biscuit
aegis3121 has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
<pwnd_nsfw> Ricuit
freerobby has quit [Quit: Leaving.]
B4daBing73 has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 268 seconds]
bjpenn has quit [Ping timeout: 248 seconds]
bry4n_ has quit [Ping timeout: 268 seconds]
PedramT has quit [Ping timeout: 240 seconds]
PedramT has joined #ruby
gagrio has joined #ruby
steffkes has joined #ruby
codecop has quit [Remote host closed the connection]
TomyLobo has joined #ruby
Shaboum has quit [Quit: WeeChat 1.4]
Eaven has joined #ruby
Guest34101 has joined #ruby
ziyadb has joined #ruby
baweaver has joined #ruby
frustrum has joined #ruby
kies has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
momomomomo has joined #ruby
mfaeh has quit [Remote host closed the connection]
jaiks has quit [Ping timeout: 248 seconds]
bjpenn has joined #ruby
<manveru> shevy: congrats
shredding has joined #ruby
<manveru> you are on 1.8.4 now?
crystal77 has joined #ruby
tacit7 has joined #ruby
frustrum has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 250 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<shevy> ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
aclearman037 has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
bjpenn has quit [Ping timeout: 276 seconds]
mfb2 has quit [Remote host closed the connection]
<hanmac> >> require "date"; "%d days" % (Date.today - Date.parse(RUBY_RELEASE_DATE)) #=> returns 0 for me ;P
<ruby[bot]> hanmac: # => "80 days" (https://eval.in/536248)
mfb2 has joined #ruby
mistermocha has quit [Remote host closed the connection]
jottr_ has joined #ruby
Shantell has joined #ruby
poerror has joined #ruby
Shantell has left #ruby [#ruby]
chouhoulis has quit [Remote host closed the connection]
mfaeh has joined #ruby
mintux has left #ruby [#ruby]
mfb2 has quit [Remote host closed the connection]
sergey_makagon has joined #ruby
Shaboum has joined #ruby
`tim` has joined #ruby
govg has joined #ruby
vdamewood has quit [Quit: Life beckons.]
jaiks has joined #ruby
Zackio has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
bMalum_ has joined #ruby
poerror has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
Xeago has quit [Remote host closed the connection]
tristanp has joined #ruby
zotherstupidguy has joined #ruby
nixmaniack has joined #ruby
bMalum_ has quit [Client Quit]
bMalum has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
mfb2 has joined #ruby
nixmaniack has quit [Ping timeout: 252 seconds]
PedramT has quit [Read error: Connection reset by peer]
saneax is now known as saneax_AFK
clorisu has quit [Quit: Leaving]
clorisu has joined #ruby
juanfra has quit [Disconnected by services]
Zackio has joined #ruby
tvon has joined #ruby
clorisu has quit [Client Quit]
juanfra_ has joined #ruby
clorisu has joined #ruby
nixmaniack has joined #ruby
nixmaniack has joined #ruby
clorisu has quit [Client Quit]
clorisu has joined #ruby
PedramT has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clorisu has quit [Client Quit]
clorisu has joined #ruby
bMalum has joined #ruby
codecop_ has joined #ruby
clorisu has quit [Client Quit]
freerobby has joined #ruby
clorisu has joined #ruby
clorisu has quit [Remote host closed the connection]
clorisu has joined #ruby
tomphp has joined #ruby
griffindy has joined #ruby
malconis has joined #ruby
clorisu has quit [Client Quit]
tulak_ has quit [Remote host closed the connection]
tulak has joined #ruby
adgtl has quit [Remote host closed the connection]
mistermocha has joined #ruby
tacit7 has quit [Remote host closed the connection]
inukshuk_ has joined #ruby
nixmaniack has quit [Ping timeout: 244 seconds]
PedramT has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
idletask has quit [Ping timeout: 240 seconds]
idletask has joined #ruby
floatingpoint has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
bjpenn has joined #ruby
inukshuk_ has quit [Quit: leaving]
xaxisx has joined #ruby
momomomomo has quit [Quit: momomomomo]
frustrum has joined #ruby
bjpenn has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
poerror has joined #ruby
synthroid has quit [Remote host closed the connection]
mary5030 has joined #ruby
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :verne.freenode.net"]
failshell has joined #ruby
aclearman037 has quit [Quit: Textual IRC Client: www.textualapp.com]
crime has joined #ruby
mary5030_ has joined #ruby
tvon has quit [Remote host closed the connection]
vqrs has joined #ruby
<shevy> hanmac python climbed higher than php! http://www.tiobe.com/tiobe_index
tvon has joined #ruby
<shevy> ruby still battles it out with perl
troulouliou_div2 has joined #ruby
<hanmac> normally i do not care about tiobe, but now i point and laugh at php ;P
mary5030 has quit [Ping timeout: 240 seconds]
<shevy> haha
merida has joined #ruby
tulak has quit []
<shevy> the only mildly depressing thing is that ruby isn't higher there
Prominent has quit [Ping timeout: 268 seconds]
bry4n_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
merida has quit [Remote host closed the connection]
mary5030_ has quit [Ping timeout: 246 seconds]
merida has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
jyaworski has joined #ruby
aryaching has joined #ruby
<crime> its just a measure of backlinks. it doesnt actually mean anything
mallu has joined #ruby
bjpenn has joined #ruby
myntcake has joined #ruby
fullofcaffeine has joined #ruby
Linell has joined #ruby
krz has joined #ruby
xaxisx has quit [Quit: xaxisx]
<Linell> I'm working on an image uploading web service. When I get the image file, it's a string. How can I check the file type from that? Like png vs jpeg?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
frustrum has quit [Quit: WeeChat 1.2]
jottr_ has quit [Quit: WeeChat 1.4]
Prominent has joined #ruby
chouhoulis has joined #ruby
xaxisx has joined #ruby
govg has quit [Quit: leaving]
mary5030_ has joined #ruby
<shevy> on linux I tend to just ask "file"
<shevy> if you want to have it even more primitive, you could use File.extname :D
bjpenn has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
<Linell> Well I've tried making the string into a file and it gives an error because of a null byte
<Linell> Doing something like File.new('test', file_string)
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
momomomomo has joined #ruby
steffkes has quit [Read error: No route to host]
gbgdev has quit [Remote host closed the connection]
frustrum has joined #ruby
momomomomo has quit [Client Quit]
freakcoder has joined #ruby
xaxisx_ has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
xaxisx has quit [Ping timeout: 240 seconds]
xaxisx_ is now known as xaxisx
nixmaniack has joined #ruby
pawnbox has joined #ruby
failshell has quit [Remote host closed the connection]
<TomyLobo> I have an url and I want to retrieve whatever comes from that url and store it in a file on disk and write it as a response in a sinatra app. All of this without having the entire thing in memory at some point and without having the sinatra app's client time out while waiting for the download to finish.
tvon has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TomyLobo> also i dont want to write the copy loop myself. I found IO.copy_stream, now i probably need a stream multiplexer of some kind
axl_ has joined #ruby
tvon has joined #ruby
<TomyLobo> i.e. an output stream that writes to two output streams when it's written to
binaryplease has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
aclearman037 has joined #ruby
lxsameer has quit [Quit: Leaving]
whippythellama has joined #ruby
Mon_Ouie has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
_djbkd has joined #ruby
<TomyLobo> is there such a thing?
xaxisx has quit [Quit: xaxisx]
tvon has quit [Ping timeout: 244 seconds]
treehug88 has joined #ruby
speakingcode has joined #ruby
xaxisx has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
_djbkd has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
trosborn has joined #ruby
bjpenn has joined #ruby
bricker has joined #ruby
frustrum has quit [Quit: WeeChat 1.2]
frustrum has joined #ruby
trosborn has quit [Client Quit]
frustrum has quit [Client Quit]
frustrum has joined #ruby
mary5030_ has joined #ruby
LoneHerm_ has joined #ruby
RegulationD has joined #ruby
ariel_17 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
boogibugs has joined #ruby
_joes__ has joined #ruby
krz has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
synthroid has joined #ruby
nofacade has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
bricker has quit [Ping timeout: 248 seconds]
eurialo has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
mistermocha has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
pawnbox has quit [Remote host closed the connection]
mallu has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tvon has joined #ruby
tomphp has joined #ruby
aegis3121 has quit [Ping timeout: 268 seconds]
avenj has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
Xeago has joined #ruby
momomomomo has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
aegis3121 has joined #ruby
aegis3121 has quit [Client Quit]
bricker has joined #ruby
nanoz has joined #ruby
weemsledeux has joined #ruby
pzula has joined #ruby
rkazak has joined #ruby
krz has joined #ruby
mostlybadfly has joined #ruby
htmldrum has joined #ruby
crowell has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
freakcoder has quit [Quit: Leaving.]
maner has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
nofacade has quit [Ping timeout: 276 seconds]
mfb2 has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
crowell has joined #ruby
mfb2 has joined #ruby
ta_ has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 276 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
failshell has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
pawnbox has joined #ruby
rubie has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
merida has quit [Remote host closed the connection]
tvon has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
merida has joined #ruby
mfb2 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mfb2 has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
zotherstupidguy has joined #ruby
pawnbox has joined #ruby
x77686d has joined #ruby
ItSANgo has joined #ruby
fostertheweb has joined #ruby
momomomomo has quit [Quit: momomomomo]
bricker has joined #ruby
DmitryBochkarev has joined #ruby
andrewvos has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
dionysus69 has joined #ruby
bMalum has quit [Ping timeout: 276 seconds]
digitalcakes has joined #ruby
<ujjain> hanmac , thanks, values_at is great, sorry, I'm still fairly new
Linell has left #ruby [#ruby]
momomomomo has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
momomomomo has quit [Client Quit]
shaman42 has quit [Ping timeout: 268 seconds]
boogibugs has quit [Remote host closed the connection]
bleh has joined #ruby
<bleh> Hey there, I'd like to download all the gems from Rubygems, any magic command ? Thanks
astrobun_ has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
slawrence00 has joined #ruby
Xeago has joined #ruby
astrobun_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
Scriptonaut has joined #ruby
<Scriptonaut> Hey guys, I'm sending a json object that contains a nested array to my rack server with ajax. I end up with a hash, that contains another hash with numbers as the keys (strings). How can I make it give me an actual array?
<Scriptonaut> so, for example, the object that I send is: { layout: my_array }, and on the server side I do: request.params["layout"], and then from there if I want the first row, I do: request.params["layout"]["1"]
amundj has joined #ruby
<Scriptonaut> how do I make that: request.params["layout"][0]
<shevy> bleh weird... I have an old snippet here: Gems.gem("") but this no longer seems to work.. or perhaps it never worked. If you can obtain a list of all gems, you can batch-install them
mallu has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
<shevy> on the commandline it would be "gem list --remote"
mfb2 has quit []
Jackneill has joined #ruby
<bleh> shevy: I have their name using gem list --remote, how do I batch download them now ? (no need to install, just download)à
naftilos76 has joined #ruby
<adaedra> why would you do that
dhollinger has joined #ruby
podman_ is now known as podman
<shevy> bleh first you get the name, e. g. split on "\n", then split the array on ' '. now you have an array with names... the command to install a gem would be "gem install NAME_HERE"... not sure what the fetch-only option is hmm
<shevy> bleh ah it is "gem fetch"
theunraveler has joined #ruby
solars has quit [Ping timeout: 248 seconds]
AlexJakeGreen has quit [Quit: Leaving]
jyaworski has quit [Quit: jyaworski]
shaman42 has joined #ruby
Xeago has quit [Remote host closed the connection]
crime has quit [Ping timeout: 252 seconds]
n008f4g_ has joined #ruby
tvon has quit [Remote host closed the connection]
<the_drow> Hi, how do I get the value of the nth item in an array or nil instead of an exception?
<tobiasvl> >> a = []; a[0]
<ruby[bot]> tobiasvl: # => nil (https://eval.in/536321)
<b|ackwolf> is there any difference between self.var and @var in initialize method?
<tobiasvl> the_drow: was that what you wanted?
<the_drow> oh yeh
<the_drow> no exception on non-existent items?
<the_drow> That's dangerous.
<the_drow> Good to know. Thanks
frustrum has quit [Quit: WeeChat 1.2]
<bleh> Thanks shevy ;)
sesquipedalian has quit [Ping timeout: 240 seconds]
bleh has left #ruby [#ruby]
frustrum has joined #ruby
frustrum has quit [Client Quit]
B3rg3lm1r has joined #ruby
<tobiasvl> the_drow: docs say you should use Array#fetch if you want an IndexError
B3rg3lm1r has quit [Client Quit]
tvon_ has joined #ruby
failshell has joined #ruby
<the_drow> another reason why I prefer python...
<the_drow> nevermind
bricker has joined #ruby
<adaedra> If you prefer python, go do python.
<the_drow> My day job is ruby currently
mistermocha has joined #ruby
shaman42 has quit [Ping timeout: 248 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jyaworski_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ivki has joined #ruby
jyaworski_ is now known as jyaworski
shinnya has joined #ruby
<ivki> Hello, I'm using rake for the installation of the puppetdashboard and I've an issue with a gem.
blandflakes has joined #ruby
<ivki> Can anyone help me?
<adaedra> If you tell us more, maybe
Uber|Dragon has joined #ruby
<ivki> I have this instruction
<ivki> bundle exec rake secret
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<ivki> while executing it, I've this error
<ivki> "rake aborted!
<ivki> There was an error while trying to load the gem 'uglifier'."
<adaedra> did you run `bundle install` before?
<ivki> and the gem 'uglifier' is well specified in the Gemfile
liquid-silence has joined #ruby
liquid-silence has joined #ruby
<ivki> yes, I did
<adaedra> without errors?
<ivki> nope!
<ivki> the last message was "Bundle complete! 30 Gemfile dependencies, 66 gems now installed.
<ivki> Bundled gems are installed into ./vendor/bundle.
<ivki> "
sneakerhax has quit [Ping timeout: 248 seconds]
<adaedra> is that the whole error?
astrobun_ has quit [Remote host closed the connection]
<adaedra> well, whole output
<ivki> The whole error is : "rake aborted!
<adaedra> (for secret)
<ivki> There was an error while trying to load the gem 'uglifier'.
baweaver has quit [Remote host closed the connection]
<ivki> Sorry
dikaio has joined #ruby
<ivki> The whole error was:
<ivki> rake aborted!
<ivki> There was an error while trying to load the gem 'uglifier'.
<adaedra> And there's no other output?
<ivki> "/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:81:in `rescue in block (2 levels) in require'"
<ivki> "/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'"
<ivki> "/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'"
aufi has quit [Ping timeout: 276 seconds]
<ivki> "/var/lib/gems/1.9.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'"
<adaedra> err, don't paste evrything here
<adaedra> use gist.github.com with all output from the command
Xeago has joined #ruby
<andrewvos> ominous
Blaguvest has joined #ruby
<adaedra> weird
nixmaniack has quit [Remote host closed the connection]
<andrewvos> gem uninstall uglifier && bundle install
bjpenn has joined #ruby
aganov has quit [Remote host closed the connection]
decoponio has joined #ruby
dikaio has quit [Remote host closed the connection]
<ivki> andrewvos: I've the same isssue :/
mistermocha has quit [Remote host closed the connection]
dikaio has joined #ruby
[Butch] has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
console has quit [Quit: gone]
mistermocha has joined #ruby
icarus has joined #ruby
<andrewvos> you sure that's the whole error you pasted?
<ivki> yes, the last line is just "(See full trace by running task with --trace)"
aufi has joined #ruby
kappy_ has quit [Quit: Lost terminal]
<ivki> andrewvos: and when I use the option --trace I've this https://gist.github.com/anonymous/7653e3ddb2246e1c5fd0
gbgdev has quit [Remote host closed the connection]
amclain has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
<andrewvos> oh so it's a rails app
the_drow has quit [Quit: This computer has gone to sleep]
<andrewvos> that gem is only available in the :assets group
Xeago has quit [Remote host closed the connection]
<andrewvos> just run rake secret
freakcoder has joined #ruby
hxegon has joined #ruby
<andrewvos> should work
<andrewvos> or move uglifer to group :development in Gemfile and `bundle install`
icarus has quit [Ping timeout: 246 seconds]
mary5030_ has quit [Remote host closed the connection]
<andrewvos> I think the latter might be the only option
mary5030 has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
<ivki> runing rake secret is not working, I'm going to test your second idea
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<andrewvos> or, and I'm spitballing here: `RAILS_ENV=assets bundle exec rake secret`
<shevy> rake the secret, rake the secret!
<shevy> my precious
blandflakes has joined #ruby
<andrewvos> precious install commands
<shevy> :)
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
mhoungbo has quit [Ping timeout: 248 seconds]
freakcoder has quit [Ping timeout: 264 seconds]
marxarelli has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
stannard has quit [Ping timeout: 246 seconds]
<ivki> tried both, and I've an new error
tvon_ has quit []
tvon has joined #ruby
<andrewvos> pray tell
sergey_m_ has joined #ruby
<ivki> the same but with
<ivki> the same as the first one but with the gem execjs
freakcoder has joined #ruby
sergey_m_ has quit [Remote host closed the connection]
Xeago has joined #ruby
<andrewvos> did you try my RAILS_ENV thing above?
<ivki> yes
jas02 has quit [Quit: jas02]
<andrewvos> hehe
<andrewvos> ok
<andrewvos> move EVERY gem out of there
<andrewvos> get rid of everything resembling a group in that gemfile
<andrewvos> then bundle install
codecop_ has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
pzula has quit [Ping timeout: 244 seconds]
<andrewvos> weird
<andrewvos> you shouldn't be seeing this issue
n008f4g_ has quit [Ping timeout: 250 seconds]
<andrewvos> something is wrong with your bundler
sergey_makagon has quit [Ping timeout: 244 seconds]
<andrewvos> you're probably using something evil like rvm. Maybe open a new terminal and try rake in there
<andrewvos> or jiggle your ruby version manager
melter has quit [Quit: Client exiting]
Uber|Dragon has quit [Ping timeout: 246 seconds]
<ivki> already tried
_djbkd has joined #ruby
melter has joined #ruby
kies has joined #ruby
<ivki> thanks for the help anyway
ramortegui has quit [Quit: Ex-Chat]
pietr0 has joined #ruby
mhoungbo has joined #ruby
sandstrom has joined #ruby
<shevy> weaksauce lookie!!! ^^^ evil! bundler and debian I assume
boogibugs has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
krz has quit [Ping timeout: 268 seconds]
P1ro has left #ruby [#ruby]
rasalghul has joined #ruby
Xeago has quit [Remote host closed the connection]
binaryplease has joined #ruby
LoneHerm_ has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
crowell has quit [Ping timeout: 260 seconds]
treehug88 has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
treehug88 has joined #ruby
skade has joined #ruby
<boogibugs> Hi, can someone help with a query about how ruby modules work. I dont use it a lot myself but I am using a vagrant repo from github and it keeps giving me 2 errors depending on what i comment out from the .rb file: unintilised Message: NameError: uninitialized constant VagrantPlugins::ProviderVirtualBox::Action::ShareFolders, NameError: uninitialized constant Vagrant::Action::Builtin::NFS. I have installed a vagrant plugin called bindfs which
<boogibugs> should deal with this part but it never works and if i comment out both then the second server doesn't run as it needs shared folders somehow. I have tried searching online and most of the results say install the bindfs plugin which I already had. I have tried asking over in vagrant channel, no answer there.
stannard has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Xeago has joined #ruby
elaptics is now known as elaptics`away
chouhoulis has joined #ruby
armyriad has joined #ruby
<shevy> the constant names seem weird
n008f4g_ has joined #ruby
<shevy> you have a base Vagrant, and a separate VagrantPlugins?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
LoneHerm_ has quit [Ping timeout: 240 seconds]
<boogibugs> shevy, thats the issue I am not sure what should or shouldnt work. I ca nfidn some of those mdules i nrb file i nthe repo and then some of them in the /usr/share/vagrant folder but not sur eof difference
sesquipedalian has joined #ruby
sdothum has joined #ruby
<boogibugs> basically if i comment out those 2 constants the fist machine will build but the second wont as it uses sharedfolders.
<shevy> is your keyboard also broken :P
Xeago has quit [Remote host closed the connection]
<shevy> I don't know how vagrant is setup
Xeago has joined #ruby
<boogibugs> yeah sorry... dyslexic fingers... :P
rkazak has joined #ruby
<shevy> but the error just seems off; Vagrant should be the base namespace right? so it would make no sense to have a second namespace called VagrantPlugins
<shevy> more logical would be Vagrant::Plugins
_djbkd has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<boogibugs> ok maybe i should change the code then...file is here: https://github.com/blueboxgroup/razor-vagrant-lab and the file I am talking about here: https://github.com/blueboxgroup/razor-vagrant-lab/blob/master/lib/lab/vagrant_middleware.rb
emesa has quit [Ping timeout: 248 seconds]
<boogibugs> Vagrant:: and VagrantPlugins:: arementioned
tacit7 has joined #ruby
<shevy> wow that is pretty awful
krz has joined #ruby
rkazak_ has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
rkazak_ is now known as rkazak
Guest38 has joined #ruby
<shevy> the author is not using ruby a lot right?
SCHAAP137 has quit [Remote host closed the connection]
<boogibugs> well you can tell me that I dont know ruby very well myself
skade has quit [Quit: Computer has gone to sleep.]
sneakerhax has joined #ruby
fryguy has joined #ruby
FooMunki has joined #ruby
<boogibugs> basically i just want to see how razor works...this has been the best so far most of the repos on github fail to install or are all very old ones
<shevy> I dunno, it just seems so weird
<shevy> a toplevel array constant MIDDLEWARE that gathers some other constant names that are named inconsistently like Vagrant::Action::Builtin::SetHostname and then VagrantPlugins::ProviderVirtualBox::Action::CheckGuestAdditions
crowell has joined #ruby
<fryguy> I just upgraded to openssl 1.0.2g and now my ruby builds fail with ossl_ssl.c:137:27: error: ‘SSLv3_method’ undeclared here (not in a function). specifically 2.1.0, but other versions as well. Is there a known patch around for compiling against the latest openssl?
ascarter has joined #ruby
kies has quit [Ping timeout: 252 seconds]
<boogibugs> shevy, so are those valid or not or just bad coding?
<shevy> the ultimate authority over the validity of code is the ruby parser
Macaveli has joined #ruby
fmcgeough has joined #ruby
liquid-silence has quit [Read error: Connection reset by peer]
d0nn1e has quit [Ping timeout: 276 seconds]
<shevy> boogibugs from your error, let's ignore Vagrant for a moment, a given .rb file (if you can call/use it) should specify all its required dependencies, by pulling in the respective files at hand
<boogibugs> shevy, package name ruby-lint or something along those lies?
symm- has joined #ruby
<boogibugs> ok
<shevy> you can get an uninitialized constant error only if you did not define that constant before; in the context of vagrant, you must not have loaded/required the file where these constants are defined
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I don't know where these files are defined... does vagrant not tell you how to load addons? I could not imagine that you could get an error like you showed above if you would pull in the required files/constants in these files
rkazak has quit [Ping timeout: 244 seconds]
zworks has joined #ruby
tomchapin has joined #ruby
treehug88 has quit [Ping timeout: 248 seconds]
d0nn1e has joined #ruby
dionysus69 has joined #ruby
<boogibugs> shevy, I think its down to having vagrant plugins installed, all the ones mentioned in the git repo readme, i have installed
<zworks> I wrote a script in ruby with nokogiri to extract data from a website, but the process gets killed at the middle due to memory shortage
emesa has joined #ruby
frustrum has joined #ruby
<zworks> if i use functions to do the process , will the objects inside the functions will be freed at the end of the function ?
frustrum has quit [Client Quit]
<shevy> zworks do you have the code?
<zworks> shevy: yep
baweaver has joined #ruby
ivki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Xeago has quit [Remote host closed the connection]
<havenwood> fryguy: Always use the latest TEENY version of Ruby for whatever MAJOR.MINOR you're on.
chipotle has quit [Max SendQ exceeded]
<boogibugs> all the vbox ruby files i can find are here: /usr/share/vagrant/plugins/providers/virtualbox/
nettoweb has joined #ruby
djbkd has quit [Remote host closed the connection]
<havenwood> fryguy: So 2.1.8 in the case of Ruby 2.1.
dionysus69 has quit [Remote host closed the connection]
<havenwood> fryguy: Any Ruby that came out after that OpenSSL will do, but use the latest anyways.
djbkd has joined #ruby
<shevy> boogibugs no real idea how vagrant loads up these files sorry
nettoweb has quit [Max SendQ exceeded]
frustrum has joined #ruby
<shevy> zworks hmm something must hog up memory in your code
jottr has joined #ruby
frustrum has quit [Client Quit]
nettoweb has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
shredding has quit [Ping timeout: 248 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
xaxisx has left #ruby [#ruby]
helpa has joined #ruby
norc__ has joined #ruby
<boogibugs> shevy, ok thanks for your time.
<havenwood> zworks: You can see how many times garbage has been collected with `GC.count` or trigger a collection yourself with `GC.start` to increment the count.
frustrum has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
kies has joined #ruby
mjuszczak has joined #ruby
Xeago has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<havenwood> zworks: Or look at the count of objects and such with ObjectSpace.
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
andikr has quit [Read error: Connection reset by peer]
bollullera has quit [Excess Flood]
failshell has quit [Remote host closed the connection]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
frustrum has quit [Client Quit]
<boogibugs> how about a ruby parser tool i can use on this code to check sanity or it?
<zworks> havenwood: where i can put that code?
freakcoder has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
<boogibugs> s/or/of
<havenwood> zworks: In your REPL. Put `require 'pry'` in a file then at the part you're curious about put a `binding.pry`. It'll jump out to the REPL, where you can look at the GC and ObjectSpace.
aufi has quit [Ping timeout: 252 seconds]
<havenwood> ?pry zworks
<ruby[bot]> zworks: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
davedev24 has quit [Remote host closed the connection]
rasalghul has quit [Quit: Leaving]
freakcoder has joined #ruby
ljarvis_ is now known as ljarvis
htmldrum has joined #ruby
nando293921 has joined #ruby
<boogibugs> havenwood, ty
treehug88 has joined #ruby
adgtl has quit [Remote host closed the connection]
Couch has quit [Ping timeout: 248 seconds]
Prominent has quit [Ping timeout: 244 seconds]
andrewvos has quit [Ping timeout: 244 seconds]
FooMunki has quit [Quit: FooMunki]
juanca_ has joined #ruby
chipotle has quit [Max SendQ exceeded]
ta_ has joined #ruby
frustrum has joined #ruby
adgtl has joined #ruby
frustrum has quit [Client Quit]
DoubleMalt has quit [Remote host closed the connection]
rubie has quit []
frustrum has joined #ruby
chipotle has joined #ruby
mfaeh has quit []
mdih has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
mrgrieves has quit [Ping timeout: 240 seconds]
<boogibugs> I guess this is not good: 8 files inspected, 191 offenses detected
frustrum has quit [Client Quit]
frustrum has joined #ruby
sandstrom has joined #ruby
frustrum has quit [Client Quit]
frustrum has joined #ruby
diegoviola has joined #ruby
jenrzzz has joined #ruby
frustrum has quit [Client Quit]
crime has joined #ruby
crime has quit [Client Quit]
frustrum has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
FooMunki has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
roshanavand has quit [Quit: This computer has gone to sleep]
frustrum has quit [Client Quit]
<shevy> most of these offenses will be very minor and harmless
<shevy> you could copy the code to another directory, then run rubocop with the --autocorrect functionality
jenrzzz has quit [Ping timeout: 244 seconds]
<shevy> sorry, --auto-correct
<Papierkorb> git add --patch ftw
Xeago has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 264 seconds]
elico1 has joined #ruby
mikar has joined #ruby
crime has joined #ruby
trosborn has quit [Quit: trosborn]
[afk]chocoelho is now known as chocoelho
<crime> `gem search ""`.split("\n").each {|line| `gem fetch #{line.split(' ')[0]}}
baweaver has joined #ruby
<crime> that should do it
baweaver has quit [Remote host closed the connection]
toretore has joined #ruby
baweaver has joined #ruby
dionysus69 has joined #ruby
gbgdev has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
emesa has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
ferr has quit [Quit: WeeChat 1.4]
aclearman037 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 250 seconds]
gbgdev has joined #ruby
adgtl has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 260 seconds]
nw has joined #ruby
zotherstupidguy has joined #ruby
freerobby has quit [Quit: Leaving.]
Snowy has quit [Quit: ragequit]
nixmaniack has joined #ruby
crime has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 268 seconds]
SCHAAP137 has joined #ruby
cuckingfunt has joined #ruby
trosborn has joined #ruby
platzhirsch has left #ruby [#ruby]
User458764 has joined #ruby
poerror has quit [Ping timeout: 268 seconds]
zotherstupidguy has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
failshell has joined #ruby
govg has joined #ruby
shaman42 has joined #ruby
baweaver has quit [Remote host closed the connection]
drale2k has quit [Ping timeout: 260 seconds]
TvL2386 has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
baweaver has joined #ruby
drale2k has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
davedev24 has joined #ruby
systemsgotyou has quit [Ping timeout: 248 seconds]
systemsgotyou has joined #ruby
sandstrom has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
babblebre has joined #ruby
ariel_17 has left #ruby ["WeeChat 1.1.1"]
crime has joined #ruby
norc__ has quit [Ping timeout: 268 seconds]
trinaldi has quit [Ping timeout: 264 seconds]
Sucks has joined #ruby
freakcoder has quit [Quit: Leaving.]
nanoz has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
mclee has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
but3k4 has quit [Ping timeout: 244 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
B3rg3lm1r has joined #ruby
adgtl has joined #ruby
crime has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
bjpenn has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
gmas has quit [Ping timeout: 260 seconds]
DmitryBochkarev has joined #ruby
silverdust has quit [Ping timeout: 260 seconds]
but3k4 has joined #ruby
matp has quit [Excess Flood]
silverdust has joined #ruby
silverdust is now known as Guest36266
frustrum has joined #ruby
baweaver has quit [Remote host closed the connection]
trinaldi has joined #ruby
gmas has joined #ruby
Guest34101 has quit [Ping timeout: 248 seconds]
frustrum has quit [Client Quit]
aclearman037 has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
j2k has quit [Ping timeout: 250 seconds]
mclee has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
akae has joined #ruby
freerobby has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
j2k has joined #ruby
bjpenn has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
firstdayonthejob has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
mdw has joined #ruby
TvL2386 has joined #ruby
_blizzy_ has joined #ruby
joonty has joined #ruby
pawnbox has joined #ruby
fexilal has joined #ruby
baweaver has joined #ruby
jinie has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
davedev24 has quit [Remote host closed the connection]
yosafbridge has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
Guest36266 has quit [Ping timeout: 260 seconds]
isene has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
isene has joined #ruby
malcolmva has quit [Quit: Leaving]
joonty has quit [Ping timeout: 244 seconds]
jinie has joined #ruby
darkf has joined #ruby
igam has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
yosafbridge has joined #ruby
merida has quit [Remote host closed the connection]
Ishido has joined #ruby
merida has joined #ruby
mdw_ has joined #ruby
B3rg3lm1r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
B3rg3lm1r has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
matp has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
ascarter has joined #ruby
wldcordeiro has joined #ruby
tenlittleniggreb has joined #ruby
ascarter_ has joined #ruby
arlek_ has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
tvon has quit [Ping timeout: 244 seconds]
cuckingfunt has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
icarus has joined #ruby
Tekneek has quit [Quit: Leaving]
elifoster has joined #ruby
cdg has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
diegoviola has quit [Quit: WeeChat 1.4]
arlek_ has quit [Ping timeout: 248 seconds]
avahey has joined #ruby
govg has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
govg has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
govg has joined #ruby
Shaboum has joined #ruby
gregf has joined #ruby
pawnbox has joined #ruby
Ishido has quit [Remote host closed the connection]
Shaboum has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
last_staff has joined #ruby
pawnbox has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Ishido has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
B3rg3lm1r has quit [Remote host closed the connection]
B3rg3lm1r has joined #ruby
govg has quit [Quit: leaving]
tacit7 has joined #ruby
tvon has joined #ruby
poerror has joined #ruby
nofxx has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
govg has joined #ruby
jottr_ has joined #ruby
tenlittleniggreb has quit [Quit: Page closed]
govg has quit [Client Quit]
govg has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
poerror has quit [Ping timeout: 260 seconds]
intrigueD has joined #ruby
sesquipedalian has quit [Ping timeout: 252 seconds]
forgot has quit [Quit: Lost terminal]
B3rg3lm1r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Blaguvest has quit []
Prominent has joined #ruby
arlek_ has joined #ruby
shakes has joined #ruby
baweaver has joined #ruby
poerror has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
jottr has joined #ruby
niksrc has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 240 seconds]
fryguy has left #ruby [#ruby]
poerror has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 244 seconds]
B3rg3lm1r has joined #ruby
mhoungbo has quit [Ping timeout: 244 seconds]
<alexherbo2> Hi
evie_hammond has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Client Quit]
troulouliou_dev has joined #ruby
User458764 has joined #ruby
<alexherbo2> How capture stdout of system command?
B3rg3lm1r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> alexherbo2 popen
<alexherbo2> (I need a TTY to run my editor in the terminal)
uglybandersnatch has quit [Ping timeout: 252 seconds]
<adaedra> multiple ways
jenrzzz has joined #ruby
<alexherbo2> shevy: I will look at thanks
<adaedra> You have popen, you have IO.open
merqlove has joined #ruby
B3rg3lm1r has joined #ruby
<shevy> also result = `ls` and result = `ls 2>&1`
<shevy> \o/
trosborn has quit [Quit: trosborn]
endash has joined #ruby
sepp2k has joined #ruby
ascarter has joined #ruby
<alexherbo2> shevy: `` will no work I need stdout as a tty
Felix444 has joined #ruby
<alexherbo2> `kak`
<alexherbo2> or `vim`
joonty has joined #ruby
<adaedra> ah, this is completely different here
<adaedra> alexherbo2: what are your trying to do here?
reaVer has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jenrzzz has quit [Ping timeout: 264 seconds]
Prominent has quit [Read error: Connection reset by peer]
<shevy> he is up to no good!
Prominent has joined #ruby
<alexherbo2> adaedra: a file editor which reads on stdin.
KnownSyntax has quit [Ping timeout: 240 seconds]
<adaedra> alexherbo2: but why do you need to capture the output? What will you do with this output?
<alexherbo2> find . | fe sed s/' '/_/g
<alexherbo2> rename all files with space by _
joonty has quit [Ping timeout: 268 seconds]
<alexherbo2> `fe` run sed which reads stdin, i need capture its output
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<alexherbo2> I would `fe` works interactively too
<alexherbo2> with my editor
<alexherbo2> find . | fe kak
<alexherbo2> Kakoune can read on stdin and output to stdout juste like sed
tomphp has joined #ruby
<adaedra> I don't see where the editor comes to play here
<alexherbo2> `kak` it the editor
<endash> Is there a way to skip ahead with a lazy enumerator? Lazy::Enumerator#drop still calculates the value before throwing it away, which is potentially very expensive
<alexherbo2> xD
<alexherbo2> is*
<adaedra> ah
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<adaedra> endash: that would go against Enumerator
<alexherbo2> it works with: system "kak"
<alexherbo2> but not with `kak`
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
sesquipedalian has joined #ruby
tomphp has quit [Client Quit]
<adaedra> because in the first, you don't capture output, so it uses ruby's output, which is your current terminal
govg has quit [Quit: leaving]
<alexherbo2> How deal with that?
govg has joined #ruby
<adaedra> I'm still not sure what you're trying to do, sorry
<adaedra> you have an editor which takes some input?
<alexherbo2> yes
<adaedra> or are you trying to create a command which takes input and inject it into your editor?
intrigueD has quit [Remote host closed the connection]
baweaver has joined #ruby
<alexherbo2> not sure to understand xD
<alexherbo2> I want simply do
Ishido has joined #ruby
<alexherbo2> find . | fe kak
<alexherbo2> kak reads stdin
<adaedra> what's fe
tvw has quit [Ping timeout: 246 seconds]
<alexherbo2> `fe` is the script I try to write
<adaedra> if kak reads stdin, why not just do `find . | kak` ?
<alexherbo2> kak reads stdin in a buffer
<alexherbo2> then when :write
Prominent has quit [Quit: Leaving]
<alexherbo2> it output
<alexherbo2> to stdout
jrafanie has quit [Ping timeout: 260 seconds]
<alexherbo2> when :quit
krz has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
<alexherbo2> I want capture kak output
SenpaiSilver has joined #ruby
<adaedra> all output?
<alexherbo2> yes why?
SenpaiSilver has quit [Client Quit]
krz has joined #ruby
<adaedra> to do what with it? You realize that output will be pretty messed up if your program is a full featured editor like vim is?
<finisherr> I have a method with a yield statement in the center. Serves as kind of a sandwich. Is there any way for me to get the variables in the method to get passed to the block scope of the yield?
<adaedra> finisherr: try self.instance_exec &block
<alexherbo2> adaedra: https://github.com/mawww/kakoune
<adaedra> (you'll have to name your proc parameter)
<finisherr> Thanks for the tip
anisha has joined #ruby
reaVer has joined #ruby
<alexherbo2> adaedra: I do not realise no :(
<tubbo> haha is that ascii clippy?
<tubbo> hilarious
<alexherbo2> yes
<alexherbo2> lol
<adaedra> alexherbo2: yep, output will be rather messed up and unusable directly, as it will contain terminal control sequences
poerror has joined #ruby
intrigueD has joined #ruby
<alexherbo2> I could use a tempfile but I want avoid :/
<tubbo> this dude made a whole new editor just so he could use clippy in vim?
jrafanie has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
<adaedra> alexherbo2: just to see what you'll end with, run `script /tmp/out kak`, do some edits in your editor, quit it, and open /tmp/out.
merida has quit [Remote host closed the connection]
<alexherbo2> tubbo: Kakoune is not a Vim clone
Mon_Ouie has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
<adaedra> (yes, btw, the `script` command seems to be exactly what you're trying to achieve, if I understood correctly)
Mon_Ouie has joined #ruby
steffkes has quit [Ping timeout: 252 seconds]
<alexherbo2> adaedra: yes
<adaedra> yes to what
<alexherbo2> `script` to capture its output
<adaedra> so what `script` does is what you're trying to do?
<alexherbo2> I would like kak could be used interactively :/
<alexherbo2> wait
adgtl has quit [Remote host closed the connection]
adgtl_ has joined #ruby
reaVer has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
wzy has joined #ruby
baweaver has quit [Remote host closed the connection]
<alexherbo2> adaedra: re
<alexherbo2> find . | fe kak
<adaedra> alexherbo2: otherwise, if your goal is just to create a buffer in your editor with stdin as source, you can (at least for vim) use - as filename, i.e. `ls | vim -`
trosborn has joined #ruby
graffix has quit [Quit: I have departed...]
hxegon has quit [Ping timeout: 276 seconds]
davedev24 has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
davedev24 has joined #ruby
graffix has joined #ruby
<adaedra> oooooooookay
<alexherbo2> :D
anisha has quit [Quit: Leaving]
adgtl_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<shevy> adaedra
<alexherbo2> I would like to use as well non interactive commands like sed as filter, than my favorite editor
<shevy> is this madness
polishdub has quit [Quit: Leaving]
<adaedra> alexherbo2: so your goal is to create a tool that runs commands on files given as stdin?
<alexherbo2> yes
spider-mario has joined #ruby
<alexherbo2> give stdin to my command
<alexherbo2> sed or kak
graffix has left #ruby [#ruby]
<alexherbo2> capure its output
ascarter has quit [Ping timeout: 276 seconds]
<alexherbo2> then rename/delete/link files
rdark has quit [Ping timeout: 244 seconds]
<alexherbo2> by default it renames
<adaedra> so your editor is a step where you'll make edits in your file?
<alexherbo2> but you can add directives like [link]
Hammy_Work has joined #ruby
juanfra_ has quit [Quit: juanfra_]
<adaedra> ah, I think I get it
<alexherbo2> like with git rebase --interactive there is drop, etc. directives
<adaedra> this
ascarter has joined #ruby
<adaedra> do like git, hg, sudo and other tools using $EDITOR do: save input to a tempfile, run the editor on this file, read tempfile
<alexherbo2> it would be so cool for mass renaming @_@
reaVer has joined #ruby
jaruga has joined #ruby
<alexherbo2> adaedra: impossible otherwise?
juanfra has joined #ruby
<adaedra> alexherbo2: did you try running your editor in `script` like I told you to see what "output" you'd have?
<alexherbo2> yes
boogibugs has quit [Quit: Leaving]
<adaedra> and is the output usable according to you?
<alexherbo2> > stdout is not a tty
mikar has quit [Quit: Connection closed for inactivity]
<adaedra> er.
<adaedra> what did you run?
<alexherbo2> `kak`
<adaedra> no
<adaedra> run, in your terminal, the following command: script /tmp/out kak
<adaedra> then, in your terminal, write a small file, and quit it
maner has quit [Remote host closed the connection]
<adaedra> then, open the /tmp/out file
<alexherbo2> no outpout
<adaedra> > then, in your terminal, write a small file, and quit it – in your editor*
<adaedra> no output?
<alexherbo2> yes
<alexherbo2> it’s empty
<adaedra> k
<adaedra> i'll do one myself
<adaedra> alexherbo2: here, I made a file like in your gist, opened it in vim, made the edits you described, closed it, and recorded all output through script, here is the result: https://gist.github.com/adaedra/194e1f0e7d95f004dd18
Guest34101 has joined #ruby
<adaedra> (mh, gist removed the '\e's tho)
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> seriously, the tmpfile solution with a simple `system 'kak'` is the most sensible, easier, and widespread solution. Interpreting terminal output is pure madness, and there's already so many reasons why it would be wrong without looking for them
ascarter has joined #ruby
<adaedra> git does it, hg does it, sudo does it
bjpenn has quit [Ping timeout: 248 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silox| has joined #ruby
wldcordeiro has quit [Ping timeout: 248 seconds]
hxegon has quit [Ping timeout: 244 seconds]
<alexherbo2> I will do then
<alexherbo2> Thanks for all your help :)
trinaldi has quit [Quit: bye]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
blandflakes has joined #ruby
nixmaniack has quit []
babblebre has quit [Quit: Connection closed for inactivity]
d0nn1e has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
codecop has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
d0nn1e has joined #ruby
cdg has joined #ruby
<alexherbo2> Hey guys, how about this sprintf / _%_ builtin to handle alignment?
kobain has joined #ruby
poerror has quit [Ping timeout: 252 seconds]
<alexherbo2> Currently sprintf can take string or hash, I added Array support
<adaedra> wat
<alexherbo2> ? :o
<adaedra> don't reimplement stdlib methods
<adaedra> secondly, what do you mean by "adding array support"
ascarter has quit [Ping timeout: 260 seconds]
<alexherbo2> print "# %{filename } |%{ line}│%{ column}| %{text}\n" % [{filename:"foo.txt", line:"91", column:"1", text:"foo"}, {filename:"foo-bar.txt", line:"1991", column:"1", text:"foo bar"}]
<alexherbo2> outputs
<alexherbo2> # foo.txt | 91│1| foo
<alexherbo2> # foo-bar.txt |1991│1| foo bar
bjpenn has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Guest38 has quit [Remote host closed the connection]
sandstrom has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
poerror has joined #ruby
<adaedra> doing `.each { |e| print "..." % e }` was too mainstream, I guess
fostertheweb has joined #ruby
norc__ has joined #ruby
Guest38 has joined #ruby
intrigueD has quit [Remote host closed the connection]
<alexherbo2> adaedra: does not handle alignment
zeroDivisible has joined #ruby
LoneHerm_ has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has joined #ruby
<adaedra> ouch.
blandflakes has joined #ruby
aryaching has quit []
<alexherbo2> ? :(
<alexherbo2> %{var} you can puts space for padding
<adaedra> I've seen
mostlybadfly has quit [Quit: Connection closed for inactivity]
bjpenn has quit [Ping timeout: 268 seconds]
<alexherbo2> I used it to build text interface
ur5us has joined #ruby
<adaedra> I'm sure there's a gem doing that already, but that's not really an argument
poerror has quit [Ping timeout: 276 seconds]
<adaedra> But yeah, don't reimplement stdlib/core methods
<alexherbo2> oki
<adaedra> We already have enough of ActiveSupport messing with core classes
<alexherbo2> XD
govg has quit [Quit: leaving]
<alexherbo2> and for scan? to handle named captures?
govg has joined #ruby
<alexherbo2> also, tap method is not functional :/
naftilos76 has quit [Quit: Αποχώρησε]
LoneHerm_ has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<alexherbo2> enumerable.hash_map → https://gist.github.com/alexherbo2/c920e04277f6dd8d589a
davedev24 has joined #ruby
<alexherbo2> I would like them in core :(
moeabdol has joined #ruby
trosborn has quit [Quit: trosborn]
Ishido has joined #ruby
hxegon has joined #ruby
synthroid has quit []
binaryplease has quit [Ping timeout: 244 seconds]
poerror has joined #ruby
ascarter has joined #ruby
solocshaw has joined #ruby
<shevy> nobody needs these :)
<shevy> but you can modify everything in ruby!
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alexherbo2> shevy: :'(
tomphp has joined #ruby
jaiks has quit [Ping timeout: 268 seconds]
devbug has joined #ruby
arlek_ has quit [Read error: Connection reset by peer]
bjpenn has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
dikaio has quit [Remote host closed the connection]
<SegFaultAX> alexherbo2: #to_h is already defined for Array
dikaio has joined #ruby
nando293921 has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
Guest34101 has quit [Ping timeout: 252 seconds]
<alexherbo2> :O
<alexherbo2> It is recent?
Hammy_Work has quit [Read error: Connection reset by peer]
bjpenn has quit [Ping timeout: 248 seconds]
<SegFaultAX> No
Uber|Dragon has joined #ruby
yqt has joined #ruby
<alexherbo2> Thanks for the tips :D
wldcordeiro has joined #ruby
Technodrome has quit [Ping timeout: 244 seconds]
askhat has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tomphp has joined #ruby
jaiks has joined #ruby
<SegFaultAX> Sure thing. I guess it's worth also noting that you can use this fact to make a hash meaningfully mappable: {a: 1, b: 2}.map { |k, v| [k.to_s, v] }.to_h
<SegFaultAX> There might even already be a nicer form for that.
Sucks has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
<alexherbo2> I like it
<alexherbo2> and for Object#tap?
<alexherbo2> is there a functional equivalent?
binaryplease has joined #ruby
futilegames has quit [Quit: futilegames]
hxegon has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
<SegFaultAX> What do you mean?
<askhat> Hey crew. Lets say I have a hash `{foo: {bar: 'hello'}}` and a string var = 'bar', so is it possible somehow to make kinda interpolation like `foo.#{var}` to get the 'hello'?
B3rg3lm1r has quit [Ping timeout: 268 seconds]
<SegFaultAX> askhat: h[:foo][var]
<SegFaultAX> askhat: h[:foo][var.to_sym] I guess
<askhat> SegFaultAX much obliged, I'm obviously a newbie =)
Hammy_Work has joined #ruby
<adaedra> alexherbo2: #tap is totally functional
<baweaver> though the other one is equally valid
<baweaver> technically tap is the K-Combinator, so more of combinatorics but that's being pedantic.
Hammy_Work has quit [Client Quit]
<adaedra> baweaver: :p
<SegFaultAX> Except the part where #tap isn't a combinator, I agree.
Hammy_Work has joined #ruby
tvon has quit [Remote host closed the connection]
PedramT has joined #ruby
nando293921 has quit [Ping timeout: 248 seconds]
tvon has joined #ruby
BtcBen has quit [Ping timeout: 268 seconds]
_RG has joined #ruby
bjpenn has joined #ruby
ur5us has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
askhat has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin has joined #ruby
hxegon has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
akae has quit [Quit: Leaving]
tvon has quit [Ping timeout: 244 seconds]
PedramT has quit [Ping timeout: 244 seconds]
Cohedrin has joined #ruby
Devalo has joined #ruby
_RG has quit [Client Quit]
jenrzzz has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvon has joined #ruby
dopie has joined #ruby
mallu has joined #ruby
mistermo_ has joined #ruby
dnewkerk has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
symm- has quit [Quit: Leaving...]
momomomomo has joined #ruby
nettoweb has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
symm- has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mistermo_ has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
Don_John has joined #ruby
hxegon has quit [Ping timeout: 268 seconds]
Don_John has quit [Remote host closed the connection]
bjpenn has joined #ruby
RegulationD has joined #ruby
_ht has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
_ht has quit [Client Quit]
lemur has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
bjpenn has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
mistermocha has joined #ruby
mistermo_ has joined #ruby
anagha_ has quit [Quit: Connection closed for inactivity]
Don_John has joined #ruby
jkahn has joined #ruby
_ht has joined #ruby
joonty has joined #ruby
Don_John has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
_ht has quit [Client Quit]
mistermocha has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 260 seconds]
arlek has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
Don_John has joined #ruby
blandflakes has joined #ruby
BtcBen has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
codecop_ has quit [Quit: Išeinu]
dikaio has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 268 seconds]
skade has joined #ruby
bjpenn has joined #ruby
dikaio has joined #ruby
mistermocha has joined #ruby
chipotle has quit [Max SendQ exceeded]
Devalo has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjpenn has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
ascarter has joined #ruby
rodfersou has quit [Quit: leaving]
Xeago has joined #ruby
ldnunes has quit [Quit: Leaving]
bjpenn has joined #ruby
symm- has quit [Quit: Leaving...]
zworks has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
symm- has joined #ruby
arup_r has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
choke has joined #ruby
tvon has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 240 seconds]
symm- has quit [Client Quit]
rcvalle has joined #ruby
FooMunki has quit [Quit: FooMunki]
chocoelho is now known as [afk]chocoelho
FooMunki has joined #ruby
symm- has joined #ruby
joonty has quit [Quit: Leaving]
chipotle has quit [Max SendQ exceeded]
arup_r has quit []
mistermocha has quit [Remote host closed the connection]
gbgdev has joined #ruby
mistermocha has joined #ruby
toretore has quit [Quit: Leaving]
rmulliga` has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
[afk]chocoelho is now known as chocoelho
tvon has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
blandflakes has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
fostertheweb has joined #ruby
moos3 has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mhoungbo has joined #ruby
nettoweb has joined #ruby
baweaver has joined #ruby
jaruga has quit [Quit: jaruga]
scion has joined #ruby
<scion> hi, quick question
scion is now known as Guest54394
<adaedra> go on
elico1 has quit [Quit: Leaving.]
<Guest54394> how come ruby is so shitty compared to javascript?
<Radar> !ban Guest54394
Guest54394 was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hxegon has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blandflakes has joined #ruby
<Radar> TBH though I've asked the reverse of that question.
bjpenn_ has joined #ruby
dikaio has quit [Remote host closed the connection]
pawnbox has joined #ruby
<adaedra> how come trolls are so unoriginal?
dikaio has joined #ruby
swills has joined #ruby
<adaedra> “Still hasn’t”
<Radar> patches welcome
bjpenn has quit [Ping timeout: 240 seconds]
johnmilton has quit [Remote host closed the connection]
<adaedra> It's raining popcorn.
_ht has quit [Quit: leaving]
mostlybadfly has joined #ruby
aegis3121 has joined #ruby
uglybandersnatch has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
<aegis3121> So I've run into something that really breaks least surprise for me. Can anyone explain it?
<aegis3121> >> 'a' 'b'
<ruby[bot]> aegis3121: # => "ab" (https://eval.in/536428)
<aegis3121> I would expect that to give...some form of error or something, not concatenate them together.
<adaedra> C style strings.
djbkd has quit [Remote host closed the connection]
<adaedra> so you can write your string on multiple lines, as one litteral.
<adaedra> a = 'my very' \
<adaedra> 'long string'
freakcoder has joined #ruby
Coldblackice has joined #ruby
ljames has quit []
Azure has quit [Ping timeout: 240 seconds]
<aegis3121> ah
<aegis3121> thanks
<aegis3121> Was a bit unexpected, and also never realized that's why 'blah' / 'something else' worked.
mistermocha has quit [Ping timeout: 264 seconds]
<adaedra> If you don't know about it, you can't know about it.
Azure has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
baweaver has quit [Remote host closed the connection]
boontdustie has joined #ruby
devbug has joined #ruby
<aegis3121> Fair enough. I'd worked with C, but also never ran into that syntax.
Mendenhall has joined #ruby
krz has quit [Ping timeout: 240 seconds]
<adaedra> heh.
<Mendenhall> Is there a better way of writing that piece of code?
<adaedra> giving it a .rb extension in gist to have syntax coloring, for starters.
<Mendenhall> oh my bad yeah
<Mendenhall> it's also out of context. that might be a pain
<drbrain> Mendenhall: save_hash = Hash.new { |h, order_number| h[order_number] = {} }
<drbrain> Mendenhall: then you don't need the if and can use only line 4
<adaedra> drbrain: given the fact the object responds to empty?, I suspect there's already a {} in h[...]
<aegis3121> Or I'd do save_hash[save_loc] ||= {}
<aegis3121> save_hash[save_loc][order['thing']] = hash_to_row
<aegis3121> Make sure you have an empty hash if it wasn't already there, then set your key equal to what you want inside of it.
<drbrain> adaedra: good point
failshell has quit [Remote host closed the connection]
<adaedra> Mendenhall: what are the possible values for `save_hash[save_loc]`?
<Mendenhall> yeah i was initializing save_hash as Hash.new({})
devbug has quit [Ping timeout: 260 seconds]
<drbrain> oh ↑ will not do what you think
<drbrain> you want my save_hash =
nerium has joined #ruby
<adaedra> Hash.new { |h, k| h[k] = {} } # may be what you want
<aegis3121> ^
<drbrain> >> h = Hash.new({}); h[1][2] = 3; h[2][3] = 4; h
<ruby[bot]> drbrain: # => {} (https://eval.in/536432)
<Mendenhall> im gonna have to look up what that translates into exactly but it makes sense. im not good with blocks atm
<adaedra> &ri Hash#initialize
<`derpy> No results
<adaedra> damn.
<drbrain> &ri Hash.new
<drbrain> ↑
LoneHermit has joined #ruby
<Mendenhall> ok yeah that seems to be correct
<adaedra> thanks, drbrain.
<adaedra> The example of the doc is good to understand what's happening.
<Mendenhall> ooh
<Mendenhall> i think i get it
naftilos76 has quit [Quit: Αποχώρησε]
<Mendenhall> the block gives a "rule" for creating new key-value pairs right?
<drbrain> correct
`tim` has joined #ruby
<Mendenhall> very cool, thanks
chipotle has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
<drbrain> Hash.new({}) returns the same Hash every time, and doesn't assign it
<drbrain> >> h = Hash.new(""); h[1] << "a"; h[2] << "b"; h[3]
<ruby[bot]> drbrain: # => "ab" (https://eval.in/536433)
dikaio has quit [Remote host closed the connection]
moos3 has joined #ruby
<drbrain> since it's shared, you end up with everything in one Hash (or String, above ↑)
dikaio has joined #ruby
moeabdol1 has joined #ruby
preyalone has joined #ruby
<Mendenhall> it's because the hash is initialized at the object's definition right?
blackmesa has joined #ruby
<drbrain> yes
<Mendenhall> python has a similar thing with mutable keyword arguments
<Mendenhall> good to know, thanks drbrain
moeabdol has quit [Ping timeout: 252 seconds]
<drbrain> Hash.new with a default value is good for use with numbers or a symbol, not much else
<SegFaultAX> Immutable values.
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHermit has quit [Ping timeout: 276 seconds]
mdw has joined #ruby
poguez_ has joined #ruby
graffix has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
norc__ has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freakcoder has quit [Quit: Leaving.]
mdw_ has quit [Ping timeout: 240 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
dukedave__ has quit []
dukedave__ has joined #ruby
dukedave__ has quit [Client Quit]
dukedave has joined #ruby
ni291187 has joined #ruby
ni291187 has left #ruby [#ruby]
atmosx has quit [Quit: This is aparting message!]
baweaver has quit [Remote host closed the connection]
devbug has joined #ruby
dikaio has quit [Remote host closed the connection]
dikaio has joined #ruby
tomphp has joined #ruby
Felix444 has quit [Ping timeout: 244 seconds]
marr has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
mhoungbo has quit [Ping timeout: 250 seconds]
haylon has quit [Quit: WeeChat 1.4]
Uber|Dragon has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
Mattx has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
uglybandersnatch has quit [Ping timeout: 244 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
chocoelho is now known as [afk]chocoelho
<Mattx> How would you calculate the diff between two arrays, keeping an element if it's repeated? Example: ["a", "a", "b"] - ["a", "b", "c"] == ["a", "b"]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 260 seconds]
bry4n_ has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Quit: Leaving...]
<havenwood> Mattx: You want the intersection of the two Arrays?
<havenwood> >> ["a", "a", "b"] & ["a", "b", "c"]
<ruby[bot]> havenwood: # => ["a", "b"] (https://eval.in/536436)
<Mattx> not the intersaction, the difference. I want to remove from the first array all elements of the second array, keeping elements if they're repeated
pawnbox has quit [Ping timeout: 248 seconds]
<Mattx> I'm looking for an efficient solution, please don't do it with .each, I already have that :P
digitalcakes has quit [Quit: Leaving.]
skade has joined #ruby
<baweaver> that word, I do not think it means what you think it means
juanca_ has quit [Remote host closed the connection]
<Mattx> it does, why not?
<aegis3121> So you only want to delete once?
<Mattx> the only difference with the "-" operator is that I want to keep repeated elements
<Mattx> aegis3121, that's right
<aegis3121> what if second has it twice?
Felix444 has joined #ruby
<aegis3121> [1, 1, 2] and [1, 1, 3] ?
<aegis3121> Delete twice or keep it still?
<Mattx> [2]
[Butch] has quit [Quit: I'm out . . .]
skweek has joined #ruby
<Mattx> remove twice
juanca_ has joined #ruby
dfockler has joined #ruby
skade has quit [Client Quit]
<aegis3121> Maybe...
<aegis3121> first.delete_if { |item| second.delete(item) }
<aegis3121> ?
Jackneill has quit [Remote host closed the connection]
biberu has quit []
<aegis3121> (or #reject, if you aren't in the mood to mutate)
intrigueD has joined #ruby
<Mattx> first=[1,1,2,3]; second=[1,1,3]; first.delete_if { |item| second.delete(item) }
<Mattx> => [1, 2]
<Mattx> should be [2]
djbkd has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has quit [Ping timeout: 244 seconds]
<workmad3> first.delete_if { |item| second.include?(item) ? second.delete_at(second.find_index(item)) : false } does it
bronson has quit [Remote host closed the connection]
<workmad3> but that's pretty ugly
moos3 has quit [Ping timeout: 260 seconds]
skade has joined #ruby
<aegis3121> could use #index instead of #include?
<aegis3121> to find the index already
<aegis3121> Instead of having to potentially search a couple of times.
Dimik has joined #ruby
<workmad3> aegis3121: good point
<Mattx> what do you mean? index cache the results?
<aegis3121> no, you'd have to store it in a local
<aegis3121> but you'd have it
<aegis3121> index = second.index(item); index ? second.delete_at(index) : false
<workmad3> .delete_if { |item| (idx = second.index(item)) ? second.delete_at(idx) : false }
<aegis3121> ^ or that
ziyadb has quit [Quit: Connection closed for inactivity]
<workmad3> you may also want to do (second.delete_at(idx); true) instead of just second.delete_at(idx) to account for when you have an array of bools or nils and want to correctly deal with them too :)
<havenwood> second.each { |n| first.delete_at first.index n }; first
roshanavand has quit [Quit: This computer has gone to sleep]
<workmad3> havenwood: delete_at borks if you pass it nil :)
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<havenwood> second.each { |n| index = first.index n; first.delete_at index if index }; first
<havenwood> workmad3: good point
htmldrum has joined #ruby
zenlot has joined #ruby
poerror has quit [Ping timeout: 248 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
bjpenn_ has quit [Ping timeout: 260 seconds]
merqlove has quit [Quit: Connection closed for inactivity]
zenlot6 has quit [Ping timeout: 248 seconds]
tvon has quit [Ping timeout: 268 seconds]
tvon has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
BtcBen has quit [Ping timeout: 268 seconds]
Eaven has joined #ruby
wzy has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
axl__ has joined #ruby
digitalcakes has joined #ruby
wzy has joined #ruby
jottr has joined #ruby
poerror has joined #ruby
<Mattx> Out of curiosity, how slow is using rescue in case of error?
<Mattx> first=[1,1,2,3]; second=[1,3]; first.delete_if { |item| second.delete_at(second.index item) rescue false }
<Mattx> for instance ^
axl_ has quit [Ping timeout: 268 seconds]
axl__ is now known as axl_
nerium has quit [Quit: nerium]
<Mattx> vs this: first=[1,1,2,3]; second=[1,3]; first.delete_if { |item| second.include?(item) ? second.delete_at(second.index item) : false }
Hammy_Work has quit [Quit: Leaving]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
roshanavand has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
tacit7 has joined #ruby
bjpenn has joined #ruby
queequeg1 has joined #ruby
[afk]chocoelho is now known as chocoelho
juanca_ has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 264 seconds]
<Mattx> (I bet using rescue is faster actually)
axl__ has joined #ruby
juanca_ has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
lemur has joined #ruby
<workmad3> Mattx: don't count on it... exception handling is frequently quite a slow feature
<workmad3> Mattx: best thing to do would be to profile both options
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
jottr has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
<workmad3> Mattx: also you'll want to compare against a version of `delete_if` that doesn't find the item in `second` twice (such as doing `(idx = second.index(item)) ? second.delete_at(idx) : false`
roshanavand has joined #ruby
mistermocha has joined #ruby
devbug has quit [Ping timeout: 276 seconds]
lemur has quit [Ping timeout: 268 seconds]
Musashi007 has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
kies has joined #ruby
ur5us has joined #ruby
saneax_AFK is now known as saneax
nfk|laptop has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
failshell has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby
_joes__ has quit [Quit: Connection closed for inactivity]
failshell has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
workmad3 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox has joined #ruby
mdw has joined #ruby
moos3 has joined #ruby
weemsledeux has joined #ruby
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease1 has joined #ruby
stannard has joined #ruby
binaryplease1 has quit [Client Quit]
pawnbox has quit [Ping timeout: 244 seconds]
binaryplease1 has joined #ruby
nerium has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
juanca_ has quit [Ping timeout: 264 seconds]
binaryplease1 has joined #ruby
moos3 has quit [Ping timeout: 244 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
binaryplease1 has quit [Client Quit]
stannard has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
binaryplease has joined #ruby
devbug has quit [Read error: Connection reset by peer]
TheMoonMaster has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
devbug has joined #ruby
moos3 has quit [Ping timeout: 240 seconds]
TheMoonMaster has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
theunraveler has quit []
last_staff has quit [Quit: last_staff]
s2013 has joined #ruby
workmad3_ is now known as workmad3
skade has quit [Quit: Computer has gone to sleep.]
ur5us has quit [Remote host closed the connection]
statelesscode has joined #ruby
DLSteve has joined #ruby
bronson has joined #ruby
devbug has quit [Ping timeout: 244 seconds]
kies has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 240 seconds]
binaryplease has quit [Quit: WeeChat 1.4]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chocoelho is now known as [afk]chocoelho
safe has joined #ruby
Mattx has quit [Quit: Leaving]
crowell has quit [Ping timeout: 248 seconds]
paperhouse has joined #ruby
chouhoulis has quit [Remote host closed the connection]
binaryplease has joined #ruby
jottr_ is now known as jottr
juanfra has quit [Ping timeout: 248 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
Abrin_AWAY has quit [Quit: Nettalk6 - www.ntalk.de]
LoneHerm_ has joined #ruby
crowell has joined #ruby
icarus has joined #ruby
cdg_ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
juanfra has joined #ruby
dikaio has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Abrin_AWAY has joined #ruby
cdg_ has quit [Remote host closed the connection]
dikaio has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avahey has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 260 seconds]
paperhouse has quit [Quit: Leaving]
<Ox0dea> workmad3: There's gotta be a better way to do it in O(n), right? https://eval.in/536444
RegulationD has joined #ruby
ariedler has joined #ruby
axl_ has quit [Quit: axl_]
<workmad3> Ox0dea: I'm not sure there is when dealing with general arrays... probably the best you can manage is O(m*n)
<workmad3> Ox0dea: pretty sure you could achieve O(n) with sorted arrays though :)
eurialo has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
<Ox0dea> workmad3: Right, mine's technically O(m*n), but that's still much better than exponential.
firstdayonthejob has quit [Ping timeout: 244 seconds]
a11 has joined #ruby
<workmad3> Ox0dea: ah, I thought you were asking if I knew an O(n) way :)
bricker has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
<Ox0dea> Aye, I think that's probably infeasible without sorted inputs.
<ariedler> more of a general programming question but consider:
<ariedler> Foo.transaction do .... end; (and after the after_commit are ran)
<ariedler> Is there a name for this type of thing in a more general sense ? as a programming pattern?
mary5030 has joined #ruby
<Radar> It's a block
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
siaw has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
<ariedler> Radar: a little more than that to it in this case; the pattern being that things inside the block add data to the yielder, and run the 'callbacks' at the end
johnmilton has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
mdw has quit [Ping timeout: 252 seconds]
ReK2 has quit [Quit: Konversation terminated!]
<a11> Would someone be so kind as to explain line 11 to me? Specifically the underscores? https://gist.github.com/anonymous/c486b7adfe57bfb573b9
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drbrain> a11: it's multiple assignment