apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<havenwood> L8D: On first glance at cmd, I'd guess HighLine or Thor. Dunno. Maybe say more what part of cmd you're looking for.
<L8D> The whole "defining a shell-like interface" thing
<L8D> Where I can have a straight-forward system of defining commands
<L8D> And possibly an automated help system
dgutierrez1287 has joined #ruby
zenojis has joined #ruby
puppeh_ has joined #ruby
<puppeh_> people, how would you make this regexp faster? /(?:\s*ABC\s+(?:FDE|POI)?\s*)*/i
<havenwood> L8D: A bunch of options here: https://www.ruby-toolbox.com/categories/CLI_Option_Parsers
ddv has quit [Ping timeout: 260 seconds]
sea_local has quit [Ping timeout: 255 seconds]
nectarys has quit [Remote host closed the connection]
lw has quit [Quit: s]
patrick99e99 has joined #ruby
mailo has quit [Quit: Leaving...]
<havenwood> L8D: Another recent gem I haven't looked at yet but heard rumor of: https://github.com/gavinlaking/vedeu#readme
_shrine has joined #ruby
<L8D> havenwood: interesting thanks
nobitanobi has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
<dorei> vedeau looks really promising although the documentation is not that extensive
startupality has quit [Quit: startupality]
sepp2k1 has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
ddv has joined #ruby
<jokke> hey
nonnatus has joined #ruby
<jokke> can i somehow mock require in rspec?
Akagi201 has joined #ruby
pr0t has quit [Remote host closed the connection]
<jokke> one of the methods i'm specing is requiring a file based on the param
mfmfmfmfmfmf has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
<jokke> never mind
<jokke> got it
binw has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Akagi201 has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
mfmfmfmfmfmf has quit [Ping timeout: 272 seconds]
binw has joined #ruby
nobitanobi has quit [Remote host closed the connection]
marr has quit []
gkagan has joined #ruby
ltfschoen has joined #ruby
<shevy> L8D you could also pass stuff into a big case/when menu
<shevy> case your_input_here
<shevy> when 'a','b','c'
<shevy> puts 'YEAH MAN'
<shevy> when /snake/
rjhunter has joined #ruby
<shevy> nuke_all_python_users
<shevy> etc
startupality has quit [Quit: startupality]
<L8D> shevy: Wouldn't it be PythonUsers.all.each &:nuke ?
nobitanobi has joined #ruby
<jamesfordummies> *map
<jamesfordummies> :P
<L8D> jamesfordummies: but .nuke has no return value
gkagan has quit [Ping timeout: 245 seconds]
<jamesfordummies> i want the emptiness to remain
yubrew has joined #ruby
chrisramon has joined #ruby
rismoney1_ has quit [Ping timeout: 246 seconds]
emocakes has joined #ruby
<shevy> L8D I like methods because they give me handles onto the file
charliesome has quit [Quit: zzz]
philcrissman has joined #ruby
djbkd has joined #ruby
davedev2_ has quit []
angusiguess has joined #ruby
jamesfordummies has quit []
bthesorceror has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 255 seconds]
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 246 seconds]
elaptic`` has quit [Ping timeout: 240 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
TC__ has joined #ruby
TC__ has quit [Client Quit]
angusiguess has quit [Ping timeout: 246 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
InhalingPixels has joined #ruby
TorpedoSkyline has joined #ruby
Arkaniad has joined #ruby
TorpedoSkyline has quit [Client Quit]
TC` has quit [Ping timeout: 260 seconds]
<puppeh_> looking to improve this regexp (performance-wise) /(?:\s*XCZ\s+(?:MNK|DS4)?\s*)*/
<puppeh_> any ideas?
parduse has quit []
emocakes__ has joined #ruby
<havenwood> puppeh_: on first glance, the final * seems pointless
parduse has joined #ruby
<havenwood> puppeh_: oh, nvm
InhalingPixels has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
<havenwood> puppeh_: how're you using the regexp?
emocakes has quit [Ping timeout: 250 seconds]
<shevy> hmm
<shevy> what if we could redefine the meaning of symbols in a program
<havenwood> shevy: we can't :O
<shevy> I want to treat :be_silent the same as :be_quiet
<havenwood> shevy: i meant, we can't? >.>
<puppeh_> havenwood: like this: s.gsub(/(?:\s*NULLS\s+(?:FIRST|LAST)?\s*)*/i, '')
<shevy> havenwood well they are kinda boring... they are just like numbers ...
<shevy> imagine if all symbols could point to 42
<shevy> for just one module
bootstrappm has joined #ruby
luckyruby has quit [Remote host closed the connection]
axilla has joined #ruby
luckyruby has joined #ruby
dkamioka has joined #ruby
lemur has joined #ruby
charliesome has joined #ruby
sea_local has joined #ruby
Symbiosisz has quit [Ping timeout: 250 seconds]
krisquigley has joined #ruby
luckyruby has quit [Ping timeout: 264 seconds]
lemur has quit [Ping timeout: 240 seconds]
ari-_-e has quit [Ping timeout: 255 seconds]
sea_local has quit [Ping timeout: 255 seconds]
<havenwood> >> module UnpredictableSymbol; def to_sym; self == :silent ? :quiet : super end end; class Symbol; prepend UnpredictableSymbol end; :silent.to_sym
<eval-in> havenwood => :quiet (https://eval.in/182552)
krisquigley has quit [Ping timeout: 250 seconds]
jfutbol_ has joined #ruby
bthesorceror has joined #ruby
jfutbol has quit [Ping timeout: 246 seconds]
chihhsin has quit [Read error: Connection reset by peer]
lukeholder has joined #ruby
Lexun has joined #ruby
<shevy> hmm
<shevy> what is that
<shevy> havenwood is a magician
<shevy> I don't understand his tricks
<havenwood> shevy: just some gibberish for fun
axilla has quit [Ping timeout: 246 seconds]
axilla has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<havenwood> shevy: Module#prepend is a Ruby 2.0 thingy. I haven't read this writeup, but looks like it explains: http://hashrocket.com/blog/posts/module-prepend-a-super-story
<bootstrappm> TIL prepend
SCHAAP137 has quit [Remote host closed the connection]
CoffeeDrivenC0d1 has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
parduse has quit []
parduse has joined #ruby
nemesit|znc has quit [Ping timeout: 255 seconds]
parduse has quit [Client Quit]
<shevy> so strange
parduse has joined #ruby
<CoffeeDrivenC0d1> any idea why I wouldn't be able to import a file from another directory using require_relative 'full/path/here'?
<havenwood> CoffeeDrivenC0d1: by full/path you mean relative/path?
<bootstrappm> ^
<shevy> ohhh
<CoffeeDrivenC0d1> ?
<shevy> havenwood so actually, it is nothing new
<shevy> it is just that you can prepend, rather than the default, which is to append
nectarys has joined #ruby
<havenwood> shevy: aye, just lets you do super with an included module
<shevy> CoffeeDrivenC0d1 can you use the word require rather than import :D
<CoffeeDrivenC0d1> require_relative '../../lib/file_i_want.rb'
nemesit|znc has joined #ruby
<CoffeeDrivenC0d1> Yes sorry =/
<shevy> and the file exists there?
<CoffeeDrivenC0d1> yes
<CoffeeDrivenC0d1> Permissions aren't the issue
<shevy> if it exists there then require must have found it
Akagi201 has quit [Ping timeout: 255 seconds]
<bootstrappm> try to do a File open and see what you get. File.open('../../lib/file_u_want.rb', 'r') {|f| puts f.read }
<bootstrappm> see what happens
<bootstrappm> actually don't use f.read, do something like f.gets
altern has joined #ruby
<bootstrappm> don't want you're terminal to explode if your file is huge
nectarys has quit [Max SendQ exceeded]
<bootstrappm> your&
<bootstrappm> *
SCHAAP137 has joined #ruby
<shevy> .
<shevy> mr. shaky fingers
nectarys has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<CoffeeDrivenC0d1> I get nil for that bootstrappm
agent_white has joined #ruby
<bootstrappm> ahaha shevy
agent_white has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
<bootstrappm> CoffeeDrivenC0d1, hm. No error though? I think that means that the file is both there and readable...
fold has joined #ruby
<altern> hi all. I have problem with scope in ruby. how could I pass argument into a closure? https://gist.github.com/altern/bab4c8cf29470f214376
<CoffeeDrivenC0d1> Yeah no error on that one
AlSquire has quit [Quit: This computer has gone to sleep]
<shevy> perhaps it is empty
nobitanobi has joined #ruby
<shevy> you have some mysterious files CoffeeDrivenC0d1
<CoffeeDrivenC0d1> It's not =/ trying to require the file so I can use a class
<shevy> altern this does not make sense
<shevy> arr.uniq returns # => [1, 2, 3]
<havenwood> and |key, value| the value will always be nil
thomasxie has joined #ruby
<shevy> I have never seen so many .maps used before
<altern> @shevy: I am trying to calculate lenght
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jokke> can i yield to the main thread from within a Thread?
agent_white has joined #ruby
<shevy> altern length of what
Channel6 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<altern> shevy, I am trying to calculate lenghts of subarrays formed by splitting parent array by unique values
yubrew has joined #ruby
<jokke> or call a proc that is defined outside the thread
toastynerd has joined #ruby
<bootstrappm> jokke, mm don't think so, you shouldn't have to though - use case?
gkagan has joined #ruby
<havenwood> jokke: You could #yield to a Fiber, or #pass to whatever Thread the OS schedules
chrisramon has quit [Quit: chrisramon]
<havenwood> jokke: you can certainly call a proc
<jokke> havenwood: ok
starless has joined #ruby
chrisramon has joined #ruby
parduse has quit []
parduse has joined #ruby
<jokke> that spec fails
agent_white has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jokke> expected given block to yield with arguments, but did not yield
toastynerd has quit [Remote host closed the connection]
gkagan has quit [Ping timeout: 272 seconds]
lw has joined #ruby
fabrice31 has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jfutbol_ has quit [Remote host closed the connection]
<havenwood> jokke: i don't think this is your problem, but instead of `if block.nil?` use `unless block_given?`
<jokke> true
nobitanobi has quit [Remote host closed the connection]
<jokke> thats way better
<havenwood> you don't want to mistake &nil for a block, etc
fabrice31 has quit [Ping timeout: 240 seconds]
dorei has quit []
<havenwood> prolly not a biggie, but `block_given?` is idiomatic and easy
<jokke> yup
<havenwood> jokke: replace #send with #public_send if the method's public
nobitano_ has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
<jokke> ~.
<jokke> ~.
<havenwood> though i guess that's why you're using send :P
<centrx> Are you guys looking to access some private methods
<jokke> centrx: yeah that too
angusiguess has quit [Ping timeout: 250 seconds]
<jokke> havenwood: interesting. Now that i changed it to block_given some specs fail
nanoyak has joined #ruby
<jokke> havenwood: line 54 in the specs
<havenwood> jokke: that's suspicious ;)
agent_white has joined #ruby
<jokke> says no block given
agent_white has quit [Read error: Connection reset by peer]
<jokke> which is weird
hamakn has joined #ruby
<jokke> because obviosly i gave it a block
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<havenwood> centrx: if ya missed jokke's paste: https://paste.jreinert.com/lZdK/ruby
chrisramon has quit [Quit: chrisramon]
<havenwood> jokke: in #watch it's weird that you have a `&block` arg then `yield`
<havenwood> jokke: you can drop &block since you can block_given?
<havenwood> jokke: or change yield to block.call
<jokke> yeah
<havenwood> but pick one within the method i think ;)
lw has quit [Quit: b]
<jokke> yeah actually i used &block because i thought it would automatically fail if no block is given
<jokke> but that isn't the case
<havenwood> indeed
<centrx> yup, those methods are private all right
<centrx> Too bad if you want to access them
dkamioka has quit [Remote host closed the connection]
<havenwood> jokke: block args act like proc args, while method args act like lambda args
<havenwood> jokke: loose arity for blocks and procs
<havenwood> jokke: strict for methods and lambdas
dkamioka has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jokke> hm
sysx1000 has joined #ruby
toastynerd has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ptierno has quit [Read error: Connection reset by peer]
<jokke> still getting the no block given error in line 54 in the specs
ixti has joined #ruby
nobitano_ has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 260 seconds]
<jokke> basically i want to be able to do something like this: https://paste.jreinert.com/PekPd/ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<jokke> maybe the way i'm doing it is wrong
alexju has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
CoffeeDrivenC0d1 has left #ruby [#ruby]
havenwood has quit []
emmesswhy has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
<jokke> ah well.. it's also 3:51 AM here, so i guess i should get to sleep. There's no way anything good will come out of my head at this point.
<jokke> night and thanks for the help
altern has quit [Quit: This computer has gone to sleep]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
toastynerd has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
lidaaa has joined #ruby
djbkd has joined #ruby
lemur has joined #ruby
toastynerd has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lidaaa has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
tfitts has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
Bumptious has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
Lucky__ has quit [Ping timeout: 250 seconds]
tfittsy has joined #ruby
InhalingPixels has joined #ruby
agent_white has joined #ruby
Akagi201 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Kyrptonical has quit [Read error: Connection reset by peer]
Kryptonical has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
wallerdev has quit [Quit: wallerdev]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
threesixes has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
fold has quit [Ping timeout: 272 seconds]
mfmfmfmfmfmf has joined #ruby
wallerdev has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Cheezebox has joined #ruby
puppeh_ has quit [Remote host closed the connection]
ari-_-e has quit [Ping timeout: 246 seconds]
jhass is now known as jhass|off
sdwrage has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
chrisramon has joined #ruby
mfmfmfmfmfmf has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
yubrew has joined #ruby
gregf has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
sea_local has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
philcrissman has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
sea_local has quit [Ping timeout: 250 seconds]
gkagan has joined #ruby
threesixes has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has quit [Ping timeout: 260 seconds]
msull92 has joined #ruby
msull92 has quit [Client Quit]
gkagan has quit [Ping timeout: 246 seconds]
threesixes has joined #ruby
fold has joined #ruby
agent_white has joined #ruby
angusiguess has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jerikl has joined #ruby
emocakes__ has quit []
Cheezebox has quit [Remote host closed the connection]
chrisramon has quit [Quit: chrisramon]
agjacome has quit [Quit: leaving]
starless has quit [Quit: Leaving]
MCDev has joined #ruby
tectonic has joined #ruby
agent_white has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
niklasb has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
agent_white has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
bthesorceror has quit [Quit: bthesorceror]
nszceta has joined #ruby
TorpedoSkyline has joined #ruby
nszceta has quit [Max SendQ exceeded]
agent_white has joined #ruby
emmesswhy has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
nszceta has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
cleopatra has joined #ruby
axilla has quit [Ping timeout: 264 seconds]
chrisramon has joined #ruby
chrisramon has quit [Client Quit]
j75 has joined #ruby
axilla has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Remote host closed the connection]
chrisramon has joined #ruby
sea_local has joined #ruby
Lewix has quit [Remote host closed the connection]
Cheezebox has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mburns has quit [Quit: ZNC - http://znc.in]
rismoney1_ has joined #ruby
lemur has joined #ruby
mburns has joined #ruby
emocakes has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Lexun has quit [Quit: Manjaro-KDE user leaving!]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 240 seconds]
Lexun has joined #ruby
skolman has joined #ruby
chrisramon has quit [Quit: chrisramon]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
emmesswhy has quit [Quit: Leaving]
axilla has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
motto has quit [Quit: Sto andando via]
axilla has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
emocakes has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
djbkd has quit [Remote host closed the connection]
yubrew has joined #ruby
dfish1 has joined #ruby
agent_white has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
day has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
day has joined #ruby
seamon has joined #ruby
fabrice31 has joined #ruby
dfish1 has quit [Quit: Bye]
dfish3 has joined #ruby
dfish3 has quit [Remote host closed the connection]
dfish has joined #ruby
raaamina has joined #ruby
lidaaa has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
brb3 has joined #ruby
captproton has quit [Ping timeout: 260 seconds]
sea_local has quit [Ping timeout: 264 seconds]
dfish has quit [Client Quit]
dfish has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
gkagan has joined #ruby
dfish has quit [Client Quit]
dfish has joined #ruby
dfish has quit [Client Quit]
dfish has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
dfish has quit [Client Quit]
dfish has joined #ruby
Cache_Money has joined #ruby
lemur has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfish has quit [Client Quit]
dfish has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gkagan has quit [Ping timeout: 260 seconds]
tlarevo has joined #ruby
<agent_white> Soso quiet
ixti has quit [Quit: WeeChat 0.4.3]
* C0deMaver1ck starts talking about random stuff
sea_local has joined #ruby
lukeholder has quit [Ping timeout: 246 seconds]
Cheezebox has quit [Remote host closed the connection]
emocakes has joined #ruby
bootstrappm has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
bootstrappm has joined #ruby
froggy__ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has joined #ruby
froggy_ has quit [Ping timeout: 246 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sea_local has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
lidaaa has quit [Read error: Connection reset by peer]
lidaaa has joined #ruby
jack_rabbit has joined #ruby
sinkensabe has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
charliesome has quit [Quit: zzz]
xkickflip has joined #ruby
xkickflip has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
jerikl has quit [Quit: jerikl]
xkickflip has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Ping timeout: 255 seconds]
Bumptious has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 245 seconds]
Bumptious has joined #ruby
sylvanica has joined #ruby
cleopatra has quit [Quit: Saliendo]
emocakes has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
xkickflip has quit [Quit: leaving]
Soda has quit [Remote host closed the connection]
xkickflip has joined #ruby
sdwrage has joined #ruby
Cheezebox has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
seamon has quit [Quit: Zzzzzzz]
HashNuke has joined #ruby
jadedgno has joined #ruby
saladspork has joined #ruby
hamakn has quit [Remote host closed the connection]
amargherio has quit [Remote host closed the connection]
Janno has quit [Quit: Lost terminal]
charliesome has joined #ruby
jadedgno has quit [Quit: WeeChat 0.4.0]
jadedgno has joined #ruby
yubrew has joined #ruby
philcrissman has joined #ruby
michaeldeol has joined #ruby
owen1 has left #ruby ["WeeChat 0.4.2"]
yubrew has quit [Ping timeout: 240 seconds]
skolman has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 246 seconds]
mfmfmfmfmfmf has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
weems has joined #ruby
Takle has joined #ruby
thomasxie has quit [Ping timeout: 272 seconds]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mfmfmfmfmfmf has quit [Ping timeout: 260 seconds]
rismoney1_ has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
agent_white has joined #ruby
weems2 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
weems2 has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has joined #ruby
weems2 has joined #ruby
weems has quit [Disconnected by services]
weems2 is now known as weems
weems has quit [Changing host]
weems has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
hellangel7 has joined #ruby
weems has quit [Client Quit]
agent_white has joined #ruby
CaptainJet has quit []
agent_white has quit [Read error: Connection reset by peer]
Lexun has quit [Quit: Manjaro-KDE user leaving!]
toordog has quit [Ping timeout: 255 seconds]
gkagan has joined #ruby
sylvanica has joined #ruby
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
lemur has quit [Remote host closed the connection]
virtualize has quit []
lemur has joined #ruby
ghr has joined #ruby
virtualize has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
andrewjanssen has joined #ruby
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 250 seconds]
d4nk has quit [Ping timeout: 240 seconds]
a_ has joined #ruby
<a_> hi
ghr has quit [Ping timeout: 250 seconds]
toordog has joined #ruby
<a_> Is it possible to tighten up the map block here? %w[a b c].map { |x| some_func x }
<a_> I was thinking possibilities like nameless variables (as in Scala) etc.
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
GeekOnCoffee has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
AlexRussia has quit [Ping timeout: 300 seconds]
angusiguess has joined #ruby
AlexRussia has joined #ruby
toastynerd has quit [Remote host closed the connection]
<pontiki> a_: you can shorten up obj.map {|x| x.method } to obj.map(&:method)
d4nk has joined #ruby
GeekOnCoffee has joined #ruby
shevy has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
SilkFox_ has joined #ruby
nectarys has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
St_Marx has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
St_Marx has joined #ruby
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
toordog has quit [Ping timeout: 245 seconds]
<a_> pontiki: unfortunately the method I wish to call isn't on the block var object itself, it'll just be taking that as a parameter
toordog has joined #ruby
aoeu256 has quit [Ping timeout: 246 seconds]
nonnatus has quit [Ping timeout: 240 seconds]
sylvanica_ has joined #ruby
JoshGlzBrk has joined #ruby
zkay11 has joined #ruby
narcan has joined #ruby
sylvanica has quit [Ping timeout: 246 seconds]
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
Joffily has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeroNones has joined #ruby
gnephiak has joined #ruby
ltfschoen has quit [Quit: Textual IRC Client: www.textualapp.com]
sylvanica_ has quit [Ping timeout: 260 seconds]
mitt3ns_ has joined #ruby
mitt3ns_ has quit [Read error: Connection reset by peer]
jerius has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
lemur has joined #ruby
yubrew has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
jerius has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
nectarys has joined #ruby
nectarys_ has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
nectarys has quit [Client Quit]
yubrew has quit [Ping timeout: 255 seconds]
nszceta has quit []
cy has quit [Quit: :q!]
GeekOnCoffee has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
GeekOnCoffee has joined #ruby
a_ has quit [Quit: leaving]
sdwrage has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 260 seconds]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
britneywright has joined #ruby
bootstrappm has quit [Ping timeout: 255 seconds]
tectonic has quit []
Akagi201 has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
bootstrappm has joined #ruby
_shrine has quit [Ping timeout: 246 seconds]
apollo_cmd has joined #ruby
toastynerd has joined #ruby
GodPuppet has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
apollo_cmd has quit [Client Quit]
klmlfl has joined #ruby
oo_ has quit [Remote host closed the connection]
IotaSpencer has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cya]
nobitanobi has joined #ruby
klmlfl has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apollo_cmd has joined #ruby
bthesorceror has joined #ruby
toastynerd has quit [Remote host closed the connection]
GodPuppet has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Leaving...]
tectonic has joined #ruby
apollo_cmd has quit [Client Quit]
klmlfl has joined #ruby
michaeldeol has joined #ruby
zkay11 has left #ruby [#ruby]
nobitanobi has quit [Ping timeout: 240 seconds]
Jetchisel has joined #ruby
toastynerd has joined #ruby
davedev24_ has joined #ruby
luckyruby has joined #ruby
lemur has joined #ruby
gkagan has joined #ruby
chaos___________ has quit [Ping timeout: 255 seconds]
toastynerd has quit [Remote host closed the connection]
ghr has joined #ruby
sinkensabe has joined #ruby
InhalingPixels has quit []
gkagan has quit [Ping timeout: 260 seconds]
Iota-Spencer has joined #ruby
j75 has quit [Quit: WeeChat 0.4.3]
klmlfl has quit [Remote host closed the connection]
benzrf is now known as benzrfprime
Shidash has joined #ruby
klmlfl has joined #ruby
benzrf has joined #ruby
benzrf is now known as Guest89783
ghr has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<agent_white> Evenin' folks
agent_white has quit [Read error: Connection reset by peer]
sea_local has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jeaye has quit [Quit: WeeChat 1.0]
jeaye has joined #ruby
angusiguess has joined #ruby
benzrfprime has quit [Quit: leaving]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atal421 has joined #ruby
zeroNones has quit [Ping timeout: 240 seconds]
atal421 has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Guest89783 is now known as benzrf|offline
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf|offline is now known as Guest64571
Guest64571 is now known as benzrf
angusiguess has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
robbyoconnor has quit [Excess Flood]
_cake has joined #ruby
agent_white has joined #ruby
robbyoconnor has joined #ruby
sea_local has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 255 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
_cake is now known as _shrine
_shrine is now known as _cake
speakingcode has quit [Ping timeout: 250 seconds]
speakingcode has joined #ruby
yubrew has joined #ruby
_cake is now known as _shrine
Blizzy has quit [Ping timeout: 246 seconds]
_shrine is now known as _cake
philcrissman has joined #ruby
JohnBat26 has joined #ruby
emocakes has joined #ruby
johndeer has quit [Quit: This computer has gone to sleep]
Sawbones has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
saladspork has quit [Quit: saladspork]
narcan has quit [Client Quit]
yfeldblum has joined #ruby
brb3 has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
patrick99e99 has joined #ruby
toastynerd has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
sleepee has joined #ruby
johndeeer has joined #ruby
djbkd has joined #ruby
cocotton has joined #ruby
Sawbones has joined #ruby
cocotton has quit [Remote host closed the connection]
Photism has joined #ruby
bluOxigen has joined #ruby
cocotton has joined #ruby
mark06 has joined #ruby
luckyruby has quit [Ping timeout: 264 seconds]
ltfschoen has joined #ruby
cocotton has quit [Remote host closed the connection]
ltfschoen has quit [Max SendQ exceeded]
nobitanobi has joined #ruby
toastynerd has quit [Remote host closed the connection]
emocakes has quit []
lemur has quit []
oo_ has joined #ruby
Cheezebox has quit [Remote host closed the connection]
lemur has joined #ruby
armyriad has joined #ruby
Sawbones has quit [Remote host closed the connection]
ltfschoen has joined #ruby
adac has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
ltfschoen has quit [Max SendQ exceeded]
ltfschoen has joined #ruby
ltfschoen has quit [Excess Flood]
djbkd has quit [Quit: My people need me...]
oo_ has quit [Remote host closed the connection]
gkagan has joined #ruby
ghr has joined #ruby
Mon_Ouie has joined #ruby
gkagan has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
mikeric has joined #ruby
narcan has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
sleepee has quit [Quit: Leaving]
chipotle has joined #ruby
chipotle has quit [Client Quit]
Jackneill has joined #ruby
angusiguess has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
decoponio has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
razum2um has joined #ruby
_cake is now known as salai
salai is now known as _cake
bthesorceror has quit [Quit: bthesorceror]
agent_white has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
relix has joined #ruby
fabrice31 has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
crdpink has quit [Quit: q term]
blueOxigen has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
Ilyas has joined #ruby
asdii has joined #ruby
<asdii> hello, has anyone used opengl with ruby?
abuzze has joined #ruby
johndeeer has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
hellangel7 has quit [Read error: Connection reset by peer]
abuzze has quit [Ping timeout: 250 seconds]
heftig has quit [Quit: Quitting]
bootstrappm has quit [Ping timeout: 264 seconds]
hellangel7 has joined #ruby
marcel has quit [Ping timeout: 240 seconds]
marcel has joined #ruby
ari-_-e has joined #ruby
oo_ has joined #ruby
devyn has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
devyn has joined #ruby
chihhsin has joined #ruby
nobitanobi has joined #ruby
<_cake> asdii: use gosu?
<asdii> can you tell me what that is?
lemur has quit []
Haiiro has joined #ruby
<asdii> hah no
lemur has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
gkagan has joined #ruby
hamakn has joined #ruby
<dseitz> Try your luck with ruby-glfw3
ghr has joined #ruby
gkagan has quit [Ping timeout: 260 seconds]
* Hanmac has its own binding for sfml ... but its not 100% ready yet
duncannz has quit [Ping timeout: 260 seconds]
lidaaa has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 240 seconds]
blenny has quit [Ping timeout: 272 seconds]
blenny has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
yubrew has joined #ruby
angusiguess has joined #ruby
philcrissman has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
ari-_-e has quit [Ping timeout: 272 seconds]
DEA7TH has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
philcrissman has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
tectonic has quit []
timonv_ has quit [Ping timeout: 260 seconds]
emocakes has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
moritzs has joined #ruby
jusmyth1 has joined #ruby
ari-_-e has joined #ruby
ht__th has joined #ruby
moritzs has quit [Ping timeout: 260 seconds]
DEA7TH has joined #ruby
claymore has joined #ruby
Soda has joined #ruby
nectarys__ has joined #ruby
heftig has joined #ruby
nectarys_ has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
thomasxie has joined #ruby
patrick99e99 has joined #ruby
emocakes has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
bMalum has quit [Client Quit]
havenwood has joined #ruby
sea_local has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
kristofferR has joined #ruby
luckyruby has joined #ruby
osvico has quit []
benzrf is now known as benzrf|offline
havenwood has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
thomasxie has quit [Quit: Leaving.]
osvico has joined #ruby
arup_r has joined #ruby
dfish has quit [Quit: WeeChat 0.4.2]
sparrovv has joined #ruby
doev has joined #ruby
nobitanobi has joined #ruby
fold has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
senayar has joined #ruby
emocakes has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
sea_local has quit [Ping timeout: 255 seconds]
tlarevo_ has joined #ruby
adac has quit [Ping timeout: 240 seconds]
ari-_-e has quit [Ping timeout: 255 seconds]
tlarevo has quit [Ping timeout: 245 seconds]
gkagan has joined #ruby
ghr has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
gkagan has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
yubrew has joined #ruby
ari-_-e has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
yubrew has quit [Ping timeout: 240 seconds]
angusiguess has joined #ruby
bMalum has joined #ruby
kenneth has joined #ruby
brothmars has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
Cache_Money has quit [Ping timeout: 240 seconds]
ari-_-e has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
emocakes has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
Cache_Money has joined #ruby
abuzze has joined #ruby
starkhalo has quit [Ping timeout: 250 seconds]
abuzze has quit [Remote host closed the connection]
jusmyth1 has left #ruby [#ruby]
GGMethos has quit [Read error: Connection reset by peer]
threesixes has quit [Remote host closed the connection]
Nahra has quit [Ping timeout: 246 seconds]
rjhunter has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
mocchi has quit [Quit: ZNC - http://znc.in]
kenneth has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
mocchi has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
sparrovv has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
rjhunter has joined #ruby
lamasnik2 has quit [Ping timeout: 250 seconds]
GGMethos has joined #ruby
sparrovv has joined #ruby
lolmaus has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
havenwood has joined #ruby
marr has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
hellangel7 has quit [Quit: Leaving]
Cache_Money_ has joined #ruby
mark06 has left #ruby [#ruby]
Cache_Money has quit [Ping timeout: 246 seconds]
Cache_Money_ is now known as Cache_Money
agent_white has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 264 seconds]
Nahra has joined #ruby
abuzze has joined #ruby
nobitanobi has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
bMalum has quit [Quit: bMalum]
Cache_Money has quit [Ping timeout: 272 seconds]
gnephiak has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
PeterBoy has joined #ruby
mikeric has quit []
gkagan has joined #ruby
yubrew has joined #ruby
rjhunter has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
philcrissman has joined #ruby
Takle has joined #ruby
ghr has joined #ruby
narcan has joined #ruby
hamakn has joined #ruby
asdii has quit [Ping timeout: 246 seconds]
gkagan has quit [Ping timeout: 240 seconds]
narcan has quit [Client Quit]
yubrew has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
philcrissman has quit [Ping timeout: 245 seconds]
Ostm has joined #ruby
<Ostm> hi
ghr has quit [Ping timeout: 250 seconds]
dawkirst has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Takle has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 250 seconds]
angusiguess has joined #ruby
maximski has joined #ruby
startupality has joined #ruby
blackmesa has joined #ruby
Ilyas_ has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
angusiguess has quit [Ping timeout: 250 seconds]
Dreamer3 has joined #ruby
jhass|off is now known as jhass
chipotle has quit [Client Quit]
poulet_a has joined #ruby
maroloccio has joined #ruby
PeterBoy has quit [Remote host closed the connection]
anaeem1 has joined #ruby
jonathan_alban has joined #ruby
chipotle has joined #ruby
poulet_a has left #ruby [#ruby]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
PeterBoy has joined #ruby
gaussblurinc1 has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
jgrevich has quit [Quit: jgrevich]
Hobogrammer has quit [Ping timeout: 250 seconds]
L8D has quit [Ping timeout: 246 seconds]
frippery has joined #ruby
frippery has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
abuzze_ has joined #ruby
havenwood has joined #ruby
alex88 has joined #ruby
chipotle has quit [Quit: cya]
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
abuzze has quit [Ping timeout: 240 seconds]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
shevy has joined #ruby
Akagi201 has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
Haiiro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
yubrew has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 264 seconds]
dawkirst has quit [Remote host closed the connection]
h0lyalg0rithm has joined #ruby
gkagan has joined #ruby
emmesswhy has joined #ruby
spider-mario has joined #ruby
ghr has joined #ruby
fabrice31 has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
SCHAAP137 has joined #ruby
gkagan has quit [Ping timeout: 250 seconds]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h0lyalg0rithm has quit [Quit: Textual IRC Client: www.textualapp.com]
h0lyalg0rithm has joined #ruby
jonathan_alban has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
Takle has quit []
apeiros has joined #ruby
cocotton has quit [Remote host closed the connection]
Takle has joined #ruby
anaeem1 has quit [Remote host closed the connection]
agent_white has joined #ruby
Deele has joined #ruby
ari-_-e has joined #ruby
mijicd has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
lemur has joined #ruby
kirun has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
lemur has quit [Ping timeout: 240 seconds]
sea_local has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ari-_-e has quit [Ping timeout: 250 seconds]
HelperW has joined #ruby
gnephiak has joined #ruby
danijoo has joined #ruby
AlexRussia has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yottanami has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
<yottanami> Is it wrong syntax for ruby 2.1 `self.class.validates :detail_value, **params`
thomasxie has joined #ruby
rjhunter has joined #ruby
nectarys_ has joined #ruby
sea_local has quit [Ping timeout: 272 seconds]
Brando753 has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
nectarys__ has quit [Ping timeout: 264 seconds]
<yottanami> I got this error SyntaxError: contact_details.rb:30: syntax error, unexpected tPOW validates :detail_value, **params
cpruitt has quit [Quit: cpruitt]
<shevy> I guess it dislikes the two *
<Mon_Ouie> 21>> validates :detail_value, **params
<eval-in> Mon_Ouie => undefined local variable or method `params' for main:Object (NameError) ... (https://eval.in/182619)
<Hanmac> yottanami: does self.class.validates(:detail_value, **params) works ?
adac has joined #ruby
<Mon_Ouie> 21>> self.class.validates :detail_value, **params
<eval-in> Mon_Ouie => undefined local variable or method `params' for main:Object (NameError) ... (https://eval.in/182620)
<shevy> not everyone masters this bot!
<Mon_Ouie> So either you're not using Ruby 2.1 or you're not showing the right code
<Mon_Ouie> I mean, there may something before that is wrong and causes the error
<yxhuvud> what would be the point of using two *s?
<Hanmac> it smells like he uses rvm to install newer ruby, but did it as user basis, but that error comes from a rails app, that is used as different user
<Hanmac> Mon_Ouie: are you mod? raaamina is spamming
<Hanmac> yxhuvud: keyrest args
<agent_white> yxhuvud: For using roots (sp?)
<agent_white> yxhuvud: ie `2*5 == 10`, `2**5 == 32`
raaamina was banned on #ruby by Mon_Ouie [raaamina!*@*]
<agent_white> Hanmac: Wait...
raaamina was kicked from #ruby by Mon_Ouie [PM spam]
doev has quit [Ping timeout: 255 seconds]
adac has quit [Ping timeout: 246 seconds]
saladspork has joined #ruby
<Mon_Ouie> I think all it does is convert to a hash if possible
<agent_white> Hanmac: What's a keyrest argument? Can't seem to google anything other than bugs/docs on it.
<Mon_Ouie> (otherwise it causes a TypeError)
<shevy> keyrest?
<agent_white> shevy:
<agent_white> 05:09 < yxhuvud> what would be the point of using two *s?
<agent_white> 05:10 < Hanmac> yxhuvud: keyrest args
<agent_white> 05:10 < Hanmac> yxhuvud: keyrest args
<yottanami> Hanmac: No I got error unexpected tPOW validates
<shevy> an echo!
<yottanami> Hanmac: Am I doing wrong ?
<agent_white> I get that FO FREE with my internet service.
<agent_white> :D
<Hanmac> yxhuvud & agent_white
<Hanmac> >> def m(a,b=3,*c,d: 4,e:, **f,&g) end; method(:m).parameters
<eval-in> Hanmac => [[:req, :a], [:opt, :b], [:rest, :c], [:keyreq, :e], [:key, :d], [:keyrest, :f], [:block, :g]] (https://eval.in/182621)
<shevy> omg that looks cryptic
<shevy> typical Hanmac code
startupality has quit [Quit: startupality]
<apeiros> he only made an example of all arg types
<Hanmac> shevy thats only for showing that different types
<agent_white> I'm already awe'ing at having the 3rd param be, to me, a "catch-remaining-params".
havenwood has joined #ruby
<agent_white> Then having a 4th param.
<agent_white> ;D
<shevy> man
<agent_white> Ahhhhhhhhhhh
<shevy> how many params do you want?
<apeiros> agent_white: without the args after *c, *c will catch keyword args too
startupality has joined #ruby
<agent_white> shevy: Iono, you got cheeze and ketchup too?
<apeiros> not sure how it works if you have some :key and :keyreq args
<agent_white> apeiros: Huh... badass! Thank you!
sea_local has joined #ruby
<yxhuvud> hanmac: that is a method definition though. Are you saying it can be used in calling methods as well?
<apeiros> ah, as soon as you have :keyreq or :key type args, *c won't collect keyword args anymore
<Hanmac> yxhuvud: yes
Mongey|rageQuit is now known as Mongey
<jokke> hi
startupality has quit [Client Quit]
<jokke> gives me an error at line 15: RuntimeError: can't add a new key into hash during iteration
<shevy> work on a copy?
<jokke> i don't understand the problem
<jokke> i'm not adding anything to any hash
Mongey has left #ruby ["Bye!"]
<apeiros> jokke: make an actually reproducable example please
havenwood has quit [Ping timeout: 264 seconds]
SCHAAP137 has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
yubrew has joined #ruby
<apeiros> meh, rspec. I'm out.
georgelappies has joined #ruby
angusiguess has joined #ruby
philcrissman has joined #ruby
saladspork has quit [Quit: saladspork]
yottanami has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
sea_local has quit [Ping timeout: 264 seconds]
philcrissman has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
doev has joined #ruby
AlSquire has joined #ruby
narcan has joined #ruby
startupality has quit [Client Quit]
Joffily has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<shevy> come back!
emmesswhy has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
shredding has joined #ruby
fantazo has joined #ruby
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mfmfmfmfmfmf has joined #ruby
startupality has joined #ruby
gkagan has joined #ruby
nuck has quit [Ping timeout: 255 seconds]
nuck has joined #ruby
doev has quit [Remote host closed the connection]
startupality has quit [Client Quit]
rx52 has joined #ruby
ghr has joined #ruby
rx52 has quit [Remote host closed the connection]
lxsameer has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
yottanami has joined #ruby
adac has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
kristofferR has joined #ruby
ari-_-e has joined #ruby
adac has quit [Ping timeout: 246 seconds]
rx186 has joined #ruby
peckermanzzz has joined #ruby
alex88 has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
rx186 has quit [Remote host closed the connection]
startupality has joined #ruby
yottanami has left #ruby [#ruby]
startupality has quit [Client Quit]
adac has joined #ruby
gnephiak has quit [Ping timeout: 255 seconds]
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
rageberry has quit [Ping timeout: 240 seconds]
abuzze_ has joined #ruby
CorpusCallosum has joined #ruby
georgelappies has quit [Remote host closed the connection]
PeterBoy has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ahmads has joined #ruby
HelperW has quit [Quit: Lingo - http://www.lingoirc.com]
PeterBoy has joined #ruby
dawkirst has joined #ruby
timonv_ has joined #ruby
lkba has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ari-_-e has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 250 seconds]
ARCADIVS has joined #ruby
patrick99e99 has joined #ruby
yubrew has joined #ruby
Nahra has quit [Remote host closed the connection]
havenwood has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
Nahra has joined #ruby
Davedo has joined #ruby
rbenv has quit [Ping timeout: 272 seconds]
yubrew has quit [Ping timeout: 264 seconds]
<shevy> cmake kinda stinks
havenwood has quit [Ping timeout: 264 seconds]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
fabrice31 has joined #ruby
nobitanobi has joined #ruby
emocakes has joined #ruby
<jhass> jokke: traceback ?
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Sawbones has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
gkagan has joined #ruby
ptrrr has joined #ruby
claymore has quit [Quit: Leaving]
ghr has joined #ruby
dgutierrez1287 has joined #ruby
TorpedoSkyline has joined #ruby
dkamioka has joined #ruby
gkagan has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
gnephiak has joined #ruby
schoppenhauer has left #ruby ["Adé"]
WoAyumi has joined #ruby
shredding has joined #ruby
WoAyumi has quit [Remote host closed the connection]
PeterBoy has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Textual IRC Client: www.textualapp.com]
parduse has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
parduse has joined #ruby
dkamioka has joined #ruby
<shevy> do many people use File.join?
<shevy> it always seemed as if I can just use / directly instead, even on windows
britneywright has joined #ruby
<Hanmac> hm i shill prefer File.join ...
<Nowaker> shevy: thats what i think too
lemur has joined #ruby
<shevy> Hanmac yeah but why?
<Nowaker> i only use file.join when path components are in variables
<Hanmac> hm imo it does make more sense
dkamioka has quit [Ping timeout: 240 seconds]
<Nowaker> so i dont do string concats
<shevy> Nowaker isn't that the same as a string concat though?
lxsameer has quit [Remote host closed the connection]
<shevy> a = '/tmp'; b = 'test.txt'
<jhass> >> File.join("/foo/", "/bar/", "baz") # shevy
<eval-in> jhass => "/foo/bar/baz" (https://eval.in/182672)
Xeago has joined #ruby
<shevy> yeah, you just have a .squeeze('/') there
nszceta has joined #ruby
<jhass> which is as verbose as a File.join
<Hanmac> or like that ;P
<Hanmac> >> %w[abc def ghi] * ?/
<eval-in> Hanmac => "abc/def/ghi" (https://eval.in/182673)
PeterBoy has joined #ruby
<jhass> I hate Array#* with a string :/
<jhass> it's so inconsistent, my string accidentally becomes a Fixnum and the behavior is completely different
<jhass> not that that should happen, but it asks for subtle bugs
axilla_ has joined #ruby
UKn0Me has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
axilla has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
yfeldblu_ has joined #ruby
<Hanmac> jhass then you could do "Array(val) * ?/" then its garanted that you have an array ;P
alex88 has joined #ruby
startupality has quit [Client Quit]
<shevy> why do you keep on using ?/
<Mon_Ouie> So that his code breaks in Ruby 1.8
blackmesa has quit [Ping timeout: 240 seconds]
<Mon_Ouie> 18>> [1, 2, 3] * ?/
<eval-in> Mon_Ouie => [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, ... (https://eval.in/182674)
yfeldblum has quit [Ping timeout: 240 seconds]
saladspork has joined #ruby
<shevy> huh
<shevy> that works
<Mon_Ouie> It doesn't do the same thing as in 1.9 at all
UKn0Me has quit [Quit: Gone to burn stuff.]
<shevy> I am beginning to believe that Hanmac gets Hanmacesque changes into ruby core
<Mon_Ouie> 19>> ['a', 'b', 'c'] * ?/
<eval-in> Mon_Ouie => "a/b/c" (https://eval.in/182676)
hamakn has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
L8D has joined #ruby
UKn0Me has joined #ruby
Blizzy has joined #ruby
<Mon_Ouie> Because ?/ is a character literal, which means it becomes a string in 1.9+ and an integer in older versions
WoAyumi has joined #ruby
parduse is now known as Guest73906
Guest35507 has joined #ruby
Guest73906 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Guest35507 is now known as parduse
parduse is now known as Guest79489
WoAyumi has quit [Client Quit]
yubrew has joined #ruby
blackmesa has joined #ruby
Mongey has joined #ruby
Sawbones has joined #ruby
philcrissman has joined #ruby
Sawbones has quit [Remote host closed the connection]
sea_local has joined #ruby
emocakes has quit []
UKn0Me has quit [Quit: Gone to burn stuff.]
yubrew has quit [Ping timeout: 245 seconds]
UKn0Me has joined #ruby
jdj_dk has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 255 seconds]
raldu has quit [Quit: disconnecting...]
havenwood has joined #ruby
mityaz has joined #ruby
RTG` has quit [Ping timeout: 255 seconds]
pskosinski has joined #ruby
_808chris has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
adamholt has joined #ruby
jusmyth has joined #ruby
nobitanobi has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
PeterBoy has quit [Remote host closed the connection]
sepp2k has joined #ruby
yfeldblum has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
_lexjm has joined #ruby
_lexjm has quit [Client Quit]
ctp_ has joined #ruby
havenwood has joined #ruby
Haiiro has joined #ruby
gkagan has joined #ruby
soulcake has quit [Quit: Quack.]
ctp has quit [Ping timeout: 245 seconds]
soulcake has joined #ruby
ghr has joined #ruby
gkagan has quit [Ping timeout: 240 seconds]
razum2um1 has joined #ruby
peckermanzzz has quit [Quit: ZNC - http://znc.in]
razum2um has quit [Ping timeout: 264 seconds]
startupality has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
blackmesa has joined #ruby
charliesome has joined #ruby
saladspork has quit [Quit: saladspork]
jusmyth has quit [Quit: Leaving.]
adac has quit [Ping timeout: 250 seconds]
rjhunter has quit [Remote host closed the connection]
dorei has joined #ruby
craigp has quit [Remote host closed the connection]
PeterBoy has joined #ruby
dawkirst has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
SouL has joined #ruby
sea_local has joined #ruby
soxet has joined #ruby
jusmyth has joined #ruby
dawkirst_ has joined #ruby
lemur has joined #ruby
craigp has joined #ruby
Cheezebox has joined #ruby
jfutbol has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
rjhunter has joined #ruby
ari-_-e has joined #ruby
Jetchisel has quit [Ping timeout: 250 seconds]
Neomex has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 255 seconds]
olivier_bK has joined #ruby
RTG` has joined #ruby
merqlove has joined #ruby
Jetchisel has joined #ruby
yubrew has joined #ruby
RTG` has quit [Disconnected by services]
RTG has joined #ruby
RTG is now known as Guest51661
gccostabr has joined #ruby
yeticry has joined #ruby
spastorino has joined #ruby
Guest51661 has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 272 seconds]
PeterBoy has quit [Remote host closed the connection]
Logico has joined #ruby
ccooke has quit [Ping timeout: 240 seconds]
krz has joined #ruby
moritzs has joined #ruby
ccooke has joined #ruby
Robert__ has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
fabrice31 has joined #ruby
kenndel_ has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
jusmyth has quit [Quit: Leaving.]
lkba has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gccostabr has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0]
moritzs has quit [Ping timeout: 260 seconds]
jusmyth has joined #ruby
TaxmanBD has joined #ruby
britneywright has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Cheezebox has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
gccostabr has quit [Client Quit]
saladspork has joined #ruby
agjacome has joined #ruby
gnephiak has quit [Ping timeout: 245 seconds]
jfutbol has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sea_local has quit [Ping timeout: 255 seconds]
arup_r1 has joined #ruby
Cheezebox has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
lkba has joined #ruby
sparrovv has joined #ruby
CorpusCallosum has joined #ruby
ari-_-e has quit [Ping timeout: 245 seconds]
jusmyth has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 246 seconds]
Cheezebox has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 240 seconds]
georgesmith has joined #ruby
sparrovv has quit [Ping timeout: 260 seconds]
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gkagan has joined #ruby
IceDragon has joined #ruby
maximski has quit []
Haiiro has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
kaspergrubbe_ has joined #ruby
Jetchisel has quit [Ping timeout: 250 seconds]
gkagan has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
PeterBoy has joined #ruby
maximski has joined #ruby
georgesmith has quit [Ping timeout: 255 seconds]
dawkirst has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
bryanhowarth has quit [Quit: sleep | bryan.howarth@gmail.com | twitter.com/bryanhowarth]
threesixes has joined #ruby
maximski has quit [Client Quit]
maximski has joined #ruby
roshanavand has joined #ruby
dawkirst_ has joined #ruby
craigp has quit [Ping timeout: 245 seconds]
craigp has joined #ruby
shredding has quit [Quit: shredding]
mfmfmfmfmfmf has quit [Remote host closed the connection]
jfutbol has joined #ruby
jfutbol has quit [Remote host closed the connection]
shredding has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
dawkirst_ has quit [Ping timeout: 260 seconds]
georgesmith has joined #ruby
HoloIRCUser has joined #ruby
_808chris has quit [Ping timeout: 255 seconds]
agent_white has quit [Ping timeout: 250 seconds]
rx127 has joined #ruby
rx127 has quit [Remote host closed the connection]
Iota-Spencer is now known as IotaSpencer
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
TaxmanBD has quit [Quit: Leaving]
TaxmanBD has joined #ruby
rx231 has joined #ruby
rx231 has quit [Remote host closed the connection]
maximski has quit []
HoloIRCUser has quit [Remote host closed the connection]
thomasxie has quit [Ping timeout: 240 seconds]
rx56 has joined #ruby
yubrew has joined #ruby
lemur has joined #ruby
rx56 has quit [Remote host closed the connection]
PeterBoy has quit [Remote host closed the connection]
philcrissman has joined #ruby
krz has joined #ruby
rx199 has joined #ruby
brothmars has joined #ruby
agent_white has joined #ruby
rx199 has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 240 seconds]
sdrew has joined #ruby
rx241 has joined #ruby
jfutbol has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
rx241 has quit [Remote host closed the connection]
jfutbol has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sylvanica_ has joined #ruby
PeterBoy has joined #ruby
dkamioka has joined #ruby
rx164 has joined #ruby
jackz has joined #ruby
jackz has left #ruby [#ruby]
Sawbones has joined #ruby
jackz has joined #ruby
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
grenierm has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
linojon has quit [Quit: linojon]
atheneith has joined #ruby
krz has quit [Quit: WeeChat 1.0]
rx164 has quit [Remote host closed the connection]
atheneith has left #ruby [#ruby]
thomasxie has joined #ruby
krz has joined #ruby
grenierm has quit [Quit: grenierm]
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
georgesmith has quit [Quit: georgesmith]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
georgelappies has joined #ruby
charliesome has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
j416 has joined #ruby
saladspork has quit [Quit: saladspork]
osvico has joined #ruby
Sawbones has quit [Remote host closed the connection]
noshi has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
ahmads has quit [Ping timeout: 260 seconds]
olivier_bK has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
toastynerd has joined #ruby
linojon has joined #ruby
charliesome has quit [Quit: zzz]
krz has quit [Quit: WeeChat 1.0]
_808chris has joined #ruby
SouL has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ari-_-e has quit [Ping timeout: 260 seconds]
brothmars has quit [Ping timeout: 245 seconds]
Soda has quit [Remote host closed the connection]
sylvanica_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
nobitanobi has joined #ruby
TaxmanBD has quit [Quit: Leaving]
brothmars has joined #ruby
_808chris has quit [Ping timeout: 245 seconds]
PeterBoy has quit [Remote host closed the connection]
agent_white has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
rx148 has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
krz has joined #ruby
rx148 has quit [Remote host closed the connection]
IceDragon has joined #ruby
tef has joined #ruby
Guest79489 has quit []
claymore has joined #ruby
parduse has joined #ruby
agent_white has joined #ruby
dawkirst has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Ostm has quit []
apeiros has quit [Ping timeout: 255 seconds]
jackz has quit [Read error: Connection reset by peer]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gkagan has joined #ruby
froggy_ has joined #ruby
rx18 has joined #ruby
flowerha_ has quit [Remote host closed the connection]
rx18 has quit [Remote host closed the connection]
PeterBoy has joined #ruby
ghr has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dawkirst has quit [Remote host closed the connection]
gkagan has quit [Ping timeout: 250 seconds]
heftig has quit [Ping timeout: 240 seconds]
froggy__ has quit [Ping timeout: 246 seconds]
flowerhack has joined #ruby
Cheezebox has joined #ruby
mercerist has joined #ruby
sylvanica_ has joined #ruby
krz has quit [Quit: WeeChat 1.0]
ghr has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
moritzs has joined #ruby
sysx1000 has quit [Quit: drive never ends]
ahmads has joined #ruby
Takle has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Takle has joined #ruby
dkamioka has joined #ruby
Zipzap has joined #ruby
Zipzap has quit [Client Quit]
AlexRussia has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
GodPuppet has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
ahmads has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
AlexRussia has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
bthesorceror has joined #ruby
ahmads has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
davispuh has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
frankle has joined #ruby
Xeago has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
fantazo has quit [Ping timeout: 245 seconds]
motto has joined #ruby
fabrice31 has joined #ruby
Fezzler has joined #ruby
sea_local has joined #ruby
gnephiak has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
ahmads has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
Channel6 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
krz has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bthesorceror has quit [Quit: bthesorceror]
seamon has joined #ruby
apeiros has joined #ruby
dawkirst has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
guardian has joined #ruby
<guardian> hello, is there a prettier way to write foo.join('/').concat('/') ?
agent_white has joined #ruby
shizus has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 255 seconds]
Azure has joined #ruby
arup_r1 has quit [Quit: Leaving.]
<shizus> Hi! I was doing some homework for college and I realized I had no idea how to organize a Ruby project
arup_r has joined #ruby
<shevy> shizus it is simple - most stuff goes into lib/
<shizus> All I found so far was about creating projects for gem creation and stuff like that
<shevy> if you happen to have commandline programs, you might want to put them into bin/
<shevy> if you have testing files, test/ is the proper dir
<shevy> yes
<shevy> the gem layout is the standard really
sea_local has quit [Ping timeout: 260 seconds]
<shevy> if you have C code, usually an extra dir is used, called ext/
<shevy> guardian File.join perhaps ... File.join(*foo)
<shizus> Thanks shavy! I'll keep trying then ;)
patrick99e99 has quit [Ping timeout: 272 seconds]
krz has quit [Quit: WeeChat 1.0]
<shevy> >> foo = %w( /tmp test.txt ); File.join(*foo)
<eval-in> shevy => "/tmp/test.txt" (https://eval.in/182702)
<shevy> shevy
craigp has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 255 seconds]
<shizus> The default layout created by bundler it's ok then?
<shevy> don't shave my yak fur please
<shevy> I dunno, I don't use bundler, it is too complicated for me
<shizus> *shevy, sorry, lol
<shevy> I think bundler generates a few more dirs + some files
<shevy> are you on linux?
<shizus> yes
krz has joined #ruby
<shevy> good!
<shevy> name of your project
<shevy> mkdir foobar
<shevy> cd foobar
<shevy> mkdir lib test
<shevy> cd lib
<shevy> mkdir foobar
agent_white has joined #ruby
<shevy> touch foobar.rb
<shevy> \o/
<pontiki> oh brother
<shevy> haha
agent_white has quit [Read error: Connection reset by peer]
<pontiki> just do `bundler gem foobar`
IceDragon has joined #ruby
rx242 has joined #ruby
<shizus> OK, thank you both, i'll be back with more questions soon
<shizus> :)
<jhass> guardian: File.join(*foo, '/')
gaussblurinc1 has joined #ruby
Fezzler has quit [Quit: Leaving]
sea_local has joined #ruby
agent_white has joined #ruby
<gaussblurinc1> is anybody here?
agent_white has quit [Read error: Connection reset by peer]
sylvanica_ is now known as sylvanica
<shevy> gaussblurinc1 hi
motto has quit [Quit: Sto andando via]
rx242 has quit [Remote host closed the connection]
m8 has joined #ruby
rx41 has joined #ruby
sparrovv has joined #ruby
nobitanobi has joined #ruby
rx41 has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
rx108 has joined #ruby
maoko has joined #ruby
<gaussblurinc1> shevy: hi!
rx108 has quit [Remote host closed the connection]
CaptainJet has joined #ruby
_cpt_yossarian_ has quit [Quit: Leaving]
havenwood has joined #ruby
agent_white has joined #ruby
<gaussblurinc1> do you know how to set cookies with net::http?
agent_white has quit [Read error: Connection reset by peer]
cpt_yossarian has joined #ruby
jcoglan has joined #ruby
rx225 has joined #ruby
rx225 has quit [Remote host closed the connection]
<shevy> no idea
<shevy> with cgi it is like this: cookie = CGI::Cookie.new "rubyweb", "CustID=123", "Part=ABC"
nobitanobi has quit [Ping timeout: 240 seconds]
sparrovv has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
agent_white has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
agent_white has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
timonv_ has quit [Remote host closed the connection]
charliesome has joined #ruby
gkagan has joined #ruby
sepp2k has joined #ruby
<guardian> yeah File.join(*'/foo/'.split('/'), '/'), not better than << '/'
<guardian> but thx for the help
agent_white has joined #ruby
chipotle has joined #ruby
ghr has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Arkaniad has quit [Ping timeout: 255 seconds]
terlar has quit [Quit: WeeChat 0.4.2]
<guardian> I have another question
charliesome has quit [Ping timeout: 255 seconds]
<guardian> when not using bundle exec, I get WARN: Unresolved specs during Gem::Specification.reset:
havenwood has quit [Remote host closed the connection]
<guardian> it seems to be caused by a gem being available in 2 versions, for which there's a runtime dependency added in the gemspec
chipotle has quit [Client Quit]
gkagan has quit [Ping timeout: 250 seconds]
sea_local has quit [Ping timeout: 255 seconds]
<guardian> using bundle exec makes the warning disappear, gem cleanup makes the warning disappear (by removing the older version of the dependency)
<guardian> is there another way?
<guardian> I'm not using rbenv or rvm btw
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
comma8 has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
cy has joined #ruby
terlar has joined #ruby
<TieSoul> hey guys, anyone know how I would use sprunge.us in Ruby?
Cheezebox has quit [Ping timeout: 255 seconds]
mfmfmfmfmfmf has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Write error: Connection reset by peer]
georgelappies has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
Cheezebox has joined #ruby
gnephiak has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
sdwrage has quit [Remote host closed the connection]
mfmfmfmfmfmf has quit [Ping timeout: 250 seconds]
terlar has quit [Quit: WeeChat 1.0]
terlar has joined #ruby
terlar has quit [Client Quit]
sdwrage has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
ari-_-e has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
<shevy> see jhass? guardian is not convinced :)
banister_ has joined #ruby
lemur has joined #ruby
banister has quit [Read error: Connection reset by peer]
<guardian> yeah the exact context, should have started by this: item.identifier.split('/').map(&:to_url).join('/') << '/'
<jhass> guardian: eh, your suddenly changed the initial question, so it's about ensuring a '/' at the end? .chomp('/').concat('/') then
<guardian> identifier is a string, like '/foo/bar-baz/'
agent_white has joined #ruby
<guardian> and I'm using stringex#to_url on each part
agent_white has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: This computer has gone to sleep]
<guardian> so bringing in File.join() looks bizarre to me :)
craigp has joined #ruby
<jhass> I'd consider replacing the urlencoded / then
<jhass> item.identifier.to_url.gsub('%I forgot', '/')
dkamioka has quit [Ping timeout: 260 seconds]
<jhass> 3F or what it was
banister has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
sylvanica_ has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
<jhass> guardian: to the other question, no there's no other way. You can have require 'bundler/setup' as the first require but that does the same thing as bundle exec
sylvanica has quit [Disconnected by services]
sylvanica_ is now known as sylvanica
ari-_-e has quit [Ping timeout: 250 seconds]
<guardian> ok
<guardian> thank you
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
alex88 has quit [Quit: Leaving...]
chipotle has quit [Client Quit]
seamon has quit [Quit: Zzzzzzz]
yfeldblum has joined #ruby
chipotle has joined #ruby
CaptainJet has quit [Ping timeout: 246 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
<shevy> how do you people feel about bots that announce stuff?
<shevy> on IRC in general
chipotle has quit [Client Quit]
maroloccio has joined #ruby
agent_white has joined #ruby
asteve has joined #ruby
<waxjar> depends on what they're announcing. i could do without the "gem x has been updated!" ones
agent_white has quit [Read error: Connection reset by peer]
Aranshada|W has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Rahul_Roy has joined #ruby
seamon has joined #ruby
agent_white has joined #ruby
emmesswhy has quit [Quit: Leaving]
agent_white has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has joined #ruby
lkba has joined #ruby
starkhalo has joined #ruby
ari-_-e has joined #ruby
Takle has quit [Remote host closed the connection]
Dr3amc0d3r|away has joined #ruby
Takle has joined #ruby
craigp has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 255 seconds]
shredding has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Leaving.]
IceDragon has joined #ruby
<shevy> on #libreoffice they have a very noisy bot
sepp2k has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
Cheezebox has quit [Remote host closed the connection]
<waxjar> is it one of those bots that announce commits?
<waxjar> *announces
<shevy> yeah
<shevy> but also new questions from ... a stackoverflow-like libreoffice website
<shevy> discussing with real people becomes very difficult :(
<pontiki> /ignore works
<waxjar> that sounds bad
<pontiki> if you really want to be on that channel
<pontiki> /part works too
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
axilla_ has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
dkamioka has quit [Ping timeout: 260 seconds]
regedarek has joined #ruby
<shevy> hey
<shevy> I don't even think I do any manual commands
<pontiki> couldn't really be worse than here with all the join/part/quits
<shevy> I don't see these :)
IceDragon has quit [Ping timeout: 250 seconds]
<pontiki> i don't either, because i /ignore them
IceDragon has joined #ruby
arup_r has quit [Quit: Leaving.]
atmosx has joined #ruby
gnephiak has joined #ruby
nobitanobi has joined #ruby
tyfighter has joined #ruby
agent_white has joined #ruby
<atmosx> hello
axilla has joined #ruby
craigp has joined #ruby
Adran is now known as randomfriendofco
randomfriendofco is now known as adran
gnephiak has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
nobitano_ has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<shevy> hey atmosx
<shevy> still railsing your way up?
<atmosx> hey shevy, well... kinda. I created a sinatra prototype, I'm still a lot faster on Sinatra. When it's ready I'll deploy it and start writing the app in rails :-P
<atmosx> but if you don't know JS you can't do shit.
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<atmosx> I mean, everything I do looks/feels like shit
tyfighter has quit [Client Quit]
<shevy> you have to use JS?
<shevy> sinatra is kinda difficult... I can't for the life of me figure out how to easily use formulars
<shevy> in .cgi it is trivial
agent_white has joined #ruby
Xeago has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
ahuman has quit [Ping timeout: 255 seconds]
axilla has quit [Ping timeout: 240 seconds]
<shevy> but man, using separate .erb files? how ugly is that ...
IceDragon has quit [Ping timeout: 255 seconds]
gkagan has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
armanghassemi_ has joined #ruby
yubrew has joined #ruby
Takle has joined #ruby
IceDragon has joined #ruby
yacks has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
agent_white has joined #ruby
anaeem1 has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
h0lyalg0rithm has joined #ruby
adran is now known as Adran
ghr has joined #ruby
Logico has quit [Quit: Saindo]
gkagan has quit [Ping timeout: 245 seconds]
<dorei> shevy: dont worry, sinatra let's you include your erb code at the end of the file ;-)
mikeric has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
mfmfmfmfmfmf has joined #ruby
agent_white has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
<shevy> :\
shredding has joined #ruby
<armanghassemi_> can someone explain to me why I'm getting this error: http://imgur.com/0q4NHhq
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex88 has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<dorei> armanghassemi_: let's say that with "." you invoke methods on objects
regedarek is now known as regedarek2
alex88 has joined #ruby
_KaszpiR_ has quit [Remote host closed the connection]
PeterBoy has quit [Remote host closed the connection]
<armanghassemi_> dorei, @@board is an object tho?
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mercerist has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
<dorei> armanghassemi_: nop, @@board is a variable, a class variable
IceDragon has quit [Ping timeout: 240 seconds]
<shevy> the more often I see people use @@
<shevy> the more I am convinced that it is a misfeature
<shevy> btw armanghassemi_
<shevy> that is superfluous
<shevy> puts "#{@@board[i]}"
<shevy> puts @@board[i]
_lexjm has joined #ruby
mistergibson has quit [Quit: Quitting ... be good to each other :)]
<shevy> using imgur is also annoying, people can not quickly copy paste that code, or?
CaptainJet has joined #ruby
ptrrr has quit [Quit: ptrrr]
jcoglan has quit [Quit: jcoglan]
armanghassemi_ has quit [Ping timeout: 250 seconds]
sea_local has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 260 seconds]
<shevy> blocks in ruby are so cool
anaeem1_ has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
<kaspergrubbe_> yeah
<atmosx> shevy: you have to use JS to make a modern website.
<atmosx> without AJAX things suck.
<kaspergrubbe_> fun for the whole family ;)
<shevy> atmosx I wanna use ruby! :(
johndeeer has joined #ruby
<atmosx> shevy: you can for the backend
<waxjar> there is a tool that translates ruby to js
<waxjar> never used it though
<atmosx> waxjar: yeah, good luck with debugging
<shevy> wellt hat would be better
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I really don't want to write any javascript code manually
<johndeeer> dorei, i thought because it has attr_reader I'd be able to read it from the instance
<atmosx> JS is not all that difficult. i just never take the time to sit and learn something new (e.g. JS)
<waxjar> yeah that's the crappy thing about it i suppose atmosx
cocotton has joined #ruby
<kaspergrubbe_> proper JS architecture takes a long time to develop. JS one-offs to solve the problem is fast and easy, but maintaining that is another story, atleast that is my experience
Xeago has joined #ruby
lemur has joined #ruby
cocotton has quit [Remote host closed the connection]
skolman has joined #ruby
<shevy> I have more than enough code to maintain in ruby, I really don't want to add more to it and especially not in other languages
<shevy> the only real addition I'd consider doing is to use either C or C++
cocotton has joined #ruby
agent_white has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
<dorei> johndeeer: when u do attr_reader :some_var, it creates behinds the scenes, two methods, some_var and some_var= for getting/setting the value of @some_var
<waxjar> i'd like to learn haskell but it seems so difficult
wallerdev has joined #ruby
<shevy> hah
IceDragon has joined #ruby
<shevy> don't the haskell folks tell you that haskell is super simple?
dawkirst has joined #ruby
dkamioka has joined #ruby
<waxjar> yeah
bthesorceror has quit [Quit: bthesorceror]
<waxjar> i think they lie
diegoviola has joined #ruby
moritzs has joined #ruby
<AntelopeSalad> monads are simple!
lemur has quit [Ping timeout: 240 seconds]
dkamioka has quit [Read error: Connection reset by peer]
sea_local has quit [Ping timeout: 245 seconds]
krisquigley has quit [Remote host closed the connection]
blueOxigen has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
regedarek has joined #ruby
<shevy> I still do not understand what a monad is and why it is necessary to know what it is
agjacome_ has joined #ruby
dkamioka has joined #ruby
<shevy> can't haskell get rid of monads?
phutchin1 has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
jerikl has joined #ruby
Sawbones has joined #ruby
<waxjar> they won't be able to print stuff to the terminal :p
jerikl has quit [Client Quit]
agjacome has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
mikeric has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
mikeric has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> :(
<_cake> open-uri is screwing up my unicode characters
<shevy> why not?
<_cake> I'm hurt
<shevy> down with unicode!
dkamioka has quit [Ping timeout: 260 seconds]
<shevy> people always say unicode is the solution to everything AND NOW _cake HAS PROBLEMS WITH IT!!!
<_cake> but I'm using it to format my chinese vocab words
<_cake> >> puts "工作 Gongzuo Work"
<_cake> is bot ded
<_cake> >> puts "hi"
<eval-in> _cake => hi ... (https://eval.in/182716)
<_cake> it hates unicode
nobitano_ has quit [Remote host closed the connection]
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> hahaha
<_cake> >> system("uname -r")
<eval-in> _cake => (https://eval.in/182717)
<_cake> er
<shevy> _cake you speak mandarin?
<_cake> taking chinese class
<_cake> I'm using that weird quote for changing the language from chinese to english and back
<_cake> so I can't typ eit
seamon has quit [Quit: Zzzzzzz]
regedarek2 is now known as rege
rege is now known as darekakra
<_cake> >> `uname -r`
<eval-in> _cake => (https://eval.in/182718)
<_cake> what os is this
<_cake> >> `ipconfig`
patrick99e99 has joined #ruby
<waxjar> i don't think it allows you to shell out
<eval-in> _cake => (https://eval.in/182719)
<_cake> >> `ifconfig`
<eval-in> _cake => (https://eval.in/182720)
<apeiros> _cake: stop spamming
<_cake> it's linux
Pharaoh2 has quit [Remote host closed the connection]
<_cake> alright
ptrrr has joined #ruby
agent_white has joined #ruby
IceDragon_ has joined #ruby
sea_local has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> they carefully tested to make the bot hijack-proof
saladspork has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
<Mon_Ouie> It doesn't hate Unicode though
<Hanmac> >> RbConfig::CONFIG["arch"]
<eval-in> Hanmac => "i686-linux" (https://eval.in/182721)
<Mon_Ouie> >> π = 3.14
<Mon_Ouie> …maybe it does though
<Mon_Ouie> It didn't use to :p
shizus has quit [Remote host closed the connection]
<dorei> >> puts 'πι'
<dorei> >> 'αλφα'.encoding
<dorei> yeap, it really hates it :(
patrick99e99 has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
nectarys__ has joined #ruby
koell has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> cool
<Mon_Ouie> How am I going to confuse people with A = 3; Α = 4; [A, Α] #=> [3, 4] now?!
Lewix has joined #ruby
<waxjar> lol
ari-_-e has quit [Ping timeout: 272 seconds]
nectarys_ has quit [Ping timeout: 272 seconds]
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
_KaszpiR_ has joined #ruby
<dorei> maybe you could use l and I :p
seamon has joined #ruby
koell has joined #ruby
<Mon_Ouie> I and I?
<pontiki> you're and evil person
<pontiki> an
kaspergrubbe_ has joined #ruby
<dorei> Mon_Ouie: on some fonts they look exactly the same
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
<Mon_Ouie> dorei: Do they look the same on yours? Because I said "(capital I) and (capital I)?", pretending I didn't see they were two different characters :p
sparrovv has joined #ruby
nfk has joined #ruby
agent_white has joined #ruby
<dorei> Mon_Ouie: capital I and lowercase L loook the same at my font xD
agent_white has quit [Read error: Connection reset by peer]
<dorei> arial unicode ms that is
<waxjar> menlo <3
dawkirst has quit [Remote host closed the connection]
<pontiki> looks like i'm using menlo as well
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
jackz has joined #ruby
<shevy> cool
sea_local has quit [Ping timeout: 264 seconds]
<shevy> I only see Mon_Ouie use capital I
<Mon_Ouie> There is no Iowercase I
* apeiros uses Deja Vu
moritzs has quit [Ping timeout: 245 seconds]
IceDragon_ has quit [Ping timeout: 272 seconds]
<apeiros> do browsers already highlight, blink and marquee urls with multiple scripts?
sdwrage has quit [Quit: This computer has gone to sleep]
krz has quit [Quit: WeeChat 1.0]
krz has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
krz has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
krz has joined #ruby
sdwrage has joined #ruby
Dr3amc0d3r|away has joined #ruby
kaspergrubbe_ has joined #ruby
<shevy> Iowacase
startupality has joined #ruby
<pontiki> is it corny?
tlarevo_ has quit [Remote host closed the connection]
yubrew has joined #ruby
dawkirst has joined #ruby
PeterBoy has joined #ruby
krz has quit [Client Quit]
philcrissman has joined #ruby
regedarek has quit [Quit: Lost terminal]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
regedarek has joined #ruby
yfeldblum has joined #ruby
dawkirst has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
<atmosx> does Amazon have any sort of API for quering products listed on it's website?!
PeterBoy has quit [Ping timeout: 245 seconds]
gkagan has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
jerikl has joined #ruby
OnesDestiny has joined #ruby
tectonic has quit []
threesixes has quit [Remote host closed the connection]
Dwarf has quit [Quit: Oops I quit]
agent_white has joined #ruby
OnesDestiny is now known as buk911
agent_white has quit [Read error: Connection reset by peer]
sdrew has joined #ruby
jerikl has quit [Client Quit]
ghr has joined #ruby
Cheezebox has joined #ruby
gregf has joined #ruby
saladspork has quit [Quit: saladspork]
<pontiki> it used to; i haven't looked in ages
gkagan has quit [Ping timeout: 250 seconds]
saladspork has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
mikeric has quit []
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
mikeric has joined #ruby
Dwarf has joined #ruby
Aranshada|W has joined #ruby
agent_white has joined #ruby
timonv_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 250 seconds]
<atmosx> dorei: that's for product ads
<dorei> atmosx: not exactly
<atmosx> ah
angusiguess has quit [Ping timeout: 264 seconds]
mices has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has joined #ruby
<mices> what's the best way to install ruby on freebsd if i wanna run 2.1
angusiguess has joined #ruby
fantazo has joined #ruby
<pontiki> source compile?
<kaspergrubbe_> have you tried rbenv?
tectonic has joined #ruby
cpruitt has joined #ruby
agent_white has joined #ruby
cocotton has quit [Remote host closed the connection]
<waxjar> chruby or rbenv to manage ruby versions, ruby-build or ruby-install to install / compile etc
<Lewix> how to pass a hash as argument into #send
agent_white has quit [Read error: Connection reset by peer]
j416_ has joined #ruby
<Lewix> hash.send(:merge, {})
j416 has quit [Read error: Connection reset by peer]
<Mon_Ouie> Just like that
robustus has quit [Ping timeout: 255 seconds]
mercerist has joined #ruby
decoponio has quit [Quit: Leaving...]
<Lewix> Mon_Ouie: for some reasons it's not working
dgutierrez1287 has quit [Ping timeout: 260 seconds]
mercerist has quit [Client Quit]
robustus has joined #ruby
sea_local has joined #ruby
JoshGlzBrk has joined #ruby
onr has joined #ruby
adamski2600 has joined #ruby
mfmfmfmfmfmf has joined #ruby
<Mon_Ouie> We can't really help you with "it doesn't work", we need more information
TorpedoSkyline has joined #ruby
agent_white has joined #ruby
<Lewix> Mon_Ouie: i need a refresher - give me a synonym of merge
agent_white has quit [Read error: Connection reset by peer]
<Lewix> for a hash
<onr> "my program no worky"
Dr3amc0d3r|away has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
<Lewix> update?
<Hanmac> Lewix: maybe you want "merge!" ? there is a difference
Aryasam has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 240 seconds]
<Lewix> Hanmac: you have good eye
<Lewix> exactly!
<Lewix> thanks
<Hanmac> Mon_Ouie: if you want crazy chars like I and l, what about "ı" ? ;P
<Mon_Ouie> Hanmac: I know how to fool people with unicode, the problem is eval-in doesn't like unicode :(
<Mon_Ouie> >> "ı"
flowerhack has joined #ruby
<Hanmac> yeah charliesome does need to fix that
sdwrage has quit [Quit: This computer has gone to sleep]
sea_local has quit []
lemur has joined #ruby
siwica has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<dorei> oh, that's a turkish i :p
cpruitt has quit [Quit: cpruitt]
<dorei> there's even a crazy story with that turkish i
mary5030 has joined #ruby
blackmesa has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
lemur has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
atmosx has quit [Client Quit]
krisquigley has joined #ruby
agent_white has joined #ruby
Cache_Money has joined #ruby
jackz has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
jackz has joined #ruby
PeterBoy has joined #ruby
Brando753 has joined #ruby
jfutbol has joined #ruby
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
shevy has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
kaspergrubbe_ has quit [Remote host closed the connection]
zettam has joined #ruby
nobitanobi has joined #ruby
Nahra has quit [Ping timeout: 240 seconds]
Dr3amc0d3r|away has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0]
sdwrage has joined #ruby
jgrevich has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
buk911 has quit [Remote host closed the connection]
jackz has quit [Remote host closed the connection]
jackz has joined #ruby
L8D has quit [Ping timeout: 260 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
goshdarnyou has joined #ruby
nerdgrass has joined #ruby
senayar has joined #ruby
agent_white has joined #ruby
nobitanobi has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
PeterBoy has quit [Remote host closed the connection]
Nahra has joined #ruby
jerikl has joined #ruby
ari-_-e has joined #ruby
seamon has quit [Quit: Zzzzzzz]
claymore has quit [Quit: Leaving]
flowerha_ has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerdgrass has quit [Ping timeout: 250 seconds]
senayar has quit [Ping timeout: 250 seconds]
ht__th has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
flowerhack has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
angusigu1ss has joined #ruby
chipotle has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
adac has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 245 seconds]
tectonic has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
benzrf|offline is now known as benzrf
adac has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
seamon has joined #ruby
agent_white has joined #ruby
angusiguess has joined #ruby
j416__ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
j416_ has quit [Ping timeout: 240 seconds]
angusigu1ss has quit [Ping timeout: 260 seconds]
gkagan has joined #ruby
fabrice31 has joined #ruby
angusigu1ss has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
Aranshada|W has quit [Ping timeout: 255 seconds]
cashnguns has joined #ruby
ghr has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
agjacome has joined #ruby
chipotle has quit [Quit: cya]
gkagan has quit [Ping timeout: 240 seconds]
krisquigley has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
tlarevo has joined #ruby
sea_local has joined #ruby
andrewlio has quit [Remote host closed the connection]
agjacome_ has quit [Ping timeout: 240 seconds]
{xenomorph} is now known as xenomorph
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
flowerhack has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
adac has joined #ruby
AlexRussia has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
buk911 has joined #ruby
tlarevo has quit [Ping timeout: 246 seconds]
nectarys__ has quit [Ping timeout: 260 seconds]
nectarys_ has joined #ruby
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
gaussblurinc1 has quit [Quit: Leaving.]
flowerha_ has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
Shidash has joined #ruby
gaussblurinc1 has joined #ruby
RTG` has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
tectonic has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
sdwrage has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
merqlove has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
alex88 has quit [Quit: Leaving...]
PeterBoy has joined #ruby
havenwood has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Xeago has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
PeterBoy has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
ahmads has joined #ruby
Xeago has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
agjacome has joined #ruby
anaeem1_ has joined #ruby
moritzs has joined #ruby
mocfive has joined #ruby
sdrew has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
L8D has joined #ruby
saladspork has quit [Quit: saladspork]
sparrovv has quit [Remote host closed the connection]
<shevy> Lewix did you get your .send syntax to work? I disconnected...
brianherman has joined #ruby
PeterBoy has joined #ruby
<Lewix> shevy: yup
sparrovv has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
ewilliam has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ahmads has quit [Read error: Connection reset by peer]
ahmads has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
<shevy> \o/
sparrovv has quit [Ping timeout: 260 seconds]
Cheezebox has quit [Remote host closed the connection]
Cheezebox has joined #ruby
ahmads has quit [Read error: Connection reset by peer]
ahmads has joined #ruby
agent_white has joined #ruby
flowerhack has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
Neomex has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<havenwood> ThreadGroup no worky for Puma::ThreadPool since Threads spawning Threads prevents using ThreadGroup#list#size to determine @spawned count >.>
nobitanobi has joined #ruby
yubrew has joined #ruby
senayar has joined #ruby
<havenwood> from determining*
buk911 has quit []
brothmars has quit [Remote host closed the connection]
philcrissman has joined #ruby
nobitanobi has quit [Read error: No route to host]
<havenwood> boo
nobitanobi has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Cheezebox has quit [Ping timeout: 240 seconds]
phutchin1 has quit [Ping timeout: 272 seconds]
brothmars has joined #ruby
PeterBoy has quit [Remote host closed the connection]
ahmads has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
phutchin1 has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
Cheezebox has joined #ruby
ahmads has joined #ruby
altern has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
bMalum has quit [Quit: bMalum]
sinkensabe has joined #ruby
<johndeeer> how might I generate a random array of characters in ruby? so lets say I have characters "A","B","C","D" and I wanted to make a random array of 3 of those chars
altern has quit [Client Quit]
Sht0 has joined #ruby
<havenwood> >> Array.new(3) { %w{A B C D}.sample }
<eval-in> havenwood => ["B", "D", "D"] (https://eval.in/182754)
<havenwood> johndeeer: you want uniq?
<havenwood> >> %w{A B C D}.sample(3)
<eval-in> havenwood => ["D", "B", "A"] (https://eval.in/182755)
<johndeeer> yeahunique
<johndeeer> oh
<havenwood> johndeeer: that's the easy one ;)
<johndeeer> wow thanks
<havenwood> johndeeer: np
<johndeeer> ruby really is magic.
<havenwood> aye :)
agent_white has joined #ruby
<johndeeer> whats the %w?
agent_white has quit [Read error: Connection reset by peer]
onr has left #ruby [#ruby]
<havenwood> johndeeer: ['A', 'B', 'C'] == %w[A B C]
OffTheRails has quit [Quit: Leaving]
<johndeeer> ahh i see
<havenwood> >> [*?A..?D]
<eval-in> havenwood => ["A", "B", "C", "D"] (https://eval.in/182756)
<havenwood> char literals
<havenwood> and splat expansion
<havenwood> >> ?A == "A"
<eval-in> havenwood => true (https://eval.in/182757)
gaussblurinc1 has quit [Quit: Leaving.]
nobitanobi has joined #ruby
Bumptious has quit [Read error: Connection reset by peer]
<apeiros> >> alnum = *"A".."Z", *"a".."z", "0".."9"
<eval-in> apeiros => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", ... (https://eval.in/182758)
<apeiros> string range splat is very convenient for building alphabets
seamon has quit [Quit: Zzzzzzz]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
nobitanobi has quit [Ping timeout: 250 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
Aranshada|W has joined #ruby
Jackneill has quit [Remote host closed the connection]
gkagan has joined #ruby
Bumptious has joined #ruby
txdv has quit [Read error: Connection reset by peer]
jkline has joined #ruby
txdv has joined #ruby
agent_white has joined #ruby
BadQuanta has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<havenwood> >> ?0.upto(?z).grep /[[:alnum:]]/
<eval-in> havenwood => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", ... (https://eval.in/182760)
<havenwood> yeah, the splat convention is handy
<havenwood> fun to use
fantazo has joined #ruby
gkagan has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Leaving]
agent_white has joined #ruby
johndeeer has quit [Ping timeout: 260 seconds]
agent_white has quit [Read error: Connection reset by peer]
armanghassemi__ has joined #ruby
Morkel_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<Nowaker> >> [a..z] + [0..9]
<eval-in> Nowaker => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/182761)
<Nowaker> >> [(a..z)] + [(0..9)]
<eval-in> Nowaker => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/182762)
<Nowaker> damn
<havenwood> Nowaker: think ya mean "a"
<havenwood> Nowaker: but those are two Arrays with one element each (a Range)
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frankle has quit [Quit: Connection closed for inactivity]
Seattle113 has joined #ruby
<Nowaker> >> ['a'..'z'] + [0..9]
<eval-in> Nowaker => ["a".."z", 0..9] (https://eval.in/182763)
<havenwood> _.size #=> 2
toastynerd has quit [Remote host closed the connection]
<Nowaker> ok, i see why splat is handy in such situations
agent_white has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
<Nowaker> there would be a need for .to_a
jerikl has quit [Quit: jerikl]
agent_white has quit [Read error: Connection reset by peer]
<Nowaker> and splat is just better
sinkensabe has quit [Remote host closed the connection]
Seattle113 has quit [Remote host closed the connection]
altern has joined #ruby
nfk has quit [Quit: yawn]
BadQuanta has quit [Remote host closed the connection]
<Nowaker> howeverif the sequence (or whatever the result of a..b) did .to_a automatically in def +, then there wouldnt be aneed for splat
armanghassemi_ has joined #ruby
<havenwood> Nowaker: but you'd not be able to have an Array of Ranges
<Mon_Ouie> I think using to_a for that is fine…
<Mon_Ouie> But the splat has still completely different uses: it can be used to pass an array of elements to a method, where each element is an individual argument
<Mon_Ouie> >> def foo(a, b, c); p [a,b,c]; end; foo(*[1,2,3])
<eval-in> Mon_Ouie => [1, 2, 3] ... (https://eval.in/182765)
bricker`LA has quit [Ping timeout: 264 seconds]
jerikl has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
claw has joined #ruby
spacemud_ is now known as spacemud
<havenwood> a) [*'a'..'z'], b) [*'a'.upto('z')], c) 'a'.upto('z').to_a, d) ('a'..'z').to_a
charliesome has joined #ruby
armanghassemi__ has quit [Ping timeout: 245 seconds]
<havenwood> ^ which do you prefer?
<Nowaker> havenwood: sorry for not being clear
<Nowaker> when I was saying 'howeverif ...', I was thinking about something else
<shevy> hehe
<Nowaker> about this:
<Nowaker> >> ('a'..'c') + (1..2)
<eval-in> Nowaker => undefined method `+' for "a".."c":Range (NoMethodError) ... (https://eval.in/182768)
<shevy> however if sheep could code ...
djbkd has joined #ruby
<Nowaker> ranges could have def +
<shevy> hmm
<shevy> isn't a Range just a fancy Array
njs126 has joined #ruby
<shevy> if it walks like a duck and dances like michael jackson
<havenwood> >> class Range; def + this; self.to_a.concat(this.to_a) end end; ('a'..'c') + (1..2)
<eval-in> havenwood => ["a", "b", "c", 1, 2] (https://eval.in/182769)
diegoviola has quit [Quit: WeeChat 1.0]
<havenwood> Nowaker: your wish is granted
<havenwood> \o/ Ruby
<Nowaker> havenwood: submit a PR
<Nowaker> if they accept, they it's granted :)
<Mon_Ouie> eval-in should automatically submit patches to ruby-core when we monkey patch something here
Xiti has joined #ruby
<havenwood> hahaha
<Nowaker> let's do this
<shevy> haha
armanghassemi__ has joined #ruby
lemur has joined #ruby
<shevy> perhaps there is a reason Range does not have + ?
agent_white has joined #ruby
<havenwood> shevy: there is indeed
agent_white has quit [Read error: Connection reset by peer]
<Mon_Ouie> Because, why should it return an array? and it can only return a third range in certain specific cases
<havenwood> easy enough to add if ya want it ;)
<havenwood> ^
roshanavand has quit [Quit: Leaving]
blueOxigen has quit [Ping timeout: 240 seconds]
grenierm has quit [Quit: grenierm]
jfutbol_ has joined #ruby
PeterBoy has joined #ruby
<Nowaker> Not a Ruby question, but anyways. This is my Middleman-generated prototype of cloud panel: https://demo.virtkick.io/ How do you like it? Any suggestions?
armanghassemi_ has quit [Ping timeout: 250 seconds]
saladspork has joined #ruby
<shevy> to me a Range is a lazy Array
naw has quit [Quit: .]
Ilyas_ has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 240 seconds]
jerikl has quit [Quit: jerikl]
jfutbol has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<Nowaker> for me a..b is a concise way of generating an array for a to b
<havenwood> Nowaker: nice. i feel like there shouldn't be a fully line between Stop ˅ and Restart ˅.
<Nowaker> range is a semi-finished product for me :)
<havenwood> full line*
britneywright has joined #ruby
<havenwood> Nowaker: but that's a Range not an Array :P
johndeeer has joined #ruby
<havenwood> Nowaker: Ranges aren't just Array generating devices
anaeem1_ has quit [Remote host closed the connection]
<dorei> Nowaker: nice, bonus points for retro looking blocky icon :)
<Nowaker> havenwood: you can about this screen? https://demo.virtkick.io/machine.html
<havenwood> ya
<Nowaker> havenwood: s/can/say/
<havenwood> a dashed line or might no line at all wor there?
<havenwood> dunno
<Nowaker> havenwood: had to think for a while. now I got it. it should feel like Stop and (arrow down) are the same button, right?
<havenwood> ya
<havenwood> just a sub-function of same button, rather than two buttons
Cheezebox has quit [Remote host closed the connection]
<Nowaker> havenwood: but still, 'Stop' would stop immediately, whereas (arrow down) would open a menu?
<havenwood> yup
ltfschoen has joined #ruby
<Nowaker> ok, let's see
<havenwood> just that the down-arrow isn't its own element, it's a Stop option
jerikl has joined #ruby
<Nowaker> dorei: thanks :) I like minecraft, so this way my idea for a logo :)
ltfschoen has quit [Excess Flood]
<Nowaker> dorei: btw, this is my room, see what's on the wall https://www.nowaker.net/img/photos/office-96f4e4a1.jpg
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
armanghassemi__ has quit [Ping timeout: 264 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
<dorei> Nowaker: java and php books :p
dkamioka has joined #ruby
sylvanica has quit [Quit: Quitte]
Cheezebox has joined #ruby
<Nowaker> dorei: yep. ruby books are on the left, not visible
<dorei> I'm jealous, I want 4 monitors too
<Nowaker> havenwood: $('.dropdown-toggle').css('border-left', 'none'); would this be better?
armanghassemi__ has joined #ruby
<Nowaker> hover is still broken, but it's just to visualize
anaeem1 has joined #ruby
<Nowaker> dorei: 3 of them are old samsung screens, $100 each
sivteck has joined #ruby
<Nowaker> so you can probably just buy 3 without any problem ;-)
naw has joined #ruby
yubrew has joined #ruby
<dorei> Nowaker: i'm waiting for my boss to return from his vacation in order to get paid xD
Guest64491 has joined #ruby
agent_white has joined #ruby
<Nowaker> that's not funny btw :P waiting for someone to return in order to get paid
<havenwood> Nowaker: yes, that looks clearer to me
<havenwood> i prefer
<havenwood> less mental work
<havenwood> 4 options
fantazo has quit [Ping timeout: 240 seconds]
<havenwood> 2 with sub options
<havenwood> Nowaker: very nice actually, well done
<Nowaker> I came up with the best idea I think. Imagine this: start, pause, stop, restart. nothing more
<dorei> Nowaker: about 850,000 employed ppl in this country (greece) haven't been paid for 1-12 months, it's a really fucked up economic situation
johndeeer has quit [Ping timeout: 250 seconds]
_lexjm has joined #ruby
<Nowaker> after hitting Stop, then the button gets replaced with Kill button
<Nowaker> there's no reason for someone to Kill the VM without trying first to Stop it gracefully. ha!
<apeiros> dorei: nice that in that situation your boss can afford to go to holiday but not pay his workers…
<Nowaker> dorei: the worst thing is that communists are attracting more and more people in your country (if the news don't lie)
TDJACR has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
armanghassemi__ has quit [Ping timeout: 245 seconds]
<Nowaker> havenwood: thanks
<dorei> apeiros: most of the bosses, kind of medieval times
yubrew has quit [Ping timeout: 260 seconds]
<dorei> Nowaker: i'm worried more about neonazis than the commies
agent_white has quit [Ping timeout: 250 seconds]
axsuul has quit [Ping timeout: 260 seconds]
<Nowaker> both are extreme socialists, so whatever
mocfive has joined #ruby
mocfive has quit [Client Quit]
agent_white has joined #ruby
armanghassemi__ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<Nowaker> nazi means national socialism, the economy was centrally planned too, both commies and nazis killed millions, so no difference to me
_cake is now known as Error
Error is now known as _cake
<apeiros> Nowaker: because labels tell the truth
<apeiros> might want to tell that to all those democratic people republics
jfutbol_ has quit [Remote host closed the connection]
<dorei> Nowaker: you dont risk being attacked by commies at the streets here, while being attacked by neonazis is quite frequent
<havenwood> Maniacs don't exercise a ton of restraint in what they call themselves.
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cort3z has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<Nowaker> dorei: I see
mfmfmfmfmfmf has joined #ruby
<Nowaker> there are no nazis in poland fortunately
fabrice31 has joined #ruby
<Nowaker> apeiros: hehe
lolmaus has quit [Quit: Konversation terminated!]
rjhunter has quit [Remote host closed the connection]
<shevy> nazis don't program
<pipework> shevy: Sure they do.
<pipework> They probably just don't program much software.
sdrew has joined #ruby
sivteck has left #ruby ["To Infinity and Beyond"]
flowerhack has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> it's too complex a topic
<pipework> Most anything is.
<shevy> good point
fabrice31 has quit [Ping timeout: 250 seconds]
brianherman has quit [Read error: Connection reset by peer]
_cake is now known as _cakebot
nobitanobi has joined #ruby
_cakebot is now known as _cake
Morkel has quit [Quit: Morkel]
agent_white has joined #ruby
jgrevich_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jfutbol has joined #ruby
cashnguns has quit [Ping timeout: 240 seconds]
jgrevich_ has quit [Client Quit]
toastynerd has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
Aranshada|W has quit [Ping timeout: 250 seconds]
jerikl has quit [Quit: jerikl]
toastynerd has quit [Read error: No route to host]
toastynerd has joined #ruby
jgrevich has quit [Ping timeout: 260 seconds]
CaptainJet has quit [Ping timeout: 250 seconds]
CaptainJet has joined #ruby
asteve has joined #ruby
gkagan has joined #ruby
tef has left #ruby [#ruby]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
armanghassemi__ has quit [Read error: Connection reset by peer]
havenwood has quit []
ghr has joined #ruby
Neomex has quit [Quit: Leaving]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 272 seconds]
<Lewix> im looking for something to encode decode
j416__ has quit [Quit: o/]
<apeiros> tr
<apeiros> encodes and decodes perfectly
cocotton has joined #ruby
<Lewix> not Base64, i want something robust that i only can decode with my machine
Cheezebox has quit [Remote host closed the connection]
gkagan has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<apeiros> that sounds like an impossible requirement
noshi has joined #ruby
<apeiros> also it sounds like you talk about encrypt/decrypt. not encode/decode.
ghr has quit [Ping timeout: 240 seconds]
Cheezebox has joined #ruby
Adran is now known as Madran
Hjulle has joined #ruby
stega has joined #ruby
<jhass> Lewix: try encoding on all other machines with the `rm` tool
<jhass> then decode on your machine with `cat`
bthesorceror has joined #ruby
kirun has quit [Quit: Client exiting]
agent_white has joined #ruby
<shevy> :\
agent_white has quit [Read error: Connection reset by peer]
gregf has joined #ruby
rjhunter has joined #ruby
qmfnp has joined #ruby
benlieb has joined #ruby
saladspork has quit [Quit: saladspork]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw_ has joined #ruby
<Hjulle> What is(are) the bot(s) written in ruby on this channel called?
senayar has quit [Remote host closed the connection]
claw has quit [Ping timeout: 260 seconds]
r_s has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> eval-in
ringarin has joined #ruby
<shevy> no idea if the source is available
<pipework> Hjulle: The known one is eval-in, but I'm fairly sure that shevy is also a bot.
<shevy> you can possibly easily adapt a cinch bot
<shevy> I am too non-standard to be a bot pipework
<Hjulle> shevy: !help
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hjulle> =D
sdwrage has joined #ruby
saladspork has joined #ruby
<shevy> man
<shevy> this ghetto bot is so unworthy
<jhass> Hjulle: if you plan a ruby irc bot check cinch
<shevy> Hjulle are you from norway?
diegoviola has quit [Quit: WeeChat 1.0]
<Hjulle> Sweden
<shevy> k... the nick sounded nordic
Cort3z has quit [Ping timeout: 246 seconds]
<Hjulle> jhass: No, I'm just examining the irc bots of the different programming language channels. :)
saladspork has quit [Client Quit]
ringarin has quit [Client Quit]
<shevy> does php have a good irc bot?
<Hjulle> Good question
<pipework> PHP has good things?
<shevy> documentation
<jhass> I know of helpa eval-in and _whitelogger_
<apeiros> would be fun… with no concurrency
<shevy> who needs more than 512 bytes anyway
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
drago777- has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
Cache_Money has joined #ruby
abuzze_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
m8 has quit [Quit: Sto andando via]
merqlove has quit [Quit: Connection closed for inactivity]
Kruppe has joined #ruby
<Hjulle> Try "/msg php-bot help" ;)
abuzze has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bthesorceror has quit [Quit: bthesorceror]
prologepilog has quit [Ping timeout: 250 seconds]
cashnguns has joined #ruby
yubrew has joined #ruby
claw_ has quit [Read error: Connection reset by peer]
claw_ has joined #ruby
prologepilog has joined #ruby
philcrissman has joined #ruby
armanghassemi_ has joined #ruby
AlSquire has quit [Quit: Quitte]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
mozzarella has quit [Quit: WeeChat 0.4.3]
seamon has joined #ruby
stega has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
AlSquire has quit [Client Quit]
sharms has quit [*.net *.split]
xiphias has quit [*.net *.split]
riotjon__ has joined #ruby
Nahra has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
shredding has quit [Ping timeout: 255 seconds]
Nahra has joined #ruby
mozzarella has joined #ruby
britneywright has joined #ruby
riotjone_ has quit [Ping timeout: 264 seconds]
sparrovv has joined #ruby
AlSquire has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
patrick99e99 has quit [Ping timeout: 246 seconds]
starless has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
adac has quit [Ping timeout: 245 seconds]
jackz has quit [Remote host closed the connection]
sharms has joined #ruby
xiphias has joined #ruby
jackz has joined #ruby
sdwrage has joined #ruby
agent_white has joined #ruby
Cheezebox has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
agjacome has quit [Quit: leaving]
Cort3z has joined #ruby
skolman has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
skolman has joined #ruby
senayar has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
skolma___ has joined #ruby
dkamioka has quit [Remote host closed the connection]
skolman has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
spider-mario has quit [Remote host closed the connection]
Cort3z has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
sharms has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
bricker`LA has joined #ruby
codecop has quit [Remote host closed the connection]
<benzrf> ick, php
<benzrf> #haskell has quite a nice Lambda bot
_lexjm has joined #ruby
_lexjm has quit [Max SendQ exceeded]
gkagan has joined #ruby
agent_white has joined #ruby
<Hjulle> Yes, I agree
agent_white has quit [Read error: Connection reset by peer]
PeterBoy has quit [Remote host closed the connection]
dkamioka has joined #ruby
anaeem1 has quit [Remote host closed the connection]
parduse has quit []
parduse has joined #ruby
bricker`LA has quit [Ping timeout: 246 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
PeterBoy has joined #ruby
jcoglan has joined #ruby
ghr has joined #ruby
gkagan has quit [Ping timeout: 260 seconds]
threesixes has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<_cake> are bots allowed here
jackz has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
cocotton has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
<apeiros> _cake: same rules apply as to humans
MatthewsFace has quit [Quit: This computer has gone to sleep]
pr0t has joined #ruby
agent_white has joined #ruby
roolo has quit [Quit: Leaving...]
agent_white has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
dkamioka has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
dkamioka has joined #ruby
moritzs has joined #ruby
axsuul has joined #ruby
Sht0 has quit [Ping timeout: 250 seconds]
dkamioka has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
momomomomo has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
sinkensabe has quit [Ping timeout: 264 seconds]
<Hjulle> apeiros: Are humans really allowed here?
charliesome has quit [Ping timeout: 260 seconds]
PeterBoy has quit [Remote host closed the connection]
DEA7TH has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
bMalum has quit [Quit: bMalum]
senayar has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lemur has joined #ruby
yubrew has joined #ruby
<shevy> hehe
<shevy> I am a cyborg
<shevy> Hjulle call Frejda and Thor Wauki, let's rampage this channel down
MatthewsFace has joined #ruby
<shevy> if you are a bot
<shevy> and you cross-post
<shevy> apeiros will ban your ass!
lemur has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<Hjulle> :)
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
jkline has quit [Quit: jkline]
sparrovv has quit [Remote host closed the connection]
chrishough has joined #ruby
sparrovv has joined #ruby
Centime has joined #ruby
PeterBoy has joined #ruby
jack_rabbit has joined #ruby
gr33n7007h has joined #ruby
kaspergrubbe_ has joined #ruby
<Centime> Hi. An application asks me to run 'gem install bundle', when I do it it works fine, but still, when trying to run the app again, it asks me for the same 'gem install bundle'
_shrine has joined #ruby
<YamakasY> guys how can I extract eth1 from this line ? img-01-eth1
agent_white has joined #ruby
<Centime> Is there anything more to do, like change a PATH or something ?
agent_white has quit [Read error: Connection reset by peer]
Cache_Money has quit [Ping timeout: 260 seconds]
<jhass> Centime: it's gem install bundler although the command is bundle
anaeem___ has joined #ruby
narcan has joined #ruby
<jhass> YamakasY: share text with a pastebin not via pictures. Also dragging pictures into your IRC client doesn't work
Cache_Money has joined #ruby
<Centime> jhass: sorry, I'm not sure what you mean. Should I run "bundle" instead of "gem install bundle" ?
armanghassemi_ has quit [Ping timeout: 260 seconds]
armanghassemi_ has joined #ruby
PeterBoy has quit [Client Quit]
<YamakasY> jhass: huh ? that small amount of code ?
sparrovv has quit [Ping timeout: 272 seconds]
<YamakasY> jhass: and I didn't paste any picture
<jhass> Centime: you should run gem install bundler instead of gem install bundle but run bundle instead of bundler
anaeem1_ has quit [Ping timeout: 250 seconds]
<shevy> YamakasY many ways. simplest is "img-01-eth1".split('-')[-1]
<jhass> oh, img- sounded like that
<YamakasY> jhass: no that is the servername :D
<jhass> heh
<Centime> jhass: Oh, ok !
<YamakasY> shevy: and set that to $foo = ?
jfutbol has quit [Remote host closed the connection]
skolma___ has quit []
<YamakasY> jhass: you fool :P
<shevy> you asked how to get "eth1"
<YamakasY> hehe
<shevy> what you then do with this snippet is up to you
<jhass> YamakasY: http://namingschemes.com/ :P
agent_white has joined #ruby
<YamakasY> shevy: yes, that's true :D
agent_white has quit [Read error: Connection reset by peer]
<shevy> some_var_yamakasy_wants_to_use_here = "img-01-eth1".split('-')[-1] # => "eth1"
fabrice31 has joined #ruby
<shevy> but in general, you rarely need to use $ variables in ruby
_shrine has quit [Ping timeout: 255 seconds]
<YamakasY> shevy: yeah I'm no using ruby very much myself... but puppet needs it sometimes :D
<jhass> and you never need to define them
<shevy> for variables that are not important, I usually use _
skolman_ has joined #ruby
<YamakasY> shevy: yes I already thought that :)
mfmfmfmfmfmf has quit [Remote host closed the connection]
<YamakasY> shevy: but that is a very long variable name :
<YamakasY> ;)
<YamakasY> |\_
<YamakasY> no
<YamakasY> |/_
<YamakasY> and finally \
<shevy> yeah
<shevy> I wanted to counter your suggestion of using $foo
momomomomo has quit [Quit: momomomomo]
Asher has joined #ruby
<YamakasY> shevy: but let's say I call it img01-eth1
<shevy> the variable?
<YamakasY> it it than still -a ?
<YamakasY> oop
<YamakasY> -1
<shevy> wat?
fabrice31 has quit [Ping timeout: 255 seconds]
<YamakasY> the value
<shevy> >> img01-eth1 = 'foo'
<eval-in> shevy => undefined local variable or method `img01' for main:Object (NameError) ... (https://eval.in/182776)
agent_white has joined #ruby
<shevy> there
<shevy> you can not use -
agent_white has quit [Read error: Connection reset by peer]
<benzrf> i believe that parses as
<benzrf> img01(-(eth1 = 'foo'))
AlSquire has quit [Quit: This computer has gone to sleep]
<YamakasY> no I mean img01-eth1".split('-')[-1] # => "eth1"
<benzrf> >> -'foo'
<eval-in> benzrf => undefined method `-@' for "foo":String (NoMethodError) ... (https://eval.in/182777)
<benzrf> hmmmmmmmm
<YamakasY> oh man I'm becoming a fool out of foo
bthesorceror has joined #ruby
<benzrf> >> nonexistent(puts "test")
<eval-in> benzrf => test ... (https://eval.in/182778)
cpruitt has joined #ruby
Takle has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
senayar has joined #ruby
cpruitt has quit [Client Quit]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Gyps has joined #ruby
<jhass> YamakasY: long descriptive variable names are a good thing ;)
<YamakasY> jhass: hehe
<YamakasY> jhass: ok, but what if my img-01-eth is a var that comes from int.name ? I cannot do "int.name" for it, that parses it
<jhass> I thought that's your value?
<jhass> as already said you can't have a var with that name
<YamakasY> jhass: yes I needed first to explain what I need
bootstrappm has joined #ruby
Cort3z has joined #ruby
<jhass> so int.name would be a method call
<jhass> I guess it returns your value "img-01-eth1"
<YamakasY> yes
ari-_-e has quit [Ping timeout: 240 seconds]
<YamakasY> it's from a loop
<jhass> so you can do interface = int.name.split('-').last
<shevy> YamakasY do you know what .split does? it will split your string into an array
skolman_ has quit [Ping timeout: 240 seconds]
<shevy> if you have a var to check against, you could use .grep(your_var) or perhaps .grep(/#{your_var}/
agent_white has joined #ruby
skolman has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
ari-_-e has joined #ruby
<YamakasY> int.name.split('-').last
<YamakasY> damn
<YamakasY> undefined local variable or method `iface' for
<YamakasY> I use iface instead of interface
<YamakasY> shevy: yes I know
freerobby has joined #ruby
mfmfmfmfmfmf has joined #ruby
Cort3z has quit [Ping timeout: 250 seconds]
Gyps has left #ruby [#ruby]
bthesorceror has quit [Quit: bthesorceror]
<YamakasY> shevy: this is what i try http://pastebin.com/7CtXdVUT
nobitanobi has joined #ruby
nobitanobi has quit [Read error: No route to host]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
mozzarella has quit [Quit: WeeChat 0.4.3]
mfmfmfmfmfmf has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
Gu_______ has joined #ruby
kenneth has quit [Quit: Bye.]
Gu_______ has quit [Client Quit]
<shevy> damn you use erb
<shevy> I thought you use puppet
<shevy> and now you also use erb
seamon has quit [Quit: Zzzzzzz]
<shevy> you are going the wrong way into ruby
<shevy> the right way into ruby is by love, style and elegance
robbyoconnor has quit [Ping timeout: 260 seconds]
<shevy> this code rivals embedded php code
robbyoconnor has joined #ruby
<shevy>
<shevy> /bin/touch /etc/network/interfaces.d/<%= iface %>.conf
<shevy> how can your eyes not scream at this man!
<YamakasY> shevy: why not ?
<shevy> if I understand this code correctly
<shevy> it will simply put stuff into a text file right?
<YamakasY> shevy: no this is not puppet based yet
<YamakasY> it's from an enc
mozzarella has joined #ruby
<shevy> yeah I wondered, even puppet can not be as ugly
<shevy> here is what you should do
<shevy> write a class that does all those actions, including saving the file
<shevy> in your erb stuff, simply call that class then Bla.new
nobitanobi has quit [Ping timeout: 240 seconds]
<YamakasY> I need to get iface right :)
<YamakasY> it's provisioning
<YamakasY> no can't
<YamakasY> but that's not the case
<YamakasY> puppet is NOT in yet here
Shidash has quit [Quit: Leaving.]
agent_white has joined #ruby
gkagan has joined #ruby
marcel has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
<shevy> iface = int.name.split('-').last
<shevy>
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<shevy> you call the method .name
<shevy> how do you know that int responds to .name?
Soliah has quit [Quit: Soliah]
<YamakasY> int.name gives me img-01-eth1
<YamakasY> but that doesn't work for my network :)
nszceta has quit []
marcel has joined #ruby
Madran is now known as Adran
gkagan has quit [Ping timeout: 255 seconds]
phutchin1 has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<shevy> ok so int is not a string right?
<shevy> it is a special object
<YamakasY> yes
<YamakasY> it's an array
<YamakasY> or objetc... I'm not good at that :)
KatZilla has joined #ruby
phutchin1 has joined #ruby
seamon has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
abuzze has joined #ruby
<YamakasY> shevy: I get an array of nics and that is what I do with it :) that loop
skolman has quit [Remote host closed the connection]
Takle has joined #ruby
zorak has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
moritzs has quit [Ping timeout: 250 seconds]
abuzze has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
moritzs has joined #ruby
agent_white has joined #ruby
startupality has quit [Quit: startupality]
agent_white has quit [Read error: Connection reset by peer]
startupality has joined #ruby
yubrew has joined #ruby
edwardly_ has joined #ruby