jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
apeiros has quit []
aruns has quit [Quit: leaving]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noark9 has joined #ruby
leitz has quit [Quit: Leaving]
ta_ has joined #ruby
cd has joined #ruby
nexraf1 has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
Wojnar has quit [Remote host closed the connection]
c0ncealed4 has quit [Remote host closed the connection]
c0ncealed4 has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
warrshrike has quit [Ping timeout: 256 seconds]
mangold has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 246 seconds]
impermanence has joined #ruby
meinside has joined #ruby
roshanavand has joined #ruby
noark9 has quit [Quit: noark9]
RedNifre has quit [Ping timeout: 240 seconds]
impermanence has quit [Ping timeout: 252 seconds]
noark9 has joined #ruby
bmurt has joined #ruby
impermanence has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
noark9 has quit [Quit: noark9]
c0ncealed4 has quit [Remote host closed the connection]
c0ncealed4 has joined #ruby
dhollinger has quit [Read error: Connection reset by peer]
mangold has quit [Quit: This computer has gone to sleep]
arescorpio has joined #ruby
dhollinger has joined #ruby
esrse has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
mangold has joined #ruby
houhoulis has quit [Remote host closed the connection]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
ta_ has joined #ruby
dviola has joined #ruby
knight33 has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
Fusl has quit [Ping timeout: 256 seconds]
armyriad has quit [Read error: Connection reset by peer]
aloy has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
noodle has quit [Quit: /quit]
Xeago has quit [Read error: Connection reset by peer]
aloy has joined #ruby
Xeago has joined #ruby
noodle has joined #ruby
Fusl has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
arescorpio has quit [Quit: Leaving.]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has quit [Quit: This computer has gone to sleep]
gnufied has quit [Quit: Leaving]
kujira has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Remote host closed the connection]
dhollin3 is now known as dhollinger
<baweaver> Decided to start streaming Ruby on Twitch next weekend: twitch.tv/baweaver
<baweaver> Likely starting 12pm PST on Saturday covering blocks, procs, and lambdas.
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
impermanence has quit [Remote host closed the connection]
braincrash has joined #ruby
orbyt_ has joined #ruby
donofrio_ has quit [Remote host closed the connection]
orbyt_ has quit [Max SendQ exceeded]
dviola has quit [Quit: WeeChat 2.3]
johnny56 has quit [Ping timeout: 272 seconds]
mangold has joined #ruby
mangold has quit [Client Quit]
avelldiroll has quit [Ping timeout: 240 seconds]
mangold has joined #ruby
avelldiroll has joined #ruby
cxl has quit [Ping timeout: 260 seconds]
MoritaShinobu has joined #ruby
cxl has joined #ruby
skwurl has joined #ruby
johnny56 has joined #ruby
ta_ has joined #ruby
<skwurl> hi, could anyone please assist me with this? im stumped. Im having trouble using an instance varaible from one method to populate a database entry in another. here is a codeshare that will hopefully help. https://codeshare.io/G8OY4e
im0nde has quit [Ping timeout: 250 seconds]
za1b1tsu has joined #ruby
avelldiroll has quit [Ping timeout: 240 seconds]
sp3ncer has joined #ruby
<baweaver> skwurl: Because methods and instance variables don't quite work like that
<baweaver> unless a method is called the instance variables will not be set
<baweaver> Also that's not really how Rails works, you're supposed to follow REST conventions
za1b1tsu has quit [Ping timeout: 246 seconds]
<baweaver> home might be a main page, you want a resource for characters
<baweaver> rails g scaffold character name hp:integer
<baweaver> Though this is also a topic for #RubyOnRails
<baweaver> That, and avoid cross-posting on channels. It makes it harder to help.
<skwurl> #RubyOnRails is not very active
za1b1tsu has joined #ruby
<baweaver> On the weekends I would expect probably not.
<skwurl> i see.
ta_ has quit [Ping timeout: 240 seconds]
<baweaver> You might want to run through a Rails tutorial in any case.
<baweaver> Especially one covering how REST and resources work.
ta_ has joined #ruby
whysthatso has joined #ruby
<skwurl> ok.
whysthatso has quit [Remote host closed the connection]
im0nde has joined #ruby
<skwurl> like you said i can call the first methods name in the second method and that works. So thank you for your help with that. But thats not how its supposed to work, huh?
<baweaver> Nope. You should have a resource route for character that takes care of all of this.
<baweaver> Hence mentioning going back over a Rails tutorial, as this is a fairly early topic and pretty foundational to working with it.
<skwurl> okay, that actually ends up storing a different random name than the one showing on that view. lol
<baweaver> Any ideas why that might be happening?
<skwurl> right on. ill pay close attention to the rest and routing part.
ansraliant has quit [Ping timeout: 246 seconds]
<baweaver> If you call a method that has a random output, you're going to get a random output
<baweaver> if you call it twice, chances are you get two different outputs
avelldiroll has joined #ruby
<skwurl> its happening because the index view is calling the variable from the index controller method, while the save_button view action im tryiong to do is calling it a seperate time
ansraliant has joined #ruby
<skwurl> yes with a seperate output
<skwurl> if i do somethign simialr with scaffold i almost have to work backwards becuase i want the fields to be autopopulated without a web fomr on the view.
kujira has quit []
<skwurl> baweaver: Thanks im heading to tutorials now...
ta_ has quit [Ping timeout: 246 seconds]
sp3ncer has left #ruby ["Textual IRC Client: www.textualapp.com"]
_whitelogger has joined #ruby
kapil____ has joined #ruby
doubledup has joined #ruby
_whitelogger has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
voolik has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
im0nde has quit [Ping timeout: 264 seconds]
im0nde has joined #ruby
whysthatso has joined #ruby
Inline has quit [Read error: Connection reset by peer]
conta has joined #ruby
voolik has quit [Quit: Taking a nap...]
aupadhye has joined #ruby
skwurl has quit [Quit: WeeChat 2.2]
dionysus69 has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
reber has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
clemens3_ has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
voolik has joined #ruby
clemens3_ has joined #ruby
aufi has joined #ruby
clemens3 has joined #ruby
clemens3_ has quit [Ping timeout: 252 seconds]
vondruch has quit [Quit: vondruch]
mangold has quit [Quit: This computer has gone to sleep]
alicef has joined #ruby
despai has joined #ruby
reber__ has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
reber has quit [Ping timeout: 252 seconds]
reber has joined #ruby
xfbs has joined #ruby
phaul has joined #ruby
reber__ has quit [Ping timeout: 245 seconds]
venmx has joined #ruby
cabotto has joined #ruby
Inv1s1ble has quit [Ping timeout: 252 seconds]
despai has quit [Quit: This computer has gone to sleep]
venmx has quit [Remote host closed the connection]
<dionysus69> Someone from here helped me with this earlier, and I found a glitch with this snippet, can you please help me fix it? the first example here is icorrect and should return 0.0778457 instead of 0.08, the second example is correct. any ideas why there's an exceptional case in first example? https://gist.github.com/webzorg/b4e3d783ea1aa8a37970ecca8f1b43e5
vondruch has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
ansraliant has quit [Quit: My planet needs me]
mikecmpbll has joined #ruby
<Radar> dionysus69: 2nd example goes to "else" condition of ternary
<Radar> dionysus69: 1st example goes to "true" condition of ternary
<dionysus69> yes that much I did test
<dionysus69> Radar: well, I hope you understand the whole point of this code :) my original aim was to get rid of repeating decimals instead of rounding them to full numbers
<dionysus69> the fact that the first example goes to the true condition is correct
<dionysus69> the i variable is incorrect though
<dionysus69> instead of i being equal to 1, it should be equal to 5 or 6
<dionysus69> so the problem lays in regex
<dionysus69> since I am very ignorant at how regex works, I cannot really fix this by myself, I could ask in regex channel but usually you guys also know this much regex just fine :)
camilasan has quit [Read error: Connection reset by peer]
<tbuehlmann> please don't let these things have to do with money
<dionysus69> tbuehlmann: what are the other ways of getting rid of repeating decimals then?
<dionysus69> this is just for frontend btw, for people to see nicely formatted numbers
<dionysus69> I could just show them 0.08 but it is unprecise compared to what backend will have
<dionysus69> the difference will be 0.0032...
venmx has joined #ruby
xfbs has quit [Quit: afk]
camilasan has joined #ruby
aufi has joined #ruby
mangold has joined #ruby
apparition has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
whysthatso has quit [Remote host closed the connection]
lomex has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
RedNifre has joined #ruby
xfbs has joined #ruby
nowhereman_ has joined #ruby
minimal_life has joined #ruby
wildermind has joined #ruby
xfbs has quit [Quit: afk]
minimal_life has quit [Quit: I am functioning within established parameters.]
Fusl has quit [Ping timeout: 256 seconds]
nowhereman_ has quit [Ping timeout: 252 seconds]
Fusl has joined #ruby
RedNifre has quit [Ping timeout: 252 seconds]
RedNifre has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thunderbirdtr has joined #ruby
<riceandbeans> if I have a struct and I want to compare it, how can I plug in a key?
<riceandbeans> One sec, going to pastebin what I mean
<ruby[bot]> riceandbeans: as I told you already, please use https://gist.github.com
<riceandbeans> Every field in the row is created by that struct at some point
<riceandbeans> Ah I think I got it, [k]
<riceandbeans> good old pry
chongtxtx has quit [Ping timeout: 260 seconds]
leah2 has quit [Ping timeout: 260 seconds]
bougyman has quit [Ping timeout: 260 seconds]
Yxhuvud has quit [Ping timeout: 260 seconds]
jtperreault has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 260 seconds]
jtperreault has joined #ruby
lunarkitty7 has quit [Ping timeout: 260 seconds]
thinkpad has quit [Ping timeout: 252 seconds]
thinkpad has joined #ruby
conta has quit [Ping timeout: 246 seconds]
chongtxtx has joined #ruby
bougyman has joined #ruby
Seich has joined #ruby
AJA4350 has joined #ruby
jamied has joined #ruby
lunarkitty7 has joined #ruby
leah2 has joined #ruby
arekushi has joined #ruby
vonfry has joined #ruby
AJA4350 has quit [Remote host closed the connection]
vonfry has quit [Quit: WeeChat 2.2]
AJA4350 has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
conta has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
troulouliou_div2 has joined #ruby
vondruch has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
donofrio has joined #ruby
SolarAquarion has quit [Quit: PanicBNC - http://PanicBNC.net]
Robdgreat has quit [Remote host closed the connection]
Robdgreat has joined #ruby
jcalla has quit [Ping timeout: 252 seconds]
cow[moo] has joined #ruby
SolarAquarion has joined #ruby
lomex has joined #ruby
esrse has quit [Ping timeout: 244 seconds]
TheBloke has quit [Read error: Connection reset by peer]
TheBloke- has joined #ruby
helpa has joined #ruby
bak1an has joined #ruby
eckhardt has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
nowhereman_ has joined #ruby
helpa has quit [Remote host closed the connection]
mangold has joined #ruby
helpa has joined #ruby
nowhereman_ has quit [Ping timeout: 245 seconds]
gheegh has joined #ruby
jamied has quit [Quit: Textual IRC Client: www.textualapp.com]
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
<gheegh> hey all.. i need some thoughts. I'm trying to dynamically define a class as a child of OpenStruct, if it's not defined. If defined, I want to just use it. Basically, i'm trying to wrap OpenSturct for responses to an API call. I'm getting a nameerror when trying to use my defined class. thoughts on how to do this?
<gheegh> sorry, to follow the guide, here's the code snippet defined at dpaste.de https://dpaste.de/OEJz#L
JustForgotten has joined #ruby
vondruch has quit [Ping timeout: 245 seconds]
noark9 has joined #ruby
GodFather has joined #ruby
jcalla has joined #ruby
eblip is now known as eb0t_
cabotto has quit []
apparition has quit [Quit: Bye]
asphyxia has quit [Ping timeout: 244 seconds]
noark9 has quit [Quit: noark9]
noark9 has joined #ruby
bmurt has joined #ruby
kaleido has joined #ruby
Cthulu201 has quit [Read error: Connection reset by peer]
JustForgotten has quit [Quit: This computer has gone to sleep]
haylon has joined #ruby
Cthulu201 has joined #ruby
agent_white has quit [Quit: leaving]
cronolio has joined #ruby
cronolio has left #ruby [#ruby]
gnufied has joined #ruby
noark9 has quit [Quit: noark9]
noark9 has joined #ruby
apeiros_ has joined #ruby
doubledup has quit [Remote host closed the connection]
phaul has quit [Quit: bye]
vondruch has joined #ruby
moei has joined #ruby
roshanavand has joined #ruby
Snowy has joined #ruby
Inside has joined #ruby
Rapture has joined #ruby
roshanavand has quit [Quit: leaving]
dmitch has joined #ruby
k0mpa has joined #ruby
xfbs has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Burgestrand has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marahin has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
queip has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Quit: The Lounge - https://thelounge.chat]
lomex has joined #ruby
queip has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
<jokke> hi! i'm using anyenv with rbenv on my system and i have a gem that i want to uninstall. This gem provides an executable that is put into rbenv/shims by rbenv. uninstalling it wont' work though. the gem command just doesn't do anything and the gem is still there (and so is the shim also after rehashing)
<jokke> i also tried this: for version in $(rbenv versions | cut -c3- | awk '{print $1}'); do rbenv shell $version; rbenv exec gem uninstall fogtrack; done
<jokke> didn't help either
<jokke> rbenv whence fogtrack tells me 2.3.1
<jokke> oh now it worked...
<jokke> weird
<jokke> well, case closed. Thanks! :)
jiffe has quit [Quit: WeeChat 2.2]
enslavedtuna has joined #ruby
kapil____ has joined #ruby
<enslavedtuna> if i have a nested array like, a = ['b',['c','d']], then a[1][0] => 'c', Now if i want to make x = '[1][0]' how do i call a.x => 'c'?
tdy3 has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
tdy3 has joined #ruby
alicef has quit [Ping timeout: 246 seconds]
alicef has joined #ruby
<apeiros_> enslavedtuna: those are two consecutive method calls.
<apeiros_> enslavedtuna: how to do it dynamically would be either a.send("[]", 1).send("[]", 0) or a.send("dig", 1, 0)
RougeR has joined #ruby
<apeiros_> of course that means you'd have to process your string first get those 3-4 values out first (method name and arguments)
<enslavedtuna> i see, so there is no easy way huh
<apeiros_> depends
apeiros_ is now known as apeiros
<apeiros> there's also eval, but should be obvious why I won't recommend that. also I don't know enough of your context. f.ex. does it absolutely have to be a String you start out with?
jsc has joined #ruby
Burgestrand has quit [Quit: Closing time!]
jsc is now known as status402
phaul has joined #ruby
riceandbeans has quit [Ping timeout: 246 seconds]
uplime has quit [Quit: WeeChat 2.2]
<enslavedtuna> it doesnt have to be a string, i get data out of a nested array one depth at a time and want to save the current position
<enslavedtuna> so first its a[y] and then x +='[y]' , then a.x[y] and x+='[y]' repeat
<enslavedtuna> at least that's what i'd hoped to do
Burgestrand has joined #ruby
<apeiros> enslavedtuna: just store the indexes in an array and use dig.
<apeiros> indices = []; indices << 0; indices << 1; ary.dig(*indices)
<apeiros> much better than string manipulation to build code.
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<enslavedtuna> dig looks like exactly what i'm looking for, thanks :)
PasNox has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 252 seconds]
PasNox has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
akaiiro has joined #ruby
agent_white has joined #ruby
bmurt has joined #ruby
status402 has quit [Quit: status402]
<phaul> hi apeiros, how's it going
voolik has quit [Ping timeout: 244 seconds]
TheBloke- is now known as TheBloke
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deesl has joined #ruby
Deesl is now known as bsdboy
bsdboy has quit [Client Quit]
apeiros has quit [Read error: Connection reset by peer]
ua has quit [Quit: Leaving]
ua has joined #ruby
impermanence has joined #ruby
apeiros has joined #ruby
Burgestrand has quit [Quit: Closing time!]
tdy3 is now known as tdy
<enslavedtuna> hey apeiros, sorry if this is dumb but i'm having trouble with dig. a=['b',['c','d']], a.dig(1,1) => d, x = [1,1], a.dig(x) => error
<phaul> enslavedtuna: you can splat array arguments like if they were given as separate arguments with '*' : a.dig(*x)
<enslavedtuna> that works, thanks phaul!
rippa has joined #ruby
<phaul> yw
jackrandom has quit [Quit: ZNC - https://znc.in]
jackrandom has joined #ruby
Burgestrand has joined #ruby
conta has quit [Ping timeout: 245 seconds]
eckhardt has joined #ruby
Burgestrand has quit [Quit: Closing time!]
darkhanb has joined #ruby
Guest979 has joined #ruby
troulouliou_div2 has quit [Ping timeout: 244 seconds]
cthulchu has joined #ruby
enslavedtuna has quit [Ping timeout: 256 seconds]
tdy has quit [Read error: Connection reset by peer]
jcarl43 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
bmurt has joined #ruby
[Butch] has quit [Client Quit]
orbyt_ has joined #ruby
[Butch] has joined #ruby
justicefries has joined #ruby
Wojnar has joined #ruby
nowhereman_ has joined #ruby
nopolitica has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
conta has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
<apeiros> hi phaul, quite fine. you're in bulgaria now?
Nicmavr has joined #ruby
<phaul> hi apeiros , hungary
<apeiros> ah
<apeiros> well, I'm getting hangry now, so I'll go buy food :D
whysthatso has joined #ruby
mikecmpbll has joined #ruby
Yxhuvud has joined #ruby
Inline has joined #ruby
troulouliou_dev has joined #ruby
noark9 has quit [Quit: noark9]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
krautcat has quit [Ping timeout: 240 seconds]
noark9 has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf_ has joined #ruby
za1b1tsu has joined #ruby
reber__ has joined #ruby
reber has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Ping timeout: 246 seconds]
akaiiro has quit [Ping timeout: 246 seconds]
salasrod has quit [Quit: /quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
salasrod has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
orbyt_ has joined #ruby
MoritaShinobu has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 245 seconds]
Snowy has quit [Ping timeout: 272 seconds]
noark9 has quit [Quit: noark9]
bak1an has joined #ruby
TheBloke has quit [Ping timeout: 245 seconds]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
maryo has joined #ruby
<maryo> Is there a way to install 'therubyracer' gem in windows machine?
noark9 has joined #ruby
whysthatso has quit [Quit: whysthatso]
SteenJobs has joined #ruby
<havenwood> maryo: You're usually better off just installing Node.js.
<havenwood> maryo: ^ Whether it's Windows or not.
SeepingN has joined #ruby
<maryo> havenwood, how to install node.js in windows? Does that comes as a gem?
clemens3 has quit [Ping timeout: 252 seconds]
nopolitica has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has joined #ruby
whysthatso has joined #ruby
<maryo> Installed the msi for nodejs and I also wanted to install another gem named 'dashing' on my windows box. While installing I am getting an error -> https://dpaste.de/Zmsw
<maryo> some pointers on the above error would be helpful
orbyt_ has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
akaiiro has joined #ruby
noark9 has quit [Quit: noark9]
orbyt_ has joined #ruby
nopolitica has joined #ruby
Wojnar has quit [Ping timeout: 240 seconds]
<Inside> You have to install dev tools :D
<Inside> How did you install rails?
<Inside> also: I super strongly recommend installing a VM (ie: virtual box) and running your rails dev server from in there. You can setup a shared folder between the guest/host machines and still run your IDE in windows.
<Inside> I tried the whole develop in windows then deploy to linux thing for a while and it's a really major headache
<Inside> (case in point: anything involving building native extensions like this)
mroutis has joined #ruby
mustmodify has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
<mustmodify> How do I figure out which characters are represented by \xE2\x80\x90def ?
<mustmodify> or just...
<mustmodify> any sequence.
<maryo> Inside, true. In linux platform it is very easy and in windows its a pain.. But for some reason, I am not able to install virtual box due to internal policy. I having finally installed dashing but unable to start them. Here is the error https://dpaste.de/EcXH Any idea?
mikecmpbll has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
graphene has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: Leaving]
kapil____ has joined #ruby
<Inside> oh hah
<Inside> I think that's the same error that I got when I just threw my hands up
<Inside> Do what it says - require em/pure_ruby
<Inside> I think inside of boot.rb
<Inside> oh you're not running rails are you
nofxx has joined #ruby
mustmodify has left #ruby [#ruby]
chouhoulis has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
conta has quit [Quit: conta]
za1b1tsu has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Ping timeout: 264 seconds]
RougeR has quit [Ping timeout: 250 seconds]
raulp has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
mroutis has quit [Ping timeout: 240 seconds]
mochiyoda has joined #ruby
conta has joined #ruby
orbyt_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
nowhereman_ has quit [Ping timeout: 240 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
tdy has joined #ruby
weaksauce has joined #ruby
TheBloke has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
graphene has quit [Remote host closed the connection]
jthomas2 has joined #ruby
Wojnar has joined #ruby
desperek has joined #ruby
maryo_ has joined #ruby
maryo has quit [Ping timeout: 252 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
mochiyoda has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 252 seconds]
eckhardt has joined #ruby
bmurt has joined #ruby
akaiiro has joined #ruby
za1b1tsu has joined #ruby
roshanavand has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
Eiam has joined #ruby
mroutis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
im0nde has quit [Ping timeout: 264 seconds]
phaul has quit [Ping timeout: 244 seconds]
comet23 has joined #ruby
conta has quit [Quit: conta]
<comet23> is this the offical chat for the ruby programming langauge?
<Eiam> comet23: sure
<comet23> sure?
<comet23> do i sense uncertainty?
<Eiam> I'm sure some people may take umbrage with the word 'official'
<comet23> that's because they haven't been in the army
<Eiam> okay. did you have a question about ruby?
<comet23> the army teaches you how to handle umbrage in positive ways
<Eiam> cool
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
<comet23> yes, what is your favorite modular tutorial/explanation?
nomoney4u has joined #ruby
orbyt_ has joined #ruby
<zenspider> ... what?
<comet23> there is this thing called modular programming
<comet23> i heard that it
<comet23> it's the right way to program because it ends up with clean looking easy to understand code
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eiam> why do I feel like this is going to end with me asking for adult supervision
<comet23> ?
<SeepingN> lol
<jthomas2> comet23: Are you just asking about Modules in ruby?
<Inside> comet23: I think you're probably thinking of 'composition'
<comet23> i'm not understanding i've never been more confused
<SeepingN> ...Object Oriented === modular?
<Eiam> alright because I've got 10 min till my next meeting, lets do it
<Inside> Check out Practical Object-Oriented Design: An Agile Primer Using Ruby (2nd Edition)
<SeepingN> plenty of time to learn object oriented programmjing
<SeepingN> ^ that
<SeepingN> .pdf
<Inside> or don't be a dick and buy the book :D
<comet23> haha that acronym spells poo dr lmao
ua has quit [Ping timeout: 252 seconds]
<SeepingN> ok, DRM controlled ebook
<SeepingN> don't be a dick: buy electronic
<Inside> better
<SeepingN> also searchable ;)
<SeepingN> POODR
<jthomas2> comet23: Ruby is an Object Oriented programming language, so it is "modular" in the sense code is isolated and organized into modular units. Ruby also has the concept of "Modules," which allow you to organized related code.
<Eiam> comet23: Modular programming has its place, I'm not sure Ruby has any specific spin on the concept of modular programming vs another langauge
<comet23> thank you so much :)
<jthomas2> comet23: You should probably just use the standard ruby-docs to get up to speed on what Ruby offers, then come ask a more clear question.
<SeepingN> yeah no
<comet23> no what?
<Eiam> part of what I enjoy about ruby is how little code I often write to accomplish tasks, thus I don't use a lot of modular practices in the type of ruby I write beyond more basic functional composition
nowhereman_ has joined #ruby
<comet23> have you heard of the metasploit project?
<SeepingN> who hasn't
mochiyoda has joined #ruby
<comet23> they have the cleanest code i've ever read
<comet23> i'm really impressed and i want to write code like that
za1b1tsu has joined #ruby
<Eiam> this is drifting into a meta conversation too
<SeepingN> well if all of your code impressions are from public githubs, that may not be hard to acheive
<Eiam> Confident Ruby is another good book imo for writing clean, clear code in Ruby
<Eiam> it really changed the way I thought about my own code
<SeepingN> o.O
<Eiam> SeepingN: you don't like confident ruby? =)
<SeepingN> haven't heard of it. looking
<SeepingN> cuz my code is trashy and functional
<Eiam> lol
<Inside> I'
<SeepingN> mostly a replacement for shell scripting
<Inside> I've been spinning my wheels for the last week trying to rewrite this chunk of code
<Eiam> its good. my team enjoyed it, but maybe they said that cause i sign the checks
<SeepingN> sometimes for Rails reporting and updating
<Eiam> SeepingN: I don't use nil to return meaning anymore, I protect my boundaries and declare clear intent
<Inside> confident ruby/
<zenspider> "modular programming" is a term from the 70s.
<zenspider> ala dikstra and folk
<SeepingN> wow, there's some old refs
<zenspider> ruby Modules have (roughly) nothing to do with "Modular programming"
im0nde has joined #ruby
jordanm has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
jonjitsu has joined #ruby
<zenspider> Inside: what is it?
nowhereman_ has quit [Ping timeout: 240 seconds]
ua has joined #ruby
<Inside> I was trying to make a?
GodFather has quit [Ping timeout: 272 seconds]
<Inside> No paperback version of it?
<Inside> bummer
<Inside> I can get work to buy me books, but not e-books
<Inside> :|
<zenspider> Inside: I meant what code are you spinning on?
<Inside> zenspider: oh, it's a bit of code which talks to an ERP and then generates a set of work instructions for equipment
<Inside> based on a magic mixture of things that I feel are important to be listed in the work instructions
<SeepingN> fun
<Inside> it works (tm), but most of the rules are hard coded
<Inside> so I'm trying to move everything to a sort of a configurable interface so other people can maintain this system
jordanm has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
wildermind has quit [Quit: Connection closed for inactivity]
SteenJobs has quit [Quit: SteenJobs]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> 21:41 Eiam: I'm sure some people may take umbrage with the word 'official'
jcarl43 has quit [Quit: WeeChat 2.3]
<apeiros> ruby-lang.org officially makes this channel the "official" ruby channel
<apeiros> https://www.ruby-lang.org/en/community/ - "Ruby on IRC (#ruby)"
<apeiros> so yes, this *is* the official irc channel for the ruby programming language :)
<apeiros> /cc comet23 ^
jcarl43 has joined #ruby
<Inside> ooo lawyered
SteenJobs has joined #ruby
moei has quit [Quit: Leaving...]
cow[moo] has joined #ruby
orbyt_ has quit [Ping timeout: 244 seconds]
<Radar> Inside: What book doesn't have a paperback version?
orbyt_ has joined #ruby
nowhereman_ has joined #ruby
druonysus has joined #ruby
whysthatso has quit [Read error: Connection reset by peer]
whysthatso_ has joined #ruby
phaul has joined #ruby
ua has quit [Ping timeout: 244 seconds]
<Eiam> apeiros: well then! so lawyered =)
apeiros has quit [Read error: Connection reset by peer]
<Eiam> apeiros: its like how we have #swift-lang and apple won't put a stupid .txt file on the website to make it official, so we are unofficial =)
<Eiam> Inside: i only have the ebook form of it.
apeiros has joined #ruby
Wojnar has quit [Remote host closed the connection]
venmx has joined #ruby
<zenspider> Radar: I took it to be confident ruby... amazon seems to agree
desperek has quit [Quit: xoxo]
ua has joined #ruby
kaleido has quit [Remote host closed the connection]
kaleido has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
eckhardt has joined #ruby
<Radar> Rightio.
xfbs has quit [Quit: afk]
Snowy has quit [Quit: ragequit]
cliluw has quit [Read error: Connection reset by peer]
ua has quit [Excess Flood]
ua has joined #ruby
GodFather has joined #ruby
cliluw has joined #ruby
Inside has quit [Quit: leaving]
cliluw has quit [Client Quit]
cliluw has joined #ruby
phaul has quit [Ping timeout: 245 seconds]
phaul has joined #ruby
s2013 has joined #ruby
reber__ has quit [Remote host closed the connection]
kapil____ has joined #ruby
za1b1tsu has joined #ruby
Inside has joined #ruby
<baweaver> Radar: or half of your books :P
za1b1tsu has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 246 seconds]
<Eiam> Inside: its a couple dollars, really need to expense it? =o
<zenspider> YAY! I think I'm actually done with the graphics gem changes for my talk!
nchambers has joined #ruby
samort7 has joined #ruby
<Radar> baweaver: with very good reason ;)
ua has quit [Quit: Leaving]
ua has joined #ruby
<baweaver> zenspider: reformatting everything for 16:9 myself :P
Azure has quit [Read error: Connection reset by peer]
<Eiam> self publishing probably easier and faster
<Eiam> (and cheaper...)
Azure has joined #ruby
<zenspider> baweaver: use that as your default from now on... I haven't seen a 4x3 conf in a very long time. And keynote (probably others) will automatically adjust as best they can.
<Radar> Eiam: All of these things are true. It's also much easier to update PDFs than to update dead-tree books.
<zenspider> Eiam: faster. not easier. and less about cheaper as it is about profit
<Radar> Plus, the "state of the art" in publishers these days is "please write in Microsoft Word"
orbyt_ has joined #ruby
<baweaver> Yeah, lesson learned there.
<Radar> And "what is Git?" followed by "What do you mean 'Version Control'"?
<zenspider> hah
<baweaver> Not too bad so far, and more space for code samples.
<zenspider> luckily some publishers are more savvy than others... prag for example
<zenspider> totally... going bigger is always easier than trying to go smaller. I did that once and it sucked
<zenspider> tho... maybe that should be a signal that I already had too much on a slide?? I'll have to think about that
<baweaver> ask Radar about his love affair with Manning some time :D
<Radar> fuck 'em.
<Radar> re: slides: GO BIG OR GO HOME (or something like that)
<baweaver> granted, kinda wish NoStarch would move towards markdown.
<Radar> Zach Holman's minimum font size on his slides is 100pt (iirc)
nexraf1 has joined #ruby
* baweaver looks guiltily at his 48pt code
<Radar> baweaver: I think code is different. His text is big.
<zenspider> Radar: I generally agree. I'm a huge fan of Tahakashi method
<Radar> baweaver: most publishers have low tech savvy and with the tech that they have they're pretty... attached. Better the devil you know.
<Eiam> well keynote for sure is optimized to be displayable on giant 100 inch or whatever those thigns are
<Eiam> 100 foot? =)
<baweaver> Speaking of, guess what I'm announcing at RubyConf :D
<zenspider> Pragprog, learn enough (hartl) are both really streamlined
<Radar> zenspider: Yeah! Learn Enough is a great approach. I think Hartl's doing really amazing things there.
<Eiam> baweaver: some weird functional programming shim into ruby ?
<Eiam> baweaver: Raskell?
<Radar> ^ my guess also
<baweaver> ....
<baweaver> Speaking of, guess what two things I'm announcing at RubyConf :D
<Radar> Illustrated Guide to Ruby and Raskell?
<baweaver> First one is most likely going to happen
<baweaver> Though there are some talks on the name potentially changing considering they've also published "Ruby Under a Microscope: An Illustrated Guide to Ruby"
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
ta_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
<Radar> baweaver: intentionally riffing off http://patshaughnessy.net/ruby-under-a-microscope ?
<baweaver> unintentionally
<baweaver> Thinking about whether or not the name should change.
GodFather has quit [Ping timeout: 252 seconds]
<baweaver> me and havenwood were musing around about "Ruby for Lemurs - An Illustrated Apprenticeship"
apeiros has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 246 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has joined #ruby
zachk has joined #ruby
raulp has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
RougeR has joined #ruby
asphyxia has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
comet23 has quit [Quit: Connection closed for inactivity]
justicefries has joined #ruby
c0ncealed4 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
c0ncealed4 has joined #ruby
noark9 has joined #ruby
noark9 has quit [Client Quit]
ta_ has joined #ruby
eckhardt has joined #ruby
apeiros has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
tdy has joined #ruby
bak1an has joined #ruby
<Cork> if i have an OpenSSL::BN object (OpenSSL::PKey::EC#private_key), is there a way to recreate the full OpenSSL::PKey::EC object?
venmx has quit [Ping timeout: 240 seconds]
k0mpa has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 252 seconds]
haylon has quit [Ping timeout: 252 seconds]
marmotini_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
<RedNifre> What happens when you launch ruby files with the interpreter? Does it parse individual files lazily when it encounters a require? I have a version of my script running and it's currently crawling something, but I'd like to continue working on it... I gues the interpreter doesn't mind if I edit the file since it only reads it once on startup, right?
<Inside> Yes
<Inside> as best as I understand it
<RedNifre> oh, never mind, the crawling just finished :o)
<RedNifre> But thanks :)
<Inside> ^_~
Dimik has joined #ruby
Dimik has quit [Excess Flood]
jthomas2 has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]