havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
milardovich has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jphase has quit [Read error: No route to host]
planigan has quit [Ping timeout: 260 seconds]
tacoboy has quit [Quit: No Ping reply in 180 seconds.]
tacoboy has joined #ruby
Rutix has quit [Ping timeout: 260 seconds]
tacoboy has quit [Client Quit]
tacoboy has joined #ruby
gloscombe has joined #ruby
eelster has quit [Max SendQ exceeded]
planigan has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
someuser has quit [Ping timeout: 260 seconds]
someuser has joined #ruby
ElFerna has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
ijustcount has quit [Remote host closed the connection]
ElFerna has quit [Quit: WeeChat 1.9]
TomyLobo3 has joined #ruby
mooser has joined #ruby
ar1a has quit [Ping timeout: 240 seconds]
ozcanesen has joined #ruby
TomyLobo2 has quit [Ping timeout: 240 seconds]
ar1a has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
houhoulis has joined #ruby
marr has quit [Ping timeout: 240 seconds]
goyox86 has quit [Quit: goyox86]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser_ has joined #ruby
Ilie[] has joined #ruby
Ilie[] has quit [Client Quit]
Ilie has joined #ruby
Ilie is now known as Ilie[]
Ilie[] has quit [Changing host]
Ilie[] has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
Moosashi has quit [Quit: Moosashi]
sepp2k1 has quit [Read error: Connection reset by peer]
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
sleepee_ has quit [Quit: Leaving]
muzik has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
oleo has joined #ruby
Moosashi has joined #ruby
Moosashi has quit [Client Quit]
Mgtuiw211 has joined #ruby
Mgtuiw211 has quit [Client Quit]
gizmore|2 has joined #ruby
Moosashi has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
gizmore has quit [Ping timeout: 240 seconds]
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
quobo has quit [Quit: Connection closed for inactivity]
eelster has joined #ruby
eelster has quit [Client Quit]
eelster has joined #ruby
jnollette has joined #ruby
ecuanaso has joined #ruby
opekktar has joined #ruby
eizua has joined #ruby
jnollette has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
jnollette has joined #ruby
mjolnird has quit [Ping timeout: 276 seconds]
mjolnird has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
weathermaker has joined #ruby
mjolnird has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
bkxd has joined #ruby
t-recx has quit [Quit: t-recx]
mjolnird has joined #ruby
gizmore|2 has quit [Read error: Connection reset by peer]
opekktar has quit []
jameser has joined #ruby
Moosashi has quit [Quit: Moosashi]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
jameser has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
jameser has quit [Client Quit]
Moosashi has quit [Quit: Moosashi]
ElFerna has joined #ruby
mooser has quit [Remote host closed the connection]
ElFerna has quit [Client Quit]
jackjackdripper has joined #ruby
ElFerna has joined #ruby
Moosashi has joined #ruby
meshsmith has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.9]
govg has joined #ruby
Moosashi has quit [Quit: Moosashi]
gix has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
weathermaker has quit [Ping timeout: 260 seconds]
gix has joined #ruby
mooser has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
sixsixsix has joined #ruby
<sixsixsix> How can i write this for loop in ruby? for (int i = 5; num / i > 0; i *= 5) { count += num / i;}
TomyLobo3 has quit [Ping timeout: 255 seconds]
mooser has joined #ruby
apparition has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
Moosashi has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<Radar> sixsixsix: hi
<sixsixsix> hi
<Radar> what language is that?
<sixsixsix> java and c++
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar> sixsixsix: thanks. I am not clear what "num" is here. Is it another variable?
<sixsixsix> yeah, num is the variable that is passed as argument for the function
<sixsixsix> just another integer
<Radar> and how is count initialised?
<sixsixsix> count is another integer that is initialized to 0
_sfiguser has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
<Radar> ok thanks. That should be enough for me to go on. Give me a moment.
<sixsixsix> ok
bronson has joined #ruby
<baweaver> What exactly is it supposed to do?
<sixsixsix> computes the trailing zeroes in a factorial
<baweaver> num.to_s.chars.reverse.index { |x| x != 0 } + 1
<Radar> I think you could probably use Integer#digits to work it out
<baweaver> ack, no +1
<baweaver> actually
<baweaver> nevermind, need coffee
<Radar> indeed you do :)
bronson has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
<baweaver> Something vaguely like that in any case.
<sixsixsix> what does reverse does?
<baweaver> Take a guess
<Radar> Try [1,2,3].reverse
<Radar> or "123".reverse
<Radar> 23.downto(1).inject(:*).digits.index { |e| e != 0 }
<Radar> >> 23.downto(1).inject(:*).digits.index { |e| e != 0 }
<ruby[bot]> Radar: # => undefined method `digits' for 25852016738884976640000:Bignum (NoMethodError) ...check link for more (https://eval.in/839354)
<Radar> ruby[bot]: You and I can never be friends, can we?
<baweaver> to_s.chars :D
<Radar> >> 23.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != 0 }
<ruby[bot]> Radar: # => 0 (https://eval.in/839355)
<Radar> >> 23.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != "0" }
<ruby[bot]> Radar: # => 4 (https://eval.in/839356)
<Radar> THANK YOU.
<baweaver> 'welcome
* baweaver wanders off and runs into random object
<Radar> sixsixsix: Ok, that last code example: 23.downto(1).inject(:*) will get 23!
<Radar> Then to_s + chars will convert the number into an array of strings where each string corresponds to a digit in the factorial
<Radar> then reverse turns that list around, so that the zeroes are at the start
<Radar> index then finds the index of the first element in the array where that element is not the string "0"
<Radar> So this shows that 23! has 4 trailing zeroes.
<baweaver> >> class Fixnum; def factorial; self.downto(1).inject(:*) end; end; 5.factorial # :D
<ruby[bot]> baweaver: # => 120 (https://eval.in/839359)
<Radar> >> 23.downto(1).inject(:*)
<ruby[bot]> Radar: # => 25852016738884976640000 (https://eval.in/839361)
<Radar> baweaver: wouldn't it be nice? :P
<Radar> >> 64.downto(1).inject(:*).to_s.chars.reverse.index { |e| e != "0" }
<ruby[bot]> Radar: # => 14 (https://eval.in/839364)
<baweaver> You sure ActiveSupport doesn't add it?
<Radar> baweaver: I wouldn't be surprised honestly.
<Radar> No mention of "factorial" in the codebase though
<Radar> SciRuby might add it.
<sixsixsix> thanks
<Radar> >> (1..23).inject(:*)
<ruby[bot]> Radar: # => 25852016738884976640000 (https://eval.in/839368)
mooser has joined #ruby
<Radar> This would work as well. Silly me for just picking top comment on SO.
<Radar> But I am not paid to think on weekends.
Moosashi has quit [Quit: Moosashi]
tacoboy has quit [Remote host closed the connection]
<Radar> 1..23 |> Enum.reduce(&Kernel.*/2) |> Integer.digits |> Enum.reverse |> Enum.find_index(fn (e) -> e != 0 end) <- And just for shits & giggles here's the Elixir equivalent
mooser has quit [Ping timeout: 240 seconds]
<sixsixsix> thank you
hndk has joined #ruby
raul782 has joined #ruby
milardovich has joined #ruby
Moosashi has joined #ruby
sneakerhax has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
eizua has quit [Remote host closed the connection]
<al2o3-cr> (1..23).inject(:*).digits.index &:nonzero? (ruby 2.4)
Moosashi has quit [Quit: Moosashi]
<al2o3-cr> or your more conventional while loop; https://eval.in/839376
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
cagmz_ has quit [Quit: Leaving]
Bhootrk_ has joined #ruby
_whitelogger has joined #ruby
Dimik has joined #ruby
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
FahmeF has joined #ruby
milardovich has joined #ruby
ar1a has quit [Ping timeout: 260 seconds]
ahrs has quit [Remote host closed the connection]
ar1a has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
Ilie[] has quit [Remote host closed the connection]
Ilie has joined #ruby
ahrs has joined #ruby
nowhere_man has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mooser has quit [Remote host closed the connection]
bruno-_ has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
hndk_ has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
hndk has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
raul782 has quit [Remote host closed the connection]
mkaito has quit [Read error: Connection reset by peer]
mkaito_ has joined #ruby
mkaito_ is now known as mkaito
mkaito has quit [Changing host]
mkaito has joined #ruby
apparition has joined #ruby
mooser has joined #ruby
hndk_ has quit [Ping timeout: 276 seconds]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
apparition has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
voxxit has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
voxxit has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
enterprisey has quit [Remote host closed the connection]
tgragnato has quit [Quit: Sto andando via]
milardovich has joined #ruby
minimalism has quit [Quit: minimalism]
bronson has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
apparition has quit [Quit: Bye]
bronson has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
brent__ has quit [Remote host closed the connection]
mooser has quit [Remote host closed the connection]
TomyLobo3 has joined #ruby
yabbes has joined #ruby
Ishido has joined #ruby
jameser has joined #ruby
mooser has joined #ruby
P_R_Deltoid has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
tildes has joined #ruby
scrooloose has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 240 seconds]
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
mooser has quit [Ping timeout: 255 seconds]
lantastic has joined #ruby
enterprisey has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
apparition has joined #ruby
moeabdol has joined #ruby
dionysus69 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scrooloose has joined #ruby
jameser has joined #ruby
vuoto has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
petrussola has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
code_zombie has quit [Quit: Leaving]
mooser has joined #ruby
bkxd has joined #ruby
petrussola has quit [Quit: Page closed]
nowhere_man has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muzik has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
tildes has quit [Ping timeout: 255 seconds]
conta has joined #ruby
GodFather has joined #ruby
antgel has joined #ruby
sixsixsix has quit [Quit: Page closed]
Ilie[] has joined #ruby
Ilie has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
djbkd has joined #ruby
lantastic has quit [Ping timeout: 260 seconds]
<yabbes> i just tried to use a decrement operator -= on a string, and having no idea what ruby wanted to tell me why it wouldnt work "no method -" ; until i wanted to ask here, then i remembered that it was not a number already.. so stupid.. so thank you guys ;) "1".to_i
raul782 has quit [Remote host closed the connection]
mooser has joined #ruby
_main_ has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
ltem has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
__main__ has quit [Ping timeout: 276 seconds]
_main_ is now known as __main__
bronson has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
bkxd_ has joined #ruby
raul782 has joined #ruby
phinxy has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
tildes has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
nofxxx has joined #ruby
futilegames has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
marr has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
lantastic has joined #ruby
postmodern has quit [Quit: Leaving]
rgtk has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 260 seconds]
rgtk has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
jinie_ has quit [Ping timeout: 240 seconds]
creat has joined #ruby
jinie_ has joined #ruby
quobo has joined #ruby
eelster has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 248 seconds]
Pacra has quit [Ping timeout: 255 seconds]
vuoto has quit [Quit: Lost terminal]
nOwz has joined #ruby
rippa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
mooser has joined #ruby
andrzejku has joined #ruby
djellemah has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 260 seconds]
TvL2386_ is now known as TvL2386
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
<TvL2386> hey guys, I'm starting development on several gems. I want them all to be member of the same module
<TvL2386> something like net/ssh net/telnet
<TvL2386> nm... :)
soloscshaw has joined #ruby
jrafanie has joined #ruby
jrafanie has quit [Ping timeout: 255 seconds]
mustaffa has quit [Ping timeout: 260 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mooser has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
futilegames has quit [Quit: futilegames]
bronson has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
zapata has quit [Quit: WeeChat 1.9]
vuoto has quit [Client Quit]
vuoto has joined #ruby
conta has quit [Ping timeout: 260 seconds]
djbkd has quit []
InfinityFye has joined #ruby
mooser has joined #ruby
charliesome has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
<TvL2386> hey guys, I'm making a gem which is going to query the webservices of a piece of software. For that I need a base_url, a username and a password.
<TvL2386> I want to set those 3 variables once in my program
<TvL2386> and not supply them on every request
milardovich has quit [Ping timeout: 240 seconds]
<TvL2386> I was thinking of `MyGem.configure { |c| c.user = 'bla' ; c.pass = 'secret' ; c.base_url = 'https://...' }`
<TvL2386> not sure if it's a good idea though
jcao219 has quit [Ping timeout: 240 seconds]
lantastic has quit [Ping timeout: 260 seconds]
noe has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
gobertron has joined #ruby
DTZUZO has quit [Ping timeout: 260 seconds]
<Radar> TvL2386: yes that is a pattern I've seen done before.
gloscombe has quit [Quit: WeeChat 1.9]
<apeiros> I see it a lot and I don't like it.
<apeiros> IMO it means you want a class which takes those params on initialize
bkxd_ has joined #ruby
<apeiros> if you then want one instance of that class in your app, make that part of your app and not that class.
<apeiros> e.g. MyApp::ThatService = ThatService::Client.new(user: "user", password: "1234", base_url: "…")
bkxd has quit [Ping timeout: 260 seconds]
jcao219 has joined #ruby
<apeiros> the other way (MyGem.configure) paints you into a corner where you can ever only have one instance per process. it's a bad pattern for that reason.
<apeiros> singleton pattern considered harmful™
oleo has quit [Quit: irc client terminated!]
gloscombe has joined #ruby
mooser has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
nOwz has quit [Ping timeout: 255 seconds]
mooser has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
vuoto has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 276 seconds]
gobertron has quit [Quit: Leaving]
djellemah has quit [Ping timeout: 260 seconds]
runescape07rsps has joined #ruby
lantastic has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
conta has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
raul782 has joined #ruby
oleo has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
nOwz has quit [Client Quit]
raul782 has quit [Ping timeout: 248 seconds]
Ishido has joined #ruby
WeiJunLi has joined #ruby
mooser has joined #ruby
kx_ has joined #ruby
kx_ is now known as kaiks
bkxd has joined #ruby
andrzejku has joined #ruby
lxsameer has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
WeiJunLi has quit [Ping timeout: 240 seconds]
xall has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<ineb1> apeiros: is a singleton for app configuration ok?
<ineb1> MyApp::Config.username or whatever
goyox86 has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
<apeiros> in an app I mind it much less. but even an app is IMO a class with the config part of its instance. I just see no reason. and you can still have the convenience of a singleton if you want.
<apeiros> *I just see no reason to artificially limit the way your code can be used
* apeiros should pay attention to what he writes
<apeiros> I mean even if you don't want to run multiple instances of your application in a process, it's still nice to be able for e.g. testing. no need to muck around stubbing different configurations you want to test.
Exagone313 has quit [Quit: see ya!]
nadir has joined #ruby
<apeiros> in general "Oh, I have this state I don't want to pass around" - "well, that's exactly what objects do for you"
Ishido has joined #ruby
naftilos76 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mooser has joined #ruby
gloscombe has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 276 seconds]
_sfiguser has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exagone313 has joined #ruby
bronson has joined #ruby
xall has quit [Quit: xall]
conta has quit [Ping timeout: 260 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
apparition has quit [Quit: Bye]
yabbes has quit [Ping timeout: 240 seconds]
vuoto has quit [Client Quit]
vuoto has joined #ruby
gloscombe has joined #ruby
yabbes has joined #ruby
lantastic has quit [Ping timeout: 276 seconds]
<ineb1> this is what i have currently
<ineb1> a spearate config for the spec suite
vuoto has quit [Quit: Lost terminal]
<ineb1> iam not too happy about it though
vuoto has joined #ruby
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
andrzejku has joined #ruby
ski7777 has joined #ruby
mooser has joined #ruby
ecuanaso has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 246 seconds]
Ishido has joined #ruby
someuser has quit [Ping timeout: 260 seconds]
oded has joined #ruby
minichiello has joined #ruby
minichiello has left #ruby [#ruby]
vuoto has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
ski7777 has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
andrzejku has quit [Read error: Connection reset by peer]
apparition has joined #ruby
bkxd has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
lxsameer has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
dionysus69 has quit [Remote host closed the connection]
mooser has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
ski7777 has joined #ruby
tacoboy has joined #ruby
mooser has quit [Remote host closed the connection]
dstrunk has joined #ruby
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
FahmeF has quit [Ping timeout: 260 seconds]
mooser has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
raul782 has joined #ruby
selim has quit [Ping timeout: 246 seconds]
selim has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
raul782 has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
eizua has joined #ruby
Dimik has joined #ruby
ElFerna has joined #ruby
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
ElFerna has quit [Client Quit]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
mooser has quit [Remote host closed the connection]
DLSteve has joined #ruby
bronson has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
AlexRussia has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
cahoots has joined #ruby
vuoto has quit [Remote host closed the connection]
conta has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WeiJunLi has joined #ruby
Ilie[] has quit [Read error: Connection reset by peer]
WeiJunLi has quit [Remote host closed the connection]
raul782_ has joined #ruby
cahoots has quit [Quit: leaving]
raul782 has quit [Ping timeout: 248 seconds]
lantastic has joined #ruby
mustaffa has joined #ruby
Timba-as has joined #ruby
cdg has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
mooser has joined #ruby
uZiel has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
yabbes has quit [Ping timeout: 260 seconds]
yabbes has joined #ruby
sparkyy_ has quit [Ping timeout: 240 seconds]
Pacra has joined #ruby
sparkyy has joined #ruby
t-recx has joined #ruby
rgr has joined #ruby
runescape07rsps has quit [Ping timeout: 260 seconds]
rgr_ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
<al2o3-cr> anyone know why i keep getting this god damn error; https://gist.github.com/gr33n7007h/6ded756e3e67ea62ffc15b9258bf943c
<Papierkorb> al2o3-cr: Motherfucking port under 1024
<Papierkorb> *below
<al2o3-cr> Papierkorb: i'm using sudo
<al2o3-cr> that's not the issue
<al2o3-cr> been at this an hour
<al2o3-cr> i'm trying to send deauth packets to my access point (aka router)
<al2o3-cr> this should be so simple
<al2o3-cr> Papierkorb: here's the source if it helps; https://gist.github.com/gr33n7007h/822e5edcc53dc647e77c41ae86ee7afc
<al2o3-cr> i've run out of ideas
romankapitonov has joined #ruby
<Papierkorb> Read the error message again. it's telling you about a size mismatch
<Papierkorb> hence EINVAL
xt233 has joined #ruby
<al2o3-cr> i've read it but it does not make any reasoning for a size mismatch
xt233 has left #ruby [#ruby]
xt233 has joined #ruby
<al2o3-cr> i'm just passing sockaddr to bind exactly like in C
<Papierkorb> have you made sure sll is exactly 16byte in size?
<al2o3-cr> no let me check
<al2o3-cr> no it's 20 bytes but this is correct
<Papierkorb> the error message disagrees
<Papierkorb> > 20 bytes for 16 bytes sockaddr_in
uZiel has quit [Ping timeout: 248 seconds]
<al2o3-cr> the packsize is 20 bytes which is right. this is why i'm so puzzled
<Papierkorb> well apparently that #bind method expects a input of 16bytes, no 20. Which one of those is "right" I don't know.
<al2o3-cr> this should flipping work argh...
<al2o3-cr> let me recheck this one sex
<al2o3-cr> *sec
<Papierkorb> Though considering this is coming in as Errno error, looks like it's linux (and not ruby..?) bouncing it back
houhoulis has quit [Remote host closed the connection]
<al2o3-cr> no, its still doomed
<al2o3-cr> ah, wait
mooser has quit []
<al2o3-cr> OMFG, it works
runescape07rsps has joined #ruby
<al2o3-cr> i had AF_INET in the sockaddr instead of AF_PACKET, one hour one flipping hour looking through this
Phanes has quit [K-Lined]
Phanes has joined #ruby
Phanes has joined #ruby
Phanes has quit [Changing host]
<al2o3-cr> that has p****d me off
Nightmare has quit [K-Lined]
j0bk has quit [K-Lined]
Phanes has quit [K-Lined]
Tralin_ has quit [K-Lined]
jtperreault has quit [K-Lined]
LBRapid has quit [K-Lined]
j0bk has joined #ruby
gloscombe has quit [Ping timeout: 268 seconds]
Tralin has joined #ruby
goyox86 has quit [Quit: goyox86]
LBRapid has joined #ruby
jtperreault has joined #ruby
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
Nightmare has joined #ruby
Phanes has quit [K-Lined]
<al2o3-cr> >> "HAPPY PIGGING DAYS".gsub /\G/, ?*
<ruby[bot]> al2o3-cr: # => "*H*A*P*P*Y* *P*I*G*G*I*N*G* *D*A*Y*S*" (https://eval.in/839448)
romankapitonov has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* al2o3-cr thinks why would i ever do this
cam27 has joined #ruby
dexter1 has joined #ruby
dexter1 is now known as DTZUZO
nahra``` has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
<al2o3-cr> next task beacon frames ...
xt234 has joined #ruby
xt233 has quit [Ping timeout: 248 seconds]
gloscombe has joined #ruby
jackjackdripper has joined #ruby
gizmore has joined #ruby
Cesario_ has joined #ruby
anuxivm has joined #ruby
charliesome has joined #ruby
anuxivm has left #ruby [#ruby]
naftilos76 has quit [Quit: Αποχώρησε]
vee_ has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
Timba-as has quit [Quit: Be back later ...]
andrzejku has joined #ruby
bronson has joined #ruby
goyox86 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
brent__ has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest14429
Kestrel-029 has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
belteshazzar has joined #ruby
gnufied has joined #ruby
goyox86 has quit [Quit: goyox86]
goyox86 has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
goyox86 has quit [Read error: No route to host]
raul782_ has quit [Remote host closed the connection]
xt234 has quit [Quit: Leaving]
brent__ has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
ascarter has joined #ruby
vuoto has joined #ruby
proctrap has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
prawnzy has joined #ruby
govg has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
[spoiler] has quit [Quit: Cheers!]
[spoiler] has joined #ruby
goyox86_ has joined #ruby
raul782 has joined #ruby
goyox86_ has quit [Read error: No route to host]
[spoiler] has quit [Client Quit]
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vuoto has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
[spoiler] has joined #ruby
lantastic has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 268 seconds]
ar1a has quit [Quit: ZNC 1.6.5 - http://znc.in]
milardovich has joined #ruby
amclain has joined #ruby
goyox86 has joined #ruby
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
InfinityFye has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
raul782 has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 248 seconds]
tirej has joined #ruby
andrzejku has joined #ruby
Timba-as has joined #ruby
Timba-as has quit [Client Quit]
proctrap has quit [Read error: Connection reset by peer]
proctrap has joined #ruby
raul782 has joined #ruby
dstrunk has joined #ruby
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
raul782 has quit [Remote host closed the connection]
oded has quit [Quit: Konversation terminated!]
milardovich has quit [Ping timeout: 276 seconds]
kahra has quit [Quit: WeeChat 1.9]
Xeago has joined #ruby
tom69 has joined #ruby
yabbes has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tom69> does anybody use ruby without rails? is there any reason to avoid using ruby if you are not doing wweb work?
eljimmy has joined #ruby
<Papierkorb> tom69: There's plenty to do outside of web, and plenty other frameworks for web (Roda+Sequel <3)
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
<Papierkorb> Clustering software, all kinds of random small-ish tools (some using simplistic web UIs, some CLIs). You can do almost anything with ruby, except for system programming and high-performance stuff
treaki has joined #ruby
ta_ has joined #ruby
raul782 has joined #ruby
milardovich has joined #ruby
<tom69> Papierkorb - so, pretty comparable to python?
<Papierkorb> Never used python, but I both are general purpose programming languages
bronson has joined #ruby
<Papierkorb> Another really useful thing was, when working with a Java shop, to start pry in JRuby, and then explore java libraries from there. Much easier to try stuff than having to mess with that other language
jcao219 has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
raul782 has quit [Ping timeout: 268 seconds]
deep-book-gk_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
mustaffa has quit [Ping timeout: 255 seconds]
j0bk has quit [Changing host]
j0bk has joined #ruby
deep-book-gk_ has left #ruby [#ruby]
runescape07rsps has quit [Quit: Leaving]
alex`` has quit [Quit: WeeChat 1.9]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
codelurker has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
prawnzy has quit [Ping timeout: 246 seconds]
ltem has joined #ruby
weathermaker has joined #ruby
lizard2010 has joined #ruby
mustaffa has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
prawnzy has joined #ruby
auxbuss has joined #ruby
tom69 has left #ruby ["WeeChat 1.9"]
lizard2010 has quit [Client Quit]
soloscshaw has quit [Ping timeout: 246 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
ar1arelaybot has joined #ruby
yabbes has joined #ruby
prawnzy has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
DLSteve has joined #ruby
asjdsahd has joined #ruby
asjdsahd has quit [Client Quit]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
postmodern has joined #ruby
auxbuss has quit [Quit: I'm gone.]
rgtk has joined #ruby
average has joined #ruby
<average> in Ruby, why does one want to do
<average> conn = Some::Obj self.class.name ?
<average> what's the point of that?
<average> that's happening inside a method of a class
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
codelurker has quit [Quit: Leaving]
weathermaker has quit [Quit: weathermaker]
andrzejku has joined #ruby
lantastic has joined #ruby
<Papierkorb> average: Can you give the actual line of code doing what you mean?
<average> it's exactly how I wrote it
<average> uhm, let me rephrase
<Papierkorb> `Some::Obj`..?
<average> conn = Some::Obj.new self.class.name
<average> it's actually Net::HTTP::Persistent , not Some::Obj
<average> still.. idk why it's passing the current class name to it
<Papierkorb> > # Set +name+ to keep your connections apart from everybody else's.
<Papierkorb> Looks like you're also missing the `name:` part. Please, if you ask for help, do NOT try to "simplify" it.
dviola has joined #ruby
<Papierkorb> It makes it much harder to help. The simplification in this case made it impossible to get the correct answer to your question.
<average> sorry about that Papierkorb
<Papierkorb> Looks like the net http persistant stuff has an internal "pool" of named connections. The user of `Persistent` chose to use the name of the current class as name for the connection name, which sounds reasonable: If everyone does this, no collisons will occur, so no one else will mess with your connection
<average> like what collision tho?
lxsameer has joined #ruby
<average> oh.. nvm
raul782 has joined #ruby
lantastic has quit [Ping timeout: 240 seconds]
raul782 has quit [Client Quit]
kkiero has joined #ruby
Dimik has joined #ruby
statelesscode has quit [Read error: Connection reset by peer]
goyox86 has quit [Read error: No route to host]
goyox86 has joined #ruby
lantastic has joined #ruby
uZiel has joined #ruby
kkiero_ has joined #ruby
kkiero_ has quit [Client Quit]
kkiero has quit [Quit: leaving]
_sfiguser has quit [Ping timeout: 240 seconds]
marr has joined #ruby
<average> Papierkorb: thanks for brainstorming and helping me
<average> Papierkorb: I made a PR as a result https://github.com/mislav/issuesync/pull/9
runescape07rsps has joined #ruby
ur5us has joined #ruby
lantastic has quit [Ping timeout: 260 seconds]
<Papierkorb> average: the persistent.new code works?
<average> Papierkorb: yeh
<Papierkorb> great. just wanted to make sure that you didn't take my super quick look at its initialize for granted ;)
Qommand0r has joined #ruby
_sfiguser has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ResidentBiscuit has joined #ruby
bronson has joined #ruby
tirej has quit [Ping timeout: 240 seconds]
tirej has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
runescape07rsps has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
deep-book-gk_ has joined #ruby
deep-book-gk_ has left #ruby [#ruby]
bruno- has quit [Ping timeout: 240 seconds]
statelesscode has joined #ruby
milardovich has quit [Remote host closed the connection]
vuoto has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
rgr has quit [Ping timeout: 246 seconds]
Guest12040 has left #ruby ["Textual IRC Client: www.textualapp.com"]
jnollette has quit [Quit: All your IRC are belong to ZNC]
jnollette has joined #ruby
bane_ has joined #ruby
vuoto has quit [Remote host closed the connection]
enodata has joined #ruby
QualityAddict has joined #ruby
TomyLobo3 has quit [Ping timeout: 255 seconds]
erlend has joined #ruby
ResidentBiscuit has quit []
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
noe has quit [Quit: noe]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
brent__ has joined #ruby
bruno- has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
bruno- has quit [Read error: Connection reset by peer]
growp has joined #ruby
<growp> what is an alternative to rubygems?
bruno- has joined #ruby
jnollette has quit [Quit: All your IRC are belong to ZNC]
eizua has quit [Quit: Leaving]
jnollette has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jnollette has quit [Client Quit]
jnollette has joined #ruby
roshanavand has quit [Quit: roshanavand]
bruno- has joined #ruby
runescape07rsps has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
uZiel has quit [Ping timeout: 248 seconds]
andrzejku has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
BTRE has quit [Read error: Connection reset by peer]
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
andrzejku has quit [Client Quit]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
bruno- has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
patr0clus has joined #ruby
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
ruby-lang422 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bronson has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 268 seconds]
dstrunk has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
tirej has quit [Quit: Lost terminal]
gregf_ has quit [Ping timeout: 260 seconds]
cam27 has quit [Read error: Connection reset by peer]
cam27 has joined #ruby
milardovich has joined #ruby
kobain has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
tunaBee__ has quit [Quit: Lost terminal]
bane_ has quit [Quit: Konversation terminated!]
jcao219 has quit [Ping timeout: 260 seconds]
<havenwood> growp: Why are you looking for one?
vladline has joined #ruby
bruno- has joined #ruby
hndk has joined #ruby
fluengo has joined #ruby
Psy-Q has quit [Ping timeout: 255 seconds]
Psy-Q has joined #ruby
marens_ has joined #ruby
jonjits[m] has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Tagami[m]1 has quit [Ping timeout: 255 seconds]
velu_aon[m] has quit [Ping timeout: 255 seconds]
testnick[m] has quit [Ping timeout: 255 seconds]
aagdbl[m] has quit [Ping timeout: 255 seconds]
aviraldg has quit [Ping timeout: 255 seconds]
gokul_mr[m] has quit [Ping timeout: 258 seconds]
aidalgol has quit [Ping timeout: 246 seconds]
turt2live has quit [Ping timeout: 264 seconds]
marens has quit [Read error: Connection reset by peer]
voltai[m] has quit [Ping timeout: 276 seconds]
Giphy[m] has quit [Ping timeout: 255 seconds]
Matt[m]1 has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 246 seconds]
torarne has quit [Ping timeout: 246 seconds]
cam27 has quit [Write error: Connection reset by peer]
KevinMGranger has quit [Ping timeout: 255 seconds]
lasenna[m] has quit [Ping timeout: 255 seconds]
fluengo is now known as ElFerna
cam27 has joined #ruby
ElFerna has quit [Quit: ElFerna]
lxsameer has quit [Ping timeout: 260 seconds]
fluengo has joined #ruby
average has left #ruby [#ruby]
mjolnird has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 260 seconds]
M107262[m] has quit [Ping timeout: 258 seconds]
dman[m] has quit [Ping timeout: 264 seconds]
vladline has quit []
vladline has joined #ruby
mjolnird has joined #ruby
yabbes has quit [Ping timeout: 255 seconds]
fluengo has quit [Quit: fluengo]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soloscshaw has joined #ruby
dstrunk has joined #ruby
dstrunk has quit [Client Quit]
qsx has quit [Quit: ZNC - http://znc.in]
tlr has joined #ruby
Giphy[m] has joined #ruby
vladline has quit [Remote host closed the connection]
alveric2 has joined #ruby
alveric1 has quit [Ping timeout: 240 seconds]
kaiks has quit [Ping timeout: 248 seconds]
qsx has joined #ruby
gloscombe has quit [Quit: WeeChat 1.9]
milardovich has joined #ruby
_sfiguser has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 258 seconds]
ruby-lang422 has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
turt2live has joined #ruby
torarne has joined #ruby
M107262[m] has joined #ruby
voltai[m] has joined #ruby
lasenna[m] has joined #ruby
jonjits[m] has joined #ruby
aidalgol has joined #ruby
aviraldg has joined #ruby
dman[m] has joined #ruby
gokul_mr[m] has joined #ruby
KevinMGranger has joined #ruby
Tagami[m] has joined #ruby
testnick[m] has joined #ruby
aagdbl[m] has joined #ruby
Matt[m]1 has joined #ruby
velu_aon[m] has joined #ruby
rubycoder37 has quit [Quit: leaving]