apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
astrobunny has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
redlegion has joined #ruby
thumpba has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros> a5i: well, not describing what you struggle with and not replying to follow up questions. I'm out of this.
Joufflu has joined #ruby
predator217 has quit [Ping timeout: 256 seconds]
<a5i> I was editing something that might affect my end goal
<a5i> sorry :(
baweaver has quit [Remote host closed the connection]
pengin_ has joined #ruby
Dude007 has quit [Remote host closed the connection]
Channel6 has joined #ruby
cloaked1 has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hellome has quit [Read error: Connection reset by peer]
luksaur has quit [Quit: gone]
hellome has joined #ruby
hellome has quit [Read error: No route to host]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
robustus has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
pietr0 has quit [Ping timeout: 244 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Guest29354 has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
wldcordeiro has quit [Ping timeout: 250 seconds]
DigitallyBrn has quit [Ping timeout: 250 seconds]
shoutsid has quit [Remote host closed the connection]
baweaver has joined #ruby
mandu has joined #ruby
<ght> Question: If I have a conditional like: return "Error" if (var1.nil? || var1.empty?)
<ght> if the var1 is nil, will it also attempt the "var1.empty?" method and throw a "no method empty? for nil" exception?
fella5s has quit [Read error: Connection reset by peer]
<ght> or will Ruby find the first condition true and stop execution at that point?
zachrab has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bim has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bim is now known as Guest44041
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
<ght> I suppose the question is, if ruby executes a comparison statement with logical ORs, if the first parameter is true, does it continue to evaluate the further statements?
<dorei> ght: if the left side of || is true then the right side is not evaluated
<ght> dorei: Thank you.
pengin_ has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 276 seconds]
jonatin has joined #ruby
FernandoBasso has quit [Quit: leaving]
Rickmasta has joined #ruby
Lewix has quit [Remote host closed the connection]
Spami has joined #ruby
lidenskap has quit [Remote host closed the connection]
Synthead has quit [Quit: Leaving]
vivekananda has quit [Quit: Leaving]
ascarter has joined #ruby
vivekananda has joined #ruby
mleung has quit [Quit: mleung]
quimrstorres has joined #ruby
laurentide has joined #ruby
mistermocha has quit [Remote host closed the connection]
djmittens has joined #ruby
nfk has joined #ruby
mr_rich101 has quit [Ping timeout: 255 seconds]
felipecvo has joined #ruby
quimrstorres has quit [Ping timeout: 272 seconds]
djmittens has quit [Ping timeout: 256 seconds]
phutchins has quit [Ping timeout: 245 seconds]
dopie has joined #ruby
ag4ve_ has joined #ruby
havenwood has joined #ruby
yaw has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has quit [Quit: Leaving]
DEA7TH has joined #ruby
mr_rich101 has joined #ruby
sevvie has joined #ruby
fgo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Guest44041 has quit [Remote host closed the connection]
yaw has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
nobitanobi has joined #ruby
zz_barkerd427 is now known as barkerd427
nobitanobi has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
tomphp_ has joined #ruby
_blizzy_ has joined #ruby
redlegion has quit [Quit: leaving]
chrishough has joined #ruby
chrishough has quit [Client Quit]
bricker has quit [Ping timeout: 264 seconds]
dopie has quit [Quit: This computer has gone to sleep]
bim has joined #ruby
Lewix has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
bim is now known as Guest44350
dvlwrk has quit [Quit: Leaving]
gregf has quit [Quit: WeeChat 1.0.1]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
felipecvo has quit [Quit: Leaving...]
ascarter has joined #ruby
gregf has joined #ruby
nfk|laptop has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
Spami has joined #ruby
yfeldblum has quit [Remote host closed the connection]
RegulationD has joined #ruby
baweaver has joined #ruby
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Oka has quit [Quit: さようなら]
jottr has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
nfk|laptop has quit [Quit: yawn]
jottr_ has quit [Ping timeout: 245 seconds]
ascarter has quit [Client Quit]
jottr has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
banister has joined #ruby
thatslifeson has joined #ruby
geggam has quit [Ping timeout: 256 seconds]
jeramy_s has joined #ruby
lidenskap has joined #ruby
pdoherty has joined #ruby
Guest44350 has quit [Remote host closed the connection]
dfinninger has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
dvlwrk has joined #ruby
workmad3 has joined #ruby
jeramy_s has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
DerisiveLogic_ has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
arescorpio has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 276 seconds]
lfox has joined #ruby
wallerdev has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
lfox has quit [Client Quit]
juanpablo___ has joined #ruby
quimrstorres has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
growlove has quit [Ping timeout: 248 seconds]
rshetty has joined #ruby
michael_mbp has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 250 seconds]
juanpablo___ has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Ping timeout: 246 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
Soda has joined #ruby
nfk has quit [Quit: yawn]
zubov has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
icarus has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
nahtnam has joined #ruby
blazes816 is now known as tcrypt
metalic has joined #ruby
hiyosi has joined #ruby
pdoherty has quit [Quit: Leaving]
jeramy_s has joined #ruby
metalic has quit [Client Quit]
bkxd has joined #ruby
mandu has quit []
bim has joined #ruby
bim has quit [Remote host closed the connection]
Guest68034 has joined #ruby
AlphaAtom has quit [Ping timeout: 250 seconds]
Guest68034 has quit [Remote host closed the connection]
duderonomy has joined #ruby
fgo has joined #ruby
serivichi has joined #ruby
lidenskap has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
Dreamer3_ has joined #ruby
rixius has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
Dreamer3 has quit [Ping timeout: 255 seconds]
TheMysticWyvern has joined #ruby
<TheMysticWyvern> Hello!
scripore has joined #ruby
<havenwood> TheMysticWyvern: halloooo
<TheMysticWyvern> havenwood: How are you?
<havenwood> TheMysticWyvern: Been fuzzy all day, but it's Friday! \o/
Soda has quit [Remote host closed the connection]
<TheMysticWyvern> xD
<TheMysticWyvern> I'm learning Ruby, but my code isn't working, so I thought this would be the best place to ask.
<havenwood> TheMysticWyvern: What do you have so far? Have a gist of the code?
<TheMysticWyvern> Yeah, should I pastebin it?
<ruboto> TheMysticWyvern, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/8d6c251fc993973c3e3b
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<TheMysticWyvern> Ohh.
<TheMysticWyvern> My bad.
<TheMysticWyvern> I've never seen ads on pastebin. Guess I didn't realize. xD
<havenwood> TheMysticWyvern: No being younger than 12 but older than 20!
<TheMysticWyvern> o.O
<TheMysticWyvern> Should the > and < be reversed?
<havenwood> TheMysticWyvern: Yup. ;) Older than 12 and younger than 20.
<TheMysticWyvern> xD
zubov has quit [Ping timeout: 250 seconds]
<TheMysticWyvern> Switched them. Gives me a comparison of string with 13 failed error.
<havenwood> TheMysticWyvern: Same with `age > 13`, that'd be "age greater than 13."
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TheMysticWyvern> Same error.
<TheMysticWyvern> This is what boggles me.
`sicks has joined #ruby
`sicks has quit [Client Quit]
<havenwood> TheMysticWyvern: What's the error?
vim_shimm has quit [Ping timeout: 264 seconds]
rkazak_ has left #ruby [#ruby]
<havenwood> TheMysticWyvern: Ah, you're comparing a String to a Fixnum.
<TheMysticWyvern> And that's bad?
<havenwood> >> "21" > 21
<ruboto> havenwood # => comparison of String with 21 failed (ArgumentError) ...check link for more (https://eval.in/318472)
<havenwood> >> 21 > 21
<ruboto> havenwood # => false (https://eval.in/318473)
plutonic has joined #ruby
<TheMysticWyvern> o.O
<havenwood> TheMysticWyvern: Ask if a Fixnum is greater than another Numeric, or ask a String if it's greater than another String. But a String doesn't know if it's greater than a Fixnum or vice versa.
<havenwood> >> "21".to_i
<ruboto> havenwood # => 21 (https://eval.in/318475)
<TheMysticWyvern> ruboto? xD
<havenwood> TheMysticWyvern: We are robots written in Ruby. Beep bop boop.
<TheMysticWyvern> Really? Written in Ruby?
* havenwood short circuits.
<TheMysticWyvern> XD
bkxd has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 256 seconds]
icebourg has joined #ruby
<TheMysticWyvern> Now, then. Let's see.
<TheMysticWyvern> I'm not using any strings, though.
<havenwood> >> gets.chomp.class
<ruboto> havenwood # => undefined method `chomp' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/318480)
<havenwood> #=> String
yfeldblum has joined #ruby
quarters1 has joined #ruby
juanpablo___ has joined #ruby
techietrash has joined #ruby
<quarters1> hi
mattp is now known as mattp|spurs
<havenwood> quarters1: hi
mitchellhenke has joined #ruby
<quarters1> I'm having issues with the code here giving me an error expecting keyword end: https://gist.github.com/anonymous/b49be7bee1d7d6f6ca30
<TheMysticWyvern> havenwood: How would you write this code? I've only been at this about half an hour. >.>
<quarters1> but I'm sure I've included both of the two ends needed for this code
<havenwood> quarters1: no `i++` in Ruby, try `i += 1`
<quarters1> oooooh
<quarters1> gotcha
<quarters1> thank you
<havenwood> quarters1: de nada
<havenwood> TheMysticWyvern: Convert your `gets.chomp` with #to_i or compare it to Strings for ages.
<Brozo> why doesn't ruby have i++?
yfeldblum has quit [Ping timeout: 245 seconds]
juanpablo___ has quit [Ping timeout: 256 seconds]
<Nilium> Technical reason: you can't invoke stuff like Fixnum#++ and modify the receiver.
<quarters1> if arr = [[3,i],[33,j]], puts arr prints each element on its own line. Is there a way to print it as an array?
<Nilium> Use #inspect?
<havenwood> quarters1: `p arr` or `puts arr.inspect`
x1337807x has joined #ruby
balazs_ has joined #ruby
<quarters1> thank you!
ebernhardson has left #ruby [#ruby]
Brozo has quit [Quit: Leaving...]
Brozo has joined #ruby
thatslif_ has joined #ruby
balazs_ has quit [Remote host closed the connection]
<ght> Question: Is there a way to end a .each loop prematurely on a conditional? For example, if var1 == "Error" then <statement to end .each loop>
<ght> Is that possible?
thatslifeson has quit [Ping timeout: 250 seconds]
<havenwood> ght: `next` to skip one loop or `break` to stop alltogether
<Nilium> These can also be used to yield stuff to the thing invoking the block.
<Nilium> i.e., next foo; break bar
duncannz has joined #ruby
scripore has quit [Read error: Connection reset by peer]
jeramy_s has joined #ruby
jeramy_s has quit [Client Quit]
startupality has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
RegulationD has joined #ruby
njection has joined #ruby
fedexo has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
konsolebox has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
braincra- has quit [Quit: bye bye]
dopie has quit [Quit: This computer has gone to sleep]
Yzguy has joined #ruby
startupality has quit [Quit: startupality]
b4tm4n has quit [Quit: Leaving]
tus has quit []
Aswebb_ has joined #ruby
braincrash has joined #ruby
connor_goodwolf has quit [Ping timeout: 256 seconds]
connor_goodwolf has joined #ruby
eshiffob has joined #ruby
sevenseacat has joined #ruby
multi_io has quit [Ping timeout: 255 seconds]
<havenwood> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣ [] 0/12
<havenwood> DeBot: -
<DeBot> ␣␣␣␣␣␣␣␣␣ [-] 1/12
cefkamcau has quit [Ping timeout: 240 seconds]
<havenwood> DeBot: n
<DeBot> ␣␣n␣␣␣␣n␣ [-] 1/12
balazs_ has joined #ruby
multi_io has joined #ruby
<havenwood> DeBot: t
<DeBot> ␣␣n␣␣␣␣n␣ [-t] 2/12
icarus has joined #ruby
connor_goodwolf has quit [Remote host closed the connection]
workmad3 has joined #ruby
connor_goodwolf has joined #ruby
<Brozo> DeBot: a
<DeBot> ␣an␣␣␣␣n␣ [-t] 2/12
dorei has quit []
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
OtterCoder has quit [Remote host closed the connection]
dopie has joined #ruby
tubuliferous_ has joined #ruby
simon has joined #ruby
<sevenseacat> DeBot: rs
<DeBot> ␣an␣␣␣␣n␣ [-trs] 4/12
<sevenseacat> DeBot: e
<DeBot> ␣an␣␣␣␣n␣ [-trse] 5/12
<sevenseacat> DeBot: l
<DeBot> ␣an␣␣l␣n␣ [-trse] 5/12
<sevenseacat> DeBot: p
<DeBot> ␣an␣␣l␣n␣ [-trsep] 6/12
<sevenseacat> DeBot: o
<DeBot> ␣an␣␣l␣n␣ [-trsepo] 7/12
<sevenseacat> DeBot: i
<DeBot> ␣an␣␣lin␣ [-trsepo] 7/12
<Brozo> DeBot: d
<DeBot> ␣an␣␣lin␣ [-trsepod] 8/12
<havenwood> DeBot: _
<DeBot> ␣an␣_lin␣ [-trsepod] 8/12
<Brozo> DeBot: g
<DeBot> ␣an␣_lin␣ [-trsepodg] 9/12
workmad3 has quit [Ping timeout: 248 seconds]
<Brozo> DeBot: k
<DeBot> ␣ank_link [-trsepodg] 9/12
<Brozo> bank_link?
<sevenseacat> DeBot: b
<DeBot> bank_link [-trsepodg] 9/12 You won!
<havenwood> "Helper gem to simplify bank link usage in Rails projects"
<sevenseacat> yep :P
<gr33n7007h> DeBot: !roulette
<gr33n7007h> !roulette
<havenwood> #=> bang!
<mozzarella> pew
<gr33n7007h> hehe
tubuliferous_ has quit [Ping timeout: 250 seconds]
balazs_ has quit [Remote host closed the connection]
sankaber has joined #ruby
bigsky is now known as Guest81311
tearan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
mitchellhenke has joined #ruby
Spami has joined #ruby
connor_goodwolf has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Timba-as has joined #ruby
<shevy> you guys
<shevy> play roulette
<shevy> rather than code the next mighty rails-like epic thing!
shay_shay has left #ruby ["WeeChat 1.2-dev"]
<Nilium> That's what most of the Ruby-to-Go converts have been trying to do, in some misguided effort to make Go into something other than what it is
yfeldblum has joined #ruby
connor_goodwolf has joined #ruby
<xxneolithicxx> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣ [] 0/12
<xxneolithicxx> DeBot: i
<DeBot> ␣␣␣␣␣␣␣ [i] 1/12
<xxneolithicxx> DeBot: e
<DeBot> ␣␣␣␣␣e␣ [i] 1/12
<xxneolithicxx> DeBot: t
<DeBot> ␣␣tt␣e␣ [i] 1/12
<sevenseacat> DeBot: ars
<DeBot> ␣att␣e␣ [irs] 3/12
<sevenseacat> DeBot: p
<DeBot> ␣att␣e␣ [irsp] 4/12
<Nilium> DeBot: m
<DeBot> matt␣em [irsp] 4/12
<xxneolithicxx> DeBot: r
<DeBot> matt␣em [irsp] 4/12
icebourg has quit []
<xxneolithicxx> DeBot: h
<DeBot> matt␣em [irsph] 5/12
<ght> Thanks for the help. So, to be clear, say I have a simple .each loop. users.each do |user|
<Nilium> DeBot: g
<DeBot> mattgem [irsph] 5/12 You won!
<Nilium> Seriously
<ght> Would the syntax be next user if (var1 == "Error")?
<ght> minus the ?, of course
<Nilium> `next if var == "Error"
rootsudo has quit [Remote host closed the connection]
<Nilium> Minus the `
<ght> ahh, so just next
<ght> gotcha
<ght> ty
<xxneolithicxx> who runs the bots in here
<Nilium> Er, "next user if ..."
<Nilium> I missed the 'user'.
<Nilium> If you're not yielding anything to the thing invoking the block, then you just use 'next'
<Nilium> If it were map, next user would yield user, in each it's pointless.
connor_goodwolf has quit [Ping timeout: 256 seconds]
dopiee has joined #ruby
<sevenseacat> ruboto is owned by apeiros
<sevenseacat> dunno who owns DeBot
<Nilium> apeiros also technically owns the souls of 87% of this channel's users.
<havenwood> sevenseacat: jhass
<sevenseacat> ah hah
dopie has quit [Read error: Connection reset by peer]
<sevenseacat> ty
connor_goodwolf has joined #ruby
serivichi has quit [Ping timeout: 256 seconds]
sohrab has quit [Ping timeout: 265 seconds]
lidenskap has joined #ruby
serivichi has joined #ruby
sohrab has joined #ruby
Aswebb_ has quit []
musashi1 has joined #ruby
fgo has joined #ruby
tonyhb has joined #ruby
vim_shimm has joined #ruby
blake is now known as TheMoonMaster
connor_goodwolf has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
lavros has joined #ruby
connor_goodwolf has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vim_shimm has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: I'm sleeping, go away.]
connor_goodwolf has quit [Ping timeout: 245 seconds]
connor_goodwolf has joined #ruby
ascarter has joined #ruby
<shevy> apeiros is from the switzerland, of course they own everything, natural banksters as they are!
<shevy> TIOBE states that java is now the best programming language in the world:
<mozzarella> that's it guys, I've replaced every instance of "true" with a dumbbell, in all of my scripts
<shevy> mozzarella lol, a sound?
user121212 has joined #ruby
<mozzarella> >> ()===()
<ruboto> mozzarella # => true (https://eval.in/318483)
<shevy> aaah
<mozzarella> not a sound
<shevy> I see what you mean
<shevy> so that's a comparison right?
<mozzarella> yes
<shevy> but what is a standalone ()
<mozzarella> >> !()
<shevy> >> ()
<ruboto> mozzarella # => true (https://eval.in/318484)
<ruboto> shevy # => nil (https://eval.in/318485)
<shevy> huh
<mozzarella> nil
<shevy> awesome
<shevy> >> x = nil; puts 'yo!' if x == ()
<ruboto> shevy # => yo! ...check link for more (https://eval.in/318486)
<shevy> so crazy :)
<mozzarella> you can use !() instead of true, it's shorter
<mozzarella> or !!1
<mozzarella> >> !!1
<ruboto> mozzarella # => true (https://eval.in/318487)
<gr33n7007h> >> !p
<ruboto> gr33n7007h # => true (https://eval.in/318488)
<user121212> I'm learning about closures and I would like see the use cases which I solve using it, Can anybody point me some code sample of the usage of closures?
kblake has quit [Ping timeout: 276 seconds]
<user121212> *which I can
<mozzarella> > ??===??
<mozzarella> >> ??===??
<ruboto> mozzarella # => true (https://eval.in/318489)
quarters1 has quit [Ping timeout: 248 seconds]
<shevy> mozzarella yeah, but also more confusing when it is used :)
* Nilium is digging his new iMac.
yfeldblum has quit [Remote host closed the connection]
<mozzarella> >> def adder(x); ->(y) { x + y }; end; a = adder(10); a.(20)
<ruboto> mozzarella # => 30 (https://eval.in/318490)
<mozzarella> user121212: see the usefulness?
<shevy> lol
<shevy> user121212 I am wondering the same thing
Lewix has joined #ruby
<user121212> @shevy How often you use closures in your code? I'm just beginner in programming
<shevy> user121212 I don't think I have been using them
<shevy> I don't know of where I require to have them
Lewix_ has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
<shevy> In the old days, I used to have buttons in GUIs written in ruby-gnome, where I used Proc.new
<shevy> and then .call to callback
<shevy> but I don't seem to need them; I can use methods instead anyway
<shevy> rack has examples of lambda
ramfjord has joined #ruby
<shevy> app = lambda { |env| [200, {"Content-type" => "test/plain", "Content-length" => "3"}, ["foo"]] }
<shevy> apparently it is useful somewhere, somehow
<mozzarella> I use them quite often
<user121212> @shevy okay, recently I talked JavaScripter and he talk about lot about closures, I thought I was the only guy who didn't used closures in the code.
Spami has quit [Quit: This computer has gone to sleep]
tcrypt has quit [Remote host closed the connection]
<mozzarella> sometimes I have to make multiple function calls and they're very similar, except for a few arguments, I'll just create a closure and use that
<mozzarella> sometimes I return them from functions
<shevy> an abstract explanation
<shevy> note that he did not provide us with code here user121212 :)
<shevy> user121212 I guess rack is built around the wholeness of an API that can be .call()-ed
ramfjord has quit [Ping timeout: 248 seconds]
<mozzarella> just use them when you need them user121212
<user121212> thank you shevy and mozzarella, I will digg more into it. thank you!
_blizzy_ has joined #ruby
<shevy> \o/
<xxneolithicxx> https://github.com/audiolize/vagrant-softlayer/blob/develop/contrib/vagrant-softlayer-credentials#L1080-L1102 use of lambdas to create dynamic hash values if you want a real work example
Morkel has joined #ruby
icebourg has joined #ruby
fgo has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
psy_ has quit [Read error: Connection reset by peer]
juanpablo___ has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
juanpablo___ has quit [Ping timeout: 250 seconds]
konsolebox has quit [Quit: Leaving]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
dopie has joined #ruby
psy_ has joined #ruby
dopiee has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
user121212 has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 240 seconds]
A205B064 has quit [Ping timeout: 264 seconds]
arescorpio has quit [Excess Flood]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
RegulationD has joined #ruby
The_Phoenix has joined #ruby
rixius has quit [Remote host closed the connection]
thatslifeson has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
RegulationD has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
thatslif_ has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
charliesome has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin'
<Nilium> I wonder if after rsync-ing my entire rbenv directory to my new mac, if it'll just work
<Nilium> I fully expect it to spontaneously combust due to lack of shared libraries
Brozo has quit [Quit: Leaving...]
sevvie has quit [Ping timeout: 256 seconds]
tonyhb has quit [Quit: peace]
tearan has joined #ruby
tearan has quit [Remote host closed the connection]
tonyhb has joined #ruby
sohrab has quit [Quit: leaving]
<Nilium> Actually, screw it, now's a good chance to switch to chruby.
workmad3 has joined #ruby
<Nilium> Also, holy crap, Apple's command line tools have the latest version of Git
<Nilium> This might be a first
<shevy> the world will soon collapse
<shevy> that, or they had to acknowledge the superiority of git finally :D
<Nilium> Well, no, they acknowledged that ages ago.
<shevy> \o/
<Nilium> It's just that they're usually behind on dev tool versions.
User458764 has joined #ruby
<Nilium> I don't know how I feel about this magic mouse thing.
User458764 has quit [Client Quit]
slackbotgz has joined #ruby
<shevy> mice are cute
tubuliferous_ has joined #ruby
Guest81311 has quit [Read error: Connection reset by peer]
qua has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<qua> hello
<qua> I was wondering why the following script is having runtime errors: https://gist.github.com/anonymous/7d1d6bb547050f0ee707
<qua> specifically I'd like for the script to capitalize every first letter of each word in an entered string
<shevy> ok qua
ndrei has quit [Ping timeout: 264 seconds]
<shevy> would it help if other people could see the error?
<qua> is the link not accessible?
<shevy> the link is accessible
<shevy> how do people know what error you have?
<shevy> I can not even get your code to run at all
tubuliferous_ has quit [Ping timeout: 255 seconds]
<shevy> bottom line: add the error message in your pastie
<qua> it's a runtime error so I see: ThIs is A Sentence
<shevy> nah
loadhigh has joined #ruby
<shevy> I'll do it for you ;)
ndrei has joined #ruby
<shevy> foo.rb:12:in `<main>': undefined method `words' for main:Object (NoMethodError)
<qua> I'd like to see why this particular code doesn't worrk
<shevy> this is the exact error that you should have included
<qua> oh oop
<qua> s
<shevy> now we instantly know where the error happens
<qua> one second please
<shevy> there is only words
<shevy> ->
<shevy> puts capitalize words "this is a sentence"
<shevy> so you forgot a _
Oog has quit []
<hanmac> hm i could make it that "capitalize words" work the same way than "capitalize lines" or other stuff, but that would be funky
serivichi has quit [Ping timeout: 244 seconds]
<hanmac> qua checkout gsub ... that might be more helpful than your split
The_Phoenix1 has joined #ruby
swgillespie has joined #ruby
<hanmac> >> "this is a sentence".gsub(/\w+/,&:capitalize)
<ruboto> hanmac # => "This Is A Sentence" (https://eval.in/318494)
<qua> I was wondering what happens frame by frame per element
<qua> in the code I wrote
The_Phoenix has quit [Ping timeout: 264 seconds]
<qua> I already know of another way to code the solution
<qua> it's just that I feel compelled to know why this particular code doesn't worrk
<hanmac> qua your for loop is wrong ... string[el] = string[el] and other stuff might not work as you want
<hanmac> do you know what String#[] does when you give him a string as parameter? its getting funky ;P
<havenwood> qua: The "is" in "This" is getting capitalized, since you're matching just /is/ not /\sis/
<havenwood> qua: i said that poorly, but you're hitting "is" from "this"
connor_goodwolf has quit [Ping timeout: 255 seconds]
<havenwood> >> "this is a sentence".split
<ruboto> havenwood # => ["this", "is", "a", "sentence"] (https://eval.in/318495)
<havenwood> qua: ^
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<hanmac> havenwood: like there is no "I" in "team" ? ;P
tubuliferous has quit [Ping timeout: 256 seconds]
<havenwood> qua: we do `string.split.each` instead of `for ...` for various reasons
<hanmac> lets ask ruby:
<hanmac> >> "team"["i"]
<ruboto> hanmac # => nil (https://eval.in/318496)
<havenwood> hanmac: :)
<havenwood> ack, i'm late - gotta run
havenwood has quit []
loadhigh has quit [Quit: Disconnecting]
loadhigh has joined #ruby
Lewix_ has quit [Remote host closed the connection]
tonyhb has quit [Quit: peace]
bim has joined #ruby
bim is now known as Guest78573
connor_goodwolf has joined #ruby
elaptics_away is now known as elaptics
riotjones has joined #ruby
chinmay_dd_ has joined #ruby
tvw has joined #ruby
Guest78573 has quit [Ping timeout: 245 seconds]
loadhigh has quit [Quit: Disconnecting]
loadhigh has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
<shevy> hanmac what are you doing lately
<shevy> any new code? aside from gemtree
riotjones has quit [Ping timeout: 265 seconds]
<pipework> hanmac: Any gnu code?
<hanmac> shevy learning for driver licence ... after i publish some new decks i did with forge, i might work on rwx again ... there is a new widget i want to add
Limix has quit [Quit: Limix]
icebourg has quit []
Alina-malina has joined #ruby
mikekellyio has quit [Quit: Connection closed for inactivity]
thatslifeson has quit [Remote host closed the connection]
armyriad has joined #ruby
Spami has joined #ruby
lidenskap has quit [Remote host closed the connection]
Limix has joined #ruby
Limix has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
_blizzy_ has joined #ruby
Fingel has joined #ruby
scruple has quit [Ping timeout: 256 seconds]
<shevy> cool
<shevy> drive safely
<shevy> if you car crash, nobody will be able to understand the ruby code to wxwidgets
agent_white has quit [Quit: nght]
dfinninger has quit [Remote host closed the connection]
AlexRussia has joined #ruby
chinmay_dd_ has quit [Quit: Leaving]
serivich has joined #ruby
simonewestphal has joined #ruby
<simonewestphal> question to blocks : is it right that 1) block refers to variables in the context it was defined
<simonewestphal> # 1) block refers to variables in the context it was defined
<simonewestphal> # 2) block introduce their own scope for the block parameters
<simonewestphal> # 2) no return from block, only from method ?
<shevy> you can not use a return yeah
yfeldblum has quit [Read error: Connection reset by peer]
<shevy> >> array = %w( abc def ghi ); array.each {|entry| return 42 }
<ruboto> shevy # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/318508)
<shevy> btw simonewestphal why did you use "# 2)" twice ;)
<simonewestphal> But how can I pass the value from the block to the method and return this ?
yfeldblum has joined #ruby
<shevy> many ways. you could always store results in a variable defined outside the scope of the block
dvlwrk has quit [Ping timeout: 245 seconds]
<shevy> or use a method, and return something from it
<simonewestphal> @shevy was late last night….. ;-)
<shevy> you might even use a proc object and use .call on it
<shevy> might be easier if you have a specific use case, like input and -> desired output
fedexo has quit [Ping timeout: 245 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slackbotgz has quit [Remote host closed the connection]
Fingel has quit [Ping timeout: 245 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
Ellis has joined #ruby
<hanmac> simonewestphal: if you want to "return" from a block, use "break" ... (except its a lambda)
<simonewestphal> But if I want to make it with a block how does it work ?
<Ellis> i want to write a program that takes an audiofile and returns how many seconds in the file don’t have any sound, is this doable with ruby and is it relatively easy?
<simonewestphal> def output(&block)
<simonewestphal> c = yield
<simonewestphal> return c
<simonewestphal> end
<simonewestphal> var = 2
<simonewestphal> c = output {var*=var;puts "now #{var}"}
<simonewestphal> puts "#{c}"
<simonewestphal> This don’t work
klaas_ has joined #ruby
<shevy> simonewestphal you use yield to tap into a block
robert_|disconne has joined #ruby
A205B064 has joined #ruby
<shevy> I think you possibly get confused by yield versus &
musashi1 has quit [Ping timeout: 265 seconds]
ebbflowgo_ has joined #ruby
<shevy> yield is much easier to understand
<simonewestphal> Before I tried this
<shevy> nono
<simonewestphal> def output(&block) # !> method redefined; discarding old output
<simonewestphal> @b = block# turns a block into a closure of sorts
<shevy> try to understand yield first
<simonewestphal> c = @b.call
<simonewestphal> var2 = 5 # !> assigned but unused variable - var2
<simonewestphal> return c # var is unknown !
charles81_ has joined #ruby
jmcc_ has joined #ruby
<simonewestphal> end
ryotarai_ has joined #ruby
<shevy> and how did you invoke that method?
<shevy> the comments you use are funny btw ;)
juanpablo___ has joined #ruby
crazymykl has joined #ruby
angelixd_ has joined #ruby
rfi_ has joined #ruby
cscheib_ has joined #ruby
pleiosau1 has joined #ruby
sumark_ has joined #ruby
chrisarc1nd has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ukd1_ has joined #ruby
Rennex_ has joined #ruby
seanmarcia_ has joined #ruby
tchebb_ has joined #ruby
skit_ has joined #ruby
jerryberry_ has joined #ruby
Sebastia1Thorn has joined #ruby
brandon has joined #ruby
rom1504_ has joined #ruby
psy__ has joined #ruby
jzigmund_ has joined #ruby
ducklobster has quit [Ping timeout: 252 seconds]
jmcc has quit [Ping timeout: 252 seconds]
Phage has quit [Ping timeout: 252 seconds]
charles81 has quit [Ping timeout: 252 seconds]
akahn has quit [Ping timeout: 252 seconds]
ryotarai has quit [Ping timeout: 252 seconds]
comma8 has quit [Ping timeout: 252 seconds]
davidcelis_ has quit [Ping timeout: 252 seconds]
machty has quit [Ping timeout: 252 seconds]
vikram_ has quit [Ping timeout: 252 seconds]
ballPointPenguin has quit [Ping timeout: 252 seconds]
scottymeuk has quit [Ping timeout: 252 seconds]
whoojemaflip has quit [Ping timeout: 252 seconds]
Miron has quit [Ping timeout: 252 seconds]
petems has quit [Ping timeout: 252 seconds]
_chs_ has quit [Ping timeout: 252 seconds]
deimos has quit [Ping timeout: 252 seconds]
Mekkis has quit [Ping timeout: 252 seconds]
MiracleBlue has quit [Ping timeout: 252 seconds]
zipkid has quit [Ping timeout: 252 seconds]
vcoinminer has quit [Ping timeout: 252 seconds]
ebbflowgo has quit [Ping timeout: 252 seconds]
Filete has quit [Ping timeout: 252 seconds]
rfi has quit [Ping timeout: 252 seconds]
bcavileer has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Ping timeout: 252 seconds]
angelixd has quit [Ping timeout: 252 seconds]
danoo_ has quit [Ping timeout: 252 seconds]
c-c has quit [Ping timeout: 252 seconds]
cbetta has quit [Ping timeout: 252 seconds]
mroth has quit [Ping timeout: 252 seconds]
jxf has quit [Ping timeout: 252 seconds]
psy_ has quit [Ping timeout: 252 seconds]
colorisco has quit [Ping timeout: 252 seconds]
aspiers has quit [Ping timeout: 252 seconds]
sumark has quit [Ping timeout: 252 seconds]
CaptainCibai has quit [Ping timeout: 252 seconds]
__main__ has quit [Ping timeout: 252 seconds]
dukedave has quit [Ping timeout: 252 seconds]
robert_ has quit [Ping timeout: 252 seconds]
[diecast] has quit [Ping timeout: 252 seconds]
kalz has quit [Ping timeout: 252 seconds]
cscheib has quit [Ping timeout: 252 seconds]
towler has quit [Ping timeout: 252 seconds]
alol__ has quit [Ping timeout: 252 seconds]
icedp has quit [Ping timeout: 252 seconds]
C0deMaver1ck has quit [Ping timeout: 252 seconds]
yo61 has quit [Ping timeout: 252 seconds]
rmoriz has quit [Ping timeout: 252 seconds]
shtirlic has quit [Ping timeout: 252 seconds]
pleiosaur has quit [Ping timeout: 252 seconds]
Rennex has quit [Ping timeout: 252 seconds]
FrankenDaemon has quit [Ping timeout: 252 seconds]
poikon has quit [Ping timeout: 252 seconds]
ukd1 has quit [Ping timeout: 252 seconds]
tvw has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
rikai has quit [Ping timeout: 252 seconds]
mikemac has quit [Ping timeout: 252 seconds]
jerryberry has quit [Ping timeout: 252 seconds]
jzigmund has quit [Ping timeout: 252 seconds]
Morrolan has quit [Ping timeout: 252 seconds]
amortimer has quit [Ping timeout: 252 seconds]
seanmarcia has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 252 seconds]
Phage has joined #ruby
c-c has joined #ruby
fumduq has joined #ruby
klaas has quit [Ping timeout: 252 seconds]
z3uS has quit [Ping timeout: 252 seconds]
tchebb has quit [Ping timeout: 252 seconds]
G has quit [Ping timeout: 252 seconds]
fumduq has quit [Ping timeout: 252 seconds]
pusewicz has quit [Ping timeout: 252 seconds]
HashNuke has quit [Ping timeout: 252 seconds]
adambeynon has quit [Ping timeout: 252 seconds]
chrisarcand has quit [Ping timeout: 252 seconds]
ruisanto1 has quit [Ping timeout: 252 seconds]
Guest67440 has quit [Ping timeout: 252 seconds]
SebastianThorn has quit [Ping timeout: 252 seconds]
mjc_ has quit [Ping timeout: 252 seconds]
Prira has quit [Ping timeout: 252 seconds]
bestie has quit [Ping timeout: 252 seconds]
zrl has quit [Ping timeout: 252 seconds]
rom1504 has quit [Ping timeout: 252 seconds]
chrisseaton has quit [Ping timeout: 252 seconds]
n1ftyn8 has quit [Ping timeout: 252 seconds]
skit has quit [Ping timeout: 252 seconds]
adaedra has quit [Ping timeout: 252 seconds]
Diabolik has quit [Ping timeout: 252 seconds]
danshultz has quit [Ping timeout: 252 seconds]
FrankenDaemon has joined #ruby
shtirlic has joined #ruby
G has joined #ruby
Phage has joined #ruby
G has joined #ruby
ryotarai_ is now known as ryotarai
ebbflowgo_ is now known as ebbflowgo
Phage has quit [Changing host]
G has quit [Changing host]
davidcelis has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
tchebb_ is now known as tchebb
alol___ has joined #ruby
brandon is now known as Guest6417
adaedra has joined #ruby
poikon has joined #ruby
Mekkis_ has joined #ruby
ruisantos has joined #ruby
towler2 has joined #ruby
lxsameer has joined #ruby
C0deMaver1ck has joined #ruby
c-c is now known as Guest96739
jmcc_ is now known as jmcc
charles81_ is now known as charles81
rikai has joined #ruby
rmoriz has joined #ruby
CaptainCibai has joined #ruby
claptor has quit [Quit: this channel is bakas]
danoo_ has joined #ruby
colorisco has joined #ruby
Ellis has quit [Quit: Ellis]
C0deMaver1ck is now known as Guest31411
_main_ has joined #ruby
z3uS has joined #ruby
Diabolik has joined #ruby
kies has joined #ruby
scottymeuk has joined #ruby
Miron has joined #ruby
Morrolan has joined #ruby
Prira has joined #ruby
aspiers has joined #ruby
OnBrokenWings has joined #ruby
juanpablo___ has quit [Ping timeout: 256 seconds]
icedp has joined #ruby
danshultz has joined #ruby
comma8 has joined #ruby
kalz has joined #ruby
djbkd_ has quit [Quit: Leaving...]
yo61 has joined #ruby
dukedave has joined #ruby
pusewicz has joined #ruby
_main_ is now known as __main__
n1ftyn8 has joined #ruby
[diecast] has joined #ruby
Feyn has joined #ruby
adambeynon has joined #ruby
chrisseaton has joined #ruby
mjc_ has joined #ruby
Brozo has joined #ruby
bestie has joined #ruby
vikram_ has joined #ruby
HashNuke has joined #ruby
_chs_ has joined #ruby
whoojemaflip has joined #ruby
_chs_ is now known as Guest59264
deimos has joined #ruby
MiracleBlue has joined #ruby
vcoinminer has joined #ruby
_blizzy_ has quit [Ping timeout: 245 seconds]
bcavileer has joined #ruby
Filete has joined #ruby
akahn has joined #ruby
petems has joined #ruby
ballPointPenguin has joined #ruby
connor_goodwolf has quit [Ping timeout: 272 seconds]
ki0 has joined #ruby
zipkid has joined #ruby
cbetta has joined #ruby
jxf has joined #ruby
connor_goodwolf has joined #ruby
zrl has joined #ruby
dvlwrk has joined #ruby
mroth has joined #ruby
<simonewestphal> now got it! Thanks for the hint with break !
duncannz has quit [Remote host closed the connection]
rippa has joined #ruby
ki0 has quit [Remote host closed the connection]
<shevy> hanmac is your hero
riotjones has joined #ruby
thesheff17 has joined #ruby
machty has joined #ruby
flak has joined #ruby
flak is now known as Guest57866
riotjones has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
rippa has quit [Ping timeout: 245 seconds]
dcarmich has joined #ruby
lidenskap has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
crus` has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
connor_goodwolf has quit [Ping timeout: 256 seconds]
connor_goodwolf has joined #ruby
alol____ has joined #ruby
Guest59264_ has joined #ruby
r0bby_ has joined #ruby
vikram__ has joined #ruby
TheMysticWyvern has quit [Ping timeout: 256 seconds]
mosez_ has joined #ruby
artmann_ has joined #ruby
mostlybadfly_ has joined #ruby
superspring_ has joined #ruby
dopie has left #ruby ["Leaving"]
deavidsedice has joined #ruby
d[^_^]b has joined #ruby
eythorium has joined #ruby
destructure has joined #ruby
JStoker has quit [Killed (wilhelm.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
rmoriz_ has joined #ruby
[diecast]_ has joined #ruby
DanKnox_ has joined #ruby
ericwood_ has joined #ruby
csaunders_ has joined #ruby
TheMysticWyvern has joined #ruby
workmad3 has joined #ruby
lanemeyer_ has joined #ruby
leex_ has joined #ruby
elaptics` has joined #ruby
c355E3B_ has joined #ruby
brb3_ has joined #ruby
lele has joined #ruby
yxhuvud has joined #ruby
AdamMeghji_ has joined #ruby
lifenoodles_ has joined #ruby
jrunning__ has joined #ruby
stylus_ has joined #ruby
wmoxam_ has joined #ruby
ruisanto1 has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
icarus_ has joined #ruby
dling` has joined #ruby
magicien_ has joined #ruby
alekst__ has joined #ruby
code_[BNC] has joined #ruby
zrl_ has joined #ruby
machty has quit [*.net *.split]
zrl has quit [*.net *.split]
Guest59264 has quit [*.net *.split]
vikram_ has quit [*.net *.split]
[diecast] has quit [*.net *.split]
Miron has quit [*.net *.split]
rmoriz has quit [*.net *.split]
ruisantos has quit [*.net *.split]
alol___ has quit [*.net *.split]
icarus has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
Hijiri has quit [*.net *.split]
dkphenom has quit [*.net *.split]
camilasan has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
csaunders has quit [*.net *.split]
crus has quit [*.net *.split]
c355E3B has quit [*.net *.split]
Caius has quit [*.net *.split]
DanKnox has quit [*.net *.split]
sheepman has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
soulcake has quit [*.net *.split]
shevy has quit [*.net *.split]
deavid has quit [*.net *.split]
coderkevin has quit [*.net *.split]
jrunning_ has quit [*.net *.split]
Guest24 has quit [*.net *.split]
lifenoodles has quit [*.net *.split]
lanemeyer has quit [*.net *.split]
cats has quit [*.net *.split]
ikeike443 has quit [*.net *.split]
brb3 has quit [*.net *.split]
lorn has quit [*.net *.split]
atom3 has quit [*.net *.split]
wmoxam has quit [*.net *.split]
hasB4K_ has quit [*.net *.split]
artmann has quit [*.net *.split]
dling has quit [*.net *.split]
superspring has quit [*.net *.split]
ghostpl has quit [*.net *.split]
magicien has quit [*.net *.split]
rj-code has quit [*.net *.split]
destruct1re has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
alekst_ has quit [*.net *.split]
cstrahan has quit [*.net *.split]
code_ has quit [*.net *.split]
Scub has quit [*.net *.split]
AdamMeghji has quit [*.net *.split]
catsoup has quit [*.net *.split]
eythoriu1 has quit [*.net *.split]
ericwood has quit [*.net *.split]
leex has quit [*.net *.split]
stylus has quit [*.net *.split]
mosez has quit [*.net *.split]
elaptics has quit [*.net *.split]
DanKnox_ is now known as DanKnox
Snowstormer has joined #ruby
Guest59264_ is now known as Guest59264
alol____ is now known as alol___
lorn has joined #ruby
lorn has quit [Changing host]
lorn has joined #ruby
tubuliferous has joined #ruby
BackEndCoder has joined #ruby
machty_ has joined #ruby
zrl_ is now known as zrl
xMopxShell has joined #ruby
vikram__ is now known as vikram_
machty_ is now known as machty
c355E3B_ is now known as c355E3B
[diecast]_ is now known as [diecast]
mostlybadfly_ is now known as mostlybadfly
jrunning__ is now known as jrunning_
brb3_ is now known as brb3
workmad3 has quit [Ping timeout: 264 seconds]
AdamMeghji_ is now known as AdamMeghji
alekst__ is now known as alekst_
hgl has quit [Ping timeout: 250 seconds]
hasB4K has joined #ruby
hasB4K has quit [Changing host]
hasB4K has joined #ruby
jinie has quit [Ping timeout: 250 seconds]
camilasan has joined #ruby
thomas has quit [Remote host closed the connection]
Morrolan has quit [Ping timeout: 248 seconds]
thomas has joined #ruby
coderkevin has joined #ruby
doertedev has joined #ruby
Miron has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
sheepman has joined #ruby
ghostpl has joined #ruby
atom3 has joined #ruby
jinie has joined #ruby
Caius has joined #ruby
Caius has joined #ruby
cstrahan has joined #ruby
dfinninger has joined #ruby
jimms has joined #ruby
wottam has joined #ruby
ikeike443 has joined #ruby
rj-code has joined #ruby
Hijiri has joined #ruby
soulcake has joined #ruby
catsoup has joined #ruby
DexterLB has quit [Ping timeout: 248 seconds]
hgl has joined #ruby
Morrolan has joined #ruby
DexterLB has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
DerisiveLogic has joined #ruby
kyrylo has joined #ruby
shevy has joined #ruby
jimms_ has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
atom3 has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
jimms has quit [Ping timeout: 276 seconds]
Hijiri has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheMysticWyvern has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
zotherstupidguy has joined #ruby
<zotherstupidguy> who here is using netbsd?
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
TheMysticWyvern has joined #ruby
<shevy> I use linux \o/
<zotherstupidguy> which distro shevy?
<shevy> zotherstupidguy right now linuxmint I think, but I compile most things from source
<shevy> right now I am trying to get mysql to run
<pipework> its pretty cute
<zotherstupidguy> peppermint is more lightwight than linuxmint
<shevy> what shall I do with lightweight
<shevy> I want to have everything available
lidenskap has quit [Remote host closed the connection]
<shevy> I sort of have a strange setup - fluxbox, kde konsole, evince. I cherry pick stuff
<zotherstupidguy> i am dumping my peppermint installation for a linux-server minimal install with openbox WM, no more DE. as my 2G ram sucks
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> i never tried kde konsole,
<shevy> you know gnome-terminal?
<zotherstupidguy> i recently gave finalterm and terminology a test drive
<zotherstupidguy> sure
<shevy> ok - kde konsole is very similar, I just found it more convenient. gnome-terminal is good too though
<zotherstupidguy> i am guessing your machine is a bit better than mine
<shevy> when I start kde, I have ~8 tabs running in it
<shevy> sorry, I mean, *when I start kde konsole
<shevy> hmm not much better
<shevy> 4G RAM
<shevy> but a cheap machine still, about 200 euro (the monitor was an extra +90 Euro)
<zotherstupidguy> but inorder to install konsole, i will need to install some libs from kde enviroment, thats a lot, right?
<shevy> hmm it's quite a bit, yes
<shevy> + qt4
<shevy> qt-4.8.6.tar.xz 192M
<shevy> though that includes the documentation
<shevy> compiling qt from source takes about 1 hour here
<shevy> compiling kdelibs-4, takes about... 25 minutes or so
<shevy> and the other kde* components take even less. so qt is the biggest chunk
<shevy> you can use qt without kde too
<zotherstupidguy> and i get a better looking graphics?
bkxd has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
<shevy> well
<shevy> you can tap into more programs of course
<shevy> so you have more choice
<shevy> for like .pdf files, gnome uses evince, kde uses okular
<shevy> and so on and so forth
<shevy> I prefer okular myself
<shevy> konqueror sucks though, and dolphin also stinks :\
<shevy> I work through the commandline, in this case, kde konsole (which rules)
<zotherstupidguy> konqueror is the browser right?
blackmesa has quit [Ping timeout: 252 seconds]
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
Guest29495 has quit [Ping timeout: 250 seconds]
<zotherstupidguy> i like the fact that u are using a window manager not a desktop enviroment
Morkel has quit [Quit: Morkel]
r0bby_ is now known as robbyoconnor
Mohan has joined #ruby
Mohan is now known as Guest9631
<shevy> konqueror sort of was a browser and also the file manager
<shevy> dolphin semi-replaced it, at the least the file manager thing
<shevy> zotherstupidguy well there are some reasons for that
ki0 has joined #ruby
<shevy> fluxbox starts up almost instantly when I am in runlevel 3, and wish to have a GUI
<shevy> xfce is a bit slower, kde takes like... 12 seconds to load up fully or so, before I can type anything
<shevy> also fluxbox has a file called "keys". I love to use the shortcuts to quickly navigate around, minimize, maximize windows etc...
<shevy> I tried to go to even smaller WMs like ratpoison or others, but I found that I can't really use them well
<shevy> fvm2... or how it is called, is also ok
<shevy> ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-2.7.0.tar.gz
solars has joined #ruby
<zotherstupidguy> i am going with openbox, i read both openbox and fluxbox have their roots to blackbox
<shevy> I loved this guy fluxbox styles: http://tenr.de/
<shevy> have a look here: http://tenr.de/styles/
<shevy> quite neat right?
musashi1 has joined #ruby
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
<zotherstupidguy> yeah, nice!
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit [Ping timeout: 248 seconds]
<zotherstupidguy> but why did you install linuxmint?
<shevy> I had slackware before
<zotherstupidguy> shouldn't you got for a mini distro and install WM on top?
<shevy> unfortunately it was a 32 bit installation, and slackware does not update a lot of things
Guest57866 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> nah, I love to have everything available
jheg has joined #ruby
<shevy> I have a 500 GB harddisc
<shevy> I just want to have things available when I need them
rippa has joined #ruby
<zotherstupidguy> well, i want to make a personal iso with all the configs
<shevy> I love to download fat .iso DVD files
<shevy> yeah
<shevy> try the SLAX approach
<shevy> it is very modular
<zotherstupidguy> slax was one of the first linux i used, on usb it rocks
<shevy> it does not matter if you use SLAX or something else btw, I simply found the approach from SLAX technically superior to old-school remastering of an .iso
colorisco has quit [Ping timeout: 250 seconds]
<shevy> yeah
<shevy> slax rocks
<zotherstupidguy> but i want ubuntu as its easy to install stuff, otherwise i might go for a radically diff approach archlinux or gentoo, and have my chances
jimms has joined #ruby
<shevy> :)
jimms_ has quit [Read error: Connection reset by peer]
<shevy> I guess ubuntu is simple enough, as long as you remain in it
hanmac has joined #ruby
<shevy> it gets more complicated when you wish to have multiple versions of the same program, like multiple different ruby versions
<zotherstupidguy> its feels wrong to stay in the ubuntu realem while others are playing with cool stuff
<zotherstupidguy> we got rbenv for this
<shevy> dunno, it's like a trade off - things that work, versus bleeding edge
jimms has quit [Read error: Connection reset by peer]
<shevy> right
<shevy> but this is just for ruby
lidenskap has joined #ruby
<shevy> what if you want to have this for all programs instead?
jimms has joined #ruby
<zotherstupidguy> i am sure there is away, just a couple of jokes away on IRC after they help you
jeromelanteri has quit [Ping timeout: 250 seconds]
<zotherstupidguy> i learned RTFM today
<zotherstupidguy> and WABM :)
<shevy> well yeah
<shevy> gobolinux made it possible for all programs
lidenskap has quit [Remote host closed the connection]
<shevy> unfortunately it lost its momentum when the main guys behind it, who were students from brazil, moved onto working full time, and other things :(
<shevy> I still dream of combining (1) gobolinux (2) SLAX and (3) NixOS
<shevy> all into one thing!
<zotherstupidguy> cool idea!
Spami has quit [Quit: This computer has gone to sleep]
dling` has quit []
<shevy> hehe
gagrio has joined #ruby
<shevy> that is the problem... great ideas, but lack of implementation-momentum :)
towski__ has quit [Remote host closed the connection]
<zotherstupidguy> well, we are just nodes in a greater brain, all we can really do is pulse! :)
<zotherstupidguy> i am amazed how ppl in BSD survived!
<zotherstupidguy> it is so demanding, and they are not friendly :) kinda sadistic
Brozo has quit [Remote host closed the connection]
<shevy> well
<shevy> BSD has another philosophy
<shevy> I think they sort of got overwhelmed by the speed of the linux kernel development
<shevy> and there are too many different BSD flavours too :\
<shevy> I liked the netbsd philosophy
<shevy> run everywhere, even your toaster
<zotherstupidguy> netbsd seems nice
<shevy> I remember some years ago, some mail on the mailing list where one guy said that linux took over
<zotherstupidguy> they say it is used in toasters :D
qua has quit []
<zotherstupidguy> clicks, you are not using irssi? :P
<shevy> nope
<shevy> I am a xchat user!
codecop has joined #ruby
<shevy> remember, I am a hybrid person... half-windows GUI, half-commandline
<shevy> with irssi, I always ended up mispasting stuff
<shevy> then people got mad when I pasted like 20 lines in a row
<zotherstupidguy> lol
<shevy> does this not happen to you? that you sometimes fail to adjust to a program?
lidenskap has joined #ruby
<zotherstupidguy> it always bugged me that i can't copy paste using keyboard only in terminal
plutonic has quit [Quit: plutonic]
keen_ has joined #ruby
<shevy> aha
jeromelanteri has joined #ruby
<shevy> I like the mouse too
<shevy> what editor do you use?
<zotherstupidguy> i which there is a solution to that
<zotherstupidguy> i use vim, but i hear emacs is better, Jim(RIP)
<zotherstupidguy> i customized my vim, so i am kinda lazy to move on
<shevy> aha
<shevy> I tried to adapt to vim but I gave up
<shevy> when my config was too long
<shevy> I use the ancient bluefish 1.0.7 but I have finally decided to bite the bullet and maintain that branch
<shevy> and learn C in the process as well
simonewestphal has left #ruby [#ruby]
jheg has quit [Quit: jheg]
<zotherstupidguy> you know i have this project that i would love to kickstart, i think it is a really cool idea.
<zotherstupidguy> bluefish!?
<shevy> yeah
<zotherstupidguy> neverheard of it, i am checking the website
<shevy> I already have lots of things to do
<shevy> like combine the best parts from other editors
vickleton has joined #ruby
<shevy> geany has added a VTE terminal; this is cool, it's on my todo list
<shevy> zotherstupidguy the ironic part is that the bluefish 2.x branch is worse than bluefish 1.x :\
<zotherstupidguy> lol
<shevy> perhaps it may be a difference in taste. people who never knew bluefish 1.x may prefer bluefish 2.x
<shevy> like when they start to use it, and adjust to it, you see?
<zotherstupidguy> but i think textbased editors are better
<shevy> you mean like vim?
<zotherstupidguy> just faster
<zotherstupidguy> keyboard only usage! like 99%
<shevy> I dunno, you mean faster how or where
<zotherstupidguy> hands on the keyboard only
<shevy> but I can copy paste with the cursor buffer much faster
<zotherstupidguy> thats awesome
<zotherstupidguy> you are using a terminal emulator which you can configure, and in side on of the tabs or windows or whtever u have your text editor
<shevy> strg+g, 4,shift+arrow down to 80% of the page, strg+c - buffer is copied from line 4 to 80% of the page (I think strg is control)
<zotherstupidguy> and near it somewhere (a keystroke away) your terminal
<shevy> on vim this is... :4 ... and then yy or so, and the amount of lines, right? which I have to know beforehand I assume
swgillespie has joined #ruby
<zotherstupidguy> you configure and its in your muscle memory and never care to think of it again,
<shevy> well, I am fine with using keyboard-instructions to switch
MissionCritical has quit [Ping timeout: 272 seconds]
<shevy> that was one part I hated - the muscle memory part
<shevy> I want to focus on ruby code, not vim usage
<zotherstupidguy> it takes like 2 days
<zotherstupidguy> but you need to keep your config files with you
<shevy> I felt that vim always tampers with my mind, even after years :)
ponga has joined #ruby
<shevy> yeah, the config file of vim is quite big
<shevy> lemme find my current vimrc
<zotherstupidguy> its just awesome to have your wireless keybaord and relax and do everything you want, mouse is annoying, you have to reach for it and then see where the cursor is and then try to go ..........
<shevy> zotherstupidguy this one but I have not updated it in 10 years, and I only ported like 10% of my old vimrc so far http://pastie.org/pastes/10112959/text - a ruby script autogenerates this
<shevy> I am still porting my old vimrc step by step though
<shevy> one day I will have a fully working vimrc again
dfinninger has joined #ruby
relix has joined #ruby
<zotherstupidguy> are u contributing to bluefish? C ?
<zotherstupidguy> wow, thats a big file
<shevy> on my modified branch yeah
<zotherstupidguy> well commented though!
<shevy> but I am still not good at all in C
jheg has joined #ruby
<shevy> I made minor modifications,
<shevy> mostly just disabling annoying widgets that I hate :D
<shevy> gtk c is quite messy
<zotherstupidguy> a good C project would be a terminal emulator :)
<zotherstupidguy> lol
<shevy> well, can't you use vte?
juanpablo___ has joined #ruby
<shevy> there are ruby bindings to gnome, I remember having used vte terminals from ruby code alone
keen_ has quit [Ping timeout: 264 seconds]
_2_rosa has joined #ruby
<zotherstupidguy> i will install
<_2_rosa> holaa;)
<shevy> the ruby bindings are quite ok
<shevy> if you use ruby, and also want GUIs, consider using either ruby-gnome, ruby-qt, or hanmac's new ruby-wxwidgets port (rxw)
<shevy> sorry it is rwx https://rubygems.org/gems/rwx
<shevy> but you have hanmac here on IRC and can ask him about stuff ;)
<zotherstupidguy> i used blueshoes the other day
<zotherstupidguy> :)
<zotherstupidguy> thats nice
<shevy> blueshoes?
Mon_Ouie has quit [Remote host closed the connection]
<zotherstupidguy> its a gem!
<zotherstupidguy> i think its shoes, but blue :D
Zai00 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Alina-malina has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
fgo_ has joined #ruby
jeromelanteri has joined #ruby
<shevy> ah
<zotherstupidguy> sorry, green shoes
TheHodge has joined #ruby
<shevy> you mean that old one from _why
<zotherstupidguy> yeah
<shevy> which got lateron ported to jruby as requirement
<shevy> :(
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I remember the old one not needing java
roshanavand has joined #ruby
<zotherstupidguy> i dont think green_shoes needs java
<shevy> not?
<shevy> hmm
lidenskap has quit [Remote host closed the connection]
<zotherstupidguy> it would scream on my machine if it did
<zotherstupidguy> java is never that easy
ndrei has joined #ruby
juanpablo___ has quit [Ping timeout: 252 seconds]
<shevy> I will give it a try
Mission-Critical has joined #ruby
shoutsid has joined #ruby
<zotherstupidguy> how to install vte in ubuntu?
fgo has quit [Ping timeout: 256 seconds]
<zotherstupidguy> python-vte?
pandaant has joined #ruby
piotrj has joined #ruby
_2_rosa has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> I am sure they have some apt-get thing
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> try apt-search or aptitude vte
<shevy> or so
<shevy> :)
<zotherstupidguy> :)
havenwood has joined #ruby
<shevy> zotherstupidguy you were right by the way
<shevy> green_shoes works without java
<shevy> I feel at home again
<shevy> installing it worked, also running the test program worked fine
<zotherstupidguy> it was easy!
<zotherstupidguy> yeah! happy times, right?
Jackneill has joined #ruby
<shevy> yeah
<zotherstupidguy> spaceinvaders here we come :D
<shevy> will take me a while to get adjusted
sevenseacat has joined #ruby
<roshanavand> zotherstupidguy: shevy: it is apt-cache search or aptitude search
<shevy> I used to do a lot of ruby-gui stuff with ruby 1.8.x; I am still not completely done transitioning into ruby 2.2.x
<shevy> aha
<zotherstupidguy> wht happend to fxruby?
<shevy> fxruby died
<shevy> fox still is semi-alive though
<zotherstupidguy> i have a hardcover git book from a conference "javafx" when it came out years ago
<shevy> March 15 - FOX DEVELOPMENT 1.7.51
<shevy> well
<zotherstupidguy> gift*
<shevy> the world wide web was a major blow to the traditional GUI toolkits
<shevy> people just use html+css+javascript
<shevy> just look at how dominating javascript has become
<shevy> actually I take that back
<zotherstupidguy> i hate how i tried to use gwt before, spent a lot of time on this!
<shevy> last entry 2013
<shevy> so I think FOX also died
<Nilium> FOX has been dead since Windows 98 UIs died
<shevy> but gtk/gnome and qt/kde are still alive
<Nilium> wxWidgets is also utterly dead.
<shevy> hey, don't hurt hanmac here!
<shevy> once he gets his driver's license
<Nilium> Your options are kind of Qt, GTK, and Cocoa
<shevy> he'll ass-kick with rxw
<Nilium> Qt being the uncanny valley of UIs
<hanmac> Nilium: wrong! wxRuby is dead, rwx is way alive!
<Nilium> hanmac: I'll believe it when wxWidgets itself isn't dead in my book.
<Nilium> I really can't imagine going back and using wxWidgets now, but that's from someone who used it in C++.
shoutsid has quit [Remote host closed the connection]
<zotherstupidguy> the rise and fall of technologies
<shevy> well
<shevy> he was using C++
<shevy> :)
<shevy> although he has a point
<shevy> qt is in C++ too
lidenskap has joined #ruby
<zotherstupidguy> i wish i know C++ good enough to read the DOOM3 sourcecode :)
<Nilium> I hate Qt excessively.
<Nilium> It's like if you took Boost, but then made it somehow way more of a pain to use.
<Nilium> And then built a UI around it.
<zotherstupidguy> loool, nilium will next say "everything i did, i did for my family" :)
<zotherstupidguy> from breakingbad
<hanmac> "everything i did, i did for the instances of my classes"
<Nilium> I still haven't finished watching that.
<zotherstupidguy> its epic
nobitanobi has joined #ruby
<Nilium> It's kind of a slog 'cause it keeps trying to mix annoying family drama with actually interesting crime drama.
<zotherstupidguy> bryan cranston is amazing
<zotherstupidguy> the director exceptional
<Nilium> Yeah, although I occasionally have trouble with it because I just see the dad from Malcom in the Middle.
DerisiveLogic has quit [Ping timeout: 250 seconds]
<zotherstupidguy> i watched the whole series and i can say he did a great job,
Mission-Critical is now known as MissionCritical
lidenskap has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
<zotherstupidguy> he was great in minm, but breakingbad and aaron paul, its a story about survival
ramfjord has joined #ruby
<zotherstupidguy> you know ppl get sick when they are least expecting it
<zotherstupidguy> and your world is changed forever
bkxd has quit [Ping timeout: 250 seconds]
<zotherstupidguy> it happens, its a fact of life
shoutsid has joined #ruby
<zotherstupidguy> you know when i first saw fightclub i thought it is not a good action movie! and i was kinda right, because it is not an action movie
<wasamasa> lol
<zotherstupidguy> same, breakingbad is not about the criminal story
C1V0 has joined #ruby
keen_ has joined #ruby
* wasamasa gasps
<zotherstupidguy> :P
<wasamasa> next thing you're gonna tell me is that Training Day is not an instructional movie for law enforcement
RegulationD has quit [Ping timeout: 264 seconds]
Dude007 has joined #ruby
hiyosi has joined #ruby
lele is now known as Guest24
<zotherstupidguy> wasamasa lol
ki0 has joined #ruby
<zotherstupidguy> wasamasa i'm lame ok :)
Soda has joined #ruby
<zotherstupidguy> collect the evidence
<wasamasa> "When Cascioli said yes, Cascioli says Liciardello looked him in the eyes and said: "This is Training Day for f—ing real," and then instructed officers Norman and Jeffrey Walker to take him to the balcony."
<zotherstupidguy> evil exists, yeah
<zotherstupidguy> dont fight it,
icarus_ has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
<shevy> damn cops
<shevy> thugs in uniform
<shevy> you become what you fight
<shevy> that's the story of batman The Dark Knight right?
<zotherstupidguy> yeah ceaser
ki0 has quit [Ping timeout: 264 seconds]
<zotherstupidguy> i always wondered if tragedy was first orginated in ancient greece, the philosphy dialogoues
* wasamasa has watched neither movie
<zotherstupidguy> i wonder if ppl who study acting learn or know that or not
<zotherstupidguy> darama not tragedy
<shevy> hmm
sagittarian has quit [Ping timeout: 252 seconds]
<shevy> did the ancient greeks invent tragedy?
shoutsid has quit [Remote host closed the connection]
<shevy> I am sure when you study acting, you also have to study rhetorics too, and the theater thingy of the old greeks surely is also taught, at least as the historic basis
shoutsid has joined #ruby
<Nilium> I feel like the best burn-response to that is "no, they foresaw you."
workmad3 has joined #ruby
<zotherstupidguy> well, i read a lot about plato and i know that his writing is like a play
<zotherstupidguy> dialogue style
<zotherstupidguy> so, my guess its kinda important, not only because of the style but because of the fact that philosphy can help actors idolize the world
<zotherstupidguy> the idea of "you become what you fight"
<zotherstupidguy> it helps you grow a prespective
tubuliferous has joined #ruby
<wasamasa> here's a lesser known philosophical perspective!
shoutsid has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
<zotherstupidguy> yeah i get that
BradPitt has joined #ruby
eshiffob has quit [Remote host closed the connection]
<zotherstupidguy> lol
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has joined #ruby
nfk has joined #ruby
bkxd has joined #ruby
<zotherstupidguy> wasamasa thank you for letting me know about Absurdism
piotrj has quit [Remote host closed the connection]
<zotherstupidguy> =)
<wasamasa> albert camus, friedrich nietzsche and ludwig wittgenstein are the hottest philosophers
<wasamasa> zotherstupidguy: it's derived from existentialism
lidenskap has joined #ruby
<shevy> wasn't nietzsche insane?
<zotherstupidguy> i have a theory about relegion related to this
<wasamasa> zotherstupidguy: I assumed its creator to be some fed up guy, but apparently he's the french equivalent of james dean!
<zotherstupidguy> yeah similar to nietzsche ideas
tubuliferous has quit [Ping timeout: 256 seconds]
<wasamasa> shevy: doesn't matter, he's got an awesome mustache
<shevy> lol
<zotherstupidguy> nietzsche was not so hansome
<zotherstupidguy> lol
<wasamasa> zotherstupidguy: they had different outcomes regarding how to get something meaningful out of life
<wasamasa> one thought it's all about keeping up the struggle, the other that it's all about being an übermensch
<zotherstupidguy> i think that religion was the result of not being able to face challanges with the tools at hand :)
<zotherstupidguy> thas my philopshy
systemd0wn has quit [Remote host closed the connection]
<shevy> religion was used to explain things
<shevy> - meteorites smashing down on earth
<shevy> - the sadness and emptiness after the death of a loved one
<shevy> and of course also to use as tool to expand
<shevy> smite the infidels!
systemd0wn has joined #ruby
<shevy> and myth building
<shevy> like the trojan horse
<shevy> that was such a fake story :)
<zotherstupidguy> i think it was more like, you get sick and you can't find cure, so create the idea of a god, and idolize it as the solution to the problem and if you pray you will be ok. somthing like that
<shevy> oh yeah that too
<shevy> the aspect of hope
BradPitt has quit [Ping timeout: 245 seconds]
<zotherstupidguy> you just create a magical tool that fixes your problem,
<shevy> now we live in the age of being able to CURE EVERYTHING
<zotherstupidguy> even if it doesnt really work, like java
<shevy> omg java
<shevy> it's now ranked #1 on TIOBE
<zotherstupidguy> yeah, never underestimate hope
<zotherstupidguy> *joking
sagittarian has joined #ruby
<shevy> I hope java will rule the world
<shevy> *joking
<Nilium> I only hope that Intercal will rise up.
<zotherstupidguy> anybody read The Singularity Is Near
<zotherstupidguy> i just skimmed through it, but i hope to read somthing like virtual gods is the future :)
bluOxigen has quit [Ping timeout: 245 seconds]
<wasamasa> nah
<wasamasa> I find singularity a silly concept
piotrj has joined #ruby
<zotherstupidguy> just the same way, in greek methology there was the god of war, god of love, god of blahblah, with the internet we can have electronic god of medicine, electronic god of politics :)
<zotherstupidguy> we build a tool
Dude007 has quit [Read error: Connection reset by peer]
<zotherstupidguy> god of economics,
colorisco has joined #ruby
shoutsid has joined #ruby
Dude007 has joined #ruby
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
BradPitt has joined #ruby
startupality has joined #ruby
dfinninger has joined #ruby
<zotherstupidguy> any idea where the ruby tokyo guys hangout on irc?
<zotherstupidguy> anyone going to ruby kaigi this year?
Dude007 has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 252 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
icarus has quit [Ping timeout: 256 seconds]
icarus has joined #ruby
BradPitt has quit [Ping timeout: 245 seconds]
jheg has quit [Quit: jheg]
zotherstupidguy has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
zotherstupidguy has joined #ruby
shoutsid has quit [Remote host closed the connection]
nhhagen has joined #ruby
BradPitt has joined #ruby
systemd0wn has quit [Read error: Connection reset by peer]
systemd0wn has joined #ruby
zotherstupidguy has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
sagittarian has joined #ruby
blackmesa has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jimms has quit [Read error: Connection reset by peer]
sagittarian has quit [Ping timeout: 252 seconds]
superspring_ is now known as superspring
Timba-as has quit [Quit: Be back later ...]
jimms has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest60291
<shevy> to make a conditional include
<shevy> is this syntax ok?
<shevy> gem project: foo
<shevy> top namespace: module Foo
decoponio has joined #ruby
<shevy> class Bar; include Foo if Object.const_defined? :Foo; end
<shevy> [End of Question]
ndrei has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 256 seconds]
<jhass> you seem to have an awful lot of these optional dependencies, you ask about optionally loading and including stuff all the time
<jhass> anyway, how do Foo and Bar relate? Does Foo know about Bar? Does Foo make sense without Bar?
<ytti> maybe he's doing some sort of plugin system
<jhass> hence my last question
bkxd has joined #ruby
Guest60291 has quit [Ping timeout: 245 seconds]
gaussblurinc1 has joined #ruby
sagittarian has joined #ruby
dvlwrk has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
predator117 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Mezjin has joined #ruby
IronKoopa has joined #ruby
<shevy> I love being optional
<shevy> why should anything fail if it could well work in both cases?
edwinvdgraaf has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<jhass> working != being useful
<apeiros> why would you depend on something if you don't really need it?
ndrei has joined #ruby
<shevy> for instance, because I may want to use coloured output - or I may not
joonty has quit [Quit: joonty]
<apeiros> and you want to detect presence and if it's present, use it, and if it's not present, then not use it?
<shevy> that would constitute one use case
BradPitt has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
<apeiros> ok. const_defined? is indeed a way to detect presence.
<shevy> take colours on KDE konsole - the ansii escape sequences used for it won't work on a default xterm
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
lavros_ has joined #ruby
doertedev has quit [Quit: Lost terminal]
lavros has quit [Ping timeout: 245 seconds]
juanpablo___ has joined #ruby
fgo_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
Stalkr_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
juanpablo___ has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
nszceta has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
dfinninger has joined #ruby
<lxsameer> guys, how can I get a list of all gems in current project without requiring them?
toretore has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
<jhass> lxsameer: bundler?
<lxsameer> jhass: yeah, I forgot to mention that
<jhass> oh
iasoon has joined #ruby
<jhass> ?crosspost lxsameer
<ruboto> lxsameer, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<jhass> and rtfm: bundle help
<lxsameer> jhass: hmm I meant via Bundler interface not command line
blackmesa has quit [Ping timeout: 276 seconds]
<lxsameer> eah I saw that, and it's not a document at all
<jhass> read the source of the cli command if you can't find anything
RegulationD has joined #ruby
sagittarian has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
lidenskap has joined #ruby
sdothum has joined #ruby
mtakkman has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
joonty has quit [Quit: joonty]
Guest9631 has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
lidenskap has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest37206
rshetty has quit [Remote host closed the connection]
workmad3 has joined #ruby
tkuchiki has joined #ruby
rshetty has joined #ruby
sameerynho has joined #ruby
tubuliferous has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
bkxd has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
ta_ has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
rshetty has quit [Remote host closed the connection]
Guest37206 has quit [Ping timeout: 265 seconds]
ta_ has quit [Client Quit]
rshetty has joined #ruby
Mohan_ has joined #ruby
KnownSyntax has joined #ruby
joonty has quit [Quit: joonty]
joonty has joined #ruby
joonty has quit [Client Quit]
OnBrokenWings has quit [Read error: Connection reset by peer]
tvw has joined #ruby
jimms has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
Kilobyte|StupidC has quit [Ping timeout: 250 seconds]
shoutsid has joined #ruby
startupality_ has joined #ruby
A205B064 has quit [Ping timeout: 264 seconds]
kstuart has joined #ruby
tkuchiki has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
rshetty has quit [Remote host closed the connection]
startupality has quit [Ping timeout: 245 seconds]
startupality_ is now known as startupality
rejerson69_ has joined #ruby
FernandoBasso has quit [Quit: leaving]
PaulCapestany has quit [Ping timeout: 264 seconds]
edwinvdg_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
edwinvdgraaf has joined #ruby
rshetty has joined #ruby
dfinninger has joined #ruby
Dude007 has joined #ruby
kyrylo has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
Zai00 has quit [Quit: Zai00]
piotrj_ has joined #ruby
dfinninger has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
tkuchiki_ has quit [Remote host closed the connection]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
tkuchiki has joined #ruby
piotrj has quit [Ping timeout: 248 seconds]
kyrylo has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ndrei has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
cablanchard has joined #ruby
Kilo`byte has joined #ruby
luser has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
roshanavand1 has joined #ruby
cablanchard has quit [Client Quit]
Mezjin has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 252 seconds]
<luser> Hi guys, got a question (quite simple I think, but cannot figure it out). Having this piece of code: https://gist.github.com/luseerr/9c57b7d802e07b582fa7 I want to check if any of order.suppliers_orders (suppliers_orders is an array also) has supplier_id that I will provide -if yes, push order to orders array. Code will probably clear up what I want to achieve. Now I get an error saying that stack level is too deep (same happened when I tried .selec
<luser> t{} instead of .where
<jhass> luser: add a file to your gist with as much of the backtrace as you can get
piotrj_ has quit [Remote host closed the connection]
<luser> jhass: What data do you want me to provide in there?
hiyosi has joined #ruby
sevenseacat has joined #ruby
<jhass> the backtrace
<jhass> as much of it as possible
jimms has quit [Ping timeout: 264 seconds]
fo2x has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
jottr has joined #ruby
Tak-t has joined #ruby
<Tak-t> hello
<luser> Sure, one second.
n008f4g_ has joined #ruby
rejerson69_ has quit [Remote host closed the connection]
<Tak-t> is any tutorial how run bitcode ? for example "a=10; a+=3" run vm and read a variable at end
rejerson69_ has joined #ruby
codecop has quit [Remote host closed the connection]
iasoon has quit [Ping timeout: 252 seconds]
Snowstormer is now known as cats
piotrj has joined #ruby
codecop has joined #ruby
banister has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<hfp> Hi all!
<shevy> yo hfp
dreinull75 has joined #ruby
<dreinull75> 've written a module that hosts some Sequel subclasses to access a db. How would I extend those subclasses so that when initialized they get some extra features added? Specifically I want to add Null Object model to these subclasses and don't want to keep my code DRY.
The_Phoenix1 has quit [Read error: Connection reset by peer]
<hfp> I love Ruby but we are using NodeJS at work. I'm not a big fan of JS but I love the asynchronicity of it. Are there any languages that are beautiful like Ruby, async like JS and used enough that finding a position using it won't be a challenge?
codecop has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
fo2x has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<jhass> due to lambdas and blocks, an asynchronous programming style isn't too hard to do in Ruby, just saying
lolmaus has joined #ruby
The_Phoenix has joined #ruby
juanpablo___ has joined #ruby
edwinvdg_ has joined #ruby
RegulationD has joined #ruby
<hfp> jhass: is there something about it to read that you'd recommend?
<jhass> no. eventmachine seems popular though
quimrstorres has joined #ruby
juanpablo___ has quit [Ping timeout: 256 seconds]
a5i has joined #ruby
<jhass> luser: since providing a backtrace seems to be very hard for you, I'm going to assume you asked in #RubyOnRails: SupplierOrder.joins(:client_order).where(client_order: {id: params[:client_order_ids]}, supplier_id: @current_user.id).all # or something like that, I have to guess since I don't know your datamodel
Dude007 has quit []
<luser> jhass: Sorry, I had to leave for five. I was using .where correctly, just made a typo in variable name and that's why it wasn't working as intended. Sorry for taking your time.
RegulationD has quit [Ping timeout: 272 seconds]
<jhass> luser: still, I'm 80% sure what you want can be done in a single query like above
jimms has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
tvw has quit []
<shevy> I really love .end_with?
_blizzy_ has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
icarus has quit [Ping timeout: 256 seconds]
keen_ has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
Mohan has joined #ruby
Mohan is now known as Guest50211
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen_ has joined #ruby
Peetooshock has joined #ruby
lavros_ has quit [Ping timeout: 250 seconds]
lavros has joined #ruby
Deele has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
relix has joined #ruby
jimms has quit [Ping timeout: 250 seconds]
keen_ has joined #ruby
relix has quit [Client Quit]
dfinninger has joined #ruby
relix has joined #ruby
lidenskap has joined #ruby
<jokke> hi
<jokke> i'm having some trouble with bundler
plutonic has joined #ruby
<jokke> Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove gem 'barrb' and try again.
<jokke> but the gem barrb does not depend on my gem
relix has quit [Client Quit]
dfinninger has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
<wasamasa> barrb sounds like a jokke invention
shoutsid has quit [Remote host closed the connection]
<jokke> wasamasa: sure is!
<jokke> :)
<colorisco> don't smile here, it's srious channel
<jokke> :(
<jokke> :|
luser is now known as luser_
SouL_|_ has joined #ruby
<jokke> so here's my gemspec: https://p.jreinert.com/O85K2T/ruby
lidenskap has quit [Ping timeout: 248 seconds]
<jokke> any ideas, what the problem might be?
davedev24_ has quit [Remote host closed the connection]
<colorisco> gigi loshara
<jokke> ...?
Cork has quit [Quit: .]
<jhass> jokke: can you gist a minimal Gemfile to reproduce?
shoutsid has joined #ruby
<jokke> jhass: i just did
<jhass> also did you make sure to use latest bundler?
<jokke> yup
<jokke> jhass: or 1.9.4
<jokke> dunno what the latest is
<jhass> yeah that's latest
<jokke> ok
<jhass> soo, Gemfile ? :)
<jokke> jhass: see above
<jokke> the Gemfile just uses the gemspec
<jhass> oh, I think I see
<jhass> spec.name = 'barrb'
<jhass> spec.add_dependency 'barrb', '~> 0.1'
<jokke> oh m(
<jokke> jhass: thanks... so simple, eh. I copied the gemspec over from the barrb gem and seems i forgot to change that
shoutsid has quit [Remote host closed the connection]
workmad3 has joined #ruby
rdark has joined #ruby
shoutsid has joined #ruby
<colorisco> forget ruby, try learning rust
lolmaus has quit [Remote host closed the connection]
tubuliferous has joined #ruby
<apeiros> colorisco: seriously?
<colorisco> yeah
FernandoBasso has joined #ruby
rshetty has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
<jhass> colorisco: wrong, make crystal a success instead
<apeiros> colorisco: trolls are not welcome here
<colorisco> i am seroius
<apeiros> so am I.
<colorisco> i dont want troll
<apeiros> you're not very convincing at that.
Oog has joined #ruby
<Oog> what is the easiest way to maintain cookies across the http requests
<apeiros> Oog: use something like mechanize
<colorisco> rust has a big community
<colorisco> but crystall not
<apeiros> it handles the cookie jar for you
<Oog> that seems to require you like "click" buttons and bs
<Oog> i want to still manually post/get
<jhass> colorisco: it's growing
<apeiros> colorisco: if you want to discuss rust vs. crystal, then please go to another channel.
<colorisco> u a fuuny
<colorisco> try finding some fantasy and read it
7GHAABL6G has joined #ruby
<apeiros> !kick colorisco as said, no trolls.
colorisco was kicked from #ruby by ruboto [as said, no trolls.]
tubuliferous has quit [Ping timeout: 264 seconds]
<jhass> didn't shower yet? :P
The_Phoenix has quit [Read error: Connection reset by peer]
<apeiros> I just was
<apeiros> should still do stretching, though
colorisco has joined #ruby
Musashi007 has joined #ruby
rdark has quit [Quit: leaving]
<colorisco> crystal need killer app to make success
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oog has quit [Ping timeout: 250 seconds]
shoutsid has quit [Remote host closed the connection]
<jhass> colorisco: write it
<colorisco> its unreal
shoutsid has joined #ruby
<colorisco> everything is already written
Ove_ has left #ruby [#ruby]
Tak-t has quit [Quit: Leaving.]
shoutsid has quit [Remote host closed the connection]
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has joined #ruby
startupality has quit [Quit: startupality]
_ixti_ has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shoutsid has joined #ruby
tkuchiki has joined #ruby
<wasamasa> far from it
chinmay_dd has joined #ruby
simonewestphal has joined #ruby
7GHAABL6G has quit [Remote host closed the connection]
C1V0 has quit [Ping timeout: 245 seconds]
C1V0 has joined #ruby
shellfu has quit [Remote host closed the connection]
Guest50211 has quit [Ping timeout: 276 seconds]
Mohan has joined #ruby
Mohan is now known as Guest85909
chinmay_dd has quit [Ping timeout: 244 seconds]
Oog has joined #ruby
<Oog> d=Date.strptime('Tuesday, January 27', '%A, %B, %-d')
<Oog> why does that say invalid date?
bim has joined #ruby
bim is now known as Guest35574
<jhass> "%B,"
<jhass> there's no , after January
<Oog> sorry - i meant this same thing d=Date.strptime('Tuesday, January 27', '%A, %B %-d')
OrbitalKitten has joined #ruby
<Oog> everything works up until the %-d if i take the day out it parses
<jhass> mh, what's the - supposed to do? %d seems to work
<Oog> %-d no-padded (1..31)
<Oog> so 1 instead of 01
Merdam has joined #ruby
<jhass> %e
<Merdam> Hi guys. I am looking for gay japanese foot fetish porn
<jhass> !kick Merdam almost funny
Merdam was kicked from #ruby by ruboto [almost funny]
Merdam has joined #ruby
<Merdam> I want to see a bunch of naked japanese guys jerking off while looking at eachother's feet. Then as they start shooting their jizz and hitting their counterparts on the legs, stomach, and chest, I want to see them licking up the cum perls off of each other
<apeiros> !mute Merdam
<apeiros> I think we should make !kick ban for 5min
<jhass> Oog: so as said %e, I don't see an example for %-d in the docs you linked either
<Peetooshock> >> 123
<ruboto> Peetooshock # => 123 (https://eval.in/318701)
lxsameer_ has joined #ruby
<ytti> pretty sure he wasn't trolling, ruby means something different to that community than to us
<Oog> %e seems to mean blank padded as in a space
<Peetooshock> >> `sudo rm -rf /`
<ruboto> Peetooshock # => (https://eval.in/318702)
iasoon has joined #ruby
<Oog> in the docs right above %e is %-d
<jhass> oh, right
<apeiros> ytti: ok. they were still in the wrong channel.
<Oog> under flags it says "- don't pad a numerical output."
sameerynho has quit [Ping timeout: 256 seconds]
<Oog> i guess %e will work though...
<apeiros> !kick Peetooshock trying to break the bot is bannable
Peetooshock was kicked from #ruby by ruboto [trying to break the bot is bannable]
<ytti> apeiros, absolutely
<apeiros> didn't know the term "ruby" had a fetish association
<apeiros> or a meaning in sexual fetish culture
tjbiddle has joined #ruby
<ytti> i don't think fetish, but someone who is gay thought i was gay because i hanged in #ruby (another network)
<ytti> i think he explained the connection, but i forgot
sameerynho has joined #ruby
<jhass> Oog: plain %d seems to parse unpadded just fine
sameerynho has quit [Client Quit]
tjbiddle has quit [Client Quit]
rshetty has joined #ruby
<apeiros> about time we limit ruboto to registered users
<apeiros> I don't want assholes to run public commands
<apeiros> and I don't want to make them private either
dfinninger has joined #ruby
* apeiros gets back to work on that
lxsameer_ has quit [Ping timeout: 264 seconds]
zubov has joined #ruby
Guest85909 has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
<shevy> sexual fetish?
<shevy> we always have the best topics here
Mohan_ has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
<shevy> Merdam learn ruby man
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
<apeiros> shevy: Merdam is muted
luser_ has quit [Read error: Connection reset by peer]
<shevy> lol
dseitz has joined #ruby
<shevy> I did not know that but that makes it even funnier :)
<ytti> anyone aware of YANG parsers/libraries for ruby?
<shevy> the bot is a killer
<shevy> is there a kick statistic?
<ytti> i wonder if it would make more sense to start from scartch or add YANG support to nokogiri
<shevy> YIN YANG?
<ytti> i thikn the XML format of YANG is called YIN, but not 100% sure
<shevy> eeks XML
bruno- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bruno- is now known as Guest44111
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
ramfjord has joined #ruby
sgambino has joined #ruby
goggy has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 276 seconds]
rshetty has joined #ruby
Mohan_ has joined #ruby
Feyn has quit [Quit: Leaving]
rshetty has quit [Remote host closed the connection]
Rhainur has joined #ruby
Merdam has quit [Quit: Saliendo]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
jottr has joined #ruby
Squarepy has joined #ruby
rshetty has joined #ruby
Pupeno has quit [Quit: Leaving...]
juanpablo___ has joined #ruby
RegulationD has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
iasoon has quit [Quit: WeeChat 1.1.1]
iasoon has joined #ruby
Mohan has joined #ruby
DEA7TH has joined #ruby
Mohan is now known as Guest60459
juanpablo___ has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
psy__ has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
rshetty has quit [Remote host closed the connection]
Devoth has joined #ruby
Aryasam has joined #ruby
rshetty has joined #ruby
panga has joined #ruby
psy__ has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
iasoon has quit [Ping timeout: 265 seconds]
Aryasam has quit [Client Quit]
tus has joined #ruby
ponga has quit [Ping timeout: 256 seconds]
rshetty has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
Guest60459 has quit [Ping timeout: 252 seconds]
BigRonnieRon has joined #ruby
chinmay_dd has joined #ruby
<gr33n7007h> class Foo; attr_accessor :arg; def initialize &b; instance_eval &b; end; end; Foo.new { arg = "whatever" } <=# How can I do this with doing self.arg?
iasoon has joined #ruby
Mohan_ has joined #ruby
thumpba has joined #ruby
<jhass> you can't
<gr33n7007h> jhass: ok wasn't sure if it was possible or not thanks
<jhass> no, lvar always wins over method call
<Devoth> How can you test and assign in one statement in Ruby, equivalent of PHP's: $a = (condition) ? b : c ;
rom1504_ is now known as rom1504
<gr33n7007h> Devoth: same way :)
<jhass> yeah, just remove the $ and the () :P
piotrj has joined #ruby
<jhass> and the ;
<Devoth> gr33n7007h: didn't expect that, thanks :)
<Devoth> ty guys
<apeiros> jhass: can. but only with cheating. use *send ;-)
goggy has quit [Ping timeout: 264 seconds]
* jhass sighs
<apeiros> little known fun fact - private foo= methods can be invoked with self.foo= (unlike almost all other private methods)
kirun has joined #ruby
<apeiros> (that's where I used to use send until I learned that little fact)
<gr33n7007h> ah, didn't know that :)
lavros has quit [Ping timeout: 256 seconds]
lavros has joined #ruby
ta has quit [Remote host closed the connection]
iasoon has quit [Ping timeout: 276 seconds]
sankaber has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
<apeiros> Devoth: ternary expression exists in quite a lot of languages
<apeiros> Devoth: in ruby you can even use plain if/else for that: a = if condition then b else c end
astrobunny has joined #ruby
<apeiros> personally with concise condition and expression, I prefer ternary, though.
<Devoth> apeiros: nice, thanks
lidenskap has joined #ruby
Mohan_ has joined #ruby
Lingos has joined #ruby
ta has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
dkphenom has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
lidenskap has quit [Ping timeout: 276 seconds]
Oog has quit []
sankaber has quit [Ping timeout: 265 seconds]
thatslifeson has joined #ruby
tomphp has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
DigitallyBorn has joined #ruby
DigitallyBorn is now known as Guest49970
mgberlin has joined #ruby
rshetty has joined #ruby
Mohan_ has joined #ruby
dfinninger has joined #ruby
workmad3 has joined #ruby
soulcake has quit [Quit: Quack.]
piotrj has quit [Remote host closed the connection]
lavros_ has joined #ruby
soulcake has joined #ruby
Soda has quit [Remote host closed the connection]
lavros has quit [Ping timeout: 248 seconds]
banister has joined #ruby
tubuliferous has joined #ruby
sagittarian has joined #ruby
dfinninger has quit [Ping timeout: 248 seconds]
stef204 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
ag4ve_ has quit [Ping timeout: 245 seconds]
edwinvdg_ has quit [Remote host closed the connection]
ki0 has joined #ruby
edwinvdgraaf has joined #ruby
tonyhb has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
Rennex_ is now known as Rennex
doodlehaus has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
tus has quit [Read error: Connection reset by peer]
sankaber has quit [Ping timeout: 256 seconds]
fo2x has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
ndrei has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
a5i has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
rshetty has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
elaptics` is now known as elaptics
i8igmac has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest20802
JDiPierro has joined #ruby
PaulCapestany has joined #ruby
tomphp_ has joined #ruby
rshetty has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
rshetty has joined #ruby
thatslifeson has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 252 seconds]
twistedpixels is now known as zz_twistedpixels
sagittarian has quit [Ping timeout: 252 seconds]
ki0 has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
plutonic has quit [Quit: plutonic]
fo2x has joined #ruby
zz_twistedpixels is now known as twistedpixels
rshetty has quit [Ping timeout: 256 seconds]
_2_Ajanay has joined #ruby
nhhagen has quit [Remote host closed the connection]
<_2_Ajanay> sup
<jhass> ?whatschat _2_Ajanay
<ruboto> _2_Ajanay, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
<dreinull75> I added a null object to a class when there's nil. So instead of User.address.street and getting Nil I get a Null object. However, I want a default String instead if nothing else is requested. Any ideas?
Guest20802 has quit [Ping timeout: 250 seconds]
<_2_Ajanay> u can tell me what to do
<jhass> _2_Ajanay: please remove the app you're currently using and give it a 1-star rating
<_2_Ajanay> lol
<_2_Ajanay> s lol
<jhass> _2_Ajanay: or are you here because you have a quesiton about the Ruby programming language?
Mohan_ has joined #ruby
<_2_Ajanay> no
<jhass> see, no you got the reason why you should do that
<jhass> *now
bkxd has joined #ruby
<_2_Ajanay> k lol lol lol
sevenseacat has quit [Quit: Me dun like you no more.]
<_2_Ajanay> I will come back to u l going and give my sister my ipad
<jhass> no, we're going to more effectively ban that client now
tkuchiki has quit [Remote host closed the connection]
goggy has joined #ruby
tkuchiki has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sagittarian has joined #ruby
elaptics is now known as elaptics_away
thumpba has quit [Remote host closed the connection]
_2_Ajanay has quit [Remote host closed the connection]
davedev24_ has joined #ruby
goggy has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Ping timeout: 276 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
rshetty has joined #ruby
codecop has joined #ruby
Filete has joined #ruby
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
piotrj has quit [Remote host closed the connection]
mgberlin has quit [Remote host closed the connection]
nhhagen has joined #ruby
tonyhb has quit [Quit: peace]
ndrei has quit [Ping timeout: 256 seconds]
relix has joined #ruby
lidenskap has joined #ruby
sjuxax has joined #ruby
rbennacer has joined #ruby
cvtsx has joined #ruby
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
<sjuxax> Hi. I have a deeply nested hash like {a: 1, b: {c: {d: {val: 1, cal: 2}}}}. I want a loop that will take that and give me a dotted path to each individual terminus, so in this case, ['a', 'b.c.d.val', 'b.c.d.cal']. Here's what I have so far. http://dpaste.com/07WF9HE
lidenskap has quit [Ping timeout: 245 seconds]
sagittarian has joined #ruby
<shevy> jhass I can see that you no longer accept dating here :(
<shevy> sjuxax that yields the desired output?
Mohan_ has quit [Ping timeout: 248 seconds]
<sjuxax> shevy, no, because it shows the whole trail; i just want the final terminal points
goggy has joined #ruby
roshanavand1 has quit [Quit: roshanavand1]
Mohan_ has joined #ruby
<shevy> hmm
gagrio has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
Asher has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagittarian has quit [Ping timeout: 252 seconds]
dfinninger has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
lukequaint has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lukequaint has quit [Read error: Connection reset by peer]
sankaber has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
<jhass> sjuxax: not pretty but heh http://paste.mrzyx.de/p93zzv9io
soulcake has quit [Quit: Quack.]
dopie has joined #ruby
banister has joined #ruby
soulcake has joined #ruby
qwertme has joined #ruby
RegulationD has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest84436
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sjuxax> jhass: Thanks, that's cool! Trying to figure out what I missed. Can you give me a simple overview? I'm obviously not that smart.
sagittarian has joined #ruby
<jhass> tbh I didn't bother to try to understand your approach :P
juanpablo___ has quit [Ping timeout: 244 seconds]
<jhass> I'm recursively removing the nesting
piotrj has joined #ruby
<jhass> {a: {b: {c: 1}} becomes {"a.b" => {c: 1}} becomes {"a.b.c" => 1}
<jhass> until there are no longer any hashes in the values
RegulationD has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
<jhass> sjuxax: btw "string #{interpolation}" already calls to_s for you
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
<sjuxax> hmm ok, thanks for the explanation
<jhass> and .to_s returns a string, so no need to "convert" it into a string with "#{x}"
<apeiros> mhm, "#{var}" and "…#{var.to_s}…" are some of my pet peeves
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> s/var/expr/
tonyhb has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rejerson69 has quit [Remote host closed the connection]
qwertme has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
ki0 has joined #ruby
hollywood has joined #ruby
fred1807 has joined #ruby
piotrj has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
aryaching has quit [Read error: No route to host]
piotrj has joined #ruby
<fred1807> I am trying to install this ruby app, on my debian machine: https://github.com/sunny/so-nice I apt-get installed Ruby and then Rubygems. Now If I write $gem install sonice I just get  no response at all
ndrei has joined #ruby
postmodern has quit [Quit: Leaving]
<jhass> fred1807: the $ is meant to indicate your shell prompt, it's not part of the command
starless has joined #ruby
<jhass> press Ctrl+C a couple of times and try gem install sonice
<fred1807> yes, I am going directly for: gem install sonice
mhib has joined #ruby
aryaching has joined #ruby
jottr has joined #ruby
havenwood has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
<fred1807> ERROR: Error installing sonice:
<fred1807> ERROR: Failed to build gem native extension.
rshetty has quit [Remote host closed the connection]
<fred1807> i did : sudo gem install sonice
<gr33n7007h> fred1807: ruby-dev installed?
Guest84436 has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
<fred1807> installed ruby dev now.... trying again
nobitanobi has joined #ruby
Mohan_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
jottr has joined #ruby
sevvie has joined #ruby
Devoth has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noname3 has quit [Ping timeout: 256 seconds]
noname2 has quit [Ping timeout: 255 seconds]
n008f4g_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has joined #ruby
<fred1807> Nice it is runing, thank you
<fred1807> Do you belive I could get this running on a raspberry pi, without any problems with dependencies?
panga has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
sevvie has joined #ruby
ascarter has joined #ruby
freerobby has quit [Quit: Leaving.]
Meow-J has joined #ruby
rbennacer has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
sevvie has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Mohan_ has quit [Ping timeout: 272 seconds]
Mohan_ has joined #ruby
tubuliferous has joined #ruby
balazs has quit [Remote host closed the connection]
icarus has joined #ruby
psy__ has quit [Ping timeout: 248 seconds]
sagittarian has quit [Ping timeout: 252 seconds]
thatslifeson has joined #ruby
piotrj has joined #ruby
noname3 has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
Matachines has joined #ruby
rbennacer has quit [Remote host closed the connection]
sevvie has joined #ruby
mhib has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
Fingel has joined #ruby
qwertme has joined #ruby
coderhs has joined #ruby
tus has joined #ruby
dfinninger has joined #ruby
rkazak has joined #ruby
julian-delphiki has joined #ruby
Filete has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has joined #ruby
Joufflu_ has joined #ruby
flak has joined #ruby
Contigi777 has joined #ruby
laurentide_ has joined #ruby
flak is now known as Guest30368
mhib has joined #ruby
tonyhb_ has joined #ruby
Spami_ has joined #ruby
ahmetkapikiran has joined #ruby
adzuci has joined #ruby
workmad3 has joined #ruby
fred1807 has quit [Quit: fred1807]
Mohan_ has quit [Ping timeout: 256 seconds]
decoponyo has joined #ruby
relix has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab_ has joined #ruby
Mohan has joined #ruby
rgs_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
jasonmit has joined #ruby
Mohan is now known as Guest41039
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
rbennacer has joined #ruby
cjk101010_ has joined #ruby
kstuart_ has joined #ruby
oz` has joined #ruby
justinmcp_ has joined #ruby
bennyklo2z has joined #ruby
DEA7TH_ has joined #ruby
ixx has joined #ruby
cloaked1_ has joined #ruby
crazysim_ has joined #ruby
contradictioned_ has joined #ruby
sagittarian has joined #ruby
multi_io_ has joined #ruby
cescalante has joined #ruby
ixx is now known as Guest72244
balazs has joined #ruby
Squarepy has quit [Quit: Leaving]
matu has joined #ruby
Fingel has quit [Ping timeout: 240 seconds]
programm1 has joined #ruby
tskogber1 has joined #ruby
sirecote_ has joined #ruby
_jasonmit has quit [Ping timeout: 246 seconds]
moted has quit [Ping timeout: 246 seconds]
patronus has quit [Read error: Connection reset by peer]
cjk101010 has quit [Ping timeout: 246 seconds]
galeido has quit [Ping timeout: 246 seconds]
lloyd has quit [Ping timeout: 246 seconds]
sirecote has quit [Ping timeout: 246 seconds]
crazysim has quit [Excess Flood]
zachrab has quit [Ping timeout: 246 seconds]
vifino has quit [Ping timeout: 246 seconds]
DarthGandalf has quit [Ping timeout: 246 seconds]
programmerq has quit [Ping timeout: 246 seconds]
meshugga1 has quit [Ping timeout: 246 seconds]
Lildirt has quit [Ping timeout: 246 seconds]
kiki_lamb has quit [Ping timeout: 246 seconds]
dreinull75 has quit [Ping timeout: 246 seconds]
decoponio has quit [Ping timeout: 246 seconds]
Mekkis_ has quit [Ping timeout: 246 seconds]
oz has quit [Ping timeout: 246 seconds]
anekos has quit [Ping timeout: 246 seconds]
justinmcp has quit [Ping timeout: 246 seconds]
vifino has joined #ruby
bkutil has quit [Ping timeout: 246 seconds]
cescalante_ has quit [Ping timeout: 246 seconds]
matugm has quit [Ping timeout: 246 seconds]
contradictioned has quit [Ping timeout: 246 seconds]
patteh has quit [Ping timeout: 246 seconds]
tskogberg has quit [Ping timeout: 246 seconds]
madhatter has quit [Ping timeout: 246 seconds]
_5moufl has quit [Ping timeout: 246 seconds]
sarlalian has quit [Ping timeout: 246 seconds]
kstuart has quit [Ping timeout: 246 seconds]
flori_ has quit [Ping timeout: 246 seconds]
jamo_ has quit [Ping timeout: 246 seconds]
nitrix has quit [Ping timeout: 246 seconds]
n3b- has quit [Ping timeout: 246 seconds]
crazysim_ is now known as crazysim
oz` is now known as oz
raddazong has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
n3b has joined #ruby
meshugga has joined #ruby
galeido has joined #ruby
blizzy has joined #ruby
kloeri_ has joined #ruby
bkutil has joined #ruby
flori has joined #ruby
_5moufl has joined #ruby
cranq has quit [Read error: Connection reset by peer]
jamo_ has joined #ruby
anekos has joined #ruby
patteh has joined #ruby
DarthGandalf has joined #ruby
cranq has joined #ruby
Lildirt has joined #ruby
sarlalian has joined #ruby
lloyd has joined #ruby
ujjain- has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
kadoppe_ has joined #ruby
opes_ has joined #ruby
aytch_ has joined #ruby
yosafbridge` has joined #ruby
soosfarm_ has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
Urocyon_ has joined #ruby
m8 has quit [Quit: Sto andando via]
scottyme- has joined #ruby
Joufflu_ has quit [*.net *.split]
starless has quit [*.net *.split]
tonyhb has quit [*.net *.split]
Spami has quit [*.net *.split]
DEA7TH has quit [*.net *.split]
rippa has quit [*.net *.split]
Hijiri has quit [*.net *.split]
d[^_^]b has quit [*.net *.split]
vikram_ has quit [*.net *.split]
cbetta has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
bestie has quit [*.net *.split]
n1ftyn8 has quit [*.net *.split]
yo61 has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
danoo_ has quit [*.net *.split]
multi_io has quit [*.net *.split]
njection has quit [*.net *.split]
nahtnam has quit [*.net *.split]
laurentide has quit [*.net *.split]
cloaked1 has quit [*.net *.split]
Joufflu has quit [*.net *.split]
crdpink has quit [*.net *.split]
Nowaker has quit [*.net *.split]
kadoppe has quit [*.net *.split]
mjmac has quit [*.net *.split]
Contigi has quit [*.net *.split]
kwd has quit [*.net *.split]
hostess has quit [*.net *.split]
Vile` has quit [*.net *.split]
bean has quit [*.net *.split]
psmolen has quit [*.net *.split]
akkad has quit [*.net *.split]
exadeci has quit [*.net *.split]
niko has quit [*.net *.split]
cschneid has quit [*.net *.split]
Mia has quit [*.net *.split]
neektza has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
swills has quit [*.net *.split]
rgs has quit [*.net *.split]
psyprus has quit [*.net *.split]
soosfarm has quit [*.net *.split]
larissa has quit [*.net *.split]
Ikri has quit [*.net *.split]
adzuci_ has quit [*.net *.split]
sanguisdex has quit [*.net *.split]
ujjain has quit [*.net *.split]
aytch has quit [*.net *.split]
ping-pong has quit [*.net *.split]
xxi has quit [*.net *.split]
arminius has quit [*.net *.split]
jouty has quit [*.net *.split]
jalcine has quit [*.net *.split]
Urocyon has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
bennyklo1z has quit [*.net *.split]
skarn_ has quit [*.net *.split]
Paradox has quit [*.net *.split]
daxroc has quit [*.net *.split]
Seich has quit [*.net *.split]
roqo has quit [*.net *.split]
lpaste has quit [*.net *.split]
opes has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
sfr^ has quit [*.net *.split]
waxjar has quit [*.net *.split]
ChasedSpade has quit [*.net *.split]
blackjid has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
LBRapid has quit [*.net *.split]
universa1 has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
Nightmare has quit [*.net *.split]
tylersmith has quit [*.net *.split]
pskosinski has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
zzak has quit [*.net *.split]
terrellt has quit [*.net *.split]
Klumben has quit [*.net *.split]
barkerd427 has quit [*.net *.split]
scottyme- is now known as scottymeuk
aytch_ is now known as aytch
Urocyon_ is now known as Urocyon
Mekkis has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
Nowaker has joined #ruby
DerisiveLogic has joined #ruby
swills has joined #ruby
Guest30368 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
skarn has joined #ruby
rippa has joined #ruby
Vile` has joined #ruby
Guest41039 has quit [Ping timeout: 248 seconds]
rshetty has joined #ruby
Guest26031 has joined #ruby
akkad has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingos has quit [Quit: Be back later ...]
Mohan_ has joined #ruby
fo2x has quit [Ping timeout: 276 seconds]
kloeri_ is now known as kloeri
jeramy_s has joined #ruby
cschneid has joined #ruby
Squarepy has joined #ruby
patronus has joined #ruby
goggy has quit [Ping timeout: 248 seconds]
ghr has quit [Ping timeout: 250 seconds]
ping-pong has joined #ruby
xlii has joined #ruby
decoponyo is now known as decoponio
programm1 is now known as programmerq
jouty has joined #ruby
programmerq has quit [Changing host]
programmerq has joined #ruby
niko has joined #ruby
synfin_ has joined #ruby
spacemud_ has joined #ruby
ebbflowgo has joined #ruby
sanguisdex has joined #ruby
diegoviola has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
xsdg has joined #ruby
smooth_p1nguin has joined #ruby
crowell_ has joined #ruby
kke has joined #ruby
balazs has quit [Remote host closed the connection]
atomi_ has joined #ruby
Cope_ has joined #ruby
thatslif_ has joined #ruby
greenbagels has joined #ruby
peterhu_ has joined #ruby
Exlee_ has quit [Ping timeout: 246 seconds]
ixti has quit [Ping timeout: 246 seconds]
zz_Outlastsheep has quit [Ping timeout: 246 seconds]
atomi has quit [Ping timeout: 246 seconds]
xsdg_ has quit [Ping timeout: 246 seconds]
spacemud has quit [Ping timeout: 246 seconds]
synfin has quit [Ping timeout: 246 seconds]
aep has quit [Ping timeout: 246 seconds]
smooth_penguin has quit [Ping timeout: 246 seconds]
_5moufl has quit [Ping timeout: 246 seconds]
kke_ has quit [Ping timeout: 246 seconds]
Adran has quit [Ping timeout: 246 seconds]
Cope has quit [Ping timeout: 246 seconds]
peterhu has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 246 seconds]
mnemon has quit [Ping timeout: 246 seconds]
gf3 has quit [Ping timeout: 246 seconds]
crowell has quit [Ping timeout: 246 seconds]
marcellu1 has quit [Ping timeout: 246 seconds]
evident has quit [Ping timeout: 246 seconds]
n3b has quit [Ping timeout: 246 seconds]
spacemud_ is now known as spacemud
dopie has quit [Ping timeout: 256 seconds]
mnemon has joined #ruby
n3b has joined #ruby
marcellus has joined #ruby
evident has joined #ruby
Adran has joined #ruby
aep has joined #ruby
arcanez has quit [Ping timeout: 246 seconds]
arcanez has joined #ruby
doodlehaus has joined #ruby
_5moufl has joined #ruby
psy_ has joined #ruby
gf3 has joined #ruby
ixti has joined #ruby
ki0 has joined #ruby
v0n has joined #ruby
thatslifeson has quit [Ping timeout: 265 seconds]
Brozo has joined #ruby
juanpablo___ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
soulcake has joined #ruby
cscheib_ is now known as cscheib
RegulationD has joined #ruby
fo2x has joined #ruby
ki0 has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
coderhs has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
juanpablo___ has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
icarus has quit [Ping timeout: 264 seconds]
zz_Outlastsheep has joined #ruby
Mohan_ has joined #ruby
icarus has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
RegulationD has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
tvl has joined #ruby
mjmac has joined #ruby
universa1 has joined #ruby
waxjar has joined #ruby
danoo_ has joined #ruby
tvl is now known as tobiasvl
psmolen has joined #ruby
LBRapid has joined #ruby
d[^_^]b has joined #ruby
tkuchiki has joined #ruby
tylersmith has joined #ruby
Joufflu__ has joined #ruby
starless has joined #ruby
Seich has joined #ruby
sfr^ has joined #ruby
lpaste has joined #ruby
larissa has joined #ruby
wookiehangover has joined #ruby
Nightmare has joined #ruby
LBRapid is now known as Guest76504
Paradox has joined #ruby
ChasedSpade has joined #ruby
Hijiri has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
zzak has joined #ruby
Ikri has joined #ruby
terrellt has joined #ruby
nahtnam has joined #ruby
sevvie has joined #ruby
relix has joined #ruby
n1ftyn8 has joined #ruby
kiki_lamb has joined #ruby
jalcine has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Klumben has joined #ruby
blackjid has joined #ruby
Fingel has joined #ruby
kwd has joined #ruby
vcoinminer has joined #ruby
centrx has quit [Ping timeout: 272 seconds]
neektza has joined #ruby
amitchellbullard has joined #ruby
ballPointPenguin has joined #ruby
soulcake has quit [Quit: Quack.]
Mohan_ has quit [Ping timeout: 276 seconds]
hostess has joined #ruby
soulcake has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
cbetta has joined #ruby
bestie has joined #ruby
Mohan_ has joined #ruby
rshetty has quit [Ping timeout: 252 seconds]
Joufflu__ has quit [Read error: Connection reset by peer]
yo61 has joined #ruby
rshetty has joined #ruby
pskosinski has joined #ruby
vikram_ has joined #ruby
exadeci has joined #ruby
ascarter has joined #ruby
johnhamelink has joined #ruby
incomprehensibly has joined #ruby
daxroc has joined #ruby
Fingel has quit [Ping timeout: 276 seconds]
ascarter has quit [Max SendQ exceeded]
Guest44111 has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
a5i has joined #ruby
ascarter has quit [Max SendQ exceeded]
<a5i> If I have a file with an array init
ascarter has joined #ruby
<a5i> how can I assign whats in that file as an array in other ruby file ?
The_Phoenix has joined #ruby
<apeiros> a5i: assign that array to a constant in that file. use the constant in other files.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
Oka has joined #ruby
Mohan_ has quit [Ping timeout: 265 seconds]
giuseppesolinas has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest34667
balazs has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
platzhirsch has quit [Quit: Leaving.]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
crowell_ is now known as crowell
crowell has quit [Changing host]
crowell has joined #ruby
r0x has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Guest34667 has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
vickleton has joined #ruby
ghr has joined #ruby
daynaskully has quit [Ping timeout: 240 seconds]
<a5i> hmm
nobitanobi has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
jalcine has quit [Ping timeout: 256 seconds]
DEA7TH_ is now known as DEA7TH
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
mikekellyio has joined #ruby
dfinninger has joined #ruby
mhib has quit [Ping timeout: 264 seconds]
jalcine has joined #ruby
sak has joined #ruby
DEA7TH has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
thatslif_ is now known as thatslifeson
Mohan_ has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
joonty has quit [Client Quit]
sak has quit [Ping timeout: 245 seconds]
arminius has joined #ruby
CloCkWeRX has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Ellis has joined #ruby
nobitanobi has joined #ruby
simonewestphal has quit [Ping timeout: 248 seconds]
<Ellis> how can i create this array without manually typing out all the elements: [[r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b],r],[b],[r],[b]]
gaussblurinc1 has quit [Quit: Leaving.]
nobitanobi has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 272 seconds]
mhib has joined #ruby
nobitanobi has joined #ruby
piotrj has quit [Remote host closed the connection]
<apeiros> Ellis: that array is invalid?
<Ellis> why
<Ellis> oh the r?
<Ellis> that’s a typo
<apeiros> did you mean just [r],[b],… repeating?
<Ellis> yeah
<Ellis> i tried Array.new((['b'],['r'])*100) but that didn’t work
<apeiros> well, take a look at Array#*
mitchellhenke has joined #ruby
nhhagen has joined #ruby
<apeiros> >> [[1],[2]]*3
<ruboto> apeiros # => [[1], [2], [1], [2], [1], [2]] (https://eval.in/318823)
thatslif_ has joined #ruby
<yxhuvud> there is also cycle:
piotrj has joined #ruby
<yxhuvud> >> [[1], [2]].cycle.take(6)
<ruboto> yxhuvud # => [[1], [2], [1], [2], [1], [2]] (https://eval.in/318824)
xxneolithicxx has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
<apeiros> yupp. though I'd only use it for indefinite repetitions.
<apeiros> hm, actually not true
<Ellis> apeiros: why does that work but not [[‘b’],[‘r’]]*100 work?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> Ellis: that certainly works too
thatslif_ is now known as thatslifeson_
<Ellis> it doesn't
<jhass> (if you use proper quotes)
<Ellis> oh!
gaussblurinc1 has joined #ruby
gaussblurinc1 has quit [Remote host closed the connection]
<Ellis> nice
<apeiros> and for future reference, "doesn't work" is a useless problem description.
<Ellis> word
<gr33n7007h> >> [*[[?r],[?b]].cycle(10)]
<ruboto> gr33n7007h # => [["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], ["r"], ["b"], [ ...check link for more (https://eval.in/318825)
<jhass> gr33n7007h: -1 to ?-literals
thatslifeson has quit [Ping timeout: 240 seconds]
* gr33n7007h hangs head in shame
Igorshp has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bkxd has joined #ruby
metalic has joined #ruby
thatslifeson_ is now known as thatslifeson
metalic has quit [Client Quit]
nhhagen has quit [Ping timeout: 276 seconds]
thumpba has joined #ruby
CloCkWeRX has joined #ruby
Ellis has quit [Quit: Ellis]
icarus has quit [Ping timeout: 250 seconds]
soulcake has quit [Quit: Quack.]
bkxd has quit [Ping timeout: 250 seconds]
<havenwood> gr33n7007h: +1 char literal ;P
<havenwood> 1.8 is dead!
tubuliferous has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest50227
thumpba has quit [Ping timeout: 256 seconds]
mleung has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
yvemath has quit [Remote host closed the connection]
<xxneolithicxx> the telomeres are long on that one unfortunately, it aint dead yet
tubuliferous has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
<apeiros> autoload's concurrency issue has apparently been fixed
<waxjar> apeiros: oh? wasn't aware of that
tonyhb_ has quit [Quit: peace]
<apeiros> happened in 2.0 or 2.1 I think
soulcake has joined #ruby
lordkryss has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
<fred1807> any help for this? ERROR: Could not find a valid gem 'cuba:3.1.0' (>= 0) in any repository
mnemon2 has joined #ruby
<apeiros> fred1807: looks like you shoved gemname and version together
_whitelogger has joined #ruby
<xxneolithicxx> does gem really support "gem install pkg:version" ?
zorak8 has joined #ruby
Mohan_ has joined #ruby
dfoolz has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
Muz_ is now known as Muz
workmad3 has joined #ruby
rocknrollmarc has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
paulcsmith has joined #ruby
<apeiros> xxneolithicxx: no
paulcsmith has quit [Client Quit]
<apeiros> fred1807: look, if you want help, provide information which actually enables us to help. and I still won't go and read that website.
<IceDragon> It should be: gem install cuba --version 3.1.0
<fred1807> I am so far from ruby I wont botther you guys, just toughr it could be a onliner
banister has joined #ruby
<apeiros> IceDragon: we don't even know whether they're installing via gem command or e.g. bundler.
<fred1807> ok Ice, Will try, thanks
tenseiten has joined #ruby
juanpablo___ has joined #ruby
balazs_ has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
ghr has joined #ruby
gazay has joined #ruby
thatslifeson has joined #ruby
<xxneolithicxx> fred1807: change the install script to "while read curLine; do gem install ${curLine}; done < .gems" for a ugly hack fix
Joufflu has joined #ruby
Guest78038 has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
<fred1807> ok, thx
simpleirc has joined #ruby
seitensei has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
<xxneolithicxx> not sure if that will interpolate correctly though i havent tried, you may have to do an eval
<IceDragon> you know what damn it to hell, JUST USE A GEMFILE
<IceDragon> apeiros: The last time I had to use gem directly was to update my system gems
<xxneolithicxx> ^
dopie has joined #ruby
simpleirc has quit [Remote host closed the connection]
yvemath has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
Lissie has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
havenwood has quit []
bruno- has joined #ruby
bruno- is now known as Guest25200
<nobitanobi> morning
<shevy> nobitanobi you are my katana
<nobitanobi> I know I am
<nobitanobi> but thanks for reminding
RegulationD has quit [Ping timeout: 264 seconds]
yuung has joined #ruby
<yuung> how can i use a variable in a regex, and then capture a match in that regex? for example, something like: /#{var}=(.*?)/, where 'var' is a variable and (.*?) is the group I'd like to capture
<nobitanobi> How can I use some metaprogramming to define these guys: https://gist.github.com/novito/6a9a73123ca3ea7e4de4 - Say I have an array with colors [:red, :blue, :green] ?
<apeiros> yuung: what's your problem with that? should work just like that. unless you're leaving something out…
<jhass> nobitanobi: just public_send
<nobitanobi> jhass: let's try! thanks
<apeiros> >> var = "hello"; reg = /#{var}=(.*?)/; "foohello=bar".match(reg)
<ruboto> apeiros # => #<MatchData "hello=" 1:""> (https://eval.in/318827)
<yuung> apeiros, I haven't tried it - would var get placed there correctly?
<jhass> nobitanobi: actually not even
lidenskap has joined #ruby
<yuung> apeiros, wow. alright thanks!
<nobitanobi> jhass: not even?
<jhass> nobitanobi: .each do |color| trait color do color_id Color::TYPES[color]
<IceDragon> nobitanobi: [:red, :green, :blue].each { |sym| trait(sym) { Color::TYPES[sym] } }
<IceDragon> jhass: NINJA'D D8
<apeiros> yuung: note that .*? will happily match an empty string
<jhass> IceDragon: you lag again? 10 seconds here :P
r0x has quit [Quit: Sto andando via]
<IceDragon> apeiros: just .* would have done the same
<nobitanobi> thanks
<apeiros> IceDragon: just that .*? will quite often match an empty string ;-)
<yuung> apeiros that's fine, the regex won't be used for production code, just some testing
<IceDragon> apeiros: O: can you give me an example? (on rubular.com)
<apeiros> IceDragon: in short: unless you put something to the right of .*?, it will *always* match the empty string.
ki0 has joined #ruby
<IceDragon> >> "red=".match(/red=(.*?)/)[1]
<ruboto> IceDragon # => "" (https://eval.in/318828)
<IceDragon> >> "red=".match(/red=(.*)/)[1]
<ruboto> IceDragon # => "" (https://eval.in/318829)
<IceDragon> ┐( ̄ヮ ̄)┌
Mohan_ has quit [Ping timeout: 265 seconds]
mgberlin has joined #ruby
lidenskap has quit [Ping timeout: 250 seconds]
<apeiros> >> "red=whateverishereitwontbematched".match(/red=(.*)/)[1]
<ruboto> apeiros # => "whateverishereitwontbematched" (https://eval.in/318830)
<apeiros> hu?
<apeiros> ah
<apeiros> copied the wrong one, lol
luriv has joined #ruby
<apeiros> >> "red=whateverishereitwontbematched".match(/red=(.*?)/)[1]
<IceDragon> >> data="red= "; [(data.match(/red=(.*?)/)||[])[1], (data.match(/red=(.*)/)||[])[1]/)
<ruboto> apeiros # => "" (https://eval.in/318831)
<ruboto> IceDragon # => /tmp/execpad-aaf366709db6/source-aaf366709db6:2: syntax error, unexpected ')' (https://eval.in/318832)
* IceDragon facepalms
<IceDragon> >> data="red= "; [(data.match(/red=(.*?)/)||[])[1], (data.match(/red=(.*)/)||[])[1]/)]
<ruboto> IceDragon # => /tmp/execpad-088050bf60de/source-088050bf60de:2: syntax error, unexpected ')' ...check link for more (https://eval.in/318833)
<IceDragon> sigh
<IceDragon> aha
Mohan_ has joined #ruby
CloCkWeRX has joined #ruby
<IceDragon> >> data="red= "; [(data.match(/red=(.*?)/)||[])[1], (data.match(/red=(.*)/)||[])[1]]
<ruboto> IceDragon # => ["", " "] (https://eval.in/318834)
<apeiros> IceDragon: i.e. in /red=(.*?)/, that (.*?) is pointless. it'll always match "" (as long as the whole regex matches)
<IceDragon> apeiros: I get what you mean now
<apeiros> you could just as well write /red=()/
Lissie has quit []
dopie has quit [Quit: This computer has gone to sleep]
<IceDragon> coolio
<IceDragon> Though I'd usually just abuse active_support after matching x:
<IceDragon> str.presence
ki0 has quit [Remote host closed the connection]
<pipework> egh
soulcake has quit [Quit: Quack.]
dopie has joined #ruby
tkuchiki has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
swgillespie has joined #ruby
thatslif_ has joined #ruby
sevvie has quit [Remote host closed the connection]
soulcake has joined #ruby
sevvie has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
Guest25200 has quit [Ping timeout: 264 seconds]
soulcake has quit [Client Quit]
gazay has quit [Quit: gazay]
digifiv5e_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
FernandoBasso has quit [Quit: leaving]
Fingel has joined #ruby
tenseiten has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
ohaibbq has joined #ruby
blizzy has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
Mon_Ouie has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
devlops_ has joined #ruby
lidenskap has joined #ruby
mitchellhenke has joined #ruby
n008f4g_ has joined #ruby
mgberlin has quit [Remote host closed the connection]
Fingel has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 248 seconds]
balazs_ has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
Asher has quit [Ping timeout: 255 seconds]
Mohan_ has quit [Ping timeout: 272 seconds]
mleung has quit [Quit: mleung]
Mohan_ has joined #ruby
Asher has joined #ruby
banister has joined #ruby
ascarter has joined #ruby
zzing has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
devlops_ has quit [Remote host closed the connection]
Vivex has quit [Read error: Connection reset by peer]
thatslif_ has quit []
nhhagen has joined #ruby
thatslifeson has joined #ruby
aryaching has quit []
mitchellhenke has quit [Quit: Computer has gone to sleep.]
yuung has quit [Ping timeout: 245 seconds]
n3b has joined #ruby
havenwood has quit [Remote host closed the connection]
yuung has joined #ruby
Mohan_ has quit [Ping timeout: 255 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
luriv has quit [Remote host closed the connection]
marienz has joined #ruby
Mohan has joined #ruby
Filete has joined #ruby
Mohan is now known as Guest77472
ghr has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaussblurinc1 has joined #ruby
rtlong has joined #ruby
Squarepy has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
rtlong has left #ruby [#ruby]
piotrj has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
luriv has joined #ruby
dcarper has joined #ruby
_blizzy_ has joined #ruby
soulcake has joined #ruby
Guest77472 has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
Mohan_ has joined #ruby
sarkyniin has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarkyniin> hey
lidenskap has quit [Remote host closed the connection]
<sarkyniin> is it possible, using shikashi
<sarkyniin> to allow an entire module to be used?
Soda has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
mitchellhenke has joined #ruby
<sarkyniin> I want to allow user input for a !calculate command on my bot
<sarkyniin> and I'd like the Math module
ki0 has joined #ruby
freerobby has quit [Quit: Leaving.]
<fred1807> can I use this: https://github.com/hooktstudios/sinatra-export to get the static files from this web application https://github.com/sunny/so-nice/tree/master/lib/sonice ?
jottr has joined #ruby
davedev2_ has joined #ruby
<fred1807> why would someone add another layer on top of html?
davedev2_ has quit [Client Quit]
<pipework> Because HTML is just another layer on top of another thing. Turtles, my friend, turtles the whole way down.
digifiv5e_ has quit [Changing host]
digifiv5e_ has joined #ruby
digifiv5e_ is now known as daynaskully
davedev24_ has quit [Ping timeout: 272 seconds]
daynaskully is now known as digifiv5e
lfox has joined #ruby
fred1807 has quit [Quit: fred1807]
jottr has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
JDiPierro has joined #ruby
atmosx has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
argoneus is now known as Maruinslun
Maruinslun is now known as argoneus
platosha has joined #ruby
bluOxigen has joined #ruby
tubuliferous has joined #ruby
<atmosx> aloha
Mohan_ has joined #ruby
mhib has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
fred1807 has joined #ruby
tubuliferous has quit [Ping timeout: 264 seconds]
<fred1807> Turtles?
<fred1807> whats beneath html?
<pipework> turtles.
nobitanobi has quit [Remote host closed the connection]
mtakkman has joined #ruby
Asher has joined #ruby
<apeiros> fred1807: depends on how you look at it. SGML for example.
RegulationD has quit [Ping timeout: 250 seconds]
<fred1807> ok, lets go down to memory language
<fred1807> html is what the browser will read. This app gotta generate html a some point
<pipework> 'memory language'?
<fred1807> hardware
Mohan_ has quit [Ping timeout: 272 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<fred1807> is it tru or not? how the browser see the web interface generated by this app?
cornfeedhobo has joined #ruby
<pipework> I don't think all the participants in this discussion are well informed enough on the topic to be discussing it with any modicum of clarity.
<pipework> But yeah, an HTTP server might serve HTML, and it has to get it from somewhere.
ghr has quit [Ping timeout: 240 seconds]
<fred1807> if you say HTML is on top of SGML, we could het down to say SGML is on top of the wedtern alphabet
Mohan_ has joined #ruby
<fred1807> but no, the browser reads html
<apeiros> there was an awesome video about how things are simple - or actually not, if you go down far enough. and far enough is usually just two or three layers of abstraction away… stuff like typing on a keyboard…
<fred1807> so this haml thing , is a layer on my way
<fred1807> apeiros: Sure,
<fred1807> but for web, we have a specific reader, the brwoser
scruple has joined #ruby
<fred1807> browser want html, whats .js
<fred1807> *wants
<fred1807> browser can read .jpg
<fred1807> browser commands
<fred1807> this haml thing, browser dont like
<apeiros> "to say SGML is on top of the wedtern alphabet" ¿que?
<fred1807> browser gets mad
<apeiros> the browser never sees haml
<fred1807> western alphabet
<fred1807> abcdefgijhlmn
<fred1807> it is a code/language too
<apeiros> haml is a template language and is rendered to html
<pipework> Perhaps if we didn't wax philosophical, it might lead to a more productive conversation about what you're really wanting to learn.
<apeiros> (or xml)
chinmay_dd has joined #ruby
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
serivich has joined #ruby
yuung has quit [Ping timeout: 248 seconds]
yuung has joined #ruby
<fred1807> ok, This So Nice Interface https://github.com/sunny/so-nice Is really so nice. And I want to use it with my MPD (music player server) on a raspberry. But I am trying to get only what I really need on my raspberry image, to make it sleek, small footprint and nice. I already have a nginx on it, I dont want to install this monster hunger for dependecies, like this app is. I just want its HTML files, so I can adapt all its commands to MPD-PHP.class, wich is a
<fred1807> file class to control the MPD player (This So-Nice app so far uses 2 complete dependencies to talk with MPD, and It is made to talk to many other music players at the same time) I just juse mpd. So I want to get this cool, and nice, minimal interface, with its nice auto backround effect, and use it for my raspberry to serve, via nginx, a nice a sleek mpd interface :)
lidenskap has joined #ruby
<fred1807> It has the full css on it. But I cant understand the html/haml code, to try to recreated it
<apeiros> you're out of luck
<apeiros> this is not some static html you can copy
dfinninger has joined #ruby
<apeiros> it's an app. the html is dynamically generated.
<fred1807> Yes, but all we got is a play/stop/next buttons and a backround with auto fecth image . So why make things hard likes this? It could be just a html
<fred1807> with .js
<apeiros> oh so you know how one can simply do this? then go and write that simple software.
mitchellhenke has joined #ruby
<fred1807> and node.js or py or php or whatever on server
JDiPierro has quit [Remote host closed the connection]
<fred1807> apeiros: There are many MPD controlers, made with mpd-php.class, that need 3 files (and php dependencie) the same with python, node.js.... But they are all ugly
<fred1807> and full of controls
tessi_zz has quit [Ping timeout: 256 seconds]
<fred1807> This one is just what I need: play, stop, forward, volume
Lucky__ has joined #ruby
Lucky__ has quit [Client Quit]
havenwood has joined #ruby
Lucky__ has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeramy_s has joined #ruby
<fred1807> it is the most beautiful MPD web interface ever
<havenwood> fred1807: MPD?
<fred1807> Music Player Deamon
tessi_zz has joined #ruby
<fred1807> the one and only music player and databse you will ever need in your life
<havenwood> Ah, not Model, Pudding, Controller.
<havenwood> Err, D.
Guest49970 has quit [Changing host]
Guest49970 has joined #ruby
Guest49970 is now known as DigitallyBorn
<pipework> havenwood: Mountaindew, Pudding, Cake.
<wasamasa> doofus
<havenwood> Oh how I prefer Pie to Cake.
<havenwood> Pie!
<havenwood> Let them eat pie...
<pipework> havenwood: Pie or pudding?
<havenwood> pipework: Pie!
<pipework> havenwood: I guess if it's banana cream...
Diabolik has quit [Excess Flood]
<havenwood> pipework: I like the word pudding better than the substance. Like pudd'n!
Diabolik has joined #ruby
<pipework> havenwood: puddin' the lime in the coconut?
vifino has joined #ruby
<havenwood> Drink the bowl up!
<fred1807> lime and cononut
bluOxigen has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gmas has quit [Quit: WeeChat 1.1.1]
f3lp has joined #ruby
<fred1807> this So-Nice also looks shit in mobile Io. Another reason to stay with propoer html/js
<havenwood> So-Nice?
goggy has joined #ruby
<fred1807> So-Nice MPD interface made in Ruby Sinitra Haml
Igorshp has joined #ruby
swgillespie has joined #ruby
Igorshp has quit [Remote host closed the connection]
<wasamasa> I bet you could have written "the most beautiful MPD web interface ever" in the time you've ranted about the other existing ones
swgillespie has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
swgillespie has joined #ruby
soulcake has quit [Quit: Quack.]
hollywood has quit [Quit: Leaving]
swgillespie has quit [Read error: Connection reset by peer]
ki0 has quit [Remote host closed the connection]
<wasamasa> too bad
<pipework> wasamasa: Yeah, but that doesn't necessarily mean it'd be that beautiful anyways.
<wasamasa> pipework: in their eyes it would be
<apeiros> been a while since I've heard torrini
<wasamasa> pipework: sunk cost fallacy and whatnot
<pipework> wasamasa: Maybe not having a web interface is the most beautiful thing?
Matachines has joined #ruby
juanpablo___ has joined #ruby
<wasamasa> pipework: you're a developer, you should know this :P
<pipework> I feel that way about git things all the time.
<pipework> the web interfaces and all that noise.
Matachines has quit [Client Quit]
The_Phoenix has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
lxsameer has quit [Quit: Leaving]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
* wasamasa is using magit most of the time
* havenwood uses magic most of the time
<wasamasa> havenwood: lend me your magic dust
<havenwood> wasamasa: sprikled
jenrzzz has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
juanpablo___ has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
swgillespie has joined #ruby
<fred1807> pipework: Maybe not having a web interface is the most beautiful thing . Yes
lidenskap has quit [Remote host closed the connection]
Juanchito has joined #ruby
jcdesimp has joined #ruby
lidenskap has joined #ruby
lkba has joined #ruby
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
ismail_ has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
sarkyniin has quit [Ping timeout: 256 seconds]
zorak8 has quit [Quit: Leaving]
Mohan has joined #ruby
ismail_ has left #ruby [#ruby]
Mohan is now known as Guest73937
swgillespie has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
queequeg1 has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
swgillespie has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
swgillespie has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
swgillespie has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: parting / quiting]
jottr has joined #ruby
swgillespie has joined #ruby
icarus has joined #ruby
icarus has quit [Changing host]
icarus has joined #ruby
Guest73937 has quit [Ping timeout: 256 seconds]
yuung has quit [Quit: Leaving]
ghr has quit [Ping timeout: 240 seconds]
gaussblurinc1 has quit [Ping timeout: 272 seconds]
Mohan_ has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
PhantomSpank has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
swgillespie has quit [Read error: Connection reset by peer]
jimms has joined #ruby
sarkyniin has joined #ruby
lidenskap has quit [Remote host closed the connection]
jcdesimp has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
kerrizor has joined #ruby
blackmesa has joined #ruby
swgillespie has quit [Read error: Connection reset by peer]
sarkyniin has quit [Client Quit]
Aswebb_ has joined #ruby
Spami has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
blackmesa has quit [Ping timeout: 250 seconds]
ki0 has joined #ruby
_djbkd has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
a346 has joined #ruby
tkuchiki has joined #ruby
sohrab has joined #ruby
x1337807x has joined #ruby
weemsledeux has joined #ruby
Mohan_ has joined #ruby
pengin_ has quit [Read error: Connection reset by peer]
pengin has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
jcdesimp has joined #ruby
soulcake has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
serivich has quit [Ping timeout: 272 seconds]
codecop has quit [Read error: Connection reset by peer]
shoutsid has quit [Remote host closed the connection]
ascarter has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 250 seconds]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
sagittarian has quit [Ping timeout: 252 seconds]
simon has quit []
basiclaser has joined #ruby
cefkamcau has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
_djbkd has quit [Remote host closed the connection]
jeramy_s has joined #ruby
kadoppe_ has quit [Ping timeout: 255 seconds]
kadoppe has joined #ruby
shoutsid has joined #ruby
hiyosi has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil> is that a good idea or a bad idea? https://github.com/soveran/ohm
* apeiros hands vasilakisfil a coin
charliesome has quit [Quit: zzz]
<vasilakisfil> because I read in another redis ruby library "This is not an ORM. People that are wrapping ORM’s around Redis are missing the point."
<apeiros> did they also provide a reason or was it all just ominous hand waving?
<vasilakisfil> "The killer feature of Redis is that it allows you to perform atomic operations on individual data structures, like counters, lists, and sets. The atomic part is HUGE. Using an ORM wrapper that retrieves a "record", updates values, then sends those values back, removes the atomicity, cutting the nuts off the major advantage of Redis. Just use MySQL, k?"
shoutsid has quit [Client Quit]
Hijiri has joined #ruby
<vasilakisfil> but I really want to save some arrays in Redis and the first gem can help me otherwise I have to serialize everything myself
<vasilakisfil> array of objects*
<apeiros> well, for starters, an ORM with redis isn't really possible as redis is not a relational database
fred1807 has quit [Quit: fred1807]
<apeiros> hm
sagittarian has joined #ruby
<apeiros> actually might be open for arguments.
<apeiros> plerp, too late in the evening to think about that stuff.
Spami has joined #ruby
<vasilakisfil> I think I am too noob in Redis and I will just go with the object-hash mapper for now
duncannz has joined #ruby
<vasilakisfil> I need to save complex datatypes anyway, maybe not relations, but complex list of objects
blackmesa has joined #ruby
soulcake has quit [Quit: Quack.]
bkxd has joined #ruby
havenwood has quit [Remote host closed the connection]
soulcake has joined #ruby
seitensei has joined #ruby
goggy has quit [Ping timeout: 248 seconds]
jimms has quit [Read error: Connection reset by peer]
Mohan_ has quit [Ping timeout: 240 seconds]
icarus has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
thiesen has quit [Quit: Leaving]
Mohan has joined #ruby
Mohan is now known as Guest54848
bkxd has quit [Ping timeout: 272 seconds]
ddarkpassenger has joined #ruby
lidenskap has quit [Remote host closed the connection]
tubuliferous has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
qwertme has joined #ruby
ki0 has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
laurentide has joined #ruby
thatslif_ has joined #ruby
charliesome has joined #ruby
DerisiveLogic has joined #ruby
thatslifeson has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 272 seconds]
luriv has quit [Ping timeout: 256 seconds]
jimms has quit []
Spami has quit [Quit: Leaving]
mikekellyio has quit [Quit: Connection closed for inactivity]
n008f4g_ has quit [Ping timeout: 250 seconds]
ki0 has joined #ruby
rmoriz_ has quit [Quit: ZNC - http://znc.in]
stef204 has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
Oog has joined #ruby
yfeldblum has joined #ruby
n008f4g_ has joined #ruby
stef204 has joined #ruby
Oog has quit [Ping timeout: 244 seconds]
lidenskap has joined #ruby
<gr33n7007h> anyone got an samsung 850 evo ssd?
mgberlin has joined #ruby
Channel6 has quit [Quit: Leaving]
<gr33n7007h> oops wrong channel
SouL_|_ has quit [Ping timeout: 264 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
Oog has joined #ruby
<Oog> threadsafe way to append a line to a file?
<apeiros> use a mutex
Oog has quit [Ping timeout: 265 seconds]
helpa has joined #ruby
ddarkpassenger has quit [Quit: Leaving]
ohaibbq has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
decoponio has quit [Read error: Connection reset by peer]
nszceta has joined #ruby
decoponio has joined #ruby
juanpablo___ has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
LJT has joined #ruby
Rhainur1 has joined #ruby
<pipework> Have a single object responsible for writing and use a queue or something to send messages to that object.
Rhainur has quit [Ping timeout: 265 seconds]
<sohrab> i am creating a class and i want to gather instances of it somewhere. i need to look through all the objects and see if they meet a requirement, and if they do i'd add information to them. what's the best way? i was thinking of using a set but idk how to do this with a set, i guess i could just iterate throgh it with each. should i do that?
juanpablo___ has quit [Ping timeout: 256 seconds]
MyMind has quit [Quit: WeeChat 1.2-dev]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
icarus has joined #ruby
mleung has joined #ruby
dcarper has quit [Remote host closed the connection]
mleung has quit [Client Quit]
soulcake has quit [Ping timeout: 276 seconds]
kyrylo has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
MatthewsFace has joined #ruby
doodlehaus has joined #ruby
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peterhu_ is now known as peterhu
dcarper has joined #ruby
soulcake has joined #ruby
f3lp has quit [Ping timeout: 250 seconds]
dcarper has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
mitchellhenke has joined #ruby
yfeldblum has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
lidenskap has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
Alina-malina has joined #ruby
workmad3 has joined #ruby
<apeiros> hm, ok, so we can have trailing , in all lists except in parameter definitions :<
lfox has joined #ruby
rdema has quit [Changing host]
rdema has joined #ruby
* xxneolithicxx looks at apeiros wondering why trailing ,'s is a standard to look up to
CloCkWeRX has left #ruby [#ruby]
jwinder has joined #ruby
Igorshp has joined #ruby
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<apeiros> with somewhat long lists, you'll spread it to multiple lines. and then you just have a , at the end of all lines.
<apeiros> makes it easier to add another line
<apeiros> and while it's bad to have too many arguments in a method definition, there's cases where it's not reasonably avoidable. in my case a configuration class which takes all config options as named arguments.
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
sagittarian has quit [Ping timeout: 252 seconds]
DEA7TH has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
Igorshp has quit [Remote host closed the connection]
swgillespie has joined #ruby
dfinninger has quit [Remote host closed the connection]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cosmicfires has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
duderonomy has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
doodlehaus has quit [Remote host closed the connection]
vasilakisfil has quit [Ping timeout: 265 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
sagittarian has joined #ruby
cosmicfires has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
Lewix has quit []
giuseppesolinas has quit [Quit: Leaving]
arescorpio has joined #ruby
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
a5i is now known as vikaton
Igorshp has joined #ruby
arescorpio has quit [Ping timeout: 272 seconds]
mignw has joined #ruby
<mignw> how do you update mingw git bash?
Brozo has joined #ruby
balazs has joined #ruby
<mignw> BASH 3.2.25 required (you have 3.1.20(4)-release)
xiphiasx_ has joined #ruby
<xiphiasx_> so
<c355E3B> grab the binaries from the site?
<xiphiasx_> i'm going to ask an extremely broad, arbitrary question
jottr has quit [Ping timeout: 252 seconds]
<xiphiasx_> what are some decent web frameworks besides ruby on rails
Igorshp has quit [Remote host closed the connection]
weemsledeux has joined #ruby
<c355E3B> xiphiasx_: do you want ruby language options?
davedev24_ has joined #ruby
<c355E3B> and how much do you want them to give you
<apeiros> xiphiasx_: ruby-toolbox.com has answers
<apeiros> xiphiasx_: from the top of my head: sinatra, rack-server-pages, roda, volt, ramaze
<xiphiasx_> sinatra seems to be top-tier
dorei has joined #ruby
<c355E3B> http://lotusrb.org/ is another good one
MatthewsFace has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
<mignw> my mom's friend is a high end escort, should i fuck her?
tubuliferous has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<xxneolithicxx> ? seriously
ponga has quit [Remote host closed the connection]
<apeiros> !kick mignw wrong channel
mignw was kicked from #ruby by ruboto [wrong channel]
nhhagen has joined #ruby
jottr has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
RandyT has quit [Quit: ZNC - http://znc.in]
RegulationD has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
Devoth has joined #ruby
RandyT has joined #ruby
<Devoth> if @@patches is a #, how can I get X to be a number indicating cycle of each in this piece:
nhhagen has quit [Ping timeout: 252 seconds]
<Devoth> @@patches.each do |key, desc|
<Devoth> say("X. #{desc}", :red)
<Devoth> end
nux443 has quit [Ping timeout: 256 seconds]
<Devoth> should I define a variable before the loop, and increment (e.g. like in PHP: $i=0, then $i++) or is ther a smarter way in Ruby?
<xxneolithicxx> each_index ?
<xxneolithicxx> but it looks like you have a hash not array
RegulationD has quit [Ping timeout: 244 seconds]
<Devoth> yes, hash
<mozzarella> each_with_index
<Devoth> thanks, will check it out
nux443 has joined #ruby
duckpunch has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: yawn]
davedev24_ has joined #ruby
duckpunch has joined #ruby
sankaber has joined #ruby
sohrab has quit [Ping timeout: 264 seconds]
Matachines has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
nux443 has quit [Ping timeout: 245 seconds]
<Devoth> mozzarella: works awesome now, thanks
<Devoth> @@patches.each_with_index do |item, i|
<Devoth> say("#{i+1}. #{item[1]}", :red)
<Devoth> end
<Devoth> Ruby's awesome :)
<Devoth> and you guys rock :))
<mozzarella> there's also .with_index, and you could use .each.with_index
<mozzarella> you can use .with_index with other stuff, such as .map, which is great
nux443 has joined #ruby
mgberlin has quit [Remote host closed the connection]
<apeiros> with_index allows you to drop the +1
<apeiros> @@patches.each.with_index(1) do |(key, desc), i| say "#{i}. #{desc}", :red; end
sohrab has joined #ruby
<Devoth> wow, really nice
<Devoth> but somehow I can't find it in docs
<mozzarella> didn't know that, I guess that's a good reason to use .with_index instead of .each_with_index
<Devoth> ok, nvm, got it
<apeiros> Devoth: Hash#each without a block returns an Enumerator
<apeiros> so with_index is Enumerator#with_index
<apeiros> mozzarella: yeah, really sad that each_with_index doesn't take an arg. I see no reason why it wouldn't :-/
<mozzarella> do you know which one came first? each_with_index or with_index?
jenrzzz has quit [Ping timeout: 250 seconds]
<Devoth> apeiros: that oop approach of Ruby is awesome and mind bending at the same time
* gr33n7007h though that was going to chicken/egg question
<Devoth> so hard for me to get my head around it tbh :)
jenrzzz has joined #ruby
<Devoth> wasn't really deep in PHP's oop, guess I need to read/watch some good tuts on the subject :)
duckpunch has quit [Ping timeout: 240 seconds]
<apeiros> mozzarella: not sure, no
workmad3 has joined #ruby
soulcake has quit [Quit: Quack.]
duckpunch has joined #ruby
<gr33n7007h> mozzarella: each_with_index was introduced into Ruby earlier. with_index was introduced later (i) to allow wider usage with various enumerators, and (ii) to allow index to start from a number other than 0.
soulcake has joined #ruby
zachrab_ has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 255 seconds]
zachrab has joined #ruby
yaw has joined #ruby
<mozzarella> maybe they didn't want to change the api, hence why each_with_index still doesn't take any argument
<apeiros> adding an arg is backwards compatible
<apeiros> I doubt that's the reason
<apeiros> adding an *optional* arg
juanpablo___ has joined #ruby
A205B064 has joined #ruby
juanpablo___ has quit [Ping timeout: 250 seconds]
<colorisco> nice music
qua has joined #ruby
predator217 has joined #ruby
<sohrab> i want to iterate through something a bunch of hashes, and if there's a particular value i want to lower it by 1, but if the value is something els ei want to delete the hash entirely.
<sohrab> is that possible?
<qua> hi
<qua> how long would you say is long enough to have given a problem a stab at on your own before looking up solutions for it or asking someone for help?
duncannz has quit [Ping timeout: 264 seconds]