apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
silentpost has joined #ruby
starkhalo has quit [Ping timeout: 250 seconds]
jayunit100 has joined #ruby
omosoj has quit [Client Quit]
mosoj has joined #ruby
saarinen has quit [Quit: saarinen]
SegFaultAX has quit [Excess Flood]
kldskp has joined #ruby
axl_ has quit [Quit: axl_]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
mikesplain has joined #ruby
SegFaultAX has joined #ruby
mikesplain has quit [Max SendQ exceeded]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Max SendQ exceeded]
mikesplain has joined #ruby
ascarter has joined #ruby
terrell_t has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
mary5030 has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
testcore has quit [Quit: BitchX: a new fragrance for men, by Calvin Klein]
blackmesa has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ghr has joined #ruby
vsoftoiletpaper has joined #ruby
axl_ has joined #ruby
thams has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
Spami has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
kldskp has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 256 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
lidaaa has joined #ruby
ascarter has joined #ruby
pietr0 has quit [Quit: pietr0]
terrell_t has quit [Ping timeout: 244 seconds]
lidaaa has quit [Client Quit]
sputnik13 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 264 seconds]
kachi8 has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
katlogic has left #ruby [#ruby]
silentpost has left #ruby [#ruby]
jarm has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
BadQuanta has quit [Remote host closed the connection]
jtdowney has joined #ruby
lw has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
axl_ has quit [Quit: axl_]
jtdowney has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
rkj has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 260 seconds]
funburn has joined #ruby
havenwood has joined #ruby
ddv has joined #ruby
jxf has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
kevkev_____ has joined #ruby
rubytor has joined #ruby
InfraRuby has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
seanosaur has quit [Remote host closed the connection]
jtdowney has joined #ruby
spastorino has joined #ruby
mikesplain has joined #ruby
centipedefarmer has joined #ruby
jtdowney has quit [Client Quit]
chipotle has joined #ruby
lw has quit [Quit: s]
marr has quit [Ping timeout: 255 seconds]
felgenh3 has quit [Quit: felgenh3]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Azure has quit [Quit: Blue Sky Fish]
zz_karupa is now known as karupa
BadQuanta has joined #ruby
sputnik13 has joined #ruby
kevkev_____ has quit [Ping timeout: 264 seconds]
mspah_ has quit [Quit: Leaving]
nanoyak has joined #ruby
chipotle has quit [Ping timeout: 256 seconds]
sputnik13 has quit [Client Quit]
rbartos has quit []
InfraRuby has left #ruby [#ruby]
Sie00 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 255 seconds]
aspires has quit []
axsuul has joined #ruby
Matadoer has joined #ruby
Takle_ has quit [Remote host closed the connection]
rubytor has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
jonr22 has joined #ruby
mikesplain has quit [Ping timeout: 244 seconds]
arya_ has joined #ruby
rubyonrailed has quit []
djbkd has joined #ruby
bronson has quit [Quit: bronson]
nateberkopec has quit [Quit: Leaving...]
britneywright has joined #ruby
carlyle has joined #ruby
nfk has quit [Quit: yawn]
Matadoer has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 260 seconds]
Matadoer has joined #ruby
aspires has joined #ruby
b00stfr3ak has joined #ruby
b00stfr31k has joined #ruby
dawkirst has joined #ruby
InfraRuby has joined #ruby
robscormack has joined #ruby
ist has quit [Quit: Leaving]
ist has joined #ruby
bigmac has joined #ruby
carlyle has quit [Ping timeout: 264 seconds]
wjimene__ has joined #ruby
bronson has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
b00stfr31k has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 264 seconds]
wjimenez_5271 has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
diegoviola has quit [Remote host closed the connection]
echooo has joined #ruby
wjimene__ has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 250 seconds]
bronson has quit [Quit: bronson]
iteratorP has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
uokesita has joined #ruby
bronson has joined #ruby
Hobogrammer has joined #ruby
o0oo0o_ has joined #ruby
troyready has quit [Ping timeout: 244 seconds]
hector__ has joined #ruby
Tricon has joined #ruby
o0oo0o has quit [Ping timeout: 264 seconds]
abuzze has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
aspires has quit []
kldskp has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
Lucky___ has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
aspires has joined #ruby
abuzze_ has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
ziprar has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
uokesita has quit [Quit: uokesita]
aspires has quit [Client Quit]
sepp2k has joined #ruby
uokesita has joined #ruby
uokesita has quit [Client Quit]
aspires has joined #ruby
Sid05 has joined #ruby
uokesita has joined #ruby
kldskp has quit [Ping timeout: 240 seconds]
justinv has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
dpatel has quit [Quit: dpatel]
Azure has joined #ruby
aspires has quit []
uokesita has quit [Quit: uokesita]
nanoyak has quit [Quit: Computer has gone to sleep.]
mosoj has quit [Ping timeout: 240 seconds]
uokesita has joined #ruby
justinv has joined #ruby
aspires has joined #ruby
uokesita has quit [Client Quit]
uokesita has joined #ruby
postmodern has quit [Quit: Leaving]
uokesita has quit [Client Quit]
uokesita has joined #ruby
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
k0m has joined #ruby
abuzze_ has joined #ruby
ziprar has joined #ruby
ziprar has joined #ruby
rubytor has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
k0m has left #ruby [#ruby]
abuzze has quit [Ping timeout: 250 seconds]
nateberkope has quit [Ping timeout: 240 seconds]
hellome has quit [Ping timeout: 250 seconds]
hector__ has quit [Ping timeout: 256 seconds]
mleone has joined #ruby
kevkev_____ has joined #ruby
agrinb_ has joined #ruby
mleone has quit [Client Quit]
justinv has quit [Remote host closed the connection]
michaeldeol has joined #ruby
agrinb has quit [Ping timeout: 255 seconds]
kevkev_____ has quit [Ping timeout: 260 seconds]
agrinb_ has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
Sie00 has quit [Remote host closed the connection]
chipotle has joined #ruby
robustus has joined #ruby
Sie00 has joined #ruby
bronson has quit [Quit: bronson]
thams has quit [Quit: thams]
oo_ has quit [Remote host closed the connection]
lw has joined #ruby
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
justinv has joined #ruby
icebourg has joined #ruby
sputnik13 has joined #ruby
tokik has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
rebelshrug has joined #ruby
oo_ has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
Petru has quit [Quit: Leaving]
sputnik13 has quit [Client Quit]
jayunit100 has quit [Quit: jayunit100]
devdazed has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
silentpost has joined #ruby
Sie00 has quit [Ping timeout: 245 seconds]
sputnik13 has joined #ruby
carlyle has joined #ruby
bmurt has joined #ruby
GriffinHeart has joined #ruby
nanoyak has joined #ruby
sputnik13 has quit [Client Quit]
starkhalo has joined #ruby
hamakn has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 264 seconds]
thams has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
thams has quit [Client Quit]
devdazed has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
justinv has quit [Ping timeout: 255 seconds]
justinv has joined #ruby
charliesome has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
devdazed has joined #ruby
zmisc has joined #ruby
overmacht has joined #ruby
stytown has quit [Quit: stytown]
charliesome has quit [Client Quit]
tolo123 has quit [Quit: tolo123]
goodenough has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
krz has joined #ruby
Starless has joined #ruby
brianherman_ has quit [Read error: Connection reset by peer]
pumpkin360 has quit [Ping timeout: 250 seconds]
neohunter has joined #ruby
<neohunter> Hi, its possible to know what includes current file?
Sid05 has quit [Quit: Sid05]
circ-user-Za5qM has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
silentpost has quit [Quit: silentpost]
arya_ has quit [Read error: Connection reset by peer]
<havenwood> neohunter: In what sense? Tell us more.
arya_ has joined #ruby
axl_ has joined #ruby
nateberkopec has joined #ruby
sepp2k1 has joined #ruby
silentpost has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
<neohunter> I'm trying to use capistrano-unicorn gem. I've it configured but for some reason I receive an error when I do cap unicorn:reload saying that "mygroup" is not a valid group on my LOCAL COMPUTER, thats defined on unicorn.rb and is the group for remote server. After that error the SSH command is executed and it works. My guess is that I'm including unicorn.rb in the wrong place.
<neohunter> its like the unicorn.rb file is parsed and executed on my local computer first.
kldskp has joined #ruby
<neohunter> So I want to know whats including unicorn.rb
Panicky has left #ruby ["Killed buffer"]
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
vsoftoiletpaper has quit []
ghr has joined #ruby
kldskp has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
axl_ has quit [Quit: axl_]
uokesita has quit [Remote host closed the connection]
goodenough has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
kireevco has left #ruby [#ruby]
axl_ has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
<robscormack> the unicorn.rb file should be in config/unicorn.rb
<robscormack> you'll probably want to check capistrano config at config/deploy.rb
Starless has quit [Quit: Leaving]
djbkd has quit [Quit: My people need me...]
havenwood has quit [Remote host closed the connection]
EmacsKid has joined #ruby
jayunit100 has joined #ruby
arup_r1 has joined #ruby
Jameser has quit [Write error: Connection reset by peer]
lw has quit [Quit: s]
Jameser has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
arup_r has quit [Ping timeout: 244 seconds]
Vivekananda_y510 has joined #ruby
<Vivekananda_y510> hello
Kricir has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
<EmacsKid> hi vivekanada
<EmacsKid> what's up?
nateberkopec has quit [Quit: Leaving...]
kevkev_____ has joined #ruby
jon___ has joined #ruby
havenwood has joined #ruby
Sid05 has joined #ruby
<EmacsKid> i am the bull god.
Shidash1 has joined #ruby
hamakn has joined #ruby
Cache_Money has joined #ruby
<EmacsKid> i am free as bird now.
Shidash has quit [Ping timeout: 250 seconds]
jon___ is now known as jonr2219
tectonic has joined #ruby
kevkev_____ has quit [Ping timeout: 245 seconds]
Shidash1 is now known as Shidash
Matadoer has quit []
yetanotherdave has joined #ruby
EmacsKid has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
lw has joined #ruby
Matadoer has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
Matadoer has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
Sgeo_ has joined #ruby
tjr9898 has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
devdazed has quit [Ping timeout: 240 seconds]
mr_snowf1ake has joined #ruby
Sgeo has quit [Ping timeout: 255 seconds]
devdazed has joined #ruby
Matadoer has joined #ruby
rubytor has quit [Remote host closed the connection]
jonr2219 has quit [Ping timeout: 256 seconds]
ipmsteven has joined #ruby
devdazed has quit [Ping timeout: 256 seconds]
devdazed has joined #ruby
dseitz has joined #ruby
overmacht has quit [Quit: overmacht]
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
axl_ has quit [Quit: axl_]
starkhalo has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
GriffinHeart has quit [Remote host closed the connection]
starkhalo has joined #ruby
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
_reset has joined #ruby
gogohome has joined #ruby
<gogohome> Hello
toretore has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
toretore has joined #ruby
carlyle has joined #ruby
agrinb has joined #ruby
reset has quit [Ping timeout: 264 seconds]
gogohome is now known as fly2web_
<fly2web_> Hello
<sevenseacat> oh not again
<fly2web_> I come here to learn ruby just
ziyadb has quit [Quit: Connection closed for inactivity]
jshultz has quit [Quit: Connection closed for inactivity]
Spami has quit [Ping timeout: 255 seconds]
_reset has quit [Ping timeout: 264 seconds]
jayunit100 has quit [Ping timeout: 255 seconds]
Anarch has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
danielpclark has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
arya_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
* ari-_-e resists urge to feed the troll
goodenough has quit [Remote host closed the connection]
ipmsteven has quit [Ping timeout: 246 seconds]
Anarch has joined #ruby
amystephen has quit [Quit: amystephen]
jayunit100 has joined #ruby
<fly2web_> ari-_-e: :)
freerobby has joined #ruby
moted has quit [Read error: Connection reset by peer]
neohunter has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
oo_ has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
kldskp has joined #ruby
mbuf has joined #ruby
enali_ has joined #ruby
asimk has joined #ruby
abuzze has joined #ruby
charliesome has joined #ruby
ghr has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
PanPan has joined #ruby
charliesome has joined #ruby
oo_ has joined #ruby
danielpclark has joined #ruby
kldskp has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
GriffinHeart has joined #ruby
zz_jrhorn424 is now known as jrhorn424
abuzze_ has quit [Ping timeout: 264 seconds]
enali_ has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
Solnse has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<jrhorn424> anyone have an idiom for storing an array as an instance variable and automatically flattening it after each concat (<<) operation?
charliesome has quit [Client Quit]
yetanotherdave has quit [Ping timeout: 245 seconds]
<godd2> >> [1,2,3] + [4,5]
<eval-in> godd2 => [1, 2, 3, 4, 5] (https://eval.in/175422)
cantonic has joined #ruby
yokel has joined #ruby
<jrhorn424> godd2 thanks. let me try again. I want to do Foo.bar << %w(baz) somewhere, and then when I Foo.bar, #=> ["baz"] instead of Foo.bar #=> [["baz"]]
devdazed has quit [Ping timeout: 264 seconds]
<godd2> use += instead of <<
<jrhorn424> godd2 i'll give that a shot, thanks!
<godd2> This requires that @bar is already an array and that Foo#bar= is defined
icebourg_ has joined #ruby
<jrhorn424> got it. :)
thams has joined #ruby
Channel6 has quit [Quit: Leaving]
icebourg has quit [Ping timeout: 245 seconds]
devdazed has joined #ruby
<godd2> oops, and you need Foo#bar to be there too. using attr_accessor is enough
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
agrinb has quit [Remote host closed the connection]
kevkev_____ has joined #ruby
agrinb has joined #ruby
<asimk> what is the difference between patron and curb?
patrick99e99 has joined #ruby
InfraRuby has left #ruby [#ruby]
everett_ has joined #ruby
everett_ has quit [Quit: Leaving]
<asimk> is patron a library that can be imported in ruby?
britneywright has quit [Ping timeout: 255 seconds]
<robscormack> http://www.slideshare.net/HiroshiNakamura/rubyhttp-clients-comparison <- there you have a list of comparisons, and yeah, patron can be imported.
charliesome has joined #ruby
mary5030 has quit [Remote host closed the connection]
<jrhorn424> godd2 if you're curious, this is what i came up with. can probably be cleaned up a bit. https://gist.github.com/jrhorn424/bd83d6230d8cc0085aa6
mary5030 has joined #ruby
kevkev_____ has quit [Ping timeout: 244 seconds]
devdazed has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
zmisc has quit [Quit: Bye]
goodenough has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
devdazed has joined #ruby
taiansu has joined #ruby
Kricir has joined #ruby
Channel6 has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
<chipotle> anyone here new to ruby? or have suggestions for a new programmer? i finished chris pine's learn to program book, now i'm starting the well grounded rubyist, but i feel a bit intimidated...
zz_anildigital is now known as anildigital
oo_ has quit [Remote host closed the connection]
stytown has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
lw has quit [Quit: s]
iamayam has quit [Ping timeout: 250 seconds]
gruz0[russia] has joined #ruby
chipotle has quit [Quit: cya]
bmurt has quit []
iamayam has joined #ruby
tjr9898 has joined #ruby
rebelshrug has joined #ruby
<robscormack> chipotle:
taiansu has quit [Quit: Leaving...]
<robscormack> stop reading, start creating.
rebelshrug has quit [Client Quit]
oo_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
chipotle has joined #ruby
theharshest has joined #ruby
Gu_______ has joined #ruby
oo_ has quit [Remote host closed the connection]
djbkd has joined #ruby
silentpost has quit [Quit: silentpost]
Doppp has quit [Read error: Connection reset by peer]
Gu_______ has quit [Ping timeout: 255 seconds]
Doppp has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jayunit100 has quit [Quit: jayunit100]
oo_ has joined #ruby
nateberkopec has joined #ruby
<pontiki> reading is good, but practice is necessary
<pontiki> http://blog.tamouse.org/pages/learning/ -- starts off with books, sure, but keep going
agrinb has joined #ruby
Channel6 has quit [Quit: Leaving]
joelteon has joined #ruby
<joelteon> hi, i want to ask about some pretty egregious hacking of bundler's internals, is this the right place
reset has joined #ruby
<pontiki> nah, just submit it as a pull request
<pontiki> :D
nateberkopec has quit [Ping timeout: 240 seconds]
<joelteon> no, i don't want it to be merged into bundler itself
<pontiki> that was a joke, kiddo
<joelteon> lol
<joelteon> well, i'm trying to figure out a way to integrate bundler with a package manager i'm using, and basically I want to make the actual install step no-op and just get the Gemfile.lock it's going to generate
anildigital is now known as zz_anildigital
kldskp has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
charliesome has quit [Ping timeout: 260 seconds]
devdazed has quit [Ping timeout: 240 seconds]
<joelteon> figured i'd ask whether anybody has tried such a thing before
carlyle has quit [Remote host closed the connection]
koderok has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Matadoer has quit [Ping timeout: 272 seconds]
<robscormack> why? bundler works fine by itself.
<joelteon> oh, i found it
ghr has joined #ruby
<joelteon> Definition#lock
anaeem1_ has joined #ruby
Matadoer has joined #ruby
yetanotherdave has joined #ruby
superscott[8] has quit []
devdazed has joined #ruby
kldskp has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<fly2web_> i want do ha*ker. how can i do?
charliesome has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<popl> fly2web_: Grow up.
<fly2web_> popl: what mean?
<benzrf> ha*ker?
<popl> fly2web_: Be a man.
<popl> fly2web_: Stop trolling IRC.
<fly2web_> popl: how do you do?
<fly2web_> are you perl man?
<popl> fly2web_: I'm not sure you're smart enough.
kaiwren has joined #ruby
hightemp has joined #ruby
<fly2web_> my IQ is 154
<ari-_-e> oh damnit guys, we were doing so well!
justinv has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 264 seconds]
<popl> fly2web_: I'm not sure you can even count that high.
<fly2web_> popl: are you perl man? right?
banjara has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<popl> ari-_-e: We'd be doing better if the channel had more ops.
<fly2web_> why you change your language from perl to ruby? popl
<ari-_-e> fly2web_: sorry, you need an IQ of at least 155
<fly2web_> i m mensa member.
thams has quit [Quit: thams]
agrinb has quit [Remote host closed the connection]
<popl> cheap Chinese knock-off mensa
<ari-_-e> so close, and yet so far
<fly2web_> popl: why come here perl man?
<pontiki> ♫ feed the trolls, tuppence a bag ♫
carlyle has joined #ruby
<popl> pontiki: I'd rather /kb the trolls.
lxsameer has joined #ruby
<fly2web_> yesterday, i listen music, then i was kicked. very ominous
<fly2web_> i want study ruby.
<fly2web_> :(
<pontiki> popl: do it or stop feeding
Cache_Money has quit [Ping timeout: 240 seconds]
<popl> pontiki: I'm not an op.
DreamingRainne has quit [Quit: Sleeping to the sound of rain.]
<pontiki> see what's on the other side of the 'or'
fly2web_ has left #ruby [#ruby]
tjr9898 has quit [Remote host closed the connection]
hightemp has quit [Quit: leaving]
<ari-_-e> hah
<popl> pontiki: well, since you asked so nicely…
tjr9898 has joined #ruby
shevy has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 264 seconds]
<pr0t> if I am a developer with a perl background and I want to switch to ruby, what are some of the best books to read?
maestrojed has joined #ruby
<pontiki> eloquent ruby would be a really good one
kevkev_____ has joined #ruby
GriffinHeart has joined #ruby
<pontiki> as it's p.much all about teaching the idioms of ruby
<pontiki> russ's other books are pretty great too; he's a good writer
Cache_Money has joined #ruby
<pontiki> did you do much with perl OO, pr0t ?
oo_ has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 240 seconds]
<hoelzro> I really liked "The Ruby Programming Language"
<hoelzro> very comprehensive
kevkev_____ has quit [Ping timeout: 256 seconds]
<havenwood> the Sparrow
oo_ has joined #ruby
<havenwood> Sparrows?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> agreed, hoelzro -- quite a necessary reference
<hoelzro> havenwood: sounds right
<hoelzro> pr0t: if you don't mind my asking, what's your motivation to switch?
<pr0t> mainly because Puppet and Chef
arup_r1 has quit [Ping timeout: 244 seconds]
SilkFox_ has joined #ruby
charliesome has joined #ruby
zz_anildigital is now known as anildigital
InfraRuby has joined #ruby
anildigital is now known as zz_anildigital
charliesome_ has joined #ruby
shevy has joined #ruby
justinv has joined #ruby
<pontiki> practical reasons!
SilkFox_ has quit [Ping timeout: 256 seconds]
<pontiki> but i never switch languages
<pontiki> just keep adding
charliesome has quit [Ping timeout: 250 seconds]
<pontiki> admittedly things grow rusty the less i use them
InfraRuby has left #ruby [#ruby]
ptrrr has joined #ruby
stytown has quit [Quit: stytown]
jack_rabbit has quit [Ping timeout: 250 seconds]
larissa has quit [Quit: Leaving]
michael_lee has joined #ruby
bluOxigen has joined #ruby
philcris_ has joined #ruby
whomp has quit [Ping timeout: 255 seconds]
zkay11 has left #ruby [#ruby]
MatthewsFace has joined #ruby
funburn has quit [Quit: funburn]
SilkFox_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
dawkirst has joined #ruby
asimk has quit [Ping timeout: 246 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
justinv has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
charliesome has quit [Max SendQ exceeded]
charliesome has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome_ has quit [Ping timeout: 250 seconds]
dawkirst has quit [Ping timeout: 264 seconds]
timgauthier has joined #ruby
swks has joined #ruby
amclain has quit [Quit: Leaving]
tectonic has quit [Read error: Connection reset by peer]
kldskp has joined #ruby
tectonic has joined #ruby
robscormack has quit [Quit: This computer has gone to sleep]
axsuul has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 240 seconds]
ARCADIVS has joined #ruby
ghr has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
icebourg_ has quit []
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: Computer has gone to sleep.]
yetanotherdave has joined #ruby
bMalum has joined #ruby
chrishough has joined #ruby
devdazed has joined #ruby
Emmanuel_Chanel has joined #ruby
tobago has joined #ruby
kldskp has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
robscormack has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 255 seconds]
yetanotherdave has quit [Ping timeout: 256 seconds]
devdazed has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
iteratorP has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
thams has joined #ruby
kenneth has joined #ruby
WormDrink has quit [Ping timeout: 256 seconds]
W0rmDr1nk has quit [Ping timeout: 255 seconds]
whomp_ has joined #ruby
relix has joined #ruby
axsuul has joined #ruby
nanoyak has joined #ruby
oo_ has joined #ruby
whomp_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
kevkev_____ has joined #ruby
zz_anildigital is now known as anildigital
patrick99e99 has joined #ruby
apeiros has joined #ruby
Sid05 has quit [Quit: Sid05]
_tpavel has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
iteratorP has quit [Remote host closed the connection]
philcris_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
philcris_ has joined #ruby
whomp_ has joined #ruby
kevkev_____ has quit [Ping timeout: 256 seconds]
apeiros has quit [Ping timeout: 250 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
havenwood has quit []
philcris_ has quit [Ping timeout: 255 seconds]
IceDragon has quit [Quit: Space~~~]
iteratorP has joined #ruby
jimms has joined #ruby
whomp_ has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
timgauthier has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
aganov has joined #ruby
nobodyzzz has joined #ruby
Matadoer has quit [Remote host closed the connection]
duncannz has joined #ruby
Guest65447 has joined #ruby
duncannz has quit [Client Quit]
timgauthier has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
Lexun has joined #ruby
duncannz has joined #ruby
Takle has joined #ruby
tjr9898 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 245 seconds]
chihhsin_cloud has joined #ruby
teddyp1cker has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
jimms has quit []
chaos7theory has joined #ruby
Deele has joined #ruby
SouL_ has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
Atttwww has quit [Ping timeout: 255 seconds]
starkhalo has quit [Ping timeout: 245 seconds]
tectonic has quit []
devoknievo has joined #ruby
dangerousdave has joined #ruby
bal has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
alem0lars has joined #ruby
devoknievo has quit [Ping timeout: 256 seconds]
threesixes has quit [Remote host closed the connection]
alem0lars has quit [Client Quit]
thams has quit [Quit: thams]
sepp2k has joined #ruby
godd2 has quit [Ping timeout: 240 seconds]
AlSquirrel has joined #ruby
tectonic has joined #ruby
chaos7theory has left #ruby ["Leaving"]
AlSquire has quit [Ping timeout: 244 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ghr has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
relix has joined #ruby
nateberkopec has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
Vivekananda_y510 has quit [Remote host closed the connection]
dawkirst has joined #ruby
OffTheRails has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
beneggett has joined #ruby
tectonic has quit []
iamayam has quit [Ping timeout: 245 seconds]
tricon_ has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
iamayam has joined #ruby
txdv has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
txdv has joined #ruby
Lexun has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
kevkev_____ has joined #ruby
Ilyas has joined #ruby
apeiros has joined #ruby
whomp has joined #ruby
kevkev_____ has quit [Ping timeout: 240 seconds]
Nahra has quit [Remote host closed the connection]
Morkel has joined #ruby
mbuf has quit [Ping timeout: 240 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
devdazed has joined #ruby
whomp has quit [Ping timeout: 250 seconds]
anarang has joined #ruby
philcris_ has joined #ruby
mbuf has joined #ruby
MatthewsFace has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
benzrf is now known as benzrf|offline
philcris_ has quit [Ping timeout: 240 seconds]
bMalum has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
InfraRuby has joined #ruby
jprovazn has joined #ruby
wallerdev has quit [Quit: wallerdev]
reset has quit [Quit: Leaving...]
SouL_ has quit [Ping timeout: 250 seconds]
w09x has joined #ruby
Pharaoh2 has joined #ruby
benzrf is now known as benzrf|offline
techsethi has joined #ruby
jgt has joined #ruby
benzrf|offline is now known as benzrf
jgt has quit [Remote host closed the connection]
arup_r has joined #ruby
kldskp has joined #ruby
benzrf is now known as benzrf|offline
kachi8 has quit [Ping timeout: 264 seconds]
SilkFox_ has joined #ruby
jsaak_ has quit [Ping timeout: 260 seconds]
iteratorP has quit [Remote host closed the connection]
noop has joined #ruby
ptrrr has quit [Quit: ptrrr]
oo_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
andrewlio has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
jmbrown412 has joined #ruby
newUser1234 has joined #ruby
W0rmDr1nk has joined #ruby
WormDrink has joined #ruby
devdazed has quit [Ping timeout: 255 seconds]
gruz0[russia] has quit [Quit: Leaving]
<yliu> ~
devdazed has joined #ruby
w09x has quit []
newUser1234 has quit [Ping timeout: 244 seconds]
abuzze has quit [Remote host closed the connection]
kachi8 has joined #ruby
kachi8 has quit [Remote host closed the connection]
abuzze has joined #ruby
kachi8 has joined #ruby
kevkev_____ has joined #ruby
benzrf|offline is now known as benzrf
yfeldblum has joined #ruby
benzrf is now known as benzrf|offline
mars777 has joined #ruby
iteratorP has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ghr has joined #ruby
swks has quit [Remote host closed the connection]
iteratorP has joined #ruby
bobdobbs` has quit [Ping timeout: 240 seconds]
xkami has joined #ruby
alex88 has joined #ruby
nateberkopec has joined #ruby
swks has joined #ruby
reset has joined #ruby
blackmesa has joined #ruby
Xeago has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
Photism has joined #ruby
iamayam has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 264 seconds]
iteratorP has quit [Remote host closed the connection]
iamayam has joined #ruby
iteratorP has joined #ruby
kevkev_____ has quit [Remote host closed the connection]
kevkev_____ has joined #ruby
clauswitt has joined #ruby
iteratorP has quit [Remote host closed the connection]
JBreit has joined #ruby
oo_ has quit [Remote host closed the connection]
peret has joined #ruby
jottr_ has joined #ruby
ki0 has joined #ruby
iteratorP has joined #ruby
oo_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
devdazed has quit [Ping timeout: 255 seconds]
w09x has joined #ruby
swks has quit [Remote host closed the connection]
whomp has joined #ruby
clauswit_ has joined #ruby
ki0 has quit [Ping timeout: 260 seconds]
devdazed has joined #ruby
oo_ has quit [Remote host closed the connection]
ki0 has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
clauswitt has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
ndrei has joined #ruby
gauravagarwalr has joined #ruby
oo_ has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
yxhuvud has quit [Remote host closed the connection]
bhuey_ has quit [Ping timeout: 250 seconds]
yxhuvud has joined #ruby
basiclaser has quit [Excess Flood]
krisquigley has quit [Remote host closed the connection]
ndrei has quit [Quit: Lost terminal]
basiclaser has joined #ruby
atmosx has joined #ruby
<atmosx> hello
ta has joined #ruby
<wasamasa> hi
bhuey has joined #ruby
reset has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
radic has quit [Ping timeout: 245 seconds]
dANOKELOFF has joined #ruby
devdazed has joined #ruby
radic has joined #ruby
iteratorP has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
SilkFox_ has joined #ruby
<shevy> pontiki don't switch away from ruby!
iteratorP has joined #ruby
coderhs has joined #ruby
swks has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hellangel7 has joined #ruby
gondalier has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
Xeago has quit [Remote host closed the connection]
xkami has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
user258467 has joined #ruby
reset has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
krz has joined #ruby
abuzze_ has joined #ruby
Xeago has joined #ruby
<user258467> Hi, I would like to have a data structure with a several row of several columns what is the best structure to fit this problem (the use case is a CSV file) I tried Array but it seems to complicated to have multidimensionnal Array?
<Hanmac> atmosx: hey, do you have many gems installed on your system?
<atmosx> Hanmac I guess so. I'm using rvm, different gemsets/rubies... although most of my project use the default (2.1.2 iirc)
<atmosx> why?
oo_ has quit [Remote host closed the connection]
jdj_dk_ has joined #ruby
<Hanmac> atmosx: this https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a is a remake from gem2gv ... it can turn the installed gems (or a selected list of gems) into a dot graph ready for dot to make it a svg or png
abuzze has quit [Ping timeout: 250 seconds]
w09x has quit []
iteratorP has quit [Remote host closed the connection]
<Hanmac> some one did say it looks similar to "bundle viz" but i didnt tested that yet
<cantonic> hi there. I have a gem which has a
<cantonic> oops sorry.
<cantonic> i typed that in hours ago and didn’t press enter until now :)
abuzze_ has quit [Remote host closed the connection]
<atmosx> HanmacI should be reading your code more often... I never use openstruct like that. It's neat.
chth0n has joined #ruby
<Hanmac> atmosx: newest feature is to select only gems that match a pattern like " ./gemtree.rb -g "pry-*" | dot -Tsvg -opry.svg; eog pry.svg " in that sample i use eog to display svg files
mijicd has joined #ruby
abuzze has joined #ruby
<atmosx> Hanmac let me try
olivier_bK has joined #ruby
<Hanmac> PS: i need to find a program that can display svg files from STDIN for better chaining ...
elaptics`away is now known as elaptics
<atmosx> Hanmac: dot, is part of webdot?
abuzze_ has joined #ruby
<atmosx> or dot2tex?
<Hanmac> dot is part of graphviz
<atmosx> okay let me install that too
iteratorP has joined #ruby
<atmosx> oh xorg... this will take a while
<Hanmac> there is a ruby-graphviz gem that has a gem2vz executable, but that is broken for my ruby version ... thats why gem2tree was born
<Hanmac> atmosx: hm for what do you need xorg? ... dot should not need that ... but eog maybe does
<atmosx> Hanmac: no idea, I'm letting macports handle the deps
<Hanmac> ah okay ... i didnt tested it on mac ... you can tell me how it works/looks
<atmosx> sure
<robscormack> for dot?
<robscormack> yeah you need X11
<atmosx> I liked this project http://nemex.io/ awesome UI
<atmosx> really smart
<atmosx> It's PHP + JS I wonder how many lines of code to do it in Sinatra + JS.
<Hanmac> hm curious, but not my problem my gemtree does only make the dot graph ... for rendering you need external stuff
abuzze has quit [Ping timeout: 250 seconds]
<Hanmac> hmmm apropo UI yeah shevy, i need to commit some stuff for rwx again i have some unpushed commits, because i need to increase my document-ratio before i commit
oo_ has joined #ruby
alexherbo2 has joined #ruby
joonty has joined #ruby
<robscormack> Hanmac: for dot you need graphviz, but for the tools you require from graphviz, you'll need to compile graphviz with X11 support.
<Hanmac> ahhh good to know
memph1s has joined #ruby
gondalier has quit []
<robscormack> I just checked, have rails_erd here which depends on dot
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
W0rmDr1nk has quit [Ping timeout: 255 seconds]
<robscormack> which generates dot files, I mean.
nateberkopec has joined #ruby
<Hanmac> robscormack: yeah i did see rails_erd already in a output of my graph from a friend ... but bad that this ruby-graphviz and its child apps does not work anymore with my ruby-version
<Hanmac> robscormack: are you interested in look at my gemtree.rb too?
<robscormack> I'm on a Mac
<robscormack> sure, where can I find it?
<Hanmac> PS: i will commit it later but i have also some graph apps for requirement between files and one for a class tree
andrewlio has quit [Quit: Leaving.]
<Hanmac> robscormack: currently only a gist https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a
<Hanmac> will be packed with other little files into one gem later
alexherbo2 has quit [Ping timeout: 245 seconds]
<robscormack> how do i test t?
<robscormack> it*
<robscormack> I read optparse values, I know, I know
<Hanmac> robscormack: currently just pipe it to dot "./gemtree.rb | dot -Tsvg -oout.svg" and then view the out.svg with a viewer of your choice (i prefer eog)
krisquigley has joined #ruby
qba73 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<robscormack> you have a little error, -o works but prints }
<robscormack> and it does not output the last } to the file.
<Hanmac> huch i need to test again (because works for me ... ) currently afk having driving lessions
<robscormack> lessions?
fly2web___ has joined #ruby
<Hanmac> yeah i learn how to drive (but i am not the tutor if you ask)#
<krz> whats a good way to subtract a percentage from a number. for example. i have 100. i want to subtract 10%. output should be 90
<krz> is there a builtin method for something like this?
<fly2web___> i will stop programming because it is too hard
ephemerian has joined #ruby
tvw has quit []
tvw has joined #ruby
<fly2web___> okay?
decoponio has joined #ruby
<sevenseacat> krz: erm, basic maths?
devoknievo has joined #ruby
Ilyas has quit [Ping timeout: 255 seconds]
<sevenseacat> next are you going to ask us how to multiply numbers?
p0sixpscl has quit [Remote host closed the connection]
philcris_ has joined #ruby
p0sixpscl has joined #ruby
<krz> sevenseacat: no. im wondering if there is a method to do 100 - (100 * 0.10)
<krz> i.e. 100.percent(10)
<krz> !
danijoo has quit [Read error: Connection reset by peer]
<sevenseacat> dafuq
<krz> i can write the method with the formula. but wanted to ask if there was somethign built-in already!
<krz> why dafuq? thats a reasonable question?
danijoo has joined #ruby
<sevenseacat> maybe in your head
<krz> are you going to educate us on english today sevenseacat ?
<atmosx> Hanmac: now can't find eot
<atmosx> where does this tool come from?
<robscormack> eot?
<atmosx> libgeotiff?
philcris_ has quit [Ping timeout: 255 seconds]
<ddv> eye of gnome?
<robscormack> dot, eog?
<atmosx> sorry eog
<robscormack> eye of gnome
<atmosx> an nm
<atmosx> I'll use just open
<robscormack> you'll get a nice graph
<robscormack> it made me decide that I'll eat spaghetti for lunch haha
<atmosx> cool svg can not be opened
<robscormack> atmosx try dot -Tpng
<atmosx> I'll get inkscape
<robscormack> if you use firefox, use that.
<robscormack> chrome should open it too
alexherbo2 has joined #ruby
<atmosx> hmm I see a white square
<atmosx> ruby gemstree.rb -g "pry-*" | dot -Tpng -opry.png; open pry.png
<atmosx> shows nothing but ruby gemstree.rb
kennethd6405 has joined #ruby
kennethd6405 has quit [Remote host closed the connection]
bigcup has joined #ruby
<bigcup> hello all, i am reading the ruby docs and the arguments to calls are referring to something called "outbuf"
<bigcup> what is this outbuf?
whomp has joined #ruby
<sevenseacat> output buffer? guessing
techsethi has quit [Ping timeout: 240 seconds]
spacebug has joined #ruby
<bigcup> what type is it?
<Mon_Ouie> bigcup: a) it's an optional argument b) instead of returning a new string, it fills outbuf with the content that has been read (which can save some memory allocation)
techsethi has joined #ruby
<bigcup> i see, thank you
<Mon_Ouie> It works exactly like regular IO#red
<Mon_Ouie> read*
<fly2web___> i will stop learning programming
jmbrown412 has quit [Remote host closed the connection]
timonv_ has joined #ruby
jmbrown412 has joined #ruby
banjara has quit [Quit: Leaving.]
iamayam has quit [Ping timeout: 250 seconds]
<popl> fuck this channel
popl has left #ruby [#ruby]
<robscormack> atmosx: could you make it run? it works for me.
<Hanmac> robscormack & atmosx hm i need to explain the different colors ... blue is a unsessary require .. like A does need B and C but B does need C too, so A -> C is unneeded
<Hanmac> red hexagon is a missing runtime requirement, so require that gem might not work
<Hanmac> dotted nodes are default gems, like rdoc and rake that are installed with ruby itself
<Hanmac> dashed connections does need an update (A does require fixed version of B but B has also newer version installed), dashed nodes are gems that can be cleanup so have older versions that can be save removed
rdark has joined #ruby
spacebug has quit [Client Quit]
timonv^ has joined #ruby
<robscormack> Hanmac what are the blue lines again?
Shidash has quit [Ping timeout: 250 seconds]
whomp has quit [Ping timeout: 255 seconds]
<Hanmac> "unsessary require .. like A does need B and C but B does need C too, so A -> C is unneeded" like require a parents parent ... that should not be needed
iamayam has joined #ruby
<robscormack> I see
<robscormack> my gem tree is a total mess.
<robscormack> :X
InfraRuby has left #ruby [#ruby]
jmbrown412 has quit [Ping timeout: 240 seconds]
koderok has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
W0rmDr1nk has joined #ruby
bijumon has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
timonv^ has quit [Quit: Leaving...]
jdj_dk_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
newUser1234 has joined #ruby
jxf has joined #ruby
devdazed has joined #ruby
asmodlol has joined #ruby
newUser1234 has quit [Ping timeout: 240 seconds]
basiclaser has quit [Excess Flood]
Guest1239534589 has joined #ruby
arup_r has quit [Remote host closed the connection]
Guest1239534589 has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
Guest1239534589 has joined #ruby
Guest1239534589 has quit [Remote host closed the connection]
basiclaser has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
gaussblurinc1 has joined #ruby
arya_ has quit [Ping timeout: 245 seconds]
reset has joined #ruby
ardsrk has joined #ruby
blackmesa has joined #ruby
electrical has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 250 seconds]
sevenseacat has quit [Quit: Leaving.]
devdazed has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
fly2web___ has quit [Quit: Page closed]
lclc has joined #ruby
<lclc> I'd like to install a (SWIG generated) Ruby Gem with my cmake script. How can I get the path where to put the gem for every operating system? is there something like $RUBY_GEMS ?
devdazed has joined #ruby
<lclc> I'm not a Ruby programmer, I just write the build system and I'd like to automate the install process of the SWIG bindings and build packages for those
<jhass> lclc: you can't just call gem install ?
reset has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
arya_ has joined #ruby
nathaniel_p4335 has joined #ruby
nathaniel_p4335 has quit [Remote host closed the connection]
<lclc> well, I maybe could do that for the "make install" part / installing directly on the system. But how do I get the path for the RPM/DEB packages
axsuul has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<jhass> for package building you could parse the the output of gem env (INSTALLATION DIRECTORY) or run ruby -e 'print Gem.default_dir'
TieSoul has joined #ruby
<jhass> then install with gem install -i "${prefix}$(ruby -e 'print Gem.default_dir')" ./gemfile.gem
jottr_ has quit [Ping timeout: 240 seconds]
<lclc> thx
<lclc> I'll try
JBreit has left #ruby ["Leaving"]
namxam has joined #ruby
Vardan has joined #ruby
spacemud has quit [Ping timeout: 250 seconds]
<Vardan> hey all
spacemud has joined #ruby
iamayam has quit [Ping timeout: 245 seconds]
<jhass> hi
agent_white has quit [Quit: leaving]
DaniG2k has joined #ruby
workmad3 has joined #ruby
iamayam has joined #ruby
kachi8 has quit [Ping timeout: 250 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
mongag has joined #ruby
arya_ has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
marr has joined #ruby
<mongag> I see often methods that are setters/gettesr like def name @name end def name=(name) @name = name end? What I can't understand is why do they use them when a attr_accessor which will "generate" getters/setters can be used?
nathaniel_p4335 has joined #ruby
kevkev_____ has quit [Read error: Connection reset by peer]
nathaniel_p4335 has quit [Remote host closed the connection]
kevkev_____ has joined #ruby
<jhass> if that's really all that is in the methods, because they're stupid
<jhass> but sometimes you want a reader/writer to do something else or something additional
nathaniel_p4335 has joined #ruby
nathaniel_p4335 has quit [Remote host closed the connection]
stoffus has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<gaussblurinc1> hi! what's wrong with rvm and bundle? I install rvm, setup rvm with some gemsets (global + project) and run bundle install. everything fine but ruby can't find installed modules :( ruby gemset list show me correct gemset, bundle said that it is fine and all required gems are installed
timonv_ has quit [Remote host closed the connection]
<jhass> try prefixing whatever command gives you the error with bundle exec
nateberkopec has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
nathaniel_p4335 has joined #ruby
arya_ has joined #ruby
<gaussblurinc1> require - git gem - no module
<jhass> is that a copy paste of the real error message? Put the full output into a gist
nathaniel_p4335 has quit [Remote host closed the connection]
gauravagarwalr has quit [Remote host closed the connection]
mike24 has joined #ruby
jayunit100 has joined #ruby
<jhass> what does bundle show git say?
voodoofish1 has joined #ruby
jottr_ has joined #ruby
voodoofish has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
<gaussblurinc1> jhass: '/Users/mac/.rvm/gems/ruby-2.1.2@kulaBuildService/bundler/gems/ruby-git-20fcdc6cec2e'
bluOxigen has quit [Ping timeout: 240 seconds]
<zenspider> I doubt that's right. prolly needs a /lib/, no ?
kathrynr5462 has joined #ruby
kathrynr5462 has quit [Remote host closed the connection]
arup_r has joined #ruby
mongag has quit [Quit: Leaving]
<jhass> I'm rather baffled how a bundle show git ends up showing ruby-git instead
j416_ is now known as j416
<jhass> (and of course that gem doesn't provide a git.rb to require, only a ruby-git.rb)
<jhass> gaussblurinc1: are you literally running the commands I gave you?
<gaussblurinc1> yes
<jhass> Can you add your Gemfile and Gemfile.lock to the gist?
nathaniel_p4335 has joined #ruby
ltd has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
<jhass> protip: gist can be edited and have multiple files
<workmad3> gaussblurinc1: !gist-usage
<helpa> gaussblurinc1: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
whomp has joined #ruby
<gaussblurinc1> ok-ok, what about rvm?
<zenspider> really? does it matter? he provided the info
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<wasamasa> zenspider: hi
<wasamasa> zenspider: are you the guy behind enh-ruby-mode?
<zenspider> wasamasa: sure am.
<wasamasa> zenspider: great, got a bug for you :P
<jhass> gaussblurinc1: why ever you use the git tag of the currently released version of that gem, I somehow still doubt you ran the command producing the error with bundle exec
<zenspider> (not originally, but I maintain the current fork)
<wasamasa> zenspider: probably more than one even
<zenspider> wasamasa: cool. pls file an issue per bug
<wasamasa> zenspider: well, I wanted to make sure it's not me doing things wrong before handing them in
<zenspider> no, that's fine. file the bugs and we'll sort it out there.
<zenspider> I'm about out of wake and my brain is getting fuzzy
<wasamasa> zenspider: the thing is I had to bisect until this commit to have a somewhat working version: https://github.com/zenspider/enhanced-ruby-mode/commit/6f7fb409ee605ac95872bfec19ecfda6a9a581ef#diff-f62b3a19afbcb9eac993e25ce930ea2b
<wasamasa> zenspider: everything before that one works here, everything after doesn't
<zenspider> oooh. interesting. it's prolly my code then because that was a fairly big change I wasn't sure about
OffTheRails has quit [Ping timeout: 245 seconds]
<zenspider> provide a code sample + any reproduction actions and point at that commit as the culprit
codecop has joined #ruby
<wasamasa> well, it starts with just enabling the damn mode :P
devdazed has quit [Ping timeout: 260 seconds]
<zenspider> that... probably means I need to know about your hooks
<wasamasa> which for the working versions errors out at a not autoloaded instruction
<wasamasa> and for the not working ones gives me more errors
<zenspider> what version of emacs?
<wasamasa> 24.3
<zenspider> yeah. that should be fine. that's what I'm developing against
whomp has quit [Ping timeout: 255 seconds]
<gaussblurinc1> jhass: which command to run? bundle exec 'which command'?
<wasamasa> I'm using quelpa since it makes it easier to install versions of a package by commit or whatever
<jhass> the one that gives you that error message
<zenspider> try running `emacs -q`, load enh-ruby-mode manually, and turn on the mode
<wasamasa> so I'll whip up a working example with emacs -q
<jhass> gaussblurinc1: you never showed us what command that is
<zenspider> if that's fine, then it's something about your hooks and my derived mode
<zenspider> wasamasa: thank you
devdazed has joined #ruby
Sie00 has joined #ruby
<gaussblurinc1> jhass: oh, I could not understand what you want. I only run `ruby GitClassesTests.rb` in directory Project/Tests
<jhass> gaussblurinc1: and the first thing I told you was to try bundle exec ruby GitClassesTests.rb
<jhass> which you said you had done
jottr_ has quit [Ping timeout: 264 seconds]
<zenspider> ok. I'm dead on my feet.
<zenspider> g'night
<gaussblurinc1> jhass: thanks, now it work
<gaussblurinc1> jhass: but everytime I need to run script, I need to specify bundle exec? hmm
<wasamasa> zenspider: why is there "(erm-reset)" on a single line on its own?
timonv_ has joined #ruby
spider-mario has joined #ruby
max06 has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
<jhass> gaussblurinc1: I don't know your project but usually you have a common file required by your tests that should setup the environment, that includes a require 'bundler/setup' which will also fix that issue
<max06> Good morning. I'm looking for a gem that can do Get/Post-Requests on the tor-network, without the requirement of a locally installed tor client. Google isn't very helpful. Maybe someone of you can help?
dumdedum has joined #ruby
mongag has joined #ruby
<gaussblurinc1> jhass: could you provide good style of project? any suggestions or projects to inspect?
<jhass> any popular ruby project on github really
Sie00 has quit [Ping timeout: 260 seconds]
bayed has joined #ruby
<mongag> def m_method "string" end def m_method return "string" end both methods returns the string. So do I need to use return?
<jhass> max06: I doubt that exists
nathaniel_p4335 has quit [Remote host closed the connection]
<max06> jhass: that means I have to implement that by myself?
<ddv> max06: You have to implement that yourself.
<jhass> mongag: no, in the last statement of a method you don't and it's generally considered good style to leave it off there. That has the effect of the return keyword highlighting early returns of your method more prominently
<max06> great…
SomeGuy123123132 has joined #ruby
SilkFox_ has joined #ruby
<jhass> is there even a single alternate tor implementation?
<mongag> jhass thanks again
timonv_ has quit [Read error: Connection reset by peer]
<max06> jhass: some weeks ago a ransomware showed up with a native tor connection
<max06> So i guess, that there's such an implementation
<wasamasa> max06: the simplest way of using a tor client... is by using a preinstalled one :P
<wasamasa> max06: so no real surprise
<max06> wasamasa: I can't ask all the users to install the tor client first
<wasamasa> max06: but you can ask them to install a ruby tor client first?
gauravagarwalr has joined #ruby
<workmad3> max06: aren't you going to need to distribute some form of installer to get ruby onto systems?
<max06> I wanted to provide an app without any further requirements
<jhass> looks like there's an unreleased java and an experimental python implementation
<jhass> nothing I'd really want to use
mongag has quit [Quit: Leaving]
<max06> workmad3: I'm not that far :D - at the moment I'm just planning a project
<workmad3> max06: well, my point is that you could always bundle the tor client in with your app's installation script/package ;)
reset has joined #ruby
<max06> workmad3: that's an idea, but there must be a better way…
iteratorP has quit [Remote host closed the connection]
<wasamasa> max06: no matter how, you'll install a tor client on their boxen
ptrrr has joined #ruby
<max06> that's a little bit overpowered… I just need to get one small file from tor
stef_204 has joined #ruby
<wasamasa> which requires you to have a tor client that's able to get a file, yes
<workmad3> max06: I suppose you could bundle up the tor implementation into a native rubygem, slap an FFI interface onto it and compile it via rubygems
SilkFox_ has quit [Ping timeout: 255 seconds]
<max06> workmad3: will look into that, thanks
<workmad3> oh dammit
<workmad3> </sarcasm>
<wasamasa> lol
<max06> (I'm new to ruby :D - feel free to make jokes about that :D)
<wasamasa> not only to ruby it seems
user258467 has quit [Remote host closed the connection]
<atmosx> Hanmac robscormack works works...
<max06> yes, I'm a sysadmin, not a dev usually ;)
lclc has left #ruby ["Konversation terminated!"]
<wasamasa> zenspider: I guess I'll start with the autoloading bug first
<robscormack> it does :)
<wasamasa> zenspider: then will progress once that one's fixed
dumdedum has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
<max06> that's why I'm asking here :)
iteratorP has joined #ruby
timonv_ has joined #ruby
<wasamasa> max06: as a sysadmin you're aware you can install stuff locally, right?
<max06> wasamasa: yes, but I can't ask all the users to do that also
oo_ has quit [Remote host closed the connection]
<max06> most of the users never heard about tor
reset has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
<wasamasa> max06: hmm, fortune gave me a random insight regarding this today
<wasamasa> max06: "Build a system that even a fool can use and only a fool will want to use it."
timonv_ has quit [Remote host closed the connection]
shredding has joined #ruby
timonv_ has joined #ruby
<max06> mhm
anaeem1_ has quit [Remote host closed the connection]
<max06> My goal is that the users don't see anything of the tor activity. It just needs to get a file from tor right after start. (No, I'm not writing a trojan horse, botnet, ransomware or similar)
<wasamasa> I can't imagine what legal file that would be, honestly
<workmad3> wasamasa: don't forget "Nothing is foolproof because fools are so ingenious"
<wasamasa> under these requirements that is
<max06> Tracker-Data
<canton7> can't you just mirror that file somewhere?
axsuul has quit [Ping timeout: 250 seconds]
<wasamasa> tracker data?
<max06> for p2p-connections
oo_ has quit [Remote host closed the connection]
* wasamasa sighs
<max06> I want to hide them in tor
<wasamasa> uh, yeah
kyb3r_ has joined #ruby
<max06> every normal server can be shut down
<max06> I want to prevent this
<workmad3> max06: tor servers could be shut down too
<max06> but with much more efford
<wasamasa> well, tor is strictly against p2p
<workmad3> max06: not if ISPs started dropping tor traffic
<wasamasa> since it makes it even slower
pumpkin360 has joined #ruby
<max06> wasamasa: I don't want to use p2p inside the tor-network, just the tracker system
<wasamasa> just what could you been sharing over that thing
devdazed has quit [Ping timeout: 250 seconds]
<wasamasa> legal things that must not be shut down?
<max06> yes, it's kind of a big index
<max06> which can be edited by any user
<max06> replication should work using p2p
<wasamasa> sounds very foolproof
<jhass> max06: do you know DHTs?
<wasamasa> ^
gogohome has joined #ruby
<max06> jhass: yes, heard about that
<gogohome> Hello, ;)
<gogohome> i will study ruby hard.
<wasamasa> nope
timonv^ has joined #ruby
iteratorP has quit [Remote host closed the connection]
<gogohome> wasamasa sang?
<max06> was thinking about using kind of blockchains for distributing the index changes
<max06> similar to bitcoins
ltd has joined #ruby
<wasamasa> why don't you try the obvious, simple and battle-tested options first?
devdazed has joined #ruby
<max06> that means? one public server containing the p2p-Data?
<wasamasa> no, DHT
<max06> reading...
<Hanmac> atmosx & robscormack so i am back again ... i managed to drive nealry well ;P
<max06> for a DHT you also need a centralized server containing the node information (afaics)
philcris_ has joined #ruby
<robscormack> Hanmac I'm about to go to sleep
<wasamasa> I mean, you're here on #ruby, claim you're just a sysadmin, can't figure out how to package a tor client in your hypothetical software and have wild ideas about how to implement a fail-safe and superslow way of distributing the tracker data for files nobody would take down since they're legal in the first place
<wasamasa> which sounds pretty fishy
timonv_ has quit [Ping timeout: 260 seconds]
<max06> I know how it sounds :D
<wasamasa> stupid even
<max06> maybe, yes
* robscormack goes for popcorn.
<workmad3> !popcorn
eka has joined #ruby
<robscormack> I'm still unworthy of this bot
<wasamasa> zenspider: let's concentrate on this one first
<Hanmac> robscormack: as you can see in your test.png there are some red hexagons ... that means this are gems that are required by others but missing ... you might need to fix that
<max06> Bittorrent was also a stupid idea in the start, same for tor
dumdedum has joined #ruby
<max06> or youtube
<workmad3> max06: err, wasamasa didn't say *tor* was stupid... he's suggesting that your plan of action reeks of fishiness and over-engineered potential stupidness ;)
nateberkopec has joined #ruby
<wasamasa> ^
<robscormack> Hanmac then I have a use case for ya
<wasamasa> max06: have you ever heard about things like the unix philosophy?
SomeGuy123123132 has quit [Quit: Leaving]
<wasamasa> max06: or why open source is so successful?
<max06> workmad3: maybe … I just want to prove the concept
<workmad3> max06: which concept?
<robscormack> Hanmac: I have all those gems installed via github.
<wasamasa> max06: or about worse is better?
<workmad3> max06: your general app concept?
<max06> building a system with replicated data, which is nearly completely fail-safe
philcris_ has quit [Ping timeout: 255 seconds]
<wasamasa> max06: all those point towards the fact that technically simple, simple to set up and open solutions are more successful
<workmad3> max06: maybe proof-of-concept it without using tor to start with?
<robscormack> completely failsafe? ok, 3... 2... 1...
<max06> workmad3: yes, will start with that
* robscormack thinks heartbeat
<wasamasa> max06: besides, networks are inherently unsafe
<workmad3> robscormack: *nearly* ;)
oo_ has joined #ruby
<max06> robscormack: I said nearly
<workmad3> robscormack: as in... not ;)
<max06> :P
<workmad3> but yeah... pacemaker, zookeeper, etcd...
<max06> it's just an idea
<wasamasa> max06: just the problem of persistence and network partitions is hard enough to solve and you believe you can go against that with tor?
<workmad3> CAP
krisquigley has quit [Remote host closed the connection]
<max06> wasamasa: again: I need tor only for the tracker data, not for the p2p
<workmad3> consistency, availability, partition tolerance, pick 2... note, you have to pick P
<robscormack> why not solve it with proper tools like faucet and hose? those are implemented on a package named netcat.
krisquigley has joined #ruby
<wasamasa> GNU or BSD netcat?
<max06> and bitcoins showed that it is possible to have a distributed system which is also fine with consistency, availability and partition-tolerance
<Hanmac> workmad3: in the books of TerryPratchett there was a weapon called "piece-maker" ;P
<robscormack> GNU I guess, I've used those on Slackware thousands of years ago
<workmad3> max06: no, they dropped consistency in the absolute sense
nateberkopec has quit [Ping timeout: 240 seconds]
<workmad3> max06: and went with a system that provides eventual consistency by providing a mechanism for choosing between branches in the blockchain
<max06> which seems to work pretty well, isn't it?
<robscormack> eventually consistent is not consistency
<workmad3> max06: sure... but it means that at any given time the system is actually *inconsistent*
<workmad3> or at least, probably inconsistent ;)
<atmosx> Hanmac: I drive well :-P I write code like shit though
<max06> but these inconsistencies can be solved
<atmosx> Hanmac: I compete in local racing events with my father
<max06> for example using the blockchain approvals
<workmad3> max06: no... they can be alleviated, resolved and worked around... solving them would be providing a completely consistent view at all time
<workmad3> *times
<atmosx> brb
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> max06: it's more inconsistency-tolerant than consistent ;)
<Hanmac> hihi ... i dont drive well yet, but i am still learning so its okay ... (today was the first day i did drive with 90 km/h )
kaspergrubbe_ has joined #ruby
<max06> workmad3: which is pretty suitable for me
<workmad3> max06: which doesn't break CAP
TorpedoSkyline has joined #ruby
dangerou_ has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Ping timeout: 260 seconds]
<workmad3> max06: I wasn't really arguing that ;)
<max06> ;)
<workmad3> max06: I was arguing your claim that bitcoin gets all 3 items in CAP :P
<max06> I just want to see if this would work
<workmad3> max06: then start making it
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<max06> will, today evening after work
TieSoul has joined #ruby
<workmad3> max06: I'd suggest you isolate your protocol from the tracking-data seed to start with though
Hobogrammer has joined #ruby
<workmad3> max06: and also have a look at things like zookeeper, pacemaker, etcd, and the like to see if any of those systems for distributed data are of any use ;)
<max06> thanks :)
<workmad3> (although afaik, none of them are brilliant in a split-brain situation)
swks has left #ruby [#ruby]
tvw has quit []
<robscormack> workmad3: what's a split-brain situation? a net split?
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
brianherman has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
<workmad3> robscormack: it's a partition in a system with an elected master where both sides of the partition elect a new master
iteratorP has joined #ruby
newUser1234 has joined #ruby
whomp has joined #ruby
jackneill has joined #ruby
<robscormack> I see
<workmad3> robscormack: e.g. a zookeeper setup which needs at least 4 nodes to elect a master in a setup with 10 nodes and it partitions with 5 on each side... so one side keeps its master and the other side goes 'our master went away... lets elect a new one!'
<workmad3> robscormack: or at least, I think that's what it is :)
and has joined #ruby
<robscormack> workmad3: yep, I know the theory about that one.
<workmad3> (or should that be that's what I think it is :) )
<robscormack> once upon a time I had to rebuild a database after three days of transactions on a net split situation.
<workmad3> multi-master net-split?
jmbrown412 has joined #ruby
<robscormack> workmad3: direct translation from spanish, not familiar with most english terms.
<workmad3> robscormack: ah, I was asking if the database was a multi-master setup where the net-split divided the masters
<max06> for example, a mirrored file-system across 2 Servers, with write to both nodes. If the connection between the two servers is failing, you have a brain split. The system doesn't know how to handle collisions after reconnecting.
<robscormack> yep, 32 masters, each one having a slave for backup.
<workmad3> robscormack: yeah... that would be hairy
<robscormack> it took me an hour to recover the disaster (hell yeah!)
<workmad3> robscormack: logical merge?
newUser1234 has quit [Ping timeout: 255 seconds]
whomp has quit [Ping timeout: 240 seconds]
<workmad3> robscormack: or did you sort the split and then do a wal replay?
<robscormack> logical merge, repeated id's.
davispuh has joined #ruby
Wolland has joined #ruby
<workmad3> robscormack: bet you wished they were using uuids though ;)
<robscormack> was going to cost a fuckload to the company. instead, I could buy my current macbook :D
<robscormack> haha
jmbrown412 has quit [Ping timeout: 255 seconds]
echooo has quit [Ping timeout: 250 seconds]
Wolland_ has joined #ruby
ziyadb has joined #ruby
pavelso has quit [Ping timeout: 246 seconds]
Wolland_ has quit [Read error: Connection reset by peer]
Wolland__ has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 244 seconds]
krisquigley has quit [Remote host closed the connection]
Guest65447 has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
koderok has quit [Quit: koderok]
arup_r has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 255 seconds]
lanox has joined #ruby
matcouto has joined #ruby
danielpclark has quit [Quit: Leaving]
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
koderok has joined #ruby
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
<daxroc_> Afternoon all
heftig has joined #ruby
<daxroc_> Does thor pass class_options to templates by default ?
reset has joined #ruby
mgv has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
ctp has joined #ruby
bmurt has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
shredding has quit [Quit: shredding]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bmurt has quit [Client Quit]
tokik has quit [Ping timeout: 250 seconds]
peret has quit []
banister has joined #ruby
reset has quit [Ping timeout: 255 seconds]
j416 has quit [Read error: Connection reset by peer]
j416 has joined #ruby
lkba has joined #ruby
toretore has quit [Read error: No route to host]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InfraRuby has joined #ruby
amystephen has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
tkuchiki_ has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
phutchins has joined #ruby
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
toretore has joined #ruby
Ilyas has joined #ruby
Zebroid has joined #ruby
arup_r has joined #ruby
anonymous-74191 has joined #ruby
Panicky has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
iamayam has quit [Ping timeout: 256 seconds]
iamayam has joined #ruby
jottr_ has joined #ruby
Akagi201_ has joined #ruby
nateberkopec has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
ardsrk has quit [Quit: Connection closed for inactivity]
nateberkope has joined #ruby
Zebroid has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
Panicky has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
Akagi201_ has quit [Read error: No route to host]
Beoran_ has joined #ruby
himsin has joined #ruby
tkuchiki has joined #ruby
gogohome has left #ruby [#ruby]
Akagi201 has joined #ruby
gogohome has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
Beoran__ has quit [Ping timeout: 240 seconds]
nateberkope has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ixti has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
agrinb has joined #ruby
Vardan has quit [Ping timeout: 246 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
InfraRuby has left #ruby [#ruby]
TieSoul has joined #ruby
kevkev_____ has quit [Quit: Lingo - http://www.lingoirc.com]
Cereal` has joined #ruby
robscormack has quit [Ping timeout: 255 seconds]
qsun has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
whomp has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kquig has joined #ruby
InfraRuby has joined #ruby
anaeem1_ has joined #ruby
jonr22 has joined #ruby
spastorino has joined #ruby
Panicky has joined #ruby
bigcup has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
InfraRuby has left #ruby [#ruby]
whomp has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
phinfonet has joined #ruby
InfraRuby has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
parduse has quit []
parduse has joined #ruby
phoo1234567 has joined #ruby
TorpedoSkyline has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
TorpedoSkyline has quit [Client Quit]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
<gogohome> hello, what can i do by ruby?
InfraRuby has left #ruby [#ruby]
jdj_dk_ has joined #ruby
jdj_dk_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
basiclaser has quit [Excess Flood]
basiclaser has joined #ruby
jonr22 has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 244 seconds]
jdj_dk_ has joined #ruby
jayunit100 has quit [Quit: jayunit100]
stef_204 has quit [Remote host closed the connection]
<anonymous-74191> gogohome: anything you wish
sk87 has joined #ruby
bobdobbs has joined #ruby
<gogohome> oh are you anonymous’ member? anonymous-74191
<anonymous-74191> gogohome: it doesn't matter . in this context
amacou has joined #ruby
<gogohome> oh
<gogohome> i see.
<gogohome> but i think so.
SilkFox_ has joined #ruby
DarthGandalf has quit [Ping timeout: 250 seconds]
jdj_dk_ has quit [Ping timeout: 240 seconds]
kquig has quit [Remote host closed the connection]
dumdedum has quit [Read error: Connection reset by peer]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
reset has joined #ruby
jottr_ has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
DarthGandalf has joined #ruby
dumdedum has joined #ruby
thams has joined #ruby
Sgeo_ has quit [Read error: Connection reset by peer]
arup_r_ has joined #ruby
philcris_ has joined #ruby
Wolland__ has quit [Remote host closed the connection]
Wolland has joined #ruby
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
reset has quit [Ping timeout: 250 seconds]
silentpost has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
memph1s has quit [Ping timeout: 250 seconds]
philcris_ has quit [Ping timeout: 245 seconds]
TieSoul has quit [Ping timeout: 255 seconds]
memph1s has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
silentpost has quit [Client Quit]
mars777 has quit [Quit: mars777]
cocotton has joined #ruby
lw has joined #ruby
klaut has joined #ruby
mr_foobar_baz has joined #ruby
anaeem1 has joined #ruby
lw has quit [Client Quit]
benzrf|offline is now known as benzrf
jds has quit [Quit: Connection closed for inactivity]
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
Neomex has joined #ruby
robscormack has joined #ruby
jayunit100 has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
jackneill has joined #ruby
TieSoul has joined #ruby
agrinb has joined #ruby
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
atmosx has joined #ruby
hellangel7 has joined #ruby
sk87 has joined #ruby
nateberkopec has joined #ruby
diegovio1 has joined #ruby
gaussblurinc1 has joined #ruby
tjr9898 has joined #ruby
mbuf has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
koderok has quit [Quit: koderok]
jottr_ has quit [Ping timeout: 244 seconds]
<mostlybadfly> Hay
diegoviola has quit [Ping timeout: 255 seconds]
arup_r_ has quit []
arup_r has joined #ruby
agrinb has quit [Ping timeout: 260 seconds]
<gaussblurinc1> guys, how to wait until operation is completed?
<jhass> "operation" ?
newUser1234 has joined #ruby
* Hanmac is smelling rails problems
devoknievo has quit [Quit: Computer has gone to sleep.]
diegovio1 has quit [Ping timeout: 256 seconds]
<jhass> you smell that everywhere
techsethi has quit [Quit: techsethi]
<pontiki> who left that out ? :<
dangerou_ has quit []
stef_204 has joined #ruby
<Hanmac> jhass: did you tested my gemtree script too already? ;P
nowthatsamatt has joined #ruby
krisquigley has joined #ruby
<jhass> nope
troulouliou_dev has joined #ruby
newUser1234 has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
kquig has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
lanox has quit []
oo_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
oo_ has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
lw has joined #ruby
arya_ has joined #ruby
<Hanmac> jhass: if you have some many gems installed use https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a and it makes a dot graph that you can use to make a svg or png file with dot
matchaw has quit [Ping timeout: 256 seconds]
matchaw_ has joined #ruby
<Hanmac> my prefered usage: "./gemtree.rb | dot -Tsvg -oout.svg; eog out.svg"
whomp has joined #ruby
jmbrown412 has joined #ruby
<Hanmac> replace eog with anything else that can open svg files, or switch the type to png
marr has quit [Ping timeout: 250 seconds]
<gogohome> ruby is good for web programming, and c is good for imbeded programming?
diegoviola has joined #ruby
* canton7 wouldn't want to write a website in C, or try and get ruby working on a micro
Hobogrammer has quit [Ping timeout: 255 seconds]
<gogohome> what mean? canton7
<canton7> that I wouldn't want to write a website in C, or try and get ruby working on a microcontroller
arya_ has quit [Ping timeout: 250 seconds]
whomp has quit [Ping timeout: 250 seconds]
cocotton has quit [Remote host closed the connection]
<Hanmac> gogohome: you can use ruby to imbed it into C++ apps too
jmbrown412 has quit [Ping timeout: 260 seconds]
jxf has quit [Quit: Leaving]
cocotton has joined #ruby
jxf has joined #ruby
<Hanmac> and you can use C for websites too
<gogohome> oh
<gogohome> i see. i want make programming to drive car automatically
<canton7> not that you'd normally want to
<Mon_Ouie> You can also use brainfuck for parsing http requests
<Hanmac> its a pain in the ass but you can write an http server in c (i did it once as education for my job as IT-programmer)
matchaw_ has quit [Ping timeout: 256 seconds]
matchaw has joined #ruby
<Hanmac> i might be a good programmer but i does not trust my code to drive a car ;D
ardsrk has joined #ruby
<canton7> gogohome, like a small remote-control car? arduino?
shredding has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
devdazed has quit [Ping timeout: 264 seconds]
InfraRuby has joined #ruby
<gogohome> canton7: oh good
<gogohome> nice
starkhalo has joined #ruby
jonathanwallace has joined #ruby
cocotton has quit [Ping timeout: 260 seconds]
<canton7> gogohome, that was a question
<gogohome> yes like remote control car
<atmosx> canton7: apparently you might be able to do both using Rust at some point in time
kaspertidemann has joined #ruby
<gaussblurinc1> I have an operation (suppose, git clone in my situation). And I want to wait until this operation is completed. I could do it with blocks or callbacks
devdazed has joined #ruby
<anonymous-74191> gogohome: nothing can beat nodejs there
qmfnp has joined #ruby
<workmad3> gaussblurinc1: well, if you just shell out to the operation, that's a blocking operation
<gogohome> if i make ruby code for remote-control car, then how can i insert it to remote-control car?
dblessing has joined #ruby
<canton7> atmosx, hrm, one day. I can't imagine the embedded toolchains are going to migrate that quickly. especially as most embedded toolchains are vendor-specific
<workmad3> gaussblurinc1: the only way it wouldn't be would be if you did the shell out in a thread
<anonymous-74191> gogohome:what's your age !
<gogohome> 18
<gogohome> why?
<gogohome> anonymous-74191:
<anonymous-74191> that's y
<workmad3> heh :) are people still feeding the gogotroll
kevkev_ has joined #ruby
<atmosx> canton7: true
<wasamasa> yes they are
<canton7> which makes me sad, but hey
<gaussblurinc1> workmad3: and if there any wait() functions in ruby? any wait() best practices?
<atmosx> wait?
<atmosx> gaussblurinc1: what's wrong with sleep ?
<atmosx> oh you're waiting an event
<workmad3> gaussblurinc1: there's sleep, there's also .join for a thread (which will pause the current thread until the other thread has finished)
<workmad3> gaussblurinc1: I'd suggest you have a look at the docs for the Thread class
<anonymous-74191> atmosx: sleep is deterministic operation .. won't work with git clone / indeterministic operations
<atmosx> gaussblurinc1: require 'expect' => Reads from the IO until the given pattern matches or the timeout is over
<atmosx> Expect library adds the IO instance method expect, which does similar act to tcl’s expect extension. < (I love Dash + Alfred on mac
thams has quit [Quit: thams]
<gogohome> i want buy remote control car, and i want substitute original source code with my code
<gogohome> is it possible?
krz has quit [Quit: WeeChat 0.4.3]
<gaussblurinc1> atmosx: sleep is well enough, I thought about multithreading
<atmosx> anonymous-74191: what about the 2nd choice, expect?! Actually I can see... waitreadable, waitwriteable, process::wait ... there are tons of 'waits'
joonty has quit [Quit: Leaving]
Vardan has joined #ruby
<Vardan> hello
<anonymous-74191> atmosx:as pointed out by workmad3 .join must be enough o
<Vardan> people is there a way to create byte array with ruby?
kaiwren has quit [Quit: kaiwren]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<workmad3> anonymous-74191: or, as I first pointed out, the blocking nature of system() and `` is probably enough ;)
<Vardan> or better to have some library which will convert object to bytes
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<anonymous-74191> workmad3: yes .absolutely
cocotton has joined #ruby
<jhass> Vardan: Marshal ?
anonymous-74191 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<atmosx> FaresKAlaboud: f = File.read(somefile.bin); f.unpack('B*') ?
<atmosx> err Vardan ^
<ddv> Vardan: .pack I guess
mclee has quit [Ping timeout: 255 seconds]
<atmosx> hmm you have to File.binread file.bin
<atmosx> anyway, I'm off later all
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
SilkFox_ has joined #ruby
<Vardan> what I need is to create custom byte sequence and then that data will be read/parsed by c++
iamjarvo has joined #ruby
anaeem1 has quit [Remote host closed the connection]
noop has quit [Ping timeout: 260 seconds]
<Vardan> for example byte[0] and byte[1] = {version_number}
<Vardan> ...
valner has joined #ruby
banister has joined #ruby
Atttwww has joined #ruby
philcris_ has joined #ruby
koderok has joined #ruby
oo_ has quit [Remote host closed the connection]
fflush has joined #ruby
fflush has joined #ruby
<Vardan> so, with pack directive I can describe incoming data structure and parse it?
mclee has joined #ruby
oo_ has joined #ruby
mijicd has quit [Remote host closed the connection]
Wolland has joined #ruby
reset has joined #ruby
Vivekananda_y510 has joined #ruby
bobdobbs has quit [Remote host closed the connection]
<ddv> Vardan: if you want to parse binary you need to use .unpack or the above mentioned gem
SilkFox_ has quit [Ping timeout: 250 seconds]
SegFaultAX has quit [Ping timeout: 240 seconds]
<Vardan> no, currentlly I want to create binary
Wolland_ has joined #ruby
bobdobbs has joined #ruby
ltd has quit [Ping timeout: 244 seconds]
<jhass> Array#pack will most likely do what you want
<Mon_Ouie> see Array#pack and String#unpack
<ddv> Vardan: the you should use pack
<ddv> then*
<Vardan> ok, thanks, I'm trying it now :)
ltd has joined #ruby
Natty has joined #ruby
Natty has left #ruby [#ruby]
workmad3 is now known as wm3|away
<banister> Mon_Ouie oh didn't see you there - 'alut
Wolland has quit [Ping timeout: 260 seconds]
qwyeth has joined #ruby
SegFaultAX has joined #ruby
reset has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
oo_ has quit [Remote host closed the connection]
Xuerian has quit [Remote host closed the connection]
sambao21 has joined #ruby
bobdobbs` has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
Klumben has quit [Ping timeout: 240 seconds]
TDJACR has quit [Ping timeout: 250 seconds]
chth0n has quit [Ping timeout: 245 seconds]
Grantlyk has joined #ruby
daed has quit [Ping timeout: 240 seconds]
Wolland_ has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
bobdobbs has quit [Ping timeout: 240 seconds]
dmarr has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 250 seconds]
TDJACR has joined #ruby
InfraRuby has left #ruby [#ruby]
bmurt has joined #ruby
epochwolf has quit [Ping timeout: 240 seconds]
Xuerian has joined #ruby
epochwolf has joined #ruby
xiphias has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
stef_204 has quit [*.net *.split]
troulouliou_dev has quit [*.net *.split]
TieSoul has quit [*.net *.split]
phutchins has quit [*.net *.split]
dumdedum has quit [*.net *.split]
phinfonet has quit [*.net *.split]
Akagi201 has quit [*.net *.split]
asmodlol has quit [*.net *.split]
coderhs has quit [*.net *.split]
ghr has quit [*.net *.split]
yokel has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
mg^ has quit [*.net *.split]
felixjet has quit [*.net *.split]
Sauvin has quit [*.net *.split]
craigbowen3 has quit [*.net *.split]
yeticry has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
redlegion has quit [*.net *.split]
Platini has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
segv has quit [*.net *.split]
yalue has quit [*.net *.split]
peeja has quit [*.net *.split]
Morrolan has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
adamholt has quit [*.net *.split]
yliu has quit [*.net *.split]
naw has quit [*.net *.split]
edwardly has quit [*.net *.split]
Bumptious has quit [*.net *.split]
Vile` has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
hydrajump has quit [*.net *.split]
rblackwe has quit [*.net *.split]
L3mce has quit [*.net *.split]
d4nk has quit [*.net *.split]
Mongey has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
Kruppe has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
eval-in has quit [*.net *.split]
saltsa has quit [*.net *.split]
oz has quit [*.net *.split]
wmp has quit [*.net *.split]
Jamo has quit [*.net *.split]
seph429 has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
davidcelis has quit [*.net *.split]
Urocyon has quit [*.net *.split]
jayne has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
zaargy has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
Davey has quit [*.net *.split]
dphase has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
helpa has quit [*.net *.split]
patteh has quit [*.net *.split]
jeaye has quit [*.net *.split]
Edelwin has quit [*.net *.split]
drager has quit [*.net *.split]
oso|away has quit [*.net *.split]
thnee has quit [*.net *.split]
fwaokda has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
cout has quit [*.net *.split]
jle` has quit [*.net *.split]
Nowaker has quit [*.net *.split]
beryllium has quit [*.net *.split]
Doc_X has quit [*.net *.split]
closer has quit [*.net *.split]
Zespre has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
gauravagarwalr has quit [*.net *.split]
cibs has quit [*.net *.split]
Adran has quit [*.net *.split]
eshy has quit [*.net *.split]
karupa has quit [*.net *.split]
Zenigor has joined #ruby
dmarr has joined #ruby
daed_ has joined #ruby
troulouliou_dev has joined #ruby
gr33n7007h has joined #ruby
oo__ has joined #ruby
gauravagarwalr has joined #ruby
TieSoul has joined #ruby
Akagi201 has joined #ruby
stef_204 has joined #ruby
BeanDip_ has joined #ruby
redlegion has joined #ruby
yokel has joined #ruby
Platini has joined #ruby
phutchins has joined #ruby
dumdedum has joined #ruby
craigbowen3 has joined #ruby
coderhs has joined #ruby
Mon_Ouie has joined #ruby
mg^ has joined #ruby
ghr has joined #ruby
yalue has joined #ruby
peeja has joined #ruby
samuelkadolph has joined #ruby
adamholt has joined #ruby
phinfonet has joined #ruby
segv has joined #ruby
AlyssaDaemon has joined #ruby
felixjet has joined #ruby
yliu has joined #ruby
naw has joined #ruby
closer has joined #ruby
yeticry has joined #ruby
asmodlol has joined #ruby
edwardly has joined #ruby
Vile` has joined #ruby
chihhsin_cloud has joined #ruby
pdtpatr1ck has joined #ruby
isomorphismes has joined #ruby
Zespre has joined #ruby
L3mce has joined #ruby
d4nk has joined #ruby
cibs has joined #ruby
Morrolan has joined #ruby
ItSANgo has joined #ruby
Mongey has joined #ruby
hydrajump has joined #ruby
Bumptious has joined #ruby
xiphias has joined #ruby
rblackwe has joined #ruby
Kruppe has joined #ruby
oz has joined #ruby
_KaszpiR_ has joined #ruby
saltsa has joined #ruby
Jamo has joined #ruby
wmp has joined #ruby
eval-in has joined #ruby
Urocyon has joined #ruby
ClarusCogitatio has joined #ruby
seph429 has joined #ruby
sn0wb1rd has joined #ruby
zaargy has joined #ruby
jayne has joined #ruby
jumblemuddle has joined #ruby
Davey has joined #ruby
jeaye has joined #ruby
davidcelis has joined #ruby
drager has joined #ruby
xMopxShell has joined #ruby
dphase has joined #ruby
Edelwin has joined #ruby
Adran has joined #ruby
avelldiroll has joined #ruby
cout has joined #ruby
beryllium has joined #ruby
patteh has joined #ruby
Nowaker has joined #ruby
oso|away has joined #ruby
Doc_X has joined #ruby
thnee has joined #ruby
karupa has joined #ruby
helpa has joined #ruby
fwaokda has joined #ruby
dazeddev_ has joined #ruby
jle` has joined #ruby
eshy has joined #ruby
Sauvin has joined #ruby
gtrak has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
mleone has joined #ruby
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
SegFaultAX has quit [Ping timeout: 250 seconds]
eka has joined #ruby
|stef_204| has joined #ruby
<Vardan> what if I need to put integer which can be in one byte, be stored in two bytes? how do that with pack?
jimeh has quit [Ping timeout: 250 seconds]
devoknievo has joined #ruby
Norrin has joined #ruby
<jhass> provide example input and desired output
nisstyre has quit [Ping timeout: 250 seconds]
<ddv> Vardan: you use bitwise operators
shredding has quit [Quit: shredding]
MartinCleaver has joined #ruby
<Vardan> ok, hang on I'll write what I want to do in gist
TDJACR has joined #ruby
TDJACR has quit [Changing host]
TDJACR has joined #ruby
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
Hien has quit [Ping timeout: 240 seconds]
jimeh has joined #ruby
philcris_ has quit [Remote host closed the connection]
Leehro has joined #ruby
abdulsattar has joined #ruby
<ddv> Vardan: To get the high byte, shift right by 8 bits then mask off the top bytes. Similarly, to get the low byte just mask off the top bytes.
philcris_ has joined #ruby
chth0n has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
mr_foobar_baz has joined #ruby
SegFaultAX has joined #ruby
<Vardan> ddv: I know how to do that in c/c++ but not in ruby :)
Norrin has quit [Remote host closed the connection]
<ddv> Vardan: exactly the same, ruby has bitwise operators
philcri__ has joined #ruby
dmarr has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
philcris_ has quit [Read error: Connection reset by peer]
anildigital is now known as zz_anildigital
Neozonz|Disc has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
marr has joined #ruby
<jhass> how does "1.0" fit into two bytes?
dmarr has joined #ruby
<Vardan> check comment I just added simple data example
rblackwe has quit [Max SendQ exceeded]
yokel has quit [Max SendQ exceeded]
<Vardan> nope it should be 6
Xuerian has joined #ruby
rblackwe has joined #ruby
<jhass> 2 bytes - version number (string, example: "1.0") ? how can that work?
yokel has joined #ruby
<Vardan> jhass: can not :) I just wrote wrong number
<Vardan> of bytes
DaniG2k has quit [Ping timeout: 250 seconds]
<jhass> do you mean: first byte: major version, second byte: minor version, third byte: language version, fourth and fifth byte: string length ?
vasilakisfil has joined #ruby
<vasilakisfil> hello! I am trying to remove duplicate from my application. Trying to achieve alias in class name I ended up in that: if you saw that piece of code would you say that this guy is totally stupid or would it be ok for you? http://pastie.org/private/wottxwtaljjnuyhqiadpa
<jhass> or three bytes for the version?
mikesplain has joined #ruby
<Vardan> version is the unicode string, so first 6 bytes fro the version
joonty has joined #ruby
<zeroXten> given a uri like "http://domain.com/abc/../def", what is the best way in ruby to get the actual url "http://domain.com/def"? None of the URI methods seem to have that effect, and I really don't want to go near regular expressions
l33tPR0u2891 has joined #ruby
l33tPR0u2891 has quit [Remote host closed the connection]
piraxx has joined #ruby
|stef_204| has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Hien has joined #ruby
<jhass> >> ["1.0".encoding, "1.0".bytesize] # Vardan
<eval-in> jhass => [#<Encoding:UTF-8>, 3] (https://eval.in/175701)
Tobleron_j4950 has joined #ruby
Tobleron_j4950 has quit [Remote host closed the connection]
<jhass> >> "1.0".encode("UTF-16").bytesize # Vardan, so 6 bytes doesn't make sense either unless it's padded somehow
<eval-in> jhass => 8 (https://eval.in/175702)
<Vardan> jhass: right, but what if the version will be this "1.0бета" ?
jacobm8293 has joined #ruby
<jhass> that's 11 bytes in UTF-8
<Vardan> >> "1.0бета".encode("UTF-8").bytesize
<eval-in> Vardan => 11 (https://eval.in/175703)
<Vardan> in real first two bytes should be the version length
<Vardan> then version number
<jhass> you're constantly changing the specs
jacobm8293 has quit [Remote host closed the connection]
<jhass> how can I trust anything you wrote before
<Vardan> because that is not a point :) you can ignore version part now :)
charliesome has joined #ruby
<jhass> get clear specs
Klumben has joined #ruby
Ankhers has joined #ruby
<Vardan> jhass: check my gist comment
<Vardan> that is clear specs :)
<Vardan> is that clear enough?
fflush has quit [Quit: fflush]
itspots has joined #ruby
Norrin has joined #ruby
<jhass> btw, you can edit a gist ;)
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<jhass> and that's again completely different m(
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
centrx has joined #ruby
whomp has joined #ruby
<jhass> there, you only get my solution to your specs before the most recent ones as screenshot http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20140805_153922.png
jprovazn has quit [Quit: Leaving]
lxsameer has quit [Quit: Leaving]
shredding has joined #ruby
jerius has joined #ruby
eka has joined #ruby
vsoftoiletpaper has joined #ruby
livingstn has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
whomp has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
jnoob22 has joined #ruby
gogohome has quit [Quit: gogohome]
<jnoob22> anyone know if there's a free alternative to GIT? Whereby if you're writing non-public code and want to store it there?
electrical has left #ruby [#ruby]
wpp has joined #ruby
<ddv> jnoob22: bitbucket I guess
charliesome has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
<jnoob22> ahh never thought of that. ill have a look at it. thanks ddv.
androidbruce has left #ruby ["Leaving"]
defaultnick has joined #ruby
defaultnick has quit [Remote host closed the connection]
stef_204 has joined #ruby
SilkFox has joined #ruby
<jhass> Vardan: actually that's a stupid way, ["1.0".bytesize, "1.0", 10, "Hello World".bytesize, "Hello World"].pack("SA*CSA*") is better
zz_anildigital is now known as anildigital
jnoob22 has quit [Client Quit]
robustus has joined #ruby
<ddv> why the .bytesize calls?
jayunit100 has quit [Quit: jayunit100]
<jhass> he wants the lengths
nobodyzzz has quit [Ping timeout: 240 seconds]
<jhass> in the header
<ddv> weird
<jhass> yeah, I'd insert \0's
nisstyre has joined #ruby
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
<wasamasa> free alternative to GIT?
* wasamasa is sad people think git and github are the same
<Vardan> "Hello World".bytesize return the integer which can be stored in 1 byte, but instead of "Hello World" could be big text which bytesize can not be stored in one byte and need to be in 2 bytes, in that case how should parser know string length in 1 byte or in 2 bytes
<jhass> Vardan: did you look at the docs of Array#pack ?
cocotton has quit [Remote host closed the connection]
<Vardan> yes
<jhass> Vardan: then explain me what S does
Morkel has quit [Ping timeout: 250 seconds]
chihhsin1wego has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
djcp has joined #ruby
cocotton has joined #ruby
robustus has quit [Client Quit]
SouL has joined #ruby
<Vardan> 2 bytes unsigned integer
<Vardan> but if I will give him 10 it will store it in 2 bytes?
<jhass> yes
cocotton_ has joined #ruby
<jhass> >> [10].pack("S")
cocotton_ has quit [Remote host closed the connection]
<eval-in> jhass => "\n\x00" (https://eval.in/175708)
Sid05 has joined #ruby
arya_ has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
<jhass> >> [10].pack("C") # one byte
<eval-in> jhass => "\n" (https://eval.in/175709)
cocotton has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
whomp has joined #ruby
ltd has quit [Ping timeout: 245 seconds]
chth0n has quit [Ping timeout: 240 seconds]
robustus has joined #ruby
britneywright has joined #ruby
Takle has quit [Remote host closed the connection]
Shift__ has joined #ruby
<Vardan> ok, jhass I think I got it :) thank you very much
Taranis has joined #ruby
ltd has joined #ruby
ephemerian has quit [Quit: Leaving.]
anarang has quit [Quit: Leaving]
SilkFox has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
alem0lars has joined #ruby
acrussell has joined #ruby
SilkFox_ has joined #ruby
gogohome has joined #ruby
kquig has quit [Remote host closed the connection]
Sid05_ has joined #ruby
<Grantlyk> Yo
cocotton has quit [Remote host closed the connection]
<Grantlyk> anyone here got any good ruby open source projects that need contributers?
paulfm has joined #ruby
Sid05_ has quit [Client Quit]
<ericwood> Grantlyk: I have a roomba library that could use some more luv
reset has joined #ruby
_tpavel has quit [Quit: Leaving]
SilkFox has joined #ruby
alem0lars has quit [Ping timeout: 245 seconds]
<ericwood> you'll want a roomba first tho
<Grantlyk> Would you consider the roomba library something a junior dev can handle?
<Grantlyk> ericwood
dmarr has quit [Ping timeout: 240 seconds]
<ericwood> most of the domain-specific stuff has been handled, all the low-level crap
snath has quit [Ping timeout: 244 seconds]
<ericwood> well
jxf has quit [Ping timeout: 245 seconds]
<ericwood> yeah might be a bit tough
SilkFox_ has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
matchaw has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
Klumben has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Ping timeout: 256 seconds]
arup_r has quit []
mikesplain has quit [Read error: No route to host]
pangur has joined #ruby
<Grantlyk> ericwood: Link me and i'll take a look anyway, is it git or diff?
newUser1_ has joined #ruby
mikespla_ has joined #ruby
matchaw has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
philcri__ has quit [Remote host closed the connection]
vasilakisfil has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
<pangur> Anyone know if the #sequel room gets visited?
Atrumx has quit [Ping timeout: 264 seconds]
philcris_ has joined #ruby
supermarkettoday has quit [Disconnected by services]
paulfm has quit [Ping timeout: 260 seconds]
<Grantlyk> anyone know anything about fml or guard?
supermarkettoday has joined #ruby
<Grantlyk> fpm*
chth0n has joined #ruby
Hien has quit [Ping timeout: 256 seconds]
supermarkettoday has quit [Remote host closed the connection]
TDJACR has joined #ruby
jonahR has joined #ruby
<jhass> why you search for people instead of answers
<wasamasa> Grantlyk: are you trying to keep your junior devs busy?
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
reset has quit [Ping timeout: 264 seconds]
<Grantlyk> wasamasa: I am the Junior dev
newUser1234 has quit [Ping timeout: 255 seconds]
<wasamasa> ZOMG
<wasamasa> so you were told to find a ruby project to work on by your company?
<Grantlyk> No... I was told too by myself
bobdobbs` has quit [Ping timeout: 240 seconds]
<wasamasa> scary
abdulsattar has quit [Ping timeout: 250 seconds]
<Grantlyk> I don't work for a company, i'm at university
<pangur> My question is specifically related to Sequel, I think, jhass. My question is this: DB.fetch('SELECT * FROM people'){|r| p r} produces output of the form," {:id=>#<BigDecimal:8d8ef20,'0.233E3',9(18)>, :title=>"Rev", :forenames=>"Calum", :surnames=>"MacLeod", :address_id=>#<BigDecimal:8d8ee94,'0.171E3',9(18)>, ...". How do I get it to produce something like "Rev. Calum MacLeod", please?
SegFaultAX has joined #ruby
<wasamasa> Grantlyk: how dare you call yourself junior dev then
<Grantlyk> masamasa: however University is terrible so i'm probably going to leave and try and find a job in software
<wasamasa> Grantlyk: if you can't even hit the tab key in your irc client
<jhass> pangur: you get a hash with some keys and want to arrange some of the values
Xuerian has joined #ruby
<jhass> pangur: puts "#{r[:title]} #{r[:forenames]} #{r[:surenames]}"
<Grantlyk> masamasa: I wasn't specifically meaning I work as a junior dev, I was using it as a way of expressing a basic level project, one that I could make contribution too
mikespla_ has quit [Read error: No route to host]
<wasamasa> ...
Norrin has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
<wasamasa> if you want to highlight people on IRC and can't be bothered to type out their names correctly, hit the tab key
philcris_ has quit [Ping timeout: 260 seconds]
Shift__ has quit [Read error: Connection timed out]
mikesplain has joined #ruby
<Grantlyk> wasamasa: Cool
mikesplain has quit [Max SendQ exceeded]
<ddv> :/
<wasamasa> Grantlyk: if you want to contribute, write me some docs, hmkay?
SegFaultAX has quit [Excess Flood]
<Grantlyk> wasamasa: send me the link
godd2 has joined #ruby
dmarr has joined #ruby
<pangur> Sorry, jhass. That did not work.
<wasamasa> Grantlyk: stuff like the nokogiri cheatsheet
<wasamasa> Grantlyk: or an actual documentation for slop
cocotton_ has joined #ruby
cocotton_ has quit [Ping timeout: 255 seconds]
abigailj7399 has joined #ruby
gauravagarwalr has quit [Remote host closed the connection]
gauravagarwalr has joined #ruby
DaniG2k has joined #ruby
<wasamasa> Grantlyk: or improving the state of affairs for the stdlib
paulfm has joined #ruby
SouL has quit [Disconnected by services]
<jhass> pangur: I can't find the string "did not work" in the ruby interpreter
<wasamasa> Grantlyk: or explaining sinatra for people who're used to flask
<pangur> undefined local variable or method `r' for main:Object (NameError)
memph1s has quit [Ping timeout: 255 seconds]
SouL_ has joined #ruby
<wasamasa> Grantlyk: or whatever else, the most I see is some lines in a README and a link to auto-generated API docs
treehug88 has joined #ruby
mikesplain has joined #ruby
SegFaultAX has joined #ruby
<jhass> pangur: well, look where you had r defined in your example, I worked on that
<wasamasa> Grantlyk: basically, anything goes
<Grantlyk> wasamasa: Cool
shredding has quit [Quit: shredding]
<wasamasa> Grantlyk: I've just listed the more popular stuff I've come across
fflush has quit [Quit: fflush]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
sk87 has joined #ruby
ffranz has joined #ruby
supermarkettoday has quit [Read error: Connection reset by peer]
Norrin has joined #ruby
newUser1234 has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
<pangur> Thanks, jhass. I shall look into it further. I think I need to read a lot more about Sequel before asking further questions.
OhShit_i2431 has joined #ruby
OhShit_i2431 has quit [Remote host closed the connection]
memph1s has joined #ruby
<jhass> Some basic ruby might help too
matchaw has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<pangur> lol - you are right there, jhass. :)
Klumben has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
fflush has joined #ruby
philcris_ has joined #ruby
Hien has joined #ruby
matchaw has joined #ruby
centipedefarmer has joined #ruby
newUser1_ has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
Sawbones has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
voodoofish1 has quit [Quit: Leaving.]
cocotton has joined #ruby
voodoofish has joined #ruby
michaelpjohnson has joined #ruby
Boohbah has quit [Remote host closed the connection]
pangur has quit [Quit: Ex-Chat]
Boohbah has joined #ruby
tobago has quit [Remote host closed the connection]
shredding has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
momomomomo has joined #ruby
geggam has joined #ruby
hamakn has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
jxf has joined #ruby
centipedefarmer has joined #ruby
wald0 has joined #ruby
Vardan has quit [Ping timeout: 246 seconds]
frankle has joined #ruby
tylerker_ has joined #ruby
tylerker_ has quit [Read error: Connection reset by peer]
tylerkern has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
punto has quit [Ping timeout: 244 seconds]
justinv has joined #ruby
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
andrewlio has joined #ruby
punto has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv^ has quit [Remote host closed the connection]
jrhe has joined #ruby
koderok has quit [Quit: koderok]
silentpost has joined #ruby
eka has joined #ruby
ari-_-e has quit [Quit: Leaving]
silentpost has quit [Client Quit]
aganov has quit [Remote host closed the connection]
ferr has joined #ruby
newUser1234 has quit [Remote host closed the connection]
punto has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
asmodlol has quit [Quit: Leaving]
treehug88 has quit [Ping timeout: 256 seconds]
punto has joined #ruby
Zenigor has quit [Remote host closed the connection]
beef-wellington has joined #ruby
freerobby has joined #ruby
Zenigor has joined #ruby
momomomomo has quit [Quit: momomomomo]
wm3|away is now known as workmad3
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
oo__ has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Remote host closed the connection]
sixxy has joined #ruby
SilkFox has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has joined #ruby
abdulsattar has joined #ruby
eka has joined #ruby
freerobby has quit [Client Quit]
shredding has quit [Quit: shredding]
jimms has joined #ruby
Zenigor has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
<zeroXten> why is rack sooo bloody ugly to use? :(
<crome> <3 rack
stoffus has quit [Quit: leaving]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpaceKookie has joined #ruby
St_Marx has joined #ruby
Zenigor has joined #ruby
jshultz has joined #ruby
<SpaceKookie> I am relatively new to Ruby and have a question I couldn't find an answer to on Google. Can someone maybe help me with this? http://pastebin.com/eNBZhp2S
icebourg has joined #ruby
<Mon_Ouie> Well Ruby#method returns nil, so r = Ruby.new.method sets r to nil
gr33n7007h has quit [Ping timeout: 255 seconds]
<banister_> Mon_Ouie 'alut, do you know much about functional reactive programming?
<Mon_Ouie> No, not much
mary5030 has joined #ruby
freerobby has joined #ruby
philcris_ has quit [Remote host closed the connection]
philcris_ has joined #ruby
Takle has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
<Hanmac> Mon_Ouie: hey, do you have many gems installed on your system? do you want to look at my script that can show your gems in a graph?
itspots has joined #ruby
<SpaceKookie> Oooooooh!
<SpaceKookie> Thank you :)
<Mon_Ouie> Already looked at it ;)
gr33n7007h has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
<Hanmac> ah dammit ... i made new changes yesterday/today ... now you can speficy what gems you want to have in your gem list with "pry-*" for sample (uses File.fnmatch for that) ... also i did make some new methods for that that makes the code a bit more readable
philcris_ has quit [Ping timeout: 250 seconds]
<Hanmac> SpaceKookie: your problem: is the "puts" that does output what the method gets but return nil ... you may want "p" which does output the input it gets ... and PS: dont name your method "method" because there is already one like that and that might crash in the future with other code
<SpaceKookie> Hanmac: that was just a test thing. The file I had the issue in is 150 lines long and more complex. So I thought I'd get to the bottom of the problem with a simple example.
SilkFox_ has joined #ruby
OrangeJewce has joined #ruby
mars777 has joined #ruby
jayunit100 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
reset has joined #ruby
tolo123 has joined #ruby
max06 has quit [Ping timeout: 250 seconds]
bal has quit [Quit: bal]
SilkFox_ has quit [Ping timeout: 256 seconds]
freeone3000 has left #ruby ["Konversation terminated!"]
Brolen has joined #ruby
wpp has quit []
Xeago has quit [Remote host closed the connection]
doev has joined #ruby
reset has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
newUser1234 has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
fflush has quit [Quit: fflush]
<Grantlyk> ericwood: thank you
aspires has joined #ruby
michaelpjohnson has left #ruby ["Leaving"]
<ericwood> Grantlyk: lots of work to be done on the DSL
<ericwood> hard to explain what I need to fix tho
Lwhite has joined #ruby
maestrojed has joined #ruby
Zebroid has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
mattstratton has joined #ruby
gondalier has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: No route to host]
hamakn has joined #ruby
koderok has joined #ruby
chth0n has quit [Ping timeout: 264 seconds]
Zebroid has quit [Ping timeout: 256 seconds]
Morkel has quit [Quit: Morkel]
<lagweezle> römba would be an interesting library to 'require'.
himsin has quit [Quit: himsin]
mijicd has quit [Quit: Lost terminal]
<ericwood> lol it'd be a guaranteed way to keep 1.8 users from using it :P
lagweezle is now known as sickweezle
<sickweezle> hehe
freerobby has quit [Quit: Leaving.]
graft_ has quit [Ping timeout: 250 seconds]
snath has joined #ruby
kldskp has quit [Quit: Computer has gone to sleep.]
karupa is now known as zz_karupa
mikepack has joined #ruby
joonty has quit [Quit: Leaving]
asmodlol has joined #ruby
dawkirst has quit [Remote host closed the connection]
InfraRuby has joined #ruby
SouL_ has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
Takle_ has quit [Remote host closed the connection]
Takle has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacou has quit [Remote host closed the connection]
chth0n has joined #ruby
claymore has joined #ruby
momomomomo has joined #ruby
koderok_ has joined #ruby
jmbrown412 has joined #ruby
koderok has quit [Write error: Connection reset by peer]
koderok_ is now known as koderok
failshell has joined #ruby
iceden has quit [Ping timeout: 245 seconds]
Wixy has joined #ruby
<Wixy> Hi
Takle has quit [Remote host closed the connection]
<Wixy> how do you force gem to install the gems in the system instead of installing them on my home dir?
<shevy> Wixy that is the default
<sickweezle> Use 'sudo'?
<jhass> try gem install --no-user-install
<sickweezle> Ah. Yes. jhass has better answer.
<Wixy> I wonder why it's not in the man page
Lexun has joined #ruby
blacklight5005 has joined #ruby
SouL_ has joined #ruby
blacklight5005 has left #ruby [#ruby]
mikepack has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
<Wixy> thanks guys
GriffinHeart has joined #ruby
gogohome has quit [Quit: gogohome]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
satman has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
lw has quit [Quit: s]
sputnik13 has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<wasamasa> gogohome went home
<wasamasa> how ironic
lw has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
tolo123 has quit [Quit: tolo123]
jimmyhoughjr has joined #ruby
<shevy> he could have went go first at least
Takle has joined #ruby
atraylen has joined #ruby
tolo123 has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
Zenigor has quit [Remote host closed the connection]
jdguzman has joined #ruby
ffranz has quit [Quit: Leaving]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
SouL_ has quit [Ping timeout: 256 seconds]
Zenigor has joined #ruby
aaronrl_ has quit [Quit: Leaving]
iceden has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
sputnik13 has joined #ruby
anildigital is now known as zz_anildigital
momomomomo_ has joined #ruby
lw has quit [Quit: s]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Zenigor has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
ffranz has joined #ruby
sha1sum has joined #ruby
<sha1sum> Hey guys. Is there an easier way of writing something like this?: entry.created_at = creation if creation
sambao21 has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
<sha1sum> In other words set an attribute to a method parameter but only if the parameter is present?
lw has joined #ruby
<sha1sum> I have a couple of parameters in methods that default to nil
neo1691 has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
alex88 has quit [Quit: Leaving...]
namxam has quit []
<neo1691> I am new to ruby and I just want to install tmuxinator among other things. But I will be learning ruby soon. So what should be the best option for me. To install ruby 2.1 from the official repositories or use rvm for installing ruby?
mikesplain has joined #ruby
goodenough has quit []
<Wolland> sha1sum: why do you need if?
nanoyak has joined #ruby
<Wolland> setting it to nil is not ok?
sambao21 has joined #ruby
Lexun has quit [Ping timeout: 245 seconds]
<Wolland> neo1691: rvm is fine
<momomomomo> rvm is baaaad
<momomomomo> just use chruby and ruby-install
<momomomomo> :P
<sha1sum> Wolland: now that you ask I guess not. :) thanks!
Zebroid has joined #ruby
bronson has joined #ruby
<neo1691> I had lot of problems last time I played with rvm on debian
<Wolland> fine for learning ruby
b00stfr3ak has joined #ruby
<neo1691> I am now using Arch and I would like to be sure that are no problems later when I plan to learn ruby
b00stfr31k has joined #ruby
<momomomomo> disclaimer: i sitll like to use rvm in production sometimes
gondalier has quit []
<workmad3> momomomomo: rvm can be good on the server still... especially if you're hand-crafting servers or don't have time to piss around with things like omnibus ruby installs :)
<momomomomo> right, or you're lazy and just want to use puppet's rvm module
<momomomomo> :D
<Hanmac> i used once rvm while i did switch between gcc and clang for compile tests ... currently i compile my ruby from trunk
<neo1691> That's all too much for me. really difficult to understand
Sie00 has joined #ruby
<neo1691> so I guess I should stick to using ruby from the official repos
<momomomomo> livin on the eeedge
<momomomomo> (on trunk)
<workmad3> momomomomo: heh :) I was trying to generalize that (I used to use the chef-rvm cookbook until I wrote my own install stuff around ruby-install for chef)
<Hanmac> momomomomo: hey, how many gems do you currently have installed?
<neo1691> I don't like rvm's idea of changing my .bashrc or .zshrc
<momomomomo> Hanmac: on which app / server
chth0n has quit [Ping timeout: 245 seconds]
<workmad3> neo1691: any particular reason?
<workmad3> neo1691: those files exist for customisation purposes after all :P
<Hanmac> momomomomo: i dont know, on the marchine you are working on ... (i have a script that turns the gem dependencies into a dot graph)
<momomomomo> lol I have too many... like 8 different rubies here
<momomomomo> exactly 8, just counted
<neo1691> Well there are some cases when I use .zprofile for environment variables.
razrunelord has joined #ruby
<workmad3> neo1691: ah... I got annoyed with the differences between the rc and profile files on my dev machines so I rewrote .bash_profile and .zprofile to source .bashrc and .zshrc respectively
alem0lars has joined #ruby
<neo1691> that's was a headache for me. specially when I was completely new to ruby
<workmad3> neo1691: and then I created .bashrc.d, .zshrc.d and .profile.d directories in my home, and got .bashrc and .zshrc to load each file dumped in them
zz_anildigital is now known as anildigital
Zenigor has joined #ruby
<workmad3> neo1691: so I could add/remove stuff from my shell by just adding/removing files :)
apeiros has quit [Remote host closed the connection]
kaspertidemann has quit []
<Hanmac> momomomomo: you can look at that: https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a ... calling it with "./gemtree.rb | dot -Tsvg -oout.svg; eog out.svg" or similar ... uses dot to generate the image and eog to open the svg file
<workmad3> neo1691: adding a source line to .bashrc isn't really anything compared to that ;)
<neo1691> that was really cool
SilkFox_ has joined #ruby
justinv has quit [Remote host closed the connection]
<momomomomo> Hanmac: what about bundle viz?
<neo1691> agreed. but rvm what it did was, messed up with the path variable two or three places if I can rememeber correctly
<momomomomo> or is the script you wrote for the entire system / all rubies
<workmad3> neo1691: that's what the rvm function does... it manipulates the $PATH to activate/deactivate a ruby
<Hanmac> momomomomo: you are not the first one who did say that, yes, my script works for the entire current ruby ... (or the current gemset in rvm)
<neo1691> so I looked like a fool, who didn't understand how exactly it worked! :)
<momomomomo> nice work Hanmac I'll try it out tonight :p
<neo1691> anyways I will be looking to learn it soon '
Zebroid has quit [Remote host closed the connection]
piraxx has quit [Ping timeout: 250 seconds]
razrunelord has quit [Client Quit]
<workmad3> neo1691: chruby is much easier to grok btw ;)
gauravagarwalr has quit []
<workmad3> neo1691: although it still manipulates $PATH
<neo1691> I am currently looking into it!
vsoftoiletpaper has quit []
theharshest has joined #ruby
<workmad3> neo1691: ruby-install is similarly nice and easy to grok :)
<ericwood> +1 for chruby + ruby-install
W0rmDr1nk has quit [Ping timeout: 240 seconds]
<neo1691> wonder in that order, how easy is pacman -S ruby
jay has joined #ruby
<ericwood> it's easy but you don't get much flexibility
reset has joined #ruby
<ericwood> and there's a good chance it'll be behind a bit
hellangel7 has quit [Remote host closed the connection]
Pharaoh2 has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
<jhass> arch is always up to date
<ericwood> ooooh yeah that's the arch one. it's probably fine then
jay is now known as rubyonrailed
<jhass> I do chruby + yaourt -S ruby ruby2.0 ruby1.9 :P
<ericwood> tools like chruby are nice when you have multiple projects with different ruby versions
<Hanmac> momomomomo: i will look at the output of "bundle viz" ... i did inspire from the gem2vz exec that is shipped with ruby-graphviz, but the gem2vz does not work anymore on newer ruby ... thats why i did try to make my own one ... (PS: i think my one might be more informative than "bundle viz")
charliesome has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
mikesplain has quit [Ping timeout: 255 seconds]
<momomomomo> interesting, i'll star it for later :p Hanmac
ascarter has joined #ruby
michaeldeol has joined #ruby
ascarter has quit [Max SendQ exceeded]
charliesome has quit [Client Quit]
kriskropd has quit [Quit: leaving]
ascarter has joined #ruby
atraylen has quit [Ping timeout: 240 seconds]
cocotton has quit [Remote host closed the connection]
<Hanmac> momomomomo: i have also little scripts that can show the relations between local rb files and external stuff (it differs with require and require_relative) (this one does only scan the code, it does not run it) and a third one that can make a tree from the classes and modules in a given namespace (does run the code, works also for compiled gems)
cocotton has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
kriskropd has joined #ruby
mikesplain has joined #ruby
<momomomomo> cool, maybe consider rolling them together into a gem / cli tool
timonv_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
reset has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
<neo1691> jhass: ericwood I just want to install an app called tmuxinator which uses ruby to install it. I will be learning ruby in near future, maybe then I will use different versions
<neo1691> so I guess installing ruby from the official repos should be the best deal for me
<neo1691> "production" also doesn't make sense to me, it will take time to get into it
pandaant has joined #ruby
<jhass> arch's ruby package is pretty okay, so go with that
<Hanmac> momomomomo: yeah i did think about that ... PS: if you did test my gemtree you might get questions about the coloration, just ask and i will explain why some nodes or connections have different color than the others
sixxy has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Mon_Ouie has quit [Remote host closed the connection]
<momomomomo> Hanmac: better yet, add that to the gist :p I'll try it tonight
timonv_ has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<Hanmac> hm yeah i might it add a README.md to the gist ... or something similar ... (PS: i am 24/7 online, so you can also ask me tonight ;D )
Ilyas_ has joined #ruby
<neo1691> Thanks!Ruby sure seems fun to use.
Ilyas has quit [Read error: Connection reset by peer]
amargherio has joined #ruby
makerop has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<neo1691> I bet it's damn different than C/C++ or Java to say the least
<jhass> quite
<neo1691> because I guess things like development, production and much more comes into ruby. plus this mvc architecture
<neo1691> I am new to all of it
<makerop> is there an idiom for saying @var = @var1.facts unless @var1.facts is blank, then set to empty array?
freerobby has joined #ruby
<jhass> neo1691: oh, now you're confusing ruby with ruby on rails
<neo1691> ok!! See this all is so confusing that I am already confused.
<neo1691> what should I learn first?
Takle has quit [Remote host closed the connection]
<jhass> makerop: "blank" ?
Alina-malina has quit [Read error: Connection reset by peer]
<jhass> neo1691: ruby of course!
<neo1691> ruby or rOr?
<makerop> jhass, nil
<jhass> makerop: is false a possible valid value?
kldskp has joined #ruby
<makerop> jhass, no
<jhass> @var = @var1.facts || []
<neo1691> there was a book I was reading I guess which differed to this opinion, it said that you can maybe learn rOr first and then ruby lol
Lwhite has quit [Read error: Connection reset by peer]
<jhass> rails will only seem even more magic if you go that route
{xenomorph} is now known as xenomorph
<makerop> jhass, sorry, i meant blank actually
<jhass> you can certainly work with rails that way, but you won't understand it and thus likely won't become great until you know ruby
<makerop> not nil
DaniG2k has quit [Quit: leaving]
<jhass> makerop: that sounds like you're in Rails/ActiveSupport ?
<makerop> jhass, yes, you are correct
<jhass> makerop: okay, then in Rails/AS: @var = @var1.facts.presence || []
<makerop> is there a ruby equivalent?
ccolorado has joined #ruby
qba73 has quit [Remote host closed the connection]
<jhass> not really
BifMeister has joined #ruby
patrick99e99 has joined #ruby
x1337807x has joined #ruby
pietr0 has joined #ruby
<ccolorado> Hi I am using a file as a template and want to replace a list of words for another one. I am currently doing loaded_template_sting.gsub(a,b).gsub(c,d).gusb(e,f) is there a better way to do this using arrays. hashes ?
<jhass> ccolorado: have you considered ERB?
Lexun has joined #ruby
<ccolorado> * this is plain ruby so no fancy rails
basiclaser has quit [Excess Flood]
<jhass> erb is in stdlib
<ccolorado> jhass: no i haven't looked into it
basiclaser has joined #ruby
Alina-malina has joined #ruby
<redondo> In python I do: 1 in [1,2] => True ... How could I do it in ruby?
Sawbones has quit [Remote host closed the connection]
<jhass> [1, 2].include? 1
iamayam has quit [Ping timeout: 250 seconds]
troyready has joined #ruby
<redondo> jhass, ;)
<banister_> redondo in rails you can do: 1.in?(1, 2)
<redondo> banister_, thanks
Squarepy has joined #ruby
<ccolorado> jhass: seems cool, but redoing the 'template' files will cost more than the series of gsubs ATM, is there anthing else that replaces a list of words with another list of words ?
arup_r has joined #ruby
<eam> >> map = {"foo" => "bar", "baz" => "quux"}; x = "the foo brown baz"; x.gsub(Regexp.new map.keys.join("|")) {|v| map[v]}
<eval-in> eam => "the bar brown quux" (https://eval.in/175737)
<eam> ccolorado: ^^
<ccolorado> eam: awesome
<eam> you will run into trouble with keys that are substrings of other keys
nanoyak has quit [Quit: Computer has gone to sleep.]
main has joined #ruby
<eam> sorting the regex can handle that
justinv_ has joined #ruby
flaggy has joined #ruby
<jhass> >> map = {"foo" => "bar", "baz" => "quux"}; x = "the foo brown baz"; x.gsub(Regexp.union(map.keys), map)
<eval-in> jhass => "the bar brown quux" (https://eval.in/175739)
Grantlyk has quit [Remote host closed the connection]
toastynerd has joined #ruby
<eam> ooh, Regexp has a union
<jhass> and gsub takes a hash for replacements ;)
<eam> nice
Grantlyk has joined #ruby
ptrrr has quit [Quit: ptrrr]
GlenK has joined #ruby
Takle has joined #ruby
pumpkin360 has quit [Ping timeout: 250 seconds]
mikespla_ has joined #ruby
kevkev_ has quit [Quit: Computer has gone to sleep.]
mikesplain has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
<ccolorado> cool, thanks eam and jhass
ardsrk has quit [Quit: Connection closed for inactivity]
timonv_ has joined #ruby
michaeldeol has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
mikecmpbll has quit [Ping timeout: 255 seconds]
mikespla_ has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
omosoj has joined #ruby
bricker`work has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
ssvo has joined #ruby
olivier_bK has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
Spami has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
arup_r has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
gr33n7007h has quit [Ping timeout: 244 seconds]
goodenough has joined #ruby
vsoftoiletpaper has joined #ruby
sepp2k has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Lexun has quit [Ping timeout: 240 seconds]
musl has quit [Quit: WeeChat 0.4.3]
treehug88 has quit [Client Quit]
endash has joined #ruby
kldskp has quit [Quit: Computer has gone to sleep.]
endash has quit [Read error: Connection reset by peer]
endash has joined #ruby
endash has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
endash has joined #ruby
Grantlyk has quit [Ping timeout: 264 seconds]
jso has quit [Remote host closed the connection]
mikesplain has quit [Read error: Connection reset by peer]
cpruitt has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Matadoer has joined #ruby
cpruitt has joined #ruby
Sie00 has quit [Ping timeout: 244 seconds]
dANOKELOFF has quit []
mikesplain has joined #ruby
abdulsattar has quit [Ping timeout: 244 seconds]
_m_g_ has joined #ruby
arup_r has joined #ruby
apeiros has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
atraylen has joined #ruby
abdulsattar has joined #ruby
cocotton has quit [Remote host closed the connection]
<godd2> When making a gem, is there a best practice place to put files for testing? Not the specs or tests themselves, but say I'm writing a gem to parse a particular file format, and I have a couple of those files to load for testing. would I put them in with the specs or in another folder?
memph1s has quit [Quit: I couldn't come up with quit message :(]
<godd2> I know I can put them anywhere, I just didn't know if there was a place people usually put them.
<jhass> {test,spec}/fixtures seems a common place
ferr has quit [Quit: Konversation terminated!]
<godd2> ah ok thank you
fflush has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
clauswitt has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
axsuul has joined #ruby
arup_r has quit [Quit: Leaving.]
alexju has joined #ruby
alem0lars has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
frankle has quit [Quit: Connection closed for inactivity]
SilkFox_ has joined #ruby
kevkev_ has joined #ruby
wjimenez_5271 has joined #ruby
dorei has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has quit []
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
reset has joined #ruby
cocotton has joined #ruby
Sawbones has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 260 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
ki0 has quit [Remote host closed the connection]
nanoyak has joined #ruby
tolo123 has quit [Quit: tolo123]
Neozonz has joined #ruby
Neozonz has quit [Changing host]
Neozonz has joined #ruby
abdulsattar has joined #ruby
musl has joined #ruby
arup_r has joined #ruby
kevkev_ has quit [Ping timeout: 250 seconds]
musl has quit [Client Quit]
reset has quit [Ping timeout: 255 seconds]
tolo123 has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
Neozonz|Disc has quit [Ping timeout: 255 seconds]
Zenigor has joined #ruby
Leehro has quit [Quit: Goodbye irceeple]
newUser1234 has quit [Remote host closed the connection]
Neozonz|Disc has joined #ruby
flaggy has quit [Quit: leaving]
saarinen has joined #ruby
dawkirst has joined #ruby
musl has joined #ruby
djbkd has joined #ruby
felgenh3 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
valner has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Pharaoh2 has joined #ruby
b00stfr3ak has quit [Quit: leaving]
b00stfr3ak has joined #ruby
SilkFox has joined #ruby
Neozonz has quit [Ping timeout: 255 seconds]
ghostmoth has joined #ruby
sambao21 has joined #ruby
Hanmac has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 256 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
ccolorado has quit [Ping timeout: 250 seconds]
neo1691 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
bronson has quit [Quit: bronson]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaut has quit []
mupkoo has joined #ruby
Spami has joined #ruby
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
obscured has joined #ruby
fflush has quit [Quit: fflush]
cocotton has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
sk87 has joined #ruby
cocotton has joined #ruby
mupkoo has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
m8 has joined #ruby
sk87 has quit [Client Quit]
cocotton_ has joined #ruby
SegFaultAX has joined #ruby
cocotton_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
mikesplain has quit []
cocotton_ has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
AlSquirrel has quit [Quit: This computer has gone to sleep]
Morkel has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
endash has quit [Read error: Connection reset by peer]
endash has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mikepack has quit [Remote host closed the connection]
Leehro has joined #ruby
Leehro has quit [Max SendQ exceeded]
pandaant has quit [Quit: Lost terminal]
Sawbones has quit [Remote host closed the connection]
Leehro has joined #ruby
Leehro has quit [Max SendQ exceeded]
Sawbones has joined #ruby
mikedugan has quit [Disconnected by services]
Alina-malina has quit [Read error: Connection reset by peer]
kevkev_ has joined #ruby
mary5030_ has joined #ruby
felgenh3 has quit [Ping timeout: 260 seconds]
fflush has joined #ruby
mdugan_ has joined #ruby
OrangeJewce has quit [Read error: Connection reset by peer]
qhartman has joined #ruby
awc737 has joined #ruby
OrangeJewce has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
reset has joined #ruby
Sawbones_ has joined #ruby
Sawbones has quit [Read error: No route to host]
Zenigor has quit []
mary5030_ has quit [Remote host closed the connection]
cocotton has joined #ruby
ndrei has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
goodenough has quit []
Danyiella has joined #ruby
Danyiella has left #ruby [#ruby]
momomomomo has joined #ruby
cocotton has joined #ruby
freerobby has quit [Quit: Leaving.]
Zenigor has joined #ruby
reset has quit [Ping timeout: 255 seconds]
Brolen has quit []
bronson has joined #ruby
terrellt has joined #ruby
jimms has quit [Remote host closed the connection]
kldskp has joined #ruby
rbrown_ has joined #ruby
freerobby has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
main has quit [Ping timeout: 250 seconds]
Sly has left #ruby [#ruby]
banister has joined #ruby
tvw has quit []
banister has quit [Max SendQ exceeded]
tvw has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
banister has joined #ruby
zorak has joined #ruby
banister has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
oo_ has joined #ruby
banister has joined #ruby
oo_ has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 264 seconds]
Matadoer has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
kldskp has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
Matadoer has joined #ruby
LiohAu has quit [Quit: LiohAu]
xenomorph is now known as {xenomorph}
alexju has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
kachi8 has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
kachi8 has quit [Client Quit]
kachi8 has joined #ruby
oo_ has quit [Remote host closed the connection]
claymore has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
djcp has joined #ruby
djcp has left #ruby [#ruby]
oo_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
oo_ has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
gaussblurinc1 has quit [Quit: Leaving.]
centipedefarmer has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Matadoer has quit [Remote host closed the connection]
Sie00 has joined #ruby
banjara has joined #ruby
havenwood has joined #ruby
treehug88 has joined #ruby
Matadoer has joined #ruby
oo_ has joined #ruby
deathwishdave has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
yfeldblum has joined #ruby
<momomomomo> >> puts "bot here too"
<eval-in> momomomomo => bot here too ... (https://eval.in/175758)
main has joined #ruby
oo_ has joined #ruby
axl_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
ki0 has quit [Remote host closed the connection]
oo_ has joined #ruby
Grantlyk has joined #ruby
Neozonz has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
Neozonz has quit [Changing host]
Neozonz has joined #ruby
<banister> >> "momomomomo".display
<eval-in> banister => momomomomonil (https://eval.in/175762)
<momomomomo> ha, no nil in mine banister take that
Sie00 has quit [Remote host closed the connection]
oo_ has joined #ruby
<banister> momomomomo i take it! i take it!
oo_ has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
Grantlyk has quit [Remote host closed the connection]
oo_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Grantlyk has joined #ruby
oo_ has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
alem0lars has joined #ruby
<momomomomo> >> "banister".b
<eval-in> momomomomo => "banister" (https://eval.in/175763)
oo_ has joined #ruby
Neozonz|Disc has quit [Ping timeout: 255 seconds]
reset has joined #ruby
<momomomomo> oops, added an apos
oo_ has quit [Read error: Connection reset by peer]
maestrojed has quit [Quit: Computer has gone to sleep.]
Sid05 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
doev has quit [Ping timeout: 255 seconds]
dangerousdave has quit []
dawkirst has joined #ruby
oo_ has joined #ruby
dangerousdave has joined #ruby
oo_ has quit [Remote host closed the connection]
xkami has joined #ruby
oo_ has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
oo_ has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 255 seconds]
rdark has quit [Quit: leaving]
treehug88 has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 245 seconds]
OrangeJewce has quit [Remote host closed the connection]
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
dangerou_ has joined #ruby
luckyruby has joined #ruby
volk_ has joined #ruby
dtrainor has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
mattmcclure has joined #ruby
<dtrainor> Hi. Is there an environment variable that 'gem' uses to source gems from a filesystem location?
<volk_> hey guys do you know of any awesome ruby devs that have good blogs on best practices etc.. just looking for some good new content
britneywright has joined #ruby
chrishough has joined #ruby
dangerou_ has quit [Client Quit]
dangerousdave has quit []
Jetchisel has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
centipedefarmer has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<momomomomo> volk_: railscasts ruby rogues
centipedefarmer has joined #ruby
Sie00 has joined #ruby
SilkFox has joined #ruby
jprovazn has joined #ruby
oo_ has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
Ayey_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<arup_r> I have an array say a = (1..10).to_a ... How can I delete the items from say 3 and 7 th index.. If I use #delete_at, then elements will be slipped... Idea please
<dtrainor> ah, looks like it's GEM_PATH
waltertv has joined #ruby
joelteon has left #ruby ["bye"]
<jhass> arup_r: what do you mean by "slipped"?
<arup_r> LOL
<arup_r> wait
<arup_r> If I delete first from 3rd index all index will be re-arranged
<arup_r> array can have duplicate elements
<arup_r> But I want exactly from 3 and 7 th index deletion
oo_ has joined #ruby
<apeiros> arup_r: delete highest index first
<arup_r> Is it clear now ?
michael_lee has quit [Quit: Ex-Chat]
<momomomomo> >> a = (1..10).to_a.slice!(3..5)
<eval-in> momomomomo => [4, 5, 6] (https://eval.in/175769)
<Wolland> set them to nil then compact
<arup_r> wolland: bad idea
<momomomomo> >> a = (1..10).to_a; a.slice!(3..5); puts a
<Wolland> DO IT!
<eval-in> momomomomo => 1 ... (https://eval.in/175770)
oo_ has quit [Remote host closed the connection]
<arup_r> if there is orginal data nil
<arup_r> it will be gone
<arup_r> I wouldn't DO IT
<jhass> arup_r: I think we're talking about the solution you think you need to your actual problem. What's the real initial array and how should the result look like
<Wolland> in your example you had 1-10 so :)
oo_ has joined #ruby
axl_ has quit [Quit: axl_]
<arup_r> Wolland: that's an example..
Sauvin has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<arup_r> jhass: your idea is good
<arup_r> start from highest index
<momomomomo> arup_r: wait, you want to just null them out but keep 10 at the 10th index?
Neozonz has quit [Read error: Connection reset by peer]
zoo-zed has joined #ruby
<jhass> arup_r: that was apeiros suggestion
noop has joined #ruby
oo_ has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Neozonz has joined #ruby
Neozonz has quit [Changing host]
Neozonz has joined #ruby
<arup_r> Your name has too many "m" and "0"
<arup_r> :-)
W0rmDr1nk has joined #ruby
W0rmDr1nk has quit [Changing host]
W0rmDr1nk has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<arup_r> jhass: I didn't see him.. Where is he ?
<jhass> apeiros: yeah, where are you?
<apeiros> you should turn on highlighting
<arup_r> apeiros: Thanks Dude!
<momomomomo> arup_r: what do you want? do you want [1, 2, 3, nil, nil, nil, 7, 8, 9, 10] ?
oo_ has joined #ruby
<arup_r> no
<momomomomo> or do you want [1, 2, 3, 7, 8, 9, 10]
oo_ has quit [Remote host closed the connection]
<momomomomo> arup_r: ?
<arup_r> I have an array.. and I want to delete 2 items from 2 diff index.
<eam> arup_r: yes but what do you mean by delete? Which of the two results do you want?
<arup_r> I am using Pidgin
oo_ has joined #ruby
<Wolland> he wants to remove items by index but not affect array so next index to remove is still valid
<momomomomo> oh I see, right yeah do what apeiros was sayign and remove from the highest index first
oo_ has quit [Remote host closed the connection]
<arup_r> Wolland: reads my mind..
<arup_r> Thanks
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
aspires_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
Ch0c0late has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<waltertv> hi all, super noob here--i'm trying to replace a regex with double backslashes with single backslashes but i guess single backslashes are actually double backslashes? i hope someone can point me in the right direction
oo_ has joined #ruby
jimms has joined #ruby
maestrojed has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<eam> waltertv: gist some example code?
oo_ has quit [Remote host closed the connection]
dtrainor has left #ruby ["Leaving"]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<devoknievo> Hey all: I'm just getting started with using ruby and was hoping to make a menu bar widget in OSX that displays an integer and updates itself every second. Would I use tk for this or something else? thanks!
axl_ has joined #ruby
oo_ has joined #ruby
timonv_ has joined #ruby
<rismoney1> so win32/registry cannot be required on a linux node? even for testing?
oo_ has quit [Read error: Connection reset by peer]
<wasamasa> devoknievo: you use what osx and its toolkits give you
Zebroid has joined #ruby
<wasamasa> devoknievo: do your research how it's accomplished and search whether someone invested effort in creating a ruby gem for that
oo_ has joined #ruby
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
mostlybadfly has quit [Quit: Connection closed for inactivity]
vsoftoiletpaper has joined #ruby
oo_ has quit [Remote host closed the connection]
<devoknievo> wasamasa: thanks!
descala has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
<wasamasa> devoknievo: that's in general how to help yourself
oo_ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<wasamasa> devoknievo: figure out the technology you need for it, then what the tool to utilize it would be for you
Takle has joined #ruby
oo_ has joined #ruby
Hanmac has joined #ruby
oo_ has quit [Remote host closed the connection]
<wasamasa> devoknievo: once you've got that, test out example code, modify, play around with it and turn it into what you desire eventually
descala has joined #ruby
oo_ has joined #ruby
<wasamasa> devoknievo: what I still know from my osx days is that applescript is able to modify a lot in programs running, so perhaps a ruby bridge for it would do the trick
Sie00 has quit [Remote host closed the connection]
<Wolland> arup_r: [1,2,3].delete_if.with_index {|x,i| [1,3,4].include?(i) }
<Wolland> maybe an option
oo_ has quit [Read error: Connection reset by peer]
<arup_r> yes..good idea too
* apeiros mumbles something about efficiency
lw has quit [Quit: s]
<eam> waltertv: you don't have double backslashes in the first place
abuzze_ has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<eam> waltertv: the "\\" creates a string with a single backslash
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
<devoknievo> wasamasa: Perfect! Thanks again for the advice! I'll do some clever googling and get the ball rolling.
<eam> waltertv: when you pretty-print the string, it displays "\\" to represent a single backslash
<Wolland> true true
<arup_r> hehe.. apeiros you won
oo_ has joined #ruby
willgorman_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
dblessing has quit [Remote host closed the connection]
lw has quit [Read error: Connection reset by peer]
<waltertv> eam: you're right, but when i true to use the regex pattern with the escaped backslash it breaks
mikepack has joined #ruby
<eam> waltertv: breaks how?
lw has joined #ruby
oo_ has joined #ruby
<waltertv> it doesn't match
Sid05 has joined #ruby
<eam> I think it does - what makes you think it doesn't?
icarus has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
bayed has quit [Quit: Connection closed for inactivity]
<eam> waltertv: bear in mind, rgx.gsub("\\", 92.chr) is a no-op
<eam> you are matching \ and replacing it with \
dblessing has joined #ruby
lw has quit [Read error: Connection reset by peer]
<eam> "\\" is a \
<eam> 92.chr is a \
oo_ has joined #ruby
<waltertv> haha i know i know
lw has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
b00stfr31k has quit [Ping timeout: 256 seconds]
Hobogrammer has joined #ruby
oo_ has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
oo_ has joined #ruby
aspires_ has quit []
oo_ has quit [Remote host closed the connection]
<eam> waltertv: so what "breaks?"
Wixy has quit [Read error: Connection reset by peer]
Takle has joined #ruby
b00stfr3ak has joined #ruby
Wixy has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
Wixy has quit [Changing host]
Wixy has joined #ruby
b00stfr31k has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
oo_ has joined #ruby
mikepack has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
<waltertv> eam: when i try to use that pattern with the escaped slashes to match
<waltertv> it works without escaped slashes
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<eam> waltertv: can you describe what you mean by "break?" Is there an exception? Behavior your don't expect? If so, what?
<waltertv> well it doesn't really break, it just doesn't match
p0sixpscl has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
<eam> waltertv: are you sure? how do you know that?
pothibo has joined #ruby
oo__ has joined #ruby
<eam> waltertv: are you saying it doesn't match because the result is the same as the string you started with?
oo__ has quit [Remote host closed the connection]
mikepack has joined #ruby
volk_ has quit [Quit: volk_]
kldskp has joined #ruby
lkba has joined #ruby
anaeem1 has joined #ruby
oo__ has joined #ruby
oo__ has quit [Remote host closed the connection]
<eam> because your gsub() is a no-op, it replaces a \ with a \
mostlybadfly has joined #ruby
willgorm- has joined #ruby
<eam> I think it is matching -- and replacing a character with an identical character
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
blackmesa has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<waltertv> eam: one sec this is hard to explain
anaeem1 has quit [Read error: Connection reset by peer]
volk_ has joined #ruby
oo_ has joined #ruby
Kricir has joined #ruby
oo_ has quit [Remote host closed the connection]
kirun has joined #ruby
anaeem1 has joined #ruby
kldskp has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
Sie00 has joined #ruby
<waltertv> eam: you're right it does work i am just v stupid
oo_ has joined #ruby
<waltertv> eam: thanks
waltertv has quit [Quit: Leaving...]
sailias1 has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
Sie00 has quit [Remote host closed the connection]
Sid05 has quit [Quit: Sid05]
arup_r has quit [Quit: Leaving.]
aspires has joined #ruby
oo_ has joined #ruby
Sie00 has joined #ruby
volk_ has quit [Client Quit]
<SpaceKookie> Another question about Ruby. (I'm fairely new to it). How can I make this method not ugly? :P http://pastebin.com/3JcVNajS
oo_ has quit [Read error: Connection reset by peer]
<eam> doh, he's not stupid. munging strings for display makes things confusing
<SpaceKookie> ( The db_buffer is a list and I need to check if there are no entries with their path set to "nil").
oo_ has joined #ruby
<apeiros> SpaceKookie: tmp.db_buffer.include?(nil)
Spami has quit [Ping timeout: 256 seconds]
<apeiros> oh, .path
oo_ has quit [Remote host closed the connection]
<SpaceKookie> apeiros: yea :/
<SpaceKookie> It
<apeiros> well, .any? { |x| x.path.nil? }
<apeiros> also, don't use variable names like 'x'
<SpaceKookie> Oh I didn't know that existed :)
<SpaceKookie> Okay
fflush has quit [Quit: fflush]
<eam> apeiros: why not?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<eam> if it's a single use placeholder I think x is fine
<apeiros> eam: no
<apeiros> db_buffer probably does not consist of "x"es
oo_ has joined #ruby
<SpaceKookie> Yea true, it consists of databases XD Thanks :) That's much prettier
oo_ has quit [Remote host closed the connection]
<SpaceKookie> I learned coding in Java and have to get over my habit of coding Ruby like Java ^^
<Hanmac> apeiros: why not !enum.all?(&:path) ?
Takle_ has joined #ruby
<mars777> Example.new() <—If I have alot of arguments to pass into the new instance, what is a good way to still pass them in but look good, or is it bad to have more than 4 or 5 arguments passed to a new instance?
oo_ has joined #ruby
<apeiros> Hanmac: drop the ! and use any? - then yes, why not :)
<eam> apeiros: sure, but the semantic meaning of a placeholder can approach nil - at which point simply "x" is fine as it's just x
<eam> just a meaningless variable, for which context is unimportant
oo_ has quit [Read error: Connection reset by peer]
<apeiros> eam: I disagree and leave it at that.
deric_skibotn has joined #ruby
oo_ has joined #ruby
<Hanmac> apeiros: hm no i mean'd to reverse your variant, so i can use the short from ... hm might need to be benchmaŕked which is faster ...
toastynerd has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
Vivekananda_y510 has quit [Remote host closed the connection]
<eam> ok, but just to finish explaining my point, for example if I'm writing +() I'd probably just use x and y for the generic operands
oo_ has joined #ruby
Spami has joined #ruby
<eam> variables don't always have meaningful names
oo_ has quit [Remote host closed the connection]
definiv has joined #ruby
definiv has quit [Client Quit]
axsuul has quit [Ping timeout: 264 seconds]
definiv has joined #ruby
<apeiros> +(summand)
Sie00 has quit [Ping timeout: 250 seconds]
<apeiros> semantically meaningful
oo_ has joined #ruby
definiv has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 250 seconds]
<apeiros> and depending on the size of your + method, it'll make reading it a lot easier than "x"
<eam> sure because in ruby it's distinct from self. I mean def plus(x, y)
oo_ has joined #ruby
<apeiros> summand_a, summand_b
<apeiros> still better than x,y
ki0 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<eam> I remain unconvinced for one-line functions :D
<Hanmac> i often use def ==(other); ... ;end as variable names ...
<apeiros> I should have left it at "I disagree"
tvw has quit []
oo_ has joined #ruby
<apeiros> no point trying to pour water into a full glass
oo_ has quit [Read error: Connection reset by peer]
<eam> apeiros: I do see your point
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
alem0lars has joined #ruby
SilkFox_ has joined #ruby
<eam> I just think that if we're ok with reducing to sugar with &:path and no named parameter at all we can't believe the name has terribly much meaning
oo_ has joined #ruby
mikepack has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Xeago has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
ki0 has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
oo_ has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
oo_ has quit [Remote host closed the connection]
<shevy> are you still hating on the ruby parser eam
<shevy> :>
sepp2k has quit [Read error: Connection reset by peer]
Sie00 has joined #ruby
cocotton has quit [Remote host closed the connection]
<shevy> if only apeiros would not have stopped developing halsbe ...
SouL_ has joined #ruby
<eam> yes
oo_ has joined #ruby
cuqa has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
<eam> shevy: I think you mean loving on
<shevy> ... or his game ...
oo_ has quit [Read error: Connection reset by peer]
alem0lars has quit [Ping timeout: 245 seconds]
alexju has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> at work we now have added another python-based program
SilkFox_ has quit [Ping timeout: 244 seconds]
<shevy> it calls like 50 different .py scripts and 80 different shell scripts
oo_ has joined #ruby
Dreamer3 has joined #ruby
axsuul has joined #ruby
<shevy> python is damn wide spread in the scientific community :(
oo_ has quit [Read error: Connection reset by peer]
<shevy> now I connect the individual .py scripts of different commandline based programs via ruby
<eam> >> "#{%}#{%}}}}}"
<eval-in> eam => "" (https://eval.in/175787)
volk_ has joined #ruby
oo_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
oo_ has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
relix has joined #ruby
oo_ has joined #ruby
cocotton has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
oo_ has joined #ruby
iamjarvo has joined #ruby
oo_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
oo_ has joined #ruby
Zebroid has quit [Ping timeout: 256 seconds]
dumdedum has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
oo_ has joined #ruby
<eam> >> "#{%}#{%}#{%}#{%}#{%} }}}}}}}}}}"
<eval-in> eam => " " (https://eval.in/175788)
oo_ has quit [Remote host closed the connection]
cuqa has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 240 seconds]
cocotton_ has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
JohnFord has joined #ruby
oo_ has joined #ruby
tricon_ has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
noop has quit [Quit: Leaving]
max06 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
kldskp has joined #ruby
abdulsattar has joined #ruby
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
Vivekananda_y510 has joined #ruby
Takle_ has quit [Ping timeout: 260 seconds]
Sie00 has quit [Remote host closed the connection]
Takle has quit [Read error: No route to host]
Takle_ has joined #ruby
havenwood has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
havenwood has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
tectonic has joined #ruby
max06 has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
dbasch_ has joined #ruby
havenwood has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
tectonic has quit [Client Quit]
kldskp has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
xkami has quit [Remote host closed the connection]
xkami has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
vsoftoiletpaper has quit []
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Takle_ has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
freerobby has joined #ruby
sha1sum has quit [Quit: leaving]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Rylee has joined #ruby
Rylee has quit [Changing host]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
cleopatra has joined #ruby
havenwood has joined #ruby
Sie00 has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ascarter has joined #ruby
Takle has joined #ruby
ascarter has quit [Max SendQ exceeded]
oo_ has joined #ruby
ascarter has joined #ruby
oo_ has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
alem0lars has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
krisquigley has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
ghostmoth has joined #ruby
timonv_ has joined #ruby
BadQuanta has joined #ruby
volk_ has quit [Quit: volk_]
lw has quit [Quit: s]
nateberkopec has quit [Quit: Leaving...]
ptrrr has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Ping timeout: 256 seconds]
Mattias has joined #ruby
nateberkopec has joined #ruby
bjessbrown has joined #ruby
bjessbrown has quit [Remote host closed the connection]
volk_ has joined #ruby
lw has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoknievo has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
aspires has quit []
<mjuszczak> Quick question. If I haev something like def self.foo(blah, ribbit, options) and it's called as foo('1.txt','2.txt',':abc => bar'), and then I want to call another method from within that method passing everything was passed in except having a new option (:def => blah), is that possible/same?
Cereal` has quit [Ping timeout: 245 seconds]
<mjuszczak> sane*
BadQuanta has quit [Quit: Leaving.]
<benzrf> mjuszczak: why is options a string
<mjuszczak> sorry, typo. It ins't.
<mjuszczak> isn't*
Takle has joined #ruby
alvaro_o_ has joined #ruby
<mjuszczak> ,:abc => 'bar'
<jhass> so options is mandatory?
bronson has quit [Quit: bronson]
<mjuszczak> yes
<momomomomo> mjuszczak: if that method is setting options on the instance of that class, store them as instance variables
BadQuanta has joined #ruby
sinkensabe has joined #ruby
<momomomomo> use attr_reader or accessor or something to get at them later
<toretore> mjuszczak: Hash#merge
samb1 has joined #ruby
<mjuszczak> momomomomo and toretore: thank you
phutchins has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
alem0lars has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
pushpak has joined #ruby
Ankhers has quit [Remote host closed the connection]
Sid05 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
kaspergrubbe_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle_ has joined #ruby
saarinen has quit [Quit: saarinen]
chrishough has quit [Quit: chrishough]
krisquigley has joined #ruby
mikepack has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
TorpedoSkyline has joined #ruby
mdugan_ has quit [Ping timeout: 240 seconds]
dawkirst has quit [Remote host closed the connection]
ringarin has joined #ruby
tvw has joined #ruby
krisquigley has quit [Remote host closed the connection]
Takle_ has quit [Ping timeout: 250 seconds]
mikepack_ has joined #ruby
koell has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
<koell> where are gem's stored by default on ubuntu?
<toretore> gem env should tell you
<koell> toretore: thanks =)
Takle has joined #ruby
parduse has quit [Killed (hobana.freenode.net (Nickname regained by services))]
anaeem1 has joined #ruby
Grundell has joined #ruby
parduse has joined #ruby
parduse is now known as Guest88069
craigbowen3 has quit [Ping timeout: 255 seconds]
<koell> hmmm still cant find the "t" gem i installed :/
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
acrussell has left #ruby [#ruby]
Guest88069 has quit [Client Quit]
<havenwood> koell: Are you currently using the same Ruby's `gem` as when you installed it?
<jhass> koell: does gem which t return something?
<havenwood> koell: Check?: sudo update-alternatives --config gem
codecop has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<koell> havenwood: i used rbenv to install ruby and then ´sudo gem install t´
ascarter has joined #ruby
<koell> jhass: sadly not, just hate how this guy called his twitter client
ascarter has quit [Max SendQ exceeded]
<havenwood> koell: ahh, wasn't expecting rbenv with default ubuntu ruby :p
dangerousdave has joined #ruby
parduse has joined #ruby
anaeem1 has quit [Ping timeout: 256 seconds]
parduse is now known as Guest43751
<koell> the default ubuntu ruby just fucking sucks, those shitty packages there -.-
* havenwood mutters about shims
<jhass> are you actually sure it installed
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<koell> i may install it again....
saarinen has joined #ruby
ascarter has joined #ruby
Bumptious has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
DreamingRainne has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
nanoyak has joined #ruby
<havenwood> koell: remember with rbenv you've adopted a shim garden you'll need to water: rbenv rehash
mdugan_ has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
SilkFox_ has joined #ruby
<havenwood> koell: if it's the t bin you're not finding
toastynerd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
koderok has quit [Quit: koderok]
SegFaultAX has quit [Excess Flood]
sambao21 has joined #ruby
<havenwood> koell: gem binaries aren't just available when you've installed a gem with rbenv. not really sure what they recommend, and no irc channel. i'm sure there're users here who might know better, but i guess remember to rehash, use a gem to help you manage shims. (Or use a different Ruby version switcher.)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<koell> havenwood: still waiting for the gem install t command... :/
ghr has joined #ruby
SegFaultAX has joined #ruby
Takle has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
Guest43751 has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
parduse has joined #ruby
<koell> hmm weird, it is trying to build the native extension with 1.9.1 though i use rbenv and set global 2.1.2.
<havenwood> koell: using sudo?
SilkFox_ has quit [Ping timeout: 240 seconds]
parduse is now known as Guest71944
Guest71944 has quit [Client Quit]
parduse has joined #ruby
<koell> yea, now i tried with gem2.0 and got another error "failed to build native extension, mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
parduse is now known as Guest86485
cantonic has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
<havenwood> koell: so you're getting system ruby if you use sudo and rbenv local if you don't, i'm assuming
Takle has joined #ruby
<koell> i dont want to install those header files from ubuntu sources, they are fucking annoying on updating them ^^
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> koell hahaha :)
<havenwood> koell: confirm `sudo ruby -v` and `ruby -v` are as expected?
ghr has quit [Ping timeout: 250 seconds]
<koell> havenwood: sudo ruby -v gives me 1.9.3p and ruby -v gives me 2.1.2
saarinen has joined #ruby
<eam> sudo is cleaning your environment
<havenwood> koell: so `sudo gem ...` will install gems to system ruby
<havenwood> koell: `gem ...` is your local install via rbenv
cventeic has joined #ruby
kaspertidemann has joined #ruby
Squarepy has quit [Quit: Leaving]
codecop has joined #ruby
<eam> koell: you can !env_reset in your sudoers
Sie00 has quit [Ping timeout: 250 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<koell> havenwood: so i need to install without sudo? just ´gem install t´?
<eam> or set up rvm for root
danijoo has quit [Read error: Connection reset by peer]
Zebroid has quit [Ping timeout: 245 seconds]
<eam> *shudder*
ascarter has quit [Ping timeout: 256 seconds]
devoknievo has joined #ruby
<havenwood> koell: yup, rbenv installs gems to a fixed location in your user dir
danijoo has joined #ruby
saarinen has quit [Client Quit]
<shevy> eam how do you manage your ruby?
<jhass> eam: never. suggest. that. again. I will come and hunt you down
<koell> havenwood: gem2.0 install t
<eam> jhass: it's not like rvm ever makes it near a production machine anyway
<koell> ERROR: While executing gem ... (Errno::EACCES)
<koell> Permission denied - /home/manuel/.gem/specs
<koell> sorry that
<eam> everyone's uid=0 in a vm
<havenwood> eam: mpapis quote from just a min ago in #rvm: if you need one ruby for more users add a "manager" to "rvm" group and not the other users, use "rvm user gemsets" for all the users so they can have they own gemsets
<eam> shevy: with an iron fist
<koell> weird, i dont have access to my .gem folder xD
<jhass> koell: sudo chown -R manuel /home/manuel
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
cventeic has quit [Client Quit]
<jhass> and stop using sudo if you can't explain why that command needs it
<koell> yeah
jonahR has joined #ruby
ascarter has joined #ruby
<shevy> eam lol no I mean... from source? rvm? rbenv?
<koell> jhass: i had to use sudo in the past as im not used rbenv/rvm before
ascarter has quit [Max SendQ exceeded]
<eam> shevy: rvm in dev, custom packaging of a relocatable build for prod
<shevy> aha
ascarter has joined #ruby
glebm has joined #ruby
ascarter has quit [Max SendQ exceeded]
<jhass> neither rbenv nor rvm require you to use sudo. (well RVM calls sudo to install dependency packages, but that's it)
<koell> jhass: when i use without sudo i get an error as well wtf
<koell> You don't have write permissions for the /var/lib/gems/2.0.0 directory.
<koell> fucking fuck
<koell> i just stick with another client, fucking hard setup fuck
<jhass> are you sure you're inside a rbenv activated ruby?
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
<jhass> what does which ruby say?
johnmolina has joined #ruby
nanoyak has joined #ruby
emons has joined #ruby
<koell> ~/.rbenv/shims/ruby
Kricir has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<koell> i just hate those ruby magic hippsters :/
<jhass> meh, just gem install --user-install t
<jhass> :P
ascarter has joined #ruby
kldskp has joined #ruby
<havenwood> koell: if you need one ruby, ruby-install to /usr/local/ or apt-get ruby2.0 ruby2.0-dev ruby2.0-doc (which are better packages than previous options). if you need to switch rubies, use RVM or ruby-install or ruby-build with chruby
ascarter has quit [Max SendQ exceeded]
<havenwood> koell: IMHO^
<jhass> I lost track whether rbenv manages GEM_HOME
michaeldeol has joined #ruby
<koell> havenwood: no, those fucking sources from ubuntu... i NEVER use them again, freaking annoying unpatched crap
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<havenwood> koell: how about building yourself to /usr/local?
<havenwood> koell: already in the PATH if you've no need to switch Rubies
<AntelopeSalad> yeah i would just use ruby-install if you only need 1 version
kiddy56842 has joined #ruby
<koell> yeah i got it work now just with ´gem install t´. what the hell is gem2.0 then used for? freaking bullshit buntu shit
sambao21 has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
<koell> \o/
ascarter has quit [Max SendQ exceeded]
<eam> ruby's module system is so bizarre. $: could take care of everything but there's all this gem stuff on top
mupkoo has joined #ruby
voodoofish1 has joined #ruby
<havenwood> koell: well, working is working ;) just remember to rehash :P
voodoofish has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
<AntelopeSalad> rbenv is ridiculous in that sense
<koell> the same shit version trouble shit with python. this is the reason i dont like to work with those guys -.-
saarinen has joined #ruby
aspires has joined #ruby
decoponio has quit [Quit: Leaving...]
<koell> but thanks guys for helppp
Ch0c0late has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Remote host closed the connection]
x1337807x has joined #ruby
kldskp has quit [Ping timeout: 255 seconds]
<shevy> koell I think the gem2.0 would not mean ruby version "2.0" necessarily but instead the C ABI version
sambao21 has joined #ruby
<shevy> so ruby 2.1.2 should use 2.1.0
<shevy> though actually
<shevy> that makes no sense... gem is not a binary
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanoyak has quit [Read error: Connection reset by peer]
<shevy> madness rules ubuntu
<shevy> and unity
<shevy> same thing
<koell> shevy: so gem2.0 is something completely different?
nanoyak has joined #ruby
<AntelopeSalad> shevy, you should try building an apt package to install ruby 2.1
<jhass> gem2.0 should be the gem from the ruby2.0 packages
<koell> i thought i use gem2.0 for 2.x ruby versions and gem for 1.x versions
<shevy> I honestly don't know what gem2.0 is ... latest rubygems is http://production.cf.rubygems.org/rubygems/rubygems-2.2.2.tgz
sinkensabe has joined #ruby
Ch0c0late has joined #ruby
<havenwood> shevy: nuh uhh, 2.4 :P
<shevy> damn
<shevy> I am out of date :(
Sawbones_ has quit [Remote host closed the connection]
<shevy> indeed
<havenwood> koell: that is debian's naming convention for the binary. they don't ship a separate gem package any longer, but because they did with 1.8 you still have to deal with the update-alternatives
Sawbones has joined #ruby
felgenh3 has joined #ruby
<jhass> koell: no, gem is the normal name, any version. Since they have packages for ruby 1.9 and ruby 2.0 they named gem from rubygems for 2.0 gem2.0 to have no conflict
ssvo has joined #ruby
<shevy> what a CLEVER approach
<havenwood> i *think* i recall that update-alternatives switching between 1.9 and 2.0 automatically does gem, but not 1.8
<havenwood> not sure
chrishough has joined #ruby
jottr_ has joined #ruby
<jhass> shevy: I actually follow that for the arch packages, most recent gets gem, ruby2.0 package ships gem2.0 ruby1.9 package ships gem1.9. There's no real alternative without additional tools
<koell> so the weird thing is, i use ´gem´ with any version of ruby then? im using rbenv
<shevy> koell yeah that should work for the most part
<jhass> koell: rbenv manages the $PATH so that gem always points to the one for the activated ruby version
ptrrr has quit [Quit: ptrrr]
<koell> lol, but python's pip and pip3 works as expected ROFL
freerobby has quit [Quit: Leaving.]
<jhass> or does that over shims or whatever
<havenwood> koell: Ruby ships with a certain version of RubyGems, including the `gem` binary. You can update RubyGems independently from Ruby.
gregf has quit [Read error: Connection reset by peer]
<havenwood> koell: It's a good idea to update RubyGems to latest: gem update --system
sinkensabe has quit [Ping timeout: 244 seconds]
<havenwood> koell: which will provide the latest `gem`
ringarin has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
<shevy> jhass hmm archlinux has files called "gem2.0" as well?
<jhass> koell: it's the same thing with python, the normal name is pip, renaming it is a packaging mechanism to allow concurrently installed versions
<koell> havenwood: the latest gem for both versions? 1.x/2.x??
<havenwood> koell: on whatever Ruby you're using
<jhass> shevy: well, not in the official repos, only with AUR packages
ringarin has joined #ruby
<jhass> shevy: but as said, there's no alternative for packaging
Sawbones has quit [Ping timeout: 256 seconds]
<havenwood> koell: though just remove what you're not using to avoid minimize complexity
ringaring has joined #ruby
<koell> i may take a look into arch, hope their bleeding edgeness will not blow my system like mark's shittbuntu
lw has quit [Quit: s]
Sawbones has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
ringarin has quit [Ping timeout: 250 seconds]
Spami has quit [Ping timeout: 264 seconds]
mupkoo has quit [Remote host closed the connection]
<ericwood> why do people assume all rubyists want to hear all about elixir
kiddy56842 has quit [Ping timeout: 264 seconds]
<ericwood> there does not seem to be a line as far as user groups go
jprovazn has quit [Quit: Odcházím]
<koell> elixir... sounds like sql alchemy?? :D
jottr_ has quit [Read error: Connection reset by peer]
qhartman has quit [Quit: Ex-Chat]
jottr has joined #ruby
asmodlol has quit [Quit: Leaving]
Morkel has quit [Quit: Morkel]
Sawbones has quit [Remote host closed the connection]
Shidash has joined #ruby
benlieb has joined #ruby
Sawbones has joined #ruby
kldskp has joined #ruby
gregf has joined #ruby
itsrachelfish has joined #ruby
<itsrachelfish> Hi #ruby !
Zenigor has quit [Remote host closed the connection]
<itsrachelfish> I'm trying to use this library: https://github.com/statico/spittoon
<itsrachelfish> I'm using ruby 2.0 and it's giving me some very weird errors
<itsrachelfish> statico-spittoon/lib/spittoon.rb:177:in `[]': undefined method `[]' for nil:NilClass (NoMethodError) from
<itsrachelfish> statico-spittoon/lib/spittoon.rb:68:in `generate_comic' from ../bin/make_comic.rb:89:in `<main>'
Lexun has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<itsrachelfish> It seems like you used to be able to define functions as square brackets like that... http://stackoverflow.com/questions/10018900/how-does-defining-square-bracket-method-in-ruby-work
<itsrachelfish> But apparently it doesn't work anymore?
<itsrachelfish> Does anyone know how code like that could be updated to work in newer versions of ruby?
Zenigor has joined #ruby
maletor has joined #ruby
Sawbones has quit [Ping timeout: 260 seconds]
dEPy has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zenigor has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> itsrachelfish, that syntax hasn't gone away...
axl_ has joined #ruby
<itsrachelfish> Oh
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mupkoo has joined #ruby
<itsrachelfish> It was working previously though, why would it stop working after upgrading?
Sawbones has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
tjr9898 has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 256 seconds]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ringaring has quit [Quit: Leaving]
mdugan_ has quit [Ping timeout: 260 seconds]
BifMeister has left #ruby [#ruby]
jottr has joined #ruby
tjr9898_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
lw has joined #ruby
Guest86485 has quit []
<theharshest> return and return nil, are same?
JohnFord has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has joined #ruby
main has left #ruby ["WeeChat 0.4.3"]
itspots has quit [Quit: Computer has gone to sleep.]
jackneill has quit [Remote host closed the connection]
itspots has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
paulfm has quit []
ch077179 has joined #ruby
benlieb has quit [Quit: benlieb]
<ch077179> Hi, I have run this: wmi = WIN32OLE.connect("winmgmts://"), and
jdj_dk has quit [Remote host closed the connection]
<ch077179> disks = wmi.ExecQuery("select * from win32_diskdrive")
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
vyorkin has joined #ruby
<ch077179> how can I look at/ inspect individual disks now?
bmurt has quit []
<ch077179> disks[0] doesn't show anything
saarinen has quit [Quit: saarinen]
<ch077179> is disks an array?
benlieb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
itspots has quit [Ping timeout: 250 seconds]
SilkFox_ has joined #ruby
<jhass> do that in irb and add disks.class
obscured has quit [Quit: leaving]
<ch077179> jhass, I'm using ruby pretty much for the first time, so I don't know what that is
sambao21 has joined #ruby
<ch077179> I just want to extract some basic disk information using wmi
<jhass> run irb
<jhass> I don't use windows so I can't answer your question directly
ghr has joined #ruby
<jhass> I can only show you how to find out
rbrown_ has quit [Ping timeout: 245 seconds]
<jhass> so first run the irb program
<ch077179> I am running it
<ch077179> you mean the ruby console?
Edelwin has quit [Quit: leaving]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Zebroid has joined #ruby
xkami has quit [Quit: The quieter you become the more you are able to hear]
<jhass> yeah
zarul has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
<ch077179> that's where I ran the commands I sent up chat
<jhass> irb stands for interactive ruby, it's a so called repl, read eval print loop
<ch077179> ok
Sawbones has quit [Remote host closed the connection]
<jhass> then what's the output of disks.class
cocotton_ has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
itspots has joined #ruby
itspots has joined #ruby
itspots has quit [Changing host]
<ch077179> undefined local variable or method
<ch077179> ugh
<jhass> new irb session? then do the above stuff again first
mikepack has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
cocotton_ has joined #ruby
banister has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
supermarkettoday has joined #ruby
benlieb has quit [Ping timeout: 255 seconds]
troyready has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
<ch077179> just a sec
<ch077179> almost there
<ch077179> ok
<ch077179> obv it's a win32ole class
<ch077179> I'm looking at its documentation right now
jottr has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 245 seconds]
volk_ has quit [Quit: volk_]
Ayey_ has quit [Ping timeout: 245 seconds]
<ch077179> hm, maybe I need .each
<ch077179> I thought I could access elements by indexing somehow
asimk has joined #ruby
cocotton_ has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
andrewlio has quit [Remote host closed the connection]
St_Marx has joined #ruby
jottr has joined #ruby
InfraRuby has left #ruby [#ruby]
cleopatra has quit [Ping timeout: 255 seconds]
tectonic has joined #ruby
mupkoo has quit []
livingstn has quit []
Tricon has joined #ruby
<asimk> what is Net::Ruby?
jimms has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
<jhass> doesn't seem to be in core or stdlib. Where do you have that from?
djbkd has joined #ruby
InfraRuby has joined #ruby
iamayam has joined #ruby
saarinen has joined #ruby
<shevy> asimk nothing officially supported
Hobogrammer has joined #ruby
anildigital is now known as zz_anildigital
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<asimk> shevy - i didn't get you
<asimk> you mean it is not supported
Squarepy has joined #ruby
axsuul has joined #ruby
benlieb has joined #ruby
silentpost has joined #ruby
<shevy> I think it is a project that was started by some microsoft liking folks but abandoned again
saarinen has quit [Ping timeout: 255 seconds]
rubyonrailed has quit []
blackmesa has quit [Remote host closed the connection]
<asimk> if i install savon would i be able to use curl commands in my ruby script?
<shevy> there is also Net::HTTP btw, your choice of Net::Ruby is a weird way to call it ;P
<shevy> you can use curl from ruby directly
volk_ has joined #ruby
<shevy> url = 'www.google.at'; system 'curl '+url
blackmesa has joined #ruby
<jhass> if you want a libcurl binding there's the curb gem
<havenwood> or patron gem
<asimk> can i run command like this
<asimk> cmd = "curl -s -k --data-binary @" + request_filename + " https://" + host + ":" + xport + " --output " + response_filename + " -u " + userid + ":" + password system(cmd)
saarinen has joined #ruby
<robscormack> or httparty ge... nothing.
Kricir has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 255 seconds]
jerius has quit []
endash has quit [Quit: endash]
maletor has quit [Quit: Computer has gone to sleep.]
<jhass> but you may want to use some higher level abstraction library, like typhoeus, faraday, restclient, httparty and the other dozen I forgot
SilkFox has quit [Ping timeout: 244 seconds]
<havenwood> http and httpclient i like
<shevy> asimk yes
krisquigley has joined #ruby
ihme-TTilus is now known as TTilus
sambao21 has quit [Quit: Computer has gone to sleep.]
<asimk> do you have any sample ruby script with curl command init i can run to get started with
clinicalpain has joined #ruby
clinicalpain has left #ruby [#ruby]
<havenwood> asimk: i'd suggest separating at shellwords with commas, like: system('ls', '-l'), and using interpolation #{} to build your command
<shevy> not me, I dont really use curl much
awc737 has quit [Ping timeout: 245 seconds]
<shevy> when I download something I usually use just wget
<jhass> I only use curl through typhoeus
<jhass> (in ruby)
<havenwood> typhoeus seems quite nice
ascarter has quit [Ping timeout: 255 seconds]
<jhass> the hydra stuff is super fast if you need a ton of requests
volk_ has quit [Quit: volk_]
dangerousdave has joined #ruby
failshel_ has joined #ruby
<havenwood> asimk: i maintain my objection to -k with https :P
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
kenneth has joined #ruby
Tranquility_ is now known as Tranquility
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<eam> -k should be aliased to --its-fine
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
failshell has quit [Ping timeout: 240 seconds]
xkami has joined #ruby
<asimk> havenwoodi would say you are right since i don't know curl and ruby. i just want to start with something very basic and eventually would be running the command i shared. At this point I am not able to use ruby + curl.
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
GriffinHeart has joined #ruby
codecop has quit [Remote host closed the connection]
gtrak has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
failshel_ has quit [Ping timeout: 256 seconds]
m8 has quit [Quit: Sto andando via]
james has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
sambao21 has joined #ruby
james is now known as jamesfordummies
ascarter has joined #ruby
<havenwood> asimk: There are many nice HTTP gems. Here's one: https://github.com/tarcieri/http#get-requests
St_Marx has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
coderhs has quit [Quit: Leaving]
asdasdasdasss has joined #ruby
Wolland has joined #ruby
toastynerd has quit []
<jamesfordummies> havenwood: that is nice. always used open-uri
GriffinHeart has quit [Ping timeout: 250 seconds]
tectonic has quit []
troyready has joined #ruby
<havenwood> asimk: Try fetching your resource with HTTP#get then writing to File with File#write
jottr has joined #ruby
<asimk> do i need to install http client first? Thats is: $ gem install http
crudson has joined #ruby
<havenwood> asimk: yup, and in your file: require 'http'
<havenwood> jamesfordummies: yeah, it has a nice interface i think!
Wolland has quit [Ping timeout: 250 seconds]
bronson has quit [Quit: bronson]
<jamesfordummies> also more aptly namaed
<jamesfordummies> named*
<havenwood> jamesfordummies: HTTPClient is also a nice pure Ruby option (HTTP is based on C or Java ext libs). Or RestClient and Mechanize are good alternative Net::HTTP wrappers to open-uri.
<jamesfordummies> yeah i've used RestClient, wasn't a big fan of the syntax
<havenwood> mm
jottr has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
x1337807x has joined #ruby
bronson has joined #ruby
ki0 has quit [Remote host closed the connection]
lw has quit [Quit: s]
crudson has quit [Quit: q term]
iamayam has quit [Remote host closed the connection]
iceden has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
aspires has quit []
cmarques has quit []
gtrak has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
crdpink has joined #ruby
baroquebobcat has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
icarus has quit [Remote host closed the connection]
Ch0c0late has quit [Ping timeout: 256 seconds]
<asimk> To install i use (gem install httpclient) at the Ruby200\bin> and gets this error: ERROR Could not find a valid gem httpclient ()=0 in any repositry
Sid05 has quit [Quit: Sid05]
aspires has joined #ruby
<bricker`work> asimk: type "gem sources", what does it return?
Spami has quit [Ping timeout: 250 seconds]
whomp has quit [Quit: leaving]
b00stfr31k has quit [Quit: leaving]
b00stfr31k has joined #ruby
b00stfr31k has quit [Client Quit]
saarinen has quit [Quit: saarinen]
amargherio has quit [Read error: Connection reset by peer]
<asimk> nice i got it installed
Spami has joined #ruby
<asimk> this guy worked: gem install D:\2-Ruby200\lib\httpclient-2.4.0.gem
kirun has quit [Quit: Client exiting]
jdj_dk has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister_ has joined #ruby
Neomex has quit [Quit: Leaving]
banister has quit [Ping timeout: 240 seconds]
Sie00 has joined #ruby
volk_ has joined #ruby
<shevy> this guy?
SilkFox_ has joined #ruby
<slash_nick> D: <-- this guy?
j_mcnall_ has joined #ruby
<asimk> i mean the command
yfeldblum has joined #ruby
j_mcnall_ is now known as j_mcnally
nowthatsamatt has quit [Quit: nowthatsamatt]
ghr has joined #ruby
volk_ has quit [Client Quit]
lw has joined #ruby
jottr has joined #ruby
kldskp has quit [Quit: Computer has gone to sleep.]
Hobogrammer has quit [Quit: WeeChat 0.4.3]
diegoviola has quit [Quit: WeeChat 0.4.3]
iceden has joined #ruby
Petru has joined #ruby
Zebroid has joined #ruby
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
SilkFox_ has quit [Ping timeout: 240 seconds]
johnmolina has quit []
axsuul has joined #ruby
Hobogrammer has joined #ruby
axsuul has quit [Max SendQ exceeded]
dopiee has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
fella6s has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Beoran_ has quit [Ping timeout: 255 seconds]
dopiee has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
lw has quit [Client Quit]
Guest17569 has quit [Read error: Connection reset by peer]
DivineEntity has joined #ruby
EvanR has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
oso|away has quit [Ping timeout: 255 seconds]
<asimk> havenwood - httpclient is now installed. I got this http post of internet: (HTTP.post "http://example.com/resource", :form => {:foo => "42"}) do i run it. under the bin folder in command promt
EvanR is now known as Guest90226
byteddown has quit [Read error: Connection reset by peer]
byteddown has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
Xiti` has quit [Client Quit]
axsuul has joined #ruby
oso|away has joined #ruby
fella5s has quit [Ping timeout: 250 seconds]
oso|away is now known as oso96_2000
linduxed has quit [Ping timeout: 245 seconds]
waltz has quit [Ping timeout: 245 seconds]
Xiti has quit [Ping timeout: 250 seconds]
Xiti` has joined #ruby
snath has quit [Ping timeout: 245 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
haroldwu has quit [Ping timeout: 245 seconds]
paul_k has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
Kricir has joined #ruby
sweeper has quit [Ping timeout: 245 seconds]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haroldwu has joined #ruby
waltz has joined #ruby
dblessing has quit [Quit: dblessing]
sweeper has joined #ruby
gr33n7007h has joined #ruby
Dr3amc0d3r|away has joined #ruby
snath has joined #ruby
b00stfr3ak has joined #ruby
MatthewsFace has joined #ruby
krisquigley has quit [Remote host closed the connection]
havenwood has quit []
paul_k has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
mattstratton has joined #ruby
larissa has joined #ruby
mattstratton has quit [Max SendQ exceeded]
boom has joined #ruby
zoo-zed has joined #ruby
Spami has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
mattstratton has joined #ruby
Ilyas_ has quit [Read error: Connection reset by peer]
boom has quit [Client Quit]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asimk has quit [Ping timeout: 246 seconds]
boomstack has joined #ruby
threesixes has joined #ruby
boomstack has quit [Client Quit]
mgomezch has joined #ruby
felgenh3 has quit [Quit: felgenh3]
boombadaroomba has joined #ruby
Kricir has quit [Remote host closed the connection]
mgomezch has left #ruby [#ruby]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
makerop has quit [Remote host closed the connection]
Beoran has joined #ruby
axl_ has quit [Quit: axl_]
hector__ has joined #ruby
JoshGlzBrk has joined #ruby
Dreamer3 has joined #ruby
ndrei has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 264 seconds]
Sgeo has joined #ruby
ziprar has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
brianherman has quit [Quit: Leaving]
j_mcnally has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
qwyeth has quit [Remote host closed the connection]
kldskp has joined #ruby
Kricir has quit [Remote host closed the connection]
<matchaw> hey, does anyone know of something like rubocop (https://github.com/bbatsov/rubocop) but for testing against 1.8.7 ?
tjr9898_ has quit [Remote host closed the connection]
robscormack has quit [Quit: Leaving]
Zebroid has joined #ruby
<ch077179> how can I do something like puts "#{property.Name} : objArray.#{property.Name}" ?
<ch077179> puts "#{property.Name} : #{objArray.#{property.Name}}" actually
Petru has quit [Quit: Leaving]
kldskp has quit [Ping timeout: 255 seconds]
<ch077179> puts "#{property.Name} : #{element.#{property.Name}}" really...
<ch077179> i.e. how can I evaluate a string in a method or property call?
<momomomomo> what are you trying to do ch077179
<ch077179> evaluate a string in a method or property call
nfk has joined #ruby
Spami has joined #ruby
<ch077179> when looping over a set of properties
<momomomomo> objArray.send(property.name.to_sym)
<momomomomo> >> 1.send(:to_s)
<eval-in> momomomomo => "1" (https://eval.in/175823)
<momomomomo> "one".send(:to_sym)
<momomomomo> >> "one".send(:to_sym)
<eval-in> momomomomo => :one (https://eval.in/175824)
livingstn has joined #ruby
Bumptious has joined #ruby
jdj_dk has joined #ruby
momomomomo has quit [Quit: momomomomo]
testcore has joined #ruby
<ch077179> very cool
sambao21 has joined #ruby
<ch077179> thanks momomomomo
afhammad has joined #ruby
Bumptiou_ has joined #ruby
arya_ has joined #ruby
ki0 has joined #ruby
damien has joined #ruby
<damien> greetings!
<damien> hey has anyone ever run into trouble with multiline strings and having whitespace after the last heredoc delimiter?
Sawbones has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
sputnik13 has joined #ruby
rebelshrug has joined #ruby
nowthatsamatt has joined #ruby
ki0 has quit [Ping timeout: 260 seconds]
iamayam has joined #ruby
britneywright has joined #ruby
<samb1> I've got issues..... trying to install and run rails but the server won't run... I try to update all the gems or make pristine but there seems to be a cyclical problem where I have to uninstall and reinstall them but if uninstall essential ones like psych then ruby stops working
ki0 has joined #ruby
justinv_ has quit [Remote host closed the connection]
<zenspider> "won't run" == "nobody can help you"
<eam> samb1: there is probably some way you can better describe "won't run" as in specific observations, error codes, logs, etc
nowthatsamatt has quit [Client Quit]
<eam> you probably also want to try the ruby on rails irc channel
sambao21 has quit [Quit: Computer has gone to sleep.]
<samb1> ok.. well, this happens: http://pastebin.com/3geKNzRQ
mikepack has joined #ruby
<samb1> some path issue, then I run gem pristine --all
xkami has quit [Quit: The quieter you become the more you are able to hear]
yfeldblum has quit [Remote host closed the connection]
sambao21 has joined #ruby
yfeldblum has joined #ruby
<samb1> then lots of stuff like this happens: http://pastebin.com/tSmeUm33
Shidash has quit [Quit: Leaving.]
<samb1> i.e I install something, I do gem pristine --all but it doesn't even see it as being there
phoo1234567 has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 240 seconds]
<samb1> seems to do the same thing on both fedora20 and ubuntu (think it's 13)
<shevy> without looking at the docs
<shevy> who knows how .allocate() works
yfeldblum has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
<zenspider> roughly, sure
bricker`work has quit [Read error: Connection reset by peer]
echooo has joined #ruby
bricker`work has joined #ruby
jdj_dk has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
ghr has joined #ruby
<shevy> :(
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> you know too much zenspider, you may not participate in the ruby quizzes
<zenspider> heh. k
wallerdev has joined #ruby
<zenspider> I'll go back to my slides
snath has quit [Ping timeout: 240 seconds]
lw has joined #ruby
<shevy> hehe
SilkFox_ has quit [Ping timeout: 244 seconds]
<eam> I'm looking at the docs and I still don't know what this is for
<shevy> according to the pickaxe "Calling new is basically the same as calling the class method allocate to create an object, following by calling initialize on that object."
<shevy> they show one nice example
<shevy> class Test
<shevy> def self.another_new(*i)
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> o = allocate # I like this line in particular
<shevy> o.send :initialize, *i
<shevy> o
<shevy> end
mary5030_ has joined #ruby
<shevy> and then they setup initialize too
<zenspider> yup, that's about right
yoshie902a has joined #ruby
<shevy> eam that's what I liked about the pickaxe, there were examples for almost all methods
justinv has joined #ruby
<shevy> though the appendix is then kinda larger than the rest of the book :\
<eam> I can't allocate a Fixnum
<zenspider> you can't allocate a fixnum
<yoshie902a> quick question, I want to load some data from a YML file, but I want to load an array into a field. Can YML files handle arrays and hashes?
* eam tantrums
<zenspider> fixnum is built into the object pointer itself
lw has quit [Client Quit]
ghr has quit [Ping timeout: 255 seconds]
<shevy> yoshie902a yes
<shevy> yoshie902a you can also designate special ruby objects in yaml too
<eam> I wonder how hard it is to change the class of an object
<shevy> - !ruby/symbol tools
<zenspider> eam: I have a gem for that.... I don't recommend it
<lectrick> eam: very very very very hard.
<shevy> this would be :tools in ruby code yoshie902a
<yoshie902a> shevy: is there any special syntax, do you know any tutorials that cover it? and THANK YOU!
<shevy> yoshie902a well
<eam> can it be done from ruby or do you need to reach into rb internals?
<shevy> yoshie902a all is special in yaml... - should be for array, I don't remember offhand
<shevy> - and : - for array, : for hashes or rather key: value pairs
mary5030 has quit [Ping timeout: 264 seconds]
devoknievo_ has joined #ruby
<shevy> yoshie902a there is a good website for that
<DreamingRainne> Read up about YAML. Arrays and hashes are basic data structures.
<eam> zenspider: link to gem?
<shevy> yoshie902a oh yes, here it is http://www.yaml.org/YAML_for_ruby.html - scroll down a bit, you will find lots of examples
<zenspider> eam: change_class iirc
<eam> rad thx
<zenspider> again... not a good idea
<eam> yeah I imagine
<zenspider> but... have fun
<shevy> eam you know C as well?
<eam> sure
<DreamingRainne> It's easy to work with in IRC. Like, you export a Hash and it becomes a YAML hash, and vice versa. When exporting, even equivalent references are exported as YAML references, so if you have, say, an Array with several references to the same big object, the big object is only exported fully once, and the others are done with references.
<yoshie902a> shevy: great, thanks
<DreamingRainne> All automatically.
atraylen has quit [Ping timeout: 255 seconds]
devoknievo has quit [Ping timeout: 264 seconds]
tlr_464 has joined #ruby
<yoshie902a> DreamingRainne: thanks!
jayunit100 has quit [Quit: jayunit100]
ptrrr has joined #ruby
<eam> ruby's c interface and ffi are way way better than most languages, probably my favorite thing aside from how perl-like ruby is
arya_ has quit [Ping timeout: 260 seconds]
<shevy> yet you still don't love the ruby parser
coldkey21 has quit [Remote host closed the connection]
<eam> shevy: I stumbled across this today https://twitter.com/PLT_Zizek/status/193389385960534018
<shevy> hahaha
<shevy> that one is actually awesome
Sawbones has quit [Remote host closed the connection]
Sid05 has joined #ruby
<shevy> isn't the perl parser pretty awful as well?
<eam> 1.5kloc
<shevy> wow
Sawbones has joined #ruby
EasyCo has joined #ruby
<shevy> so now there is one area where ruby is the biggest
<eam> ruby's bigger in a lot of ways, memory use for example
Matadoer has quit [Remote host closed the connection]
* eam rimshot
geggam has quit [Quit: Leaving]
<DreamingRainne> Ruby's C implementation uses a lot of lines of code, so you (using Ruby itself) don't have to!
Matadoer has joined #ruby
axl_ has joined #ruby
<eam> I'd be happier with ruby if it removed 90% of the parser and had a more simple syntax
<wallerdev> i think ruby's syntax is pretty good
jrhe has quit [Quit: Connection closed for inactivity]
<wallerdev> sometimes run into gotchas with parens vs no parens
<DreamingRainne> What's unsimple about it?
<eam> really don't like the whitespace sensitivity
<eam> >> [not true]
<eval-in> eam => /tmp/execpad-953d39d6a70a/source-953d39d6a70a:2: syntax error, unexpected keyword_true, expecting '(' ... (https://eval.in/175825)
b00stfr3ak has quit [Ping timeout: 255 seconds]
<wallerdev> ? lol
<eam> >> % %%%%%%% %%%% % %%%%% %%%% # %'s
<eval-in> eam => "%" (https://eval.in/175826)
<DreamingRainne> >> not true
<eval-in> DreamingRainne => false (https://eval.in/175827)
echooo has quit [Quit: echooo]
<DreamingRainne> >> [!true]
<eval-in> DreamingRainne => [false] (https://eval.in/175828)
<wallerdev> >> [(not true)]
<eval-in> wallerdev => [false] (https://eval.in/175829)
<eam> >> [ not (true) ]
<eval-in> eam => /tmp/execpad-5a7da34da4e8/source-5a7da34da4e8:2: syntax error, unexpected ( arg, expecting '(' ... (https://eval.in/175830)
<DreamingRainne> I'm guessing 'not' is meant to be used in logical expressions, like 'if'. Still, interesting.
<eam> >> [ not(true) ]
<eval-in> eam => [false] (https://eval.in/175831)
Sawbones has quit [Ping timeout: 245 seconds]
<wallerdev> >> [false]
<eval-in> wallerdev => [false] (https://eval.in/175832)
<DreamingRainne> >> [not false]
<eval-in> DreamingRainne => /tmp/execpad-5b6eba24b80f/source-5b6eba24b80f:2: syntax error, unexpected keyword_false, expecting '(' ... (https://eval.in/175833)
<wallerdev> is that so hard to write
<wallerdev> lol
<eam> >> def f(x); x end; f(true and false)
<eval-in> eam => /tmp/execpad-82cbe1ef13a4/source-82cbe1ef13a4:2: syntax error, unexpected keyword_and, expecting ')' ... (https://eval.in/175834)
Zebroid has quit [Remote host closed the connection]
<eam> >> def f(x); x end; f (true and false)
<eval-in> eam => false (https://eval.in/175835)
<DreamingRainne> >> a=true; [not a]
<eval-in> DreamingRainne => /tmp/execpad-6cecf5312f65/source-6cecf5312f65:2: syntax error, unexpected tIDENTIFIER, expecting '(' ... (https://eval.in/175836)
b00stfr3ak has joined #ruby
<eam> >> 5.6 /% 7.8 .to_i/0
<eval-in> eam => Infinity (https://eval.in/175837)
rebelshrug has quit [Quit: Textual IRC Client: www.textualapp.com]
jhass is now known as jhass|off
* DreamingRainne puzzles out the %%%%%% one.
<eam> >> "#{%}#{%}#{%}#{%}#{%} }}}}}}}}}}"
<eval-in> eam => " " (https://eval.in/175838)
<DreamingRainne> >> % lol % ""
<eval-in> DreamingRainne => "lol" (https://eval.in/175839)
jdj_dk has joined #ruby
Squarepy has quit [Quit: Leaving]
<shevy> what is happening here
<wallerdev> >> [!!!!!!!!!!!!!'''''''''''''''']
<eval-in> wallerdev => /tmp/execpad-2b0e8492ccb0/source-2b0e8492ccb0:2: warning: string literal in condition ... (https://eval.in/175840)
<wallerdev> warnings pls
ptrrr has quit [Quit: ptrrr]
<shevy> eam what part of the syntax would you sacrifice though?
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
<eam> shevy: ; as line delimiter, method(parens) mandatory
<eam> INSTANT simplification, and easier to read syntax to boot
jimms has quit []
<eam> I'd throw in variable declaration while I was at it
<wallerdev> requireing parens would kill ruby
<DreamingRainne> ; as line delimiter is very handy for one-liners. Note that it's not a line terminator, just a separator; you don't need it on every line C-style.
<wallerdev> just like it killed python
jmeeuwen has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
snath has joined #ruby
<eam> DreamingRainne: without ; there are weird whitespace ambiguities in ruby
<wallerdev> python 3 is like hey lets make it so you have to type print("blah") instead of print "blah"
<DreamingRainne> Parentheses *aren't* mandatory; just, advised, and useful when things get tricky, but for simple one-argument calls with nothing around it, you don't need them. (Things like [not true] notwithstanding, apparently.)
<wallerdev> and now everyone hates python cuz it just makes things like that harder to read
<wallerdev> and breaks all their old code
Spami has quit [Read error: No route to host]
<mozzarella> lol?
<eam> DreamingRainne: added bonus, which instance of "-" is a method in that example, and which isn't?
<wallerdev> it's true
Wolland_ has joined #ruby
<DreamingRainne> Well, the lesson here is to put linebreaks after operators, not before. No problem.
<eam> DreamingRainne: yah if only all syntax pitfalls could be solved by just saying "don't do that"
<eam> if they could be, all languages would be equal
<DreamingRainne> The "4 - 5" is a method call; the b.rb just does "puts 4" then creates the literal -5 and does nothing with it.
<mozzarella> what killed python is the stupid 2.5 / 3 split
Zebroid has joined #ruby
<eam> DreamingRainne: not a method for unary minus?
<wallerdev> the split happened because they made a bunch of breaking changes that no one cared about, like the print issue
<DreamingRainne> Would you rather have to put ; at the end of every line, C style?
<eam> DreamingRainne: yes I really would
<eam> I love the semicolon
<eam> at least ruby tolerates it, sigh
<wallerdev> theres no point to semicolons
mikecmpbll has quit [Quit: i've nodded off.]
<eam> sure there is, clearing up ambiguity
<DreamingRainne> So... mandatory parentheses, you dislike that. Mandatory semicolons, you like that?
<DreamingRainne> Make up your mind.
<wallerdev> only use is on irc
<eam> DreamingRainne: no I like both
<benzrf> you're nuts
<eam> mandatory missing parens is fine too
<wallerdev> just go program in java or c# lol
<eam> as long as it can be made unambiguous
<wallerdev> the problem is it cant be made unambiguous with missing parens
Wolland has quit [Ping timeout: 240 seconds]
<eam> but even with parens it's bonkers
charliesome has joined #ruby
coldkey21 has joined #ruby
<DreamingRainne> One thing I wouldn't complain about is Python-style significant indentation (as long as it doesn't have ":" leading into a block, which are superfluous anyway); removing the need for a leaning tower of "end;end;end;end" after a deep loop or something. Hehe.
kldskp has joined #ruby
<wallerdev> i hate indentation that is significant
<wallerdev> especially if youre doing quick testing of things, copying and pasting code together in a hacky way just to see if you can get something working
<DreamingRainne> But, with all the "end"s needed, it still makes a visual difference between "I'm not done with this yet" and "I'm done with this but left the 'end's off to reduce clutter".
toretore has quit [Quit: This computer has gone to sleep]
<wallerdev> python just makes it more difficult that you have to reformat all this code you copied just to test your script and find out its not the code you wanted anyway
<eam> >> def f(x); x; end; f((not true))
<eval-in> eam => false (https://eval.in/175841)
<eam> >> def f(x); x; end; f(not true)
<eval-in> eam => /tmp/execpad-e48354f09c38/source-e48354f09c38:2: syntax error, unexpected keyword_true, expecting '(' ... (https://eval.in/175842)
Ankhers has joined #ruby
jamesfordummies has quit [Remote host closed the connection]
<eam> at least method parens should imply normal parens
<eam> I think that's actually fixable, but I don't know how
Vivekananda_y510 has quit [Remote host closed the connection]
<wallerdev> welll i mean
<wallerdev> >> x = not true
<eval-in> wallerdev => /tmp/execpad-04f47f9cdfac/source-04f47f9cdfac:2: syntax error, unexpected keyword_true, expecting '(' (https://eval.in/175843)
<eam> >> x = (not true)
<eval-in> eam => false (https://eval.in/175844)
<DreamingRainne> >> not true == true
<eval-in> DreamingRainne => false (https://eval.in/175845)
mijicd has quit [Quit: leaving]
<DreamingRainne> >> not false == false
<eval-in> DreamingRainne => false (https://eval.in/175846)
Spami has joined #ruby
<eam> >> true == not true
<eval-in> eam => /tmp/execpad-f9e492f5ee69/source-f9e492f5ee69:2: syntax error, unexpected keyword_true, expecting '(' (https://eval.in/175847)
<eam> it only works LHS
<DreamingRainne> Looks like "not X" binds more tightly than "X == X".
<eam> and more tightly than method parens
<DreamingRainne> Er, nm, it'd be the same either way.
<DreamingRainne> "(not false) == false" becomes "true == false" which is false. <or> "not (false == false)" becomes "not true" which is false.
b00stfr3ak has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
nanoyak has quit [Quit: Computer has gone to sleep.]
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> the parser knows how to nagivate it
<DreamingRainne> And now 'true' and 'false' have stopped sounding like words! x_x
kldskp has quit [Ping timeout: 244 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> there are a ton of reduce/reduce and shift/reduce conflicts in parse.y
<DreamingRainne> >> not 5
<eval-in> DreamingRainne => false (https://eval.in/175848)
nanoyak has joined #ruby
<DreamingRainne> Aha. == binds more tightly:
<DreamingRainne> >> not nil == false
<eval-in> DreamingRainne => true (https://eval.in/175849)
<DreamingRainne> >> [nil == false, not nil]
<eval-in> DreamingRainne => /tmp/execpad-668db5a5a7ba/source-668db5a5a7ba:2: syntax error, unexpected keyword_nil, expecting '(' ... (https://eval.in/175850)
Lwhite has joined #ruby
icebourg has quit []
<DreamingRainne> Argh. Point taken with that one.
<DreamingRainne> >> [nil == false, not(nil)]
<eval-in> DreamingRainne => [false, true] (https://eval.in/175851)
<DreamingRainne> So it's doing "not (nil == false)" becoming "not false" and true. If it were the other way: "(not nil) == false" becomes "true == false" which should be false.
<eam> ah that makes sense why that gets past the parser
<wallerdev> luckily literally 0 of these scenarios come up i n actual coding
<wallerdev> lol
<DreamingRainne> Which makes sense, 'not' not binding too tightly, since it's usually used in expressions like if herp == derp and not lol == wut
<eam> generally it can't handle those keywords in expressions
mary5030_ has quit [Remote host closed the connection]
theharshest has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
b00stfr3ak has joined #ruby
<DreamingRainne> >> [not static_cast<bool>(true)]
<eval-in> DreamingRainne => /tmp/execpad-2f147933a2c2/source-2f147933a2c2:2: syntax error, unexpected tIDENTIFIER, expecting '(' ... (https://eval.in/175852)
<DreamingRainne> Hehe.
<eam> while I am griping, I would switch fully to pcre
Zebroid has quit [Remote host closed the connection]
<eam> and that is why I can never be elected king of any language
<wallerdev> as long as you dont make regex strings
<wallerdev> literal regex syntax is where its at
<eam> oh sure, but perl's had that forever
tjr9898 has joined #ruby
<wallerdev> not using a string format where you have to escape every single slash haha
jdj_dk has quit [Ping timeout: 244 seconds]
<eam> oh and I wish I could str =~ s///
<eam> gsub sucks
<wallerdev> gsub is pretty good actually
<wallerdev> you can do like
<DreamingRainne> You mean, str.=~(s///);
<wallerdev> >> "cat".gsub(/./) { |s| s.succ }
<eval-in> wallerdev => "dbu" (https://eval.in/175854)
<wallerdev> how could is that
theharshest has joined #ruby
<wallerdev> how cool*
<DreamingRainne> >> "cat".gsub(/./, &:succ)
<eval-in> DreamingRainne => "dbu" (https://eval.in/175855)
<wallerdev> blocks to gsub is super useful
dorei has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 250 seconds]
<wallerdev> like common interview question, reverse all words in a string
<eam> wallerdev: "cat" =~ s/./chr(ord($&) + 1)/e
Wolland has joined #ruby
<wallerdev> "wow so cool".gsub(/\w+/) { |s| s.reverse }
<eam> same ting
<DreamingRainne> gsub /\w+/, &:reverse
<DreamingRainne> yep.
robbyoconnor has joined #ruby
<eam> wallerdev: "cat" =~ s/\w+/reverse $&/e
<wallerdev> no one likes perl
<eam> :(
<wallerdev> lol
<DreamingRainne> Code in strings? :<
<czaks> /e
skysploit has joined #ruby
<eam> s/pattern/handle($&)/ge
<wallerdev> one thing thats kinda cool is in groovy
<DreamingRainne> Ruby's gsub reads like "take this and do this with it" while s/herp/derp/e reads like "replace this with this code".
<wallerdev> instead of saying a block parameter like { |abc| abc + 1 } you can write { it + 1 }
<eam> oh I have one other gripe about ruby syntax: I really don't like stabby lambda, proc and all the other weirdness
<wallerdev> and it is an inferred block parameter
Hobogrammer has quit [Ping timeout: 240 seconds]
<eam> x = def(x) end
nanoyak has quit [Quit: Computer has gone to sleep.]
cashnguns has joined #ruby
nanoyak has joined #ruby
Wolland_ has quit [Ping timeout: 244 seconds]
<DreamingRainne> And the &:method syntax is a nice trick when what you want to do with 'it' is call some method on it without args. Standard Ruby too, not a spinoff.
blackmesa has quit [Ping timeout: 264 seconds]
<wallerdev> yeah a bit less flexible though
<DreamingRainne> That 'it' sounds nice, though.
<wallerdev> symbol to proc came from rails
nanoyak has quit [Client Quit]
yoshie902a has left #ruby [#ruby]
<eam> oh you're going to hate this idea but I'd switch to reference counting
<DreamingRainne> Maybe make Ruby use implicit parameters more often? It does have $_ stuff from Perl, but they're not used much. Perl-style stuff like "print for @derp" can be pretty neat.
<wallerdev> arc?
<eam> we'd have destructors
<wallerdev> or manual reference counting
<wallerdev> lol
<DreamingRainne> Rather than ".each &:print" or whatnot.
<eam> an object would destruct when exiting scope (we'd have real scope!)
Hobogrammer has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00stfr3ak has quit [Ping timeout: 240 seconds]
<wallerdev> what about circular references
justinv has quit [Remote host closed the connection]
<eam> people putting naughty stuff in ruby finalizers is my kryptonite
<eam> wallerdev: don't even care, man up
<wallerdev> lol
MatthewsFace has quit [Quit: Leaving]
Takle has joined #ruby