aupadhye has quit [Remote host closed the connection]
mangold has quit [Quit: This computer has gone to sleep]
Silex_ has joined #ruby
pyther has joined #ruby
<pyther>
How can a change the default CA bundle path that openssl is looking at? It is looking at the cabundle in my ruby install, but I need to have it look at the system bundle (/etc/pki/tls/cert.pem)
RougeR has joined #ruby
<RougeR>
anyone got experience with resque-scheduler?
<RougeR>
im struggling, to get my jobs to actually push
Silex_ is now known as Silex
<RougeR>
its running the schedule and setting it, but they are all staying pending rather than processing
<Silex>
the same works if A is a class and not a module, I don't understand why modules are so touchy about replacing their methods
rippa has joined #ruby
fluxAeon has joined #ruby
Rapture has joined #ruby
thebetrayer has joined #ruby
houhoulis has quit [Remote host closed the connection]
bak1an has joined #ruby
gnufied has joined #ruby
thebetrayer has quit [Ping timeout: 260 seconds]
paraxial has joined #ruby
<phaul>
Silex: as far as I understand include it creates a copy of the module, makes it a singleton class and puts that in the inheritance chain. Therefore including A.include B does not put B in the ancerstry of Foo if it comes after Foo inlcuding A
crankharder has quit [Remote host closed the connection]
thebetrayer has joined #ruby
<phaul>
so when you expect the class of modules in the inheritance chain it lies. it says module but its singleton classes.
mangold has quit [Quit: This computer has gone to sleep]
GodFather has joined #ruby
<cpruitt>
I have a class that needs to use SSHKit to execute a remote command. Is there a good way to test (with rspec) that the expected command gets executed? I've never tried to test something like this before.
jgpawletko has quit [Quit: jgpawletko]
Azure has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
Azure has joined #ruby
pyther has quit [Ping timeout: 256 seconds]
eddof13 has joined #ruby
GodFather has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
haylon_ has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
beefjoe has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<Inside>
Design Q: When passing around data - is it better to pass a hash or a struct? It seems like it's a bit more work to pass around a struct (since you need to define it, etc), but then you're able to convert it to a class in case you need to do any sort of get/set methods to modify the data
Wojnar has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
Inline has joined #ruby
beowuff has joined #ruby
kurko__ has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
ta_ has quit [Ping timeout: 245 seconds]
OrangeManBad has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
clemens3_ has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Remote host closed the connection]
<Eiam>
Inside: meetings were cancelled, i have time to myself and a problem that needs solving?
kurko_ has joined #ruby
whysthatso_ has joined #ruby
nchambers has quit [Ping timeout: 240 seconds]
whysthatso has quit [Ping timeout: 260 seconds]
whysthatso_ is now known as whysthatso
c0ncealed4 has quit [Remote host closed the connection]
c0ncealed4 has joined #ruby
nchambers has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
eckhardt has joined #ruby
samort7 has joined #ruby
cthu| has joined #ruby
SeepingN has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
voolik has quit [Quit: Taking a nap...]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpallares has quit [Ping timeout: 246 seconds]
eddof13 has quit [Quit: eddof13]
conta2 has joined #ruby
eddof13 has joined #ruby
cpruitt has quit [Remote host closed the connection]
impermanence has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
conta2 has quit [Ping timeout: 246 seconds]
k0mpa has joined #ruby
akem has joined #ruby
cpruitt has joined #ruby
akem__ has quit [Remote host closed the connection]
mroutis has quit [Remote host closed the connection]
akem has quit [Read error: Connection reset by peer]
gh0sh- has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
nowhere_man has joined #ruby
cpruitt has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 245 seconds]
<Eiam>
meh, going to have to just use a struct and declare it all in advance
eddof13 has quit [Quit: eddof13]
cpruitt has joined #ruby
<Inside>
4 hours of meetings on a friday
<Inside>
what hell do you work in
Wojnar has quit [Remote host closed the connection]
<Eiam>
tech
<Eiam>
I'm in the business of going to meetings so my team doesn't have to =)
nowhere_man has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
conta has quit [Quit: conta]
<Eiam>
I remember how much i hated wasting my time in meetings when I was an individual contributor so one of the reasons I decided to move to management was to try and fix all the things I hated!
cpruitt has quit [Ping timeout: 240 seconds]
<Inside>
but then you were consumed by dark side :(
* Inside
pours a beer out.
<Eiam>
Or am I fighting the dark side? =)
<Eiam>
but yes perhaps one day my soul will be consumed, I'll be sipping a whisky catching up on real work one evening and it'll hit me, I'll realize all my past managers had reached this point and there I am too, the circle complete. Now the evil manager.
desperek has joined #ruby
bmurt has joined #ruby
akaiiro has joined #ruby
akem has joined #ruby
<baweaver>
3-4 hours of meetings today myself.
<baweaver>
Then again still an IC somewhere around Staff level, haven't gone management.
<Eiam>
baweaver: eh. pros and cons. Certainly the day I was minted management, It didn't unlock any magical door or pay. I just suddenly had a job that was nothing like my old one
<Eiam>
nobody cared about my code anymore
<baweaver>
For me I'd likely be taking a demotion to become a manager.
<Eiam>
and I suddenly started writing a LOT less of it.
<baweaver>
Staff IC != Staff Manager
<Eiam>
I certainly feel like there are people on my team who if they became a manager would be taking a serious demotion
<baweaver>
If I went to Principal level I'd definitely get a whack :P
reber has quit [Read error: Connection reset by peer]
<Eiam>
hmm so I have a CSV Row that I want to map into a struct
<Eiam>
wrapping it in new dumbly shoves all the row attributes into the first attribute of the struct
<Eiam>
wish i could just like type coerce this thing
<Inside>
Eiam: Are you using the csv class?
<Eiam>
yeah, but with the header converter, the csv row object exactly mirrors the struct object structure
<Inside>
You might be able to splat the struct initializer
<Eiam>
so i was hoping theyl'd just cleanly merge
<Eiam>
oh good idea let me try that
cpruitt has joined #ruby
<SeepingN>
oo I see jobs at Square
<Eiam>
close, it turned the header and value into an array for the same attribute!
<Eiam>
lets see if i can just splat out the values
elphe has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
troulouliou_div2 has joined #ruby
<Eiam>
Inside: yep, I had to strip out the header though, but nbd. Maybe I should just ignore the header attribute and drop the first row vs creating it and ignoring it. oh well ill worry about that if it becomes an issue later
<Eiam>
Inside: yeah, but csv row has header attributres and when you raw splat it, the header and field values are converted to an array then mapped into the struct
<Eiam>
anyway,splat WAS the answer.
<Eiam>
*row.fields
<Inside>
you could do my_struct_array = []; data = csv.readlines(); header = data[0]; data[1..-1].each { |row| my_struct_array << my_struct.new(*row}
<Eiam>
yeah
<Eiam>
I may, will see how perf gets when im up in the terabytes of data
<Inside>
oh the csv library is awful fo rthat
mochiyoda has quit [Remote host closed the connection]
troulouliou_div2 has quit [Ping timeout: 244 seconds]
<zenspider_>
yeah. I don't believe 40x at all. But I also can't get to that 50m of data
<zenspider_>
HORRIBLE website. wtf
<Eiam>
ha and i want to plot it as well, well neato
<Inside>
Oooh ruby doesn't have the best plotting though :'(
<Eiam>
yea i could use matlab or python or r but I like ruby so whatever
<Eiam>
Inside: tbh i was going to dump it to json and use a javascript graphing library =)
<Inside>
It's one of the things I struggle with a lot in ruby
<Inside>
ugh
<Eiam>
cause javascript has all the nice plotting kits
<ua>
ruby has crystal-lang tho
<Inside>
crystal-lang?
<zenspider_>
nope. I'd help but I can't get the data
<zenspider_>
crystal isn't ruby.
<Eiam>
i just don't really enjoy writing javascript
<ua>
i mean, theres another compiled language with almost 100% ruby syntax
<ua>
just few thigs are missing like REPL
<zenspider_>
and herogeneous collections and and and... just no.
<ua>
but you get almost C like speed
<ua>
there are just some tradeoffs
<ua>
but yeah i would rather crystal-lang people optimize ruby
<zenspider_>
like I always say "every time a nerd says 'just', they're massively understating or making huge assumptions"
<Eiam>
zenspider_: i just dont like writing javascript! =) im making assumptions about my own enjoyment
samort7 has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
nowhere_man has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
bambanx has joined #ruby
<Inside>
Eiam: There is a ruby to javascript transpiler
<Inside>
(Opal)
akosednar has quit [Ping timeout: 240 seconds]
<Eiam>
what kind of sicko...
<Inside>
I briefly used it in production to make charts
<Inside>
>_>
TheBloke has joined #ruby
<zenspider_>
last time I looked, python and ruby performance (not including pypy) were pretty comperable... if there is a 3x slowdown, it might be a C extension on the python side. We might have an equivalent there.
<zenspider_>
But in general, SciRuby has not gotten a lot of love that it needs.
<zenspider_>
but 40x slower, I simply don't believe without proof
<Inside>
zenspider_: I forget the details about the CSV parser
zenspider_ is now known as zenspider
akosednar has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arooni>
hey bros ; i was trying to install bropages; and ran into this issue: incompatible library version - /home/david/.rvm/gems/ruby-2.4.1/gems/openssl-2.1.1/lib/openssl.so ... what to do?
<arooni>
should i just uninstall that openssl gem and try again?
<zenspider>
bros?
<arooni>
/s/bros/people of all genders/ how about now
<phaul>
Im not a person, and now I feel offended
<arooni>
see this is why i try not to play this game
<arooni>
there is always someone offended at something nowadays. pronouns are off limits in irc chat room apparently. noted.
<phaul>
arooni: was kidding of course. paste your full issue log on some pastebin/gist/whatever
<baweaver>
Line 33 could probably be a joined or includes query.
<Inside>
I have this big ugly class that contains information about a specific piece of equipment - it needs to pull in information from an ERP, a local component information store, a software table, etc
Milos_ is now known as Milos
<baweaver>
Also lots of redundancy
<baweaver>
line 16 is unnecessary
<baweaver>
as is 43
xfbs has quit [Quit: afk]
<Inside>
Sometimes it needs to pull in a bunch of information at once for a lot of units (but only for a specific parameter), other times all the parameters for a single unit
<Inside>
baweaver: ah yes, I was just writing a mockup for where I'm trying to go with it now - currently I have some even uglier code
<baweaver>
brb
<baweaver>
Might post the data schemas in the gist too
<Inside>
updated it some
eddof13 has quit [Quit: eddof13]
<Inside>
Well - I'm trying to convert everything to use DI. I've pushed the ERP access out of UnitInformation - and instead will pass in a hash of {pn:qty}.
Dirak has quit [Quit: Lost terminal]
<Inside>
So then I have two more types of data - one is the SoftwareSpecification table - which contains test parameters (which are based on a software part number) - and the other is a ComponentGroup/Component definition thing where I store additional information about a part number that is not in the ERP
<Inside>
I guess I should create a wrapper object for the software & component groups as well - where they could do either eager loading (ie: download all the tables at once) or just load the specific rows as needed
thejs has quit [Remote host closed the connection]