havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
mattwashere has joined #ruby
northfurr has quit [Quit: northfurr]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Ropeney has joined #ruby
<Radar> von-strauss: There's only one Rails book you need: Rails 4 in Action.
<Radar> Written by an extremely smart, handsome and humble author.
<Arcaire> i thought Yehuda had nothing to do with that?
<Radar> Badumtish.
<Arcaire> :^))^)^)^)^))))
tristanp_ has joined #ruby
<|meta> I'm glad Rails is still gaining new developers, will keep me very busy when I get paid to rewrite all of their garbage
Madplatypus has quit [Quit: Connection closed for inactivity]
<Radar> |meta: $250/hr to remove all Model.suppress calls from the app :D
tristanp has quit [Ping timeout: 260 seconds]
<|meta> I'd rather remove the app. Someday when Crystal hits 1.0 I'll start my own consulting firm doing that
tristanp has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
<Radar> Yeah because rewriting entire apps is a market just waiting to be cornered.
<Radar> ** <- forgot my sarcasterix. Have two.
maletor2 has joined #ruby
<|meta> Twitter seemed to think so :^)
trista___ has joined #ruby
<|meta> what do they know? those amateurs
der-landgraf has quit [Ping timeout: 240 seconds]
<Arcaire> Twitter didn't have outside consultants come in and do the work.
<Arcaire> They hired Java developers.
<|meta> Well that's because I haven't started up yet.
<|meta> They can't get the best before he came
<|meta> came around
<Arcaire> wat
tristanp_ has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* Radar <- also wat'ingm
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
jeyraof has joined #ruby
maletor2 has quit [Ping timeout: 252 seconds]
<|meta> Radar, that seems like the sort of thing that isn't uncommon for you
<Radar> |meta: Are we now having a |meta discussion?
<|meta> I was born meta
<Radar> "They can't get the best before he came" absolutely does not make any sense.
<|meta> I am the best
<Radar> Who is "they"? Who is "he"?
trista___ has quit [Ping timeout: 252 seconds]
<|meta> My point is that companies are more than willing to rewrite huge components of infrastructure if you convince them it's worth it
tristanp has quit [Read error: Connection reset by peer]
<Radar> I don't think I want to continue this discussion.
<Arcaire> same
<Radar> Just checked the logs and saw this streak of brilliance: http://logs.ryanbigg.com/ruby?date=2016-05-29#5753453
kirun has quit [Remote host closed the connection]
<|meta> I've read a lot of your logs
tristanp has joined #ruby
<|meta> I'm fairly certain you would *literally* cry or something if I shared my opinions on the worth of a conversation with you. I'll spare you the trauma
<Arcaire> lmao
<Radar> !rude |meta
<Radar> Don't need to.
<Arcaire> |meta: You will feel at home here: reddit.com/r/iamverysmart
diegoaguilar has joined #ruby
der-landgraf has joined #ruby
nankyokusei has joined #ruby
jancel has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
RegulationD has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moon_man_420 has joined #ruby
aupadhye has joined #ruby
aupadhye has quit [Remote host closed the connection]
karmatr0n has joined #ruby
roamingdog has quit [Remote host closed the connection]
marr has quit [Remote host closed the connection]
aupadhye has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
tristanp_ has joined #ruby
arlek has joined #ruby
<benzrf> |meta: loooooooooooooooooooool
nando293921 has quit [Quit: Lost terminal]
trista___ has joined #ruby
gilfoyle has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 260 seconds]
sarkis has joined #ruby
<sarkis> hey all - so what do you all use for production ruby apps? brightbox ruby repos?
karmatr0n has quit [Ping timeout: 250 seconds]
<sarkis> we've been using rbenv - sick of compiling rubies during provisioning/upgrading to new version of ruby :9
Xeago has joined #ruby
<sarkis> curious how "prod ready" those brightbox debs ar
allcentury has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
gilfoyle has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
jancel has quit [Remote host closed the connection]
tristanp_ has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
tristanp has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
bob434 has joined #ruby
nettoweb has joined #ruby
bob434 has quit [Client Quit]
<von-strauss> Radar, ok
tristanp has joined #ruby
<von-strauss> jesus
<von-strauss> it costs way too much
tristanp_ has quit [Read error: Connection reset by peer]
<Arcaire> wat
<von-strauss> something tells me i shouldn't be developing on a debian distro
<von-strauss> Nawn, yeah i'm going to end up using this
elifoster has quit [Ping timeout: 276 seconds]
bob434 has joined #ruby
<shevy> you are still on debian!
<shevy> though, if you can get ruby to work, it should not be a huch hassle anymore really
gilfoyle has joined #ruby
<von-strauss> hayden@mint ~/new_project $ bin/rails server
<von-strauss> bash: bin/rails: No such file or directory
<von-strauss> ruby works fine in general but can't get rails to work. what distro do you recommend?
<Nawn> I use ubuntu just fine :o
<von-strauss> hayden@mint ~ $ rails -v
<von-strauss> Rails 3.2.16
<Arcaire> wat
<Radar> von-strauss: Yeah, so Rails 3.2.16 didn't have a bin/rails directory.
<Nawn> Why not use 4.x.x?
<Radar> ?rails
symm- has quit [Ping timeout: 258 seconds]
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<von-strauss> ?sorry
<ruby[bot]> von-strauss: I don't know anything about sorry
gilfoyle has quit [Ping timeout: 272 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
ssiris has joined #ruby
dhk has quit [Read error: Connection reset by peer]
dhk has joined #ruby
<Nawn> ls
<Nawn> woops, wrong buffer haha
moon_man_420 has quit [Ping timeout: 250 seconds]
<von-strauss> ls
WebDawg has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
Nawn has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
WebDawg has joined #ruby
dhk has quit [Read error: Connection reset by peer]
dhk has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
smathy has joined #ruby
elementaru has quit [Remote host closed the connection]
maletor2 has joined #ruby
Ebok has quit [Read error: No route to host]
roamingdog has joined #ruby
Ebok has joined #ruby
Rodya_ has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tristanp has joined #ruby
Yzguy has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
wetriner has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
tristanp has joined #ruby
bravowhiskey has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
Yiota has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
mattwashere has quit [Remote host closed the connection]
shakes has joined #ruby
duckpuppy has joined #ruby
tmtwd has joined #ruby
dar123 has joined #ruby
mattwashere has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
Devalo has joined #ruby
m_antis has joined #ruby
houhoulis has quit [Remote host closed the connection]
tristanp_ has joined #ruby
blaxter has quit [Quit: KTHXBYE]
Devalo has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
trista___ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
konsolebox has quit [Max SendQ exceeded]
allcentury has joined #ruby
konsolebox has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
wetriner has left #ruby ["Leaving"]
Rodya_ has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tristanp_ has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
paradisaeidae_ has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
davedev2_ has quit []
tristanp has quit [Ping timeout: 252 seconds]
lightt has joined #ruby
<paradisaeidae_> So I've moved my previous ~/.e dir aside, new one is created on login, same issue with sound.
<paradisaeidae_> So must be a pulse config?
mattwashere has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
maletor2 has joined #ruby
mattwashere has joined #ruby
arlek has joined #ruby
<lightt> im new to programming should i learn Ruby first or Python
<lightt> or both at once
<paradisaeidae_> good question...
<paradisaeidae_> For the log term, reading your own code in Ruby is more bearable than any previous language I've used.
<paradisaeidae_> ... I've used around twenty by now.
<lightt> :)
<paradisaeidae_> SO I stick to it, not exposed myself to much python.
<paradisaeidae_> Though when I have to read some python, usually it's understandable.
maletor2 has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
<lightt> thanks for your answer
magikid has joined #ruby
Madplatypus has joined #ruby
mattwashere has quit [Remote host closed the connection]
bravowhiskey has quit [Remote host closed the connection]
tristanp has joined #ruby
phredus__ has joined #ruby
mattwashere has joined #ruby
nankyokusei has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
ssiris has quit [Ping timeout: 272 seconds]
tvon has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
Contigi has quit [Quit: Leaving]
m_antis has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
Alazoral has quit [Ping timeout: 250 seconds]
threh has joined #ruby
tristanp has joined #ruby
karmatr0n has joined #ruby
mattwashere has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
gusrub has quit [Ping timeout: 250 seconds]
paradisaeidae has joined #ruby
M570 has joined #ruby
jaiks1 has quit [Ping timeout: 272 seconds]
shakes has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tristanp has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
threh has quit [Ping timeout: 250 seconds]
magikid has quit [Quit: Leaving.]
Yzguy has quit [Quit: Zzz...]
mjuszczak has quit []
hutch34 has joined #ruby
Nawn has joined #ruby
Nawn has quit [Remote host closed the connection]
jaiks1 has joined #ruby
roamingdog has quit [Remote host closed the connection]
allcentury has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
wnd_ has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
wnd has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Alazoral has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
arooni has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
<arooni> hey anyone here use rvm with fish ? i'm having trouble getting it installed correctly i keep seeing, "Warning! PATH is not properly set up, '/home/david/.rvm/gems/ruby-2.3.0/bin' is not at first place" ... even though ive installed fish functions as instructed
braincrash has quit [Quit: bye bye]
tristanp has joined #ruby
<sarkis> lightt: generally you will get more help with ruby and there are more resources imo
tristanp_ has quit [Read error: Connection reset by peer]
<sarkis> i've used both languages now and prefer ruby ... whereas earlier in my career preferred python
<sarkis> can't go wrong with either though.. both great first options
darkxploit has quit [Quit: Leaving]
tristanp_ has joined #ruby
wnd_ is now known as wnd
arescorpio has joined #ruby
grios has quit [Ping timeout: 240 seconds]
|meta has quit [Quit: Connection closed for inactivity]
tristanp has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
maletor2 has joined #ruby
lightt has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Quit: WeeChat 1.4]
Vingador has joined #ruby
maletor2 has quit [Ping timeout: 244 seconds]
k3rn31 has joined #ruby
aries_liuxueyang has quit [Read error: Connection reset by peer]
aries_liuxueyang has joined #ruby
nettoweb has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
c355e3b has quit [Quit: Connection closed for inactivity]
k3rn31 has quit [Quit: Computer has gone to sleep.]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
lxsameer has joined #ruby
jenrzzz has joined #ruby
roamingdog has quit [Remote host closed the connection]
bob434 has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
mloy has joined #ruby
chip_ has quit [Ping timeout: 244 seconds]
safe has joined #ruby
allcentury has joined #ruby
northfurr has joined #ruby
roamingdog has joined #ruby
tie has joined #ruby
paradisaeidae has joined #ruby
<tie> is there a binary to string and string to binary call in ruby?
jancel has joined #ruby
Yiota_ has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
dkam has joined #ruby
<Arcaire> tie: .pack
<Arcaire> and .unpack
Yiota_ has quit [Client Quit]
<tie> ill try it out. Thank you.
<tie> im guessing unpack it decimal to binary?
<Arcaire> It's the reverse of .pack.
lictor36 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
<Arcaire> >> [1000001].pack('C')
<ruby[bot]> Arcaire: # => "A" (https://eval.in/579053)
duckpuppy has joined #ruby
<Arcaire> >> "A".unpack('B*')
<ruby[bot]> Arcaire: # => ["01000001"] (https://eval.in/579054)
jancel has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<tie> im trying to go from '3' -> '11' and '11' -> 3
<Arcaire> oh
<Arcaire> >> 3.to_s(2)
<ruby[bot]> Arcaire: # => "11" (https://eval.in/579055)
<baweaver> >> '3'.to_i(2)
<ruby[bot]> baweaver: # => 0 (https://eval.in/579056)
<Arcaire> rekt
<baweaver> freaking ninjas
<Arcaire> >> "11".to_i(10)
<ruby[bot]> Arcaire: # => 11 (https://eval.in/579057)
<Arcaire> oops
<Arcaire> >> "11".to_i(2)
<ruby[bot]> Arcaire: # => 3 (https://eval.in/579058)
<Arcaire> my bad
guardianJ has joined #ruby
<tie> what is the number in the ()?
<baweaver> radix
<Arcaire> The base.
<tie> ahhh
<baweaver> also that
diegoviola has quit [Quit: WeeChat 1.5]
<Arcaire> So, 2 is binary (base 2), 8 would be octal (base 8).
<Arcaire> 16 would be hex.
* baweaver spends too much time in JS
<Arcaire> >> 255.to_s(16)
<ruby[bot]> Arcaire: # => "ff" (https://eval.in/579059)
<domgetter> And of course, the default is 10
<tie> Thanks!
<Arcaire> np
<baweaver> Glad we could tie things up for you
duckpuppy has quit [Ping timeout: 258 seconds]
<tie> >.>
<baweaver> oh yes
e4xit_ has joined #ruby
nando293921 has joined #ruby
Devalo has joined #ruby
e4xit has quit [Ping timeout: 240 seconds]
e4xit_ is now known as e4xit
tristanp_ has joined #ruby
<tie> So what is the error in my thinking?
<tie> im trying to go from 4 -> 100
tristanp has quit [Ping timeout: 260 seconds]
<Arcaire> Oh, don't use .pack
<Arcaire> in that cas
<Arcaire> e
<Arcaire> that's for buffer sort of stuff
<Arcaire> I misinterpreted what you wanted, heh.
<tie> >.> running me around in circles i see
<Arcaire> :D
rkazak has joined #ruby
<tie> okay, so now im getting an output of 0
<tie> im wanting 100 in binary
<Arcaire> >> "4".to_i(2)
<ruby[bot]> Arcaire: # => 0 (https://eval.in/579060)
gix has quit [Ping timeout: 264 seconds]
<Arcaire> >> 4.to_s(2)
<ruby[bot]> Arcaire: # => "100" (https://eval.in/579061)
<Arcaire> huh
<tie> WOO
<tie> your STILL trying to screw with me
<Arcaire> not really sure why the former one didn't work there tbh
<Arcaire> oh wait, ofc,
<Arcaire> so if you want to go string => string
<Arcaire> you'll have to go
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
<Arcaire> >> "4".to_i.to_is2)
<ruby[bot]> Arcaire: # => /tmp/execpad-8c6b4c63a9d6/source-8c6b4c63a9d6:2: syntax error, unexpected ')', expecting keyword_end ...check link for more (https://eval.in/579062)
<Arcaire> jesus christ whatever rubybot
<Arcaire> you know what i mean
<tie> lmao
<Arcaire> you could probably just do a formatted print or something
<Arcaire> but realistically i don't know the scope of your app so i'm just punching the dark here with what i see in that gist
<tie> im taking in a string of 8 1s and 0s and encrypting them
ponga has joined #ruby
<tie> all the while keeping them as strings
<bougyman> tie: well it's not a secret anymore
mattwashere has joined #ruby
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
<tie> Got it! thanks
<tie> Whats the command to check the current datatype?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
<tie> Sorry, pampered by visual studio and c++
nando293921 has quit [Ping timeout: 260 seconds]
<Arcaire> >> "hi".class
<ruby[bot]> Arcaire: # => String (https://eval.in/579064)
<Arcaire> >> ["h", "i"].class
<ruby[bot]> Arcaire: # => Array (https://eval.in/579065)
<tie> Your just a wealth of knowledge. Your my new best friend.
Sammichmaker has joined #ruby
<Arcaire> >> ["h", "i"].each { |e| e.class }
<ruby[bot]> Arcaire: # => ["h", "i"] (https://eval.in/579066)
<Arcaire> lol forgot that it's one lines
<Radar> >> "hi".is_a?(String)
<ruby[bot]> Radar: # => true (https://eval.in/579067)
hk238 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
tristanp has joined #ruby
mattwashere has quit [Ping timeout: 276 seconds]
xlegoman has joined #ruby
northfurr has quit [Quit: northfurr]
roamingdog has quit [Remote host closed the connection]
Sammichmaker has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightt has joined #ruby
kareeoleez has joined #ruby
YaknotiS has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
maletor2 has joined #ruby
tie has quit [Ping timeout: 250 seconds]
guardianJ has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
dimasg has joined #ruby
YaknotiS has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
maletor2 has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
jaguarma_ has joined #ruby
tristanp_ has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
CorOne has joined #ruby
roamingdog has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
Corrosive_ has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
<Radar> I'm generating a CSV using CSV.generate, but it's a few hundred thousand lines of CSV data so that leads to memory bloat. Is there a recommended way to kind of write this file in chunks?
pawnbox has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
<Radar> Maybe CSV.open might be what I want.
k3rn31 has joined #ruby
tristanp_ has joined #ruby
<Arcaire> Radar: probably open with append mode, write in 4096kb chunks
Sammichmaker has joined #ruby
JoshGlzBrk has joined #ruby
<Arcaire> i guess that depends on the length of each line tho actually, pick a number :^)
<Arcaire> does it really matter though? it'll be gc'd after a couple seconds
karmatr0n has joined #ruby
tax has joined #ruby
<Arcaire> oh neat i just found a typo in the ruby docs while looking at this
ramfjord has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
dhk has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 260 seconds]
d0lph1n98 has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
mikecmpbll has joined #ruby
allcentury has joined #ruby
Devalo has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
Devalo has quit [Remote host closed the connection]
bob434 has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
roamingdog has joined #ruby
tie has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
<tie> Is there a limit to how many datamember function calls you can make on one line? like 'what = test[0].to_i.to_s(2)'
ur5us has quit [Remote host closed the connection]
<Radar> no, you can chain as many as you like
bob434 has quit [Quit: This computer has gone to sleep]
<tie> Great, i know in Scheme theres a limit of 4-5 but i didnt know if my code had a bug or if it was a limit in the language.
<apeiros> you might be limited by your OS' max file size ;-p
Vingador has quit [Ping timeout: 252 seconds]
<apeiros> now I actually wonder whether ruby has limits on method name size
<tie> Alright, if i need to .upcase.downcase.upcase 4.2 million times, im pretty sure the problem isnt with the code...
<apeiros> hm, seems to be the same as string-length, and since stringlength is a long, that limit is pretty high
mleung has joined #ruby
tildes has joined #ruby
<Arcaire> upon trying, i've crashed my text editor
<tie> I beginner Ruby programmer has broken Ruby. I feel pretty accomplished.
<tie> a*
roamingdog has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
tristanp has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
<apeiros> Arcaire: achievement unlocked? :D
* apeiros off now, bye :)
<Arcaire> apeiros: it also crashed nano, and vim is struggling
<tie> test = "10"
<tie> print test.to_i.to_s(10)
<tie> I'm tying to convert 10 (binary) to '2' decimal. But its converting it to 10. What would you recommend I change?
<Arcaire> λ ruby x.rb
<Arcaire> x.rb: stack level too deep (SystemStackError)
<Arcaire> >> "10".to_i(2)
<ruby[bot]> Arcaire: # => 2 (https://eval.in/579071)
<Arcaire> You keep the base the same.
<tie> Sweet, thanks.
thejamespinto_ has joined #ruby
Cohedrin has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
thejamespinto has quit [Ping timeout: 258 seconds]
kareeoleez has quit [Remote host closed the connection]
craigp has joined #ruby
maletor2 has joined #ruby
tristanp has joined #ruby
slackbotgz has joined #ruby
von-strauss has quit [Ping timeout: 244 seconds]
lictor36 has quit [Quit: lictor36]
maletor2 has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bob434 has joined #ruby
roamingdog has joined #ruby
mloy has quit [Quit: Leaving]
northfurr has quit [Quit: northfurr]
ur5us has joined #ruby
threh has joined #ruby
tmtwd has joined #ruby
RegulationD has joined #ruby
<tie> I'm starting to love Ruby more and more. I used C++ for 6 months and the algorithm i wrote took 226 lines and 2 days to write. In four hours I've been able to write the same algorithm in Ruby in 108 lines...
<tie> Go functional languages :3
Akagi201 has joined #ruby
<tie> I've only been doing ruby for 13 hours.
d0lph1n98 has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
jancel has joined #ruby
dkam has quit [Quit: Be back later ...]
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
karmatr0n has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
pawnbox_ has joined #ruby
jancel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
sarkis has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
gilfoyle has joined #ruby
northfurr has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
tristanp_ has joined #ruby
duncannz has joined #ruby
arescorpio has quit [Quit: Leaving.]
tie has quit [Ping timeout: 250 seconds]
gilfoyle has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
lxsameer has quit [Quit: WeeChat 1.5]
ur5us has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
slackbotgz has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
last_staff has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
aufi has joined #ruby
djbkd has joined #ruby
threh has quit [Ping timeout: 258 seconds]
Ebok has quit [Quit: Leaving]
dionysus69 has joined #ruby
M570` has joined #ruby
djbkd has quit [Remote host closed the connection]
M570 has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
aganov has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
Macaveli has joined #ruby
n1x-nz has joined #ruby
roamingdog has quit [Remote host closed the connection]
allcentury has joined #ruby
goeast has joined #ruby
k0n has joined #ruby
<k0n> how do we view the channel's owner?
tristanp has joined #ruby
<jhass> k0n: /msg ChanServ ACCESS #channel LIST
<jhass> what's the matter?
QpQ4 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
<k0n> thank you jhass
maletor2 has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<Radar> :bike:
pnbeast has quit [Quit: leaving]
<Radar> You saw nothing.
<k0n> i don't like that there are founders that are mean
trista___ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
<Arcaire> what
<jhass> in #ruby?
tax has quit [Ping timeout: 240 seconds]
<k0n> no in #css
<jhass> ah well
<k0n> you guys seem nice
agit0 has joined #ruby
<Arcaire> oh lol
<jhass> ?offtopic ;)
<ruby[bot]> jhass: I don't see no ;), whom should I tell about offtopic?
<Arcaire> i was gonna say
<jhass> ?offtopic
<ruby[bot]> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<jhass> :)
<Arcaire> #ruby is almost as safe a space as #node
maletor2 has quit [Ping timeout: 240 seconds]
<k0n> what is a good route for a self-taught rubyist
<k0n> in terms of being able to find a job without a college education
<k0n> and learning rub
<k0n> ruby
tristanp_ has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: Leaving]
uncertainty has joined #ruby
tristanp has joined #ruby
solars has joined #ruby
roshanavand has joined #ruby
<mikecmpbll> k0n : learn it, make some stuff that demonstrates to employers you're proficient.
ramfjord has quit [Ping timeout: 240 seconds]
<k0n> what kind of stuff should you make?
<Arcaire> Things you're interested in.
<mikecmpbll> whatever takes your fancy, go wild.
<Arcaire> I'm building a GitHub clone for BitKeeper, for instance.
trista___ has quit [Ping timeout: 252 seconds]
<mikecmpbll> i like horse racing, so i made a system that predicts winners of horse races.
Contigi has joined #ruby
<Arcaire> Does it use LSTM?
<mikecmpbll> 'fraid not :)
<Arcaire> or any other form of neural network, but LSTM would be the best for such discrete data
nankyokusei has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
<mikecmpbll> no neural network at all, atm.
uncertainty has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
fenre has joined #ruby
tax has joined #ruby
ur5us has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Remote host closed the connection]
uncertainty has joined #ruby
tristanp has joined #ruby
fenre has quit [Remote host closed the connection]
dkam has joined #ruby
raeoks has joined #ruby
fenre has joined #ruby
grassass has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tax has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
karmatr0n has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
tildes has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
User458764 has joined #ruby
dkam has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hanmac> mikecmpbll: wait until your system does tell you the wrong horses and then does use your money to bet on the right ones ;P
codecop has joined #ruby
<mikecmpbll> :D
norc has joined #ruby
grassass has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
d0lph1n98 has joined #ruby
tristanp has joined #ruby
isxek has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
phredus__ has quit [Remote host closed the connection]
Omni_ has quit [Ping timeout: 240 seconds]
uncertainty has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
Omni has joined #ruby
Omni is now known as Guest62665
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
tristanp has joined #ruby
anisha has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.0.1]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
uncertainty has joined #ruby
tristanp has joined #ruby
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
c0mrad3 has joined #ruby
dkam has joined #ruby
avelldiroll has joined #ruby
dling has quit [Ping timeout: 240 seconds]
dling` has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
okdas has quit [Ping timeout: 276 seconds]
chridal has quit [Ping timeout: 240 seconds]
k0n has quit [Quit: flashing]
roamingdog has joined #ruby
twistedpixels has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 276 seconds]
veloutin has quit [Ping timeout: 272 seconds]
Guest16607 has quit [Ping timeout: 260 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
Ariadeno has joined #ruby
z0id has left #ruby ["Leaving"]
Ariadeno is now known as Guest56222
chridal has joined #ruby
veloutin has joined #ruby
solars has quit [Ping timeout: 264 seconds]
roamingdog has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
maletor2 has joined #ruby
solars has joined #ruby
dkam has quit [Ping timeout: 250 seconds]
skade has joined #ruby
lxsameer has joined #ruby
ur5us has joined #ruby
skade has quit [Client Quit]
maletor2 has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
okdas has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
n1x-nz has quit [Ping timeout: 276 seconds]
uncertainty has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
Ishido has joined #ruby
Guest56222 has quit [Ping timeout: 260 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Ariadeno_ has joined #ruby
eGGshke has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
Azure has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
LoneHermit has joined #ruby
tristanp has joined #ruby
last_staff has quit [Quit: last_staff]
karmatr0n has joined #ruby
the_drow has joined #ruby
safe has quit [Quit: Leaving]
uncertainty has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
TvL2386 has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
[spoiler] has quit [Quit: Cheers!]
n1x-nz has joined #ruby
pen has joined #ruby
dkam has joined #ruby
skade has joined #ruby
terlar has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
skade has quit [Client Quit]
r0bby_ has joined #ruby
pen has quit [Client Quit]
antgel has joined #ruby
hfp has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ICantCook has quit [Ping timeout: 250 seconds]
mrmortondk has joined #ruby
crdpink has quit [Remote host closed the connection]
crdpink2 has joined #ruby
TomyWork has joined #ruby
hfp has joined #ruby
cfillion has quit [Ping timeout: 260 seconds]
cfillion has joined #ruby
creat has quit [Ping timeout: 264 seconds]
creat has joined #ruby
watersoul has quit [Remote host closed the connection]
watersoul has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
jnoob22 has quit [Ping timeout: 264 seconds]
DTZUZU has quit [Ping timeout: 240 seconds]
sluukkonen has quit [Ping timeout: 240 seconds]
dkam has quit [Ping timeout: 244 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
<adaedra> Hi
johnny56 has joined #ruby
bigkevmcd has joined #ruby
saltsa has quit [Ping timeout: 252 seconds]
galeido has quit [Ping timeout: 252 seconds]
roshanavand has quit []
saltsa has joined #ruby
galeido has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
jnoob22 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
uncertainty has quit [Ping timeout: 244 seconds]
thejamespinto_ has quit [Remote host closed the connection]
skakri has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
firstdayonthejob has joined #ruby
hightower3 has joined #ruby
skakri has joined #ruby
thejamespinto has quit [Ping timeout: 240 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
goeast has quit [Ping timeout: 258 seconds]
eGGshke has quit [Remote host closed the connection]
ocbtec has joined #ruby
tristanp has joined #ruby
biox- has quit [Ping timeout: 250 seconds]
gilfoyle has joined #ruby
mark_66 has joined #ruby
biox has joined #ruby
roamingdog has joined #ruby
vondruch has joined #ruby
allcentury has joined #ruby
johnny56 has joined #ruby
gilfoyle has quit [Ping timeout: 276 seconds]
dkam has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
maletor2 has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
sluukkonen has joined #ruby
maletor2 has quit [Ping timeout: 260 seconds]
eGGshke has joined #ruby
nankyokusei has joined #ruby
einarj has joined #ruby
uncertainty has joined #ruby
marr has joined #ruby
Tempesta has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
Ropeney has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
d0lph1n98 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
joonty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox_ has quit [Ping timeout: 272 seconds]
karmatr0n has joined #ruby
jaguarmagenta has joined #ruby
sarkis has joined #ruby
syngularity has quit [Ping timeout: 272 seconds]
syngularity has joined #ruby
minimalism has quit [Quit: minimalism]
antgel has quit [Ping timeout: 276 seconds]
uncertainty has quit [Ping timeout: 240 seconds]
duncannz has quit [Remote host closed the connection]
antgel has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
maladr0it has joined #ruby
<maladr0it> morning!
jaguarmagenta has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<maladr0it> i have my first ever technical interview next week. i have to refactor some 'basic' ruby code. Any advice on where to get some practice in?
sarkis has quit [Ping timeout: 260 seconds]
Snowy has quit [Remote host closed the connection]
<shevy> write lots and lots of code yourself
tristanp_ has joined #ruby
<jhass> maladr0it: excercism.io codewars.com, idle here and help folk out
CloCkWeRX has quit [Ping timeout: 240 seconds]
<maladr0it> thanks so much, exercism looks good
tristanp has quit [Ping timeout: 252 seconds]
skade has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
tristanp has joined #ruby
anisha has quit [Ping timeout: 276 seconds]
lsmola_ has joined #ruby
lsmola has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
xkapastel has quit [Quit: Connection closed for inactivity]
phatypus has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
CloCkWeRX has joined #ruby
thejamespinto has joined #ruby
gilfoyle has joined #ruby
senayar has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
goeast has joined #ruby
etehtsea has joined #ruby
claudiuinberlin has left #ruby ["Textual IRC Client: www.textualapp.com"]
gilfoyle has quit [Ping timeout: 264 seconds]
thejamespinto has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
allcentury has joined #ruby
ur5us has joined #ruby
toretore has joined #ruby
pawnbox has quit [Remote host closed the connection]
craigp has quit [Quit: WeeChat 1.5]
allcentury has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
pawnbox has joined #ruby
d0lph1n98 has joined #ruby
digneety has joined #ruby
roamingdog has joined #ruby
r0bby_ is now known as robbyoconnor
CausaMortis has joined #ruby
craigp has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tie_ has joined #ruby
User458764 has joined #ruby
n1x-nz has quit [Quit: Computer says no]
anisha has quit [Ping timeout: 244 seconds]
maletor2 has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
maximilian has joined #ruby
LoneHermit has joined #ruby
maletor2 has quit [Ping timeout: 240 seconds]
weckl has joined #ruby
weckl has quit [Max SendQ exceeded]
weckl has joined #ruby
joonty has joined #ruby
weckl has quit [Max SendQ exceeded]
anisha has joined #ruby
weckl has joined #ruby
lightt has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
sash_ has joined #ruby
tristanp_ has joined #ruby
Gasher has joined #ruby
eGGshke has quit [Remote host closed the connection]
<sash_> Hey everyone, I am working on an snmp monitoring script in ruby, and I try to use the snmp4em because it seems to have snmpbulkwalk implemented. I get a warning because of https://github.com/normelton/snmp4em/blob/master/lib/snmp4em/requests/snmp_bulkwalk_request.rb#L36. Can anyone explain, what this line tries to achieve? I am having trouble understanding it.
RegulationD has joined #ruby
Couch has joined #ruby
tristanp has quit [Ping timeout: 246 seconds]
<sash_> EndOfMibView looks like this: https://paste.fedoraproject.org/372585/60070414/
jaruga____ has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
eGGshke has joined #ruby
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tie_ has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
uncertainty has joined #ruby
blaxter has joined #ruby
<toretore> sash_: what is the warning?
goeast has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
ensyde__ has quit [Ping timeout: 260 seconds]
<sash_> toretore: Comparable#== will no more rescue exceptions of #<=> in the next release.
tristanp has quit [Ping timeout: 252 seconds]
<sash_> toretore: and Return nil in #<=> if the comparison is inappropriate or avoid such comparison.
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
sarkis has joined #ruby
<sash_> However, I am more interested in the line itself, it looks like dead code to me, because some tests I made always return false if I compare anything with a class like that.
<norc> sash_: Unless you use the class itself.
uncertainty has quit [Ping timeout: 240 seconds]
<norc> sash_: It's probably used as a poison token.
lightt has joined #ruby
saneax_AFK is now known as saneax
karmatr0n has quit [Ping timeout: 252 seconds]
<sash_> norc: Exactly, Test == Test is true. But how should response_vb.value ever become a ruby class definition?
<norc> sash_: not a class definition
<norc> sash_: SNMP::EndOfMibView is a constant pointing to an object of class Class.
<norc> Even classes are Objects.
<norc> >> Fixnum.is_a?(Object)
<ruby[bot]> norc: # => true (https://eval.in/579286)
<norc> >> Fixnum.class
<ruby[bot]> norc: # => Class (https://eval.in/579287)
sarkis has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<norc> sash_: I commonly use this in consumer/producer patterns. When my producer has no more work to do, it injects a StopToken into a shared queue, and my consumers pop from the queue until the object is a StopToken.
goeast has joined #ruby
braincras has quit [Ping timeout: 276 seconds]
<norc> sash_: the only things making classes special is that they have a class method ::new (Ruby provides this for you), which creates new objects of that kind. Other than that they are objects like anything else.
braincra- has joined #ruby
<norc> Well, there are some other subtle things. But for the sake of this lets assume that to be true.
pawnbox has quit [Remote host closed the connection]
ICantCook has joined #ruby
czerasz has joined #ruby
<norc> >> Foo = Class.new do def inialize(a); @a = a; end; attr_reader :a; end; puts Foo.new(1).a
<ruby[bot]> norc: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/579293)
<norc> >> Foo = Class.new do def initialize(a); @a = a; end; attr_reader :a; end; puts Foo.new(1).a
<ruby[bot]> norc: # => 1 ...check link for more (https://eval.in/579294)
flughafen has joined #ruby
tvw has joined #ruby
uncertainty has joined #ruby
duckpuppy has joined #ruby
beilabs has joined #ruby
DTZUZU has joined #ruby
|ifei5good has joined #ruby
emilkarl has joined #ruby
<czerasz> hi, what is the "Free heap slots" in the "Ruby VMs/Ruby heap size" NewRelic section? is that the number of objects freed by the GC?
<sash_> norc: I still don't get it, I think. Is EndOfMibView some kind of constant then?
d0lph1n98 has quit [Ping timeout: 260 seconds]
<norc> sash_: Any variable name that starts with an upper case letter is a constant.
<norc> sash_: It may become more obvious when you look at how exceptions are commonly defined:
<norc> >> MyError = Class.new(StandardError)
<ruby[bot]> norc: # => MyError (https://eval.in/579297)
howdoi has joined #ruby
<norc> (You could also use the class keyword, but this is shorter and more obvious)
duckpuppy has quit [Ping timeout: 250 seconds]
|ifei5g00d has quit [Ping timeout: 244 seconds]
<norc> czerasz: It is the number of slots that are allocated on Rubys heap but not used.
DTZUZU has quit [Ping timeout: 244 seconds]
last_staff has quit [Ping timeout: 244 seconds]
<flughafen> hey shevy I hope you
<flughafen> don't need to fly anywhere
terlar has quit [Ping timeout: 244 seconds]
<czerasz> norc: thx, can ruby reuse this memory?
bluOxigen has quit [Ping timeout: 264 seconds]
<norc> czerasz: Exactly.
beilabs_ has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
Vingador has quit [Remote host closed the connection]
<czerasz> norc: what if this grows constantly? Does it indicate a memory leak?
<norc> czerasz: That would indicate a bug in Ruby.
<norc> Or might.
<norc> So from the perspective of the operating system it might be a memory leak.
alxgsv has quit [Quit: https://fnordserver.eu]
<norc> (I do not understand the gc too well, so I am not sure what policy it uses to free memory back to the operating system)
beilabs_ has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
flopsec has quit [Quit: https://fnordserver.eu]
Guest74293 has quit [Quit: https://fnordserver.eu]
illusionmedic has quit [Quit: https://fnordserver.eu]
beilabs has joined #ruby
dkam_ has joined #ruby
bmorrison has joined #ruby
mikecmpbll has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
johnmilton has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
braincra- has quit [Ping timeout: 264 seconds]
dkam has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 260 seconds]
uncertainty has quit [Ping timeout: 272 seconds]
digneety has quit [Ping timeout: 244 seconds]
lightt has quit [Remote host closed the connection]
CausaMortis has quit [Ping timeout: 244 seconds]
c355e3b has joined #ruby
allcentury has joined #ruby
juanca_ has quit [Ping timeout: 246 seconds]
<jhass> norc: I actually hate that style of defining exceptions, I disagree it's more obvious
mdw has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
bmorrison has quit [Quit: bmorrison]
<jhass> czerasz: the GC will be conservative about freeing memory if your program has many spikes of actual usage
allcentury has quit [Ping timeout: 246 seconds]
bmorrison has joined #ruby
symm- has joined #ruby
bmorrison has quit [Client Quit]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
emilkarl has joined #ruby
Mia has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
zapata has joined #ruby
tristanp_ has joined #ruby
ur5us has quit [Remote host closed the connection]
trista___ has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 260 seconds]
maletor2 has joined #ruby
M570` has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
roamingdog has joined #ruby
maletor2 has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Ping timeout: 260 seconds]
<norc> jhass: I just meant it would be more obvious to show that a class is just an object.
last_staff has joined #ruby
digneety has joined #ruby
trista___ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 244 seconds]
braincra- has joined #ruby
nankyokusei has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
ruby-lang227 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
flopsec has joined #ruby
emilkarl is now known as emilkarl[away]
emilkarl[away] is now known as emilkarl
pajton has joined #ruby
CausaMortis has joined #ruby
ur5us has joined #ruby
nettoweb has joined #ruby
bob434 has joined #ruby
karmatr0n has joined #ruby
jaguarmagenta has joined #ruby
bob434 has quit [Client Quit]
sarkis has joined #ruby
phatypus has quit [Quit: .>]
pajton has quit [Quit: I'm out!]
pajton has joined #ruby
digneety has quit [Ping timeout: 264 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
<ruby-lang227> Hello, I've been learning Ruby as of late and I'm not entirely certain of my thinking. Could you say that .class can be run on any object and returns the name of the class from which the object was instantiated (so any ClassName.class == Class), whereas .superclass can only be called on objects that are also classes and it's directly related to class inheritance?
sarkis has quit [Ping timeout: 260 seconds]
bob434 has joined #ruby
jyaworski has quit [Ping timeout: 250 seconds]
jyaworski has joined #ruby
zel has joined #ruby
zel is now known as Guest20497
illusionmedic has joined #ruby
pajton has quit [Client Quit]
pajton_ has joined #ruby
pajton_ has quit [Remote host closed the connection]
pajton has joined #ruby
pajton has quit [Remote host closed the connection]
sdothum has joined #ruby
pajton has joined #ruby
uncertainty has joined #ruby
pajton has quit [Client Quit]
twintail has quit [Remote host closed the connection]
phredus_ has quit [Remote host closed the connection]
<norc> ruby-lang227: #superclass is a method of Class, and can be called on any object of class Class.
<norc> Even the root of all objects:
<norc> >> BasicObject.superclass
<ruby[bot]> norc: # => nil (https://eval.in/579321)
<norc> Well classes.
wmsuvd has joined #ruby
<norc> ruby-lang227: And Object#class can be run on any Object that has Object in its ancestry (that excludes BasicObject/Delegator by the way)
<norc> >> BasicObject.new.class
<ruby[bot]> norc: # => undefined method `class' for #<BasicObject:0x41475cc0> (NoMethodError) ...check link for more (https://eval.in/579327)
CloCkWeRX has joined #ruby
alxgsv has joined #ruby
d0lph1n98 has joined #ruby
emilkarl is now known as emilkarl[away]
leitz has joined #ruby
<ruby-lang227> norc: thank you, it makes sense
digneety has joined #ruby
allcentury has joined #ruby
tristanp has joined #ruby
trista___ has quit [Ping timeout: 276 seconds]
Parko has quit [Quit: In a while, crocodile]
<norc> ruby-lang227: But yeah. Ignoring a few corner cases what you said was correct.
dimasg has joined #ruby
phredus has joined #ruby
fenre has quit [Ping timeout: 276 seconds]
symm- has quit [Ping timeout: 272 seconds]
thejamespinto has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
anisha has quit [Ping timeout: 258 seconds]
rodfersou has joined #ruby
dimasg has quit [Ping timeout: 264 seconds]
tlaxkit has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
thejamespinto has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
<leitz> Coffee hasn't kicked in, I'm missing the obvious. Why is the outfile only holding the one data bit? It should be cumulative between runs of the program. https://gist.github.com/LeamHall/bd396647c9c0455c19dffbbfa485ae51
alfiemax has quit [Ping timeout: 258 seconds]
<jhass> leitz: "w" -> "a"
anisha has joined #ruby
kirun has joined #ruby
<leitz> jhass, it's supposed to intake the entre file so that the "resume" hash can be updated. That's the theory, anyway.
yfeldblum has quit [Ping timeout: 258 seconds]
<domgetter> leitz when you open a file in "w" aka 'write' mode, it overwrites the file
<jhass> also your File API usage is terrible
<jhass> use the block form of File.open or the class level File.read / File.write
skade has joined #ruby
<jhass> don't rescue the error of the file missing, check with File.exists? prior trying to read it
aries_liuxueyang has joined #ruby
<jhass> https://gist.github.com/LeamHall/bd396647c9c0455c19dffbbfa485ae51#file-resume_data-rb-L39 return value isn't used, so this just wastes a few cycles
ur5us has quit [Remote host closed the connection]
<jhass> I strongly prefer {} over Hash.new, but that's style I guess
<leitz> jhass, line 38 is supposed to end with the resume_data file in a hash. When line 58 occurs it's supposed to write the updated resume hash into the file.
<leitz> jhass, as to style, I'm re-learning what little I knew. So there is a lot of room for improvement. FIrst, though, is making the program functional.
<jhass> line 58 only occurs if reading your file fails
<jhass> see my first point
<jhass> also it's commented in your gist
<leitz> Ah, sorry, lines 39, 40 were to test what was going on. I should have removed them from the gist before posting.
User458764 has joined #ruby
ruby-lang227 has quit [Quit: Page closed]
maletor2 has joined #ruby
<leitz> The logic should be: open the file into a hash. Add data to the hash. Overwrite the old file with the new hash.
johnmilton has joined #ruby
<jhass> >> require "json"; JSON.parse(File.open(__FILE__))
<ruby[bot]> jhass: # => no implicit conversion of File into String (TypeError) ...check link for more (https://eval.in/579352)
mark_66 has quit [Remote host closed the connection]
<jhass> leitz: if you would fix all my points it would work
lightt has joined #ruby
<jhass> sometimes style is necessary to discover issues and helps with correctness in the first place
roamingdog has joined #ruby
maletor2 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<jhass> you've been bitten by your bad style plain rescue instead of checking preconditions
mark_66 has joined #ruby
<leitz> jhass, the revisions tab just shows an entire "new" file.
<leitz> Which lines did you change?
<jhass> ??
<jhass> I didn't change anything
<jhass> I pointed out your issues here
<jhass> ?logs
<ruby[bot]> You can find a log of this channel at http://irclog.whitequark.org/ruby/
pawnbox has quit [Remote host closed the connection]
emilkarl[away] is now known as emilkarl
<leitz> Ah, fixed. For the nonce.
roamingdog has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
RegulationD has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
tristanp has joined #ruby
millerti has joined #ruby
terlar has joined #ruby
senayar has joined #ruby
madgen has joined #ruby
lightt has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 244 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexJakeGreen has joined #ruby
fenre has joined #ruby
karmatr0n has joined #ruby
goeast has quit [Ping timeout: 252 seconds]
sarkis has joined #ruby
tristanp_ has joined #ruby
maladr0it has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
inukshuk_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
phredus has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 276 seconds]
goeast has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
chip_ has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
qba73 has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
sarkis has quit [Ping timeout: 250 seconds]
ldnunes has joined #ruby
tristanp_ has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
inukshuk_ has quit [Client Quit]
bob434 has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
rodfersou has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
duckpuppy has joined #ruby
beilabs has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
DTZUZU has joined #ruby
bob434 has quit [Client Quit]
Noxilex has joined #ruby
bob434 has joined #ruby
grios has joined #ruby
davedev24 has joined #ruby
symm- has joined #ruby
joonty has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 258 seconds]
nettoweb has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
DTZUZU has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
rodferso1 has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<chridal> Is there a way to stub out something like `sh` in Ruby?
hanmac has joined #ruby
<chridal> I'm trying to write a unit test for a function that runs `sh` to scp something from one server to the scripts directory
<chridal> But I don't want to actually fetch that file from the server in the tests
<chridal> I'd like to stub that out and write / return a separate file from the tests
nettoweb has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
nettoweb has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
rodfersou has quit [Disconnected by services]
rodferso1 is now known as rodfersou
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
tristanp has joined #ruby
thejamespinto has joined #ruby
d0lph1n98 has quit [Remote host closed the connection]
<jhass> chridal: Stub Kernel#` ?
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goeast has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 260 seconds]
thejamespinto has quit [Ping timeout: 276 seconds]
<norc> >> def `(a); p a; end; `abc`
<ruby[bot]> norc: # => "abc" ...check link for more (https://eval.in/579406)
<norc> That has got to be the most ugly hack in Ruby..
hutch34 has joined #ruby
tristanp has joined #ruby
jeyraof has quit [Quit: Leaving]
<norc> sexp>> `a`
<norc> lex>> `a`
beilabs has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: Leaving]
<norc> ast>> `a`
<ruby[bot]> norc: I have parsed your code, the result is at https://eval.in/579409
<norc> Okay I have not thought of that..
<jhass> haha
goeast has joined #ruby
<User458764> Hi, you often need unique sequence of characters what is the best way to deal with thi, use timestamp?
tristanp_ has quit [Ping timeout: 252 seconds]
beilabs has joined #ruby
<jhass> the best way depends on the specific usecase most of the time
<norc> User458764: For cryptographic needs I recommend university. For everything else it depends.
tristanp_ has joined #ruby
<User458764> jhass I think so in my case it is for naming filenames
alfiemax has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 252 seconds]
<jhass> that's still fairly general of a usecase
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
bob434 has quit [Client Quit]
<User458764> Another question about this sometimes sofware or web service creates temporary data like a temp file. Does the service takes care of uniqueness before creating the file or does it assume a random string will be enough to be unique?
k3rn31 has joined #ruby
|meta has joined #ruby
aries_liuxueyang has joined #ruby
bob434 has joined #ruby
maletor2 has joined #ruby
beilabs has quit [Remote host closed the connection]
emilkarl is now known as emilkarl[away]
<User458764> jhass ok nice answer
lxsameer has quit [Quit: WeeChat 1.5]
camilasan has quit [Remote host closed the connection]
maletor2 has quit [Ping timeout: 240 seconds]
koooge has quit [Quit: Leaving...]
camilasan has joined #ruby
chip_ has quit [Ping timeout: 260 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
alfiemax has joined #ruby
tk__ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
emilkarl[away] is now known as emilkarl
nankyokusei has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
futilegames has quit [Client Quit]
Fernando-Basso has joined #ruby
d0nn1e has joined #ruby
k3rn31 has joined #ruby
futilegames has joined #ruby
<spudowiar> norc: wow, that hack actually looks beautiful, lol
<spudowiar> At least, unlike in #python, I wasn't just PM'd that this is a no lol zone
<tobiasvl> this is a lol zone
madgen has quit [Ping timeout: 272 seconds]
jaguarmagenta has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
<norc> spudowiar: Have you actually looked at the lexer for this?
futilegames has quit [Remote host closed the connection]
<norc> It gives a real headache.
sarkis has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jaguarmagenta has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 264 seconds]
nerium has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
digneety has quit [Ping timeout: 240 seconds]
Alazoral has joined #ruby
vondruch_ has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
tristanp has joined #ruby
Ropeney has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
tristanp_ has joined #ruby
tax has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
fenre has quit [Remote host closed the connection]
digneety has joined #ruby
slackbotgz has joined #ruby
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
fenre has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
jackjackdripper has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
mdw has joined #ruby
madgen has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
mdw_ has joined #ruby
roamingdog has joined #ruby
tristanp_ has joined #ruby
ramortegui has joined #ruby
bob434 has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
thejamespinto has joined #ruby
vondruch_ is now known as vondruch
domgetter has quit [Ping timeout: 252 seconds]
mdw has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
norc has quit [Quit: Page closed]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
gagrio has joined #ruby
thejamespinto has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Guest38693 has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
bkxd has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
bob434 has quit [Client Quit]
karmatr0n has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
bob434 has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
eljimmy has joined #ruby
maletor2 has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
bob434 has quit [Client Quit]
maletor2 has quit [Ping timeout: 272 seconds]
rkazak has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
bob434 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
mdw has joined #ruby
<maloik> jhass you can shift click lines ;-)
<maloik> oh apologies, not the same file
<jhass> I knew but thanks anyway ;)
antgel has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
mdw_ has quit [Ping timeout: 260 seconds]
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
arlek has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
prestorium has joined #ruby
mdw has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 252 seconds]
cwenner has joined #ruby
<tildes> chridal: you could write the function so, that the sh command is its default parameter, substituted by something else in your unit test. in another test, you could check the content of the default sh command
<tildes> chridal: actual stubbing options might depend on how you call sh in your program
<tildes> chridal: with regard to the return file, does the same function also return the file?
mdw has joined #ruby
thejamespinto has joined #ruby
tristanp has joined #ruby
<tildes> chridal: you might want to have file fetching in a separate method, there also giving the normal file path as the default parameter, substituted by your test file path, for the tests
trista___ has quit [Ping timeout: 260 seconds]
agit0 has quit [Ping timeout: 276 seconds]
<tildes> actually I have never seen a ruby program call sh to scp, now that I think about it :)
tristanp_ has joined #ruby
<tildes> in any case, this is how you could write something unit-testish without executing the actual call
symm- has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
sarkis has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
antgel has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
croberts has joined #ruby
jackjackdripper1 has joined #ruby
wojtodzio has joined #ruby
User458764 has joined #ruby
sarkis has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Ping timeout: 272 seconds]
<goeast> Hello I have library.rb:32:in `add_song': undefined method `<<' for nil:NilClass (NoMethodError). I know why its because I need to use two different instances of Artist as equivalent hash keys and use eql? and hash appropriately.
antgel has quit [Ping timeout: 260 seconds]
<goeast> However I am not able to imlement the code
<goeast> *implement
karmatr0n has quit [Ping timeout: 260 seconds]
<goeast> Can you give me a hint ?
wojtodzio has quit [Client Quit]
<goeast> but I still stucked
duckpuppy has joined #ruby
<Hates_> @goeast the array is nil that's why you can't push onto it
<tildes> goeast: I think add_song method should have a reference to the artist as well
hutch34 has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
<Hates_> goeast: the artist you are initializing the array with is not the same one you are trying to add to
DTZUZU has joined #ruby
<goeast> thank you tildes and Hates
<tildes> Library should not have attr_accessor :artist... assuming you want more than just one artist for the library?
<goeast> Hates : yes it why I need to say that it is equivalent
ishe_ua has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
<Hates_> goeast: plus the method `add_song` needs to take an artist and a song
duckpuppy has quit [Ping timeout: 276 seconds]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
edwinvdgraaf has joined #ruby
ta_ has quit [Remote host closed the connection]
<goeast> @Hates : iyou mean as a parameter ? def add_song(artist, song)
northfurr has joined #ruby
beilabs has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.5]
DTZUZU has quit [Ping timeout: 260 seconds]
<tildes> goeast: song should probably be a class of its own, and the song would have an artist member
kedare has joined #ruby
<Hates_> yeah, plenty of small improvements like that should be made ^^
bluOxigen has quit [Ping timeout: 252 seconds]
<tildes> goeast: you're new to ruby right? :)
<goeast> @tildes : yes
<goeast> ahahah
<goeast> I am doing it as an exercise
<tildes> goeast: small toy projects can be really useful
bob434 has joined #ruby
<goeast> OK so I will do one class for song
<goeast> one class for artist
skade has quit [Quit: Computer has gone to sleep.]
terlar has joined #ruby
<tildes> goeast: keep going. add some more object oriented programming on your reading / tutorial list
<goeast> the add song will that 2 parameters artist and song
<goeast> I will check my attr-accessor that I am using
<goeast> in the Library class
goeast_ has joined #ruby
goeast has quit [Read error: Connection reset by peer]
goeast_ is now known as goeast
moeabdol has quit [Ping timeout: 244 seconds]
stev has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<goeast> I had a problem with my conection
kaleido has quit [Changing host]
kaleido has joined #ruby
m_antis has joined #ruby
<goeast> @tildes and @hates thank you very mich for your kind help
stev_ has joined #ruby
<goeast> I will try to improve my code first
<goeast> with your suggestion
<tildes> goeast: you're welcome. come back with the new version :)
<goeast> thanks
brendan- has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
beilabs has joined #ruby
pawnbox has quit [Remote host closed the connection]
sarbs has quit [Ping timeout: 260 seconds]
craigp has quit [Ping timeout: 240 seconds]
vikid has joined #ruby
Nahra has quit [Ping timeout: 244 seconds]
sarbs has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
dimasg has joined #ruby
etehtsea has joined #ruby
codecop has quit [Remote host closed the connection]
justapersona has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
User458764 has joined #ruby
k3rn31 has joined #ruby
Oclair has joined #ruby
jhack has joined #ruby
roamingdog has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
jackjackdripper1 has quit [Quit: Leaving.]
SilverKey has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
kareeoleez has quit [Remote host closed the connection]
fenre has quit [Ping timeout: 240 seconds]
maletor2 has joined #ruby
tristanp has joined #ruby
Akagi201 has joined #ruby
justapersona has quit [Quit: Leaving.]
SilverKey has quit [Quit: Halted.]
goeast has quit [Read error: No route to host]
aganov has quit [Remote host closed the connection]
kriskropd has quit [Ping timeout: 260 seconds]
goeast has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
SMackMyBitchUp has joined #ruby
beilabs has quit []
ferr has joined #ruby
SilverKey has joined #ruby
nankyokusei has joined #ruby
symm- has joined #ruby
SilverKey has quit [Client Quit]
m_antis has quit [Ping timeout: 252 seconds]
justapersona has joined #ruby
kriskropd has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thejamespinto_ has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
thejamespinto has quit [Ping timeout: 272 seconds]
Alazoral has joined #ruby
nfk has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
SMackMyBitchUp has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Fernando-Basso has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
emilkarl is now known as emilkarl[away]
tristanp has quit [Ping timeout: 260 seconds]
digneety has quit [Ping timeout: 252 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
kgrz has joined #ruby
daguilaraguilar has joined #ruby
jaguarmagenta has joined #ruby
tk__ has quit [Quit: ばいばい]
tristanp_ has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arlek has quit [Read error: Connection reset by peer]
<chridal> tildes: Is there some other way I should be SCPing from Ruby besides using sh?
jaguarmagenta has quit [Ping timeout: 276 seconds]
<chridal> The way I had written it now it first fetches the file, and then runs CSV.read on it, and returns the contents.
<chridal> But you basically think I should move the sh-scp into its own function, and just not unit test that function specifically?
diegoaguilar has quit [Remote host closed the connection]
daguilaraguilar has quit [Remote host closed the connection]
eGGshke has quit [Quit: Leaving...]
SilverKey has joined #ruby
tristanp has joined #ruby
<chridal> And then just stub that function for the remaining functions?
jhack has quit [Quit: jhack]
Fernando-Basso has joined #ruby
antgel has joined #ruby
scepticulous has joined #ruby
jhbs has joined #ruby
ocbtec has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 260 seconds]
emilkarl[away] is now known as emilkarl
ocbtec has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
mleung has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has quit [Quit: Computer has gone to sleep.]
depesz has joined #ruby
Rodya_ has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
anisha has quit [Quit: Leaving]
bob434 has quit [Quit: Leaving]
minimalism has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
<depesz> hi. I mightbe lacking some vocabulary to explain what I need, but let me show you simple example. Given this input: [["a", "b", "c", "d"], ["9", "8", "7"]], I would like to generate all 12 results: [a, 9], [a,8], [a,7], [b,9], ...
ocbtec has quit [Quit: Lost terminal]
<depesz> but I need a way that will not require me to set specific number of loops inside - it should work with any number of elements in source arrays, on both levels
<madgen> depesz: that would be a cartesian product
workmad3 has quit [Ping timeout: 240 seconds]
<depesz> madgen: ok, how to get it? any ready function/method/class/gem?
<madgen> depesz: checkout Array#product
scepticulous has quit [Ping timeout: 244 seconds]
<madgen> depesz: it is built in in the Array class
<depesz> thank you, reading.
rippa has joined #ruby
andikr has quit [Remote host closed the connection]
skade has joined #ruby
<madgen> >> ["a","b","c","d"].product ["9", "8", "7"]
<depesz> ah, so i just "stack" products
sarkis has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
<depesz> %w{a b c d}.product(%w{9 8 7}).product(%w{x y z}).product(%w{5 6 7 }).map(&:flatten)
<depesz> does this look sensible, or am i missing some easier thing?
eljimmy has quit [Quit: This computer has gone to sleep]
joonty has joined #ruby
<depesz> ok. i think I got it, thank you :)
<jhass> I think you just changed your problem behind our back
<madgen> well, you can do [1,2,3].product([['x', 'y', 'z'],[5,6,7]])
<depesz> jhass: why? i mentioned, that number of elements/arrays is not fixed.
Devalo has joined #ruby
eljimmy has joined #ruby
<depesz> madgen: yeah. looks nicer.
<madgen> which is arguably more readable and less function calls to make, however asymptotic efficiency is similar
<madgen> depesz: you're very welcome
eljimmy has quit [Remote host closed the connection]
roamingdog has joined #ruby
<jhass> "any number of elements in the source array" != "any number of arrays"
nocnoc has joined #ruby
<nocnoc> hao!
AlexJakeGreen has quit [Remote host closed the connection]
<depesz> jhass: "in source arrays, on both levels"
<nocnoc> I'm looking for a Gem or somthing that let me get thet content of a web as firefox lecture mode does
<jhass> you mean all text in the body?
<jhass> or some heuristics to find the "main content"
<nocnoc> the ttext in the body
Guest38693 has quit [Ping timeout: 244 seconds]
<jhass> Nokogiri::HTML(html).css("body").text
<nocnoc> jhass great! :D
edwinvdgraaf has joined #ruby
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
nando293921 has joined #ruby
jhack has joined #ruby
TvL2386 has quit [Remote host closed the connection]
Yiota has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
Guest38693 has joined #ruby
Guest24860 has joined #ruby
tristanp has joined #ruby
qba73 has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
tristanp_ has joined #ruby
<nocnoc> jhass: i get scripts an buttons
<nocnoc> even text :P
<jhass> well you said you want all of it
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<shevy> always take everything!
trista___ has joined #ruby
<nocnoc> jaja, i only want text
<nocnoc> :P
xkapastel has joined #ruby
northfurr has quit [Quit: northfurr]
<jhass> the label of a button is text too
tristanp has quit [Ping timeout: 252 seconds]
arlek has joined #ruby
elementaru has joined #ruby
sarkis has quit [Ping timeout: 250 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
jancel has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<elementaru> hey
<elementaru> having troubles with threads
<jhass> that's normal
tristanp_ has joined #ruby
<elementaru> :) good to hear
dar123 has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
<jhbs> hi
dar123 has quit [Client Quit]
maletor2 has joined #ruby
CausaMortis has quit [Ping timeout: 250 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
<shevy> lol
madgen has quit [Ping timeout: 246 seconds]
<shevy> elementaru treat threads as an evil alien beast that tries to make you crazy
madgen has joined #ruby
Alazoral has quit [Ping timeout: 240 seconds]
<elementaru> I will try to have that in mind
stev_ has quit [Quit: Page closed]
Guest38693 has quit [Ping timeout: 260 seconds]
stev has quit [Quit: Page closed]
tristanp_ has quit [Ping timeout: 252 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
maletor2 has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
trista___ has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
nettoweb has joined #ruby
SilverKey has quit [Quit: Halted.]
goeast has quit [Read error: Connection reset by peer]
Gasher has quit [Quit: Leaving]
anisha has joined #ruby
Gasher has joined #ruby
northfurr has joined #ruby
eGGshke has joined #ruby
goeast has joined #ruby
Sammichmaker has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
chops_ has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
eljimmy has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
SilverKey has joined #ruby
fedexo has joined #ruby
depesz_ has joined #ruby
depesz has quit [Ping timeout: 244 seconds]
skade has joined #ruby
bluOxigen has joined #ruby
chouhoulis has joined #ruby
evidex has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
northfurr has quit [Quit: northfurr]
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
kareeoleez has joined #ruby
dar123 has joined #ruby
northfurr has joined #ruby
mattwashere has joined #ruby
mleung has quit [Quit: mleung]
jancel has quit [Remote host closed the connection]
uncertainty has joined #ruby
B1n4r10 has joined #ruby
Guest24860 has quit [Quit: Leaving]
duckpuppy has joined #ruby
dionysus69 has joined #ruby
norc has joined #ruby
DTZUZU has joined #ruby
Couch has quit [Ping timeout: 276 seconds]
anisha has quit [Quit: Leaving]
jhack has quit [Quit: jhack]
pietr0 has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
cfloare_ has quit [Ping timeout: 244 seconds]
uncertainty has quit [Ping timeout: 276 seconds]
cgfbee has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
Guest38693 has joined #ruby
triangles has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
sarkis has quit [Quit: WeeChat 1.5]
alfiemax has quit [Ping timeout: 260 seconds]
kedare has quit [Quit: Leaving]
tristanp has joined #ruby
pandaant has quit [Remote host closed the connection]
<elementaru> if someone could take a look.. the code is quite big, but all works fine except for listening which I don't quite get
<elementaru> shouldn't "listen" method run all the time?
Cohedrin has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
Gasher has quit [Quit: Leaving]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
<elementaru> and I think I got it, I'm not passing "client" most of the time
bluOxigen has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has quit [Quit: Leaving.]
idefine has joined #ruby
moeabdol has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol1 has joined #ruby
armyriad has joined #ruby
kriskropd has quit [Ping timeout: 260 seconds]
<norc> elementaru, the idea of classes in Ruby is not that you create one class and stuff everything inside it, but split your program into parts.
joonty has quit [Quit: This computer has gone to sleep]
<norc> elementaru, so you would have one class maybe dealing with connections, another class for cards, another class for the game engine.
<norc> Just to give you a rough idea.
nankyokusei has joined #ruby
<elementaru> I see your point
pglombardo has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
threh has joined #ruby
senayar has quit []
<jhbs> An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
<jhbs> continue.
<jhbs> Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
mattwashere has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Remote host closed the connection]
<norc> jhbs, try installing the gem manually, that will give you the error message.
nankyokusei has joined #ruby
<norc> (Not sure whether Bundler actually writes its log somewhere, this is probably easier)
dimasg has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
Mia has joined #ruby
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> elementaru, also please try to use 2-space indentation - it is common enough in Ruby to ask everybody to follow that convention (for readability sakes)
kriskropd has joined #ruby
<elementaru> anyhow, I do not get actually. So I pass (client) to "listen" method in the "run" method, and there's a 'msg = client.gets.chomp' on the loop, so why doesn't it pick up the messages?
<elementaru> it only picks up the messages and does msg_all method, when other methods are waiting for user's input
<norc> elementaru, the difficulty in debugging this is a result from your program design. By not separating all your modules it is hard to tell what is doing what.
<norc> It would force anyone to understand the entire scope of your program first.
Spami has quit [Ping timeout: 250 seconds]
Spami_ has joined #ruby
<elementaru> I see
tristanp_ has joined #ruby
binaryplease1 has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
<norc> elementaru, you could start by extracting all the code that defines the game engine (dealing with players and cards) into a separate class that does not know about network connections.
<norc> For example.
tristanp has quit [Ping timeout: 260 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
<elementaru> what is 2-space indentation btw? I should press space 2 times instead of tabbing?
maletor2 has joined #ruby
<norc> elementaru, which editor are you using?
binaryplease has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
<elementaru> notepad++
tristanp has joined #ruby
<norc> elementaru, go to Settings > Preferences > Tab Settings, set Tab Size to 2, and enable "Replace by space"
<elementaru> ok ty
idefine has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
mattwashere has joined #ruby
tristanp_ has joined #ruby
allcentury has joined #ruby
maletor2 has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
einarj has quit [Remote host closed the connection]
binaryplease1 is now known as binaryplease
tristanp has joined #ruby
hutch34 has quit [Ping timeout: 272 seconds]
weckl has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 276 seconds]
nankyoku_ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
diegoaguilar has joined #ruby
<jhbs> Errno Message
<jhbs> conftest.c:3:21: fatal error: sqlite3.h: No such file or directory
<norc> jhbs, gist the entire error message. Check the topic for a link on where.
northfurr has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
cgfbee has joined #ruby
<norc> elementaru, also extract your client code (should be your listen method) into a separate class that you can test externally.
imperator has joined #ruby
cfloare has joined #ruby
idefine has quit [Remote host closed the connection]
jancel has joined #ruby
<norc> imperator, race condition perhaps?
arlek has joined #ruby
pawnbox has quit [Remote host closed the connection]
ramfjord has joined #ruby
Noxilex has quit [Ping timeout: 244 seconds]
<norc> imperator, there is no guarantee that the assignment is actually executed before your assertion. Or am I being silly here?
<imperator> norc, i think you're right. Adding a small sleep call to the setup worked
<norc> imperator, let's figure out how to solve it *properly* then.
<imperator> join the thread?
pawnbox has joined #ruby
jaguarmagenta has joined #ruby
<norc> imperator, sounds like an idea.
vikaton has joined #ruby
<norc> imperator, Not sure whether the thread is still alive enough to the point where you can use #key? though
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> imperator, do you have external code that relies on that key?
<imperator> does a thread have to be alive to retain its keys? irb would indicate no
<norc> imperator, I am not sure how that minitest is actually useful.
<norc> imperator, either you have some code that relies on that key being present (which needs some form of synchronization to communicate to the outside), or you have no business testing it from outside the thread.
ramfjord has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
Akagi201 has quit [Remote host closed the connection]
<norc> imperator, testing whether a key is present *after* a thread has been joined is pointless because it tells you nothing about the state during the thread.
thejamespinto has joined #ruby
dar123 has joined #ruby
<norc> So really. This makes no sense to me.
hutch34 has joined #ruby
<imperator> norc, how would you test it?
<norc> imperator, test the behaviour of code.
<norc> Not internals.
tristanp_ has joined #ruby
<norc> Whether something sets some key at some point cannot be of relevance to you, unless some code depends on it.
thejamespinto_ has quit [Ping timeout: 260 seconds]
<norc> If some code depends on it, test it from *that* situatoin using the same synchronization methos.
<norc> *methods.
<jhbs> norc: i'll gist it thanks
etehtsea has quit [Quit: Computer has gone to sleep.]
cfloare has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 260 seconds]
<norc> imperator, and if you are testing your own thread implementation, test from inside your thread
cgfbee has quit [Ping timeout: 244 seconds]
<norc> Or synchronize it.
Guest38693 has quit [Ping timeout: 276 seconds]
ocbtec has joined #ruby
<norc> jhbs, google for the error message "sqlite3.h: No such file or directory"
tristanp has joined #ruby
<norc> You will find plenty of links helping you solve this. :)
hutch34 has quit [Ping timeout: 258 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
VeryBewitching has joined #ruby
CamCam2 has joined #ruby
uncertainty has joined #ruby
jancel has quit [Remote host closed the connection]
<shevy> jhbs ah you are von strauss with another nick!
<CamCam2> I thought I understood the ternary operator, but then I found this: `@status = status ? status[0...140] : status` which limits the length of status to 140. Can anyone explain to me how this works?
<CamCam2> In other words, if status is false, status = status?
<pontiki> that's it
<apeiros> yes
<CamCam2> But when would status = false
<apeiros> and it could be shortened to: @status = status && status[0,140]
<jhass> CamCam2: false or nil
idefine has joined #ruby
<CamCam2> Makes sense. Gracias amigos!
<apeiros> it's "limit status to 140 chars, if it is present, else don't do anything"
<jhbs> i'm not a power user so i'm hesitant to apply the workaround i found
uncertainty has quit [Ping timeout: 240 seconds]
<jhbs> i'll do it and see where it takes me. hopefully not to some awful, horrible eighth circle of hell
Guest38693 has joined #ruby
joonty has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
rodfersou|lunch is now known as rodfersou
joonty has quit [Client Quit]
RegulationD has joined #ruby
joonty has joined #ruby
<shevy> only if you would use a certain distribution
mdw has quit [Quit: Sleeping Zzzzz]
idefine has quit [Remote host closed the connection]
gusrub has joined #ruby
chops_ has quit [Remote host closed the connection]
tildes_ has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
<jhbs> so where do i go to get extconf.rb
User458764 has joined #ruby
User458764 has quit [Client Quit]
czerasz has quit [Ping timeout: 276 seconds]
symm-_ has joined #ruby
Gasher has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<jhbs>
yfeldblum has joined #ruby
QpQ4 has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
allcentury has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
leitz has quit [Quit: Nappy time]
goeast has quit [Remote host closed the connection]
symm-_ has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
craigp has joined #ruby
Guest38693 has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
gopz has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
cgfbee has joined #ruby
cfloare has joined #ruby
tristanp has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
mattwashere has quit [Remote host closed the connection]
kareeol__ has joined #ruby
northfurr has quit [Quit: northfurr]
tristanp_ has quit [Ping timeout: 252 seconds]
<gopz> Why would doing: "require './lib/arugula'" cause an error 'cannot load such file -- arugula/data_handler', but then doing "require './lib/arugula/data_handler'" produces no error. The only line in arugula.rb is "require 'aruguala/data_handler'
aries_liuxueyang has joined #ruby
spider-mario has joined #ruby
Sammichmaker has joined #ruby
<jhass> gopz: do ruby -Ilib arugula and require "arugula"
tristanp has quit [Read error: Connection reset by peer]
<jhass> later when your gem is installed lib will be added to the load path by rubygems
kareeoleez has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
<gopz> jhass: ruby -Ilib arugula gives me No such file or directory -- arugula (LoadError)
flughafen_ has joined #ruby
<jhass> gopz: arugula was meant to be whatever script you run
justapersona has quit [Quit: Leaving.]
<gopz> I am just entering these commands in rib
kareeol__ is now known as kareeoleez
<gopz> irb*
ramfjord has joined #ruby
symm- has joined #ruby
maletor2 has joined #ruby
justapersona has joined #ruby
7F1ABE0WR has joined #ruby
justapersona has quit [Client Quit]
<jhass> gopz: run irb with irb -Ilib then
dionysus69 has joined #ruby
joneshf-laptop has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
Billias has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
<gopz> jhass, should i run that from within the top level directory? I get irb/magic-file.rb:8:in `initialize': No such file or directory @ rb_sysopen - arugula (Errno::ENOENT)
maletor2 has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
jancel has joined #ruby
joonty has quit [Client Quit]
pglombardo has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
allcentury has joined #ruby
codecop has joined #ruby
hutch34 has joined #ruby
startupality has joined #ruby
pglombardo has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
Madplatypus has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
nocnoc has quit [Quit: WeeChat 1.4]
Es0teric has joined #ruby
tristanp_ has joined #ruby
<jhbs> Ok I fixed it!
<jhbs> Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
einarj has quit [Remote host closed the connection]
<jhbs> how seriously should i take this
mtkd has quit [Ping timeout: 244 seconds]
evidex has quit [Ping timeout: 244 seconds]
<apeiros> very
<jhbs> ok
<apeiros> seems to explain the consequences quite well, no?
<jhbs> i should redo bundler
<jhbs> yes
hutch34 has quit [Read error: Connection reset by peer]
hutch34_ has joined #ruby
<jhbs> ok good
<jhbs> redone
<jhbs> sorry to even ask such trivium
tristanp has quit [Ping timeout: 260 seconds]
skade has joined #ruby
mtkd has joined #ruby
skade has quit [Client Quit]
tristanp has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Billias has joined #ruby
Sammichmaker has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
Rodya_ has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
kgrz has joined #ruby
panpainter has joined #ruby
kgrz has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
hutch34_ has quit [Ping timeout: 250 seconds]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has joined #ruby
ishe_ua has quit [Remote host closed the connection]
SilverKey has joined #ruby
fenre has joined #ruby
duckpuppy has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
symm- has joined #ruby
fenre has quit [Remote host closed the connection]
DTZUZU has joined #ruby
fenre has joined #ruby
uncertainty has joined #ruby
arlek has joined #ruby
sdrew has joined #ruby
Snowy has joined #ruby
scottschecter has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 252 seconds]
scottschecter has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
neha- has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
SilverKey has quit [Quit: Halted.]
DTZUZU has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 250 seconds]
gopz has quit [Quit: This computer has gone to sleep]
m8 has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
gopz has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
tvw has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
arooni has joined #ruby
futilegames has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
al2o3-cr has quit [Quit: WeeChat 1.5]
adam12 is now known as adam
adam is now known as Guest47004
futilegames has left #ruby [#ruby]
al2o3-cr has joined #ruby
ferr has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
nankyoku_ has quit [Remote host closed the connection]
tristanp_ has joined #ruby
symm- has joined #ruby
sepp2k has quit [Quit: Leaving.]
tristanp has quit [Ping timeout: 260 seconds]
phoo1234567 has joined #ruby
Sammichmaker has joined #ruby
maletor2 has joined #ruby
jancel has quit [Remote host closed the connection]
sepp2k has joined #ruby
bio_grin has joined #ruby
<bio_grin> Hello
<bio_grin> Can anyone help me
<jhass> ?anyone
<ruby[bot]> Just ask your question, if anyone has or can, they will respond.
<jhbs> ?anyone
<ruby[bot]> Just ask your question, if anyone has or can, they will respond.
<bio_grin> jhass :P
bougyman is now known as anyone
<anyone> what's up, bio_grin ?
symm- has quit [Ping timeout: 260 seconds]
<jhbs> Don't ask to ask.
<bio_grin> this code is executing too long
<jhbs> Beg and grovel to ask.
anyone is now known as bougyman
sepp2k has quit [Client Quit]
<bio_grin> it needs to verify do hashes exist
<bio_grin> it was tested using 100k of lines
<bio_grin> can i shorten the time
<Nilium> Can a hash truly be said to exist?
<bio_grin> check the code?
<Nilium> Does a hash have to be sentient to exist?
<bio_grin> hmm idk
eljimmy has quit [Quit: This computer has gone to sleep]
threh has quit [Quit: 'Til next time]
<bio_grin> it stores everything in the hash
<jhass> what's too long?
<bio_grin> and then checks back
wmsuvd has quit [Read error: Connection reset by peer]
<bio_grin> the runtime
<jhass> also why do you do that?
<bio_grin> because i am doing a challenge
<jhass> no I mean some concrete figures
<bio_grin> and it wont pass due to long execution
eljimmy has joined #ruby
startupality has joined #ruby
<jhass> .keys allocates an array each time
<jhass> use .has_key?
<bio_grin> ah sec
howdoi has quit [Quit: Connection closed for inactivity]
Corrosive_ has joined #ruby
<jhass> also your loops can both simply be N.times do
<bio_grin> wtf
<bio_grin> it worked
<bio_grin> thank you
zeroDi has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
<jhass> bio_grin: also prefer "#{string} interpolation" over "string" + concatenation
<bio_grin> hmm ok
<bio_grin> no need for that
<jhass> so puts "#{key} = #{hash[key]}"
<bio_grin> i know
<bio_grin> :P
jackjackdripper has joined #ruby
<jhass> isn't that tremendously more readable? ;)
<jhass> (it's also faster)
<bio_grin> I was so drunk yesterday that i used calculate(x) instead of x.calculate in class
<bio_grin> Hmm ok
<shevy> very lispy
millerti has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<bio_grin> also i got another question
<jhass> idk what i, b, j or k are for
CorOne has quit [Ping timeout: 252 seconds]
multi_io has quit [Ping timeout: 260 seconds]
<bio_grin> this should find the max 7 numbers from the input
<bio_grin> it wont does that on my local machine but not online
<bio_grin> their fault?
multi_io has joined #ruby
<jhass> bio_grin: https://p.jhass.eu/27.rb
<bio_grin> ?
<jhass> oh, sorry
<bio_grin> no problem
<bio_grin> any problems with my code?
<jhass> should load now
<bio_grin> god that is efficient
<bio_grin> that is for the previous program
<bio_grin> ?
<jhass> yes
<bio_grin> i am ok with that
<bio_grin> i prefer to learn by my own methods
<bio_grin> i mean i will get that over time i think
<jhass> see how proper variable names makes stuff readable?
<bio_grin> yes
Nahra has joined #ruby
<bio_grin> 2d arrays is the name of the topic
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bio_grin> i put all into 1 array and find the max and then delete it and find the other max
<bio_grin> :P
djbkd has joined #ruby
<jhass> line 10 does nothing since you don't use the result
<bio_grin> hmm
<jhass> oh nvm it's an array at this point -.-
<jhass> use argument less .split though
LoneHerm_ has joined #ruby
<jhass> it eats all whitespace
Yiota has joined #ruby
Cohedrin_ has joined #ruby
<jhass> but other than style issues it should work I guess
startupality has quit [Quit: startupality]
dimasg has joined #ruby
<jhass> not exactly sure what the task is
<jhass> sum of all maximums of each given array?
Cohedrin has quit [Ping timeout: 252 seconds]
<jhass> because then that would not be correct of course
Rodya_ has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
kareeole_ has joined #ruby
kareeole_ is now known as kareeoleez_
jackjackdripper has quit [Quit: Leaving.]
m8 has quit [Quit: Sto andando via]
<jhass> since for [[1, 4, 6], [1, 2, 3]] your code would do 6 + 4 instead of 6 + 3
kareeoleez_ is now known as kareeoleez__
Cohedrin_ has quit [Max SendQ exceeded]
kareeoleez__ is now known as kareeoleez___
kareeoleez has quit [Disconnected by services]
kareeoleez___ is now known as kareeoleez____
kareeoleez____ is now known as kareeoleez_____
nhhc has quit [Quit: Leaving]
k3rn31 has joined #ruby
<bio_grin> back
<bio_grin> sorry got to take some water
<bio_grin> no no
edwinvdgraaf has joined #ruby
<bio_grin> the task is to get max 7 nums
<bio_grin> they can all be in one array
<bio_grin> doesnt matter
kareeoleez_____ is now known as kareeoleez
edwinvdgraaf has quit [Remote host closed the connection]
<bio_grin> or maybe max in one array
jaguarmagenta has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
<bio_grin> wait no
<bio_grin> this challenge is confusing
dar123 has joined #ruby
depesz_ has quit [Ping timeout: 276 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
<bio_grin> can i send you the problem?
Rodya_ has joined #ruby
<bio_grin> choose language ruby instead of java
symm- has joined #ruby
panpainter has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
mdw_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
skade has joined #ruby
<bio_grin> jhass you there
<bio_grin> ?
<jhass> some patience, doing more than just this ;)
<bio_grin> ah ok
<bio_grin> :P
LoneHerm_ has quit [Remote host closed the connection]
<bio_grin> i would appreciate to tell me the problem in my code later
workmad3 has joined #ruby
<jhass> bio_grin: well, it's not even close to tackling the problem tbh
<bio_grin> hmm
<bio_grin> but it works?
<bio_grin> max 7 numbers?
<jhass> coincidentally
allcentury has joined #ruby
<bio_grin> hmm
sepp2k has joined #ruby
<bio_grin> i am new to ruby
<bio_grin> i might not be an expert
kriskropd has quit [Ping timeout: 276 seconds]
<jhass> you should build up the 2d array
mdw has quit [Ping timeout: 272 seconds]
<bio_grin> ah
<bio_grin> i did
<jhass> then compute the indicies for each hourglass
<bio_grin> i made it all 1
<bio_grin> indexes?
<jhass> yes, don't
<jhass> yes
<bio_grin> i dont understand
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bio_grin> isnt the point to find max 7 numbers?
<jhass> did you read the task?
<bio_grin> yes
uncertainty has joined #ruby
<jhass> yes, in each "hourglass"
skolman has joined #ruby
<jhass> not in each line
jackjackdripper has joined #ruby
<bio_grin> ah lmao
<bio_grin> wrong reading
<bio_grin> calculate the sum of every glass and print the max
kriskropd has joined #ruby
<bio_grin> i only print the max
<bio_grin> this problem isnt easy
Cohedrin has joined #ruby
<bio_grin> idk why is it in the easy section
panpainter has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
gopz has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 246 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 260 seconds]
<bio_grin> it will always contain 16 hourglasses
skade has quit [Quit: Computer has gone to sleep.]
ponga has quit [Quit: Connection closed for inactivity]
<jhass> yeah
<jhass> you could just figure out the indexes by hand and hardcode a list of them or something, but... ;)
uncertainty has quit [Ping timeout: 276 seconds]
Yiota has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Ping timeout: 264 seconds]
<bio_grin> but you can be the ruby expert and do it easier
symm- has quit [Ping timeout: 272 seconds]
<bio_grin> ?
<bio_grin> :P
panpainter has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
<jhass> not until you have a solution ;)
eljimmy has joined #ruby
<shevy> :)
<bio_grin> fair enough
<bio_grin> i drank 4 beers
Guest62665 has quit [Ping timeout: 252 seconds]
<bio_grin> in 1 hour it might take little longer
<shevy> you know how to tackle problems
<bio_grin> i guess
last_staff has joined #ruby
<bio_grin> i can brute force it?
<bio_grin> i mean anyone can do that
tw1sted has quit [Remote host closed the connection]
tw1sted has joined #ruby
<bio_grin> any hints?
nerium has joined #ruby
<xpt> Any centos user here? Is there a repo that gets recent ruby packages? Ruby 2.2.0 is too old for my needs and I am wondering if I can get it easy way or not.
<shevy> have one more beer bio_grin
<bio_grin> shevy that wont help
mdw has joined #ruby
kobain has joined #ruby
<bio_grin> i will start writing html
<xpt> have two moree beers bio_grin
<bio_grin> and trying to execute it as ruby
<bio_grin> lol
kobain has quit [Max SendQ exceeded]
<bio_grin> jhass little hint
<bio_grin> ?
kobain has joined #ruby
Guest70551 has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
kobain has quit [Max SendQ exceeded]
mdw__ has joined #ruby
kobain has joined #ruby
bluOxigen has joined #ruby
johnmilton has joined #ruby
depesz_ has joined #ruby
<norc> xpt, generally chruby/post-install is the common way to get Ruby on almost any distribution.
<bio_grin> shevy?
<bio_grin> So many people leave and join
<bio_grin> lol
allcentury has joined #ruby
mdw_ has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
<norc> xpt, that way you get the most recent Ruby versions and a very non-intrusive version management if you should need multiple Ruby versions.
<bio_grin> brb going to eat
<bio_grin> and drink some water
anisha has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
houhoulis has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 244 seconds]
alfiemax has quit [Remote host closed the connection]
|meta has quit [Quit: Connection closed for inactivity]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
alfiemax has joined #ruby
tristanp has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
nerium has quit [Quit: nerium]
tristanp_ has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
testuser000 has joined #ruby
<jhass> bio_grin: got a solution, 17 loc ;)
alfiemax has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
<shevy> lies!
testuser000 has left #ruby [#ruby]
tristanp_ has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
<jhass> well, 11 significant ones
tristanp has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 260 seconds]
<jhbs> ruby on rails is so different from anything else ive done
<jhbs> i don't know how i feel about it forcing you to do something a certain way
<shevy> use padrino!
bluOxigen has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
<xpt> norc: thanks
roamingdog has quit [Remote host closed the connection]
<xpt> I'll give it a shot
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
roamingdog has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
dimasg has joined #ruby
Dimik has joined #ruby
jancel has joined #ruby
yfeldblum has joined #ruby
Devalo has quit []
symm- has joined #ruby
roamingdog has quit [Remote host closed the connection]
greenride has joined #ruby
jaruga____ has quit [Quit: jaruga____]
maletor2 has joined #ruby
kgrz has joined #ruby
chip_ has joined #ruby
jancel has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
johnmilton has joined #ruby
dreinull has left #ruby ["undefined"]
roamingdog has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phatypus has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
ule has quit [Ping timeout: 272 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
ule has joined #ruby
7F1ABE0WR has quit [Remote host closed the connection]
stev has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
<bio_grin> back
<bio_grin> jhass can you give this poor soul a hint
jackjackdripper has quit [Quit: Leaving.]
skade has joined #ruby
<jhass> bio_grin: two loops, choose the start and end index so you don't have to do bound checks
skade has quit [Client Quit]
<bio_grin> hmm
<bio_grin> i need to find 7 numbers
<bio_grin> right?
symm- has quit [Ping timeout: 276 seconds]
<jhass> no
<jhass> There are 16 hourglasses in A, and an hourglass sum is the sum of an hourglass' values.
<jhass> </quote>
omphe has joined #ruby
<bio_grin> hmm
<bio_grin> i should sum all numbers
<bio_grin> ?
dmr8 has joined #ruby
<bio_grin> like 7 random combos
<jhass> "Calculate the hourglass sum for every hourglass in A, then print the maximum hourglass sum."
mozzarella has quit [Ping timeout: 258 seconds]
<jhass> shall I copy paste the entire description for you or will you start reading it? ;)
zeroDi has quit [Quit: WeeChat 1.5]
<bio_grin> i read it 10 times
<bio_grin> im a little
<bio_grin> getting sober
<bio_grin> any more hints
axisys has joined #ruby
<jhass> I don't have the feeling you tried much yet
<bio_grin> fair enough
<bio_grin> i will go to try
<bio_grin> brb
emilkarl has joined #ruby
anisha has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 260 seconds]
kraken has joined #ruby
kraken is now known as _kraken
<_kraken> Does an instance of a particular class inherit methods from its superclass?
tristanp has joined #ruby
<_kraken> I mean it's superclasses's superclass
<_kraken> It's grandparent
roamingdog has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
eGGshke has quit [Quit: Leaving...]
houhoulis has quit []
<jhass> yes
allcentury has quit [Ping timeout: 246 seconds]
tristanp_ has quit [Ping timeout: 260 seconds]
jancel_ has joined #ruby
duckpuppy has joined #ruby
<jhass> .singleton_class.ancestors is searched
roamingdog has joined #ruby
<norc> _kraken, also don't forget about each singleton class in the ancestory chain.
roamingdog has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
<_kraken> hmm
roamingdog has joined #ruby
tristanp has joined #ruby
<norc> (They will not be shown but are searched regardless)
omphe has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34_ has joined #ruby
<jhass> .method(:foo).owner / .source_location to find where something comes from
DTZUZU has joined #ruby
MrBusiness2 has joined #ruby
uncertainty has joined #ruby
symm- has joined #ruby
<xpt> norc: woohoo, only one issue submitted on ruby-install in process of getting most recent ruby
ur5us has joined #ruby
<xpt> fortunatelly I managed to install it
Rodya_ has joined #ruby
<norc> :)
<xpt> thanks
duckpuppy has quit [Ping timeout: 252 seconds]
panpainter has joined #ruby
Maxifalk has joined #ruby
<bio_grin> jhass
DTZUZU has quit [Ping timeout: 264 seconds]
<bio_grin> im getting sober and more ideas
kgrz has quit [Ping timeout: 252 seconds]
uncertainty has quit [Ping timeout: 276 seconds]
_kraken has quit [Quit: Leaving]
symm- has quit [Ping timeout: 244 seconds]
hutch34_ has quit [Ping timeout: 246 seconds]
panpainter has quit [Ping timeout: 260 seconds]
Gasher^ has joined #ruby
B1n4r10 has joined #ruby
Maxifalk has quit [Remote host closed the connection]
tristanp_ has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
phatypus has quit [Quit: .>]
symm- has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
tristanp has quit [Ping timeout: 260 seconds]
MrBusiness2 has quit [Ping timeout: 272 seconds]
Rodya_ has quit [Remote host closed the connection]
Noxilex has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
sebyx07 has joined #ruby
sebyx07 has left #ruby [#ruby]
tristanp has joined #ruby
ricer2 has quit [Ping timeout: 276 seconds]
yqt has joined #ruby
Rodya_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
<existensil> Naming question: what would you call a generic machine that when turned on stays on for n seconds, turning off when n seconds have elapsed, and resetting its clock when started while running?
tristanp_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
art-solopov has joined #ruby
<existensil> Basically how sleep features and motion detectors for lighting work
<norc> existensil, timer
<existensil> just looking for a generic term. Best I can come up with is "idle switch"
fenre has quit [Remote host closed the connection]
<norc> existensil, the idea is that its a mechanism that after some time does something. That is called a timer.
roamingdog has joined #ruby
<existensil> but not all timers would auto-reset like that
<norc> This one does.
<existensil> right. was hoping for something more precise that describes how this is different from a regular timer
<existensil> will have several things that use a timer like this and just wanted a good name
tristanp has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
houhoulis has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
<norc> existensil, can you give a concrete example of what your "timer" does?
TomyLobo has quit [Ping timeout: 260 seconds]
<existensil> Turning on an appliance in response to a sensor. If the sensor is only on for a split second you can't cycle certain appliances that fast. You need a timer that has a minimum run time and each sensor trip resets that so the appliance just keeps running.
<existensil> I'm using it for a sump pump right now but planning other uses.
jancel_ has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 260 seconds]
<norc> existensil, TimedSwitch perhaps?
<existensil> yeah. that's better than idle switch probably. was hoping there was some word I've long forgotten that could get it done in one.
<norc> Perhaps someone else with more experience can hop in and give you some input. That is as far as my limited background goes.
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<existensil> naming is hard and I'm obsessing because its a hobby project
<norc> existensil, naming things can be essential because it helps you identify what parts actually are.
lightt has joined #ruby
Billias has quit [Read error: Connection reset by peer]
stev has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
<existensil> TimeoutSwitch wins for now
<norc> existensil, not sure whether Timeout carries the right notion here.
Rodya_ has quit [Remote host closed the connection]
<elementaru> is there a way to call a method or whatever, and not wait for it to finish to carry on with the rest of the code?
kus has joined #ruby
kus has quit [Max SendQ exceeded]
<existensil> elementaru: Thread.new{ method }
<norc> elementaru, using threads and processes
<elementaru> ok ty
<norc> elementaru, note that if you walk down that road you suddenly have to take care about thread safety, concurrency, reentrancy, synchronization.
<elementaru> :-(
<norc> Threads come with a high price tag attached to it.
maletor2 has joined #ruby
<existensil> elementaru: you're spawning a new thread and that carries with it some complexities. Just that will work for some simple stuff but check out the Thread docs for info on what they are and how to control them.
Billias has joined #ruby
squigz has quit [Quit: Bye]
<existensil> If you're waiting for something its likely threads have a comparably low price tag
lightt has quit [Ping timeout: 276 seconds]
<norc> elementaru, note that in the topic of threads often the GIL (or GVM) is mentioned - but all it promsises is that Ruby won't crash horribly if you screw things up. Race conditions still apply..
Gasher^ has quit [Ping timeout: 250 seconds]
<elementaru> googled "GIL ruby", first result "Nobody understands the GIL - Jesse Storimer"
<elementaru> yeah ok..
minimalism has quit [Quit: minimalism]
<norc> elementaru, just ignore the GIL really. It gives you no guarantees beyond not crashing.
<existensil> elementaru: are you waiting on something external to ruby? like a network request or database request? if that's the case threads are a pretty great solution.
roamingdog has joined #ruby
<existensil> but reading up will help you
<elementaru> yes, tcp
<norc> elementaru, make sure you read up on "Reentrancy" regardless of what you intend to do, and topics about synchronization and mutual exclusion if you want to share *any* data with the thread and the outside world.
<norc> If you do not do that you will get bugs, race conditions, random behaviour you cannot debug..
skolman has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
<elementaru> ok I will ty
maletor2 has quit [Ping timeout: 244 seconds]
skolman_ has joined #ruby
dmr8 has quit [Quit: Leaving]
chouhoulis has joined #ruby
minimalism has joined #ruby
chouhoulis has quit [Remote host closed the connection]
isxek has quit [Remote host closed the connection]
symm- has joined #ruby
nankyokusei has quit [Remote host closed the connection]
futilegames has joined #ruby
tristanp has joined #ruby
mherold has joined #ruby
mherold has quit [Client Quit]
jancel has joined #ruby
bio_grin has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 240 seconds]
xkapastel has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
eGGshke has joined #ruby
mozzarella has joined #ruby
trista___ has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
slackbotgz has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy> has anyone else noticed how norc transformed into a ruby teacher here :-)
pawnbox has joined #ruby
nando293921 has joined #ruby
pglombardo has quit [Read error: Connection reset by peer]
futilegames_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
jancel has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
LoneHermit has joined #ruby
futilegames has quit [Ping timeout: 264 seconds]
futilegames_ is now known as futilegames
prestorium has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
allcentury has joined #ruby
Insti has joined #ruby
futilegames has quit [Quit: futilegames]
pawnbox has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
startupality has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
glundgren has joined #ruby
uncertainty has joined #ruby
Coldblackice has joined #ruby
lightt has joined #ruby
glundgren has left #ruby [#ruby]
kriskropd has quit [Ping timeout: 246 seconds]
rodfersou has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
uncertainty has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
pglombardo has joined #ruby
hutch34_ has joined #ruby
codecop has quit [Remote host closed the connection]
DTZUZU has joined #ruby
futilegames has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
DTZUZU has quit [Client Quit]
startupality has quit [Quit: startupality]
<spudowiar> :O
kriskropd has joined #ruby
moeabdol1 has joined #ruby
mdw__ has quit [Quit: Sleeping Zzzzz]
ldnunes has quit [Quit: Leaving]
eljimmy has joined #ruby
roamingdog has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
eGGshke has quit [Quit: Leaving...]
jancel has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34_ has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
kriskropd has quit [Ping timeout: 246 seconds]
ocbtec has quit [Quit: leaving]
maletor2 has joined #ruby
bobbycvi has joined #ruby
allcentury has joined #ruby
kareeoleez has quit [Remote host closed the connection]
dimasg has quit [Quit: leaving]
Xentil has joined #ruby
tristanp_ has joined #ruby
mdw has joined #ruby
sdrew has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
trista___ has joined #ruby
karmatr0n has joined #ruby
maletor2 has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 272 seconds]
trista___ has quit [Read error: Connection reset by peer]
madgen has joined #ruby
mattwashere has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
mdw has quit [Ping timeout: 252 seconds]
sergey_makagon has joined #ruby
futilegames has quit [Quit: futilegames]
edwinvdgraaf has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
mattwashere has quit [Ping timeout: 258 seconds]
SCHAAP137 has quit [Ping timeout: 276 seconds]
audibleblink has joined #ruby
ledestin has joined #ruby
spudowiar has quit [Quit: WeeChat 0.4.3]
startupality has joined #ruby
ferr has quit [Ping timeout: 246 seconds]
tristanp_ has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
spudowiar has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
kriskropd has joined #ruby
|ifei5g00d has joined #ruby
startupality has quit [Ping timeout: 244 seconds]
Gasher has quit [Quit: Leaving]
tristanp_ has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
|ifei5good has quit [Ping timeout: 252 seconds]
symm- has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
dar123 has joined #ruby
symm- has joined #ruby
uncertainty has joined #ruby
LoneHermit has quit [Remote host closed the connection]
roamingdog has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
blackmesa has joined #ruby
B1n4r10 has quit [Quit: leaving]
LoneHerm_ has joined #ruby
panpainter has joined #ruby
pawnbox has joined #ruby
tvw has joined #ruby
uncertainty has quit [Ping timeout: 272 seconds]
CalimeroTeknik has quit [Ping timeout: 240 seconds]
domgetter has joined #ruby
panpainter has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
tristanp_ has joined #ruby
roamingdog has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
sergey_makagon has quit []
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has quit [Read error: Connection reset by peer]
trista___ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
magikid has joined #ruby
lightt has quit [Ping timeout: 258 seconds]
jancel has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 244 seconds]
<shevy> is there a way to use .sub or .gsub only n times, where n is a number such as 5? I need to colourize the first 5 instances of a substring
VeryBewitching has quit [Quit: Konversation terminated!]
CalimeroTeknik has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
ozanyurt has joined #ruby
tlaxkit has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has quit [Quit: nerium]
Azure has joined #ruby
idefine has joined #ruby
magikid has quit [Quit: Leaving.]
symm- has quit [Read error: Connection reset by peer]
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor2 has joined #ruby
<norc> shevy, {n}
symm- has joined #ruby
last_staff has quit [Quit: zzzz.....]
allcentury has joined #ruby
tristanp has joined #ruby
trista___ has quit [Ping timeout: 260 seconds]
maletor2 has quit [Ping timeout: 264 seconds]
imperator has quit [Quit: This computer has gone to sleep]
phredus has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
lightt has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
nankyokusei has joined #ruby
mattwashere has joined #ruby
idefine has quit [Read error: Connection reset by peer]
xlegoman has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
jaguarmagenta has joined #ruby
thejamespinto has quit []
mattwashere has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 276 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
solocshaw has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
Gasher has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
art-solopov has quit [Quit: Konversation terminated!]
tristanp has joined #ruby
tvw has quit [Remote host closed the connection]
jwang has quit [Ping timeout: 244 seconds]
roamingdog has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 246 seconds]
gigetoo has joined #ruby
uncertainty has joined #ruby
roamingdog has joined #ruby
tildes_ has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
Oclair has quit [Quit: Bye Bye]
alexander has joined #ruby
skolman_ has quit [Remote host closed the connection]
alexander has left #ruby [#ruby]
tristanp has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
tristanp has joined #ruby
kirun has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
Dios has joined #ruby
tristanp_ has joined #ruby
dar123 has joined #ruby
jancel has joined #ruby
Gasher has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
nchambers has quit [K-Lined]
jackjackdripper has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
roamingdog has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
jancel has quit [Ping timeout: 260 seconds]
sarbs has quit [Max SendQ exceeded]
|meta has joined #ruby
sarbs has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Oclair has joined #ruby
SilverKey has joined #ruby
gigetoo has joined #ruby
idefine has quit [Remote host closed the connection]
PlasmaStar has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
ixti has quit [Quit: WeeChat 1.5]
mikecmpbll has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor2 has joined #ruby
symm- has joined #ruby
spider-mario has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
sdrew has joined #ruby
Yiota has quit [Read error: No route to host]
Yiota has joined #ruby
rkazak has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
Yiota has quit [Client Quit]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
JakFrist has joined #ruby
millerti has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
nchambers^ has joined #ruby
ozanyurt has left #ruby ["Textual IRC Client: www.textualapp.com"]
hahuang65 has joined #ruby
roamingdog has quit [Remote host closed the connection]
jwang has joined #ruby
koooge has joined #ruby
CloCkWeRX has joined #ruby
Dios has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
jancel has joined #ruby
tristanp has joined #ruby
Noxilex has quit [Remote host closed the connection]
Akagi201 has joined #ruby
duckpuppy has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
nchambers^ is now known as nchambers
toretore has quit [Ping timeout: 260 seconds]
kobain has quit [Ping timeout: 260 seconds]
nchambers is now known as nchambers_
nchambers_ is now known as nchambers
CloCkWeRX has left #ruby [#ruby]
roamingdog has joined #ruby
Dios has joined #ruby
elementaru has quit [Remote host closed the connection]
Dios is now known as Dios|away
Dios|away is now known as Dios
uncertainty has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
mudbox has joined #ruby
Dios has quit [Client Quit]