jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
rew has quit [Quit: WeeChat 1.2]
uglybandersnatch has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
B4daBing73 has quit [Quit: Leaving]
myntcake has quit [Quit: Leaving]
godzillaenlacasa has quit [Quit: ZZZZZ....]
idefine has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 248 seconds]
antgel has quit [Ping timeout: 248 seconds]
nettoweb has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
TeresaP has quit [Ping timeout: 252 seconds]
spider-mario has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 276 seconds]
justbleed has joined #ruby
trosborn has quit [Quit: trosborn]
deuxclique has quit [Remote host closed the connection]
allcentury has joined #ruby
<Synthead> if I do "if /that/.match(whatever) ... some code ... end", is there a way I can "get" the value returned in the if statement?
<Ox0dea> Synthead: It's in $~.
<Ox0dea> Which, if you require 'English', can be accessed as $MATCH_DATA.
<Ox0dea> Or you could just say `if foo = //.match(bar)` and use `foo` in the body.
<Synthead> I was kinda thinking that
<Synthead> more readable
Brando753 has quit [Ping timeout: 248 seconds]
barajasfab has quit [Quit: Leaving]
KensoDev has quit [Quit: Textual IRC Client: www.textualapp.com]
<Synthead> Ox0dea: thanks for the help!
<Ox0dea> Synthead: Sure thing. :)
duckpuppy has joined #ruby
trosborn has joined #ruby
despai has joined #ruby
Brando753 has joined #ruby
rcvalle has quit [Quit: rcvalle]
idefine has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
toretore has joined #ruby
idefine has quit [Ping timeout: 248 seconds]
<Synthead> is there a way to make awesome_print always print color (even a script is when piped to less)
<Synthead> s/when //
<Synthead> bleh, well, you know
* Synthead files a bug for mental race condition
Dimik has quit [Ping timeout: 276 seconds]
trosborn has quit [Quit: trosborn]
Snowy has quit [Quit: ragequit]
jeanlinux has quit [Remote host closed the connection]
<idletask> Synthead: have you tried and less -r?
jeanlinux has joined #ruby
amargherio has joined #ruby
<idletask> Or -R
<Synthead> idletask: awesome_print doesn't print in color when the output isn't stdout I think
<idletask> Ah
<Synthead> idletask: yeah I don't see any escape sequences or anything
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<idletask> In this case, uh
<ytti> set 'force_colors'
<ytti> (never heard of awesome_print before, so it was considerable effort!)
ellen_ has joined #ruby
<Ox0dea> Line 14's the important one, I would think.
<ytti> doesn't matter
<ytti> there is also accessor
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
<ytti> so object.force_colours = true
<ytti> so object.force_colours!
<ytti> do the same
baweaver has quit [Remote host closed the connection]
<Ox0dea> I know which one I like more.
<ytti> i'd like to think accessor is more readable, but debatable
<Synthead> hmmm
<Synthead> usually you call it via ap(your_object)
jeanlinux has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
stannard has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<idletask> Trying to figure out the code... I can't :(
<ytti> Synthead, try AwesomePrint.force_colors = true
<idletask> I am sure that the '!' has a meaning in force_colors!(value = true)
<ytti> nothing, it's just method name
<Synthead> ytti: yeah! there we go!
<ytti> idiomatic use is to indicate that it modifies the object in-place
<Synthead> thanks all!
n008f4g_ has quit [Ping timeout: 260 seconds]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti> Synthead, answer to next question, less -R
<Synthead> ytti: oh I already knew that :)
<Synthead> ;)
<ytti> \o/
<idletask> ytti: do I take it that a question mark at the end of a method (is that a method?) indicates that this returns a boolean?
trabulmonkee has quit [Quit: Connection closed for inactivity]
<ytti> idletask, yeah
<ytti> justbleed, also purely convention, just normal name factually
<ytti> s/justbleed/idletask/
Rodya_ has joined #ruby
<ytti> = is also just method name
<idletask> I saw "defined?" a few times already
stannard has quit [Ping timeout: 244 seconds]
amargherio has quit [Remote host closed the connection]
idefine has joined #ruby
<idletask> And it doesn't really return a boolean
<Ox0dea> That's not a method.
<idletask> nil or... Uhm
Coral has joined #ruby
<Ox0dea> It's actually part of the syntax; it's a keyword.
<Ox0dea> It has to be "special" to do what it does, of course.
Coral is now known as Guest7129
ur5us has quit [Remote host closed the connection]
KensoDev has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<idletask> Looks like parsing ruby will be just as challenging as I imagined :p
<Ox0dea> How come you don't want to use one of the established parsers?
agent_white has quit [Quit: bbl]
<Synthead> idletask: a fun way to cast to boolean is !!value
<idletask> Because none of them will work with SonarQube
<idletask> What is more, it's a good opportunity to eat my own dog's food yet again
SenpaiSilver has quit [Ping timeout: 244 seconds]
<Synthead> idletask: !value is the boolean antonym of value, (i.e. a = 1; !a === false), and !! is the antonym of the antonym (i.e. a = 1; !!a === true)
dcunit3d has joined #ruby
nogic has joined #ruby
<Ox0dea> Synthead: That's a confusing use of `===`.
yatish27 has joined #ruby
nogic has quit [Max SendQ exceeded]
<Synthead> Ox0dea: well, it's just a vessel to explain that true is true
<Synthead> :)
<idletask> Recall: I come from statically typed languages
Rodya_ has quit [Remote host closed the connection]
<Ox0dea> Synthead: Ruby's === is not JavaScript's.
<idletask> I have yet to figure out most parts of Ruby
Vile` has joined #ruby
nogic has joined #ruby
<Synthead> ah, yeah
<Synthead> well you know what I mean
nogic has quit [Max SendQ exceeded]
<Ox0dea> I got lucky this time.
<Synthead> !!youre_right
Tharbakim has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 248 seconds]
nogic has joined #ruby
sp4rrow has joined #ruby
Rodya_ has joined #ruby
<idletask> The fact that you can even write 128.times has yet to fully penetrate my thick, statically typed skull :p
<ytti> i don't think that implies dynamic typing
<ytti> only implication is that integers are actually objects
eregi has quit [Ping timeout: 240 seconds]
nettoweb has quit [Ping timeout: 244 seconds]
mondok has quit [Ping timeout: 240 seconds]
<ytti> stuff like this implies dynamic typing
<ytti> [1] pry(main)> def moi(k);k+k;end
<ytti> => :moi
<ytti> [2] pry(main)> moi(1);moi("k")
<ytti> => "kk"
DLSteve has joined #ruby
saneax is now known as saneax_AFK
Rodya_ has quit [Remote host closed the connection]
<ytti> which i don't think is that useful at all
Rodya_ has joined #ruby
<idletask> ytti: I have only worked with languages for which 128 and "friends" were primitives; so...
Uber|Dragon has joined #ruby
nogic has quit [Ping timeout: 246 seconds]
<idletask> In Java by the way that would be IntStream.range(0, 128) to return an IntStream and operate on that :p
<ytti> quite, but you could make static language where 128.times is possible
charliesome has joined #ruby
<idletask> Well, I'll come to parse it eventually
<idletask> I _do_ parse ObjectScript after all
<idletask> So Ruby shouldn't be a problem
LoneHerm_ has joined #ruby
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
<Ox0dea> Ah, we've been using different definitions of "parse".
<Ox0dea> I thought you meant with a computer, but you've been talking about your eyes. :P
Guest5732 is now known as James
James is now known as Guest84697
blackmesa has quit [Ping timeout: 244 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
stannard has joined #ruby
<idletask> I parse it with a computer... I have an entire SonarQube plugin for ObjectScript
<idletask> Now I want to do it for Ruby
idefine has joined #ruby
kirillzh has joined #ruby
<ytti> i thought computer too
<ytti> and you would be right
<idletask> And I need to understand the language to parse and tokenize it correcctly
<ytti> parsing ruby isn't SUPER trivial
<ytti> well at least say compared to python
<ytti> but i'll still write program in ruby any day before python
<idletask> Well, that's personal but I dislike python
pawnbox has quit [Ping timeout: 244 seconds]
<ytti> i don't really dislike it, not like php
LoneHerm_ has quit [Ping timeout: 252 seconds]
<ytti> but if i can choose, i'll always choose ruby
<ytti> just feels more productive, more consistent
astrobun_ has joined #ruby
y2mq37 has joined #ruby
<idletask> :p
jgpawletko has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
idefine has quit [Ping timeout: 240 seconds]
<ytti> that needs to have new and interesting stuff :>
<ytti> like elixir, rust, nim, crystal
<idletask> rust I've heard of
<idletask> But anyway; my goal right now is ruby
<idletask> If I can parse a minimal set of it and do meaningful checks, that'll be a start
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<idletask> Like, "avoid using p/pp if not needed" for instance
nogic has joined #ruby
johnmilton has joined #ruby
wolffles has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
zenspider has quit [Quit: bye]
tim_s007 has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 268 seconds]
nettoweb has joined #ruby
x77686d has joined #ruby
dopamean1 has joined #ruby
nettoweb has quit [Max SendQ exceeded]
haylon_ has quit [Read error: Connection reset by peer]
zenspider has joined #ruby
<idletask> Well, the net result is that I'll spam this channel with "newby" questions for some time :p
benlieb has quit [Quit: benlieb]
nogic has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
nettoweb has joined #ruby
nogic has joined #ruby
lemur has joined #ruby
nogic has quit [Max SendQ exceeded]
lemur has quit [Remote host closed the connection]
nogic has joined #ruby
youch has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean1 has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 240 seconds]
TomyLobo has quit [Ping timeout: 268 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bronson has quit [Remote host closed the connection]
nertzy2 has quit [Read error: Connection reset by peer]
nogic has quit [Ping timeout: 244 seconds]
babblebre has joined #ruby
PaulCapestany has quit [Quit: .]
nertzy has joined #ruby
mattwildig has joined #ruby
PaulCapestany has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tim_s007 has joined #ruby
johnmilton has quit [Remote host closed the connection]
shanemcd has joined #ruby
dfockler has joined #ruby
shanemcd has quit [Client Quit]
shanemcd has joined #ruby
x77686d has quit [Quit: x77686d]
lvn has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
TheNet has quit [Client Quit]
TheNet_ has joined #ruby
TheNet_ has quit [Remote host closed the connection]
TheNet has joined #ruby
justbleed has joined #ruby
PaulCapestany has quit [Quit: .]
justbleed has quit [Client Quit]
Limix has quit [Quit: Limix]
ledestin has joined #ruby
PaulCapestany has joined #ruby
<havenwood> idletask: <3 Ruby
rmulliga` has joined #ruby
rmulliga` has quit [Remote host closed the connection]
mudge has joined #ruby
BtcBen has quit [Read error: Connection reset by peer]
mudge has left #ruby ["= """]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
bronson has joined #ruby
sneakerhax has quit [Ping timeout: 250 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BtcBen has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p0p0pr37 has joined #ruby
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby
Regulati_ has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
shanemcd has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
dfockler has quit [Ping timeout: 248 seconds]
PaulCapestany has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
yatish27 has quit [Ping timeout: 248 seconds]
rmulliga` has joined #ruby
hannelita has joined #ruby
blackmesa has joined #ruby
rmulliga` has quit [Remote host closed the connection]
passcod has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
passcod has joined #ruby
passcod has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
dcunit3d has quit [Ping timeout: 244 seconds]
passcod has joined #ruby
passcod has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
passcod has joined #ruby
passcod has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
shinnya has quit [Ping timeout: 244 seconds]
Guest84697 is now known as James
James is now known as Guest65195
diego2 has joined #ruby
bronson has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
justbleed has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
devbug has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
dopamean1 has joined #ruby
hxegon has quit [Quit: BRB]
chouhoulis has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
uglybandersnatch has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
diego2 has quit [Quit: WeeChat 1.4]
jenrzzz has joined #ruby
kknight has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
lessless has joined #ruby
Rodya_ has quit [Remote host closed the connection]
sgambino has joined #ruby
Sucks has joined #ruby
Rodya_ has joined #ruby
deuxclique has joined #ruby
youch has quit [Ping timeout: 244 seconds]
shanemcd_ has joined #ruby
shanemcd has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
fullofcaffeine has joined #ruby
deuxclique has quit [Ping timeout: 246 seconds]
jayc0b0 has joined #ruby
deuxclique has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
shanemcd_ has quit [Ping timeout: 240 seconds]
fullofca_ has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
shanemcd has joined #ruby
casadei has quit [Remote host closed the connection]
dopamean1 has quit [Quit: WeeChat 1.3]
sonja has joined #ruby
diegoviola has joined #ruby
spuk has joined #ruby
<sonja> is there a telnet service to a realllly fast cpu that runs ruby?
<sonja> my laptop runs my ruby scripts too slowly
mattwildig has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
shanemcd has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 260 seconds]
deuxcliq_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
allcentury has quit [Quit: WeeChat 1.2]
shanemcd has joined #ruby
Rodya_ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
bronson has joined #ruby
davedev24 has quit []
shanemcd_ has joined #ruby
slackbotgz has joined #ruby
kknight has quit [Quit: Leaving]
deuxclique has quit [Ping timeout: 244 seconds]
deuxclique has joined #ruby
lessless has quit [Read error: Connection reset by peer]
<toretore> Sonja: for what purpose?
deuxcliq_ has quit [Ping timeout: 268 seconds]
Chagel has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<Ox0dea> Gotta go fast.
shanemcd_ has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
hannelita has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 246 seconds]
eregi has quit [Ping timeout: 248 seconds]
Sucks has quit [Ping timeout: 246 seconds]
shanemcd has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
dcunit3d has joined #ruby
jenrzzz has joined #ruby
Azure has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
rmulliga` has joined #ruby
rmulligan has quit [Remote host closed the connection]
shanemcd has joined #ruby
d0nn1e has joined #ruby
ixti has quit [Quit: WeeChat 1.4]
Channel6 has joined #ruby
eregi has joined #ruby
rikai_ is now known as rikai
poguez_ has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
sonja has quit []
RegulationD has joined #ruby
ur5us has joined #ruby
fullofca_ has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
shanemcd has joined #ruby
Jardayn has quit [Quit: Leaving]
htmldrum has quit [Ping timeout: 248 seconds]
ebbflowgo has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
douglascorrea has quit [Remote host closed the connection]
htmldrum has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
ellen_ has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
Muz_ is now known as Muz
blackmesa has joined #ruby
Lucky_ABA has joined #ruby
Guest65195 is now known as James
eregi has quit [Ping timeout: 240 seconds]
James is now known as Guest26286
htmldrum has quit [Ping timeout: 244 seconds]
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd_ has joined #ruby
htmldrum has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
Rodya_ has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Rodya_ has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
shanemcd_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
shanemcd has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
fullofca_ has quit [Ping timeout: 246 seconds]
MyMind has joined #ruby
A124 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Mio-chan has quit [Quit: ZNC - http://znc.in]
Sembei has quit [Ping timeout: 250 seconds]
DmitryBochkarev has joined #ruby
Rodya_ has joined #ruby
nando293921 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
eregi has joined #ruby
darkf has joined #ruby
jayc0b0 has quit [Ping timeout: 260 seconds]
deuxclique has quit [Remote host closed the connection]
jayc0b0 has joined #ruby
baweaver has joined #ruby
M-Technic has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
stannard has joined #ruby
shanemcd has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
shanemcd has quit [Ping timeout: 268 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
wolffles has quit [Quit: wolffles]
baweaver has quit [Ping timeout: 240 seconds]
shanemcd has quit [Read error: Connection reset by peer]
diego2 has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
fpedroso has joined #ruby
Dragooon has joined #ruby
Mio-chan has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
shanemcd has joined #ruby
KensoDev has joined #ruby
mallu has joined #ruby
mallu has quit [Client Quit]
mallu has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
shanemcd has quit [Read error: Connection reset by peer]
jayc0b0_ has joined #ruby
shanemcd has joined #ruby
jayc0b0 has quit [Ping timeout: 268 seconds]
LoneHerm_ has joined #ruby
jayc0b0_ has quit [Read error: Connection reset by peer]
jayc0b0 has joined #ruby
KensoDev has quit [Client Quit]
duckpuppy has joined #ruby
KensoDev has joined #ruby
slackbotgz has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
tonyynot has joined #ruby
x77686d has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
shanemcd_ has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
fpedroso has quit [Quit: Leaving]
UtkarshRay has quit [Remote host closed the connection]
shanemcd_ has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
fpedroso has joined #ruby
fpedroso has quit [Max SendQ exceeded]
dcunit3d has quit [Ping timeout: 248 seconds]
fpedroso has joined #ruby
dcunit3d has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
uglybandersnatch has joined #ruby
fpedroso has quit [Client Quit]
douglascorrea has joined #ruby
fpedroso has joined #ruby
makenoise has joined #ruby
howdoi has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
duckpuppy has quit [Ping timeout: 244 seconds]
Chagel has quit [Ping timeout: 276 seconds]
shanemcd has quit [Remote host closed the connection]
douglascorrea has quit [Ping timeout: 264 seconds]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
Guest26286 is now known as James
eregi has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
DmitryBochkarev has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rmulliga` has quit [Remote host closed the connection]
rmulligan has joined #ruby
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
youch has joined #ruby
braincrash has quit [Quit: bye bye]
pawnbox has quit [Ping timeout: 240 seconds]
rew has joined #ruby
sneakerhax has joined #ruby
mallu has joined #ruby
gix has quit [Ping timeout: 244 seconds]
kirillzh has joined #ruby
pibby has quit [Quit: zzz]
mosheee has quit [Quit: 囧]
moshee has joined #ruby
moshee has joined #ruby
gix has joined #ruby
braincrash has joined #ruby
moshee has quit [Client Quit]
robertcarter has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
chouhoulis has joined #ruby
youch has quit [Ping timeout: 244 seconds]
krz has joined #ruby
robertcarter has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
pdoherty has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mattwildig has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanshenrik has joined #ruby
Outlastsheep has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
hanshenrik has left #ruby ["Leaving"]
Guest54489 has quit [Quit: changing servers]
James851 has joined #ruby
krz has quit [Ping timeout: 260 seconds]
mattwildig has quit [Ping timeout: 250 seconds]
hogetaro has joined #ruby
Rodya_ has quit [Ping timeout: 244 seconds]
Pisuke has joined #ruby
roobienoobie has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
ICantCook has quit [Ping timeout: 250 seconds]
hogetaro_ has quit [Ping timeout: 240 seconds]
dc1 has joined #ruby
<roobienoobie> hey i need help with a ruby problem, been googling everywhere and now i just want to know what the solution is
<roobienoobie> ok
<roobienoobie> so im tryuing to find out how to reverse an array with a for loop
<roobienoobie> without an iteration body
<roobienoobie> like this
<roobienoobie> def reverse ary
uglybandersnatch has joined #ruby
<roobienoobie> a = []
<roobienoobie> for ______ in a
mattp__ has joined #ruby
<roobienoobie> end
<roobienoobie> a
<roobienoobie> end
Brando753 has quit [Ping timeout: 240 seconds]
mattp_ has quit [Ping timeout: 240 seconds]
Mission-Critical has quit [Ping timeout: 250 seconds]
jevs has quit [Ping timeout: 250 seconds]
davidcelis has quit [Ping timeout: 268 seconds]
<roobienoobie> i guess it would be easier to see with the website
lannonbr has quit [Ping timeout: 250 seconds]
<havenwood> roobienoobie: `ary` is unused and `a` is empty.
ljarvis has quit [Ping timeout: 268 seconds]
bogdanteleaga has quit [Ping timeout: 240 seconds]
ytti has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 250 seconds]
MyMind has quit [Ping timeout: 250 seconds]
paul98 has quit [Ping timeout: 250 seconds]
paul98 has joined #ruby
siaw_ has joined #ruby
<havenwood> roobienoobie: ah
kriskropd has quit [Ping timeout: 250 seconds]
Dreamer3 has joined #ruby
tonyynot has quit [Ping timeout: 268 seconds]
Dreamer__ has quit [Ping timeout: 268 seconds]
marxarelli|afk has quit [Ping timeout: 250 seconds]
<roobienoobie> i hate problems like that because i can't do anything about it
<roobienoobie> either i know it or i don't
ledestin has quit [Ping timeout: 268 seconds]
zenlot6 has quit [Ping timeout: 268 seconds]
<roobienoobie> and i don't know it
bakedb_ has joined #ruby
krz has joined #ruby
rcs has quit [Ping timeout: 250 seconds]
davidcelis has joined #ruby
davidcelis has joined #ruby
greenhat- has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
ljarvis has joined #ruby
jevs has joined #ruby
funnel has quit [Ping timeout: 268 seconds]
oz has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 250 seconds]
greenhat_ has joined #ruby
funnel has joined #ruby
<havenwood> roobienoobie: this problem is asking you to write very odd Ruby, and I can see why you'd have trouble seeing what it's asking
bakedb has quit [Ping timeout: 268 seconds]
djbkd has quit [Quit: My people need me...]
siaw has quit [Ping timeout: 250 seconds]
siaw_ is now known as siaw
moua has quit [Ping timeout: 276 seconds]
<roobienoobie> yeah, a lot of the problems on rubeque are stuff that you'll never find in tutorials, but u never know what something like that could be useful
rcs has joined #ruby
moua has joined #ruby
canton7 has quit [Ping timeout: 250 seconds]
nando293921 has joined #ruby
deuxclique has joined #ruby
DefV has quit [Ping timeout: 268 seconds]
x77686d has quit [Quit: x77686d]
gypsydav15 has quit [Remote host closed the connection]
gypsydave5 has joined #ruby
oz has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
canton7 has joined #ruby
Brando753 has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
bougyman has quit [Ping timeout: 250 seconds]
rew has quit [Ping timeout: 268 seconds]
yorickpeterse has quit [Ping timeout: 268 seconds]
<havenwood> >> [0, 1].unshift 3
<ruby[bot]> havenwood: # => [3, 0, 1] (https://eval.in/529918)
bougyman has joined #ruby
<roobienoobie> ok
y2mq37 has quit [Ping timeout: 250 seconds]
<roobienoobie> i think i know what u mean
aupadhye has joined #ruby
shanemcd has joined #ruby
<roobienoobie> ary = [1, 0, 3]
<roobienoobie> result = []
eregi has joined #ruby
<roobienoobie> for send(:unshift) in ary
<roobienoobie> end
<roobienoobie> like that?
<havenwood> roobienoobie: so the underscore they expect you to put the variable name you want to call the value of each iteration
<roobienoobie> i have no idea
bogdanteleaga has joined #ruby
<roobienoobie> i read somewhere you can have a method name in the underscore
<havenwood> roobienoobie: for example, maybe: item
rmulliga` has joined #ruby
<havenwood> roobienoobie: local variable
majoh has quit [Ping timeout: 240 seconds]
<havenwood> roobienoobie: for item in ary
rmulliga` has quit [Remote host closed the connection]
<roobienoobie> i know how for loops works normally
<havenwood> roobienoobie: result.unshift(item)
<havenwood> roobienoobie: end
<roobienoobie> yep
rmulliga` has joined #ruby
majoh has joined #ruby
rmulliga` has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
<Ox0dea> havenwood: The restriction is that the body must remain empty.
<roobienoobie> yeah
<havenwood> Ox0dea: Oh, I didn't actually read the instructions. >.>
dubek has left #ruby ["Leaving"]
<roobienoobie> so just put the hwole thing in the underscore?
Chagel_ has joined #ruby
DefV has joined #ruby
shanemcd has quit [Ping timeout: 244 seconds]
<roobienoobie> i think unshift is part of the answer, i just don't knwow how to work it in
MissionCritical has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Chagel has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
lannonbr has joined #ruby
<roobienoobie> it shows using method in for lop
fullofcaffeine has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<roobienoobie> if u put method name in ____________
<roobienoobie> for ______ in ary
<roobienoobie> i get error like
eljimador has joined #ruby
<roobienoobie> no method_name for unshift=
<roobienoobie> or undefined method unshift= for ary
<havenwood> roobienoobie: so it likes your strategy, but it's calling #unshift= not #unshift, so what could you do to make it happy?
eljimmy has quit [Ping timeout: 250 seconds]
<Ox0dea> This is scary.
rew has joined #ruby
<roobienoobie> maybe ary.send(:unshift)?
<Ox0dea> roobienoobie: Whatever you put there is essentially gonna have an '=' appended to it.
<roobienoobie> yeah
<Ox0dea> `ary.send(:unshift)=` doesn't look like it'll do the trick, eh?
<roobienoobie> i don't know how to make it not use =
unreal has quit [Ping timeout: 250 seconds]
<Ox0dea> It's going to use '=' implicitly.
<roobienoobie> maybe
<Ox0dea> ?
<Ox0dea> I've solved the puzzle, if that'll help you trust me?
cajone has quit [Ping timeout: 268 seconds]
<roobienoobie> yeah
<havenwood> Suspicious!
<roobienoobie> i can't solve it
fullofcaffeine has quit [Ping timeout: 264 seconds]
<Ox0dea> You can.
fpedroso has quit [Quit: Leaving]
unreal has joined #ruby
pawnbox has joined #ruby
e4xit_ has joined #ruby
_Suntzu has quit [Ping timeout: 268 seconds]
<Ox0dea> roobienoobie: This is essentially a restatement of the problem: https://eval.in/529919
Suntzu has joined #ruby
<roobienoobie> result[i-1]
<roobienoobie> like that?
<roobienoobie> or
<roobienoobie> results[-i-1]
<Ox0dea> Whence comes `i`?
<roobienoobie> oops
<roobienoobie> i mean
e4xit has quit [Ping timeout: 248 seconds]
e4xit_ is now known as e4xit
<roobienoobie> result.unshift
<roobienoobie> no
douglascorrea has joined #ruby
<Ox0dea> Do you know another way to spell #unshift?
<roobienoobie> shift?
<Ox0dea> That's literally the exact reverse opposite.
<roobienoobie> sorry, hold on i think i'm on the cusp of getting it
<Ox0dea> 0,0
<Ox0dea> I made an owl.
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sapslaj has quit [Remote host closed the connection]
levifig has quit [Ping timeout: 250 seconds]
<havenwood> Ox0dea: Or if you really wanted to use #unshift :P result.unshift(nil)[0]
statelesscode has joined #ruby
<Ox0dea> Saints preserve us!
<Ox0dea> I like the owl more.
<Ox0dea> Needs his ears boxed, though.
Nyammy_Work has joined #ruby
<havenwood> Ox0dea: oh, i mean: Hoo hoo
<Ox0dea> Really gnarly behavior, though.
saneax_AFK is now known as saneax
douglascorrea has quit [Ping timeout: 260 seconds]
ytti has joined #ruby
ramfjord has joined #ruby
zenlot6 has joined #ruby
<havenwood> Ye ole box-eared owl.
<Ox0dea> roobienoobie: The box-eared owl has the insight you seek.
levifig has joined #ruby
<roobienoobie> ohh, i thought u were just being random, argh!
Jammy_Work has quit [Ping timeout: 252 seconds]
dopie has quit [Quit: Lost terminal]
<roobienoobie> how does that work though?
<roobienoobie> because result should be [[]]
<roobienoobie> right?
<roobienoobie> i got it working though thanks!
dopie has joined #ruby
rmulliga` has joined #ruby
rmulliga` has quit [Remote host closed the connection]
LoneHermit has joined #ruby
<roobienoobie> interesting
yorickpeterse has joined #ruby
<Ox0dea> Do you know what's happening?
blackmesa has joined #ruby
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
sudoubuntu has joined #ruby
<roobienoobie> im not sure, i thought it was inserting it, but then i get an error for negative lengths
<roobienoobie> so im confused
<havenwood> >> 0.polar
<ruby[bot]> havenwood: # => [0, 0] (https://eval.in/529920)
<havenwood> >> 0.rectangular
<ruby[bot]> havenwood: # => [0, 0] (https://eval.in/529921)
scripore has quit [Quit: This computer has gone to sleep]
trosborn has joined #ruby
<havenwood> hooo
cajone has joined #ruby
<havenwood> >> 0.gcdlcm 0
<ruby[bot]> havenwood: # => [0, 0] (https://eval.in/529922)
<havenwood> >> 0.coerce 0
<ruby[bot]> havenwood: # => [0, 0] (https://eval.in/529923)
adgtl has joined #ruby
<Ox0dea> There's a lot of box-eared owls flyin' about.
<havenwood> just one more
<havenwood> >> 0.divmod 42
<ruby[bot]> havenwood: # => [0, 0] (https://eval.in/529924)
scripore has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
<roobienoobie> this is really confusing
<Ox0dea> >> require 'fiddle'; Fiddle::Pointer.new(__id__ * 2)[14, 2].bytes
<ruby[bot]> Ox0dea: # => [0, 0] (https://eval.in/529928)
<Ox0dea> Bit involved, that one.
<havenwood> :D
nogic has joined #ruby
<Ox0dea> roobienoobie: `foo[start, n] = bar` will replace the `n` elements in `foo` with the contents of `bar`, starting at `start`.
blackmesa has quit [Ping timeout: 244 seconds]
<roobienoobie> there must be a reason for this [0,0] whats the prupose?
<Ox0dea> This is akin to array slicing in other languages, in case you're familiar with that.
<roobienoobie> well if its like string slicing i think i get it
<Ox0dea> `[0, 0]` says "replace 0 elements starting at the very front".
<roobienoobie> yeah i get it
<Ox0dea> Which is a little weird at first, but it makes sense conceptually.
<roobienoobie> so [-1, 0] is like pop() ?
<roobienoobie> or
<Ox0dea> You're just not allowed to do that, but that's the idea.
<roobienoobie> push
<Ox0dea> Right, push.
achamian has joined #ruby
jayc0b0 has quit [Ping timeout: 246 seconds]
<roobienoobie> ok cool, is this just a way to shorten the code?
deuxclique has quit [Remote host closed the connection]
jayc0b0 has joined #ruby
<Ox0dea> It's just Ruby not imposing arbitrary restrictions on how you, as an individual programmer, might wish to write your code.
<Ox0dea> This whole body-less for loop business is just stupid.
<roobienoobie> well, at least i learned something new
<Ox0dea> And that's certainly to the good, but it strikes me as an accident that's just gone unchecked too long to be removed.
nogic has quit [Ping timeout: 260 seconds]
<Ox0dea> Who knows? Maybe somebody actually uses it.
TinkerTyper has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
<roobienoobie> alright, on to the next problem, thanks dude
<Ox0dea> Happy to help.
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirillzh_ has joined #ruby
nogic has joined #ruby
Guest00-ru has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Guest00-ru has joined #ruby
kirillzh has quit [Ping timeout: 276 seconds]
Morrolan has quit [Ping timeout: 252 seconds]
roobienoobie has quit [Quit: Page closed]
ReK2 has quit [Read error: Connection reset by peer]
oz has quit [Ping timeout: 252 seconds]
oz has joined #ruby
PaulCapestany has quit [Quit: .]
ReK2 has joined #ruby
pawnbox_ has joined #ruby
fedexo has joined #ruby
PaulCapestany has joined #ruby
hk238 has joined #ruby
nogic has quit [Ping timeout: 276 seconds]
Morrolan has joined #ruby
Rodya_ has joined #ruby
PaulCapestany has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
Spleeze has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
nogic has joined #ruby
shadoi has quit [Quit: Leaving.]
nogic has quit [Max SendQ exceeded]
trosborn has quit [Quit: trosborn]
nogic has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
oliver_ has joined #ruby
oliver_ has quit [Remote host closed the connection]
coffeecupp has joined #ruby
Limix has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
Chagel_ has quit [Remote host closed the connection]
achamian has quit []
safe has quit [Read error: Connection reset by peer]
jayc0b0_ has joined #ruby
coffeecupp has quit [Quit: Leaving]
Asher has quit [Read error: No route to host]
rew has quit [Remote host closed the connection]
Asher has joined #ruby
Chagel has joined #ruby
system64 has joined #ruby
jayc0b0 has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
scripore has quit [Quit: This computer has gone to sleep]
bedouin has joined #ruby
bedouin has quit [Excess Flood]
AlexRussia has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
spuk has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
aupadhye has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
duckpuppy has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Remote host closed the connection]
bedouin has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
douglascorrea has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
douglascorrea has quit [Ping timeout: 246 seconds]
makenoise has quit []
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
UtkarshRay has joined #ruby
sudoubuntu has joined #ruby
astrobun_ has joined #ruby
steffkes has quit [Ping timeout: 248 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
<shevy> hmm say I have a hash that has 10 elements; is there a simple way to obtain the last 5 elements/keys?
blackmesa has joined #ruby
<idletask> If the underlying data storage uses hash buckets to store elements, you don't have an iteration order guarantee by definition, do you?
<shevy> yeah
<havenwood> shevy: reverse_each.first(5).to_h
<shevy> oh let me think a moment, thanks!
<havenwood> shevy: err
<havenwood> shevy: drop(5).to_h
<Ox0dea> idletask: No, but RubySpec decrees that implementations explicitly tell Hashes to maintain insertion order.
<idletask> Lw
<idletask> I meant, ow
<idletask> Might be costly
<idletask> But then the spec says so, and I trust the guys to know what they are doing
<Ox0dea> I mean, it's certainly a convenience with associated costs, but this is Ruby. :)
<shevy> oh we are at rubygems v2.6.1 now
<Ox0dea> Is that good?
<shevy> I hope so!
<shevy> 3 bug fixes
fullofcaffeine has joined #ruby
<shevy> hmm I did not check out 2.6.0 either
blackmesa has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
nogic has quit [Ping timeout: 268 seconds]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nogic has joined #ruby
ur5us has joined #ruby
pawnbox has joined #ruby
eregi has joined #ruby
sauvin has joined #ruby
ur5us has quit [Remote host closed the connection]
pawnbox_ has quit [Ping timeout: 252 seconds]
flughafen_ has joined #ruby
mattwildig has joined #ruby
<idletask> Ox0dea, I'm sorry, but I have beginner questions again -- about the code you posted earlier, that is https://eval.in/529672
<Ox0dea> idletask: How's your understanding of blocks?
<idletask> I don't understand "valid_global" :/
<idletask> I can understand that = is the assignment, but the part I have difficulty with is "-> char"
<idletask> Let me finish first :p
<Ox0dea> Take your time. I'll be back shortly.
<idletask> I see that char is reused in the block (in the eval'ed string)
<idletask> I understand the begin/rescuse/ensure/end construct, even though there is not ensure here
Rodya_ has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<idletask> My problem really is with this initial "declaration", I don't know how to call it otherwise, which is " -> char"
Tharbakim has joined #ruby
<duderonomy> hello. I'm trying to understand this block stuff better...
<duderonomy> found this in Cookbook: 'foobar'.scan( /./ ) { |c| puts c }
LoneHermit has joined #ruby
flughafen_ has quit [Ping timeout: 268 seconds]
<duderonomy> I want to do something similar: 'foobar'.scan( /./ ) { |c| modify(c) }
mattwildig has quit [Ping timeout: 276 seconds]
<duderonomy> Sorta like a python list comprehension.
<idletask> duderonomy: and what would modify() 2?
<drbrain> idletask: -> char { "#{char}" } is the same as -> (char) { "#{char}" } is the same as proc { |char| "#{char}" }
eregi has quit [Ping timeout: 244 seconds]
s00pcan has quit [Ping timeout: 248 seconds]
<idletask> drbrain: so, that defines a... What? An "anonymous function"?
<drbrain> idletask: yes
Mia has quit [Read error: Connection reset by peer]
<drbrain> duderonomy: yes, you can do that
<Ox0dea> drbrain: s/proc/lambda/, technically.
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<duderonomy> where I have modify, I was actually just going to do a simple hash lookup using c as the key
<drbrain> duderonomy: but I would use 'foobar'.chars.each { |c| … }
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drbrain> Ox0dea: I was wondering if I got those backward
<Ox0dea> duderonomy: You want #gsub's (Regexp, Hash) form, I bet. :)
adgtl has quit [Remote host closed the connection]
<drbrain> duderonomy: oh, yeah ↑
<idletask> drbrain: it seems to me however that the -> "operator" could have had a left hand side as well, no?
<Ox0dea> idletask: Nah, `-` is a valid binary operator, but `>` isn't a valid unary one.
<Ox0dea> So it's never ambiguous.
<duderonomy> i was looking at gsub in the docs but my substitutions are not regular. Instead I have a unique value to be looked up via a key
<idletask> OK, wait
Rodya_ has quit [Ping timeout: 260 seconds]
<duderonomy> i
<duderonomy> i'll take your suggestions and try some stuff
<idletask> We have valid_globals, =, ->, char, some block here
bluOxigen has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
intrigueD has joined #ruby
<idletask> = is an assignment, so far so good
<Ox0dea> Yes, it's an assignment.
<drbrain> duderonomy: if you're not doing a replacement, then .each (or .scan) is just fine
<idletask> But what is -> here?
<drbrain> duderonomy: chars.each will be more efficient than scan /./
<Ox0dea> idletask: To reiterate, `-> char { ... }` == `lambda { |char| ... `.
<duderonomy> thx drbrain for the guidance
charliesome has quit [Ping timeout: 246 seconds]
<drbrain> idletask: it's a λ with a broken top
<Ox0dea> I love that that's the actual justification. :P
adgtl has joined #ruby
<idletask> But can such lambdas be defined which return values?
<Ox0dea> Of course.
ta_ has quit [Remote host closed the connection]
<Ox0dea> >> my_even = -> x { x % 2 == 0 }; a = [1,2,3,4]; a.select(&:even?) == a.select(&my_even)
<ruby[bot]> Ox0dea: # => true (https://eval.in/529969)
kriskropd has joined #ruby
<idletask> So, stupidAdd = -> x { x + 1 } would work...
Outlastsheep has joined #ruby
<Ox0dea> Mu.
<idletask> In my irb I just did that
<idletask> But I'm unable to invoke it :p
<drbrain> stupidAdd.call 2
<drbrain> >> stupidAdd = -> x { x + 1 }; stupidAdd.call 2
<ruby[bot]> drbrain: # => 3 (https://eval.in/529970)
<idletask> *brains boiling*
<drbrain> or stupidAdd.(2)
<Ox0dea> Or `stupidAdd[2]`.
<drbrain> ↑ alias for .call
konsolebox has joined #ruby
<Ox0dea> >> class C; def call; :ogodwhy end end; C.new.()
<ruby[bot]> Ox0dea: # => :ogodwhy (https://eval.in/529971)
Spleeze has joined #ruby
<idletask> Hmm, an interactive irb?
<Ox0dea> That's redundant. :P
<toretore> interactive interactive ruby
<idletask> Yes, I figured it out just after I typed it :p
<idletask> Let's say a remote irb
Limix has quit [Quit: Limix]
<Ox0dea> We'll do it live!
<shevy> a remote interactive interactive ruby?
aupadhye has joined #ruby
<drbrain> pry-remote does that
<Ox0dea> idletask: The crucial observation to be made here is the relationship between blocks and Procs (of which lambda is simply a specialization).
chouhoul_ has quit [Remote host closed the connection]
<Ox0dea> None of this will have made a great deal of sense if you've not gotten up to speed on blocks.
utkukaynar has joined #ruby
elaptics`away is now known as elaptics
Limix has joined #ruby
<idletask> I am very far from parsing these
<Ox0dea> You are in for so much pain.
<Ox0dea> ¯\_(ツ)_/¯
<idletask> Oh no
<idletask> After ObjectScript, honestly...
<idletask> OK, here is a valid line of ObjectScript, just to show you... And I parse it:
<Ox0dea> I'm ready.
eregi has joined #ruby
<idletask> if x = 1 & y '<3 d ..m(,,2) w x, ! for q:x=3 q
<idletask> I parse it all
<Ox0dea> idletask: This is a Sinatra app: http://i.imgur.com/94jou4v.png
<Ox0dea> That's valid Ruby that presents the user with a dead-simple to-do list.
intrigueD has quit [Remote host closed the connection]
<idletask> Ox0dea: OK, I'll set that as a parsing goal but just look at that "code" I posted :p I can actually tokenize that crap correctly
<idletask> So, ruby? Meh
<idletask> I'll come to it
<Ox0dea> Godspeed.
Limix has quit [Quit: Limix]
colegatron has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<shevy> hmm... I guess we have no inbuilt way in ruby to translate "five" into 5 right?
<duderonomy> drbrain: what if I were doing a replacement, what should I be reading about? map?
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<duderonomy> ultimately, I am seeking a new "sequence" in python terms.
<idletask> Ox0dea: I'll set that as a target for me to tokenize correctly... It's just a pity that this is an image :p I'll need an OCR...
<duderonomy> I guess this resule is a string or a list which I can join
konsolebox has quit [Quit: Leaving]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<Ox0dea> idletask: Good thing it's monospaced *and* not anti-aliased. :)
Guest34101 has quit [Ping timeout: 260 seconds]
<Ox0dea> duderonomy: #map is for transforming sequences into new ones, yes.
<Ox0dea> Are you keying into your Hash with your matches?
BlindSight` has joined #ruby
e4xit has quit [Ping timeout: 252 seconds]
BlindSight has quit [Disconnected by services]
BlindSight` is now known as BlindSight
<Ox0dea> idletask: https://eval.in/529972
jenrzzz has joined #ruby
n1colas has quit [Read error: Connection reset by peer]
Zackio has quit [Read error: Connection reset by peer]
<Ox0dea> Do be sure to copy it from the textarea at the bottom; eval.in flipped its shit trying to syntax-highlight it.
n1colas has joined #ruby
last_staff has joined #ruby
Zackio has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Guest68170 is now known as James
aufi has joined #ruby
James is now known as Guest21997
<shevy> hahaha
<shevy> that is awesome Ox0dea
<shevy> you are colourizing via eval-in now
<shevy> I have never seen as much red before
<Ox0dea> I guess that's meant to indicate syntax errors.
Guest7129 has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
Guest34101 has joined #ruby
<idletask> Ox0dea: saved
ebbflowgo has joined #ruby
bedouin has quit [Excess Flood]
eregi has quit [Ping timeout: 260 seconds]
bedouin has joined #ruby
solars_ has quit [Ping timeout: 260 seconds]
jobewan has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<shevy> red is the colour of love!
y2mq37 has joined #ruby
blackmesa has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
<Ox0dea> idletask: eval.in uses Pygments, which is a pretty well-established lexer. It's general-purpose, though, so your efforts will give your parser that personal touch. :)
<Ox0dea> Still, maybe take a page from their playbook: https://bitbucket.org/birkenfeld/pygments-main/src/1942c/pygments/lexers/ruby.py
<idletask> Well, my parser _is_ generic too
<idletask> SonarQube happens to be an application for it
<idletask> There is something I just noticed
<idletask> >> x = [ "foo", "bar" ]; x.each { print }
<ruby[bot]> idletask: # => ["foo", "bar"] (https://eval.in/529979)
<idletask> Not even an argument here
<idletask> each seems to be somewhat special
<Ox0dea> Nah, that's just because blocks have the arity restrictions and return semantics of Procs rather than lambdas.
<Ox0dea> You have to pass the correct number of arguments to a lambda, but not a Proc.
<Ox0dea> And `return` in a lambda will return from the lambda, whereas `return` in a Proc will (try to) return from the surrounding method.
<idletask> OK, I understand now why you insisted on the distinction earlier
sandstrom has joined #ruby
<idletask> So, after .each, it is a Proc, not a Lambda?
<Ox0dea> It's a block, technically.
<idletask> OK
<Ox0dea> It's not actually being reified into a Proc there.
<idletask> >> x = [ "foo", "bar" ]; x.each { |meh| print "arg: #{meh}" }
<ruby[bot]> idletask: # => arg: fooarg: bar["foo", "bar"] (https://eval.in/529981)
<idletask> >> x = [ "foo", "bar" ]; x.each -> meh { print "arg: #{meh}" }
<ruby[bot]> idletask: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/529982)
<idletask> Ah
<Ox0dea> That didn't do what you think it did.
ledestin has joined #ruby
<idletask> What didn't? My first or second attempt?
SOLDIERz has joined #ruby
Tharbakim has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
<idletask> For some reason I expected the second one to fail
solars has joined #ruby
<Ox0dea> You're passing that lambda as an argument to #each there, rather than as a block.
baweaver has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
<idletask> proc and lambda are reserved keywords, then?
<Ox0dea> Nope, they're methods. :)
<Ox0dea> >> method(:proc).owner
<ruby[bot]> Ox0dea: # => Kernel (https://eval.in/529984)
<idletask> OK, I'll try and parse more basic stuff first :p
<Ox0dea> Well, okay, but Proc and friends are pretty pervasive in idiomatic Ruby code.
<idletask> My goal is to parse some basic files by the end of the weekend and have some basic checks done
Coral has joined #ruby
Coral is now known as Guest10419
jas02 has joined #ruby
tjbiddle has joined #ruby
<Ox0dea> I do wish you all the best in that endeavor.
<idletask> If I can already successfully parse and tokenize correctly something like "def foo(bar)\np bar\nend\nfoo(2)" and warn that "please don't use p in real code" I'll be happy :p I have yet to set up a test server for the plugin
<idletask> Oh, I want to do that
<idletask> I'm too entrenched in Java to even begin to _comprehend_ the mindset of seasoned developers in other languages
<idletask> So, Ruby will be a good experience
<Ox0dea> I'm sure you'll find that plenty of things transfer.
<idletask> I want checks to be relevant to Ruby developers, not from my own perspetive
ramfjord has quit [Ping timeout: 268 seconds]
<Ox0dea> idletask: I take it you don't want to just piggyback on RuboCop?
<idletask> Well, there is the possibility that I could, if not _run_ RuboCop, at least use its results
<idletask> But yeah, after all, the Java plugin reuses checkstyle, the python plugin uses results from pylint...
<idletask> So if I can do that, certainly
<idletask> I do need to parse a reasonable subset of the language first, though
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
ohaibbq has joined #ruby
shanemcd has joined #ruby
karapetyan has joined #ruby
mondok has joined #ruby
Rodya_ has joined #ruby
sudoubuntu has joined #ruby
kirillzh_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<idletask> Ox0dea: about that "no ascii" example above; my guess is that the first line sets ___ to 1.5
<Ox0dea> idletask: That first line sets three variables. :P
<Ox0dea> ___ is being set to 115.
<idletask> Yes, irb tells me that
Rodya_ has quit [Ping timeout: 240 seconds]
<idletask> Hmm, what is + doing here?
kirillzh has joined #ruby
<Ox0dea> Addition.
<idletask> _ = 'whatever'=~/$/ is "true", but then what's the final value?
<idletask> 1?
anisha has joined #ruby
<Ox0dea> No, that's not quite right.
<Ox0dea> >> ' ' =~ /$/
<ruby[bot]> Ox0dea: # => 4 (https://eval.in/529985)
kirillzh has quit [Client Quit]
<idletask> Wat?
<Ox0dea> It's just an easy way to get small integers.
<idletask> Uhm, OK, I have misunderstood =~, it seems
<Ox0dea> =~ returns the index at which the match occurs, or nil if it didn't.
<idletask> I thought it tried to perform a single match
<Ox0dea> It does.
<idletask> Ah
<idletask> And nil on failure? Crap
<idletask> I'd have preferred -1 :p
<Ox0dea> Get out.
firstdayonthejob has joined #ruby
cajone has quit [Ping timeout: 252 seconds]
<idletask> Well, $ will always match
Dreamer3_ has quit [Ping timeout: 276 seconds]
<Ox0dea> Sure, but it'll return the length of the string, so it's a nice way to get small integers without explicitly typing them.
Xeago has joined #ruby
gaf_ has quit [Ping timeout: 252 seconds]
<idletask> OK, so $$ is the PID of the current process which can never be zero, so $$/$$ is always 1, and that is what __ is set to
<Ox0dea> Yep.
uglybandersnatch has quit [Ping timeout: 260 seconds]
<idletask> Do indices start at 0 or 1?
<Ox0dea> ¯\_(ツ)_/¯
<idletask> No, wait, that's the wrong question
cajone has joined #ruby
gaf_ has joined #ruby
Dreamer3_ has joined #ruby
Guest10419 has quit [Ping timeout: 264 seconds]
adgtl has quit [Remote host closed the connection]
<idletask> I still can't get to 115
<baweaver> Ox0dea: which one did you show them?
<Ox0dea> baweaver: The big'n.
<baweaver> Well fly me to the moon
Xeago has quit [Ping timeout: 276 seconds]
<Ox0dea> >> 10 * 10 + 10 + 10 / 2 # idletask
<ruby[bot]> Ox0dea: # => 115 (https://eval.in/529988)
fedexo has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
<idletask> Wait, what's with that operator priority? + has priority over /? :p
<Ox0dea> All those parentheses are for ensuring that the arithmetic operations don't affect the assignments.
<Ox0dea> idletask: Clearly not?
<idletask> Oh, sorry
<idletask> I'm getting tired from lack of sleep :(
<idletask> OK, so that is 115, no problem, and I'm -1
kirillzh has joined #ruby
<Ox0dea> idletask: I have much smaller non-alphanumeric programs if you want to have a hope of "solving" one. ^_^
<idletask> For the rest of the file, I'll see later, I'm sure $_ has some special signification (at least it has in perl)
<Ox0dea> It's normally the last line of input read from $stdin, but I repurpose it for my own ends there.
Don_John has quit [Read error: Connection reset by peer]
<idletask> It certainly seems that after the second "line" it is nothing like a string anymore, but a proc, right?
<baweaver> >> $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
<ruby[bot]> baweaver: # => 2016-03-04 07:48:02 +0000 (https://eval.in/529992)
* baweaver still has a stash of translated Ox0dea monsters
<Ox0dea> It's vaguely terrifying that a computer can just gobble that up, no problem.
<Ox0dea> "I see exactly what you did there, more or less immediately."
amclain has quit [Quit: Leaving]
jaruga has joined #ruby
<Ox0dea> idletask: The second line is the most important one.
<Ox0dea> It gets hold of #send as a Proc. I didn't want to resort to the cheap trick of using eval, so that's the key to the kingdom.
codecop has joined #ruby
douglascorrea has joined #ruby
siaw has quit [Quit: siaw]
sandstrom has quit [Quit: My computer has gone to sleep.]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
terlar has joined #ruby
James is now known as Guest22403
douglascorrea has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
stannard has joined #ruby
karapetyan has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 264 seconds]
jobewan is now known as jobewan_away
jobewan_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has quit [Ping timeout: 246 seconds]
kirillzh has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 248 seconds]
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
kirillzh has joined #ruby
jeanlinux has joined #ruby
<Bish> offtopic: there was a ubuntu repo that gives me ruby 2.x on ubuntu
<Bish> can somebody tell me how it was called
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> thanks!
<Bish> god i hate ubuntu
TomyWork has joined #ruby
karapetyan has joined #ruby
modin has quit [Ping timeout: 264 seconds]
Coral has joined #ruby
hogetaro has quit [Quit: Leaving...]
Coral is now known as Guest87039
SCHAAP137 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
eurialo has joined #ruby
Chagel has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 248 seconds]
olli_ has joined #ruby
eregi has joined #ruby
<olli_> hello.
<olli_> I've a question - how do I write "no operation" in ruby?
mark2 has joined #ruby
<olli_> something like "nop" in x86 assembler.
<ironcamel> olli_: ;;
<olli_> thanks!
nando293921 has joined #ruby
<shevy> huh
<shevy> Bish what ruby and gem version do you have on ubuntu presently?
ohaibbq has quit [Quit: Leaving...]
siaw has joined #ruby
karapetyan has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
<apeiros> olli_: what do you want to achieve by that noop?
aibot has quit [Remote host closed the connection]
Chagel has joined #ruby
aibot has joined #ruby
aibot has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 244 seconds]
kirillzh has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
ferr has joined #ruby
* apeiros afk
Mon_Ouie has joined #ruby
mattwildig has joined #ruby
kirillzh has joined #ruby
ramfjord has joined #ruby
vondruch has joined #ruby
statelesscode has quit [Quit: statelesscode]
dopie has quit [Quit: Lost terminal]
aibot has joined #ruby
dopie has joined #ruby
ur5us has joined #ruby
mattwildig has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
beawesomeinstead has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
Mia has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
beawesomeinstead has joined #ruby
Rodya_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
Tharbakim has joined #ruby
modin has joined #ruby
the_drow has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
rdark has joined #ruby
kirillzh has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
despai has joined #ruby
charliesome has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
baweaver has quit [Remote host closed the connection]
Axy has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
kirillzh has joined #ruby
djbkd has quit [Quit: Leaving...]
kirillzh has quit [Max SendQ exceeded]
Gasher has joined #ruby
siaw has quit [Quit: siaw]
eurialo has quit [Ping timeout: 240 seconds]
Snowy has joined #ruby
igam has joined #ruby
nicu` has joined #ruby
tvw has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Foren has joined #ruby
sp4rrow has joined #ruby
danjam has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
nerium has joined #ruby
Guest22403 is now known as James
sepp2k has joined #ruby
James is now known as Guest62251
kirillzh has joined #ruby
rmulligan has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
antranigv has left #ruby [#ruby]
mondok has quit [Ping timeout: 264 seconds]
nicu` has quit [Changing host]
nicu` has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
despai has quit [Quit: This computer has gone to sleep]
kirillzh_ has joined #ruby
rmulligan has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
kirillzh has quit [Ping timeout: 260 seconds]
jmdade has joined #ruby
<olli_> apeiros, i use case item - skipping one of possibilities
<olli_> is it possible to have a block of code in 'else' within 'case'?
<shevy> yeah
<olli_> if I use 'do end ' or '{}' blocks I get error.
adgtl has joined #ruby
skakri` is now known as skakri
zenlot6 is now known as zenlot
<olli_> i.e.: "case i when 1 else {code; code;} end" and "case i when 1 else do code; code; end end" both give me an error.
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> olli_ do you normally see free floating blocks in ruby code?
schickung has joined #ruby
<shevy> it will work when you pass a block to a method for instance https://gist.github.com/shevegen/08e4653d46d4cb91eedf
Xeago has joined #ruby
paatala_bhairavi has joined #ruby
Guest34101 has quit [Read error: Connection reset by peer]
Guest34101 has joined #ruby
<olli_> shevy, so no other way to have multiple code lines after an 'else' within 'case'?
troulouliou_div2 has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
kirillzh_ has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
gagrio has joined #ruby
<shevy> hmm
kirillzh has joined #ruby
<shevy> else in a case/when menu works just like one in an if/else clause
<shevy> so you can chain as many if/else past an else there too
<olli_> okay, thank you. :)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
graffix222 has quit [Ping timeout: 276 seconds]
binaryplease has joined #ruby
jayc0b0_ has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
leksster has joined #ruby
trosborn has joined #ruby
charliesome has joined #ruby
stannard has joined #ruby
trosborn has quit [Client Quit]
blackmesa has joined #ruby
cajone has left #ruby [#ruby]
Expanse has joined #ruby
benlieb has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
adgtl has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 250 seconds]
brocktimus has joined #ruby
cajone has joined #ruby
SOLDIERz has quit [Read error: Connection reset by peer]
rmulligan has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 276 seconds]
morfin has joined #ruby
<morfin> hello, anybody know can i somehow in Rake run task in some block without using invoke?
blackmesa has quit [Ping timeout: 276 seconds]
<morfin> as example i have task :mytask => [:task1, :task2, :task3], i want all dependencies run inside of some block which creates some tmp directory
trosborn has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
trosborn has quit [Client Quit]
rmulligan has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
baweaver has joined #ruby
eurialo has joined #ruby
<hanmac> morfin: hm the most easy way would be to have a beforeTask and a afterTask
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
trosborn has joined #ruby
<morfin> but as i know tmpdir exists only when block executes
adgtl has joined #ruby
<morfin> and when goes out of scope it's being automatically removed
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 240 seconds]
Expanse has quit [Quit: Updating details, brb]
<apeiros> olli_: not sure somebody told you already, but just not having any code in the when clause is perfectly legal.
Expanse has joined #ruby
adgtl has quit [Remote host closed the connection]
<apeiros> >> a = 1; case a; when 0; "zero"; when 1; when 2; "two"; end
<olli_> apeiros, thanks. Didn't know that.
<ruby[bot]> apeiros: # => nil (https://eval.in/530155)
Xeago has quit [Ping timeout: 276 seconds]
<morfin> seems like i have to cleanup my mess anyway
adgtl has joined #ruby
<Bish> shevy: 2.3 from the repo
RegulationD has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schickung has quit [Quit: schickung]
bluOxigen_ has joined #ruby
LoneHermit has joined #ruby
j0n3_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
douglascorrea has joined #ruby
tvw has quit []
LoneHermit has quit [Ping timeout: 252 seconds]
trosborn has quit [Quit: trosborn]
eregi has joined #ruby
rodfersou has joined #ruby
astrobun_ has quit [Read error: Connection reset by peer]
astrobu__ has joined #ruby
bluOxigen_ has quit [Ping timeout: 264 seconds]
<shevy> cool
schickung has joined #ruby
schickung has quit [Client Quit]
duckpuppy has joined #ruby
Guest62251 is now known as James
James is now known as Guest34230
f4cl3y has joined #ruby
douglascorrea has quit [Ping timeout: 240 seconds]
graffix222 has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
mfaeh has joined #ruby
kirillzh has joined #ruby
Timberwo|f has quit [Ping timeout: 252 seconds]
astrobu__ has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
pyrexsmash has joined #ruby
trosborn has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
pyrexsmash has left #ruby [#ruby]
trosborn has quit [Client Quit]
<Bish> there is no map! right?
<Bish> is there a cool way to do:
<Bish> >> [1,2,3].ma{ |k,v| { k=>v}}
<ruby[bot]> Bish: # => undefined method `ma' for [1, 2, 3]:Array ...check link for more (https://eval.in/530190)
<Bish> >> [1,2,3].map{ |k,v| { k=>v}}
<ruby[bot]> Bish: # => [{1=>nil}, {2=>nil}, {3=>nil}] (https://eval.in/530191)
trosborn has joined #ruby
<Bish> well, you get the point
<apeiros> actually, I don't :-|
<apeiros> and Array#map! exists
<apeiros> >> a = [1,2,3]; a.map!(&:to_s); a
<ruby[bot]> apeiros: # => ["1", "2", "3"] (https://eval.in/530192)
<Bish> >> {one:1,two:2,three:3}.map{ |k,v| { k=>v}}
<ruby[bot]> Bish: # => [{:one=>1}, {:two=>2}, {:three=>3}] (https://eval.in/530193)
<Bish> i have something like this
trosborn has quit [Client Quit]
<Bish> and need the second for a js lib
<apeiros> you'd do better to explain the problem you're trying to solve instead of your intended solution
<adaedra> Hash#map! doesn't exist as Hash#map returns an array, and you can't change an object type in place.
<Bish> there is a graph library in js, that wants stupid [{key:x,value:y}] format
<Bish> and i have to write .map { |k,v| {k=>v} } multiple times
n00bdev has joined #ruby
<apeiros> {k => v} is quite distinct from {key: k, value: v} ;-)
<Bish> doesn't look very DRY :3
<Bish> well second one is json ofc ;)
<adaedra> make a module/refinement
<apeiros> um, no. still different.
<Bish> well the key names, yeah but you get the point
<apeiros> but yeah, you'd use .map with a block for that kind of transformation.
<adaedra> >> require 'json'; {one:1,two:2,three:3}.map{ |k,v| { k=>v}}.to_json
<ruby[bot]> adaedra: # => "[{\"one\":1},{\"two\":2},{\"three\":3}]" (https://eval.in/530194)
<adaedra> >> require 'json'; {one:1,two:2,three:3}.map{ |k,v| { key: k, value: v }}.to_json
<ruby[bot]> adaedra: # => "[{\"key\":\"one\",\"value\":1},{\"key\":\"two\",\"value\":2},{\"key\":\"three\",\"value\":3}]" (https://eval.in/530195)
<adaedra> isn't it the second one you want?
<Bish> well that was just an example
<Bish> k is actually a unix timestamp and v is an Integer
<Bish> so both integer
<apeiros> so?
<adaedra> doesn't really matter here.
<apeiros> if you think it changes the problem scope, you should probably have mentioned it up front. if you don't think it changes the problem scope - why mention it?
<apeiros> -probably
<Bish> [{1457083440=>34}, {1457083500=>95},... this is actually as it looks like
<Bish> well the problem is just that i have to call map multiple times
<Bish> it works fine this way
trosborn has joined #ruby
<apeiros> not in the problem description you have given us so far.
<Bish> i told you the exact problem description, i have to call .map multiple times with the same block, which doesn't look try
<Bish> wanted to know if there is a better way
trosborn has quit [Client Quit]
<adaedra> >> a = {one:1,two:2,three:3}; module SillyJS; def to_js; map { |k,v| { k=>v}}; end; end; a.extend SillyJS; a.to_js
<ruby[bot]> adaedra: # => [{:one=>1}, {:two=>2}, {:three=>3}] (https://eval.in/530197)
n00bdev has quit []
<hanmac> you need to call it multiple times because you do it on multiple objects ...
<adaedra> Hop, reusable code.
<apeiros> yeah, no. in the problem description so far there's precisely one .map call. and map yielding multiple times is still a single call to map.
marr has joined #ruby
<Bish> apeiros: you got me wrong, maybe i wasn't specific enough
<Bish> hanmac got me though :D
<apeiros> if you mean you have multiple hashes to transform, then common techniques apply. like what adaedra said. or write a method. or whatever.
<adaedra> that may be a nice fit for refinements :D
<apeiros> yeah, or just have a proper class for that data with a .to_json method.
<hanmac> Bish: i think you got an understanding problem you dont have one hash, you have a array of hashs with "[{1457083440=>34}, {1457083500=>95}]" if you want to transform it into another array of hashs, than you need to call map multiple times for each Hash inside the Array (+ one time for the Array itself)
<Bish> yeah that's what i am doing, but the multiple writing of the same block bugs me
<Bish> sure, i could write a method, but that task seems to small for a method
<adaedra> nah.
<Bish> i just wanted to know if there might be an existing method doing that transformation
<Bish> i mean Hash.to_a is pretty similiar, but not the same though :(
<Bish> >>{1=>3,2=>4,3=>4}.to_a.map! { |x| {x.first=>x.last} }
<ruby[bot]> Bish: # => [{1=>3}, {2=>4}, {3=>4}] (https://eval.in/530198)
<adaedra> this won't modify your source hash.
<Bish> i know
mattwildig has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
julieeharshaw has quit [Ping timeout: 250 seconds]
FooMunki has joined #ruby
julieeharshaw has joined #ruby
rmulligan has joined #ruby
evidex has joined #ruby
Axy has quit [Ping timeout: 244 seconds]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has quit [Ping timeout: 276 seconds]
<Bish> are there actual code analyzers, that check "double"-code?
<apeiros> confusing explanation is confusing
<Bish> i am a confused guy!
<apeiros> not sure whether for ruby. but for static languages, such tools do exist, yes.
<apeiros> afaik there are projects for ruby too. but no idea how mature those are. check ruby-toolbox for those.
[spoiler] has quit [Quit: Cheers!]
AlexRussia has joined #ruby
nicu` has quit [Quit: Leaving]
<apeiros> https://github.com/michaeledgar/laser is the only one I remember by name
platzhirsch has joined #ruby
b|ackwolf has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
adac has joined #ruby
steffkes has joined #ruby
Rodya_ has joined #ruby
blackmesa has joined #ruby
sundhell has joined #ruby
isxek has joined #ruby
danjam has quit [Quit: Leaving.]
trosborn has joined #ruby
utkukaynar has quit []
trosborn has quit [Client Quit]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<hanmac> for code duplicate i only know https://codeclimate.com/ but that is more like for projects
Axy has joined #ruby
Axy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
nando293921 has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 240 seconds]
Guest34101 has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Quit: Leaving]
[spoiler] has joined #ruby
trosborn has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
danjam has joined #ruby
ujjain- has quit [Changing host]
ujjain- has joined #ruby
Chagel has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<ghr> duplicate code? http://ruby.sadi.st/Flay.html
ensom42 has joined #ruby
ur5us has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
scripore has quit [Client Quit]
terlar has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
steffkes has quit [Ping timeout: 244 seconds]
terlar has joined #ruby
schickung has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
jeanlinux has joined #ruby
<Bish> > Confessions of a Ruby Sadist
douglascorrea has joined #ruby
<ghr> lol, yeah
<ghr> pretty sure codeclimate use flog and flay
trosborn has joined #ruby
<shevy> that URL scares me
Guest34230 is now known as James
James is now known as Guest83262
douglascorrea has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
<flughafen> is there any reason by in the chrome console a $('div[id=foo.bar]') works, but not in capybara with find(...)?
schickung has quit [Quit: schickung]
trosborn has quit [Quit: trosborn]
trosborn has joined #ruby
schickung has joined #ruby
pandaant has joined #ruby
<Bish> flughafen: wrong channel
<Bish> also jquery sucks!
igam has quit [Ping timeout: 248 seconds]
<Bish> oh now i get it
tjbiddle has quit [Quit: tjbiddle]
terlar has quit [Ping timeout: 246 seconds]
<Bish> flughafen: i didn't say anything
trinaldi has joined #ruby
<flughafen> bish? you said "oh now i get it?"
<Bish> no, i didn't know what capybara is
<flughafen> ok.
<Bish> flughafen: my guess is that #find wants xpath, jquery selectors are not xpath
<Bish> try //div[id=foobar]
<Bish> "//div[id=foobar]"
hiljusti has joined #ruby
eurialo has quit [Ping timeout: 248 seconds]
jmdade has joined #ruby
<adaedra> or find(css: '...')
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen> adaedra: it uses :css by default... ?
<adaedra> I was completing Bish, I don't really know the default
trosborn has quit [Quit: trosborn]
<flughafen> well the id has . in it, so i have to use [id=foo.bar] vs.div#foo.bar
trosborn has joined #ruby
mdw has joined #ruby
sundhell has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
trosborn has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
<shevy> this is why berlin can't have a nice flughafen
jeanlinux has quit [Remote host closed the connection]
<flughafen> ah, it's saying the browser said it's not a valid css selector
rmulligan has joined #ruby
<flughafen> ah, that was stupid, i fixed it. thanks shevy we can have nice things
Chagel has quit [Remote host closed the connection]
<shevy> haha
<shevy> that reminds me of the fragmentation of the www
gguggi has quit [Ping timeout: 276 seconds]
<shevy> knowing html used to be enough at one point!
bubbys has joined #ruby
<flughafen> i have a love / hate relationship with js, on one side gmail is nice, on the other i don't need 50 million lines of js to just show me some text on a page and track everything i do.
rmulligan has quit [Ping timeout: 252 seconds]
bubbys has quit [Ping timeout: 252 seconds]
Foren has quit [Remote host closed the connection]
<flughafen> we should ban js from the web so i can go back to using lynx
n008f4g_ has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
bubbys has joined #ruby
johnmilton has joined #ruby
<apeiros> flughafen: . in id's are escaped in css selectors via \
<apeiros> #foo\.bar in a .css, or '#foo\\.bar' in .js
DJ_Spies has joined #ruby
but3k4 has joined #ruby
<flughafen> apeiros: that didn't work either. i forgot to wrap the id in ''
<flughafen> so once i did that, it worked in carpyburo
but3k4 has quit [Client Quit]
thevaliantx has joined #ruby
blackmesa has joined #ruby
but3k4 has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
DJ_Spies has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
toretore has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
<shevy> lol
<shevy> the buro for the carps
LoneHerm_ has joined #ruby
baweaver has joined #ruby
Shidash has joined #ruby
leksster_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
gagrio has quit [Ping timeout: 250 seconds]
leksster has quit [Ping timeout: 268 seconds]
adgtl has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
RegulationD has joined #ruby
SCHAAP137 has joined #ruby
eregi has quit [Ping timeout: 250 seconds]
despai has joined #ruby
postmodern has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 240 seconds]
thevaliantx has quit [Quit: Leaving]
ldnunes has joined #ruby
DJ_Spies has joined #ruby
sandstrom has joined #ruby
bogn has joined #ruby
graffix222 has joined #ruby
duckpuppy has joined #ruby
Guest83262 is now known as James
James is now known as Guest54221
<flughafen> yey!
igam has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
maner has joined #ruby
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
chandlerbing has joined #ruby
shanemcd has quit [Remote host closed the connection]
<bogn> Hello everybody, I need to answer the question whether our Rails app is statically or dynamically linking to unicorn, kgio, raindrops and sidekiq. And I must admit that I'm having a very hard time figuring that out. I have the very fuzzy notion that all ruby gems are dynamically loaded (maybe nokogiri with libxml is an exception). Can someone please shed some light on this.
<shevy> what even is dynamically loading
<bogn> the notion sentence should actually have been "are dynamically linked"
shanemcd has joined #ruby
adgtl has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
codecop has quit [Remote host closed the connection]
<darix> bogn: why do you care?
<bogn> to prevent licensing issues
<darix> unicorn seems dual licensed
<darix> GPL-2.0+ and ruby
<darix> and the ruby part is BSDish if i recall correctly
<darix> so you should be fine
<bogn> kgio 2.10.0 is LGPL-2.1+
<darix> but other than that ...
<bogn> raindrops 0.15.0 as well
<darix> it doesnt matter if statically or dynamically linked
<darix> what matters what happens at runtime
<darix> and that point if you use a GPL-2.0 based library the whole thing becomes GPL-2.0
uglybandersnatch has joined #ruby
<darix> LGPL actually was created to allow linking into commercial software
stardiviner has joined #ruby
danjam has quit [Ping timeout: 260 seconds]
<bogn> that's my understanding as well, but that legal department said hopefully we're dynamically linking
<darix> that notion is wrong to begin with
<darix> dynamic linking or static linking doesnt matter at all in that case
IrishGringo has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
<bogn> It's a legal department that has done this review quite a lot for C++ Software, might that be the issue why they care so much?
uglybandersnatch has quit [Ping timeout: 244 seconds]
<bogn> in that scenario it seems to be an important question in their understanding
<darix> after lunch
<darix> still that assumption is wrong
chilerails has joined #ruby
mattwildig has joined #ruby
bubbys has quit [Ping timeout: 244 seconds]
zenspider has quit [Quit: bye]
chilerails has left #ruby [#ruby]
bubbys has joined #ruby
terlar has joined #ruby
pandaant has quit [Remote host closed the connection]
<ddv> in the end you need to consult a lawyer who specializes in this sort of stuff
<bogn> will ldd on unicorn help me find an answer
<bogn> there's a legal department here and they are asking me that question
<bogn> I can't answer it
<adaedra> there's no linking when using ruby gems.
mattwildig has quit [Ping timeout: 252 seconds]
dgncn has joined #ruby
dc1 has quit [Ping timeout: 244 seconds]
zenspider has joined #ruby
saneax is now known as saneax_AFK
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
nerium has quit [Quit: nerium]
y0da has joined #ruby
bb010g has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
<bogn> is this true for ruby processes like unicorn and sidekiq as well, that have native extensions?
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<adaedra> they link to themselves and their own dependencies
mdw has quit [Quit: Sleeping Zzzzz]
stannard has joined #ruby
blackmesa has joined #ruby
gagrio has joined #ruby
davedev24 has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
stannard has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
atmosx has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
y2mq37 has quit [Ping timeout: 250 seconds]
binaryplease has joined #ruby
despai has quit [Ping timeout: 252 seconds]
paatala_bhairavi has quit [Quit: Leaving]
ItSANgo has joined #ruby
elaptics is now known as elaptics`away
charliesome has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
eurialo has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
Snowy is now known as FatSnowy
dmonster has joined #ruby
dionysus69 has joined #ruby
douglascorrea has joined #ruby
idefine has joined #ruby
Guest54221 is now known as James
James is now known as Guest18146
douglascorrea has quit [Ping timeout: 248 seconds]
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
douglascorrea has joined #ruby
duckpuppy has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
godzillaenlacasa has joined #ruby
rmulligan has joined #ruby
DJ_Spies has quit [Ping timeout: 252 seconds]
<darix> adaedra bogn: dlopen loads it into your programs space.
<darix> that means the GPL restrictions apply again
ramfjord has quit [Ping timeout: 260 seconds]
<darix> bogn: hosted app or do you ship the rails app?
synthroid has joined #ruby
<bogn> we ship it
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
shanemcd has quit [Remote host closed the connection]
mattwildig has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<bogn> We ship it. darix where did you find out that ruby gems or specifically unicorn/sidekiq use dlopen to load into programs space
charliesome_ has joined #ruby
<darix> bogn: that is a standard thing on linux/unix to load plugins
<darix> and that's what native extensions are for linux
DJ_Spies has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
Sembei has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
Pisuke has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
myntcake has joined #ruby
myntcake_ has joined #ruby
myntcake_ has quit [Remote host closed the connection]
<bogn> but using dlopen means dynamic linking, so that would be my answer then
<bogn> or am I wrong
sandstrom has joined #ruby
s00pcan has joined #ruby
deuterium has joined #ruby
hgl has joined #ruby
Jardayn has joined #ruby
nerium has joined #ruby
groundnuty has left #ruby ["WeeChat 0.4.2"]
AlphaAtom has joined #ruby
candelabra has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<candelabra> Hey all, is there any utility that I can run, which can output the lowest compatible version of ruby for a script?
<candelabra> I've got a script I wrote a while back someone wants to use and I just wanted to be able to say "needs ruby >X.xx
AlphaAtom has quit [Client Quit]
<shevy> if you'd have a .gemspec file for a given gem, you could specify that as a dependency including the version
nando293921 has joined #ruby
<shevy> then it would be e. g. .required_ruby_version = '>= 2.3.0'
karapetyan has joined #ruby
<candelabra> shevy: that's a good idea, but I was more looking for something that would read my script and see "oh this array method is only available in ruby version >2.1"
Xeago_ has joined #ruby
<shevy> I see
karapetyan has quit [Remote host closed the connection]
<shevy> don't know of a project that tries that, perhaps someone else here knows
s00pcan has quit [Remote host closed the connection]
karapetyan has joined #ruby
krz has joined #ruby
eregi has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
adgtl has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 244 seconds]
dmonster has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
<godzillaenlacasa> could there be potential conflicts with RVM and Rbenv installed on the same machine?
<adaedra> Why would you do that?
bweston92 has quit [Remote host closed the connection]
casadei has joined #ruby
<godzillaenlacasa> no clue... inheritied machine
mdw has joined #ruby
skade has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
<adaedra> Remove them all and use chruby :p
<godzillaenlacasa> @adaedra I'm not going to wipe it all clean... from what I can tell, some of the projects use rbenv while some use rvm
supplication has joined #ruby
s00pcan has joined #ruby
<adaedra> What do you mean by "Use rbenv" and "Use RVM"
<godzillaenlacasa> @adaedra I realized what I said right after I typed... I'm going to uninstall rvm.
Chagel has quit [Ping timeout: 276 seconds]
DmitryBochkarev has joined #ruby
baweaver has joined #ruby
juanfra has quit [Disconnected by services]
juanfra_ has joined #ruby
TheNet has joined #ruby
graffix222 has joined #ruby
<darix> bogn: dynamic linking does *not* excempt you from the GPL
mondok has joined #ruby
<darix> bogn: and again unicorn is dual licensed. not just GPL
mdw has quit [Quit: Sleeping Zzzzz]
<shevy> godzillaenlacasa I think you have at least two different bin/ruby then right? And they must know the full location to these
leksster__ has joined #ruby
leksster_ has quit [Ping timeout: 244 seconds]
<bogn> regarding unicorn they actually didn't ask the shared/dynaming linking question only whether we modified it
<godzillaenlacasa> @shevy yes, i believe so... I'm getting gem conflicts so was looking into why
<bogn> they asked the linking question regarding kgio, raindrobs and sidekiq all of which are LGPL
<bogn> raindrobs = raindrops
<bogn> kgio and raindrops are dependencies of unicorn
karapetyan has quit [Remote host closed the connection]
Dreeg has joined #ruby
Chagel has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<darix> bogn: LGPL is not a problem
<darix> bogn: if you use GPL-ed libraries the whole program becomes GPL
RegulationD has joined #ruby
<bogn> I don't think it'll make sense for me to answer that
<darix> ;)
<bogn> I'll try to come out with that excerpt: http://programmers.stackexchange.com/a/141848 that adaedra posted
<bogn> the part that is "work that uses the Library" and that this is out of scope of the license
aryaching has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<kgirthofer> does anyone have any experience setting up gem in a box? I just launched a new centos box and got to the point of rackup - but my connection is refused
Mio-chan has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
<darix> bogn: real fun starts when you need a GPL-2.0 and GPL-3.0 licensed library e.g. :p
arbys has joined #ruby
arbys has quit [Max SendQ exceeded]
<darix> bogn: if your app is threadsafe you can use puma
Rodya_ has joined #ruby
<darix> which is BSD-3-Clause
arbys has joined #ruby
Mio-chan has joined #ruby
RTG` has quit [Ping timeout: 246 seconds]
Chagel has quit [Quit: Lost terminal]
<bogn> as per the comment below that SO answer I will also include the source code of kgio, raindrops and sidekiq in the distribution. It is referring to
<bogn> When you distribute the library with your application (or on its own), you need to include source code for the library. But if your application instead requires users to obtain the library on their own, you don't need to provide source code for the library.
InternetFriend has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
crystal77 has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
<darix> bogn: not the issue. you load a GPL-ed library into the app you sell. therefor the app is under GPL -> therefor an user can ask you for the complete source of your app.
<darix> anyway
<darix> good luck with that. back to work
<bogn> as I'm intending to use bundle install --deployment to include all gems in vendor/bundle I'm distributing the library and thus I will include their source code
RTG` has joined #ruby
<darix> bogn: follow the recent discussions on ZFS and ubuntu
ramortegui has joined #ruby
anisha has quit [Quit: Leaving]
mary5030 has joined #ruby
croberts has joined #ruby
Rodya_ has quit [Ping timeout: 244 seconds]
atmosx has quit [Remote host closed the connection]
Guest18146 is now known as James
dtordable has joined #ruby
James is now known as Guest78161
shanemcd has joined #ruby
rmulligan has joined #ruby
freerobby has quit [Ping timeout: 244 seconds]
candelabra has quit [Quit: Leaving]
idletask has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
Uber|Dragon has quit [Ping timeout: 252 seconds]
shanemcd has quit [Ping timeout: 240 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
sepp2k has quit [Quit: Leaving.]
sgambino has joined #ruby
platzhirsch has left #ruby [#ruby]
n008f4g_ has quit [Ping timeout: 276 seconds]
ensom42 has quit [Remote host closed the connection]
platzhirsch has joined #ruby
cdg_ has joined #ruby
scripore has joined #ruby
chouhoulis has joined #ruby
sepp2k has joined #ruby
platzhirsch has quit [Ping timeout: 268 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
anisha has joined #ruby
idletask has joined #ruby
InternetFriend has quit [Ping timeout: 276 seconds]
justbleed has joined #ruby
InternetFriend has joined #ruby
htmldrum has joined #ruby
trinaldi has quit [Ping timeout: 250 seconds]
Amnez777 has quit [Ping timeout: 276 seconds]
aegis3121 has joined #ruby
haylon has joined #ruby
fullofcaffeine has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Guest34101 has joined #ruby
terlar has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
charliesome_ has quit [Ping timeout: 260 seconds]
floatingpoint has joined #ruby
swills has joined #ruby
danjam has joined #ruby
DaniG2k has joined #ruby
Timberwo|f has joined #ruby
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
InternetFriend has quit [Ping timeout: 244 seconds]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
Timberwo|f has quit [Max SendQ exceeded]
x77686d has joined #ruby
Xeago_ has quit [Remote host closed the connection]
sudoubuntu has joined #ruby
ramfjord has joined #ruby
InternetFriend has joined #ruby
babblebre has joined #ruby
bluOxigen has joined #ruby
konsolebox has joined #ruby
Amnez777 has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
danjam has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Xeago has joined #ruby
gr0g_ has joined #ruby
nogic has joined #ruby
gr0g_ has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 252 seconds]
icey has quit [Remote host closed the connection]
deuterium has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
icey has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
<Bish> when giving a proc as a block
<Bish> why do i still have to prefix it with a & i thought that is for converting TO proc
norc has joined #ruby
<Bish> or is it to tell the method "this is the block not a parameter"
mostlybadfly has quit [Quit: Connection closed for inactivity]
SeerKan has joined #ruby
<SeerKan> hi guys, anybody available to help me with a very strange problem ? I have an ruby 1.8.7 app setup with nginx+passenger (latest) that simply refuses to serve the application and can't get any error out of passenger. Also the app seems ok, if I start it with thin it works fine, also it works on an old server where there is nginx+unicorn used.
<havenwood> Bish: yup, convert to proc (if neeeded) and use as block
<SeerKan> Any suggestion would be very appreciated, I'm kind of stuck...
<SeerKan> the general nginx+passenger setup is ok, it's done using automation with the same playbook done on several other servers/projects and all work without any problems (including an old app also using 1.8.7)
blackmesa has joined #ruby
sandstrom has joined #ruby
arbys has quit [Quit: Leaving]
anisha_ has joined #ruby
trinaldi has joined #ruby
<ddv> SeerKan: 1.8.7 ?
<SeerKan> yes ddv... unfortunately it's an old/huge project that needs time to be rewritten
anisha has quit [Ping timeout: 250 seconds]
Yiota has joined #ruby
Yiota has joined #ruby
<n1colas> Hello
chouhoul_ has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
anisha has joined #ruby
<shevy> upgrade to 2.3.0!
rdavila has joined #ruby
sts_ has left #ruby [#ruby]
evidex has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 252 seconds]
whippythellama has joined #ruby
Rodya_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
hxegon has joined #ruby
konsolebox has quit [Quit: Leaving]
<SeerKan> yeah shevy I know... but that really doesn't solve my issue...
Xeago has joined #ruby
stannard has joined #ruby
Xeago has joined #ruby
ropeney has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
Xeago_ has joined #ruby
Guest78161 is now known as James
polishdub has joined #ruby
James is now known as Guest90486
diegoviola has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
adgtl has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop_ has quit [Remote host closed the connection]
jottr has joined #ruby
whippythellama has quit [Ping timeout: 248 seconds]
idefine_ has joined #ruby
Uber|Dragon has joined #ruby
krobzaur has quit [Quit: WeeChat 0.4.2]
duckpuppy has quit [Ping timeout: 264 seconds]
harly has quit [Read error: Connection reset by peer]
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
sudoubuntu has joined #ruby
douglascorrea has quit []
<olli_> I've question about ubuntu & rake. There're two 'rake' scripts in PATH. One is generated by ruby-gems and is executed 1st (and fails), the second is from ubuntu package (and is working). "gem list|grep rake" shows two installed versions: 10.3.2 (/usr/share/rubygems-integration/all) and 10.1.0,default (/usr/lib/ruby/gems/2.1.0) , both ubuntu /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake show --version "10.3.2" (fun
<olli_> ny,yep?) . So what should I do w/ this mess? Deletion of one of conflicting 'rake' in PATH doesn't help. Though both rake binaries executed w/ full path prefix ( /usr/bin/rake and /usr/lib/ruby/gems/2.1.0/gems/rake-10.1.0/bin/rake) work okay with tests I execute via Rakefile .
sudoubuntu has quit [Client Quit]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
schickung has quit [Quit: schickung]
jgpawletko has left #ruby [#ruby]
terlar has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
Timberwo|f has joined #ruby
sudoubuntu has joined #ruby
siaw has joined #ruby
thevaliantx has joined #ruby
sudoubuntu has quit [Client Quit]
Dragooon has quit [Ping timeout: 260 seconds]
<olli_> anyone?
LoneHermit has quit [Ping timeout: 252 seconds]
<shevy> dunno, I never got into rake
<morfin> too bad
eregi has joined #ruby
<morfin> i use rvm and no packages
whippythellama has joined #ruby
<morfin> btw i have a question about rake - is there way to handle exceptions properly?
Rodya_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
tuelz has joined #ruby
dhollinger has joined #ruby
<morfin> ah nvm, seems like same way as regular exceptions handled
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<tuelz> hmm, I'm expect flat_map(&:id) and flatten.map(&:id) to do the same thing, but the former throws an error no id on array when ran on `[[#<Category id: 94187, ...>]]`
<tuelz> is that expected behavior?
eregi has quit [Ping timeout: 252 seconds]
<tuelz> maybe because activerecord does weird things on top of arrays?
idefine has quit [Ping timeout: 248 seconds]
mondok has quit [Ping timeout: 246 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<aegis3121> #flat_map calls the block on each element of the enum. In your case, the elements of your enum are arrays.
Nyammy_Work has quit [Read error: Connection reset by peer]
<tuelz> ahh, gotcha
SeerKan has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mallu has joined #ruby
howdoi has joined #ruby
The_Phoenix has joined #ruby
crystal77 has joined #ruby
<havenwood> tuelz: `flat_map(&)` is like `map(&).flatten(1)`
dhollinger has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
<aegis3121> That's a better explanation, thanks havenwood
mdw has joined #ruby
blandflakes has joined #ruby
niksrc has joined #ruby
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tuelz> thanks
Xeago has joined #ruby
dhollinger has joined #ruby
evidex has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
ferr has quit [Quit: WeeChat 1.4]
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
<morfin> >> raise "somestring"
jas02 has quit [Quit: jas02]
<ruby[bot]> morfin: # => somestring (RuntimeError) ...check link for more (https://eval.in/530492)
mary5030 has joined #ruby
<morfin> >> RuntimeError.new("somestring")
<ruby[bot]> morfin: # => #<RuntimeError: somestring> (https://eval.in/530495)
<morfin> hm
crowell has quit [Ping timeout: 276 seconds]
maikowblue has joined #ruby
SenpaiSilver has joined #ruby
polishdub has quit [Quit: Leaving]
nfk has joined #ruby
dionysus69 has joined #ruby
ruby-lang448 has joined #ruby
<ruby-lang448> Has anyone used the treat gem before?
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
crowell has joined #ruby
anisha has quit [Quit: Leaving]
shinnya has joined #ruby
rmulligan has joined #ruby
Xeago has quit [Remote host closed the connection]
<tuelz> I've never used it before, but you'll get much better results stating your problem rather than asking if anyone has ever used X
d0nn1e has quit [Ping timeout: 246 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
ta_ has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
Hammy_Work has joined #ruby
terlar has joined #ruby
d0nn1e has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
dopamean_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
thevaliantx has quit [Quit: Leaving]
pdoherty has joined #ruby
<binaryplease> I would like to create a text-based multimessenger because finch sucks. Anyone has any tips on how to start interacting with libpurple? I found the gems purple_ruby and ruborple but thet seem to be unmaintened. Lat commit 5 years ago.
ta_ has quit [Ping timeout: 248 seconds]
<binaryplease> any tips on ruby + libpurple (or maybe telepathy?)
mondok has joined #ruby
olli_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
stardiviner has joined #ruby
shanemcd has joined #ruby
<adaedra> I already read that somewhere
Xeago has joined #ruby
eregi has joined #ruby
schickung has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
Guest90486 is now known as James
James is now known as Guest18371
DaniG2k has quit [Quit: leaving]
voobscout has joined #ruby
shanemcd has quit [Ping timeout: 264 seconds]
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
marr has quit [Ping timeout: 260 seconds]
<ruby-lang448> @tuelz My problem is that I can't download some models necessary for the gem so my question is quite literally "Has anyone use treat before" because I want to know if anyone would happen to have those models on their local machine
mustmodify has joined #ruby
codecop has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
polishdub has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
<mustmodify> We're looking at moving from Louisiana. Probably the Carolinas or California. Or if it's trump v clinton, some other country. Anyway, wondering where I can get data about concentrations of Ruby devs. Louisiana has few nerds and I'd love to be in a stronger dev / nerd community.
Guest34101 has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<mustmodify> I was thinking there might be geodata from rubygems.org.
<mustmodify> or I could just look for ruby groups in that area, but it's hard to know about strength of community.
<mustmodify> from those data.
uglybandersnatch has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
nettoweb has joined #ruby
<adaedra> mustmodify: http://rubyusergroups.org/ ?
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
uglybandersnatch has quit [Ping timeout: 268 seconds]
sneakerhax has quit [Ping timeout: 260 seconds]
<mustmodify> adaedra: nice, I hadn't seen that.
Lucky_ABA has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
diegoviola has quit [Read error: No route to host]
Mon_Ouie has quit [Ping timeout: 250 seconds]
eregi has quit [Read error: Connection reset by peer]
tjohnson has joined #ruby
The_Phoenix has joined #ruby
ruby-lang448 has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
TheNet has joined #ruby
decaff has quit [Ping timeout: 260 seconds]
krobzaur has joined #ruby
atmosx has joined #ruby
krobzaur has left #ruby [#ruby]
aufi has quit [Quit: Konversation terminated!]
hxegon has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
evidex has quit [Remote host closed the connection]
fostertheweb has joined #ruby
tvw has joined #ruby
hxegon has joined #ruby
diegoviola has joined #ruby
IrishGringo has joined #ruby
polishdub has quit [Quit: Leaving]
dopamean_ has quit [Read error: Connection reset by peer]
dopamean_ has joined #ruby
RTG` has quit [Ping timeout: 252 seconds]
hogetaro has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
voobscout has quit [Quit: bye]
RTG` has joined #ruby
isxek has quit [Remote host closed the connection]
roshanavand has joined #ruby
Timberwo|f has quit [Quit: Sleep.]
roshanavand has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
roshanavand has joined #ruby
bubbys has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 276 seconds]
synthroid has quit [Remote host closed the connection]
Khoyo has joined #ruby
rmulligan has joined #ruby
idefine has joined #ruby
eurialo has quit [Ping timeout: 276 seconds]
bubbys has joined #ruby
bubbys has quit [Client Quit]
moeabdol has joined #ruby
nerium has quit [Quit: nerium]
nando293921 has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Quit: Leaving.]
nando293921 has quit [Client Quit]
RegulationD has joined #ruby
The_Phoenix has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
The_Phoenix has quit [Max SendQ exceeded]
voobscout has joined #ruby
dhollinger has joined #ruby
mfaeh has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
adgtl has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
intrigueD has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
atmosx has quit [Quit: This is aparting message!]
intrigueD has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
jottr has joined #ruby
shanemcd has quit [Remote host closed the connection]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
amclain has joined #ruby
nisstyre has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
marxarelli has joined #ruby
Limix has joined #ruby
aegis3121 has quit [Ping timeout: 268 seconds]
janno has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Limix has quit [Client Quit]
dopamean_ has quit [Ping timeout: 264 seconds]
jobewan has quit [Ping timeout: 276 seconds]
Guest18371 is now known as James
tvw has quit []
TheNet has quit [Quit: Textual IRC Client: www.textualapp.com]
ohcibi has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 240 seconds]
James is now known as Guest14269
[Butch] has joined #ruby
tvw has joined #ruby
Limix has joined #ruby
mattwildig has quit [Remote host closed the connection]
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
decaff has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
voker57 has joined #ruby
voker57 has joined #ruby
Lucky_ABA has joined #ruby
janno has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
ropeney has joined #ruby
mfaeh has joined #ruby
n1colas has quit [Quit: WeeChat 1.4]
terlar has quit [Ping timeout: 248 seconds]
hxegon is now known as hxegon_AFK
Jardayn has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
hxegon_AFK is now known as hxegon
nogic has quit [Ping timeout: 246 seconds]
hxegon is now known as hxegon_AFK
pwnd_nsfw has quit [Read error: Connection reset by peer]
igam has quit [Ping timeout: 244 seconds]
pwnd_nsfw has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
mondok has quit [Ping timeout: 240 seconds]
j0n3_ has quit [Quit: Leaving]
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
FatSnowy has quit [Quit: ragequit]
ivanskie has joined #ruby
poguez_ has joined #ruby
NeckBeardPrince has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
nogic has joined #ruby
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PONG :verne.freenode.net"]
nogic has quit [Max SendQ exceeded]
_ht has joined #ruby
nogic has joined #ruby
LoganG has quit [Ping timeout: 250 seconds]
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
sneakerhax has joined #ruby
eregi has joined #ruby
nogic has joined #ruby
zast has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
eurialo has joined #ruby
rdark has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
snockerton has joined #ruby
nogic has quit [Max SendQ exceeded]
maner has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
diego4 has joined #ruby
Jardayn has joined #ruby
krz has quit [Quit: WeeChat 1.2]
diegoviola has quit [Ping timeout: 240 seconds]
cb` has joined #ruby
bogn has quit [Quit: Leaving.]
diego4 has quit [Changing host]
diego4 has joined #ruby
jaruga has quit [Quit: jaruga]
diego4 is now known as diegoviola
KensoDev has joined #ruby
maletor has joined #ruby
supplication has quit [Ping timeout: 268 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has joined #ruby
blackms has quit [Quit: Leaving]
rdark has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
graffix222 has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 260 seconds]
intrigueD has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
flughafen_ has joined #ruby
sandstrom has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
baweaver has quit [Ping timeout: 268 seconds]
idefine has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
evenix has joined #ruby
<evenix> is there a slcak hannel for this?
Guest87039 has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
gizmore has joined #ruby
mostlybadfly has joined #ruby
al2o3-cr has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
ur5us has joined #ruby
Sucks has joined #ruby
Limix has joined #ruby
graffix has joined #ruby
al2o3-cr has joined #ruby
Jardayn has quit [Quit: Leaving]
<Limix> Instead of [1,2,3].map{|item| item + 1}
Jardayn has joined #ruby
<Limix> can I somehow call [1,2,3].map(my_method)
<Limix> I’ve tried .map(:my_method) and (&:my_method)
<Limix> neither work, any ideas?
<al2o3-cr> Limix: .map(&method)
<Limix> ah!
<Limix> thank you
<al2o3-cr> np
Xeago has joined #ruby
<mustmodify> Limix:
<mustmodify> >> [1,2,3].map( &:next )
<Ox0dea> >> def inc x; x + 1; end; [1,2,3].map(&method(:inc)) # Limix
<ruby[bot]> Ox0dea: # => [2, 3, 4] (https://eval.in/530655)
<mustmodify> wait, why didn't that work?
<mustmodify> >> puts 'a'
<mustmodify> the bot hates me.
ivanskie has quit []
troulouliou_div2 has quit [Remote host closed the connection]
bricker has joined #ruby
y2mq37 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
ivanskie has joined #ruby
IrishGringo has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
mattwildig has joined #ruby
<Gasher> hi, in Ruby "./" accesses shell's current folder. how to access the folder in which the Ruby file is located instead?
intrigueD has quit [Remote host closed the connection]
shanemcd has joined #ruby
<Ox0dea> Gasher: `__dir__` should do the trick.
<eam> Gasher: $0 is the path to the script being executed. File.basename will give you the path component
<Gasher> thanks
supplication has joined #ruby
Guest14269 is now known as James
James is now known as Guest43896
darkf has quit [Quit: Leaving]
<Gasher> __dir__ is what I was looking for :)
al2o3-cr has quit [Ping timeout: 260 seconds]
hxegon_AFK has quit [Quit: BRB]
<Gasher> Ox0dea; you just helped revolutionising Linux package management :D
al2o3-cr has joined #ruby
Xeago has quit [Remote host closed the connection]
<manveru> Gasher: you also working on Nix? :)
<Gasher> manveru; nope, what is it?
<Ox0dea> Gasher: Is that so? Are you going to unite us all and bring about the year of the Linux desktop?
<manveru> Gasher: http://nixos.org/nix/
<Gasher> Ox0dea; I'll do my best
<Ox0dea> Gasher: Godspeed. :)
benlieb has joined #ruby
LoganG has joined #ruby
<Gasher> do you hate so many folders for software? /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and even more?
rikkipitt has joined #ruby
<Gasher> my manager will unite everything ^^
ramfjord has quit [Ping timeout: 276 seconds]
<Ox0dea> Arch doesn't really have that problem. ^_^
despai has joined #ruby
<Gasher> Ox0dea; it doesn't, but the way they've done it is messy
ljames has quit []
<Gasher> afaik, I didn't use Arch much
Guest38 has joined #ruby
<manveru> Gasher: see, nix solved that :P
pdoherty has joined #ruby
<Canar> Gasher: /home/user/bin don't forget
<Gasher> I'm looking at it, it seems to me that it wants to achieve a similar goal
<Gasher> I'm not sure if the way we do it will be similar
<Gasher> Snappy does the same thing
codecop has joined #ruby
<Gasher> Canar; oh yes ;) it varies from distro to distro slightly tho
f4cl3y has quit [Ping timeout: 268 seconds]
<Gasher> I have that crazy goal of creating a distro, and I'm creating the package manager to be suited for it, but I think everyone will be able to use it in other places too
<manveru> well, good luck :)
roobienoobie has joined #ruby
<Gasher> with Plum, you'll be able to just paste a folder with some software, append a bit of YAML and you're good to go, the app is fully functional
<Gasher> thanks manveru
snakeryslug has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
fullofca_ has joined #ruby
agit0 has joined #ruby
marr has joined #ruby
wtrocki has joined #ruby
roobienoobie has quit [Client Quit]
<wtrocki> hi quick question
<wtrocki> def serverConnections=Array.new;
<wtrocki> serverConnections.push(:name => ipaddr,
<wtrocki> :user => defaultUser);
djbkd has joined #ruby
<Ox0dea> That's a paddlin'.
<wtrocki> what is the name of the think placed as push argument?
<wtrocki> new to ruby need to do something in chef quickly
<Ox0dea> That's essentially an implicit Hash.
<manveru> Hash
<wtrocki> oh..
fullofcaffeine has quit [Ping timeout: 250 seconds]
<wtrocki> is there implicit array
<wtrocki> instead of defining Array.new
<wtrocki> ?
<wtrocki> thanks a lot
<manveru> []
<wtrocki> now I now how to google it
<wtrocki> +10000 for manveru
stannard has quit [Remote host closed the connection]
<wtrocki> thanks a lot - you saved my day
tftp has joined #ruby
<Ox0dea> wtrocki: https://eval.in/530674
<Ox0dea> That's what I meant by "implicit".
<Ox0dea> It doesn't have to be a Hash literal like `{a: 1, b: 2}`.
<manveru> what you want is; serverConnections = [{name: ipaddr, user: defaultUser}]
<Ox0dea> manveru: No need for the braces. :)
Xeago has joined #ruby
stannard has joined #ruby
<eam> >> [0][0]
<ruby[bot]> eam: # => 0 (https://eval.in/530675)
<eam> the robot face
zeroDivisible has joined #ruby
karapetyan has joined #ruby
htmldrum has joined #ruby
e1z0 has joined #ruby
<eam> Array oughta have #to_int defined as #size
skade has joined #ruby
Xeago has quit [Remote host closed the connection]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sandstrom has quit [Quit: My computer has gone to sleep.]
dfockler has joined #ruby
<Ox0dea> Ruby should be Perl, you say?
<snakeryslug> hello. very new to ruby. i'm testing out this cli for gmaps distance https://github.com/zavan/google_maps_api-distance_matrix. when i run this ruby file https://gist.github.com/anonymous/0a2c729e53f0646968b9 with `ruby <file>`, i get an uninitialized constant GoogleMapsAPI. I even had this Gemfile https://gist.github.com/anonymous/b2f1e77f77f5c2610852 and ran bundle before i tried to interpret my ruby file. any suggestions on how i
<snakeryslug> should debug this. thank you
diego3 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
ur5us has joined #ruby
<eam> Ox0dea: every little bit helps
htmldrum has quit [Ping timeout: 248 seconds]
Limix has quit [Quit: Limix]
diegoviola has quit [Ping timeout: 240 seconds]
Lucky_ABA has quit [Read error: Connection reset by peer]
Yiota has quit [Remote host closed the connection]
diego4 has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
diego4 is now known as diegoviola
Yiota has joined #ruby
<manveru> snakeryslug: `bundle exec ruby <file>`
harryh has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
diego3 has quit [Ping timeout: 250 seconds]
<snakeryslug> manveru: unfortunately that results in the same error
rmulligan has joined #ruby
<drbrain> snakeryslug: you need to require 'google_maps_api/distance_matrix'
n1colas has joined #ruby
jottr_ has joined #ruby
Limix has joined #ruby
<snakeryslug> drbrain: it said it can't load such a file.
<Ox0dea> snakeryslug: That should be 'google_maps_api/directions'.
<Ox0dea> You linked to the wrong GitHub repository, I think.
<drbrain> snakeryslug: ↑
<snakeryslug> oh crap. that would make it hard to help me lol
<snakeryslug> sorry
jottr has quit [Ping timeout: 276 seconds]
<drbrain> no worries
<drbrain> I didn't look at your Gemfile, so I didn't notice the discrepancy
shanemcd has quit [Remote host closed the connection]
treaki has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
juanfra_ has quit [Quit: juanfra_]
nettoweb has joined #ruby
<snakeryslug> how did y'all figure that out? i'm getting another strange error, but the googlemapsapi object is initialized.
elifoster has joined #ruby
ur5us has quit [Remote host closed the connection]
<Ox0dea> eam: Surely you don't *all* of these should be coercible to integers? https://eval.in/530700
<Ox0dea> I accidentally a "think".
justbleed has joined #ruby
juanfra has joined #ruby
<eam> hm, why not?
idefine has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ is now known as jottr
<drbrain> eam: what does {} + 1 equal?
shanemcd has joined #ruby
sandstrom has joined #ruby
<drbrain> or File.stat('/') + 1?
<eam> one, of course
zast has quit [Remote host closed the connection]
<drbrain> why?
justbleed is now known as TomPeed
roshanavand has joined #ruby
<adaedra> Did I step into #javascript?
idefine has quit [Ping timeout: 244 seconds]
<eam> drbrain: why not?
<drbrain> because {} doesn't have an obvious numeric value
<eam> size is kinda obvious, no?
<eam> anyway I'm not suggesting any of those should - only suggesting []
<drbrain> {}.size + 1 makes sense
<drbrain> but not {} + 1
<drbrain> the types aren't compatible
<eam> but I did entertain Ox0dea's idea with "why not" because it's a fun discussion
<drbrain> oh, it is
Limix has quit [Quit: Limix]
<eam> drbrain: I guess it depends if you think there's an inherent numeric trait, it's a bit odd to reason that [] has an inherent size but {} does not
<eam> as they're both collections of objects
<eam> (organizational structure aside)
<snakeryslug> when i ran the script with `bundle exec ruby -wd .\m.rb 2> err.out` and got this error output https://gist.github.com/anonymous/dd87f472a3e519be8ad4
<eam> where this conversation takes a hard turn is when we look at what Perl does with "{} + 1"
<eam> perl -wle'$x={}; print $x + 1' # 140224189443817
<eam> its numeric value is the pointer :(
<eam> obj_id equiv, I suppose
karapetyan has quit [Remote host closed the connection]
sp4rrow has joined #ruby
<eam> anyway I just wanted to write [][[]]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<eam> or [[]][[]]
Rodya_ has quit [Remote host closed the connection]
davedev2_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
pdoherty has quit [Ping timeout: 248 seconds]
bricker has joined #ruby
n1colas has quit [Quit: WeeChat 1.4]
ramfjord has joined #ruby
nerium has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
<drbrain> oh, if you want to do bizarre things like ↑ I approve!
n1colas has joined #ruby
hangelo has joined #ruby
<drbrain> snakeryslug: when you add `-d` ruby prints out every exception raised even if it is rescued
araujo has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
araujo has joined #ruby
boboc has joined #ruby
boboc has quit [Remote host closed the connection]
<drbrain> so if you turn off -d we'll be able to see the problem you're having better
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
configged has joined #ruby
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
dfockler has quit [Ping timeout: 246 seconds]
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
adgtl has quit [Remote host closed the connection]
spider-mario has joined #ruby
stannard has quit [Remote host closed the connection]
<flughafen_> @list.each { |x| puts "Index: #{@list.index(x)}: #{x.to_s}" } <- this is producing some weird results, the @list.index is printing after x.to_s
tftp has quit [Ping timeout: 244 seconds]
<flughafen_> or at least I wouldn't expect it to work that way
InternetFriend has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
Guest34101 has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
fostertheweb has joined #ruby
<adaedra> flughafen_: unrelated, but you can use each_with_index and not have to refetch the index at each iteration.
chocoelho has joined #ruby
<flughafen_> thanks adaedra
Guest43896 is now known as James
TomyWork has quit [Ping timeout: 244 seconds]
neohunter has joined #ruby
James is now known as Guest49045
nibbo has joined #ruby
neohunter has quit [Max SendQ exceeded]
mfaeh has quit []
PlasmaStar has joined #ruby
pdoherty has joined #ruby
ur5us has joined #ruby
skweek has joined #ruby
graydot has joined #ruby
idefine has joined #ruby
Xeago has joined #ruby
rodfersou has quit [Quit: leaving]
supplication has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
the_drow has joined #ruby
kirun has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
dgncn has quit [Quit: Leaving]
Sucks has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
Guest34101 has quit [Ping timeout: 250 seconds]
chocoelho has quit []
inukshuk_ has joined #ruby
wildlander has joined #ruby
<flughafen_> >> puts "hi"
gigetoo has quit [Ping timeout: 248 seconds]
<adaedra> flughafen_: need to be registered.
InternetFriend has joined #ruby
kirillzh has joined #ruby
<flughafen_> ah
<flughafen_> >> puts "hi"
<ruby[bot]> flughafen_: # => hi ...check link for more (https://eval.in/530731)
<flughafen_> oh yeah.
kirillzh has quit [Max SendQ exceeded]
dfockler has joined #ruby
gigetoo has joined #ruby
kirillzh has joined #ruby
diegoviola has quit [Ping timeout: 276 seconds]
sauvin has quit [Remote host closed the connection]
fullofca_ has quit [Remote host closed the connection]
lvn has joined #ruby
fullofcaffeine has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
andikr has quit [Remote host closed the connection]
mdw has joined #ruby
niksrc has quit [Quit: Leaving]
baweaver has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
rmulligan has joined #ruby
wtrocki has quit [Ping timeout: 260 seconds]
y0da is now known as but3k4
SCHAAP137 has joined #ruby
mattwildig has quit [Remote host closed the connection]
axl_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has quit [Ping timeout: 252 seconds]
fullofca_ has joined #ruby
eregi has joined #ruby
Cohedrin has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
eregi_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
eregi has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
kirillzh has joined #ruby
TomyLobo has joined #ruby
fullofca_ has quit [Remote host closed the connection]
Dimik has joined #ruby
ASTP001 has joined #ruby
ASTP001 has joined #ruby
ASTP001 has quit [Client Quit]
sneakerhax has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
Xeago has quit [Remote host closed the connection]
e4xit has joined #ruby
Authenticator has joined #ruby
ASTP001 has joined #ruby
idefine has quit [Remote host closed the connection]
ASTP001 has left #ruby [#ruby]
idefine has joined #ruby
<Authenticator> Does anyone here have experience with Keyczar? I'm trying to replicate an older program either manually (parse Keyczar format, handle raw RSA ...) or using the keyczar_ruby library.
<flughafen_> >> class a; def to_s() ; puts "x"; end; end;
<ruby[bot]> flughafen_: # => /tmp/execpad-8b10ec82f134/source-8b10ec82f134:2: class/module name must be CONSTANT ...check link for more (https://eval.in/530733)
eurialo has quit [Ping timeout: 240 seconds]
dgncn has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
BtcBen has joined #ruby
Limix has joined #ruby
hxegon has joined #ruby
<Ox0dea> eam: That was sort of the point I meant to make; it'd be "surprising" for Array to coerce by way of #size if those semantics weren't applied to everything else in that list.
snakeryslug has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
skade has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
hxegon has quit [Ping timeout: 252 seconds]
hxegon has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
bitemyapp has joined #ruby
<bitemyapp> I'm using standalone migrations and can't get it to generate a structure.sql that doesn't have the "SQL_ASCII" encoding. I feel like I'm doing something wrong as I've set the encoding to unicode or utf8 in my database configs and that changes nothing. What do I need to do?
<bitemyapp> I documented my issue a bit here: https://github.com/thuss/standalone-migrations/issues/118
mdw has quit [Quit: Sleeping Zzzzz]
the_drow has quit [Quit: This computer has gone to sleep]
<idletask> I was waaay too optimistic
baweaver has joined #ruby
jeanlinux has joined #ruby
hxegon is now known as hxegon_AFK
statelesscode has joined #ruby
Rodya_ has joined #ruby
hxegon_AFK is now known as hxegon
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
uglybandersnatch has joined #ruby
stannard has quit [Remote host closed the connection]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Don_John has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
Rodya_ has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
idefine has quit [Remote host closed the connection]
idefine_ has joined #ruby
mattwildig has joined #ruby
<flughafen_> >> class A; def to_s() ; puts "x"; end; end; a = A.new ; puts a.to_s
<ruby[bot]> flughafen_: # => x ...check link for more (https://eval.in/530736)
amargherio has joined #ruby
rikkipitt has joined #ruby
Guest49045 is now known as James
James is now known as Guest71661
<flughafen_> >> class A; def to_s() ; puts "x"; end; end; class B; @a = A.new; def to_s(); puts "Y #{a.to_s}" ; end;end b = B.new ; b.to_s
<ruby[bot]> flughafen_: # => /tmp/execpad-542f3fae4e33/source-542f3fae4e33:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/530740)
GinoManWorks has joined #ruby
<Ox0dea> ruby[bot]: Custom definitions of #to_s must return a String, not nil.
<Ox0dea> flughafen_: ^
pdoherty has quit [Ping timeout: 244 seconds]
crowell has quit [Ping timeout: 276 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
<flughafen_> >> class A; def to_s() ; puts "x"; end; end; class B; @a = A.new; def to_s(); puts "Y #{@a.to_s}" ; end;end; b = B.new ; b.to_s
<ruby[bot]> flughafen_: # => Y ...check link for more (https://eval.in/530744)
<flughafen_> that's hella truncated output
roshanavand has joined #ruby
Uber|Dragon has quit [Ping timeout: 260 seconds]
<flughafen_> Ox0dea: i'll try that. i'm having an issue where I call to_s from one object that calls another to_s , while the data prints out is correct, it's printing in the wrong order.
baweaver has quit [Remote host closed the connection]
<Ox0dea> flughafen_: Might just be something weird with your environment?
uglybandersnatch has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
<Ox0dea> A stray '\r' returning the cursor to the beginning of the line or some such.
<flughafen_> Ox0dea: that fixed it. i removed the puts and just did "return foobar"
crowell has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
graffix has joined #ruby
schickung has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
mustmodify has left #ruby [#ruby]
casadei has quit [Remote host closed the connection]
jmignault has quit [Ping timeout: 276 seconds]
Shaboum has joined #ruby
mdw has joined #ruby
robbyoconnor has quit [Client Quit]
stannard has joined #ruby
dfockler has quit [Quit: Leaving]
rmulligan has joined #ruby
scripore has joined #ruby
<Ox0dea> idletask: Ruby really does have an ungodly amount of syntax.
<Ox0dea> You'll lose far less hair by interfacing with one of the established parsers.
nennes has joined #ruby
<Ox0dea> Ripper, zenspider/ruby_parser, and whitequark/parser will all happily spit out S-expressions representing a given Ruby AST, and those'll be much more pleasant to work with.
nerium has quit [Quit: nerium]
Sucks has quit [Read error: Connection reset by peer]
rikkipitt has quit [Remote host closed the connection]
glcx has joined #ruby
glcx has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
rmulligan has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
uglybandersnatch has quit [Ping timeout: 264 seconds]
glcx has quit [Client Quit]
baweaver has joined #ruby
glcx has joined #ruby
baweaver has quit [Remote host closed the connection]
sp4rrow has joined #ruby
Coldblackice has joined #ruby
rdavila has quit [Quit: Textual IRC Client: www.textualapp.com]
shanemcd has quit [Ping timeout: 244 seconds]
trosborn has joined #ruby
shanemcd has joined #ruby
hahuang65 has joined #ruby
trosborn has quit [Client Quit]
jottr has quit [Read error: Connection reset by peer]
KensoDev has joined #ruby
idefine_ has quit [Remote host closed the connection]
lvn has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jottr has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
infernix has quit [Ping timeout: 246 seconds]
idefine has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
hxegon has quit [Quit: BRB]
treehug88 has joined #ruby
Xeago has joined #ruby
deuxclique has joined #ruby
pdoherty has joined #ruby
deuxclique has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
deuxclique has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
elifoster has joined #ruby
deuxcliq_ has joined #ruby
deuxclique has quit [Read error: Connection reset by peer]
deuxcli__ has joined #ruby
tomaz_b has joined #ruby
vdamewood has joined #ruby
supplication has joined #ruby
NeckBeardPrince has quit [Quit: Textual IRC Client: www.textualapp.com]
deuxcliq_ has quit [Ping timeout: 240 seconds]
ESpiney has quit [Quit: Leaving]
Snowy has joined #ruby
jenrzzz has joined #ruby
aswen has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
deuxcli__ has quit [Remote host closed the connection]
devbug has joined #ruby
nennes has quit [Quit: Leaving]
idefine has joined #ruby
deuxclique has joined #ruby
TinkerTyper has quit [Ping timeout: 244 seconds]
[Butch] has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
[Butch] has joined #ruby
sneakerhax has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
bronson has quit []
devbug has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
devbug has joined #ruby
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
glcx has quit [Quit: Quitte]
n00bdev has joined #ruby
Rodya_ has joined #ruby
rattatmatt has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
failshell has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
infernix has joined #ruby
rikkipitt has joined #ruby
adac has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
bricker has quit [Client Quit]
FernandoBasso has joined #ruby
crystal77 has joined #ruby
johnmilton has quit [Quit: Namaste]
johnmilton has joined #ruby
Guest71661 is now known as James
shanemcd has quit [Ping timeout: 264 seconds]
James is now known as Guest89468
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
shanemcd has joined #ruby
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
johnmilton has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
zapata has quit [Quit: WeeChat 1.4]
mary5030 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
devbug_ has joined #ruby
deuxclique has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
despai has joined #ruby
zapata has joined #ruby
rmulligan has joined #ruby
kt2 has joined #ruby
kt2 has quit [Client Quit]
codecop has quit [Remote host closed the connection]
Mio-chan_ has joined #ruby
Xeago has joined #ruby
Mio-chan has quit [Read error: Connection reset by peer]
Mio-chan_ has quit [Changing host]
Mio-chan_ has joined #ruby
croberts has joined #ruby
Mio-chan_ is now known as Mio-chan
n00bdev has quit []
cdg has joined #ruby
Xeago has quit [Remote host closed the connection]
phatypus has joined #ruby
Xeago has joined #ruby
uglybandersnatch has joined #ruby
shanemcd has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Remote host closed the connection]
trosborn has joined #ruby
johnmilton has quit [Quit: Namaste]
spuk has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
RTG` has quit [Ping timeout: 276 seconds]
phatypus has quit [Client Quit]
diegoviola has joined #ruby
shanemcd has joined #ruby
baweaver has joined #ruby
evidex has joined #ruby
jxs_ has joined #ruby
swills has quit [Ping timeout: 246 seconds]
RTG` has joined #ruby
gizless has joined #ruby
Limix has quit [Quit: Limix]
sp4rrow has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Xeago has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 244 seconds]
HalcyonicStorm has joined #ruby
rikkipitt has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
evidex has quit [Quit: Lost terminal]
evenix has quit [Remote host closed the connection]
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
trosborn has quit [Quit: trosborn]
davedev24 has joined #ruby
x77686d has joined #ruby
failshell has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
davedev24 has quit [Client Quit]
gizmore has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Client Quit]
nogic has joined #ruby
baweaver has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
Limix has joined #ruby
djcp has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 276 seconds]
<Limix> Hi, if running a rake task every 3 minutes, is it better to use something like sidekiq or just schedule a cron job?
eurialo has joined #ruby
gizless has quit [Ping timeout: 276 seconds]
DmitryBochkarev has joined #ruby
lemur has joined #ruby
x77686d has quit [Quit: x77686d]
dgncn has quit [Quit: Leaving]
<havenwood> SHA-NaN
<havenwood> oops, MT
fullofcaffeine has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
bedouin has quit [Excess Flood]
diegoviola has quit [Quit: WeeChat 1.4]
bluOxigen_ has joined #ruby
bedouin has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
spuk has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
tomaz_b has quit [Quit: Leaving]
devbug has joined #ruby
firstdayonthejob has joined #ruby
sevenfourk has quit [Quit: Connection closed for inactivity]
nogic has quit [Ping timeout: 264 seconds]
Snowy has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nogic has joined #ruby
diegoviola has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
_ht has quit [Quit: Konversation terminated!]
fullofcaffeine has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
techietrash has quit [Max SendQ exceeded]
techietrash has joined #ruby
eregi_ has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
Rodya_ has joined #ruby
jeanlinux has quit [Remote host closed the connection]
aswen has quit [Quit: WeeChat 1.4]
jeanlinux has joined #ruby
terlar has joined #ruby
terlar has quit [Client Quit]
rmulligan has joined #ruby
Guest89468 is now known as James
y2mq37 has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
mdw has quit [Ping timeout: 264 seconds]
James is now known as Guest4892
Snowy has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
InternetFriend has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
norc has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
nogic has joined #ruby
phatypus has joined #ruby
Guest34101 has joined #ruby
norc has joined #ruby
baweaver has quit [Remote host closed the connection]
haylon has quit [Quit: WeeChat 1.4]
workmad3 has quit [Ping timeout: 264 seconds]
terlar has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
nogic has quit [Ping timeout: 260 seconds]
flughafen_ has quit [Ping timeout: 246 seconds]
devbug has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
Kilo`byte has joined #ruby
<Kilo`byte> evening, got a question regarding the readline api.
jenrzzz has quit [Ping timeout: 240 seconds]
<Kilo`byte> how can i maintain different instances of readline at the same time. In this case i have multiple file descriptors at the same time each of which should have a different history on it's readline. How would be the best approach to that
<Kilo`byte> the readline api in the standard lib doesn't seem to support that
shellie_ has joined #ruby
dhollinger has quit [Ping timeout: 276 seconds]
ramortegui has quit [Quit: Ex-Chat]
jeanlinux has quit [Remote host closed the connection]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> I vaguely remember readline to have state in C globals, so wouldn't be too surprised to find out that it's impossible
jeanlinux has joined #ruby
LoneHermit has joined #ruby
<jhass> in case I'm right, your best bet probably is a multiprocess model with a master controlling them through DRb or something
stannard has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has quit [Remote host closed the connection]
bryancp has joined #ruby
stannard has joined #ruby
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
charliesome has joined #ruby
davedev24 has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
trinaldi has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
RickHull has joined #ruby
<RickHull> http://www.rubydoc.info/ # HTTP 503
<Kilo`byte> gah, was hoping i could avoid that...
<Papierkorb> Kilo`byte: Maybe Coolline can do that. (But really, no idea)
zenlot6 has joined #ruby
<RickHull> what's another rdoc hosting site?
<Papierkorb> RickHull: rubydoc works fine here
<RickHull> oh, works now. thx
devbug has joined #ruby
<Papierkorb> RickHull: for everything else, $ yard server --gems
<Kilo`byte> Papierkorb: thanks for that pointer will check it out
hangelo has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
<Kilo`byte> does look pretty cool though so even if it doesn't support it it's worth a look ^^
phatypus has quit [Quit: .>]
shanemcd has joined #ruby
phatypus has joined #ruby
jenrzzz has joined #ruby
skweek has joined #ruby
mdw has quit [Ping timeout: 268 seconds]
Limix has quit [Quit: Limix]
shanemcd has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
jeanlinux has joined #ruby
sudoubuntu has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
eregi has quit [Ping timeout: 244 seconds]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit []
iooner has quit [Ping timeout: 268 seconds]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
nogic has joined #ruby
graydot has quit [Quit: graydot]
synthroid has quit []
nogic has quit [Max SendQ exceeded]
mdw has joined #ruby
iooner has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
chouhoulis has quit [Ping timeout: 276 seconds]
nogic has joined #ruby
devbug has quit [Read error: Connection reset by peer]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi has joined #ruby
baweaver has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
devbug has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
dgncn has joined #ruby
charliesome_ has quit [Ping timeout: 244 seconds]
mdw has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
diego3 has joined #ruby
jenrzzz has joined #ruby
rmulligan has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
sp4rrow has joined #ruby
iooner has quit [Ping timeout: 248 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit []
mdw has joined #ruby
iooner has joined #ruby
devbug has quit [Read error: Connection reset by peer]
intrigueD has joined #ruby
devbug has joined #ruby
Rodya_ has joined #ruby
jottr has joined #ruby
duckpuppy has quit [Read error: Connection reset by peer]
rmulligan has quit [Ping timeout: 252 seconds]
GBrawl has joined #ruby
Xeago has joined #ruby
devbug has quit [Read error: Connection reset by peer]
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
devbug has joined #ruby
Guest4892 is now known as James
James is now known as Guest23107
shanemcd has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Gasher has quit [Ping timeout: 244 seconds]
sp4rrow has joined #ruby
HalcyonicStorm has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Xeago has joined #ruby
devbug has quit [Ping timeout: 276 seconds]
Spleeze has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
iooner has quit [Ping timeout: 268 seconds]
shanemcd has quit [Read error: Connection reset by peer]
iooner has joined #ruby
aredridel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
charliesome has joined #ruby
cjbottaro has joined #ruby
baweaver has joined #ruby
mondok has joined #ruby
shanemcd has joined #ruby
stannard has quit [Remote host closed the connection]
aredridel has joined #ruby
Gasher has joined #ruby
devbug__ has quit [Ping timeout: 276 seconds]
leksster__ has quit [Remote host closed the connection]
deuxclique has joined #ruby
deuxclique has quit [Remote host closed the connection]
Spleeze has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
roshanavand has quit [Quit: This computer has gone to sleep]
dgncn has quit [Quit: Leaving]
charliesome has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
cjbottaro has quit [Ping timeout: 248 seconds]
jobewan has joined #ruby
Xeago has joined #ruby
kirillzh has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
jottr has joined #ruby
kirillzh has quit [Client Quit]
kirillzh has joined #ruby
failshell has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenspider has quit [Quit: bye]
nogic has quit [Ping timeout: 264 seconds]
jottr_ has joined #ruby
KensoDev has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
solocshaw has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
minimalism has quit [Quit: minimalism]
lemur has joined #ruby
ur5us has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 240 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
firstdayonthejob has quit [Ping timeout: 260 seconds]
diego3 has quit [Quit: WeeChat 1.4]
lemur has quit [Ping timeout: 268 seconds]
A124 has quit [Quit: '']
spider-mario has quit [Remote host closed the connection]
bollullera has joined #ruby
SCHAAP137 has quit [Read error: Connection reset by peer]
A124 has joined #ruby
spuk has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
GBrawl has quit [Quit: (null)]
pragmatism has quit [Remote host closed the connection]
pragmatism has joined #ruby
diegoviola has joined #ruby
pdoherty has quit [Quit: Leaving]
FernandoBasso has quit [Quit: Leaving]
pawnbox has joined #ruby
bollullera has left #ruby [#ruby]
rmulligan has joined #ruby