havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snockerton has quit [Quit: Leaving.]
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Ping timeout: 260 seconds]
shadoi has joined #ruby
bb010g has joined #ruby
KINGSABRI has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
rbennacer has joined #ruby
mordocai has joined #ruby
bruno- has joined #ruby
bb010g has quit []
chipotle has quit [Quit: cheerio]
bb010g has joined #ruby
marr has quit []
gizmore has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
zenguy_pc has joined #ruby
Sceko has quit [Read error: Connection reset by peer]
bradly has joined #ruby
al2o3-cr1 has joined #ruby
al2o3-cr has quit [Disconnected by services]
al2o3-cr1 is now known as al2o3-cr
stannard has joined #ruby
dhollinger has quit [Remote host closed the connection]
zenguy_pc has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
spider-mario has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
charliesome has joined #ruby
hiyosi has joined #ruby
K1MOS has joined #ruby
theery has joined #ruby
pietr0 has quit [Quit: pietr0]
theery has quit [Remote host closed the connection]
aevitas has joined #ruby
everbot has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
hiyosi has quit [Quit: Textual IRC Client: www.textualapp.com]
K1MOS has quit [Client Quit]
mordocai has quit [Remote host closed the connection]
htmldrum has joined #ruby
SCHAAP137 has joined #ruby
tref has quit [Quit: tref]
dikaio has quit [Quit: ........]
keen___________1 has joined #ruby
K1MOS has joined #ruby
keen___________0 has quit [Ping timeout: 250 seconds]
zylogz80 has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
duckpuppy has joined #ruby
Coldblackice has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shazaum_ has quit [Quit: Leaving]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
rodfersou has quit [Quit: leaving]
BTRE has quit [Quit: Leaving]
chipotle has joined #ruby
BTRE has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 260 seconds]
willardg has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devbug_ has joined #ruby
vigintas has joined #ruby
itgold has quit [Ping timeout: 246 seconds]
FrankD_ has quit [Changing host]
FrankD_ has joined #ruby
FrankD_ is now known as FrankD
K1MOS has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
goglosh has joined #ruby
<goglosh> hi rubiarbs
al2o3-cr has joined #ruby
<goglosh> how well does ruby get along with unix/linux?
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<goglosh> as in, for system administration tasks
<goglosh> (maybe this is asked too often?)
rgtk has joined #ruby
<bradly> goglosh: It's been great for me.
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest52888
diego2 is now known as diegoviola
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
pocketprotector- has quit [Ping timeout: 240 seconds]
djellemah_ has joined #ruby
sandals has joined #ruby
rgtk has quit [Read error: No route to host]
sandals is now known as justbleed
Guest52888 has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
arooni has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
djellemah has quit [Ping timeout: 250 seconds]
rgtk_ has joined #ruby
bruno- has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
<havenwood> goglosh: It's quite popular for such a purpose.
crdpink2 has quit [Quit: q term]
tkuchiki has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgtk_ has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> goglosh basically it's an improved perl variant so it works very well on *nix
rgtk has joined #ruby
crdpink has joined #ruby
wprice has quit [Quit: wprice]
arescorpio has joined #ruby
cwong_on_irc has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
theery has joined #ruby
<Ox0dea> goglosh: Like peas in a pod, mate.
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
hmsimha_ has joined #ruby
bambanx has joined #ruby
<bambanx> hi
ss_much has quit [Quit: Connection closed for inactivity]
<bambanx> what is the difference when you use * or ** , in arguments of a method?
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
arescorpio has quit [Ping timeout: 244 seconds]
druonysus has quit [Remote host closed the connection]
<Ox0dea> bambanx: * is the "splat" operator; you use it to accept and collect any number of positional arguments into an Array. ** doesn't really have a cute name, but it collects the implicit Hash argument.
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bambanx> thanks Ox0dea when ** is used is optional too?
pathrocle has quit []
tref has joined #ruby
<Ox0dea> bambanx: That's right, and it's the only significant difference between just accepting a final argument and having it catch the "implicit Hash" that can be supplied with any method call.
rgtk has quit [Ping timeout: 260 seconds]
<shevy> hmm
tmtwd has joined #ruby
jcoe has joined #ruby
<shevy> >> def foo(**i); p i; end; foo [1,2,3]
<ruboto> shevy # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/460470)
<shevy> >> def foo(*i); p i; end; foo [1,2,3]
<ruboto> shevy # => [[1, 2, 3]] ...check link for more (https://eval.in/460471)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> bambanx: https://eval.in/460472
<bambanx> Ox0dea, thanks you very much
<Ox0dea> bambanx: Happy to help.
jenrzzz has joined #ruby
<havenwood> shevy: >> def foo(**i); p i; end; foo one: 1, two: 2, three: 3
jcoe has quit [Client Quit]
sankaber has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mikeharris22 has quit [Read error: Connection reset by peer]
roxtrongo has quit [Remote host closed the connection]
<shevy> hmmmmmmmmm
mikeharris22 has joined #ruby
<shevy> is ArgumenteError correct there?
<havenwood> shevy: Nope.
rgtk has joined #ruby
<shevy> >> RUBY_VERSION
<ruboto> shevy # => "2.2.0" (https://eval.in/460473)
<havenwood> #=> {:one=>1, :two=>2, :three=>3}
DiCablo has joined #ruby
<shevy> >> def foo(**i); p i; end; foo({:one=>1, :two=>2, :three=>3})
<ruboto> shevy # => {:one=>1, :two=>2, :three=>3} ...check link for more (https://eval.in/460474)
<Ox0dea> havenwood: I believe shevy was referring to the ArgumentError he received when he tried to use an Array as a Hash.
<shevy> ruby does not want me to drop the () there :(
<havenwood> shevy: ^ that true?
<shevy> well I did pass an argument!
<Ox0dea> shevy: Blocks have higher parse precedence than Hash arguments.
<Ox0dea> shevy: You didn't receive a NoArgumentError.
<shevy> what is a NoArgumentError
<al2o3-cr> >> foo **kwargs; p kwargs; end; foo **{a: 1, b: 2}
<ruboto> al2o3-cr # => /tmp/execpad-1fb759bd3c87/source-1fb759bd3c87:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/460475)
rgtk has quit [Read error: No route to host]
<shevy> fail!
<al2o3-cr> >> def foo **kwargs; p kwargs; end; foo **{a: 1, b: 2}
<ruboto> al2o3-cr # => {:a=>1, :b=>2} ...check link for more (https://eval.in/460476)
rgtk has joined #ruby
<al2o3-cr> something seriously wrong with my connection :(
rgtk has quit [Read error: No route to host]
<Ox0dea> al2o3-cr: Did you get my message about "psych"?
rgtk has joined #ruby
juanpablo__ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<al2o3-cr> Ox0dea: Ah, just read it now :P
<al2o3-cr> My connection is proper lagging
rgtk has quit [Read error: No route to host]
ibouvousaime has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
zenguy_pc has joined #ruby
shadoi has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 268 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tref has quit [Quit: tref]
rgtk has quit [Read error: No route to host]
juanpablo__ has quit [Ping timeout: 246 seconds]
mikeharr_ has joined #ruby
mikeharris22 has quit [Read error: Connection reset by peer]
<Ox0dea> >> class Fixnum; def to_hash; {self => self}; end; end; [**42] rescue $!
<ruboto> Ox0dea # => #<TypeError: wrong argument type Fixnum (expected Symbol)> (https://eval.in/460480)
<Ox0dea> Why does #to_hash *have* to return a Hash with Symbol keys?
rgtk has joined #ruby
mikeharr_ has quit [Remote host closed the connection]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
roxtrongo has joined #ruby
Uranio has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
rgtk_ has joined #ruby
roxtrong_ has joined #ruby
tkuchiki has joined #ruby
djbkd has quit [Remote host closed the connection]
rgtk_ has quit [Read error: No route to host]
rgtk_ has joined #ruby
djbkd has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rgtk has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Ping timeout: 250 seconds]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
theery has quit [Remote host closed the connection]
klaas_ has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
cjk101010 has quit [Ping timeout: 268 seconds]
rgtk has quit [Read error: No route to host]
zenguy_pc has quit [Ping timeout: 256 seconds]
klaas has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
Uranio has quit [Ping timeout: 264 seconds]
cjk101010 has joined #ruby
dorei has quit []
_blizzy_ has quit [Quit: Leaving]
rgtk_ has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arescorpio has joined #ruby
rgtk_ has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
rgtk has joined #ruby
TheWorstAmy has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWorstAmy has left #ruby [#ruby]
Dairenn has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
rgtk has quit [Read error: Connection reset by peer]
Eiam_ has joined #ruby
Aria has quit [Ping timeout: 255 seconds]
rgtk has joined #ruby
bruno- has joined #ruby
Rennex has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
FrankD has quit [Disconnected by services]
aredridel has joined #ruby
Rennex has joined #ruby
theery has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
rgtk_ has joined #ruby
rgtk has quit [Read error: No route to host]
benlieb has quit [Quit: benlieb]
bruno- has quit [Ping timeout: 246 seconds]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
zenguy_pc has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
RobertBirnie has joined #ruby
Rennex has quit [Ping timeout: 260 seconds]
rgtk has quit [Read error: No route to host]
Rennex has joined #ruby
rgtk has joined #ruby
goglosh has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
theery has quit [Read error: Connection reset by peer]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
klaas_ is now known as klaas
Silverback has joined #ruby
cmoney has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrong_ has quit [Remote host closed the connection]
Uranio has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tkuchiki has quit [Remote host closed the connection]
roxtrongo has joined #ruby
everbot has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
colegatron has joined #ruby
blue_deref has quit [Quit: bbn]
Rennex has quit [Ping timeout: 246 seconds]
Uranio has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
Rennex has joined #ruby
rgtk has joined #ruby
tlaxkit has joined #ruby
Ropeney has joined #ruby
rgtk_ has joined #ruby
Silverback has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
rgtk has joined #ruby
rgtk_ has quit [Read error: No route to host]
mikecmpbll has quit [Quit: i've nodded off.]
rgtk has quit [Read error: No route to host]
mikecmpbll has joined #ruby
rgtk has joined #ruby
mikecmpbll has quit [Client Quit]
roxtrongo has quit [Remote host closed the connection]
dfinninger has joined #ruby
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest20844
diego2 is now known as diegoviola
maletor has joined #ruby
rgtk has quit [Read error: No route to host]
blackmesa has joined #ruby
rgtk has joined #ruby
mikeharris22 has joined #ruby
Guest20844 has quit [Ping timeout: 250 seconds]
juanpablo__ has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
roxtrongo has joined #ruby
The_Phoenix has joined #ruby
bambanx has quit [Quit: Leaving]
tigarcia has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
rgtk_ has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
rgtk_ has quit [Read error: Connection reset by peer]
rgtk_ has joined #ruby
juanpablo__ has quit [Ping timeout: 268 seconds]
rgtk has quit [Ping timeout: 260 seconds]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
Oatmeal has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk_ has joined #ruby
sandals has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
rgtk_ has quit [Read error: No route to host]
leafybasil has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
rgtk_ has joined #ruby
mikeharris22 has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
rgtk_ has quit [Read error: No route to host]
h99h9h88 has joined #ruby
rgtk has joined #ruby
Oatmeal has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
solocshaw has quit [Ping timeout: 246 seconds]
arooni has joined #ruby
Musashi007 has joined #ruby
programmerq has joined #ruby
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
rgtk has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
wldcordeiro has joined #ruby
mikeharris22 has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
fedexo has joined #ruby
rgtk has joined #ruby
tlaxkit has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
rgtk has quit [Read error: No route to host]
cmoney has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
ekinmur has joined #ruby
rbennacer has joined #ruby
arescorpio has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bruno- has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Uranio has joined #ruby
ekinmur has quit [Client Quit]
rbennacer has quit [Ping timeout: 260 seconds]
weihan has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
Bulo has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
deception1 has quit [Quit: Leaving.]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest32811
diego2 is now known as diegoviola
Jardayn has quit [Quit: Leaving]
rgtk has quit [Read error: No route to host]
Uranio has quit [Read error: Connection reset by peer]
Uranio-235 has joined #ruby
rgtk has joined #ruby
bryanray has joined #ruby
CloCkWeRX has joined #ruby
Guest32811 has quit [Ping timeout: 260 seconds]
fedexo has quit [Ping timeout: 240 seconds]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgtk has quit [Read error: No route to host]
kp666 has joined #ruby
rgtk has joined #ruby
Uranio-235 has quit [Ping timeout: 250 seconds]
lemondom has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
diego2 has joined #ruby
diegoviola has quit [Ping timeout: 250 seconds]
rgtk has quit [Read error: No route to host]
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
rgtk has joined #ruby
lemondom_ has quit [Ping timeout: 240 seconds]
theery has joined #ruby
zenguy_pc has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
mordocai has joined #ruby
mndoci has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mndoci has quit [Remote host closed the connection]
cmoney has joined #ruby
rgtk_ has quit [Ping timeout: 260 seconds]
sandals has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tigarcia has quit []
eminencehc has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
eminence_ has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
kp666 has joined #ruby
stannard has quit [Remote host closed the connection]
NeverDie has joined #ruby
eminencehc has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
eminenc__ has joined #ruby
NeverDie has quit [Max SendQ exceeded]
parus has joined #ruby
djellemah_ is now known as djellemah
NeverDie has joined #ruby
eminence_ has quit [Ping timeout: 256 seconds]
Ropeney has joined #ruby
charliesome has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
tenderlo_ has joined #ruby
eminencehc has quit [Ping timeout: 240 seconds]
leafybasil has joined #ruby
blackmesa has joined #ruby
h99h9h88 has joined #ruby
tenderlove has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 252 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmoney has quit [Remote host closed the connection]
bryanray has quit [Read error: Connection reset by peer]
gener1c has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
arooni has quit [Ping timeout: 240 seconds]
baweaver has quit []
al2o3-cr has joined #ruby
eminenc__ has quit [Ping timeout: 260 seconds]
everbot has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 264 seconds]
eminencehc has joined #ruby
gener1c_ has quit [Ping timeout: 260 seconds]
cmoney has joined #ruby
bubbys has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
braincrash has quit [Quit: bye bye]
snockerton has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
kies^ has joined #ruby
bubbys has joined #ruby
freerobby has joined #ruby
devbug has joined #ruby
mistermocha has joined #ruby
braincras has joined #ruby
l_tonz has joined #ruby
solocshaw has joined #ruby
jenrzzz has joined #ruby
user1138 has joined #ruby
user1138 has quit [Max SendQ exceeded]
user1138 has joined #ruby
devbug_ has quit [Ping timeout: 265 seconds]
user1138 has quit [Max SendQ exceeded]
devbug_ has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
user1138 has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 246 seconds]
eminencehc has quit [Ping timeout: 272 seconds]
eminencehc has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
netwoodle has joined #ruby
devbug has joined #ruby
noodle has quit [Quit: /quit]
jenrzzz has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
greedo has quit [Ping timeout: 246 seconds]
Dairenn has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 250 seconds]
eminence_ has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 246 seconds]
ehth77 has quit [Quit: AtomicIRC: The nuclear option.]
devbug_ has quit [Ping timeout: 268 seconds]
eminencehc has quit [Ping timeout: 265 seconds]
postmodern has quit [Remote host closed the connection]
netwoodle is now known as noodle
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
eminence_ has quit [Remote host closed the connection]
gix has joined #ruby
SShrike has joined #ruby
braincrash has joined #ruby
baweaver has joined #ruby
greedo has joined #ruby
lemur has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
tenderlove has joined #ruby
braincras has quit [Ping timeout: 252 seconds]
cmoney has quit [Remote host closed the connection]
snockerton has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 255 seconds]
sdfgsdfg has joined #ruby
tenderlo_ has quit [Ping timeout: 255 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
theery has quit []
juanpablo__ has joined #ruby
swgillespie has joined #ruby
freerobby has quit [Quit: Leaving.]
unsymbol has quit [Ping timeout: 252 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dikaio has joined #ruby
atmosx has quit [Ping timeout: 252 seconds]
juanpablo__ has quit [Ping timeout: 250 seconds]
phillips1012 has quit [Ping timeout: 246 seconds]
Elysia has quit [Ping timeout: 252 seconds]
an0ma1y has quit [Ping timeout: 250 seconds]
unsymbol has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
skarn has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
skarn has joined #ruby
phillips1012 has joined #ruby
an0ma1y has joined #ruby
charliesome has joined #ruby
psy_ has joined #ruby
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
rbennacer has joined #ruby
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
bradly has quit [Quit: Connection closed for inactivity]
wildlander has joined #ruby
beauby has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
aevitas has quit [Remote host closed the connection]
l_tonz has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
aevitas has joined #ruby
jhn has joined #ruby
blackmesa has joined #ruby
leafybasil has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
cwong_on_irc has quit [Quit: Leaving.]
seitensei has quit [Remote host closed the connection]
fumduq- has quit [Read error: Connection reset by peer]
fumduq has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
purplexed- has joined #ruby
patronus has quit [Read error: Connection reset by peer]
jatb has quit [Ping timeout: 244 seconds]
mwlang has quit [Read error: Connection reset by peer]
patronus has joined #ruby
darkf has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
mwlang has joined #ruby
Elysia has joined #ruby
atmosx has joined #ruby
last_staff has joined #ruby
monsieurp has quit [Ping timeout: 244 seconds]
techsethi has joined #ruby
monsieurp has joined #ruby
jatb has joined #ruby
Dairenn has joined #ruby
zylogz80 has quit [Ping timeout: 268 seconds]
asianMike has quit []
Ropeney has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
Ropeney has quit [Client Quit]
techsethi has quit [Quit: techsethi]
TheNet has quit [Quit: Leaving...]
grambo has joined #ruby
grambo has left #ruby [#ruby]
zenguy_pc has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
diegoaguilar has joined #ruby
mistermocha has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
arup_r has quit [Max SendQ exceeded]
arup_r has joined #ruby
Dairenn has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
lxsameer has joined #ruby
dengar007 has joined #ruby
duckpuppy has joined #ruby
arup_ has joined #ruby
arup_ has quit [Remote host closed the connection]
devbug_ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
zenguy_pc has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 268 seconds]
dengar007 has quit [Quit: Textual IRC Client: www.textualapp.com]
duckpuppy has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
mikeharris22 has quit [Remote host closed the connection]
h99h9h88 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
shinenelson has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
naftilos76 has joined #ruby
Dairenn has joined #ruby
h99h9h88 has quit [Ping timeout: 252 seconds]
devbug_ has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
phillips1012 has quit [Read error: Connection reset by peer]
phillips1012 has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
djbkd has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
diegoaguilar has quit [Quit: Leaving]
l_tonz has joined #ruby
diegoaguilar_ has joined #ruby
diegoaguilar_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
stannard has joined #ruby
blackmesa has joined #ruby
l_tonz has quit [Ping timeout: 252 seconds]
diegoaguilar_ has joined #ruby
WizJin has joined #ruby
WizJin has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
bruno- has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
diegoaguilar_ has quit [Client Quit]
diegoaguilar_ has joined #ruby
stannard has quit [Ping timeout: 256 seconds]
gguggi has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
NightMonkey has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
patdohere has joined #ruby
diegoaguilar_ has quit [Client Quit]
bubbys has quit [Ping timeout: 272 seconds]
diegoaguilar_ has joined #ruby
mikeharris22 has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 250 seconds]
tref has joined #ruby
aevitas has quit [Remote host closed the connection]
maletor has joined #ruby
diegoaguilar_ has quit [Client Quit]
diegoaguilar has joined #ruby
patdohere has quit [Client Quit]
trosborn has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
mikeharris22 has quit [Ping timeout: 268 seconds]
gizmore has quit [Ping timeout: 272 seconds]
weihan has quit [Ping timeout: 244 seconds]
DoubleMalt has joined #ruby
dfinninger has joined #ruby
[BNC]WizJin has joined #ruby
[BNC]WizJin has quit [Max SendQ exceeded]
patdohere has joined #ruby
patdohere has quit [Client Quit]
dellavg_ has joined #ruby
juanpablo__ has joined #ruby
gizmore has joined #ruby
patdohere has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
mistermocha has joined #ruby
djbkd has joined #ruby
rippa has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
cwong_on_irc has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flak has joined #ruby
rippa has quit [Ping timeout: 256 seconds]
flak has quit [Client Quit]
rippa has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tmtwd has quit [Ping timeout: 272 seconds]
ruby-lang023 has joined #ruby
hakunin_ has joined #ruby
benlieb has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
<ruby-lang023> newby here looking for help getting imagemagick and paperclip working.
Rollabunna has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
CloCkWeRX has quit [Ping timeout: 265 seconds]
ruby-lang023 has quit [Quit: Page closed]
slackbotgz has joined #ruby
ehth77 has joined #ruby
eminencehc has joined #ruby
ehth77 has quit [Client Quit]
kp666_ has joined #ruby
kp666_ has quit [Max SendQ exceeded]
roxtrongo has quit [Remote host closed the connection]
kp666_ has joined #ruby
max_kuzmin has joined #ruby
Bulo has quit [Ping timeout: 268 seconds]
<max_kuzmin> Hello everybody.
lemur has quit [Remote host closed the connection]
<max_kuzmin> guys, i think my google is broken: i can not find how to access class variable (like @@var) from module that extends the class
l_tonz has joined #ruby
kp666 has quit [Ping timeout: 264 seconds]
<max_kuzmin> can anybody chelp me with that?
<al2o3-cr> ?code max_kuzmin
<ruboto> max_kuzmin, We can't help you without your code, please post it to https://gist.github.com
<max_kuzmin> class A
eminencehc has quit [Remote host closed the connection]
<max_kuzmin> oh
<max_kuzmin> wait a sec)
* max_kuzmin test
<max_kuzmin> arr
<Ox0dea> ?gist max_kuzmin
<ruboto> max_kuzmin, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Ox0dea> max_kuzmin: Sorry, I shouldn't have done that; I know exactly what you're trying to do.
<Ox0dea> You want Module#extended + #class_variable_get.
djbkd has quit [Remote host closed the connection]
blackmesa has joined #ruby
<max_kuzmin> exactly!
<max_kuzmin> Thanks a lot!
<Ox0dea> Happy to help.
<max_kuzmin> I dont know why, but It is not so easy to find info about it
l_tonz has quit [Ping timeout: 244 seconds]
devbug_ has joined #ruby
<Ox0dea> max_kuzmin: You're generally not supposed to do that sort of thing.
<Ox0dea> It's not as if these methods aren't documented, of course.
bruno- has joined #ruby
devbug has quit [Ping timeout: 252 seconds]
joaomdmoura has quit [Ping timeout: 265 seconds]
dfinninger has quit [Remote host closed the connection]
joaomdmoura has joined #ruby
nemo_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
davedev24 has quit [Remote host closed the connection]
blue_deref has joined #ruby
davedev24 has joined #ruby
<max_kuzmin> i tried to use construction like that
<max_kuzmin> but it fails with “no method ”
moeabdol1 has joined #ruby
<max_kuzmin> on get_info
bruno- has quit [Ping timeout: 240 seconds]
aevitas has joined #ruby
<max_kuzmin> module @@var accepts only straight values, i dont know why =___=
kidoz has joined #ruby
<max_kuzmin> ruby is really beatiful, but sometimes it shows very scary sides)
moeabdol1 has quit [Client Quit]
CloCkWeRX has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Ping timeout: 250 seconds]
aevitas has quit [Ping timeout: 260 seconds]
davedev2_ has quit [Ping timeout: 246 seconds]
Dairenn has quit [Ping timeout: 240 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
crystalmaiden has joined #ruby
trosborn has quit [Quit: trosborn]
charliesome has quit [Read error: Connection reset by peer]
dikaio has quit [Quit: ........]
moeabdol has joined #ruby
<Ox0dea> max_kuzmin: Ruby is certainly a sharp tool, but the language isn't at fault here.
charliesome has joined #ruby
davedev24 has joined #ruby
kp666_ has quit [Ping timeout: 272 seconds]
zenguy_pc has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
Musashi007 has quit [Quit: Musashi007]
gagrio has quit [Quit: Leaving...]
quazimodo has joined #ruby
gagrio has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
davedev2_ has joined #ruby
techsethi has quit [Quit: techsethi]
hightower2 has quit [Quit: Leaving]
davedev__ has joined #ruby
ghoti has joined #ruby
slackbotgz has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
Moblin has quit [Read error: Connection reset by peer]
davedev2_ has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
dellavg_ has quit [Quit: Ex-Chat]
zenguy_pc has joined #ruby
devoldmx has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 255 seconds]
vdamewood has joined #ruby
davedev__ has quit [Ping timeout: 240 seconds]
kalzz has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
nemo_ has quit [Ping timeout: 250 seconds]
davedev2_ has joined #ruby
techsethi has joined #ruby
kalzz has joined #ruby
davedev__ has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
davedev__ has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
trosborn has joined #ruby
trosborn has quit [Client Quit]
x-light has joined #ruby
trosborn has joined #ruby
jamesaxl has joined #ruby
techsethi has quit [Quit: techsethi]
tlarevo has joined #ruby
x-light has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
trosborn has quit [Quit: trosborn]
l_tonz has joined #ruby
Guest98662 has joined #ruby
Guest98662 has left #ruby [#ruby]
Guest98662 has joined #ruby
<Guest98662> salutes
blackmesa has joined #ruby
karapetyan has joined #ruby
l_tonz has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<Guest98662> what is the purpose of using => in a call?
<Guest98662> is it for passng "named" args
Guest98662 is now known as pard
<pard> ?
dellavg_ has joined #ruby
bruno- has joined #ruby
Coldblackice has joined #ruby
aevitas has joined #ruby
benlieb has quit [Quit: benlieb]
blackmesa has quit [Ping timeout: 260 seconds]
willardg has joined #ruby
<Mon_Ouie> >> def foo(argument); argument; end; foo(:bar => "baz")
<ruboto> Mon_Ouie # => {:bar=>"baz"} (https://eval.in/460565)
allomov has joined #ruby
<Mon_Ouie> ^ It passes a hash, which is how people used to emulate keyword arguments before they were added
<Mon_Ouie> (it also works with the actual keyword arguments that are now a part of the language)
<pard> Mon_Ouie , thanks; i thought it actually creats an "splat" hash
<pard> that is, much like py's print(**{l: 12, L: 12})
bruno- has quit [Ping timeout: 265 seconds]
<Mon_Ouie> >> def example(l:, L:); [l, L]; end; example(:l => 12, :L => 13)
<ruboto> Mon_Ouie # => /tmp/execpad-5855131cecfa/source-5855131cecfa:2: formal argument cannot be a constant ...check link for more (https://eval.in/460566)
<Mon_Ouie> Oh, right, can't call a variable L like this :p
<pard> it is then semi-correct then that l({:L=>12}) is exctly same as l(:L=>12) ?
<Ox0dea> pard: Only if it's the final argument.
<pard> thanks
juanpablo__ has joined #ruby
<Ox0dea> You only get one "implicit" (read: braceless) Hash.
<pard> Ox0dea, i actually thought it is always the final arg; are there any cases where it is not?
aevitas has quit [Remote host closed the connection]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pard> >> print 5=>12, "e"
<ruboto> pard # => /tmp/execpad-16db7de784fb/source-16db7de784fb:2: syntax error, unexpected '\n', expecting => (https://eval.in/460567)
<Ox0dea> >> def foo *args; args; end; foo({a: 1}, {b: 2}, {c: 3}) # pard
<ruboto> Ox0dea # => [{:a=>1}, {:b=>2}, {:c=>3}] (https://eval.in/460568)
<Ox0dea> That's three separate Hashes, mind.
<pard> thanks
dellavg- has joined #ruby
<Ox0dea> >> def foo *args; args; end; foo 1, 2, a: 3, b: 4
<ruboto> Ox0dea # => [1, 2, {:a=>3, :b=>4}] (https://eval.in/460569)
juanpablo__ has quit [Ping timeout: 265 seconds]
dellavg_ has quit [Quit: Ex-Chat]
colegatron has quit [Ping timeout: 268 seconds]
leafybasil has joined #ruby
<pard> Ox0dea, thanks; i guess i have been right then; the '=>' means "this is the final arg, and it is merely an undelimitd hash"
beauby has quit [Ping timeout: 264 seconds]
<Ox0dea> pard: This is the first time you've made that statement, but yes, it's correct.
<pard> i.e, print 5=>"l", 12=>"L", 5, 5 will not be correct
<pard> thanks
willardg has joined #ruby
nitrix is now known as nii-san
Jackneill has joined #ruby
leafybasil has quit [Ping timeout: 256 seconds]
firstdayonthejob has joined #ruby
<pard> i can not help wonderng though, why is the delimiterless hash only possibl in a call actually
<Ox0dea> pard: Because the parser is complicated enough and we don't need more ambiguity.
<Ox0dea> >> [a: 1] # Not just calls, mind.
<ruboto> Ox0dea # => [{:a=>1}] (https://eval.in/460571)
<Ox0dea> You should probably forget you saw that.
ghoti has joined #ruby
nii-san is now known as nitrix
al2o3-cr has quit [Ping timeout: 256 seconds]
tlarevo has quit [Remote host closed the connection]
<pard> Ox0dea, actually i was about to mention it :) it is just making me wonder even more -- it already is everywhere
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<Ox0dea> pard: Everywhere?
<pard> i can't know what ambiguity it might cause to have l = 12 => "e", 5 => "l"
<pard> yes sir
<pard> i guess it already _is_ in Everywhere -- calls, []'s, and so on ;why not there then?
ghoti has quit [Ping timeout: 246 seconds]
<Ox0dea> pard: Do you know about parallel assignment?
<pard> yes sir
<Ox0dea> What should `a, b = a: 1, b: 2` do?
<pard> the same thing that print a => 1, b => 1 does
<Ox0dea> Assignment should do output...?
wildlander has quit [Quit: Saliendo]
<pard> it will not treat a => 1 and b => 2 ndependently
karapetyan has quit [Ping timeout: 250 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> How about `a, b, c = a: 1, 2, c: 3`, then?
<pard> it would be an err; much like the print a: 1, 2, c: 5 is
<Ox0dea> pard: But why? It could just as well result in two Hashes and a Fixnum being assigned independently.
niemcu has joined #ruby
colegatron has joined #ruby
mistermocha has joined #ruby
<Ox0dea> This is what is meant by "ambiguity".
<pard> Ox0dea, thanks :) that is actually my point -- print a: 1, 2, c: 5 could also mean that, but it won't
devoldmx has joined #ruby
<Ox0dea> pard: I'm almost certain it *could* be done that way, but it'd be a nightmare on all sides.
<pard> strange because i don't find it that dire :)
<pard> particularly as it already is there, in things such as
<pard> >> [print 12=>"e", 5=>"l"]
<ruboto> pard # => /tmp/execpad-081d76a16bc6/source-081d76a16bc6:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/460574)
mistermocha has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
<Ox0dea> It's available in places where the surrounding context helps narrow the field of reasonable interpretations; the RHS of an assignment is pretty much a free-for-all.
devbug has joined #ruby
<pard> yes
<pard> for the record though, this is not possibl either
<pard> >>[print 12]
<ruboto> pard # => /tmp/execpad-f48e71819edc/source-f48e71819edc:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/460575)
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dellavg- is now known as dellavg
<pard> i mean, at least in this case, the issue is more with sth else than with '=>' actually
devbug_ has quit [Ping timeout: 250 seconds]
dellavg is now known as Guest95707
treaki has joined #ruby
<arup_r> can you see me ?
<pard> ?
trosborn has joined #ruby
blackmesa has joined #ruby
<pard> Ox0dea, any ideas?
<Ox0dea> pard: Nah, I've never bothered to dive in to figure that one out.
<pard> :)
al2o3-cr has joined #ruby
<pard> these are quirks for jerks ;that is the reason they are only attractive to me
karapetyan has joined #ruby
bricker has joined #ruby
Musashi007 has quit [Quit: Musashi007]
kidoz has quit [Quit: Ухожу я от вас]
treaki__ has joined #ruby
tvw has joined #ruby
kidoz has joined #ruby
<Ox0dea> >> $, = ' n'; (%w'utter'*2).join
<ruboto> Ox0dea # => "utter nutter" (https://eval.in/460576)
<Ox0dea> Quirks for jerks and utter nutters.
<pard> you naild it pard
skade has joined #ruby
treaki has quit [Disconnected by services]
<Ox0dea> Let's at least give the parser a little credit; it handles that insanity just fine.
<pard> you naild it again :)
kidoz has quit [Client Quit]
treaki__ is now known as treaki
dionysus69 has joined #ruby
aevitas has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
aevitas has quit [Remote host closed the connection]
<pard> Ox0dea, you should have told me the link you provided is NSFW :)
aevitas has joined #ruby
<pard> never thoughts the parsers have their own porn niche
dionysus69 has quit [Client Quit]
<Ox0dea> pard: What're you talking about?
<Ox0dea> That shit is NSFL.
<pard> i was talking about http://i.imgur.com/94jou4v.png -- no offense
aevitas has quit [Client Quit]
dionysus69 has joined #ruby
<Ox0dea> Aye, me too.
<Ox0dea> No offense taken, of course; I didn't actually write it. I told a neural network that I wanted a Sinatra app and trained it to despise alphanumerics.
SShrike has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
<pard> LOL
l_tonz has joined #ruby
<pard> honstly though, i can't tell what [*?` on #5 means
stannard has joined #ruby
<Ox0dea> >> ?`
<ruboto> Ox0dea # => "`" (https://eval.in/460577)
<pard> oh my
<Ox0dea> >> [*?`..?{].join
<ruboto> Ox0dea # => "`abcdefghijklmnopqrstuvwxyz{" (https://eval.in/460578)
<Ox0dea> It's just a non-alphanumeric way to get hold of the alphabet.
<pard> thanks a lot; where've you got it from?
<Ox0dea> I... just kinda came up with it?
<pard> thanks
Macaveli has joined #ruby
<pard> i guess i've a lot to go to get a pro as you are
skade has quit [Read error: Connection reset by peer]
<Ox0dea> That's hardly the word I'd use for this sort of behavior.
skade has joined #ruby
l_tonz has quit [Ping timeout: 268 seconds]
stannard has quit [Ping timeout: 250 seconds]
<pard> i could not come up with a word more fit; i was considerng "hard-core" but thought it might be rude
bruno- has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
skade has quit [Read error: Connection reset by peer]
<al2o3-cr> >> [*?`..?{][?b<=>?a...?a<=>?b].join # :)
<ruboto> al2o3-cr # => "abcdefghijklmnopqrstuvwxyz" (https://eval.in/460579)
karapetyan has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<pard> i guess i must visit a vet soon
diegoaguilar has quit [Remote host closed the connection]
<Ox0dea> al2o3-cr: I can't believe I never thought to use that to get a 1.
poguez_ has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
<pard> 1 ?
<al2o3-cr> :)
<Ox0dea> pard: For my non-alphanumeric madness.
<Ox0dea> I gotta get numbers somehow.
<pard> ah
<Ox0dea> >> [$$/$$, ' '=~/$/, ?`<=>?!]
<ruboto> Ox0dea # => [1, 1, 1] (https://eval.in/460580)
<Ox0dea> I like $$/$$ best, but the others are nifty too.
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<Ox0dea> >> -~$.
<ruboto> Ox0dea # => 1 (https://eval.in/460581)
<pard> if i get it corrctly, [1..-1] won't work, though [1...-1] actually does?
<pard> >> $-l
<ruboto> pard # => false (https://eval.in/460582)
<Ox0dea> pard: I'm actually only using the alphabet in calls to String#tr, and since my encoding only uses 23 symbols, it's fine as long as it's correct up to "w".
<pard> thanks
Caius has quit [Ping timeout: 256 seconds]
<pard> >> ["a".."z"].each { |l| eval("$-"+l) }
<ruboto> pard # => no implicit conversion of Range into String (TypeError) ...check link for more (https://eval.in/460583)
karapetyan has quit [Ping timeout: 250 seconds]
<Ox0dea> pard: They're the command line flags.
zenguy_pc has quit [Ping timeout: 272 seconds]
<pard> ah
<pard> what are they doing in the lang?
<Ox0dea> How do you mean?
<al2o3-cr> >> $*.size.next
<ruboto> al2o3-cr # => 1 (https://eval.in/460584)
CloCkWeRX has quit [Ping timeout: 244 seconds]
<al2o3-cr> so many ways
KINGSABRI_ has joined #ruby
<Ox0dea> al2o3-cr: That's a lot of letters, though.
<pard> i mean, are they so mportant they have $var names assiged to them?
<Ox0dea> pard: It's just a convenience, really.
<pard> thanks
<al2o3-cr> Yeah, $$/$$ I like the best
KINGSABRI has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
Caius has joined #ruby
<pard> it is so great being on this
<pard> thanks a lot
pard has quit [Quit: Leaving]
<Ox0dea> -~$. is sexy, but $. is dynamic.
inteq has joined #ruby
joonty has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Musashi007> Guys, I’m getting this error: https://gist.github.com/skuhn/027f8262968db945e0c5 in ruby in sinatra and I’ve been trying to track it down for several hours but I’m not having any luck. Would anyone be willing to point me in some direction?
Archyme has joined #ruby
bruno- has joined #ruby
tvw has quit []
<Ox0dea> Musashi007: Are you able to post any code?
<Musashi007> Sure
<Musashi007> can i send it privately?
<Ox0dea> Musashi007: Well, let's try something first.
<Musashi007> ok
<Ox0dea> Musashi007: You are using Sequel, yes?
<Musashi007> yes and the db is postgres
<Ox0dea> Musashi007: Put `Sequel.extension :core_extensions` after your requires.
techsethi has joined #ruby
tvw has joined #ruby
<Ox0dea> That'll add the #pg_array method to Array, whose absence is currently causing that NoMethodError.
<Musashi007> it’s there i’m pretty sure
<Ox0dea> How sure is "pretty sure"? :P
<Musashi007> require 'sequel/extensions/pg_array'
<Musashi007> require 'sequel/extensions/pg_interval'
<Musashi007> 200% positive
blue_deref has quit [Quit: bbn]
<Musashi007> Sequel::Model.db = Sinatra::Application.database
duckpuppy has joined #ruby
zenguy_pc has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
<Musashi007> these are set in models.rb
leafybasil has joined #ruby
fantazo has joined #ruby
<Musashi007> I’m thinking it either has something to do with rack or my db isn’t up to date
spider-mario has joined #ruby
<Ox0dea> Musashi007: Well, you're getting a NoMethodError.
<Musashi007> that tells me it’s trying to call a function that it can’t find?
stamina has joined #ruby
<Ox0dea> A method that doesn't exist.
devbug has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<Ox0dea> I think if you're bringing the extensions in that way, you still have to explicitly activate them.
<Ox0dea> That'd be `your_db.extension :pg_array`, in this case.
ibouvousaime has quit [Ping timeout: 264 seconds]
tvw has quit []
arup_r has quit [Ping timeout: 240 seconds]
<Musashi007> Is it possible there’s some linking that I haven’t done?
leafybasil has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 268 seconds]
symm- has joined #ruby
<Ox0dea> Well, Sequel is pure Ruby, so that seems unlikely.
quazimodo has joined #ruby
but3k4 has joined #ruby
ibouvousaime has joined #ruby
dionysus69 has quit [Quit: dionysus69]
quazimodo has quit [Ping timeout: 272 seconds]
bricker has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<Ox0dea> Musashi007: You have to tell Sequel that it's okay for it to patch core classes before you require extensions which do so.
ibouvousaime has quit [Ping timeout: 272 seconds]
<Ox0dea> `Sequel.extension :core_extensions` before `require 'sequel/extensions/pg_array'`.
<Musashi007> O.O
<Musashi007> I think its incorrect one sec
<Musashi007> hm I am getting a different error. thank you very much
<Ox0dea> Sure thing. I may have to let you diagnose this new one. :P
DoubleMalt has quit [Remote host closed the connection]
<Musashi007> Yeah well at least its something new.. how did you figure that out, can I ask?
firstdayonthejob has quit [Ping timeout: 250 seconds]
<Ox0dea> A NoMethodError is pretty informative if the receiver wasn't `nil`.
allomov has quit [Remote host closed the connection]
<Ox0dea> I just dug a little to figure out who was supposed to be providing this #pg_array method to the Array class and how.
<Musashi007> damn.. thanks
ibouvousaime has joined #ruby
<Ox0dea> Musashi007: http://git.io/vlGGa
jud has quit [Read error: Connection reset by peer]
<Musashi007> whoah the actual extension
<Ox0dea> There it is!
bricker has quit [Ping timeout: 268 seconds]
arup_r has joined #ruby
<Musashi007> i will be reading through that after i get through this
<Ox0dea> Can't help but appreciate a predilection for exploration. <3
CloCkWeRX has left #ruby [#ruby]
<Musashi007> :D thanks.. back to this now
<Ox0dea> Godspeed.
l_tonz has joined #ruby
juanpablo__ has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
[k- has joined #ruby
l_tonz has quit [Ping timeout: 260 seconds]
DEA7TH has joined #ruby
joonty has quit [Quit: joonty]
juanpablo__ has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
Archyme has quit [Ping timeout: 240 seconds]
Archyme has joined #ruby
Trynemjoel has quit [Quit: Quitting]
ibouvousaime has quit [Remote host closed the connection]
Rollabunna has quit [Quit: Leaving...]
Alina-malina has joined #ruby
Trynemjoel has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kerunaru has joined #ruby
k3asd` has joined #ruby
ghoti has joined #ruby
techsethi has quit [Quit: techsethi]
niemcu has quit [Ping timeout: 268 seconds]
ghoti has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
ruurd has joined #ruby
FernandoBasso has joined #ruby
but3k4 has joined #ruby
techsethi has quit [Quit: techsethi]
mistermocha has joined #ruby
devoldmx has joined #ruby
sdothum has joined #ruby
techsethi has joined #ruby
allomov has joined #ruby
musou has quit [Quit: Connection closed for inactivity]
purplexed- has quit [Read error: Connection reset by peer]
ghoti has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
user1138 has quit [Remote host closed the connection]
user1138 has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
user1138 has quit [Remote host closed the connection]
linocisco has joined #ruby
<linocisco> hi all ruby folks.
user1138 has joined #ruby
neohunter has joined #ruby
<linocisco> I am using ubuntu 14.04.3 LTS desktop x86, What should I install for learning ruby?
user1138 has quit [Remote host closed the connection]
beast has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<Ox0dea> linocisco: Books don't need to be installed.
<Musashi007> man, I justh have no clue
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<Musashi007> Is there a way to trace what is erroring with more paticularity, 0x0dea?
<linocisco> Ox0dea, I dont know.
user1138 has joined #ruby
<linocisco> DO I need better IDE or ?/
<Musashi007> They all pretty much run the same stuff and if you’re starting with basic ruby you don’t really need an ide
<Musashi007> irb and a prompt
<Ox0dea> Musashi007: Whale, surely you're being given an exception and the line of code which raised it?
<Musashi007> NameError - undefined local variable or method `iworkout' for #<Sinatra::Application:0x007fe1a4703450>:
<Musashi007> web.1 | enkuhn/.rvm/gems/ruby-2.2.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
ghoti has quit [Ping timeout: 255 seconds]
knight_ has joined #ruby
knight has joined #ruby
ghoti has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Musashi007> I really don’t know what to make of that
<Ox0dea> Musashi007: That's simple enough; you're referencing something that doesn't actually exist.
knight is now known as Guest25919
<Musashi007> but i’m positive i’m refering to it in a file for cases where it does work
Guest25919 is now known as knight-
<Ox0dea> Musashi007: Well, sure, but file-scope is hardly the only kind.
<Musashi007> jeez
<Musashi007> it worked previously which is funny that I don’t know what was done to mess this up
<Musashi007> I have been thinking that the security stuff is somehow interfering
lkba has joined #ruby
lkba_ has joined #ruby
blackmesa has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<Musashi007> would my routes.rb ever require my models.rb?
<Ox0dea> It could, but that wouldn't import its local variables.
knight- has quit [Client Quit]
mloy has quit [Ping timeout: 260 seconds]
knight- has joined #ruby
<Musashi007> import its local variables..
akem has joined #ruby
<Ox0dea> Musashi007: Local variables declared outside of methods are not visible within them.
<Ox0dea> >> foo = 42; def bar; foo; end; bar rescue $!
<ruboto> Ox0dea # => #<NameError: undefined local variable or method `foo' for main:Object> (https://eval.in/460590)
lkba has quit [Ping timeout: 250 seconds]
<linocisco> hi all, should we install ruby on ubuntu like apt-get install ruby or from tar balls?
<Musashi007> can I make a global variable out of it?
<Ox0dea> Musashi007: You *could*, but it's likely you oughtn't.
<Ox0dea> linocisco: Install from current HEAD so you can use all the fancy new stuff in 2.3.
<linocisco> Ox0dea, using apt?
<Ox0dea> linocisco: No, git and make.
<linocisco> Ox0dea, I dont know how to install by git and make
startupality has joined #ruby
jxs_ has joined #ruby
l_tonz has joined #ruby
weihan has joined #ruby
<Musashi007> @0x0dea how can I pass a variable from one function to another when the functions define different routes?
arup_r has joined #ruby
<Ox0dea> Musashi007: How do you mean? Are you actually drawing routes inside other methods?
<Musashi007> I’m not sure on the terminology but I have a route which saves things into a string thats added to the web address which is basically a unique identifier and then calls another route
Mon_Ouie has quit [Quit: WeeChat 1.3]
<Musashi007> btw, even making the variable global didn’t solve the problem
rikkipitt has joined #ruby
<Ox0dea> Musashi007: Well, you didn't get a NameError if it was a global, so what happened?
l_tonz has quit [Ping timeout: 246 seconds]
<Musashi007> I did, actually. I swear there is a typo and I am just missing it
<Musashi007> I just re-did that
<Ox0dea> >> $all_globals_exist_implicitly # Musashi007
<ruboto> Ox0dea # => nil (https://eval.in/460591)
<linocisco> Ox0dea, how to install from git?
<Musashi007> I.. uh. wow
<Ox0dea> linocisco: I was being facetious, but it'd be an interesting journey if you were actually up to it.
rgtk has joined #ruby
<linocisco> hi all, apt-get install ruby-full will give only version 1.9.1, and we dont need to maintain.
<linocisco> updated version is 2.3. or something. why so different?
<havenwood> linocisco: Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
moeabdol has quit [Ping timeout: 260 seconds]
hs366 has joined #ruby
<linocisco> havenwood, thanks let me see if 2.2 is latest
<havenwood> Oh, yeah, if you want 2.3 build it yourself.
linocisco has quit [Quit: Leaving]
<havenwood> Not out till Christmas.
rgtk has quit [Ping timeout: 260 seconds]
<Ox0dea> >> 25 == 031 # havenwood
<ruboto> Ox0dea # => true (https://eval.in/460592)
<Ox0dea> (Somebody had to say it. :P)
Igorshp has joined #ruby
Silverfall has quit [Quit: • IRcap • 8.72 •]
jgpawletko has joined #ruby
CloCkWeRX has joined #ruby
<havenwood> Hot dog reindeer! Hem. Thanks Google.
<Ox0dea> havenwood: You don't know why programmers confuse Halloween and Christmas?!
<havenwood> Ox0dea: ha
<havenwood> nightmare before christmas
zenguy_pc has quit [Ping timeout: 265 seconds]
Igorshp has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
CloCkWeRX has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
SCHAAP137 has joined #ruby
rikkipitt has quit [Remote host closed the connection]
stannard has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
quazimodo has joined #ruby
rikkipitt has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
treaki has quit [Ping timeout: 240 seconds]
kidoz has joined #ruby
mikecmpbll has joined #ruby
zenguy_pc has joined #ruby
kidoz has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
moeabdol has joined #ruby
Igorshp has joined #ruby
CloCkWeRX has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
rikkipitt has quit [Remote host closed the connection]
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Quit: Musashi007]
Voker57 has joined #ruby
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
solocshaw has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
juanpablo__ has joined #ruby
ibouvousaime has joined #ruby
Guest66532 has joined #ruby
Guest66532 is now known as pard
agit0 has joined #ruby
<pard> howdy
cornerma1 has joined #ruby
sameerynho has joined #ruby
juanpablo__ has quit [Ping timeout: 260 seconds]
<pard> >> def e(*arg,&r) [arg,r] end; [e(), e]
<ruboto> pard # => [[[], nil], [[], nil]] (https://eval.in/460613)
agit0 has quit [Client Quit]
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
lxsameer has quit [Ping timeout: 264 seconds]
bricker has joined #ruby
lxsameer_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
neanderslob has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
kerunaru has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
pard has quit [Quit: Leaving]
FernandoBasso has quit [Ping timeout: 260 seconds]
ht__ has joined #ruby
<Ox0dea> What was that all about?
bricker has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
NeverDie has joined #ruby
l_tonz has joined #ruby
solocshaw has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
ht__ has quit [Quit: Konversation terminated!]
l_tonz has quit [Ping timeout: 250 seconds]
hmsimha_ has quit [Ping timeout: 265 seconds]
ht__ has joined #ruby
ruurd has joined #ruby
agit0 has joined #ruby
DoubleMalt has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
SCHAAP137 has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
davedev24 has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
sdothum has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
Erik_Underline has joined #ruby
<Erik_Underline> Hello
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Erik_Underline> Is there any reason why mac is prefered over windows in Ruby community? (And other programming languages aswell)
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jxs_ has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
lxsameer_ has quit [Quit: Leaving]
<Erik_Underline> * OS X
tk__ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
agit0 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<akem> no
charliesome has joined #ruby
solocshaw has joined #ruby
SCHAAP137 has joined #ruby
<Papierkorb> Is there something like a weekly ruby/development challenge? Not where you create something big or 'new', more of the sort of developing and implementing a small algorithm to solve some kind of issue.
<Ox0dea> Erik_Underline: That you even know to ask is arguably an answer to the question.
<Ox0dea> Papierkorb: RPCFN is inactive, but there are some very nice challenges there.
ruurd has joined #ruby
[k- has quit [Quit: -a- IRC for Android 2.1.23]
Erik_Underline_ has joined #ruby
Erik_Underline has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
<Erik_Underline_> Ox0dea: Not really, I can't really imagine any good reason why you'd prefer Mac over Windows, but the opposite being very easy for me to do.
<Ox0dea> Erik_Underline_: Please elaborate.
ruurd has quit [Client Quit]
vigintas has joined #ruby
<Papierkorb> People prefer windows over anything? Wow
<Ox0dea> > If I had asked people what they wanted, they would have said faster horses.
<Erik_Underline_> The question is, what does mac do that makes rubyists prefer it over windows?
<Erik_Underline_> Very simple question.
<havenwood> Erik_Underline_: POSIX
<Papierkorb> Erik_Underline_: (Note that I also don't like Mac or Apple in general): UNIX and POSIX
chipotle has quit [Quit: cheerio]
<Papierkorb> A somewhat good and defined environment
<Ox0dea> Erik_Underline_: The tools in Unix-y environments are designed to integrate with each other.
<Papierkorb> Windows is like the wild west for software developers. everyone does his own thing, no consistency anywhere
<havenwood> Erik_Underline_: OS X is one of the BSDs from the UNIX heritage.
bMalum has joined #ruby
<Ox0dea> Are you two employed by AT&T or something? What's with the all caps?
<Ox0dea> Erik_Underline_: Windows is having to go all over the place to get your groceries, and nobody will tell you what's in it; Unix delivers to your door with the recipes.
<Papierkorb> Erik_Underline_: Just have a look at how software is installed. Pretend you know the softwares' name. Linux: Ask the package manager what the package is called, install it, done. 2 step process. You didn't waste time on clicking Next a thousand times, and you also don't have the Ask toolbar now. The software you DL'd is also malware free.
jgt has joined #ruby
<havenwood> Ox0dea: touche
<Papierkorb> Erik_Underline_: Windows: Google the program, try to find who's the actualy developer, try to find their webpage, hope that you got the right one and not a malware-ridden version of it, then click next, hope that you disabled all adware shit in the process, and then you may have a running application.
<Papierkorb> Erik_Underline_: So, what of that is harder to do? What feels more consistent, and what of that is more wild west?
<Erik_Underline_> Papierkorb: That's very true :P
rgtk has joined #ruby
<Papierkorb> Oh, and now try to update the program. There must be like at least 5 update services running on a usual windows installation. what a waste of resources.
duckpuppy has joined #ruby
devoldmx has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
<Papierkorb> Erik_Underline_: Also, a good dev environment is so much harder to do on windows. On linux, that's pretty much given on every major distro. if gem install complains about something it couldn't find, ask your package manager for it, install it, and try again. Done. Windows: Well, for one, install a C compiler, then pray that you have the right one if you're using binary libs somewhere (ABI incompatibilities!). The list goes on. On linux it's not
<Papierkorb> fool proof. No doubt in that. But it's still so much easier to just get work done.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 272 seconds]
<Ox0dea> s/linux/not-Windows/
<Papierkorb> Ox0dea: never used Mac on my own, can't say more about it than that I dislike their keyboard layout and Apple in general.
<Ox0dea> Papierkorb: It's Unix...
duckpuppy has quit [Ping timeout: 244 seconds]
fantazo has quit [Quit: Verlassend]
devoldmx has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
h99h9h88 has joined #ruby
charliesome has quit [Client Quit]
ht__ has quit [Quit: Konversation terminated!]
charliesome has joined #ruby
ht__ has joined #ruby
rgtk` has joined #ruby
JammyHammy has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
rgtk` has quit [Remote host closed the connection]
ruurd has joined #ruby
Musashi007 has joined #ruby
ruurd has quit [Client Quit]
c355E3B has joined #ruby
stannard has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
Guest95707 has quit [Quit: ZNC - http://znc.in]
charliesome has joined #ruby
dellavg has joined #ruby
CloCkWeRX has joined #ruby
charliesome has quit [Client Quit]
solocshaw has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
benhuda has joined #ruby
l_tonz has joined #ruby
atomical has joined #ruby
solocshaw has joined #ruby
l_tonz has quit [Ping timeout: 272 seconds]
but3k4 has joined #ruby
dellavg_ has joined #ruby
techsethi has quit [Quit: techsethi]
charliesome has joined #ruby
charliesome has quit [Client Quit]
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aredridel is now known as Aria
Musashi007 has quit [Quit: Musashi007]
pabs has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
techsethi has joined #ruby
Erik_Underline_ has quit [Ping timeout: 246 seconds]
nanoz has joined #ruby
pabs has joined #ruby
zenguy_pc has quit [Ping timeout: 265 seconds]
rikkipitt has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
tref has quit [Quit: tref]
weihan has quit [Ping timeout: 260 seconds]
vigintas has quit [Quit: vigintas]
phillips1012 has quit [Ping timeout: 265 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
The_Phoenix has quit [Read error: Connection reset by peer]
vigintas has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
mwlang has quit [Quit: mwlang]
karapetyan has joined #ruby
Igorshp has quit [Remote host closed the connection]
user1138 has quit [Quit: Leaving]
aep has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
juanpablo__ has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
techsethi has quit [Quit: techsethi]
arup_r has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
juanpablo__ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
chouhoulis has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
karapetyan has joined #ruby
chouhoulis has joined #ruby
akem has quit [Quit: Bye]
phillips1012 has joined #ruby
rikkipitt has quit [Remote host closed the connection]
agit0 has joined #ruby
firstdayonthejob has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has quit [Ping timeout: 250 seconds]
CloCkWeRX has left #ruby [#ruby]
stannard has quit [Remote host closed the connection]
jxie_ has quit [Ping timeout: 244 seconds]
agit0 has quit [Client Quit]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
beast has quit [Quit: Leaving]
bricker has joined #ruby
_blizzy_ has joined #ruby
blackmesa has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
<shevy> yeah apple even stole unix there
bricker has quit [Ping timeout: 255 seconds]
demonlove has joined #ruby
demonlove has quit [Max SendQ exceeded]
pwnd_nfsw has quit [Ping timeout: 240 seconds]
l_tonz has joined #ruby
demonlove has joined #ruby
JDiPierro has joined #ruby
OrbitalKitten has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
rubyaw has joined #ruby
duckpuppy has joined #ruby
Jardayn has joined #ruby
Igorshp has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
pwnd_nsfw has joined #ruby
rubyaw has quit [Client Quit]
karapetyan has joined #ruby
tkuchiki has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
pdoherty has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
Igorshp has quit [Remote host closed the connection]
DiCablo has joined #ruby
Igorshp has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
Erik_Underline has joined #ruby
colegatron has quit [Ping timeout: 252 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
Macaveli has joined #ruby
Igorshp has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
moeabdol has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jmarchello has joined #ruby
Igorshp has joined #ruby
jmarchello has left #ruby [#ruby]
dellavg_ has quit [Quit: ZNC - http://znc.in]
ruurd has joined #ruby
icbm has joined #ruby
dellavg_ has joined #ruby
tref has joined #ruby
techsethi has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
shinenelson has quit [Quit: Connection closed for inactivity]
dellavg_ has quit [Client Quit]
ruurd has quit [Quit: ZZZzzz…]
colegatron has joined #ruby
dionysus69 has joined #ruby
ItSANgo has joined #ruby
kith has quit [Quit: kith]
ivanskie has joined #ruby
freerobby has joined #ruby
devoldmx has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
kith has joined #ruby
fedexo has joined #ruby
mistermocha has joined #ruby
sankaber has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bodgix has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
but3k4 has joined #ruby
jmarchello has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
karapetyan has joined #ruby
shinnya has joined #ruby
<Erik_Underline> Which linux distro is best suited for rubyists?
<lianj> Erik_Underline: doesn't matter
roxtrongo has joined #ruby
<Erik_Underline> Hm, what's your preference though? :D
scampbell has joined #ruby
<demonlove> distro which u install first!!
<Ox0dea> Erik_Underline: Which one(s) are you looking at?
<Erik_Underline> Ubuntu, Mint, Mageia, Gentoo etc
karapetyan has quit [Ping timeout: 250 seconds]
<Erik_Underline> I don't know what to pick xD
<Ox0dea> Erik_Underline: Gentoo, then.
<lianj> Ox0dea: haha
arup_r has quit [Read error: Connection reset by peer]
<lianj> Erik_Underline: you ever used linux before?
<demonlove> ubuntu
<Ox0dea> %w[Ubuntu Mint Mageia Gentoo].sample # Erik_Underline
<Ox0dea> >> %w[Ubuntu Mint Mageia Gentoo].sample # Erik_Underline
<ruboto> Ox0dea # => "Gentoo" (https://eval.in/460694)
arup_r has joined #ruby
<Erik_Underline> I've not.
<shevy> gentoo uses python
<Ox0dea> Erik_Underline: The robot has determined your fate.
dorei has joined #ruby
<lianj> Erik_Underline: gentoo will be too hard
<Ox0dea> Don't listen to them; robots are infallible.
<lianj> go with ubuntu and in a year look at archlinux/gentoo
<demonlove> ubuntu will be easier.
<Ox0dea> "Arch/Gentoo" is the "C/C++" of Linux distros.
<Ox0dea> They don't belong in the same bag.
Rollabunna has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
<Erik_Underline> I'm more familiar with python than C
<demonlove> Ox0dea: how robot are conveting question into eval statement?
<Ox0dea> Erik_Underline: You don't really intend to switch to Linux, do you?
<Ox0dea> demonlove: Pardon?
<lianj> Erik_Underline: you plan to run it as desktop machine or only as a server/vm to ssh into?
Z00t has joined #ruby
<demonlove> how does bot convert it into question
<shevy> demonlove it should show more context
<Ox0dea> demonlove: I just used the Array#sample method to randomly pick one of the elements.
Z00t has quit [Client Quit]
<Erik_Underline> I do, I'm gonna get a test machine to do some linux testing on it, you know
<Ox0dea> lianj: If I'm not much mistaken, Erik_Underline is something of a "help vampire" that's just pouring out the blood. :<
<shevy> yeah good old webchatster
<lianj> oh like shevy then. thanks
<Ox0dea> Not at all like shevy.
<shevy> oh lianj are you the guy who is annoying as hell?=
<Erik_Underline> I thought shevy was more advanced than me
<Erik_Underline> Ox0dea then says "He is"
Z00t has joined #ruby
<demonlove> he is
<Erik_Underline> Wrong guess
<Erik_Underline> xD
<shevy> that's the problem with webchatsters
hippyphysicist has joined #ruby
Z00t has quit [Client Quit]
<Ox0dea> Erik_Underline: We can't say how much more advanced shevy is than you; division by 0 is undefined.
<shevy> I don't webchat!
<Ox0dea> shevy: And you write Ruby!
<Erik_Underline> You're not even allowed to try that :c
<Erik_Underline> Hey, I know a bit of ruby, that's like 0.2 atleast in advancement
<shevy> Ox0dea true
<Erik_Underline> And like... 0.1 in python
<lianj> Ox0dea: shevy is pretty advanced and old when it comes to trolls. it will grow on you
<shevy> Ox0dea: lianj is pretty young and stupid. he won't grow
hippyphysicist has quit [Read error: Connection reset by peer]
<Ox0dea> Erik_Underline: So, what's the game? Are you somehow able to perform the mental gymnastics necessary to equate asking stupid questions with becoming a better programmer?
DoubleMalt has quit [Remote host closed the connection]
<Erik_Underline> Are you?
karapetyan has joined #ruby
<Erik_Underline> Ox0dea:
<Ox0dea> This is called deflection, incidentally, and it means there's a problem.
davedev24 has joined #ruby
<Erik_Underline> Well, you deflected my deflection
karapetyan has quit [Remote host closed the connection]
l_tonz has joined #ruby
<Ox0dea> > So, it has come to this.
<Erik_Underline> I don't know what this is though :x
<Ox0dea> That's the bug we're trying to fix.
<Erik_Underline> def bug
<Ox0dea> Yes, there is definitely a bug.
<Erik_Underline> .-.
chouhoul_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
cjbrambo has joined #ruby
jmarchello has quit [Quit: Leaving.]
zenguy_pc2 has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
rgtk has quit [Remote host closed the connection]
l_tonz has quit [Ping timeout: 250 seconds]
zenguy_pc has quit [Ping timeout: 256 seconds]
kies^ has joined #ruby
<Erik_Underline> Ox0dea: Why didn't you write your code simple like this? = https://eval.in/460698
<Ox0dea> Shameful. https://eval.in/460695
<Erik_Underline> Okay, I forgot to put " ", sorry xD
<shevy> use %w()
<Erik_Underline> Oh neat, didn't know that https://eval.in/460701
bricker has joined #ruby
<Ox0dea> This guy.
lotherk has joined #ruby
<Erik_Underline> Anyhow, Ox0dea, why didn't you write your code like this? https://eval.in/460701 But instead like this https://eval.in/460694
<Ox0dea> Erik_Underline: We should strive not to have to name our throwaway values.
demonlove has quit [Ping timeout: 250 seconds]
<Erik_Underline> What do you mean?
<havenwood> Erik_Underline: Sample yours a few more time to find the folly.
jessemcgilallen has joined #ruby
FernandoBasso has joined #ruby
sandals has joined #ruby
<Erik_Underline> havenwood: I don't see the folly? https://eval.in/460711
bricker has quit [Ping timeout: 240 seconds]
<havenwood> Erik_Underline: That's not the version you asked to compare.
firstdayonthejob has joined #ruby
<Erik_Underline> Yeah, I forgot to remove the ] brackets there
ekinmur has joined #ruby
<havenwood> Erik_Underline: Several versions of your "simple code" don't work. None are simpler.
<Ox0dea> Erik_Underline: This is your third day in #ruby and you still don't have an interpreter installed locally...? I just don't get it.
zenguy_pc2 has quit [Ping timeout: 250 seconds]
<Erik_Underline> <Ox0dea> We should strive not to have to name our throwaway values. What do you mean? https://www.youtube.com/watch?v=IwpphM7u5aQ
<havenwood> Erik_Underline: No trolling.
<Erik_Underline> I'm not trolling -.-
<havenwood> !kick Erik_Underline Bieber
Erik_Underline was kicked from #ruby by ruboto [Bieber]
juanpablo__ has joined #ruby
Erik_Underline has joined #ruby
<Erik_Underline> Whaa? Why was I kicked?
nanoz has quit [Quit: <3]
<shevy> because you are dishonest
<Erik_Underline> ...
<Erik_Underline> Whaa?
akem has joined #ruby
juanpablo__ has quit [Ping timeout: 255 seconds]
<jhass> Erik_Underline: the boilerplate is added by the bot
<jhass> >> 1
<ruboto> jhass # => 1 (https://eval.in/460714)
<Erik_Underline> That, by any definition is an ad-hominem attack based on nothing.
<jhass> Erik_Underline: now compare my input to the code behind the link
<jhass> Erik_Underline: get over it, you don't want to fight it, you'll loose
<Erik_Underline> Well I didn't know that.
<Erik_Underline> I wasn't fighting it
<Erik_Underline> pls
<Erik_Underline> -.-
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hs366 has quit [Quit: Leaving]
claw has quit [Ping timeout: 265 seconds]
zenguy_pc2 has joined #ruby
rgtk has joined #ruby
Ulfalizer has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
<Ox0dea> Erik_Underline: If you will maintain that you are not trolling (here meaning "feigning ignorance pursuant to the displeasure of others"), it must be concluded that you do not, at present, pay sufficiently close attention to detail for this programming thing to be your cup of tea.
claw has joined #ruby
diegoaguilar has quit [Quit: Leaving]
segfalt__ has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
rikkipitt has joined #ruby
segfalt has quit [Ping timeout: 260 seconds]
cjbrambo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cjbrambo has joined #ruby
<shevy> hmm... "gem install" will only install .gem files right? bundler however had also allows installation from e. g. github-based projects... that's one clear advantage that bundler would have compared to gem-installations?
<havenwood> shevy: `gem install -g` will resolve dependencies from a Gemfile including installing gems directly from the Githubs.
dfinninger has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
jackjackdripper has joined #ruby
_blizzy_ has quit [Quit: Leaving]
startupality has joined #ruby
sumark has quit [Remote host closed the connection]
devoldmx has joined #ruby
arup_r has joined #ruby
arup_r has quit [Max SendQ exceeded]
sumark has joined #ruby
OrbitalKitten has joined #ruby
asmodlol has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
stannard has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has quit [Quit: Konversation terminated!]
freerobby has quit [Quit: Leaving.]
ht__ has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
Success has joined #ruby
<Success> why is jruby faster than rubinius, java tends to be slower in almost every other case except ruby... I don't understand.
roxtrongo has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
ekinmur has joined #ruby
l_tonz has joined #ruby
rikkipitt has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 252 seconds]
dfinninger has quit []
arup_r has joined #ruby
cjbrambo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
duckpuppy has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ekinmur has quit [Client Quit]
ht__ has joined #ruby
k3asd` has quit [Ping timeout: 260 seconds]
<Ox0dea> Success: Java is really quite good once the VM's warmed up.
eminencehc has joined #ruby
Erik_Underline has quit [Ping timeout: 246 seconds]
<Success> besides the memory overhead and such I suppose.
maletor has joined #ruby
<Ox0dea> Success: You were asking about speed.
<Success> ah i see the issue after you said that it all makes sense thanks
ht__ has quit [Client Quit]
ht__ has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
<Success> thanks Ox0dea
<Ox0dea> Success: Happy to help, I guess? :P
<Success> btw what do you do with ruby
<apeiros> dangerous question to ask Ox0dea, that is, if you value your sanity.
Rollabunna has quit [Quit: Leaving...]
beauby has joined #ruby
bMalum_ has joined #ruby
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Ping timeout: 250 seconds]
bMalum_ is now known as bMalum
segfalt__ has quit [Ping timeout: 240 seconds]
cjbrambo has joined #ruby
cjbrambo has quit [Client Quit]
<Ox0dea> Success: I value your sanity.
Motoservo has joined #ruby
<Success> Ox0dea oh trust me I don't that ship has sailed
icbm has quit [Quit: Leaving]
<Ox0dea> Success: I can't that sentence. :<
<Success> Ox0dea: sanity? what is that.
<Success> Ox0dea: my sanity is long gone my friend lol
<Ox0dea> That's nothing to be joked about with such levity.
<Success> i'll just pretend its top secret or something and continue with my noobishness
ht__ has quit [Quit: Konversation terminated!]
rgb-one has joined #ruby
<rgb-one> Hey
<Success> so basically nginx is running through unicorn to rack to render markdown for me. is that the proper way to do things or..?
<Success> mind you apache is also passing /cdn/ to nginx
<Success> hey rgb-one
<Ox0dea> Success: You've got Rack rendering your Markdown?
eminencehc has quit [Remote host closed the connection]
<Success> Ox0dea: yeah
<Ox0dea> Success: Do you mean Tilt?
<Success> thanks
l_tonz has quit [Ping timeout: 265 seconds]
<rgb-one> Success: o/
<rgb-one> I am working on a basic virus scanner application and would like to discuss it a bit
jackjackdripper has quit [Read error: Connection reset by peer]
<Success> by the way how should I be accessing the url variable i legitimately edited the source code for each of these (i'm using gentoo and had it readily available) to pass it through something stupid i dont care to remember right now
jackjackdripper has joined #ruby
<Success> like I want localhost/readme.md to read readme.md from the filesystem and parse it as html
<Success> rgb-one: sure i've written some of those I'd love to discuss it :)
<Ox0dea> rgb-one: Have you done some cursory research into how the established players do it?
favadi has joined #ruby
<rgb-one> Ox0dea, Success, Cool :)
<Success> rgb-one: remember that fbi virus, I wrote a patch that hp and lenovo silently pushed to all of their systems globally to fix it hehe. pretty proud xD
houhoulis has joined #ruby
<Success> rgb-one how far are you, or have you started yet?
<rgb-one> Success: I have started with the GUI but I haven't done much.
<Ox0dea> rgb-one: You're doing it backwards. :<
segfalt__ has joined #ruby
<Success> oX0dea, top down v. bottom up dude.
<rgb-one> I've been putting the cart ahead of the horse, in that I haven't clarified my ideas and already I am coding.
<Success> rgb-one but yes, usually you should write the gui as an interface to the cli
carvantes has joined #ruby
<rgb-one> Success: Yea
<Success> rgb-one: no worries man, it's youre first one, that's pretty common way (nubishly) of doing things, just know you'll end up rewriting it and being highly disatisfied
tmtwd has joined #ruby
<rgb-one> Alright so I will clarify the scope of this application
<rgb-one> thats another thing you know without boundaries I kinda go crazy with ideas and don't settle.
<rgb-one> So the application is a basic virus scanner that will scan files to check if it is a virus by using its file signiature (md5, sha1)
centrx has joined #ruby
centrx has quit [Read error: Connection reset by peer]
Guest26537 has joined #ruby
<rgb-one> So I will have a virus definitions database and if a file matches any of the definitions in the database, then it will be flagged as a virus and quarentined
<Ox0dea> rgb-one: All five of them?
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rgb-one> Ox0dea: five? What do you mean?
<Ox0dea> rgb-one: I realize you're only doing it as an exercise, but do be mindful of the fact that very few real-world viruses are "static" enough for a simple checksum to reliably detect them.
bricker has quit [Ping timeout: 260 seconds]
<Ox0dea> Success: Can you help? https://eval.in/460724
<Ox0dea> I don't get why that doesn't print "foo ".
<Ox0dea> I'm super-shoveling ' ' into 'foo', right?
l_tonz has joined #ruby
<Success> rgb-one just a sec
cwong_on_irc has joined #ruby
<rgb-one> Ox0dea: Maybe cause you are using single quotes.
<Ox0dea> rgb-one: Just a sec.
pmarreck has quit [Ping timeout: 240 seconds]
<Ox0dea> Same deal. https://eval.in/460730
<Success> Ox0dea: too many arrows dude only use two lmao
prasselpikachu has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
danzilio has quit [Ping timeout: 240 seconds]
bougyman has quit [Ping timeout: 240 seconds]
BackEndCoder has quit [Ping timeout: 240 seconds]
<Ox0dea> Success: But I want to super-shovel.
<Success> *shrug*
sgambino has joined #ruby
knowtheory has quit [Ping timeout: 240 seconds]
bjmllr has quit [Ping timeout: 240 seconds]
<Success> rgb-one: so for all intesnive purposes lets say we do that
sandals has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EasyCo has quit [Ping timeout: 240 seconds]
frankS2 has quit [Ping timeout: 240 seconds]
ELCALOR has quit [Ping timeout: 240 seconds]
DoYouKnow has quit [Ping timeout: 240 seconds]
<Success> Here's what you want to figure out how to do: checksum, get a directory listing, differentiate a file and folder, and access a database
PhilK has quit [Ping timeout: 240 seconds]
Iacobus has quit [Ping timeout: 240 seconds]
jevs has quit [Ping timeout: 240 seconds]
halfdan has quit [Ping timeout: 240 seconds]
Laaw has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 240 seconds]
GGMethos has quit [Ping timeout: 240 seconds]
JStoker has quit [Ping timeout: 240 seconds]
iamdevnul has quit [Ping timeout: 240 seconds]
borkdude has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 240 seconds]
tobiasvl has quit [Ping timeout: 240 seconds]
<Success> rgb-one: now the hardest part is actually gui related- the progress bar, which will be very fun I promise ;)
akitada has quit [Ping timeout: 240 seconds]
tobyx has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 240 seconds]
G has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
elektronaut has quit [Ping timeout: 240 seconds]
drPoggs has quit [Ping timeout: 240 seconds]
MiracleBlue has quit [Ping timeout: 240 seconds]
pfg has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
Eleeleth has quit [Ping timeout: 240 seconds]
ramblinpeck has quit [Ping timeout: 240 seconds]
<Success> rgb-one: what are you having issues with?
mistermocha has joined #ruby
sparr has quit [Ping timeout: 240 seconds]
moss has quit [Ping timeout: 240 seconds]
chris2 has quit [Ping timeout: 240 seconds]
demophoon has quit [Ping timeout: 240 seconds]
SilentEcho has quit [Ping timeout: 240 seconds]
borkdude has joined #ruby
<Success> Ox0dea: why doesn't i+++++i work, it's a valid statement XD same reason i think llol
adambeynon has joined #ruby
bjmllr has joined #ruby
halfdan has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
ELCALOR has joined #ruby
<Ox0dea> Success: That could work just fine. Do observe that I'm not getting a SyntaxError.
tobyx has joined #ruby
G has joined #ruby
danzilio has joined #ruby
jevs has joined #ruby
knowtheory has joined #ruby
<Ox0dea> >> i = 2; i+++++i
<ruboto> Ox0dea # => 4 (https://eval.in/460736)
rflot has joined #ruby
pfg has joined #ruby
Eleeleth has joined #ruby
MiracleBlue has joined #ruby
<Success> tbbh what do you mean "super shovel"
Iacobus has joined #ruby
PhilK has joined #ruby
<Success> Ox0dea: shouldn't that be like six?
DoYouKnow has joined #ruby
iamdevnul has joined #ruby
Zarthus is now known as Scarthus
EasyCo has joined #ruby
ramblinpeck has joined #ruby
symm- has joined #ruby
<Ox0dea> Success: Nah, +@ is the identity function for Fixnums.
pandaant has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
<Ox0dea> << is the "shovel" operator, so I figured I could use it twice to, like, double-shovel.
<Success> oh really it should be i++ + ++i
<Ox0dea> This isn't ##c.
lele has joined #ruby
<Success> idk what a double shovle would do other than push null to nothing lol
codecop has joined #ruby
<Ox0dea> >> 'foo' << 'x' << 'y' # Success
<ruboto> Ox0dea # => "fooxy" (https://eval.in/460737)
frankS2 has joined #ruby
<Ox0dea> Why can't I cut out the middleman?
akkad has quit [Excess Flood]
prasselpikachu has joined #ruby
bougyman has joined #ruby
demophoon has joined #ruby
asmodlol has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
<rgb-one> Success: I think I will focus on the backend first
<Success> >> 'foo' <<<< 'xy' # doesn't make sense
Laaw has joined #ruby
<ruboto> Success # => /tmp/execpad-f1502b1332fb/source-f1502b1332fb:2: syntax error, unexpected << ...check link for more (https://eval.in/460738)
drPoggs has joined #ruby
BTRE has joined #ruby
Shidash has joined #ruby
JStoker has joined #ruby
<Success> like i feel like this is to make a point in reference to somethin earlier but you win im not following XD
elektronaut has joined #ruby
<Ox0dea> ...?
akitada has joined #ruby
<Success> OH I GET IT NOW THATS BRILLIANT
BackEndCoder has joined #ruby
<rgb-one> Success: I will be using Python to code the application because I will be using PyQt for the GUI.
akkad has joined #ruby
<Ox0dea> rgb-one: I thought we were friends.
<Success> rgb-one lol well than why are you....
<rgb-one> Ox0dea: lol
asmodlol has joined #ruby
<dreinull75> is it possible to namespace methods? I have a bunch of methods from classes and subclasses that I want to iterate over. However, some methods I excluded. So if there's a way to group or namespace methods, I'd be happy to know.
<dreinull75> I _want_ excluded
eminencehc has joined #ruby
<rgb-one> dreinull75: Yea, you can use module_function
<shevy> you could put each method into a separate module namespace
<dreinull75> how's that rgb-one and shevy?
pwnd_nfsw has joined #ruby
<Success> dreinull75: blacklist ur loop
<rgb-one> so define a module for eg. module ModuleName
<dreinull75> Success don't know which methods the classes will get. Besides, I don't like that approach.
djbkd has joined #ruby
<rgb-one> In order to use a function from within a module, you will need to use module_function
<shevy> module KillCat; def kill_cat(this_cat);end; end <-- you can add module_function too if you want to call it standalone, or just plain old def self.kill_cat
bruno- has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
<rgb-one> Then you can reference the function like this: ModuleName.function()
<shevy> and build up an array that has all methods that you want to iterate
eminence_ has joined #ruby
<dreinull75> ok, so I define my methods outside the class.
<dreinull75> Makes sense. I thought about telling the methods inside that they also have a second home
<Ox0dea> dreinull75: Well, or even inside the class inside a module.
<Ox0dea> Classes are secretly modules, and they can nest arbitrarily deep.
<shevy> :)
<Ox0dea> >> Array.is_a? Module
<ruboto> Ox0dea # => true (https://eval.in/460742)
zapata has joined #ruby
<dreinull75> ok, great. In Ruby there's always a simple way to accomplish something difficult.
beauby has quit [Ping timeout: 265 seconds]
SilentEcho has joined #ruby
<Ox0dea> And vice-versa. ^_^
<dreinull75> of course
eminencehc has quit [Ping timeout: 240 seconds]
juanpablo__ has joined #ruby
<Ox0dea> dreinull75: http://i.imgur.com/94jou4v.png
<shevy> Ox0dea what happened to [k-
pmarreck has joined #ruby
<Ox0dea> shevy: He's... not a fan of IRC anymore, I guess?
<shevy> that's almost ascii art there
<shevy> misses the unicode snowman though
sandals has joined #ruby
sparr has joined #ruby
moss has joined #ruby
<Ox0dea> Well, that wouldn't be a very sensible indicator for "delete from to-do list", would it?
GGMethos has joined #ruby
chris2 has joined #ruby
<shevy> snowmen should have a lot of priority, it's winter season!
c355E3B has quit [Quit: Connection closed for inactivity]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> I ended up using ✗: https://eval.in/459020
<Success> sry i live in texas we dont have snow
maletor has quit [Quit: Computer has gone to sleep.]
<Success> Ox0dea: i love you.
<Success> Ox0dea: now thats how you code ;)
roxtrongo has joined #ruby
<Ox0dea> shevy: I'm looking for wintry "delete" symbols in the Astral Planes.
cmoney has joined #ruby
<Ox0dea> Success: You were duly warned.
juanpablo__ has quit [Ping timeout: 255 seconds]
<shevy> /execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- sinatra (LoadError)
<shevy> aha!
<Ox0dea> Sneaky LoadError.
<Success> nah dude i love it lol
<Success> my computer science teachers hated when i did that stuff
<Success> but mmm yumy
<Ox0dea> Do you love it so much that you'll run it blind?
<Success> YES
<Ox0dea> As root, even?
jackjackdripper has quit [Quit: Leaving.]
chipotle has joined #ruby
<Ox0dea> Oh... never mind.
l_tonz has quit [Remote host closed the connection]
Guest26537 has quit [Read error: Connection reset by peer]
<Success> Ox0dea that's the only way to run things, isn't it.
scary_saturday has joined #ruby
<Ox0dea> Success: On Windows, sure. :P
<Success> NoMethodError at / undefined method `[]' for nil:NilClass
<scary_saturday> can I get someone's opinion on an rspec test design
<Ox0dea> Success: Damn, really? Which line?
<Success> 22
<Ox0dea> I'm using the Binding#receiver method that was added in 2.2.
<Ox0dea> How appropriate.
<Success> the sinatra '*' line
<Success> yeah
<rgb-one> >> module ModuleName; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
<ruboto> rgb-one # => undefined method `add' for ModuleName:Module (NoMethodError) ...check link for more (https://eval.in/460744)
ec is now known as ellie
<rgb-one> >> module ModuleName; module_function; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
<ruboto> rgb-one # => 22 ...check link for more (https://eval.in/460745)
<Ox0dea> rgb-one: That's not quite what #module_function is for, though.
ellie is now known as ec
<rgb-one> Ox0dea: What other purpose does it serve?
<Ox0dea> That is, it doesn't just update the visibility modifier so that subsequently defined methods go on the singleton class, like you'd get with `class << self ...`.
beauby has joined #ruby
tk__ has quit [Quit: ばいばい]
uber has quit [Ping timeout: 272 seconds]
greg has joined #ruby
<Ox0dea> rgb-one: It also establishes hooks that define the module's singleton methods as instance methods on classes/modules that `include` it.
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandals has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
<jhass> sure it sets up hooks?
scary_saturday has quit [Quit: Page closed]
<jhass> I thought it just copies the instance method to the modules singleton class, then makes it private
<dreinull75> hm, the methods I want are actually defined in a module that defines them dynamically in a self.included method. So I would have to create module inside the self included method that is somehow accessbile. That coorect?
diegoaguilar has quit [Ping timeout: 250 seconds]
cntrx has joined #ruby
<Ox0dea> jhass: I suppose "hook" isn't quite the right term, but then how do module functions get picked up from `include/extend`?
agit0 has joined #ruby
darkf has quit [Quit: Leaving]
<jhass> they remain to be private instance methods
<Ox0dea> Right, right. </derp>
roxtrongo has quit [Remote host closed the connection]
<jhass> "Module functions are copies of the original, and so may be changed independently. The instance-method versions are made private"
beauby has quit [Read error: Connection reset by peer]
l_tonz has joined #ruby
uber has joined #ruby
l_tonz has quit [Client Quit]
l_tonz has joined #ruby
max_kuzmin has left #ruby [#ruby]
_blizzy_ has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
nixmaniack has quit [Client Quit]
<Ox0dea> dreinull75: How come you can't just remember the target methods as you create them?
skade has joined #ruby
nixmaniack has joined #ruby
cntrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
cntrx has joined #ruby
beauby has joined #ruby
<Ox0dea> dreinull75: As for "somewhat accessible", you can use #const_set to make that anonymous Module "completely accessible".
zenguy_pc2 has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 256 seconds]
ekinmur has joined #ruby
nixmania_ has joined #ruby
ghoti has quit [Ping timeout: 272 seconds]
<dreinull75> It's headbending. The module that creates the methods is included by a bunch of classes. What I'm doing is creating accessor methods to DB table columns. So each table has its own class and columns. All created dynamically and added to the sequel base classes. So later on for my templates I want to have all of my methods that I have defined statically or dynamically and add some magic (the delegator method thing I managed the day before yesterday).
dome22xl has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dreinull75> So I figured that there are so many Sequel methods and superclass methods that I'm losing track.
diegoaguilar has joined #ruby
nixmaniack has quit [Ping timeout: 255 seconds]
greg has quit [Quit: Leaving]
<Ox0dea> dreinull75: Aye, you may well be doing too much metaprogramming. :<
jokke has quit [Quit: WeeChat 1.3]
<dreinull75> Ox0dea probably. But how am I going to learn that stuff without doing?
ghoti has joined #ruby
<Ox0dea> dreinull75: A fair assessment of the thing, I suppose, but it's possible to learn to do bad things.
tmtwd has quit [Ping timeout: 265 seconds]
<dreinull75> I guess I have to see for myself how things turn bad. Also this last week has taught me many interesting things.
<dreinull75> I like it.
<Ox0dea> Knowledge is bliss.
rikkipitt has joined #ruby
cntrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
jokke has joined #ruby
centrx has joined #ruby
cmoney has quit [Remote host closed the connection]
naftilos76 has joined #ruby
twe4ked_ has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
twe4ked_ is now known as twe4ked
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghoti has quit [Ping timeout: 256 seconds]
beauby has quit [Ping timeout: 240 seconds]
zenguy_pc2 has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
Bulo has joined #ruby
ghoti has joined #ruby
beauby has joined #ruby
rbennacer has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dome22xl has quit [Quit: Bye]
dasher00 has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
Alina-malina has joined #ruby
rikkipitt has quit [Remote host closed the connection]
arup_r is now known as Guest63926
beauby has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
DexterLB has joined #ruby
devoldmx has joined #ruby
tref has quit [Quit: tref]
Guest63926 has quit [Client Quit]
OrbitalKitten has joined #ruby
arup_ has joined #ruby
musou has joined #ruby
tref has joined #ruby
heyimwill has joined #ruby
arup_ has quit [Read error: Connection reset by peer]
krasnus has joined #ruby
pdoherty has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
Bulo has quit [Read error: Connection reset by peer]
bnizzle has joined #ruby
<shevy> if only computers could write ruby for us
l_tonz has quit [Remote host closed the connection]
bnizzle1 has quit [Ping timeout: 265 seconds]
stannard has joined #ruby
<centrx> Matz could do it
arup_ has joined #ruby
arup_ has quit [Read error: Connection reset by peer]
fedexo has quit [Ping timeout: 246 seconds]
willardg has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
arup_ has joined #ruby
arup_ has quit [Read error: Connection reset by peer]
cats is now known as creepycat
akem has quit [Quit: Bye]
<Ox0dea> I know it doesn't look like it, but matz is actually writing Ruby in this picture: http://i.imgur.com/0bNLHNc.png
duckpuppy has joined #ruby
<Ox0dea> He has become one with the interpreter.
<atmosx> hello
<Success> hello atmosx
Pierreb has quit []
blue_deref has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
jessemcgilallen has joined #ruby
asmodlol has quit [Ping timeout: 272 seconds]
barhum2013 has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
asmodlol has joined #ruby
<shevy> Ox0dea hah, ruby-matrix
<shevy> matz starring as keanu reeves
roxtrongo has joined #ruby
howdoi has joined #ruby
sankaber has joined #ruby
segfalt__ has quit [Ping timeout: 256 seconds]
kp666 has joined #ruby
arup_ has joined #ruby
joonty has joined #ruby
crystalmaiden has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
joonty has quit [Quit: joonty]
vdamewood has quit [Quit: Life beckons.]
roxtrongo has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
treaki has joined #ruby
arup__ has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
moeabdol has joined #ruby
arup_ has quit [Ping timeout: 255 seconds]
juanpablo__ has joined #ruby
nixmania_ has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
_blizzy_ has quit [Ping timeout: 252 seconds]
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
th0m_ has joined #ruby
_blizzy_ has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
Dreamer3 has joined #ruby
devoldmx has quit [Remote host closed the connection]
sdfgsdfg has quit [Ping timeout: 252 seconds]
akem has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
diego2 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego2 is now known as diegoviola
Puffball has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 240 seconds]
Puffball has joined #ruby
momomomomo has quit [Quit: momomomomo]
DiCablo has joined #ruby
nixmaniack has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
nixmaniack has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
nixmaniack has joined #ruby
Musashi007 has joined #ruby
rgb-one has quit [Ping timeout: 246 seconds]
VeryBewitching has joined #ruby
l_tonz has joined #ruby
OrbitalKitten has quit [Ping timeout: 244 seconds]
OrbitalKitten has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
tulak has quit [Remote host closed the connection]
ibouvousaime has quit [Ping timeout: 264 seconds]
kadoppe has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
Puffball has quit [Remote host closed the connection]
barhum2013 has quit [Remote host closed the connection]
arup__ is now known as arup_r
kadoppe has joined #ruby
lapide_viridi has joined #ruby
Puffball has joined #ruby
Puffball has quit [Remote host closed the connection]
fantazo has joined #ruby
Puck6633 has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
Puck6633 has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_ has joined #ruby
kobain has joined #ruby
startupality has quit [Quit: startupality]
lapide_viridi has quit [Quit: Leaving]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
zenguy_pc2 has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
r0bby_ has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
duckpuppy has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
Musashi007 has quit [Quit: Musashi007]
treaki has quit [Ping timeout: 272 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
ibouvousaime_ has joined #ruby
ibouvousaime has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
carvantes has quit [Quit: WeeChat 0.4.2]
sankaber has quit [Remote host closed the connection]
zenguy_pc2 has joined #ruby
Puffball has quit [Remote host closed the connection]
sankaber has joined #ruby
Puffball has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
keen___________1 has quit [Ping timeout: 240 seconds]
keen___________1 has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
th0m_ has quit [Ping timeout: 272 seconds]
jgt has quit [Ping timeout: 252 seconds]
codecop has quit [Quit: Išeinu]
mozzarella has quit [Quit: WeeChat 1.2]
segy has quit [Quit: ZNC - http://znc.in]
Mia has quit [Read error: Connection reset by peer]
segy has joined #ruby
yqt has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
_blizzy_ has quit [Ping timeout: 268 seconds]
diegoaguilar has quit [Ping timeout: 256 seconds]
minimalism has quit [Quit: leaving]
maletor has joined #ruby
ekinmur has joined #ruby
mallu has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
<shevy> you people are soooo lazy on weekends
maletor has quit [Max SendQ exceeded]
<adaedra> no.
shinnya has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
juanpablo__ has joined #ruby
machan has joined #ruby
<machan> Hi guys. Testing question here for any TDD/test gurus :-)
<shevy> ack
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> machan: Stub your doubles, mock your floats.
<machan> I need to test that a certain attribute of an object is set. I can't inject a test double.
<Ox0dea> > Neener, neener, IEEE754 can't even accurately represent 0.3.
<Ox0dea> Something like that for the latter case.
<machan> How would assessing the value of the instance's method be approached?
<machan> Sorry, by attribute I did mean "method".
<Ox0dea> machan: So, `#respond_to?`, then?
<machan> Ox0dea: I can't invoke a method on the underlying object I wish to test directly, because it's being instantiated inside the class
<machan> And I cannot pass a test double.
<Ox0dea> machan: Uh... reconsider the decision you've made to arrive at such an impasse?
<Ox0dea> *decisions
<machan> Ox0dea: good point. That's probably the real question I should be asking here
juanpablo__ has quit [Ping timeout: 256 seconds]
nsuke has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea> machan: I think so, yeah.
diegoviola has quit [Quit: WeeChat 1.3]
<Ox0dea> machan: Just extract the object creation.
diegoaguilar has joined #ruby
<machan> Ox0dea: I think it's where the codebase I'm working with is already a little strange.
cmoney has joined #ruby
<machan> If it was all well designed - I don't think I'd be battering an eyelid at this. I feel like this change will be a little "odd one out"
leafybasil has quit [Remote host closed the connection]
<Ox0dea> machan: Fair enough, I guess, but if you want to pluck an object out of thin air, you'll have to resort to ObjectSpace.
FernandoBasso has quit [Ping timeout: 240 seconds]
<Ox0dea> And using ObjectSpace in your tests is fucking nuts.
<Ox0dea> (You should totally try it.)
speakingcode has quit [Ping timeout: 250 seconds]
<machan> Ox0dea: out of curiosity, why is it so nuts?
FernandoBasso has joined #ruby
<machan> Ox0dea: also, I think you're talking complete sense, and you've just reaffirmed what I _wanted_ to do anyway
<Ox0dea> May the fates have mercy.
<machan> Think I just needed to hear someone else sharing my point of view :-)
<Ox0dea> <3
mloy has joined #ruby
<Ox0dea> Write code, be merry, and mind the footguns.
willardg has joined #ruby
uri_ has joined #ruby
fantazo has joined #ruby
chipotle has quit [Quit: cheerio]
ibouvousaime__ has joined #ruby
ibouvousaime_ has quit [Ping timeout: 244 seconds]
keen___________1 has quit [Ping timeout: 260 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mallu has joined #ruby
shredding has quit [Ping timeout: 268 seconds]
<mallu> I'm learning ruby and I just learn repeating string using *. How do you repeat n times in n lines?
<mallu> test * 5 I want it to show test in 5 lines
lemondom_ has joined #ruby
<jhass> mallu: a newline is produced by the \n character
<al2o3-cr> >> "test\n"*5
<ruboto> al2o3-cr # => "test\ntest\ntest\ntest\ntest\n" (https://eval.in/460799)
<jhass> >> puts "test\n"*5
<ruboto> jhass # => test ...check link for more (https://eval.in/460800)
lemondom has quit [Ping timeout: 250 seconds]
colegatron has quit [Ping timeout: 240 seconds]
azul1 has joined #ruby
c355E3B has joined #ruby
_blizzy_ has joined #ruby
<mallu> thank you sir
l_tonz has quit [Remote host closed the connection]
azul1 has quit [Client Quit]
<Ox0dea> mallu: Be advised that passing an Array to #puts causes it to print each element on its own line, so you could also say `puts ['test'] * 5`.
<jhass> mallu: you're welcome ma'am
hmsimha_ has joined #ruby
cmoney has quit [Remote host closed the connection]
DEA7TH has joined #ruby
chipotle has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mloy has quit [Quit: Leaving]
lemondom_ has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
Silox| has joined #ruby
ibouvousaime__ has quit [Quit: Leaving]
ibouvousaime has joined #ruby
willardg has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
colegatron has joined #ruby
KINGSABRI has joined #ruby
<dreinull75> method_added is nice but how do I know which class added it? Via ancestors? Is there a better way?
cmoney has joined #ruby
willardg has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
KINGSABRI_ has quit [Remote host closed the connection]
KINGSABRI has quit [Remote host closed the connection]
<Ox0dea> dreinull75: `self`, no?
devbug has joined #ruby
KINGSABRI has joined #ruby
doddok has quit [Quit: Leaving]
<Ox0dea> dreinull75: https://eval.in/460803
chipotle has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
<dreinull75> Ox0dea oops, included works as well.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dreinull75> I love that Module stuff
diegoviola has joined #ruby
<dreinull75> no, not included. self it is. You're right.
hxegon has joined #ruby
jgt has joined #ruby
freerobby has joined #ruby
cmoney has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 260 seconds]
saddad has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
tomkadwill has joined #ruby
tomkadwill has left #ruby [#ruby]
_blizzy_ has quit [Read error: Connection reset by peer]
ghoti has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Coldblackice has joined #ruby
rakm has joined #ruby
diegoaguilar has quit [Ping timeout: 265 seconds]
devoldmx has joined #ruby
bb010g has joined #ruby
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
stamina has joined #ruby
ghoti has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
akem has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<devbug> I'm trying to figure out how to reconcile code like this with https://gist.github.com/mtwilliams/110a2fbdc643582690fb
<devbug> Merges are quite easy--just deep merge.
arup_r has quit [Quit: Leaving]
_blizzy_ has joined #ruby
<Ox0dea> devbug: You can say `|=`, for future reference.
leafybasil has joined #ruby
<Ox0dea> It's not often you get to.
Jackneill has quit [Remote host closed the connection]
<devbug> Ox0dea: Noted.
<devbug> The crux, I think, is boiling it down to how do I "schematize" hierarchies?
<Ox0dea> devbug: Do what Postgres does? :P
decoponio has quit [Quit: Leaving...]
<Ox0dea> (But seriously.)
<devbug> What I mean is, how do I specify I have a "Hash" (read: struct) with "includes/libraries/binaries"?
akkad has quit [Excess Flood]
<devbug> I also want to be able to specify (and type check) that arrays only contain Ryb::Dependency's
bruno- has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<Ox0dea> devbug: The latter is just `foo.all? { |e| e.is_a? RyB::Dependency }`.
<Ox0dea> *Ryb
akkad has joined #ruby
<devbug> Ox0dea: mhm, but I want to declaratively
radgeRayden has joined #ruby
<devbug> ^ do this
<Ox0dea> Could you clarify what that means to you in this particular context?
<devbug> Ox0dea: I've been thinking that I could say
<devbug> property :dependencies, Array[Ryb::Dependency], :default => [], :merge => true
<Ox0dea> devbug: You're in space, mate.
diegoaguilar has joined #ruby
<devbug> Ox0dea: ?
<devbug> (property being def self.property(name, type, opts={}))
<devbug> I can decompose the type then, easily:
s00pcan has joined #ruby
<Ox0dea> devbug: Do you intend to dogfood this?
<devbug> Ox0dea: yes
<devbug> absolutely
<Ox0dea> And you're sure Ruby is the right language?
<devbug> Yes.
<Ox0dea> Because you like its syntax?
<devbug> A few things,
<devbug> 1) Syntax.
<devbug> 2) Extensibility, for end-user. (Using all manner of gems during builds)
hxegon_ has joined #ruby
<devbug> 3) Librarification. So I can write tools to operate on a Rybfile
<devbug> For example, say I want to CI my project.
hxegon has quit [Ping timeout: 244 seconds]
<devbug> I will write a .travis.yml, right?
<c355E3B> yeah
<devbug> I need to verify my code compiles for debug/development/release.
<c355E3B> well depends on the host
<devbug> I could go in an manually write all the environment permutations.
<devbug> Or parse the Rybfile, and generate that--bug free.
tjohnson has quit [Quit: Connection closed for inactivity]
haxrbyte_ has quit [Ping timeout: 250 seconds]
dh64 has joined #ruby
bruno- has joined #ruby
to_json has joined #ruby
to_json has joined #ruby
nlsun has quit [Quit: ZNC - http://znc.in]
hxegon_ has quit [Ping timeout: 250 seconds]
<shevy> hmm
<shevy> what is a Rybfile
nlsun has joined #ruby
LBRapid has quit [K-Lined]
Nightmare has quit [K-Lined]
hxegon has joined #ruby
ghoti has joined #ruby
fantazo has quit [Ping timeout: 268 seconds]
MVPhelp_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
LBRapid has joined #ruby
Nightmare has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
Vile` has quit [Ping timeout: 250 seconds]
zenguy_pc2 has quit [Ping timeout: 246 seconds]
MVPhelp has joined #ruby
KINGSABRI has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 250 seconds]
shinnya has joined #ruby
<devbug> shevy: ever used premake?
ekinmur has joined #ruby
<devbug> well, in ruby terms it's ryb's equivilant of a gemspec/podfile/etc.
<shevy> hmm ... that is a build tool isn't it?
<devbug> yeah
<shevy> I think I used it only very briefly, it did not seem to become as important as others like cmake, scons or waf
wennefer has joined #ruby
Vile` has joined #ruby
<devbug> shevy: doubt it
<devbug> Just started writing it
<devbug> oh premake. yeah
startupality has joined #ruby
<devbug> shevy: it's a niche build system (games/game engines/game tools)
tomkadwi_ has joined #ruby
<devbug> Here's what a Rybfile looks like. https://gist.github.com/mtwilliams/d7c10c6ecc740dc8568b
<devbug> I'm going to be cleaning it up w/ a builder pattern to reduce repetition
<shevy> I see
tomkadwill has joined #ruby
rikkipitt has joined #ruby
hxegon has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
naftilos76_ has joined #ruby
duckpuppy has joined #ruby
wennefer has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
_blizzy_ has quit [Quit: Leaving]
tomkadwi_ has quit [Ping timeout: 264 seconds]
<devbug> btw, is there a be-all, end-all solution for managing&deployinging ruby cli tools?
ghoti has joined #ruby
<devbug> like, using octra/omnibus/platypus/homebrew to ship to all major platforms?
thesquidbits has joined #ruby
<devbug> I'd rather not have to build a huge rakefile for that.
<adaedra> A gem?
hxegon has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc2 has joined #ruby
Joshua__ has joined #ruby
<Joshua__> k
<Joshua__> hello?
<Joshua__> i have a question
naftilos76_ has quit [Client Quit]
<Joshua__> im trying to make the terminal ask a question in ruby and then if the user types yes or no to the question is has an answer depending on the answer
cmoney has joined #ruby
<Joshua__> like if yes itd say "okay lets do it" or if no "nevermind"
jgt has joined #ruby
ghoti has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
<adaedra> hello
<al2o3-cr> Joshua__: print/gets
<adaedra> what is the real issue, Joshua__
<dreinull75> Let's rock, it works.
troulouliou_dev has joined #ruby
<dreinull75> I created a method logger module/class with class vars that keep track of all whitelisted defined methods.
<dreinull75> Feeling great now.
SenpaiSilver has joined #ruby
<dreinull75> off for a beer. mission accomplished.
<adaedra> ?beer
<ruboto> I don't know anything about beer
<adaedra> damn.
<adaedra>
cpup has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 272 seconds]
<Joshua__> like
<Joshua__> can i say
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tomkadwill has quit []
<Joshua__> end
<Ox0dea> Joshua__: No, not without having said something else first.
<Ox0dea> You *can* say `END{}` wherever you want, but that's of little impertinence just now.
nettoweb has joined #ruby
juanpablo__ has joined #ruby
<Ox0dea> >> "#{END { p 1 }}"
<ruboto> Ox0dea # => "" ...check link for more (https://eval.in/460834)
yfeldblum has joined #ruby
<Joshua__> can i say if answer == "yes"
<Ox0dea> ?try Joshua__
<ruboto> Joshua__, Why don't you try it and see for yourself?
blue_deref has quit [Quit: bbn]
<Ox0dea> Joshua__: Are you learning Ruby by guessing?
<Joshua__> no, im having an issue
<Joshua__> lol
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Joshua__: Your issue is likely that you're not bothering to find a decent resource from which to learn Ruby.
<Joshua__> thats not it, one second
<Joshua__> ill show you the code and youll see what im trying to figure out
rgtk has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
devbug_ has joined #ruby
juanpablo__ has quit [Ping timeout: 256 seconds]
<Joshua__> puts("Do know know how many stars on the american flag?") answer = gets if answer == "yes" puts("Thats awesome!") elsif answer == "no" puts("Wow, thats no good!") else puts("You need to type yes or no.") end
<Joshua__> damn this looks terrible
nertzy has joined #ruby
<adaedra> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
devbug has quit [Ping timeout: 252 seconds]
<adaedra> Use that to show your code, Joshua__ ^
Ox0dea has quit [Quit: WeeChat 1.4-dev]
<Joshua__> okay sorry about that i will one moment
eminencehc has joined #ruby
<adaedra> Also, don't forget to include a description of the issue, i.e. an error message or a not working case
<adaedra> (expectation/reality)
<dreinull75> Actually, I like fpaste.org better.
<dreinull75> But I'm off anyway.
<dreinull75> As I said.
<Joshua__> its automatically going to the else statement
nixmaniack has quit [Remote host closed the connection]
<dreinull75> Joshua__ you can just paste the URL
eminence_ has quit [Ping timeout: 240 seconds]
ghoti has joined #ruby
<adaedra> &ri Kernel#gets
duckpuppy has quit [Ping timeout: 244 seconds]
<adaedra> Read this carefully, it holds the why.
allomov has quit [Remote host closed the connection]
<al2o3-cr> Joshua__: HINT: remove 10.chr(s)
mozzarella has joined #ruby
<Joshua__> ??
<Joshua__> wait what?
RobertBirnie has joined #ruby
diegoaguilar has joined #ruby
uri_ has joined #ruby
l_tonz has joined #ruby
<adaedra> Joshua__: there is something about `gets` that you don't seem to know and prevents your code from working as is.
uri_ has quit [Client Quit]
<adaedra> It's written in the documentation of Kernel#gets. You can also try to inspect with p the string you get from gets.
allomov has joined #ruby
Oatmeal has quit [Ping timeout: 252 seconds]
troulouliou_dev has quit [Quit: Leaving]
chipotle has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
l_tonz has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
allomov has quit [Remote host closed the connection]
ghoti has quit [Ping timeout: 240 seconds]
cmoney has quit [Remote host closed the connection]
bryanray has joined #ruby
Oatmeal has joined #ruby
RobertBirnie has joined #ruby
k3asd` has joined #ruby
rdema has quit [Ping timeout: 240 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yxhuvud has quit [Ping timeout: 244 seconds]
chrisja has joined #ruby
jessemcgilallen has joined #ruby
RobertBirnie has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
l_tonz has joined #ruby
eminencehc has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
yxhuvud has joined #ruby
hxegon_ has joined #ruby
Joshua__ has quit [Ping timeout: 246 seconds]
segfalt__ has joined #ruby
hxegon has quit [Ping timeout: 260 seconds]
towski_ has joined #ruby
keen___________1 has joined #ruby
agit0 has joined #ruby
tref has quit [Quit: tref]
segfalt__ has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
pdoherty has quit [Ping timeout: 244 seconds]
rgtk has joined #ruby
Oatmeal has quit [Ping timeout: 250 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
zipace has joined #ruby
quazimodo has joined #ruby
freerobby has quit [Quit: Leaving.]
yashinbasement has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oatmeal has joined #ruby
devoldmx has joined #ruby
akem has joined #ruby
mistermocha has joined #ruby
nixmaniack has joined #ruby
rakm has joined #ruby
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
chipotle has joined #ruby
l_tonz has quit [Remote host closed the connection]
hxegon_ has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
naftilos76 has quit [Ping timeout: 255 seconds]
l_tonz has joined #ruby
nixmaniack has quit [Ping timeout: 250 seconds]
k3asd` has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 246 seconds]
K1MOS has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
karapetyan has joined #ruby
asmodlol has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
k3asd` has joined #ruby
rakm has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
karapetyan has quit [Remote host closed the connection]
hxegon has joined #ruby
freerobby has joined #ruby
l_tonz has quit [Remote host closed the connection]
j5s7 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j5s7 has quit [Client Quit]
SShrike has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
rgtk has quit [Remote host closed the connection]
SShrike has quit [Client Quit]
SShrike has joined #ruby
Channel6 has joined #ruby
eminencehc has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdema has joined #ruby
hxegon has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
tlaxkit has joined #ruby
riotjon__ has joined #ruby
cpup has joined #ruby
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjone_ has quit [Ping timeout: 250 seconds]
<shevy> can this be simplified? I need to check for a subset of keys in a hash, and assign them to a variable for later use but only for some keys https://gist.github.com/shevegen/5f5da217120341343404
yashinbasement has quit [Quit: Leaving]
djbkd has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
ghoti has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> argument.select { |k, _| %i[foo bar baz].include? k }.map { |_, v| v }
<adaedra> .first
<adaedra> (since you want only one)
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
zenguy_pc2 has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 256 seconds]
ghoti has quit [Ping timeout: 268 seconds]
maletor has joined #ruby
Shidash has quit [Quit: ZNC - http://znc.in]
Erik_Underline has joined #ruby
<Erik_Underline> Hey hxegon I got vim and while it's a bit weird, I find myself loving the way it works ^^
<adaedra> nice.
StarBreaker has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<adaedra> Soon, you won't be able to use other editors without vim bindings.
mikecmpbll has quit [Quit: ciao.]
duncannz has quit [Quit: Leaving]
htmldrum has joined #ruby
chrisja has quit [Quit: leaving]
<Erik_Underline> :D I wonder if you could get so used to vim that you can't even handle writing in word because it's so unflexible :D
<adaedra> LaTeX.
<Erik_Underline> Is that a text editor?
<adaedra> Nope.
<adaedra> Erik_Underline: https://sv.wikipedia.org/wiki/Latex_(typsättningssystem)
zenguy_pc2 has joined #ruby
juanpablo__ has joined #ruby
grotewold has joined #ruby
duncannz has joined #ruby
Musashi007 has joined #ruby
DEA7TH has joined #ruby
Rickmasta has joined #ruby
StarBreaker has quit [Read error: Connection reset by peer]
DEA7TH has quit [Client Quit]
stannard has quit [Remote host closed the connection]
arooni has joined #ruby
jgt has joined #ruby
<shevy> it's a condom
StarBreaker has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
Authenticator has joined #ruby
<Erik_Underline> "Used especially in scientific communities"... Heh, strangely enough I've never heard about it. Might get in touch with it as I get old enough for university :P
akem has quit [Ping timeout: 264 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
bryanray has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
bryanray has quit [Read error: Connection reset by peer]
<Authenticator> When I make 16k connections in short-order with Net::HTTP I get "Errno::EADDRNOTAVAIL: Can't assign requested address - connect(2)" errors. I'm doing req = Net::HTTP::Post.new uri ; Net::HTTP.start {|h| resp = h.request req } ...
jessemcgilallen has quit [Quit: jessemcgilallen]
<Authenticator> On OSX, if that matters.
hxegon has quit [Ping timeout: 240 seconds]
<adaedra> 16k simultaneous connections?
jgt has quit [Ping timeout: 255 seconds]
<adaedra> You may be hitting some system limit.
ss_much has joined #ruby
<Authenticator> adaedra: They're all threaded, but I *think* I'm only making ~15 threads...
<adaedra> &ri Net::HTTP.start
<adaedra> mh.
<Authenticator> It looks like, using the block version, it should take care of closing the connections automatically...?
<adaedra> That's what the docs says.
<adaedra> “The specified address is not available on this machine.”
Voker57 has quit [Read error: Connection reset by peer]
<adaedra> That's some helpful explanation here, man.
rakm has joined #ruby
<jhass> Authenticator: get typhoeus and use the hydra interface there
al2o3-cr1 has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr1 is now known as al2o3-cr
Channel6 has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
duckpuppy has joined #ruby
l_tonz has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]