jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
stannard has quit [Ping timeout: 250 seconds]
Azure has quit [Client Quit]
jgt4 has quit [Ping timeout: 240 seconds]
bubbys has quit [Ping timeout: 250 seconds]
kirun has quit [Quit: Client exiting]
konr has quit [Quit: Connection closed for inactivity]
bubbys has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
elton has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
dfinninger has quit [Remote host closed the connection]
charliesome has joined #ruby
dangerousdave has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
inanepenguin has quit [Quit: inanepenguin]
_stu_ has quit [Quit: _stu_]
Suntzu has joined #ruby
Guest85239 has quit []
hxegon has quit [Read error: Connection reset by peer]
Guest85239 has joined #ruby
Guest85239 has quit [Client Quit]
Azure has joined #ruby
ur5us has joined #ruby
nettoweb has joined #ruby
krzkrz has joined #ruby
<citrusfizz> is p short for puts?
<Ox0dea> citrusfizz: `p foo` == `puts foo.inspect`
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> Except that `puts` returns `nil`, whereas `p` returns `foo`.
zenspider has joined #ruby
<zenspider> rawr. what'd I miss?
<blub> hi zenspider
imperator has quit [Quit: This computer has gone to sleep]
brendan- has joined #ruby
hxegon has joined #ruby
QualityAddict has joined #ruby
solocshaw has joined #ruby
banister has joined #ruby
rdavila has joined #ruby
jetpackjoe has joined #ruby
platzhirsch has left #ruby [#ruby]
inanepenguin has joined #ruby
hxegon has quit [Ping timeout: 256 seconds]
govg has joined #ruby
steffkes has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 250 seconds]
banister_ has joined #ruby
<zenspider> blub: hey
<blub> hi
<blub> whats up....write any ruby
DLSteve has joined #ruby
calderonroberto has quit [Ping timeout: 272 seconds]
banister has quit [Read error: Connection reset by peer]
symm- has joined #ruby
<c-c> hookay, looks like 2.1.5 has no rdoc data for the core
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
hxegon has joined #ruby
<c-c> or maybe this is a debian jessie problem?
calderonroberto has joined #ruby
<zenspider> c-c: probably a packaging issue. comes up time and time again w/ linux distros
<zenspider> look for ruby-docs or somesuch?
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> blub: all the time
<blub> nice..nice
<c-c> zenspider: indeed such a package exists in debian jessie:
ramfjord has quit [Ping timeout: 256 seconds]
<zenspider> c-c: good
<c-c> i A ruby2.1-doc - Documentation for Ruby 2.1
<zenspider> I still use rdoc all the time. can't stand having to fire up a web browser just to read something plaintext
dlitvak has joined #ruby
<c-c> lol I even have it installed, I guess rdoc must be used to rebuild in some suitable location
<zenspider> wtf?
<zenspider> how are you testing for it?
<zenspider> `ri String`
<c-c> I was using Array -- the classic nothing known
<zenspider> huh. can you ensure via `which ri` or something that it is coming from the right package/
<zenspider> `ri --list-doc-dirs`
<c-c> Then I installed rdoc and rdoc-data with -All kinds of flags, and now it has the gem docs. So clearly one must add the core/std docs.
freerobby has quit [Quit: Leaving.]
<zenspider> I've got a lot of gem dirs listed plus: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/share/ri/2.0.0/system and friends
krzkrz has quit [Ping timeout: 272 seconds]
<zenspider> rdoc-data is only for 1.9 and below
<zenspider> I don't know what's wrong w/ your setup... but it shouldn't be solved w/ that
<c-c> Ok now I know
<c-c> I have rvm on this box!
<zenspider> in fact, rdoc-data is prolly stale/wrong for 2.1
<zenspider> ah. that's it
<zenspider> rvm has a subcmd to build the doco and excludes it by default, which I hate
<c-c> yeap
<zenspider> you really should only do rvm (or better, rbenv) or packages... not both.
talntid has left #ruby [#ruby]
ramfjord has joined #ruby
puria has quit [Ping timeout: 272 seconds]
calderonroberto has quit [Ping timeout: 240 seconds]
<c-c> well, so many boxes, I forget to test whats what on each
puria has joined #ruby
JDiPierro has quit [Remote host closed the connection]
mclong has quit [Ping timeout: 240 seconds]
<c-c> hm, or maybe that debian jessie ruby 2.1 has been installed by some other jessie package as dep
ramfjord has quit [Ping timeout: 250 seconds]
ur5us has quit []
<c-c> nm :)
dnewkerk has joined #ruby
calderonroberto has joined #ruby
lyoshajapan has joined #ruby
saneax is now known as saneax_AFK
cassioscabral has quit [Quit: cassioscabral]
Bugboy1028 has quit [Ping timeout: 260 seconds]
bb010g has joined #ruby
Bugboy1028 has joined #ruby
mclong has joined #ruby
duncannz has joined #ruby
<zacts> hi rubyists
<zacts> zenspider: cool nick
<zacts> =)
<zacts> I actually have a spiderman toothbrush in my side pack... :-D
<zacts> anyway, I love some of these ruby tutorials on github linked in /topic
charliesome has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
daivyk has quit [Quit: ZZZzzz…]
wmdrossard has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 272 seconds]
snockerton has quit [Quit: Leaving.]
freerobby has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
kmckelvi1 has joined #ruby
hxegon has quit [Quit: leaving]
nanoz has joined #ruby
ethe has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
calderonroberto has quit [Ping timeout: 250 seconds]
berserk_ren has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
kmckelvi1 has quit [Ping timeout: 272 seconds]
berserk_ren has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
tenderlove has joined #ruby
lyoshajapan has joined #ruby
<zenspider> zacts: thanks?
<zacts> zenspider: sorry, just thought it was too cool
<zenspider> n/p
<zacts> (don't mean to be offtopic)
<diegoviola> ruby is cool
tcrypt has quit [Remote host closed the connection]
<diegoviola> and this community also
<Ox0dea> diegoviola: Whence the change of heart?
arescorpio has joined #ruby
shanemcd has joined #ruby
<diegoviola> Ox0dea: change of heart? what do you mean?
<Ox0dea> I just recall you bashing #ruby at some point not too long ago.
<diegoviola> I don't think I ever bashed ruby
<Ox0dea> There is a difference between Ruby the programming language and #ruby the IRC channel.
<Ox0dea> Precision matters.
duncannz has quit [Ping timeout: 272 seconds]
<diegoviola> I don't think I ever bashed #ruby
<Ox0dea> Must've just been #ror, then.
jhn has joined #ruby
<Ox0dea> Oh, it was Ruby's manpage with which you took some umbrage.
<Ox0dea> For shitting on Perl, as you saw it.
<diegoviola> I don't have change of heart (not sure what it means, not really interested either)
<diegoviola> and no, that wasn't me bashing ruby or #ruby
<c-c> I'm sorry to inform you that the c-c corporation test labs have finalized alpha version of ruby that is written entirely in YAML. So enjoy while it lasts, soon c-c megacorp robots will force you to write everything in YAML.
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c> (even ruby)
shanemcd has quit [Ping timeout: 256 seconds]
berserk_ren has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
<diegoviola> Ox0dea: I just thought it looked odd in the man page, that's all
<zenspider> c-c: you're late to the party
rdavila has joined #ruby
rgrmatt has joined #ruby
<diegoviola> Ox0dea: I tend to contribute to the documentation of some projects, this is my latest change (not related to ruby): https://lkml.org/lkml/2015/11/5/78
<diegoviola> Ox0dea: so maybe I could improve the ruby man page also
baweaver has quit [Remote host closed the connection]
saddad has joined #ruby
InvGhost has joined #ruby
InvGhost has quit [Read error: Connection reset by peer]
<Ox0dea> We could write Ruby in YAML just fine.
<zenspider> enterprise ruby!
kp666 has quit [Ping timeout: 272 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
berserk_ren has quit [Ping timeout: 256 seconds]
<c-c> how did you know!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
lyoshajapan has joined #ruby
dlitvak has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
jessemcgilallen_ has joined #ruby
berserk_ren has joined #ruby
ruid has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
jessemcgilallen has quit [Read error: Connection reset by peer]
jessemcgilallen_ is now known as jessemcgilallen
tenderlove has quit [Remote host closed the connection]
kp666 has joined #ruby
nanoz has joined #ruby
tenderlove has joined #ruby
baweaver has joined #ruby
JDiPierro has joined #ruby
tenderlove has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
chipotle has joined #ruby
daivyk has joined #ruby
rgrmatt has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
hxegon has joined #ruby
chaturbate has joined #ruby
berserk_ren has quit [Ping timeout: 256 seconds]
FooMunki has quit [Quit: FooMunki]
iateadonut has quit [Quit: Leaving.]
casadei has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruid has quit [Ping timeout: 272 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
jhn has joined #ruby
segmond has joined #ruby
rgrmatt has joined #ruby
Rickmasta has joined #ruby
imperator has joined #ruby
neanderslob has quit [Ping timeout: 256 seconds]
Bellthoven has quit []
rakm has joined #ruby
segmond has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
tjbiddle has joined #ruby
devoldmx has joined #ruby
JDiPierro has joined #ruby
segmond has joined #ruby
JDiPierro has quit [Remote host closed the connection]
houhoulis has joined #ruby
elton has joined #ruby
5EXAAFXI5 has quit [Quit: Konversation terminated!]
JDiPierro has joined #ruby
DiCablo has joined #ruby
casadei has joined #ruby
baweaver has quit [Remote host closed the connection]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
inanepenguin has quit [Quit: inanepenguin]
arooni has joined #ruby
elton has quit [Ping timeout: 250 seconds]
arooni has quit [Client Quit]
axisys has joined #ruby
axisys has quit [Client Quit]
axisys has joined #ruby
Moosashi has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
rgrmatt has quit [Remote host closed the connection]
kmckelvi1 has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
diegoviola has joined #ruby
<c-c> Seen code that generates ruby class files from in-memory Class -instances?
dnewkerk has quit [Quit: dnewkerk]
Jardayn has quit [Quit: Leaving]
wolffles has joined #ruby
<centrx> I seen it
<centrx> Big as a bear he was
<wolffles> this is a test, im new to IRC
elton has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> wolffles: it worked!
<zenspider> FINALLY... dropping 1.8, removing build logic from multiruby (using rbenv)... simplify... got my multiversion CI up and running under the new system
<imperator> are there any tools out there for gauging regex efficiency?
solocshaw has quit [Ping timeout: 240 seconds]
<imperator> something that shows me how much backtracking is going on, for instance
rgrmatt has joined #ruby
nuck has joined #ruby
<c-c> imperator: would benchmarking time be sufficient?
<zenspider> imperator: mmm... don't know of any, no... there's some nice tools to help optimize regexps, but it won't point out backtracing hotspots
nuck is now known as Guest65039
<zenspider> I use regex-opt for the former
saddad has quit [Quit: WeeChat 1.4-dev]
saddad has joined #ruby
krzkrz has joined #ruby
dfinninger has joined #ruby
govg has joined #ruby
<imperator> that an emacs plugin?
lyoshajapan has joined #ruby
<zenspider> cmdline. I got it from homebrew
<zenspider> imperator: found it. http://bisqwit.iki.fi/source/regexopt.html
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
dfinninger has quit [Read error: Connection reset by peer]
Guest65039 has quit [Changing host]
Guest65039 has joined #ruby
<imperator> zenspider, thanks, installing now :)
Guest65039 is now known as nuck
kmckelvi1 has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
segmond has quit [Read error: Connection reset by peer]
atomical has joined #ruby
Renich has quit [Quit: leaving]
podman has quit [Quit: Connection closed for inactivity]
krzkrz has quit [Ping timeout: 240 seconds]
ruid has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
sneakerhax has joined #ruby
dlitvak has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
Moosashi has quit [Quit: Moosashi]
casadei has quit [Remote host closed the connection]
TomPeed has joined #ruby
Moosashi has joined #ruby
TomPeed is now known as justbleed
B1n4r10 has joined #ruby
The_Phoenix has joined #ruby
saddad has joined #ruby
tenderlove has quit [Remote host closed the connection]
tcrypt has joined #ruby
bronson has quit [Remote host closed the connection]
<zenspider> when is 2.0 EOL'd ?
<zenspider> I'm so sick of minitest 4 being in stdlib as a fake gem. fuck me
Moosashi has quit [Quit: Moosashi]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Arnvald has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
<jhass> zenspider: february 24
<jhass> (next year)
<zenspider> good
<zenspider> 2016 is the year of uncruft
sh4d0wD has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
crystalmaiden has joined #ruby
RobertBirnie has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
<jhass> oh, 2.3.0-preview2 got released
crystalmaiden has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
daivyk has quit [Quit: ZZZzzz…]
crystalmaiden has joined #ruby
crystalmaiden has quit [Max SendQ exceeded]
elton has quit [Remote host closed the connection]
kp666 has quit [Ping timeout: 240 seconds]
crystalmaiden has joined #ruby
tenderlove has joined #ruby
tcrypt has quit []
blackmesa has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
lyoshajapan has quit [Remote host closed the connection]
kmckelvi1 has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elton has joined #ruby
imperator has quit [Quit: Leaving]
symm- has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
crystalmaiden has quit [Max SendQ exceeded]
crystalmaiden has joined #ruby
tjbiddle has joined #ruby
nettoweb has joined #ruby
favadi has joined #ruby
lyoshajapan has joined #ruby
elton has quit [Ping timeout: 272 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
colleenmcguckin has quit [Remote host closed the connection]
A124 has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Quit: Leaving.]
chaturbate has quit [Ping timeout: 252 seconds]
A124 has joined #ruby
jessemcgilallen_ has joined #ruby
baweaver has quit [Remote host closed the connection]
jessemcgilallen has quit [Ping timeout: 256 seconds]
<nuck> what the fuck. I'm running into something... new
jessemcgilallen_ is now known as jessemcgilallen
<nuck> My ApplicationController apparently doesn't exist or something
<nuck> I have UsersController < ApplicationController < ActionController::Base, and when I check the ancestry of UsersController, there's no reference to ApplicationController
<nuck> Why would my superclass cease existing?
<nuck> Oh and if I instantiate an ApplicationController (which does work!), I can't call any of the methods I defined on it
<nuck> And Pry can't seem to show the source for it
yeticry has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<zenspider> nuck: #rubyonrails
<nuck> It doesn't seem to be a Rails issue afaict
<zenspider> if rails is fucking with loading and the like, it is a rails issue until proven otherwise
<nuck> hah fair enough
<zenspider> if you want, replicate the issue w/o rails and I'm happy to help
<zenspider> (until I have to leave)
<zenspider> ~15m
<nuck> I'll try disabling Spring and nuking things until it works
chipotle has joined #ruby
supermar_ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Read error: Connection reset by peer]
blackgoat has quit [Quit: WeeChat 1.3]
chipotle has joined #ruby
jbrhbr has quit [Quit: Leaving.]
supermarin has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
willywos has joined #ruby
willywos has quit [Client Quit]
nkts_ has quit [Quit: leaving]
shadoi has quit [Quit: Leaving.]
supermarin has joined #ruby
lyoshajapan has joined #ruby
jgt has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
supermar_ has quit [Ping timeout: 250 seconds]
sgambino has joined #ruby
wolffles has quit [Quit: wolffles]
lyoshajapan has quit [Remote host closed the connection]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
babblebre has joined #ruby
kmckelvi1 has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
ruid has quit [Ping timeout: 240 seconds]
Oog has joined #ruby
elton has joined #ruby
rdavila has joined #ruby
supermarin has quit [Ping timeout: 256 seconds]
replay has quit []
DurstBurger has joined #ruby
krzkrz has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
exadeci has joined #ruby
ap4y has quit [Quit: WeeChat 1.3]
lyoshajapan has joined #ruby
yeticry has joined #ruby
ap4y has joined #ruby
jessemcgilallen has quit [Ping timeout: 272 seconds]
qiukun has joined #ruby
bronson has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
dorei has quit []
elton has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 240 seconds]
yeticry has quit [Remote host closed the connection]
yeticry has joined #ruby
arescorpio has quit [Quit: Leaving.]
diego1 has joined #ruby
zarubin has joined #ruby
blackmesa has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
elton has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Remote host closed the connection]
rdavila has joined #ruby
Contigi has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
tjbiddle has quit [Ping timeout: 250 seconds]
rdark has joined #ruby
nchambers has quit [Quit: compilerdev.net - Compilers made easy]
qiukun has quit [Remote host closed the connection]
juddey has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
rdark has quit [Client Quit]
rdark has joined #ruby
qiukun has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
qiukun has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
Oog has quit []
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
devoldmx has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
yeticry has quit [Remote host closed the connection]
stannard has joined #ruby
yeticry has joined #ruby
krzkrz has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
braincrash has quit [Quit: bye bye]
Oog has joined #ruby
stannard has quit [Ping timeout: 272 seconds]
lyoshajapan has quit [Remote host closed the connection]
kmckelvi1 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has quit [Quit: Leaving]
puria has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
zast has joined #ruby
braincrash has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
akem has joined #ruby
djbkd has quit [Quit: My people need me...]
dlitvak has joined #ruby
Ziggy has quit [Ping timeout: 250 seconds]
justinweiss has quit [Quit: Connection closed for inactivity]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
c355E3B has quit [Quit: Connection closed for inactivity]
dlitvak has quit [Ping timeout: 240 seconds]
kmckelvi1 has quit [Ping timeout: 272 seconds]
jgt has joined #ruby
cwong_on_irc has joined #ruby
dlitvak has joined #ruby
Arnvald has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Ping timeout: 256 seconds]
Arnvald has joined #ruby
gix has quit [Ping timeout: 256 seconds]
RobertBirnie has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
supermarin has joined #ruby
qiukun has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
gix has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspire_ has joined #ruby
aspire_ has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 250 seconds]
RobertBirnie has quit [Ping timeout: 272 seconds]
aspire has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
rdavila has joined #ruby
dlitvak has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
lyoshajapan has joined #ruby
Arnvald has quit [Remote host closed the connection]
ta_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bronson has joined #ruby
Rodya_ has joined #ruby
bronson has quit [Remote host closed the connection]
lyoshajapan has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
ta has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
ornerymoose has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
BlackCoyote has joined #ruby
freerobby has joined #ruby
<ornerymoose> Hi, could someone explain to me why has_value? here returns false? https://gist.github.com/ornerymoose/e6458f666e9f0ea849b4
Rickmasta has joined #ruby
bronson has quit [Remote host closed the connection]
Oog has quit []
bronson has joined #ruby
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
kmckelvi1 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
<havenwood> ornerymoose: hash.has_value?(["a", "b", "c"]) #=> true
bronson has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
bronson has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> ornerymoose: It does has a value that's an Array that includes that String, but it's doesn't have a value that's just the String itself.
<havenwood> it*
bronson has quit [Remote host closed the connection]
<ornerymoose> right, right, makes sense now.
bronson has joined #ruby
<ornerymoose> What would be best practice to fetch one of the items within the array? (ie, just get back “a”)
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has quit [Quit: qiukun]
saneax_AFK is now known as saneax
yfeldblum has joined #ruby
<ornerymoose> the fetch method kinda does the same thing as has_value here
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
Arnvald has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
bronson has quit [Remote host closed the connection]
tjbiddle has joined #ruby
bronson has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<havenwood> ornerymoose: I'm not quite sure I follow what you're wanting, but based on your first example maybe consider something along the lines of `hash.any? { |_, v| v.include? "a" }` or `hash.values.flatten(1).include? "a"`.
bronson has quit [Remote host closed the connection]
<ornerymoose> Yeah that was a poorly worded question, my bad.
<ornerymoose> And nice, looking at the include? method on the docs now
<ornerymoose> 1sec
tjbiddle has quit [Client Quit]
bronson has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
bronson has quit [Remote host closed the connection]
<ornerymoose> That flatten method is awesome. I appreciate your help, think I got it!
lyoshajapan has joined #ruby
wolffles has joined #ruby
bronson has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Cyther has joined #ruby
bronson has joined #ruby
podman has joined #ruby
elton has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<havenwood> ornerymoose: :D
<ornerymoose> :)
bronson has joined #ruby
JDiPierro has quit [Remote host closed the connection]
codeurge has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
blackmesa has joined #ruby
lyoshajapan has joined #ruby
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
berserk_ren has joined #ruby
lubarch has quit [Quit: leaving]
DiCablo has joined #ruby
Cyther has quit [Quit: Leaving]
colegatron has quit [Ping timeout: 256 seconds]
pwnd_nsfw has joined #ruby
astrobun_ has joined #ruby
akem has quit [Remote host closed the connection]
Bloomer has joined #ruby
elton has joined #ruby
ramfjord has joined #ruby
<shevy> flatten the mouse
<shevy> and flatten the moose
<blub> hi shevy
lyoshajapan has quit [Remote host closed the connection]
<shevy> hey blub are you still pondering about classes versus modules
<blub> that wasnt me
<shevy> ok
therealcode has joined #ruby
<Ox0dea> shevy: Are you doing AoC?
djbkd has joined #ruby
<therealcode> Hello guys
kmckelvi1 has joined #ruby
lyoshajapan has joined #ruby
<shevy> Ox0dea AoC?
colegatron has joined #ruby
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
babblebre has quit [Quit: Connection closed for inactivity]
gamov has joined #ruby
bigmac is now known as i8igmac
<Ox0dea> I even mis-pasted my second answer and had to wait a whole minute before I could try again.
<shevy> don't think I have seen that before
<Ox0dea> Ruby is too good for speedcoding.
<shevy> I am not even sure what this is about
<shevy> but I see that you are on top, whatever that is
kmckelvi1 has quit [Ping timeout: 272 seconds]
<Ox0dea> Project Euler + advent calendar.
krzkrz has joined #ruby
CloCkWeRX has left #ruby [#ruby]
lyoshajapan has quit [Remote host closed the connection]
hahuang61 has quit [Quit: WeeChat 1.3]
DavidDudson has joined #ruby
darkf has joined #ruby
lyoshajapan has joined #ruby
triangles has quit [Quit: Leaving]
druonysus has quit [Remote host closed the connection]
zarubin has joined #ruby
nertzy has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
supermarin has quit [Remote host closed the connection]
DavidDudson has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
DurstBurger has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
S01780 has joined #ruby
supermarin has quit [Remote host closed the connection]
<atmosx> Good morning everyone
<blub> hi atmosx
berserk_ren has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
tenderlove has joined #ruby
supermarin has joined #ruby
Bloomer has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
Rodya_ has quit [Quit: Leaving...]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
i8igmac has quit [Quit: Leaving]
qiukun has joined #ruby
DavidDudson has joined #ruby
devoldmx has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
colleenmcguckin has joined #ruby
qiukun has quit [Remote host closed the connection]
supermarin has quit [Remote host closed the connection]
qiukun has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
supermarin has joined #ruby
qiukun has quit [Remote host closed the connection]
<shevy> omg https://github.com/dotnet/coreclr/issues/2285 - how do people have so much time to even invest as much time into discussing something
qiukun has joined #ruby
supermarin has quit [Remote host closed the connection]
favadi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
davedev24 has quit [Remote host closed the connection]
supermarin has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
lyoshajapan has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
favadi has quit [Client Quit]
araujo has joined #ruby
favadi has joined #ruby
araujo has quit [Max SendQ exceeded]
kmckelvi1 has joined #ruby
bronson has joined #ruby
hxegon has joined #ruby
ornerymoose has joined #ruby
RTG` has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
wolffles has quit [Quit: wolffles]
lyoshajapan has joined #ruby
baweaver_ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
RTG` has joined #ruby
bMalum has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba_ has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
mclong has quit [Ping timeout: 250 seconds]
jgt has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
chouhoul_ has joined #ruby
Heero has quit [Read error: Connection reset by peer]
vikaton has quit [Read error: Connection reset by peer]
PhilK has quit [Read error: Connection reset by peer]
mattyohe has quit [Read error: Connection reset by peer]
pizzaops has quit [Read error: Connection reset by peer]
Heero has joined #ruby
vikaton has joined #ruby
mattyohe has joined #ruby
PhilK has joined #ruby
pizzaops has joined #ruby
lkba_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
<shevy> huh
<shevy> did something with the documentation change lately?
<shevy> I never before saw this style:
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kmckelvi1 has quit [Ping timeout: 240 seconds]
supermarin has quit [Remote host closed the connection]
codeurge has joined #ruby
glenny has joined #ruby
passerine has joined #ruby
bubbys has quit [Quit: Bye]
bubbys has joined #ruby
Moosashi has joined #ruby
trautwein has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
minimalism has quit [Quit: leaving]
lyoshajapan has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
agit0 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
auzty has joined #ruby
tagrudev has joined #ruby
zarubin has joined #ruby
lyoshajapan has joined #ruby
supermarin has joined #ruby
blackmesa has joined #ruby
dlitvak has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
woodruffw has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 272 seconds]
colleenmcguckin has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
baweaver_ has quit [Read error: Connection reset by peer]
qiukun has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
lemur has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
supermarin has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
aufi has joined #ruby
qiukun has joined #ruby
baweaver_ has joined #ruby
User458764 has joined #ruby
lemur has quit [Ping timeout: 256 seconds]
Moosashi has quit [Quit: Moosashi]
tenderlove has joined #ruby
jetpackjoe has joined #ruby
Cohedrin has joined #ruby
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
aufi has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
solars has joined #ruby
qiukun has joined #ruby
avahey has joined #ruby
kmckelvi1 has joined #ruby
aufi has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
myztic has joined #ruby
saneax_AFK is now known as saneax
baweaver_ has quit [Read error: Connection reset by peer]
lemur has joined #ruby
dionysus69 has joined #ruby
akkad has quit [Ping timeout: 240 seconds]
baweaver_ has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
vdamewood has quit [Quit: Life beckons.]
lemur has quit [Ping timeout: 256 seconds]
blackgoat has quit [Ping timeout: 250 seconds]
akkad has joined #ruby
troulouliou_div2 has joined #ruby
kfogel has quit [Quit: Ex-Chat]
exadeci has joined #ruby
iateadonut has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
codecop has joined #ruby
aganov has joined #ruby
scepticulous has joined #ruby
tenderlove has quit [Remote host closed the connection]
yardenbar has joined #ruby
djbkd has quit [Quit: My people need me...]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DeXterbed has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DavidDudson has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
qiukun has quit [Remote host closed the connection]
krzkrz has joined #ruby
qiukun has joined #ruby
DavidDudson has joined #ruby
[dmp] has joined #ruby
jetpackjoe has quit [Quit: Textual IRC Client: www.textualapp.com]
zarubin has joined #ruby
B1n4r10 has joined #ruby
djbkd has joined #ruby
sandstrom has joined #ruby
blackmesa has joined #ruby
lubarch has quit [Quit: leaving]
qiukun has quit [Remote host closed the connection]
DavidDudson has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
Arnvald has quit [Remote host closed the connection]
qiukun has joined #ruby
passerine has left #ruby ["Leaving"]
tvw has joined #ruby
AmayA-_ has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
ap4y has quit [Quit: WeeChat 1.3]
djbkd has quit []
blackmesa has quit [Ping timeout: 250 seconds]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
gamov has quit [Quit: gamov]
AmayA-_ has quit [Client Quit]
DavidDudson has joined #ruby
ledestin has joined #ruby
yardenbar has quit [Remote host closed the connection]
jbrhbr has joined #ruby
devoldmx has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
mesamoo has joined #ruby
qiukun has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
DavidDudson has quit [Read error: Connection reset by peer]
juddey has joined #ruby
qiukun has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
qiukun has quit [Remote host closed the connection]
vondruch has joined #ruby
moeabdol has quit [Ping timeout: 256 seconds]
qiukun has joined #ruby
symm- has joined #ruby
TomyWork has joined #ruby
DeXterbed has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
brunto has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
Nahra``` has quit [Ping timeout: 246 seconds]
qiukun has quit [Remote host closed the connection]
devoldmx has joined #ruby
qiukun has joined #ruby
ibouvousaime has joined #ruby
Silox| has joined #ruby
codeurge has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
SCHAAP137 has joined #ruby
adac has joined #ruby
Bloomer has joined #ruby
CloCkWeRX has joined #ruby
DeXterbed has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
wldcordeiro has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
TvL2386 has joined #ruby
<TvL2386> hi guys, is there a way to kill a process created with EventMachine::popen? I'm having a hanging subprocess and I want to implement some kind of timeout
Tempesta has quit [Quit: See ya!]
jgt has joined #ruby
saddad has quit [Ping timeout: 272 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
andykingking has joined #ruby
jgt has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
andykingking has quit [Client Quit]
BlackCoyote has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
lurch_ has joined #ruby
lubarch has quit [Quit: leaving]
sandstrom has joined #ruby
amclain has quit [Quit: Leaving]
sandstrom has quit [Client Quit]
Bloomer has quit [Remote host closed the connection]
zast has quit [Quit: Leaving.]
lubarch has joined #ruby
Arnvald has joined #ruby
zarubin has joined #ruby
bronson has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
lubarch has quit [Client Quit]
Mon_Ouie has joined #ruby
lubarch has joined #ruby
blackmesa has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
marr has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 240 seconds]
qiukun has quit [Remote host closed the connection]
c0m0 has joined #ruby
DeXterbed has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
qiukun has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
elton has quit [Remote host closed the connection]
devoldmx has joined #ruby
qiukun has quit [Remote host closed the connection]
anisha has joined #ruby
qiukun has joined #ruby
jas02 has joined #ruby
DavidDudson has joined #ruby
qiukun has quit [Remote host closed the connection]
lubarch has quit [Quit: leaving]
qiukun has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
stan has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
Snowy has joined #ruby
lubarch has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
Snowy has quit [Remote host closed the connection]
sandstrom has joined #ruby
krzkrzkrz has joined #ruby
techsethi has quit [Quit: techsethi]
chthon has joined #ruby
Snowy has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
drptbl has joined #ruby
Bloomer has joined #ruby
DavidDudson has quit [Ping timeout: 250 seconds]
krzkrz has quit [Ping timeout: 250 seconds]
lubarch has quit [Client Quit]
tagrudev has quit [Remote host closed the connection]
lubarch has joined #ruby
techsethi has joined #ruby
tagrudev has joined #ruby
DavidDudson has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
TheHodge has joined #ruby
bronson has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
User458764 has joined #ruby
toretore has joined #ruby
lubarch has quit [Quit: leaving]
DavidDudson has quit [Ping timeout: 240 seconds]
Fredrich010 has quit []
AlexRussia has quit [Ping timeout: 256 seconds]
Nahra``` has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
DavidDudson has joined #ruby
timonv has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
qiukun has quit [Client Quit]
DavidDudson has quit [Read error: Connection reset by peer]
exadeci has quit [Quit: Connection closed for inactivity]
avelldiroll has joined #ruby
Pumukel has joined #ruby
lyoshajapan has quit []
cwong_on_irc has quit [Quit: Leaving.]
lyoshajapan has joined #ruby
lysw123 has joined #ruby
chipotle has quit [Quit: cheerio]
juddey has quit [Ping timeout: 272 seconds]
julweber has joined #ruby
julweber has quit [Remote host closed the connection]
lysw123 has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
jgt has joined #ruby
Tempesta has joined #ruby
lysw123 has joined #ruby
DeXterbed has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
Tempesta has quit [Client Quit]
B1n4r10 has joined #ruby
Tempesta has joined #ruby
Hounddog has joined #ruby
DavidDudson has quit [Read error: Connection reset by peer]
DavidDudson has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Client Quit]
user1138 has joined #ruby
krzkrzkrz has quit [Read error: Connection reset by peer]
krzkrzkrz has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
lyoshajapan has quit []
zarubin has joined #ruby
tomphp has joined #ruby
zotherstupidguy has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
zarubin has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
lemur has joined #ruby
qiukun has joined #ruby
Nahra``` has quit [Ping timeout: 240 seconds]
mattyohe has quit [Quit: Connection closed for inactivity]
blaxter has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
elton has joined #ruby
devoldmx has joined #ruby
krzkrzkrz has quit [Quit: WeeChat 1.2]
avahey has quit [Quit: Connection closed for inactivity]
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
alexherbo2 has quit [Quit: WeeChat 1.3]
rodfersou has joined #ruby
platzhirsch has joined #ruby
platzhirsch has quit [Client Quit]
elton has quit [Ping timeout: 250 seconds]
ayonkhan has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
ethe has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
jgt has joined #ruby
DeXterbed has quit [Ping timeout: 256 seconds]
qiukun has quit [Remote host closed the connection]
platzhirsch has joined #ruby
qiukun has joined #ruby
blackmesa has joined #ruby
Coldblackice has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
platzhirsch has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
loren has joined #ruby
platzhirsch has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
blackgoat has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
nfk|laptop has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
qiukun has quit [Remote host closed the connection]
yfeldblum has joined #ruby
qiukun has joined #ruby
lubarch_ has joined #ruby
lubarch_ has quit [Client Quit]
DeXterbed has joined #ruby
ruby-lang219 has joined #ruby
<ruby-lang219> hello
<ruby-lang219> I am quite new to ruby and have a little question
<ruby-lang219> does anyone know if i can access the command history of a user on linux or listen to incoming commands in the shell?
lubarch has joined #ruby
lubarch has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lubarch has quit [Client Quit]
<adaedra> theorically, you can access the history; but this is dependent on machine and/or user configuration (shell, location, etc.)
<ruby-lang219> hello
<adaedra> what do you mean now by "listen to incoming commands in the shell"?
glenny has quit [Quit: Konversation terminated!]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
<ruby-lang219> let's say I use bash. I would like to log which commands I input into the shell
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra> into any shell?
<ruby-lang219> if possible yes, otherwise I am fine with bash
<adaedra> no, I mean
baweaver has quit [Remote host closed the connection]
<adaedra> into any bash instance?
lubarch has quit [Client Quit]
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
<ruby-lang219> is this possible?
lubarch has quit [Client Quit]
<adaedra> I think it's more bash side
<adaedra> But what are you trying to do in the first place?
<ruby-lang219> My main goal is to make a list of all frequently accessed directories, lets say i do "cd Documents/mainDir" and if i give the string
<ruby-lang219> 'mainDir' as an argument to the ruby program it should automatically change to the directory Documents/mainDir
<ruby-lang219> so just a little command line tool for easier directory access
<adaedra> I see
<ruby-lang219> I think the main problems are to capture the commands and to change the directory because ruby will be a child process right?
<adaedra> So you would have a part that collects accessed directories, and another that reads that collected data to sort most accessed directories?
<shevy> if you invoke a ruby file you can have it log output into a file, but cd itself is a shell builtin
lubarch has joined #ruby
lubarch has quit [Changing host]
lubarch has joined #ruby
baweaver has joined #ruby
<ruby-lang219> yeah i know but with the system command it's possible to call commands I've seen
<adaedra> There's a directory change hook, you could call your collector in it
lubarch has quit [Client Quit]
Ox0dea has quit [Ping timeout: 256 seconds]
<adaedra> This has to be called by the shell imo
blackmesa has quit [Ping timeout: 240 seconds]
<ruby-lang219> ok I didn't know that existed, how does this work?
<adaedra> there may be another way, it's just an idea, is more difficult to code, but may not need to edit the shell itself: track shell processes, and use /proc to see cwd.
<DeXterbed> can't you get a list of dirs from the history file?
lemur has quit [Ping timeout: 256 seconds]
Bloomer has quit [Remote host closed the connection]
<adaedra> mh, it may appear that the chpwd hook is zsh-only.
<blub> getting absolute paths would be a trick wouldnt it dexterbed
<adaedra> the bash-solution would be to override cd, but that's bleh
ldnunes has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
<blub> especially with CDPATH
<ruby-lang219> so can I call system 'history' from the ruby process? I tried this and didn't get any output
<adaedra> nope, history is a builtin.
<adaedra> better to look where bash stores its history and read the history file.
bean has quit [Read error: Connection reset by peer]
bean has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
build22 has quit [Ping timeout: 250 seconds]
<ruby-lang219> thanks that seems to work :) "system 'cat ~/.bash_history' " shows the whole history :)
<KrzaQ> [*?a..?z] <-- how should I understand this?
<adaedra> ruby-lang219: why use system cat for that? Just use IO.read
<KrzaQ> I can see what it is in pry, but I don't know what the star does
<KrzaQ> or ? to be honest
<ruby-lang219> It was a little test
<adaedra> KrzaQ: ?x is a character litteral.
<adaedra> >> ?x
<ruboto> adaedra # => "x" (https://eval.in/483727)
<KrzaQ> Okay
<adaedra> KrzaQ: the * is a splat: it will take the array/range/... you give it and expands it as parameters
<KrzaQ> oh
<KrzaQ> so, it's pretty much .to_a ?
<adaedra> here, yes
gix has quit [Ping timeout: 256 seconds]
<KrzaQ> Thanks
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
<adaedra> >> def add(a, b); a + b; end; add *[1, 2] # KrzaQ
<ruboto> adaedra # => 3 (https://eval.in/483730)
Arnvald has quit [Remote host closed the connection]
<KrzaQ> I see
beast has joined #ruby
elton has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Peg-leg has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
last_staff has joined #ruby
elton has quit [Ping timeout: 256 seconds]
gix has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
ponga has joined #ruby
nettoweb has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
FooMunki has joined #ruby
<shevy> .gsub versus .tr versus .delete - before looking what is the fastest, make a guess! http://pastie.org/pastes/10625021/text
<shevy> .gsub is such a heavy beast
<KrzaQ> .reject would be probably even slower
loren has quit [Ping timeout: 240 seconds]
huyderman has joined #ruby
<shevy> hm
<shevy> you have to combine .reject with something to get rid of characters or?
blackmesa has joined #ruby
auzty has quit [Quit: Leaving]
chipotle has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
senayar has quit []
sdothum has joined #ruby
dlitvak has quit [Remote host closed the connection]
jds has joined #ruby
dlitvak has joined #ruby
Rickmasta has joined #ruby
<adaedra> shevy: logical, as gsub bases itself on regegxp match, which is more expensive.
c355E3B has joined #ruby
B1n4r10 has joined #ruby
julian-delphiki has joined #ruby
techsethi has quit [Quit: techsethi]
stamina has joined #ruby
bean has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
qiukun has quit [Quit: qiukun]
qiukun has joined #ruby
DeXterbed has quit [Ping timeout: 256 seconds]
colegatron has joined #ruby
sandstrom has joined #ruby
prestorium has joined #ruby
rodfersou has quit [Ping timeout: 272 seconds]
rodferso1 has joined #ruby
haxrbyte has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
houhoulis has joined #ruby
<ruby-lang219> does anyone know how to call a shell command of the parent process from the ruby child process?
rodferso1 has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 256 seconds]
Bellthoven has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
Bellthoven has quit [Client Quit]
rodfersou has joined #ruby
arquebus has joined #ruby
arquebus has quit [Quit: Textual IRC Client: www.textualapp.com]
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
Bellthoven has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has joined #ruby
yfeldblum has quit [Remote host closed the connection]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
<ruby-lang219> does anyone know how to call a shell command of the parent process from the ruby child process?
houhoulis has quit [Remote host closed the connection]
gits1225 has joined #ruby
symm- has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<Insti> ruby-lang219, system ?
devoldmx has joined #ruby
sandstrom has joined #ruby
<ruby-lang219> if you call system it won't affect the parent process that's the problem
<ruby-lang219> so if i run a ruby script it won't change the environment i'm running it from
elton has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<ruby-lang219> I've thought of this hack. Run a bash script which calls the ruby script which makes a file which is run from the bash script
<ruby-lang219> but this is so bad
<ruby-lang219> and I would like to make it in a ruby way
jgt has quit [Ping timeout: 240 seconds]
sandstrom has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
atumzin has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
DeXterbed has joined #ruby
atumzin has joined #ruby
Maximoz has joined #ruby
elton has quit [Ping timeout: 256 seconds]
sandstrom has quit [Read error: Connection reset by peer]
sandstro_ has joined #ruby
nettoweb has joined #ruby
wolffles has joined #ruby
wolffles has quit [Client Quit]
spiman has joined #ruby
rodferso1 has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
<jhass> ?xy ruby-lang219
<ruboto> ruby-lang219, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<ruby-lang219> ok i will explain my problem
<ruby-lang219> i would like to change my current directory from bash by calling a ruby script
<jhass> technically impossible
<jhass> you can do something like cd $(ruby foo.rb)
ledestin has joined #ruby
<ruby-lang219> didn't know you could do that thanks
ledestin has quit [Client Quit]
techsethi has joined #ruby
qiukun has quit [Quit: qiukun]
bronson has joined #ruby
Pumukel has joined #ruby
charliesome has joined #ruby
ruby-lang048 has joined #ruby
vdamewood has joined #ruby
wmdrossard has joined #ruby
dlitvak has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
l0yd has joined #ruby
dlitvak has joined #ruby
mahk has quit [Quit: ZNC - http://znc.in]
ItSANgo has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
ruby-lang048 has quit [Ping timeout: 252 seconds]
quaristice has joined #ruby
sandstro_ has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
favadi has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
atumzin has quit [Read error: Connection reset by peer]
yqt has joined #ruby
atumzin has joined #ruby
baweaver has joined #ruby
rdark has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
astrobun_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
Bellthoven has quit []
tk__ has joined #ruby
<shevy> I used to be able to use KDE's dcop to restart a REPL in ruby on exit ... the zombie REPL :)
chipotle has quit [Quit: cheerio]
baweaver has quit [Ping timeout: 250 seconds]
jgt has joined #ruby
dlitvak has quit [Remote host closed the connection]
chipotle has joined #ruby
skade has joined #ruby
ruby-lang219 has quit [Quit: Page closed]
Fraeon has quit [Quit: Connection reset by peer]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
Nahra``` has joined #ruby
Fraeon has joined #ruby
casadei has joined #ruby
dlitvak has joined #ruby
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
techsethi has quit [Quit: techsethi]
cjk101010 has joined #ruby
rodfersou has joined #ruby
beast has quit [Quit: Leaving]
User458764 has joined #ruby
zarubin has joined #ruby
rodferso1 has quit [Ping timeout: 240 seconds]
B1n4r10 has joined #ruby
<dlitvak> o/
<nettoweb> guys, can you suggest some good gem to do simple sorting table list? I start to do everything but I have lots of columns so my code gots big
zarubin has quit [Ping timeout: 240 seconds]
Xentil has joined #ruby
sgambino has joined #ruby
Fraeon has quit [Quit: attendez]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
B1n4r10 has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 256 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
atomical has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Hounddog has quit [Remote host closed the connection]
Maximoz has quit [Quit: Leaving]
Fraeon has joined #ruby
Snowy has quit [Remote host closed the connection]
techsethi has joined #ruby
tenderlove has joined #ruby
daivyk has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
Spami has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
Nahra``` has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
rodfersou has joined #ruby
synthroid has joined #ruby
ibouvousaime has quit [Ping timeout: 272 seconds]
mostlybadfly has joined #ruby
desmondhume has joined #ruby
f4cl3y has quit [Ping timeout: 250 seconds]
banister_ has quit [Ping timeout: 256 seconds]
d0nn1e has quit [Ping timeout: 250 seconds]
techsethi has quit [Ping timeout: 240 seconds]
desmondhume has quit []
d0nn1e has joined #ruby
desmondhume has joined #ruby
agit0 has quit [Quit: I'm off]
prestorium has quit [Quit: Leaving]
DeXterbed has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
jcromartie has joined #ruby
johnzorn has joined #ruby
Snowy has joined #ruby
agit0 has joined #ruby
techsethi has joined #ruby
f4cl3y has joined #ruby
f4cl3y has quit [Max SendQ exceeded]
<ytti> oh yeaaah
prestorium has joined #ruby
<ytti> pry interated slop3
<ytti> and no longer depends to slop
<jhass> really? <3
f4cl3y has joined #ruby
<jhass> ljarvis: ^ ;D
Rickmasta has joined #ruby
<jhass> now nov just needs to accept my PR ripping AS out of json-jwt and I might have faith into this community again :P
zotherstupidguy has quit [Quit: WeeChat 1.3]
ledestin has joined #ruby
<shevy> november?
johnzorn has quit [Remote host closed the connection]
johnzorn has joined #ruby
<jhass> github.com/nov
atomical has quit [Ping timeout: 240 seconds]
<apeiros> what's json jwt?
* apeiros looks
<apeiros> ah
atomical has joined #ruby
rodfersou has quit [Ping timeout: 272 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
<shevy> haha
<shevy> that reminds me of hanmac
<shevy> he gets all his changes in :)
rodfersou has joined #ruby
blaxter has quit [Quit: foo]
tenderlove has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cheerio]
techsethi has quit [Ping timeout: 272 seconds]
akkad has quit [Ping timeout: 250 seconds]
B1n4r10 has joined #ruby
ramortegui has joined #ruby
shanemcd has joined #ruby
davedev2_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
bnizzle1 has joined #ruby
bnizzle1 has left #ruby [#ruby]
davedev24 has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkad has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
brunto has quit [Quit: Lost terminal]
dlitvak has joined #ruby
devoldmx has joined #ruby
dlitvak_ has joined #ruby
Voker57 has quit [Remote host closed the connection]
Moosashi has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
seitensei has quit [Quit: "For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
B1n4r10 has quit [Ping timeout: 272 seconds]
elton has joined #ruby
devbug has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
spiman has quit []
nfk|laptop has quit [Ping timeout: 256 seconds]
devbug has quit [Ping timeout: 240 seconds]
elton has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
Nahra``` has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
kobain has joined #ruby
darkxploit has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
kam270 has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
Moosashi has quit [Quit: Moosashi]
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
TomPeed has joined #ruby
Bloomer has joined #ruby
decoponio has joined #ruby
Voker57 has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
<hoylemd> Hey, if I want to document in-line the parameters in an options hash, what's the best way to do that? just a comment?
davedev24 has joined #ruby
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
freerobby has quit [Quit: Leaving.]
ornerymoose has joined #ruby
tenderlove has joined #ruby
ornerymoose has quit [Client Quit]
<jhass> hoylemd: did you consider switching to keyword arguments by now?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fernando1 has joined #ruby
akkad has quit [Ping timeout: 250 seconds]
ElFerna has joined #ruby
chipotle has quit [Quit: cheerio]
babblebre has joined #ruby
baweaver has joined #ruby
Voker57 has joined #ruby
Voker57 has quit [Changing host]
Voker57 has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
<adaedra> Yard has @option, but I'd agree with jhass, kwargs are a better way.
centrx has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
pdoherty has joined #ruby
<shevy> hoylemd you can use those weird signatures
<adaedra> weird signatures?
<shevy> # @note this code does not work
dfinninger has joined #ruby
<shevy> [returns a duck]
<adaedra> Yeah, syntax used by yard and surely others
baweaver has quit [Ping timeout: 240 seconds]
Cantaberry has joined #ruby
edwinvdgraaf has joined #ruby
BTRE has quit [Quit: Leaving]
stamina has quit [Quit: WeeChat 1.3]
_stu_ has joined #ruby
Jardayn has joined #ruby
SOLDIERz has joined #ruby
kies has quit [Ping timeout: 250 seconds]
centrx has quit [Remote host closed the connection]
timonv has quit [Quit: WeeChat 1.3]
dfinninger has quit [Remote host closed the connection]
timonv has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Nahra``` has quit [Ping timeout: 256 seconds]
<hoylemd> jhass: I didn't know ruby had kwargs! maybe that's a better option.
rikai has quit [Ping timeout: 260 seconds]
<jhass> hoylemd: optional since 2.0, required since 2.1
skade has quit [Quit: Computer has gone to sleep.]
anisha has quit [Quit: Leaving]
ornerymoose has joined #ruby
nertzy has joined #ruby
skade has joined #ruby
BSaboia has joined #ruby
ornerymoose_ has joined #ruby
atomical_ has joined #ruby
ornerymoose has quit [Ping timeout: 250 seconds]
ornerymoose_ is now known as ornerymoose
darkxploit has joined #ruby
yardenbar has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
trwyth has joined #ruby
<Walex> I still have a bizarre problem with 'gem install' (and found it has some odd behaviour) and it is very baffling: in a given context when I run it with '--explain' it says it would install a number of dependencies but without '--explain' it does not install them, just downloads them and puts them in a cache. The two cases, including the environment: http://paste.ubuntu.com/13931597/ http://paste.ubuntu.com/13931584/
<Walex> the command line: "printenv; env GEM_SPEC_CACHE=/var/lib/gems/specs gem install [--explain] -u --no-user-install arvados-cli"
dahoo has joined #ruby
<dahoo> if I have an array which contains elements but also arrays, how can i split these subarrays and combine them with the original array?
chipotle has quit [Quit: cheerio]
dlitvak has joined #ruby
<dahoo> i would like to have only an array with strings and not also subarrays in there
<adaedra> dahoo: example of input/output?
<jhass> dahoo: .flatten
edwinvdgraaf has quit [Remote host closed the connection]
BTRE has joined #ruby
stannard has joined #ruby
<dahoo> input = [1,2,[1,2,3][,5,6]] output = [1,2,1,2,3,5,6]
<dahoo> will look into .flatten
nettoweb has joined #ruby
<adaedra> yeah, that's #flatten
<dahoo> ok yes thanks that was fast
<dahoo> I am quite new to ruby and don't really know sometimes where to look in the documentation
dlitvak_ has quit [Ping timeout: 250 seconds]
chouhoul_ has quit [Remote host closed the connection]
<adaedra> ruby-doc.org, rubydoc.info, devdocs.io
chouhoulis has joined #ruby
<adaedra> You can also use pry to explore your objects
<adaedra> ?pry
<ruboto> Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<dahoo> so that's like debugging in ruby? can you recommend any editors? currently i am doing this in a simple text editor
chipotle has joined #ruby
rdavila has joined #ruby
atomical_ has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
jcromartie has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
puria has joined #ruby
agent_white has joined #ruby
solars has quit [Ping timeout: 250 seconds]
ekleog has left #ruby ["parting"]
<agent_white> Moin
rodfersou|lunch has quit [Ping timeout: 250 seconds]
colli5ion has joined #ruby
colli5ion has quit [Max SendQ exceeded]
tagrudev has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: Lost terminal]
colli5ion has joined #ruby
sepp2k has joined #ruby
favadi has joined #ruby
rikai has joined #ruby
<adaedra> dahoo: use what fits you. Many people do ruby with simple editors.
<adaedra> for debugging, you have the `p` method, or use pry and pry-byebug for something more advanced.
uri_ has joined #ruby
claw has quit [Quit: No Ping reply in 180 seconds.]
TvL2386 has quit [Remote host closed the connection]
mary5030 has joined #ruby
akkad has joined #ruby
l0yd has quit [Remote host closed the connection]
quaristice has joined #ruby
elton has joined #ruby
claw has joined #ruby
atomical has quit [Ping timeout: 272 seconds]
rikai has quit [Ping timeout: 250 seconds]
colli5ion has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
atomical has quit [Client Quit]
_stu_ has quit [Quit: _stu_]
atomical has joined #ruby
B1n4r10 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mclong has joined #ruby
_stu_ has joined #ruby
tk__ has quit [Quit: ばいばい]
atomical has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
rikai has joined #ruby
nfk|laptop has joined #ruby
monthy has joined #ruby
bronson has joined #ruby
whippythellama has joined #ruby
colli5ion has joined #ruby
atomical has joined #ruby
chipotle has quit [Quit: cheerio]
bronson has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby
casadei has quit [Remote host closed the connection]
jhn has joined #ruby
colli5io_ has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
aganov has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 250 seconds]
dhollinger has joined #ruby
_stu_ has quit [Quit: _stu_]
dorei has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
colli5io_ has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
Nahra``` has joined #ruby
Rodya_ has joined #ruby
p0wn3d has joined #ruby
colli5ion has joined #ruby
colli5io_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
_stu_ has joined #ruby
User458764 has joined #ruby
saneax is now known as saneax_AFK
avahey has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
uri_ has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: http://radiux.io/]
krz has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
colli5ion has joined #ruby
trwyth has quit [Ping timeout: 250 seconds]
colli5io_ has quit [Read error: No route to host]
jds has quit [Quit: Connection closed for inactivity]
baroquebobcat has quit [Quit: baroquebobcat]
hxegon has joined #ruby
trwyth has joined #ruby
victortyau has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
colli5io_ has joined #ruby
mememem has joined #ruby
rodfersou has joined #ruby
InvGhost has joined #ruby
colli5ion has quit [Ping timeout: 255 seconds]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
DaniG2k has joined #ruby
TheBloke has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
huyderman has quit [Remote host closed the connection]
kies has joined #ruby
aufi has quit [Quit: Konversation terminated!]
Nahra``` has quit [Ping timeout: 256 seconds]
Fernando1 has quit [Ping timeout: 240 seconds]
dlitvak_ has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
mememem has quit [Ping timeout: 256 seconds]
colli5io_ has quit [Ping timeout: 255 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
blackms has joined #ruby
aspire has joined #ruby
mchu has joined #ruby
Hien has joined #ruby
casadei has joined #ruby
devoldmx has joined #ruby
DaniG2k has quit [Quit: leaving]
minimalism has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
kmckelvi1 has quit [Ping timeout: 256 seconds]
wildlander has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sneakerhax has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
pandaant has joined #ruby
hxegon has quit [Ping timeout: 256 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
jas02 has quit [Quit: jas02]
dlitvak_ has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby
gizmore has joined #ruby
scepticulous has quit [Quit: Konversation terminated!]
bMalum has joined #ruby
delsol has joined #ruby
ruby-lang143 has joined #ruby
<ruby-lang143> Hey, is anyone here?
<jhass> ruby-lang143: you seem to be :)
<ruby-lang143> That's true. Good call
<centrx> One is a crowd
<ruby-lang143> I just have what I thought to be a seemingly simple question but I can't figure out the answer. It's about some code...Obviously. This is my first time on here, is there protocol for sending in snippits?
<Papierkorb> and france is bacon
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
tenderlove has quit [Ping timeout: 250 seconds]
<jhass> paste it there, enable syntax highlighting, post link
<ruby-lang143> require "./todo_item" class TodoList attr_reader = :name, :todo_items def initialize(name) @name = name @todo_items = [ ] end def add_item(name) todo_items.push(TodoItem.new(name)) end end todo_list = TodoList.new("Groceries") todo_list.add_item("Milk") todo_list.add_item("Eggs") puts todo_list.inspect =begin require "./todo_item" class TodoList attr_reader :name, :todo_items def initialize(name) @name = n
<jhass> ruby-lang143: see above
arup_r has joined #ruby
niftylettuce has joined #ruby
puria has quit [Ping timeout: 272 seconds]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Quit: Connection closed for inactivity]
<ruby-lang143> Can anyone tell me what the deal is? It's literally the very basics, and I could move on in what I am doing, but I want to know what the hell the bug is.
edwinvdgraaf has joined #ruby
<delsol> if I have gems installed on one machine, is there an easy way to get them onto another machine?
<jhass> ruby-lang143: "attr_reader = :name, :todo_items" try to explain what this line does to me
<jhass> delsol: gem list | magic | xargs ssh gem install
<ruby-lang143> It sets the rest of class up so you don't have to create a method assigning @name to name, you can just initialize it
<jhass> delsol: or just use bundler
<delsol> I have bundler on the machine with the gems
hxegon has joined #ruby
<jhass> ruby-lang143: less high level
<jhass> delsol: bundle help package
kmckelvi1 has joined #ruby
<ruby-lang143> Is that correct or no?
<delsol> or, maybe not... I have the bundler gem... but apparently not the command line command.
jhn has joined #ruby
<jhass> ruby-lang143: for what the line is intended to do, yes sort of. For what it actually does, no. Hence try to explain it item by item
Arnvald has joined #ruby
trwyth has quit [Ping timeout: 256 seconds]
<jhass> ruby-lang143: okay, differently. What does the following code do: foo = :bar
<ruby-lang143> Well, attr_reader allows the program to read the symbols passed to it through the rest of the class
<ruby-lang143> it assigns a variable to a string
therealcode has quit [Ping timeout: 272 seconds]
kalopsian has joined #ruby
<jhass> ruby-lang143: a symbol but close enough, good And: foo = :bar, :baz
dfinninger has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
kalopsian has quit [Client Quit]
<ruby-lang143> I meant symbol I swear
julian-delphiki has quit [Changing host]
julian-delphiki has joined #ruby
<ruby-lang143> it assigns two symbols to one variable?
<jhass> and implicit array but again close enough
<jhass> now let's change the names: attr_reader = :name, :todo_items
<jhass> *an
kalopsian has joined #ruby
<ruby-lang143> So when attr_reader gets more than one string it becomes an array?
adac has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<jhass> ruby-lang143: forget that attr_reader means anything for just this moment
<jhass> ruby-lang143: keep what we just established in mind
<ruby-lang143> ok
<jhass> ruby-lang143: what does this do: attr_reader = :foo, :bar
agit0 has quit [Quit: zzzZZZ….]
<ruby-lang143> it sets two symbols to the variable attr_reader
<ruby-lang143> or the array
<jhass> exactly!
<jhass> now: attr_reader = :name, :todo_items
symm- has quit [Ping timeout: 250 seconds]
symm-_ has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
synthroid has quit [Remote host closed the connection]
Arnvald has quit [Remote host closed the connection]
<ruby-lang143> Right, attr_reader becomes an array containing :name, and :todo_items
<jhass> ruby-lang143: do you know the difference between a local variable and an array?
<jhass> er I typoed badly
krz has quit [Quit: WeeChat 1.2]
<jhass> I meant
<jhass> ruby-lang143: do you know the difference between a local variable and a method?
jbrhbr has quit [Quit: Leaving.]
<ruby-lang143> Yes, I do. I was just confused earlier about the implicit array thing you mentioned. And I do for both.
devbug has joined #ruby
<jhass> so, one gotcha is that you can have a local variable and a method of the same name
colleenmcguckin has joined #ruby
hxegon has quit [Quit: leaving]
<jhass> but the local variable always wins if it's ambiguous
darkxploit has quit [Ping timeout: 256 seconds]
puria has joined #ruby
<jhass> >> def foo; :method; end; foo = :variable; [foo, foo()]
colleenmcguckin has quit [Remote host closed the connection]
<ruboto> jhass # => [:variable, :method] (https://eval.in/483838)
hxegon has joined #ruby
<jhass> now compare your two code snippets again, what difference can you find?
dfinninger has joined #ruby
<ruby-lang143> That's the problem I have been forcing myself to go through these code snippets and Im losing the ability to REALLY focus. I understand what's going on but needed another set of eyes to point out the obvious.
<jhass> ruby-lang143: well, I elaborated on a particular line here for some time, how about you focus on those two lines? ;)
sneakerhax has joined #ruby
suchness has joined #ruby
cwong_on_irc has joined #ruby
<jhass> copy paste them directly below each other or something
<ruby-lang143> I have done that.
<jhass> ruby-lang143: okay, you do realize attr_reader :foo, :bar is just a method call and you can add () to method calls, foo :x -> foo(:x), right?
krobzaur has joined #ruby
jbrhbr has joined #ruby
<jhass> try adding parens to the line and see what ruby thinks
edwinvdgraaf has quit [Remote host closed the connection]
elton has quit [Ping timeout: 250 seconds]
<ruby-lang143> which line?
<jhass> either
<jhass> you want to find out how they differ so you got to understand them both
<ruby-lang143> But both my code that is commented and the code uncommented are the exact same... I think.
bronson has quit [Remote host closed the connection]
<jhass> but they're not
<jhass> in fact one should throw you a NoMethodError when you run it
<ruby-lang143> OH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
devbug has quit [Read error: Connection reset by peer]
<ruby-lang143> IT'S THAT DAMN =
<jhass> yeah, the one I've been asking you questions about all the time! ;)
<ruby-lang143> I know. But I just keep glazing over it over and over again
InvGhostt has joined #ruby
kobain has quit [Read error: Connection reset by peer]
<ruby-lang143> Man, this is why sometimes Id rather just be an alcoholic than a developer.
<jhass> attention to detail is certainly needed
kalopsian has quit [Quit: leaving]
cdg has joined #ruby
<ruby-lang143> Yeah, and I've done some small work and got some small projects completed, but the smallest of things can trip up even the most learned people I guess.
supermarin has joined #ruby
darkxploit has joined #ruby
<ruby-lang143> Ok, I have another question if you have the time and patience to listen to me again.
edwinvdgraaf has joined #ruby
InvGhost has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
podman has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
banister has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
trwyth has joined #ruby
polysics has joined #ruby
nfk|laptop has quit [Quit: yawn]
<ruby-lang143> What are some of the best ways to put Ruby into practice? I really want to use and learn Ruby, not just in Rails, but I want to learn to use Ruby. Despite my obvious blindness shown today, I feel like I have a grasp of the language but no direction from here.
supermarin has quit [Remote host closed the connection]
<jhass> my advice is always to look for things you do routinously, sum some spreadsheets, click something on some website or whatever, limited scope but affecting your existing workflows
B1n4r10 has joined #ruby
<jhass> and try to automate it as much as possible using ruby
pdoherty has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
<ruby-lang143> I know what you just said, but I would have no idea how to begin doing that with Ruby
<jhass> well, let's keep the ruby part out of the mind for now, are there any such tasks you could identify?
yqt has quit [Ping timeout: 250 seconds]
<jhass> (that's btw 70% of your later job as a software engineer, identify and split up tasks/workflows)
ElFerna has joined #ruby
<ruby-lang143> I see. I want to know more about that kind of life, but my workflow right now is Naval Security on escort missions in the middle east.
speakingcode has joined #ruby
Wsewolod has joined #ruby
kalopsian has joined #ruby
kmckelvi1 has quit [Ping timeout: 250 seconds]
kalopsian has quit [Client Quit]
supermarin has joined #ruby
<ruby-lang143> Im at a wall, and have no community around (in person) to help me over. So, I am trying to learn on my own as much as possible for when I can get out and get some work and experience.
<jhass> that sounds like a lot of reports to fill
voodo has quit [Quit: Leaving...]
<ruby-lang143> At times yeah.
Fernando1 has joined #ruby
<ruby-lang143> I guess that's true. Lots of paperwork, and training records.
<jhass> so what technology are these reports filled with? word? some online form? good old printed things?
<ruby-lang143> Printed things usually. But there is some computer work such as evaluations and things.
kalopsian has joined #ruby
<ruby-lang143> It's usually some fillable adobeX file
<jhass> so my first rough ideas (I still know too little about the actual process) is to look for fields that you can fill automatically, your name, the date and whatever
[Butch] has joined #ruby
kalopsian has quit [Client Quit]
<ruby-lang143> Yeah, last four of my social
<jhass> note this is not totally about something you dare to actually use afterwards, it's about knowing the problem domain well already
InvGhostt has quit [Ping timeout: 250 seconds]
<ruby-lang143> Definitely not. There is no way the NAVY is going to just let me install and use my own program. That have special jobs for people that tamper with government software.
<jhass> ah so no chance to fill them on your own computer?
baroquebobcat has joined #ruby
<ruby-lang143> Unfortunately no. Got to keep it on a secret network
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
<jhass> mh, but I hope that could give you some ideas for the general direction I'm going for
<jhass> solve a tasks that you're affected by
<ruby-lang143> I really am stretching way out of my area of work here. But it's because I don't exactly care for what I do.
dfinninger has quit [Remote host closed the connection]
<jhass> that's fine with me, if you make it you'll have good job prospects
colleenmcguckin has joined #ruby
<jhass> the industry is in need of people that know some particular problem domain well and just enough code to be able to explain it to the programmers
favadi has joined #ruby
<ruby-lang143> Definitely, having NAVY service on my resume it should be easy(ier) <= I know that's wrong, but you get the picture
<dahoo> programming is really hard in my opinion
kobain has joined #ruby
<ruby-lang143> And yeah, I really want to learn what to do with it. I love the fact that it's hard.
<dahoo> I am studying computer science and sometimes it's abit overwhelming
<jhass> anyway, if you do find something you think you could code feel free to ask for pointers as to what libraries to look at etc.
favadi has quit [Client Quit]
supermarin has quit [Remote host closed the connection]
<ruby-lang143> Are there any simple projects you could suggest working on?
supermarin has joined #ruby
InvGhostt has joined #ruby
<jhass> not really, no. As said as long as it doesn't affect you and you already know the problem domain well enough, your first project will be highly frustrating IME
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
colleenmcguckin has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<ruby-lang143> I guess so. And I think I knew that, but didn't want to admit it.
tenderlove has joined #ruby
kalopsian has joined #ruby
<mchu> how do i get bundle to run on a ruby version that doesnt support it?
moeabdol has joined #ruby
kalopsian has quit [Client Quit]
kalopsian has joined #ruby
<jhass> if you don't know the problem domain already you should at least have another big motivation factor, like let it be you really want to achieve, like a simple game idea you have or a music player that doesn't suck for you or whatever
<jhass> *be something
<jhass> mchu: which one would that be?
kalopsian has quit [Client Quit]
kalopsian has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has quit [Client Quit]
<mchu> it’s 2.1.5, however there was a .ruby-version file.. and that really confused me. gave me some issues I think i already solved
mustmodify has joined #ruby
devbug has joined #ruby
moeabdol has quit [Client Quit]
dfinninger has joined #ruby
shanemcd has quit [Remote host closed the connection]
<jhass> mchu: bundler definitely is compatible with Ruby 2.1.5
kalopsian has joined #ruby
synthroid has joined #ruby
<mchu> i got this error when i did bundle install : The `bundle' command exists in these Ruby versions:
<mustmodify> Here's a blog post in which the author suggests using sprintf() to specify the number of significant digits. It's clever but feels sooo wrong. There must be a way to get numbers into exponential form and ask for that data rather than using this hack. Any ideas? http://six-impossible.blogspot.com/2011/05/significant-digits-in-ruby-float.html
<mchu> 2.0.0-p598
<mchu> 2.1.2
<mchu> 2.2.0
<mchu> woops, sorry for that
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> what is your ruby version?
RegulationD has quit [Remote host closed the connection]
<mchu> ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
<mchu> ive changed it though.
<shevy> interesting... that's very close to p598
codeurge has joined #ruby
<mchu> oh weird. i thought i switched to 2.1.5, let me try again
jbrhbr has quit [Quit: Leaving.]
dlitvak_ has joined #ruby
haylon has joined #ruby
synthroid has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 272 seconds]
<jhass> mchu: run gem install bundler again
synthroid has joined #ruby
<mchu> i have another question, sorry im kind of new
<mchu> do you mind if i direct message you so i dont spam?
d0nn1e has quit [Ping timeout: 256 seconds]
amclain has joined #ruby
nettoweb has joined #ruby
<jhass> yes, you don't spam
<jhass> if it's more than 3 lines /topic
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<haylon> Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
tenderlove has quit [Ping timeout: 256 seconds]
tomphp has quit [Ping timeout: 256 seconds]
d0nn1e has joined #ruby
<ruby-lang143> Thanks for the help Jhass. Im out.
<jhass> ruby-lang143: hf
rakm has joined #ruby
<mchu> so im working on an open source project and i’d like to just get it running. however theres a file name ‘.ruby-version’ and in that file it says 2.1.5@abc (actual word is replaced). why is it like this?
hololeap has joined #ruby
<mchu> jhass: I ended up just installing ruby 2.1.5 , that is fine right?
<jhass> sure
<jhass> that's a feature of RVM, the part behind the @ is called the gemset
<jhass> RVM allows to have different gemsets in order to isolate applications dependencies from each other
<jhass> a feature that IMO got obsolete with bundler these days
<mchu> jhass: o okay. thanks appreciate your help
<jhass> and actually these days it's recommended to have the gemset name inside a .ruby-gemset file, not inside .ruby-version
ornerymoose has quit [Quit: ornerymoose]
dlitvak_ has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
Ziggy has joined #ruby
Ziggy has quit [Changing host]
Ziggy has joined #ruby
kobain has quit [Read error: Connection reset by peer]
Fernando1 has quit [Ping timeout: 240 seconds]
kalopsian has quit [Quit: leaving]
kalopsian has joined #ruby
imperator has joined #ruby
<mchu> jhass: oh i see
ruby-lang143 has quit [Ping timeout: 252 seconds]
<tildes> is treetop still the way to go, when parsing expression grammars with ruby? I am asking because I notice the latest commit is 2,5 years old - either it became perfect / something else is hotter right now
colegatron has quit [Ping timeout: 240 seconds]
<mchu> jhass: so.. i just bundle install and nokogiri gave me an error.. read stackoverflow and it says to ‘sudo gem uninstall nokogiri’ then install it again.. BUT i got the same error as before even after switching to 2.1.5…. rbenv: version `2.1.5@abc’ is not installed. this .ruby-version file is really messing w/ me
User458764 has joined #ruby
<jhass> I don't follow
deanj has left #ruby ["WeeChat 1.0.1"]
Fernando1 has joined #ruby
dlitvak has joined #ruby
<jhass> you seem to have switched to a different problem description mid sentence
<mchu> ok right hahaa
<imperator> rubygems 2.5.1 released
troulouliou_div2 has joined #ruby
ElFerna has joined #ruby
<mchu> so when i typed in the command to uninstall Nokogiri, i got the error ‘rbenv: version `2.1.5@abc’ is not installed
edwinvdgraaf has joined #ruby
<mchu> i dont understand why i’m still getting that
B1n4r10 has quit [Ping timeout: 250 seconds]
<jhass> mchu: well it looks like rbenv doesn't support the gemset syntax in .ruby-version files (just one reason for the separate files)
ElFerna has quit [Client Quit]
<jhass> (and just one reason to not use rbenv :P)
<mchu> darn
<imperator> been using rbenv for a while, never saw that
<mchu> should i download rvm then?
<jhass> mchu: if you can't change the .ruby-version file you have to use RVM
<shevy> imperator you are my announce bot! I'm gonna update
bb010g has joined #ruby
pdoherty has joined #ruby
yalue has joined #ruby
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> how do I query ruboto's gem version again?
kalopsian has quit [Quit: leaving]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has joined #ruby
Fernando1 has quit [Ping timeout: 272 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator> ?gem -v
<ruboto> -v, I don't know anything about gem
s00pcan has quit [Remote host closed the connection]
devbug_ has joined #ruby
chihaja has joined #ruby
<jhass> do you mean eval.in's?
InvGhosttt has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has joined #ruby
norc has joined #ruby
<norc> Hi folks
baweaver has joined #ruby
kmckelvi1 has joined #ruby
<shevy> >> system 'gem -v'
<ruboto> shevy # => (https://eval.in/483854)
<shevy> hmm
InvGhostt has quit [Ping timeout: 264 seconds]
Jamo has quit [Ping timeout: 240 seconds]
Pro| has quit [Ping timeout: 240 seconds]
<norc> shevy: Yes. Charlie is such a kill joy that way.
<shevy> :(
<norc> On the other hand, it got me started trying to tear down Ruby.
<jhass> >> Gem::VERSION
<ruboto> jhass # => "2.4.5" (https://eval.in/483855)
<shevy> aha!
<norc> Now Im writing hacks to give more direct access to the current VM. :o)
* norc is so used to seg faulting Ruby now
<shevy> yeah I have no idea why you are jumping into the internals from day 0!
kobain has joined #ruby
<norc> More like day 8347
Pro| has joined #ruby
<shevy> I can sometimes segfault ruby too, usually with ruby-gnome
Jamo has joined #ruby
agit0 has joined #ruby
<norc> Well it is rather easy when you get to play with Pointers. :-)
baweaver has quit [Ping timeout: 240 seconds]
elton has joined #ruby
Snowy has quit []
<norc> shevy: You are kinda right tho, I only recently started writing Ruby seriously at work.
colegatron has joined #ruby
<norc> They wanted me to write Java add-ons for some really crappy application. I said no - and so it happened.
chihaja has quit [Ping timeout: 272 seconds]
chthon has quit [Ping timeout: 255 seconds]
gagrio_ has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 240 seconds]
supermarin has quit [Remote host closed the connection]
monthy has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
kalopsia1 has joined #ruby
devbug_ has quit [Ping timeout: 272 seconds]
<mchu> issues installing gem nokogiri 1.6.1 - Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
quaristice has joined #ruby
<mchu> can anyone help ?
Agi-Don34f has joined #ruby
saddad has joined #ruby
<mchu> just stackoverflowed for the last 20 minutes - failed
devbug has joined #ruby
bronson has joined #ruby
kalopsia1 has quit [Client Quit]
kalopsian has quit [Quit: leaving]
elton has quit [Ping timeout: 256 seconds]
goodcodeguy has joined #ruby
<jhass> mchu: full output to gist please
<imperator> mchu, what platform?
Suntzu has quit [Ping timeout: 250 seconds]
<mchu> platform?
<mchu> like Terminal?
<imperator> OS
<jhass> & architecture
<mchu> oh yeah OS
<mchu> what did you want jhass?
<jhass> the full output of the failing command
<mchu> gem install nokogiri -v '1.6.1'
<mchu> also during bundle install
Agi-Don34f has left #ruby [#ruby]
kalopsian has joined #ruby
<jhass> *output*
kalopsian has quit [Client Quit]
kmckelvi1 has quit [Ping timeout: 240 seconds]
<jhass> and you never answered imperator's question either
<mchu> sorry, not really good w/ the terminology .
kalopsian has joined #ruby
<mchu> what do you mean by platform
<imperator> linux? windows?
<jhass> ^ + 32bit/64bit cpu
kalopsian has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
<mchu> ooo, i said Mac OS Yosemite
<mchu> or i just said OS earlier
<mchu> heres my terminal w/ the error
<norc> mchu: What kind of Ruby? MRI? Jruby?
<mchu> Ruby
<jhass> mchu: "review bla/.log to see what happened"
B1n4r10 has joined #ruby
<norc> mchu: It is a known bug in Rubygems. Update it to 2.4.5 or later.
mustmodify has left #ruby [#ruby]
<jhass> wat, really?
supermarin has joined #ruby
InvGhostt has joined #ruby
<norc> jhass: Yes.
<jhass> do I even want to know?
<norc> Depends on your curiositzy I suppose.
<imperator> mchu: "gem update --system"
<Papierkorb> Yes of course
shanemcd has joined #ruby
kfogel has joined #ruby
* kfogel watches mchu's conversation, hopes to learn, since is also a newbie on the same project
yos7ph has joined #ruby
yos7ph has quit [Client Quit]
supermarin has quit [Remote host closed the connection]
<norc> The best thing I ever did on OSX was not using the system Ruby.
<norc> I mean it is really neat to get 2.0.0 out of the box... but still...
polysics has quit [Remote host closed the connection]
<Papierkorb> I'm not sure yet if having no ruby at all, or a completely outdated ruby by default, on a system is more destructive
polysics has joined #ruby
<norc> Papierkorb: Honestly it is much worse on Ubuntu.
InvGhosttt has quit [Ping timeout: 264 seconds]
gits1225 has left #ruby [#ruby]
<Papierkorb> norc: yeah, but everything debian-based is horribly outdated. Not sure about other distros besides Arch
B1n4r10 has quit [Ping timeout: 250 seconds]
<norc> Papierkorb: Honestly most of it changed for the better since Debian Lenny, and Ubuntu generally has a tendency to bring relatively new packages.
<norc> Ruby is just rather extreme
dlitvak has quit [Remote host closed the connection]
psy has joined #ruby
chihaja has joined #ruby
psy has quit [Max SendQ exceeded]
dlitvak has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
psy has joined #ruby
ElFerna has joined #ruby
<norc> Papierkorb: We once had a project where we had to find a certain 15 year old specific libc because of a bizarre dependency. So once I mentioned it, the other developer turns around and says: "Install debian current stable and apt-get install it" - it was hilarious considering the day.
jhn has joined #ruby
mrtomme has quit [Ping timeout: 246 seconds]
jbrhbr has joined #ruby
The_Phoenix has joined #ruby
<Papierkorb> norc: wow .. just wow .. isn't the glibc quite good at downwards compatibility? Was it maybe more of an ABI issue?
<hoylemd> Hey, is there a way to have a bit of code that runs if an error was rescued, no matter the error, while still having error-specific rescues?
<Papierkorb> Though no idea if the ABI of C really changed over the last years. the GNU/C++ one did change every 4 years or so
quaristice has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrtomme has joined #ruby
based_pdev_ has joined #ruby
based_pdev has joined #ruby
jhn has quit [Client Quit]
Fernando1 has joined #ruby
<norc> Papierkorb: From what I can recall the problem was Dreppers ubsurd egolomaniac personality writing glibc in a way that has made it impossible to statically link it.
<norc> Just because he thinks he knows better.
TomPeed has joined #ruby
polysics has quit [Ping timeout: 256 seconds]
ElFerna has quit [Client Quit]
kmckelvi1 has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> And Qt has a hard dependency on the glibc - together with some dependencies from the loader on the embedded linux we had, we ended up with a rather specific version requirement.
<hoylemd> Actually I think I just figured out how to do it while typing out claririfcation. Thanks for rubber-ducking #ruby c:
<Papierkorb> Oh yeah, iirc this topic comes about every so often in the community how they want to get rid of statically linking the glibc
<Papierkorb> won't help you of course for shared libraries
NeverDie has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<Papierkorb> norc: but yeah, those issues are .. .. 'fun' .. never had to go that deep though
<norc> Papierkorb: I mean I understand if they advise against it, but intentionally writing it so that it will just cause your linker to throw errors all around is just wrong.
<Papierkorb> agree
ElFerna has joined #ruby
* Papierkorb afk
platzhirsch has left #ruby [#ruby]
<norc> hoylemd: Sorry. Of course you want to use ensure.
trwyth has joined #ruby
djellemah has joined #ruby
cpup has joined #ruby
mahk has joined #ruby
tenderlove has joined #ruby
symm-_ is now known as symm-
tildes has quit [Ping timeout: 250 seconds]
Jackneill has joined #ruby
devoldmx has joined #ruby
dlitvak has joined #ruby
baweaver has joined #ruby
adac has joined #ruby
sapslaj has quit [Ping timeout: 256 seconds]
`based_pdev` has joined #ruby
chihaja has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
sapslaj has joined #ruby
saddad has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
dzejrou has joined #ruby
based_pdev_ has quit [Ping timeout: 272 seconds]
based_pdev has quit [Ping timeout: 272 seconds]
colleenmcguckin has joined #ruby
based_pdev has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
aibot has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.3]
aibot has joined #ruby
dzejrou has quit [Client Quit]
dzejrou has joined #ruby
fantazo has joined #ruby
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kalopsia1 has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
Peg-leg has quit [Quit: Leaving.]
cirn0 has joined #ruby
sphex_ has quit [Ping timeout: 240 seconds]
desmondhume has quit [Remote host closed the connection]
colleenmcguckin has quit [Ping timeout: 250 seconds]
<hoylemd> norc: why apologise? y'all solved me problem either way :D
djbkd has joined #ruby
<norc> hoylemd: Chatting OT while not seeing a Ruby question.
cirn0 has quit [Client Quit]
kalopsia1 has quit [Client Quit]
kalopsia1 has joined #ruby
<norc> It is a habit here to stop OT chats when someone brings up an actual Ruby question... :)
ornerymoose has joined #ruby
based_pdev_ has joined #ruby
gregf has joined #ruby
TomPeed is now known as _based_pdev_
<hoylemd> Ah. That's a good policy to have. In that case. I, hoylemd, developer of ruby codes, hereby forgive this most heinous transgression ;)
RegulationD has quit [Ping timeout: 250 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
bojuana has joined #ruby
`based_pdev` has quit [Ping timeout: 240 seconds]
colleenmcguckin has joined #ruby
kalopsia1 has quit [Client Quit]
adac has quit [Ping timeout: 256 seconds]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
based_pdev has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 256 seconds]
_based_pdev_ is now known as pdev_paradise
matp has joined #ruby
dzejrou has quit [Quit: Leaving]
dzejrou has joined #ruby
dahoo has quit [Quit: Page closed]
pandaant has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
pdev_paradise is now known as _based_pdev_
nertzy has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
<delsol> hxegon: :)
berserk_ren has joined #ruby
supermarin has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
supermarin has quit [Remote host closed the connection]
<shevy> lol
hahuang65 has joined #ruby
RobertBirnie has joined #ruby
dfinninger has quit [Remote host closed the connection]
berserk_ren has quit [Remote host closed the connection]
colleenmcguckin has quit [Read error: Connection reset by peer]
agent_white is now known as agent_fake
colleenmcguckin has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
agent_fake is now known as agent_white
berserk_ren has joined #ruby
yardenbar has joined #ruby
arup_r has quit []
zarubin has joined #ruby
zarubin has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
dfinninger has joined #ruby
Fernando1 has quit [Quit: WeeChat 1.3]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
jgt has quit [Ping timeout: 250 seconds]
kalopsia1 has joined #ruby
fantazo has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
mchu has quit [Quit: mchu]
berserk_ren has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
<norc> shevy: Stop laughing and go back writing code.
supermarin has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
elton has joined #ruby
B1n4r10 has joined #ruby
devbug has joined #ruby
joast has joined #ruby
kalopsia1 has quit [Quit: leaving]
spider-mario has joined #ruby
berserk_ren has joined #ruby
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
bMalum has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
adac has joined #ruby
Jet4Fire has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
<Jet4Fire> Hello!
elton has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
<xybre> !
avahey has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
desmondhume has joined #ruby
kalopsia1 has joined #ruby
desmondhume has quit [Remote host closed the connection]
kirun has joined #ruby
desmondhume has joined #ruby
colli5ion has joined #ruby
ElFerna has joined #ruby
kalopsia1 has quit [Client Quit]
colli5ion has quit [Client Quit]
frem has joined #ruby
dfinninger has quit [Remote host closed the connection]
pdoherty has joined #ruby
berserk_ren has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
blackms has quit [Quit: Leaving]
kalopsia1 has joined #ruby
riceandbeans has joined #ruby
<riceandbeans> what's the likelihood of needing to do a linked list in ruby?
zast has joined #ruby
SCHAAP137 has joined #ruby
desmondhume has quit [Ping timeout: 256 seconds]
<eam> are we counting homework
<xybre> riceandbeans: pretty much nil, except for interviews
<riceandbeans> that's pretty much what I told my friend, but he didn't seem to understand
jessemcgilallen has quit [Quit: jessemcgilallen]
<riceandbeans> I was like, ruby is too high level, but they'll want to ask to see that you understand data structures and if you ever need to do anything lower level you may need to know how to do a linked list
<xybre> I've been asked about low level data structures in Ruby interviews maybe 5% of the time.
kmckelvi1 has quit [Ping timeout: 256 seconds]
<xybre> I was asked to implement a linked list exactly once.
<riceandbeans> yeah, but coding interviews are stupid
<riceandbeans> they're like calculus classes
<riceandbeans> things you will likely never actually need to do or use and not how you actually code
<eam> pairing interviews are good, contrived stuff generally isn't
rakm has joined #ruby
tenderlove has joined #ruby
bMalum_ has joined #ruby
<shevy> pair brogramming!
<xybre> Calculus is more useful than most interview questions.
<xybre> shevy: bear brogramming
nfk|laptop has joined #ruby
Kruppe has quit [Remote host closed the connection]
dlitvak has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
slact has joined #ruby
symbol has joined #ruby
Kruppe has joined #ruby
<haylon> Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
<eam> shevy: why's it gotta be brogramming :(
bMalum has joined #ruby
Radcircle has joined #ruby
tenderlove has quit [Ping timeout: 272 seconds]
tb1 has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
bMalum_ has quit [Ping timeout: 272 seconds]
Radcircle has quit [Client Quit]
adac has quit [Ping timeout: 256 seconds]
pietr0 has joined #ruby
freerobby has quit [Quit: Leaving.]
kmckelvi1 has joined #ruby
bronson has quit [Remote host closed the connection]
freerobby has joined #ruby
freerobby has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
freerobby has joined #ruby
zarubin has joined #ruby
bojuana has quit [Quit: Leaving]
based_pdev_ has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
sdothum has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
delsol has quit [Quit: Page closed]
aspire has quit [Quit: Leaving]
dfinninger has joined #ruby
berserk_ren has joined #ruby
InvGhostt has quit [Ping timeout: 250 seconds]
zarubin has quit [Ping timeout: 250 seconds]
kalopsia1 has quit [Quit: leaving]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
cschneid_ has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<cschneid_> Are Hash#merge and Hash#merge! the same?
<cschneid_> oh, I see, its just if they mutate the original
Trynemjoel has joined #ruby
<cschneid_> They always return the resulting hash though it seems?
SCHAAP137 has quit [Quit: Leaving]
Vitor_ has quit [Ping timeout: 256 seconds]
moeabdol has joined #ruby
<shevy> eam hah for bearly brogramming hugs!
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
dionysus69 has joined #ruby
<Sou|cutter> cschneid_: I find it's better to never depend on the return value of a bang method. It is hard to keep track of which ones return what
berserk_ren has quit [Remote host closed the connection]
<cschneid_> Sou|cutter: yeah - that's what I thought my error was a second ago. But apparently not :)
<jhass> cschneid_: mh, looks like it, interesting
<jhass> normally core ! methods would return nil if they make no change
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
sphex has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
E_W has joined #ruby
lacuna has joined #ruby
Jet4Fire has quit [Quit: leaving]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
rdavila has joined #ruby
ElFerna_ has joined #ruby
mchu has joined #ruby
kadoppe has quit [Ping timeout: 250 seconds]
kalopsia1 has joined #ruby
<shevy> lovely nils all over everywhere
zast has quit [Remote host closed the connection]
colleenmcguckin has quit [Read error: Connection reset by peer]
BlackCoyote has joined #ruby
shock_one has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
ethe has quit [Read error: Connection reset by peer]
colleenmcguckin has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
kadoppe has joined #ruby
jgt has joined #ruby
ethe has joined #ruby
ta has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
kalopsia1 has quit [Quit: leaving]
kalopsia1 has joined #ruby
kalopsia1 has quit [Client Quit]
<shevy> the implementation of .tap is pretty trivial
<shevy> rb_yield(obj); return obj;
Trynemjoel has quit [Ping timeout: 250 seconds]
colleenmcguckin has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colleenmcguckin has joined #ruby
berserk_ren has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has joined #ruby
azgil has joined #ruby
kalopsian has quit [Ping timeout: 250 seconds]
<azgil> top posters today http://pastie.org/10626044
tomphp has joined #ruby
Trynemjoel has joined #ruby
<jhass> bored?
<shevy> blub is among them!
<shevy> congratulation blub
<blub> thank you
<shevy> azgil you should chop off the '<' and '>' :D
dfinninger has quit [Remote host closed the connection]
<azgil> ok
lemur has quit [Ping timeout: 264 seconds]
colleenmcguckin has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
lacuna_ has joined #ruby
colleenm_ has joined #ruby
goodcodeguy has joined #ruby
akem has joined #ruby
QORRiE has joined #ruby
haylon has left #ruby [#ruby]
lacuna_ has quit [Read error: Connection reset by peer]
AndroidLoverInSF has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
lacuna_ has joined #ruby
tomphp has quit [Client Quit]
elton has joined #ruby
ElFerna_ has quit [Quit: WeeChat 1.3]
ta_ has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
hxegon has quit [Quit: leaving]
daivyk has quit [Quit: Part & Quit]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<goodcodeguy> I'm trying to percent encode a url path for a webservice call and I was trying to use Addressable to do so but it's not doing what I expect. https://gist.github.com/goodcodeguy/4e72ca1e61b3dc1460aa - The first comment shows what I am expecting to get and line 2's comment shows hte code and what I am actually getting, any insight into what I sohuld be doing instead?
_djbkd has quit [Ping timeout: 272 seconds]
akem has quit [Remote host closed the connection]
_stu_ has quit [Quit: _stu_]
elton has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
felltir has joined #ruby
ElFerna has joined #ruby
<norc> goodcodeguy: It puts out whisp%C3%A4 correctly.
<norc> goodcodeguy: Can you gist your actual code?
nettoweb has joined #ruby
shanemcd has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
tomphp has joined #ruby
_stu_ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lacuna_ has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
tomphp has quit [Client Quit]
baroquebobcat_ has joined #ruby
shanemcd has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ is now known as baroquebobcat
tb1 has quit [Quit: WeeChat 1.0.1]
jgt has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
hxegon has joined #ruby
akem has joined #ruby
vdamewood has quit [Ping timeout: 240 seconds]
voodo has joined #ruby
kalopsian has joined #ruby
<jhass> ^ for me too
<goodcodeguy> norc: sorry stepped away; oddly when I do run it in pry it does but not within the context of my gem
<goodcodeguy> give me a moment
jbrhbr1 has joined #ruby
Ox0dea has joined #ruby
jbrhbr has quit [Ping timeout: 256 seconds]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> goodcodeguy: add require "pry"; binding.pry directly before the line where you do it in your gem
jessemcgilallen has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
voodo has quit [Ping timeout: 272 seconds]
p0wn3d has quit [Ping timeout: 272 seconds]
ElFerna has quit [Quit: WeeChat 1.3]
djbkd has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<goodcodeguy> I think I figured out what i was doing
<goodcodeguy> thanks for being a duck guys ;0
lacuna has quit [Read error: Connection reset by peer]
<shevy> we are all ducks!
devoldmx has joined #ruby
lacuna has joined #ruby
Bloomer has quit [Remote host closed the connection]
bronson has joined #ruby
suchness has quit [Remote host closed the connection]
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<shevy> why is that small projects seem to be so much easier than big projects
<eam> >> ?\\
<ruboto> eam # => "\\" (https://eval.in/483874)
djbkd has quit [Remote host closed the connection]
<eam> that's weird
<bubbys> what is it http://pastie.org/10626038
RegulationD has joined #ruby
JDiPierro has joined #ruby
djbkd has joined #ruby
p0wn3d has joined #ruby
agit0 has quit [Quit: I'm off]
sneakerhax has quit [Ping timeout: 250 seconds]
DeXterbed has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
<Ox0dea> eam: Is it?
f00bar-32 has joined #ruby
<Ox0dea> !cops
<Ox0dea> bubbys is linking dox.
bronson has quit [Ping timeout: 256 seconds]
<Ox0dea> >> "\#{}" # eam: I reckon the teleporting backslash is a little weirder.
<ruboto> Ox0dea # => "\#{}" (https://eval.in/483875)
<Ox0dea> That went well.
<Ox0dea> >> "#\{}"
<ruboto> Ox0dea # => "\#{}" (https://eval.in/483876)
rismoney1 has quit [Remote host closed the connection]
blackgoat has joined #ruby
<f00bar-32> How can I sort by offer[1] if market contain a list of arrays. {% for offer in market}
dfinninger has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
<shevy> f00bar-32 what the hell mate
<shevy> that's like random-out-of-nowhere and no code
supermarin has quit [Remote host closed the connection]
<shevy> in general you can define the criteria to sort for in the block
BTRE has quit [Quit: Leaving]
<Ox0dea> f00bar-32: How many elements in `offer`?
dhollinger has joined #ruby
PaulCapestany has quit [Quit: .]
chipotle has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
zarubin has joined #ruby
<f00bar-32> Ox0dea: 2 elements are in offer and i like to sort by offer[1]
ldnunes has quit [Quit: Leaving]
<eam> Ox0dea: that's even weirder
<norc> Ox0dea: I hate Ruby. So far I havent found a simple way to manipulate the control frames, instructions or any of the likes. :(
ta has joined #ruby
hxegon has joined #ruby
PaulCapestany has joined #ruby
darkf has quit [Quit: Leaving]
DeXterbed has quit [Read error: Connection reset by peer]
DeXterbed has joined #ruby
<Ox0dea> f00bar-32: `sort_by(&:last)`, then.
<Ox0dea> eam: Aye, that was my reckonin' too.
<Ox0dea> norc: From Ruby, you mean?
<norc> I was really hoping to be able to load a compiled iseq and execute it as a block, but all the fun functions are not exported and thus not avaliable through dyload..... :(
<norc> Ox0dea: Yeah.
<norc> Pure Fiddle.
zarubin has quit [Ping timeout: 256 seconds]
<Ox0dea> What a pair of terms. :P
<norc> Heh.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<norc> All the Ruby hacks in the world are just boring if you cannot share them with eval.in.
replay has joined #ruby
<norc> But at least I got to learn a lot about how Ruby initializes the VM.
<eam> Ox0dea: actually I take it back, I think it's less weird :D
beardo_ has joined #ruby
<norc> And I meant dlsym of course, not dyload.
nettoweb has joined #ruby
<Ox0dea> norc: Are you moving onto Python, then? :/
<Ox0dea> eam: How so?
<eam> well, that's just using the fact that the canonical escape of a string isn't the only way to create the literal
<Ox0dea> `?\\` isn't weird at all, to be frank.
<eam> ?\\ is weird because ? should be followed by exactly one character in the parser
<eam> escapes shouldn't be a thing
<Ox0dea> No?
<Ox0dea> >> ?\C-@ # eam
<ruboto> Ox0dea # => "\u0000" (https://eval.in/483877)
<norc> Ox0dea: Meh, Python is not so bad actually if you can manage to avoid it.
<Ox0dea> The *evaluation* is always a single character, but why should that have any bearing on the syntax?
<eam> >> ?" == ?\"
<ruboto> eam # => true (https://eval.in/483878)
<eam> that's weird
<Ox0dea> Oh, I see now.
<Ox0dea> I think that's weird, but not the backslash one.
<eam> well, it's weird that ?\ isn't "\"
<Ox0dea> Then again, why bother to escape " in this case?
<Ox0dea> eam: There's no such thing.
n_blownapart has joined #ruby
<eam> yes yes "\\"
yfeldblum has joined #ruby
Suntzu has joined #ruby
krobzaur has quit [Ping timeout: 272 seconds]
juddey has joined #ruby
centrx has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
baweaver has joined #ruby
ElFerna has joined #ruby
onechr has joined #ruby
onechr has left #ruby [#ruby]
bronson has joined #ruby
lemur has joined #ruby
elton has joined #ruby
<f00bar-32> Can I access the key of a hash with [0]? WTF
shanemcd has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<havenwood> f00bar-32: Whatcha mean?
<eam> f00bar-32: sure why not
endriuuuu has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<endriuuuu> hi
<havenwood> endriuuuu: hi
<endriuuuu> sup havenwood
<endriuuuu> hows your weekend going
<endriuuuu> ?
myztic has quit [Ping timeout: 256 seconds]
<endriuuuu> fucking eminem
<endriuuuu> playing in my earthphones
<endriuuuu> when i like drum and bass you know
<endriuuuu> drunk
<endriuuuu> shit happens
<havenwood> ?ot endriuuuu
<ruboto> endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
elton has quit [Ping timeout: 256 seconds]
<endriuuuu> ???
atomical has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
snockerton has joined #ruby
atomical has joined #ruby
E_W has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
snockerton has quit [Client Quit]
dfockler has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
ElFerna has quit [Quit: WeeChat 1.3]
shanemcd has quit [Ping timeout: 240 seconds]
somedude has joined #ruby
<somedude> hello
skade has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
<somedude> I have a quick question about radio_button_tag, can someone help me?
supermarin has joined #ruby
krobzaur has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
<somedude> how would I take this tag and make it selected by default?
<somedude> <%= radio_button_tag(:method, :direct, params[:method] == 'direct', :onclick => 'directOnclick();') %>
<havenwood> somedude: Someone might chime in here but the best place for ActionView questions is the #RubyOnRails channel.
<somedude> thanks
<norc> somedude: Also, please ask about unobstrusive JavaScript when you are there.
_based_pdev_ is now known as powerful_pdev
desmondhume has joined #ruby
dionysus69 has quit [Quit: dionysus69]
BTRE has joined #ruby
<somedude> I'm just styling the form, its for a network gateway
<somedude> But I need this selected by default
krobzaur has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Quit: Leaving.]
<somedude> I did it! :checked => 'checked' was all it needed
<somedude> I'm the bets
<somedude> best*
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> somedude: ;)
<somedude> I beleive I'm a professional developer now
JakFrist has joined #ruby
bronson has quit [Remote host closed the connection]
ruby-lang075 has joined #ruby
<ruby-lang075> hey people. how would one of you go about taking an image and breaking it up into pixels?
<Ox0dea> ruby-lang075: oily_png
_stu_ has quit [Quit: _stu_]
sucks has joined #ruby
ElFerna has joined #ruby
sneakers has joined #ruby
lemur has quit [Read error: Connection reset by peer]
<eam> ruby-lang075: that's a bit of a weird question, considering an image is an array of pixels
baweaver has joined #ruby
<jhass> eam: so SVG isn't an image format? scnr
<Ox0dea> Get 'im!
<eam> jhass: correct, it's a vector format ...
<ruby-lang075> it may sound like an easy question, so forgive me for sounding goofy, but I really wouldn't know how to start with such a problem.
<Ox0dea> ruby-lang075: ChunkyPNG::Image.from_file('foo.png').pixels
<Ox0dea> !next
Jardayn has quit [Quit: Leaving]
<eam> jhass: but an image format isn't an image either :)
Vitor_ has joined #ruby
<jhass> well, are there imagines or are there only representations of images anyway?
<jhass> *images
tomphp has joined #ruby
zarubin has joined #ruby
<Ox0dea> <obligatory Allegory of the Cave mention>
ElFerna has quit [Quit: WeeChat 1.3]
<eam> Ox0dea: probably more Korzybski, no?
<Ox0dea> eam: jhass introduced a debate to do with form, not interpretation, no?
<Ox0dea> They're related, to be sure, but scarcely the same thing.
abra0 has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<eam> is "image" not an interpretation?
akem has quit [Remote host closed the connection]
abra0 has joined #ruby
<ruurd> jhass freudian slip? imagines instead of images?
<Ox0dea> ruurd: jhass is a huge Beatles fan.
akem has joined #ruby
codecop has quit [Remote host closed the connection]
Vitor_ has quit [Ping timeout: 256 seconds]
fantazo has quit [Ping timeout: 272 seconds]
<Ox0dea> eam: I suppose you're right; Korzybski is probably the most relevant theorist to that particular discussion.
<ruurd> O thank you now I'm hearing 64
ta has quit [Remote host closed the connection]
bronson has joined #ruby
ruby-lang075 has quit [Quit: Page closed]
casadei has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
banister has joined #ruby
sucks has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 250 seconds]
sucks has joined #ruby
daivyk has joined #ruby
dlitvak has quit [Remote host closed the connection]
trwyth has joined #ruby
<endriuuuu> s
<endriuuuu> ey guys
<jhass> ?guys endriuuuu
<ruboto> endriuuuu, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
Spami has joined #ruby
<endriuuuu> ?
<endriuuuu> RUSSIA VS SYRIA ?>
<jhass> not going to discuss it here, do you have a ruby question?
<jhass> endriuuuu: if you don't have a Ruby question, I'd like you to leave
skade has quit [Quit: Computer has gone to sleep.]
<hxegon> ?ot endriuuuu
<ruboto> endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
lxsameer has quit [Quit: Leaving]
<endriuuuu> bitch
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> !mute endriuuuu
rodfersou has quit [Quit: leaving]
<havenwood> !kick endriuuuu be nice
endriuuuu was kicked from #ruby by ruboto [be nice]
dopieee has joined #ruby
dfockler has quit [Ping timeout: 250 seconds]
sneakers has quit [Ping timeout: 256 seconds]
bronson has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 272 seconds]
delsol has joined #ruby
Rodya_ has quit [Remote host closed the connection]
mchu has quit [Quit: mchu]
lemur has joined #ruby
AndroidLoverInSF has quit [Quit: Leaving]
AndroidLoverInSF has joined #ruby
chipotle has quit [Quit: cheerio]
jackcom has joined #ruby
Rush_ has joined #ruby
f00bar-32 has quit [Read error: Connection reset by peer]
f00bar-32 has joined #ruby
Cohedrin has joined #ruby
Rush has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
sucks has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
mchu has joined #ruby
<Rush> a = lambda { |foo:| puts 'called'}, how can I programatically check the required arguments for such lambda or proc? (without rescuing from exceptions ArgumentError: missing keyword: foo)
moeabdol has joined #ruby
druonysus has quit [Ping timeout: 256 seconds]
<jhass> >> lambda { |foo:| puts 'called'}.arguments
<ruboto> jhass # => undefined method `arguments' for #<Proc:0x4120f490> (NoMethodError) ...check link for more (https://eval.in/483908)
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<jhass> mh
lemur has quit [Ping timeout: 250 seconds]
<jhass> wasn't there ...
<baweaver> *args
<Rush> without changing the lambda
<baweaver> **kwargs
<jhass> >> lambda { |foo:| puts 'called'}.parameters
<ruboto> jhass # => [[:keyreq, :foo]] (https://eval.in/483909)
<Rush> jhass: nice!
unreal_ has quit [Read error: Connection reset by peer]
delsol has left #ruby [#ruby]
<hxegon> what does |foo:| mean?
<jhass> Rush: that said, given this isn't purely academical, my estimate for whether you're doing something wrong is pretty high
<jhass> hxegon: required keyword argument
<hxegon> jhass, ty
unreal has joined #ruby
skade has joined #ruby
lemur has joined #ruby
<Rush> jhass: well, I can only say that maybe you're right but I'm playing with a serializing framework, and some dependency injection ideas, so academically speaking it's a science experiment and all rules are out :)
<Rush> and thank you for your help
<Ox0dea> >> -> _, _ = 1, *_, _:, _: 1, **_ {}.parameters.map &:first
<ruboto> Ox0dea # => [:req, :opt, :rest, :keyreq, :key, :keyrest] (https://eval.in/483910)
<Ox0dea> I think that's all of 'em.
jgorak_ is now known as GlueC
FooMunki has quit [Quit: FooMunki]
moeabdol1 has joined #ruby
<jhass> Ox0dea: block
elton has joined #ruby
<adaedra> >> -> _, _ = 1, *_, _:, _: 1, **_, &_ {}.parameters.map &:first
<ruboto> adaedra # => [:req, :opt, :rest, :keyreq, :key, :keyrest, :block] (https://eval.in/483913)
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has quit [Client Quit]
calderonroberto has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 256 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
bronson has joined #ruby
elton has quit [Ping timeout: 256 seconds]
JDiPierro has quit [Remote host closed the connection]
_stu_ has joined #ruby
shock_one has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
Jackneill has quit [Ping timeout: 256 seconds]
SCHAAP137 has quit [Ping timeout: 272 seconds]
DeXterbed has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
atomical has quit [Max SendQ exceeded]
zarubin has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
zarubin has joined #ruby
thiagofm has quit [Remote host closed the connection]
tnireytu has joined #ruby
atomical has joined #ruby
Wompy has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thiagofm has joined #ruby
Wompy has left #ruby [#ruby]
akem has quit [Remote host closed the connection]
Spami_ has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
druonysuse has quit [Ping timeout: 240 seconds]
hxegon has quit [Read error: Connection reset by peer]
thiagofm has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 256 seconds]
Spami has quit [Ping timeout: 250 seconds]
B1n4r10 has joined #ruby
jbrhbr has joined #ruby
powerful_pdev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thiagofm has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<eam> why is #binread a class method but not an instance method?
user1138 has quit [Ping timeout: 256 seconds]
ThomaSs has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
bronson has quit [Remote host closed the connection]
devoldmx has joined #ruby
solars has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BSaboia has quit [Ping timeout: 256 seconds]
finisherr has quit [Quit: finisherr]
dfinninger has joined #ruby
matled- has joined #ruby
tnireytu has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
devoldmx has quit [Ping timeout: 256 seconds]
user1138 has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
finisherr has joined #ruby
yqt has joined #ruby
last_staff has quit [Quit: last_staff]
zarubin has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rgrmatt has joined #ruby
<shevy> eam might have been forgotten to add
<blub> hi shevy
<shevy> yeah blub are you doing anything kickass
zarubin has quit [Remote host closed the connection]
zarubin has joined #ruby
Wsewolod has quit [Ping timeout: 250 seconds]
akem has joined #ruby
waka has quit [Remote host closed the connection]
zarubin_ has joined #ruby
trwyth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zarubin has quit [Remote host closed the connection]
shock_one has joined #ruby
<atmosx> aloha
Lucky__ has joined #ruby
kmckelvi1 has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
avahey has quit [Quit: Connection closed for inactivity]
douglass1 has joined #ruby
f00bar-32 has quit [Ping timeout: 272 seconds]
<blub> no...
thiagofm has quit [Quit: Leaving]
devbug has joined #ruby
casadei has quit [Ping timeout: 250 seconds]
<jbrhbr> neat comp
<jbrhbr> running this one does nothing for me: https://raw.githubusercontent.com/tric/trick2015/master/ksk_2/entry.rb
<jbrhbr> guess there's some ruby version problem
<jbrhbr> woops, needed to give it data :)
duncannz has joined #ruby
<Ox0dea> jbrhbr: Do let me know your favorite once you've gone through the lot.
hxegon has joined #ruby
<Ox0dea> omoikane is really neat.
ramortegui has quit [Remote host closed the connection]
nettoweb has joined #ruby
<jbrhbr> will do, tomorrow probably :) can't spend that much time on it today
<somedude> is there any way I can delay an element from loading from a certain page for a few seconds?
<jbrhbr> i like trying to decipher these things. it's good for learning if nothing else!
gizmore has quit [Ping timeout: 272 seconds]
calderonroberto has quit [Ping timeout: 240 seconds]
InvGhost has joined #ruby
supermarin has quit []
Rodya_ has joined #ruby
<Ox0dea> Consider all of my flabbers gasted: https://eval.in/483930
yfeldblum has joined #ruby
<Ox0dea> There are no syntax errors therein.
atomical_ has joined #ruby
f00bar-32 has joined #ruby
atomical has quit [Ping timeout: 240 seconds]
Wompy has joined #ruby
<jbrhbr> what
<hxegon> the F?
<Ox0dea> I still don't get it.
TomyLobo has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
<TomyLobo> has anyone ever used ruby on cygwin? i'm having trouble building ffi since there's no ruby.h. any idea which package that might be in?
hxegon has left #ruby ["Leaving"]
hxegon has joined #ruby
<TomyLobo> there's no ruby-dev or ruby-devel or anything and i cant find a feature to search by file name
solars has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
<TomyLobo> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ruby%5C.h&arch=x86_64 maybe this, but that doesnt seem right
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wompy_ has joined #ruby
uri_ has quit [Quit: --]
ornerymoose has quit [Quit: ornerymoose]
Wompy has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 250 seconds]
snockerton has joined #ruby
elton has joined #ruby
imperator has quit [Quit: Leaving]
gizmore has joined #ruby
berserk_ren has quit [Ping timeout: 250 seconds]
axl_ has joined #ruby
rgrmatt has quit [Remote host closed the connection]
BlackCoyote has quit [Remote host closed the connection]
elton has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
felltir has quit [Remote host closed the connection]
Coldblackice has joined #ruby
sucks has joined #ruby
beardo_ has left #ruby ["Leaving"]
p0wn3d has quit [Ping timeout: 272 seconds]
<Ox0dea> >> we can say whatever we want if @it_doesnt_actually_get_executed # hxegon
<ruboto> Ox0dea # => nil (https://eval.in/483934)
wmdrossard has quit [Ping timeout: 272 seconds]
mchu has quit [Quit: mchu]
charliesome has joined #ruby
<Ox0dea> $1 is nil at program start; everything else builds around that.
mclong has quit [Quit: Leaving]
<soahccc> gosh anyone know how fast fail2ban is? It parses my log forever :<
threh has joined #ruby
synthroid has quit []
<Ox0dea> soahccc: Bigger logs burn slower; that's just basic chemistry.
<jhass> seems rather offtopic ;)
tomphp has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<soahccc> rather yeah. It should help out my rails app :) 4GB access.log however takes some time I'm afraid. I haven't used fail2ban yet and I hope it tails after that initial load
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
firstdayonthejob has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
yalue has quit [Quit: return 0;]
<norc> Ox0dea: Slower?`
bronson has joined #ruby
kirun has quit [Quit: Client exiting]
<norc> I think you meant to say "longer".
<Ox0dea> norc: It's a saying in Tennessee. Well, it's in Texas; it's probably in Tennessee.
kfogel has quit [Quit: Ex-Chat]
<norc> Ox0dea: I got that reference immediately.
<Ox0dea> <3
<norc> And I am not even close to being a native speaker, let alone American.
Bugboy1028 is now known as DeafieGamer
<hxegon> is this the reference that shames you if you make it twice?
<Ox0dea> I've no trouble accepting that Bush's tomfoolery at microphones has spread far and wide.
saneax_AFK is now known as saneax
<norc> Heh.
<norc> hxegon: Funny.
ESpiney has quit [Quit: Leaving]
Tempesta has quit [Ping timeout: 256 seconds]
<norc> Ox0dea: Yeah. You made peace with the fishes right?
mchu has joined #ruby
<Ox0dea> norc: All in the interest of putting food on my family.
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
<norc> Ox0dea: So is this the moment where we start a new Ruby idiom: "It's clearly a Bignum. It's got a lot of numbers in it." ?
kobain has quit [Ping timeout: 240 seconds]
dstarh has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
Ox0dea has quit [Read error: No route to host]
dfinninger has quit [Remote host closed the connection]
<shevy> lol
Ox0dea has joined #ruby
B1n4r10 has joined #ruby
<Ox0dea> norc: I'm so glad you asked. I've been meaning to use Fiddle to add Bignum#[]=, but it gets hairy once the static array optimization hits its limit.
<Ox0dea> How to reliably twiddle heap values?
<norc> Say what?
<Ox0dea> You know how small strings (<24 characters on 64-bit) are optimized to use a static array for storage?
TomPeed has joined #ruby
Wompy_ is now known as Wompy
<norc> I have barely reached the impl of the VM, Im not even at Object implementations yet.
TomPeed is now known as justbleed
<norc> Bottom up, remember?
Wompy has left #ruby ["Leaving..."]
<Ox0dea> Aye, fair enough.
<Ox0dea> But yeah, that same approach is taken for optimizing Bignums.
ornerymoose has joined #ruby
<Ox0dea> Writing to the array for Bignums smaller than 193 bits is cake, but then it gets wonky because heap-allocated.
mchu has quit [Quit: mchu]
Trynemjoel has quit [Ping timeout: 264 seconds]
atumzin has quit [Read error: Connection reset by peer]
<Ox0dea> You'll have to hit Run. https://repl.it/B41z
<norc> Ox0dea: Where is the problem in fiddling heap values?
Wompy has joined #ruby
axl_ has quit [Quit: axl_]
<norc> Fiddle has #ptr and #malloc, which basically gives you all the tools to really screw around.
<Ox0dea> Hmm.
<shevy> oh dear god I just realized
<shevy> both Ox0dea and norc are awake
Trynemjoel has joined #ruby
rdavila has joined #ruby
tenderlove has joined #ruby
<norc> Ox0dea: Im guessing Ruby carries the information about the static ary optimization in flags?
baweaver has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
jgt has joined #ruby
baweaver has joined #ruby
<Ox0dea> norc: Just the one: BIGNUM_EMBED_FLAG.
djbkd has joined #ruby
shanemcd has joined #ruby
<Ox0dea> norc: https://eval.in/483935
justinmburrous has joined #ruby
ta has quit [Ping timeout: 240 seconds]
<Ox0dea> The thing is, all the machinery is, well, machine-dependent.
colegatron has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
Azure has quit [Ping timeout: 256 seconds]
<Ox0dea> `BDIGIT` varies in size, as the most pressing example.
<norc> That should not be an issue
<norc> Give me a second
zarubin_ has quit [Remote host closed the connection]
casadei has joined #ruby
<norc> What flag is that? FL_USER2?
<Ox0dea> That doesn't look like a guess. :P
<Ox0dea> (Yeah.)
dfinninger has joined #ruby
shanemcd has quit [Ping timeout: 256 seconds]
<norc> Im just a little bit confused.
<norc> Also slightly intoxicated.
baweaver has quit [Remote host closed the connection]
<Ox0dea> Rarely one without the other. ^_^
TheSpectre has quit [Ping timeout: 246 seconds]
<Ox0dea> (How's that for a veiled compliment?)
finisherr has quit [Quit: finisherr]
tenderlove has joined #ruby
<Ox0dea> For sufficiently small Bignums, the static array lives right after the RBasic in memory, so the data's just a Fiddle::Pointer#[] away.
felltir has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
<norc> Yeah
<Ox0dea> After 192 bits, the data moves house and changes format and just generally shits in my corn flakes.
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wompy has quit [Remote host closed the connection]
dzejrou has quit [Quit: Leaving]
druonysuse has quit [Remote host closed the connection]
sonOfRa has quit [Quit: Bye!]
tenderlove has quit [Ping timeout: 240 seconds]
sonOfRa has joined #ruby
tenderlove has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<Ox0dea> norc: It's really not as straightforward as it seems like Fiddle might make it.
f00bar-32 has quit [Ping timeout: 250 seconds]
<norc> How is that?
<Ox0dea> Struct layout is machine-dependent, and I don't see how to get at `bn.as.heap` without (hopefully) plucking the address out of raw memory.
lemur has joined #ruby
<Ox0dea> *compiler-dependent
<norc> The struct layout can pretty much be relied on because of C specs.
<norc> You just have to consider alignment
colegatron has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<Ox0dea> Hmm, well, Fiddle certainy obliges us there.
<norc> Which still should be since since somehow everything is either VALUE, or VALUE ptr, which means your structs should mostly be aligned already.
<Ox0dea> >> require 'fiddle'; Fiddle.constants.grep(/ALIGN/).size
<ruboto> Ox0dea # => 13 (https://eval.in/483937)
<Ox0dea> Seems excessive.
tenderlove has quit [Remote host closed the connection]
<Ox0dea> `bn.as.heap` is not a VALUE, though.
babblebre has quit [Quit: Connection closed for inactivity]
zeroDivisible has quit [Quit: WeeChat 1.3]
tenderlove has joined #ruby
zeroDivisible has joined #ruby
<norc> Ox0dea: Sure, the only slightly annoying part is that you have to figure out whether BDIGIT is an unsigned int or unsigned short
<norc> Which is still fairly easy.
DeXterbed has joined #ruby
elton has joined #ruby
<norc> Ox0dea: Wait! Im blind.
tenderlove has quit [Ping timeout: 256 seconds]
<Ox0dea> Hm?
<norc> Ox0dea: Its a pointer. So everything you need to know is known.
myztic has joined #ruby
<Ox0dea> Well, yes, it's on the heap.
<Ox0dea> The heap is pointer city.
<Ox0dea> > I don't see how to get at `bn.as.heap` without (hopefully) plucking the address out of raw memory.
kmckelvi1 has joined #ruby
<Ox0dea> Do I have the right of it, then?
tvw has quit [Remote host closed the connection]
<norc> What?
<Ox0dea> How to get the address of `bn.as.heap`?
<myztic> I know about http://ruby-community.com/pages/links I don't know if that makes sense, but what I want is a "traditional programming book" about ruby, I only seem to find lightweight tutorials, weird reference material and the like is there no concise well written proper book?
<norc> You have a Fiddle::Pointer. All you do now is simple pointer arithmetic, using #ptr to deference into the next ptr.
<Ox0dea> norc: And why would that magically get me to `bn.as.heap`?
lemur has quit [Remote host closed the connection]
<norc> Ox0dea: A union is just syntactic sugar. In memory there is no union.
woodruffw has joined #ruby
<Ox0dea> That doesn't mean a deref is guaranteed to get me there, though?
<dorei> myztic: get the book coauthored by matz
solocshaw has joined #ruby
<myztic> dorei: I thought about getting The Ruby Programming Language
<norc> Ox0dea: Take the pointer of the object, add sizeof(RBasic) and you are at your heap object.
<myztic> dorei: that is the one you mean I guess :)
<Ox0dea> norc: Makes sense, but that's not a dereference.
elton has quit [Ping timeout: 272 seconds]
<dorei> myztic: i think so :)
<norc> Ox0dea: (Fiddle::Pointer(bn.__id__ << 1) + offset).ptr
<norc> That is your digits pointer.
<norc> Forgot a .new there, but you get the idea.
<myztic> how "outdated" is ruby 1.8 by now (how valid is documentation for 1.8 these days) ?
atumzin has joined #ruby
<myztic> or rather 1.9
<myztic> the one coauthored by matz covers 1.9, it was published in 2008
kmckelvi1 has quit [Ping timeout: 240 seconds]
<myztic> time for a second edition me thinks
<jhass> you can get off with 1.9 and blogs for 2.0 & 2.1
<jhass> 1.8 is obsolete for new stuff
<myztic> jhass: but basically the thinks will still all work
<myztic> s/thinks/things
<jhass> yes, some slightly difference but most of the stuff is just new
<jhass> *different
mary5030 has joined #ruby
<Ox0dea> norc: https://eval.in/483950
<shevy> myztic most of the ruby core/stdlib things that have been in 1.8 should work fine; a few things no longer exist though... parsedate or parsetime for instance. I found that out the hard way not long ago when I tried to update an old SVG library, it was using a lot of this parse* thing
djbkd has quit [Remote host closed the connection]
<myztic> yeah ruby seems to be under heavy development
<Ox0dea> norc: It is indeed the right address, because `size` is correct, but I'd expect to see a lot more "\xFF" in that output.
<myztic> still the case or have things slowed down a bit
<myztic> ?
<norc> Ox0dea: Im not sure whether size is in bytes
<Ox0dea> Derp.
<shevy> myztic depends at where you look at; there have been some projects that lost their maintainer
<shevy> myztic ruby core team is very active though bugs.ruby-lang.org/projects/ruby-trunk
<Ox0dea> norc: Even then, where's all the \xFF?
<shevy> some projects manage to have new and semi-active maintainers such as prawn https://github.com/prawnpdf/prawn
<shevy> oops, wrong link... rather than ruby-trunk, I wanted to link in https://github.com/ruby/ruby/blob/trunk/ChangeLog
<shevy> "Eric Wong insns.def (opt_case_dispatch): avoid converting Infinity" only chuck norris could handle Infinity anyway
<myztic> Is matz leading the cause? :)
dfinninger has quit [Remote host closed the connection]
<myztic> he's a mormon?! :D
mary5030 has quit [Ping timeout: 264 seconds]
<norc> Ox0dea: That is the point, you are dealing with BigNum.
<norc> It is differently encoded.
<shevy> myztic he is not leading the cause that much anymore :(
<norc> Throw that into your previous code, and you will see that it does not look as you would expect.
<norc> That particular number.
<shevy> myztic he does focus on mruby
radgeRayden has joined #ruby
<Ox0dea> norc: We're past that, though; we're now dealing with an array of binary digits.
<eam> /win 3
<Ox0dea> Or should be, at any rate, given the results of https://repl.it/B41z
<shevy> I am surprised that eam does not join in when Ox0dea and norc discuss how they could best break ruby next
<Ox0dea> shevy: Bignum#[]= is a great idea and you're just mad you didn't think of it first. :P
<shevy> I don't think I had to deal a lot with bignums so far anyway, how do you people even FIND such things!
devoldmx has joined #ruby
kies has quit [Ping timeout: 250 seconds]
jgt1 has joined #ruby