houhouli_ has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 256 seconds]
n0m4d1c has quit [Remote host closed the connection]
cschneid has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
sagax has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.0.1]
davidsiegel has joined #ruby
ixti has quit [Quit: WeeChat 2.0.1]
govg has joined #ruby
<davidsiegel>
Hi there! I made a tool to generate typechecked Ruby models from JSON/schema using the dry-types gem and I'm looking for feedback: https://app.quicktype.io/?l=ruby
<davidsiegel>
I'm a little dismayed at the amount of code I had to generate to accomplish this and am looking for any ways to make it a bit more idiomatic.
xuanrui has joined #ruby
cschneid has joined #ruby
Yzguy has quit [Quit: Zzz...]
knight33_ has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
arescorpio has quit [Quit: Leaving.]
n0m4d1c has quit [Remote host closed the connection]
armyriad has quit [Read error: Connection reset by peer]
davidsiegel has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidsiegel has joined #ruby
marxarelli|afk has quit [Ping timeout: 240 seconds]
davidsiegel has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
hahuang61 has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
armyriad has quit [Read error: Connection timed out]
armyriad has joined #ruby
Asher has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
Asher has joined #ruby
alfiemax_ has joined #ruby
Rubemlrm has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
Rubemlrm has joined #ruby
gix has joined #ruby
hahuang61 has joined #ruby
gix- has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 248 seconds]
fyrril2 has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
fyrril has joined #ruby
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
hahuang61 has joined #ruby
soniya29 has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
mangoicedtea has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
xco has joined #ruby
sidx64 has joined #ruby
__main__ has joined #ruby
xco has quit [Ping timeout: 256 seconds]
knight33_ has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
soniya29 has quit [Ping timeout: 245 seconds]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
hahuang65 has joined #ruby
xco has joined #ruby
karapetyan has joined #ruby
aufi has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
aufi has quit [Remote host closed the connection]
hahuang61 has joined #ruby
G__ has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
alex`` has joined #ruby
hahuang65 has joined #ruby
karapetyan has quit [Remote host closed the connection]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
n13z has quit [Quit: leaving]
GinoMan has quit [Ping timeout: 240 seconds]
maum has quit [Remote host closed the connection]
detectiveaoi has quit [Quit: Leaving]
alfiemax_ has quit [Remote host closed the connection]
sidx64_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
sidx64 has quit [Ping timeout: 256 seconds]
roshanavand has quit [Quit: Leaving.]
roshanavand has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 264 seconds]
_Joes_ has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
conta has joined #ruby
guardianx has joined #ruby
_Joes_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
dionysus69 has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
andikr has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has quit []
Rubemlrm has quit [Ping timeout: 268 seconds]
hahuang61 has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus70 is now known as dionysus69
Rubemlrm has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
kliq has joined #ruby
kliq has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 2.0.1]
schneider has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
bigblind has joined #ruby
yohji has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
willmichael has joined #ruby
clemens3 has joined #ruby
imode has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
Puffball has quit [Ping timeout: 264 seconds]
bigblind has quit [Ping timeout: 245 seconds]
Puffball has joined #ruby
claudiuinberlin has joined #ruby
Burgestrand has joined #ruby
oetjenj has joined #ruby
c0ncealed has quit [Remote host closed the connection]
aupadhye has joined #ruby
rahul_bajaj has joined #ruby
c0ncealed has joined #ruby
willmichael has quit [Ping timeout: 245 seconds]
rabajaj has quit [Ping timeout: 248 seconds]
willmichael has joined #ruby
marr has joined #ruby
hahuang61 has joined #ruby
cschneid has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
phaul has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 260 seconds]
sidx64 has joined #ruby
schneider has joined #ruby
wojnar has joined #ruby
mikecmpbll has joined #ruby
rabajaj has joined #ruby
riotjones has joined #ruby
rahul_bajaj has quit [Ping timeout: 256 seconds]
ltt has joined #ruby
yohji has quit [Ping timeout: 268 seconds]
ltt has quit [Client Quit]
willmichael has quit [Ping timeout: 256 seconds]
bigblind has joined #ruby
willmichael has joined #ruby
ltt has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
ltt has quit [Client Quit]
mikecmpbll has joined #ruby
ta_ has joined #ruby
Burgestrand has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
yohji has joined #ruby
guille-moe has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
KeyJoo has joined #ruby
konos5_ has joined #ruby
willmichael has quit [Ping timeout: 252 seconds]
willmichael has joined #ruby
alfiemax has joined #ruby
Strepsils has quit [Read error: Connection reset by peer]
cdg has joined #ruby
rahul_bajaj has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
rabajaj has quit [Ping timeout: 265 seconds]
ltt has joined #ruby
PaulePanter has quit [Remote host closed the connection]
PaulePanter has joined #ruby
leitz has joined #ruby
cdg has joined #ruby
<leitz>
In line 5, is the "superclass.hierarchy" recursing back up the class hierarchy until it gets to "BasicObject, then creating the array, and adding each Class as it comes out of the recursion?
<leitz>
The question is more "Do I understand this correctly?"
cdg has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
hahuang61 has joined #ruby
rabajaj has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahul_bajaj has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 255 seconds]
ltt has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
armyriad has quit [Read error: Connection reset by peer]
Beams has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
marens has quit [Remote host closed the connection]
marens has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
leitz has quit [Quit: Nappy time]
Strepsils has joined #ruby
ta_ has quit [Remote host closed the connection]
ltt has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider- has joined #ruby
schneider has quit [Read error: Connection reset by peer]
sylario has joined #ruby
ShekharReddy has joined #ruby
workmad3 has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
amatas has joined #ruby
drewmcmillan has joined #ruby
claudiuinberlin has joined #ruby
amatas has quit [Quit: amatas]
amatas has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
tomphp has joined #ruby
milardovich has joined #ruby
Guest87992 is now known as ndrst
ndrst has quit [Changing host]
ndrst has joined #ruby
vrih has joined #ruby
amatas has quit [Quit: amatas]
claudiuinberlin has quit [Ping timeout: 245 seconds]
amatas has joined #ruby
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
fribmendes has joined #ruby
TomyWork has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcopeland has quit [Quit: tcopeland]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
ta_ has joined #ruby
qba73 has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
bigblind has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
goatish has joined #ruby
cdg has joined #ruby
ltt has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
Cavallari has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari1 is now known as Cavallari
atta has joined #ruby
shinnya has joined #ruby
hahuang61 has joined #ruby
Puffball has quit [Ping timeout: 256 seconds]
Puffball has joined #ruby
Cavallari1 has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
Cavallari has quit [Ping timeout: 260 seconds]
Cavallari1 is now known as Cavallari
schneider- has quit [Ping timeout: 248 seconds]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
tcopeland has joined #ruby
<zmo>
hi o/
synthroid has joined #ruby
<zmo>
I'd like to make a member from a parent class available as self attribute in the children classes.. I thought it would be obvious, but it actually isn't. I tried doing it the same way I defined class methods (self.name) but no luck
<zmo>
I tried with @@name
willmichael has quit [Ping timeout: 264 seconds]
Exagone313 has quit [Quit: see ya!]
bigblind has joined #ruby
<zmo>
how can I have a class member and access it from a child's method ?
Exagone313 has joined #ruby
<Burgestrand>
zmo could you provide a minimal example of what you want to do?
<zmo>
class A; self.a = 42; end ; class B < A; def foo; print(a); end; end
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
bmurt has joined #ruby
<zmo>
hm.. actually what I really want, beyond the syntax is the opposite pattern: class A; def foo; print(self.a); end ; class B < A; self.a = 42; end
<zmo>
so that B.foo prints 42
<Burgestrand>
zmo in the example you provided, your `.a` is defined as A.a, but your `#foo` is defined as `B.new.foo`, is that really what you're afteR/
<zmo>
(B.new.foo)
<zmo>
Burgestrand - yes, I want to access A.a from an instance, without having to know the class name
<Burgestrand>
zmo Now your second explanation kind of said the opposite :)
<zmo>
Burgestrand - indeed, but it's the same mechanism
<Burgestrand>
zmo so for one, @@-variables are shared with subclasses, whereas @-variables aren't — @@-variables in this sense are dangerous because the mechanics are more likely to come at a surprise to the developer
<dminuoso>
Burgestrand: Effectively `require` is not a "require that library" but "eval that file"
bmurt has joined #ruby
vaillancourtmax has joined #ruby
<Burgestrand>
dminuoso Isn't that pretty much what I just wrote? I guess I capitalized the A in error, so more like `a = require "./a"`, i.e. give `require` a return value
<dminuoso>
Burgestrand: I dont follow you then.
<Burgestrand>
dminuoso ES6 modules works by explicitly exporting certain things in your module, e.g. `export function print(…) {}`, when you require something you get an object back with accessors for each export, i.e. `kernel = require("kernel"); kernel.print("Hello");`
kn-928 has joined #ruby
kn-928 has quit [Client Quit]
<dminuoso>
Burgestrand: Ah, I was just confused because you re-used ruby `require`
<Burgestrand>
dminuoso :)
<dminuoso>
Burgestrand: But yeah, basically that.
kn-928 has joined #ruby
<Burgestrand>
Yeah, I agree, I've kind of wished that when you write a gem you're pretty much hoping that the global constant you're exposing won't clash with some other global constant available in the code of whoever is requiring your gem
<dminuoso>
Burgestrand: And I dont want to have to specify the order of dependencies (having to control the order in which require statements go in, is just pure spaghetti), this is the implementations job.
<dminuoso>
Yup.
ltt has joined #ruby
reber has joined #ruby
hahuang61 has joined #ruby
bigblind has quit [Remote host closed the connection]
<Cork>
is there a way to get the key size of OpenSSL::PKey ?
aupadhye has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
fribmendes has quit [Quit: fribmendes]
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ryandv has joined #ruby
<darix>
Cork: probably
<Cork>
ya, just found it .n.num_bits
<Cork>
(about a min ago)
<darix>
hmm
<darix>
doesnt work here
<Cork>
OpenSSL::PKey.new(pem_string).n.num_bits
<Cork>
or OpenSSL::PKey.new(4096).n.num_bits == 4096
<kanobt61>
that gist has an example of what i want
<kanobt61>
I did some googling and didn't come up with anything
<Burgestrand>
kanobt61 (guessing) possibly with `public_send("foo.bar", 1)`
<Burgestrand>
Sorry, `json.public_send(…)`
anisha_ has quit [Ping timeout: 252 seconds]
anisha__ has joined #ruby
<Burgestrand>
I don't use jbuilder, but I have a vague memory that it uses `method_missing` to create dynamic methods that correspond to the key output
<kanobt61>
cool, yeah i should have thought of that
<kanobt61>
thanks!
<Burgestrand>
kanobt61 (searched for `method_missing` and then saw that it used `set!`)
ryandv has joined #ruby
<Burgestrand>
kanobt61 Although, to be fair, it _does_ say in the README :)
<kanobt61>
seems like Jbuilder could just not use method_missing magic and always use set.
<Burgestrand>
It's a stylistic preference I guess
yohji has joined #ruby
<kanobt61>
Right, I guess it is, just, like my opinion man, that method_missing stuff turns into magic.
<kanobt61>
lol. Well this is working great. Thanks again
<Burgestrand>
kanobt61 I agree, it doesn't help that people almost always forget to implement `respond_to_missing?`, which does make interacting with the magic stuff a little bit nicer
<Burgestrand>
kanobt61 you're welcome :)
<kanobt61>
yeah, and it needing to act like a method has ramifications to what the json can look like. Which is probably fine most of the time. But json needing to match ruby method calls syntactically seems like an odd dependency.
<kanobt61>
(shrug)
karapetyan has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
rikkipitt has joined #ruby
marr has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuanrui has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Quit: Leaving...]
ltt has joined #ruby
yohji has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
SuperL4g is now known as SuperLag
milardovich has quit [Remote host closed the connection]
hahuang61 has joined #ruby
[Butch] has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
xuanrui has joined #ruby
desperek has joined #ruby
yohji has joined #ruby
aupadhye is now known as aupadhye|food
conta1 has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
qba73 has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
conta1 is now known as conta
aufi has quit [Quit: Leaving]
kn-928_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
kn-928 has quit [Ping timeout: 255 seconds]
schneider- has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
schneider- has joined #ruby
bmurt has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
Guest84333 has left #ruby ["WeeChat 1.4"]
vrih has joined #ruby
marxarelli has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrabe is now known as upmime
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
nowhereman_ has quit [Ping timeout: 240 seconds]
nowhereman_ has joined #ruby
nadir has joined #ruby
Emmanuel_Chanel has joined #ruby
ryzokuken has joined #ruby
conta has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
imode has joined #ruby
tomphp has joined #ruby
chmurifree is now known as chmuri
kn-928_ has quit [Ping timeout: 260 seconds]
kn-928_ has joined #ruby
Zaab1t has joined #ruby
jcarl43 has joined #ruby
marr has joined #ruby
kapil___ has joined #ruby
kn-928_ has quit [Ping timeout: 264 seconds]
schneider- has quit [Ping timeout: 268 seconds]
darkhanb has joined #ruby
krawchyk has joined #ruby
memo1 has joined #ruby
anjen has joined #ruby
Strepsils has joined #ruby
Strepsils has quit [Max SendQ exceeded]
hahuang61 has joined #ruby
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20180219-15ccaca4 - https://znc.in]
TinkerTyper has joined #ruby
memo1 has quit [Quit: WeeChat 1.4]
memo1 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
sanscoeur has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
goatish has quit [Quit: Hibernating]
Emmanuel_Chanel has joined #ruby
aupadhye|food is now known as aupadhye
konos5_ has quit [Quit: Connection closed for inactivity]
mtkd has quit [Ping timeout: 252 seconds]
kies has joined #ruby
mtkd has joined #ruby
hahuang61 has joined #ruby
armyriad has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
conta has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
andikr has quit [Remote host closed the connection]
Inside has joined #ruby
<Inside>
Heyo. So this is a meta question and I don't really know where to start... but I want to develop a UI for ruby. I've used qtbindings gem in the past and it was /okay/ to use, but packaging up the application with OCRA is sorta tedious and it takes forever to start up
<Inside>
what do people use to develop UIs for windows these days? :|
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
frm has joined #ruby
gizmore|2 has quit [Ping timeout: 268 seconds]
<dminuoso>
Inside: Not ruby.
frm has quit [Client Quit]
<dminuoso>
Inside: What do you need ruby for?
<Inside>
it's what i'm most familiar with ;)
<dminuoso>
Inside: Then get familiar with something else.
krawchyk_ has joined #ruby
<Inside>
well that's where I was going with this
goatish has joined #ruby
<Inside>
I'm starting to kind of see why people use electron... :/
<dminuoso>
Inside: People use electron because they know nothing else.
<Inside>
I see
<dminuoso>
Or dont want to incur the cost.
<Inside>
My actual use case is I'm trying to develop a UI for a PLC... which talks over RTU/Modbus
yohji has quit [Remote host closed the connection]
<Inside>
My previous version was quite retarded: I had a MODBUS/Websocket server and then the UI ran inside a webpage because I needed to POST the results to a database
<dminuoso>
Inside: Rust has pretty solid gtk+ 3 bindings
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Inside>
I want to cut out the whole MODBUS/Websocket/Webpage thing and just have a single layer between the PLC & DB
krawchyk has quit [Ping timeout: 268 seconds]
<dminuoso>
Inside: What kind of UI complexity are we talking about?
<dminuoso>
How much "stuff" do you need to jam in there?
troys has joined #ruby
frm has joined #ruby
frm has joined #ruby
frm has quit [Changing host]
<Inside>
Not much - 2 input forms, 4 outputs, and an image that changes based on the state of the PLC
<Inside>
I mean the webpage approach "works" and haslogged about 10,000 interactions
<dminuoso>
Inside: Any demands for deployability, or is it just a personal play thing?
<Inside>
it's for a test fixture for work
<Inside>
There would be 1-3 deployments.. probably on a windows PC since IT wants to keep everything on windows
<dminuoso>
Inside: How do you communicate with that decice? serial bus?
aupadhye has quit [Quit: Leaving]
<Inside>
yeah, serial over USB
<dminuoso>
Inside: Are the input forms to be used by humans, or is the interface to be consumed by an automated test framework?
<Inside>
for humans
<Inside>
it's a test fixture in a factory - not the software kind :D
<dminuoso>
Inside: Does the device generate the picture itself, or is that something you have to do as well?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Inside>
Someone drops in a component, scans the serial number, then pushes start
<Inside>
Then the PLC does some leak checks, etc, then the interface will read a status code from the PLC and POST it to a database. For troubleshooting the UI will show an image with a possible leak location
<dminuoso>
Inside: a miniature sinatra solution sounds like the easiest thing then.
anjen has quit [Quit: anjen]
goatish has quit [Quit: bye]
mtkd has joined #ruby
<Inside>
ooh
<Inside>
run the server locally, have it talk to the PLC then the interface is a webpage?
<Inside>
That's actually less retarded than what I'm doing - running a remote ruby on rails server which talks to the DB & renders the UI for the application... then running a server locally which talks to the PLC and communicates with the application UI page over websockets
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Inside>
Not sure why I didn't do that in the first place, hah.
memo1 has quit [Ping timeout: 268 seconds]
<dminuoso>
18:44 Inside | run the server locally, have it talk to the PLC then the interface is a webpage?
<dminuoso>
Yes.
<Inside>
Hmmm
<dminuoso>
Given the simplicity of the interface, this is the "least-effort" solution. It's also relatively robust.
<dminuoso>
And if for whatever reasons you need to have hardware control, you can rewrite whatever you need in a native extension,.
<dminuoso>
(Or write it as an external library that you use in a native extension)
<Inside>
Makes sense
<Inside>
Yeah - there's an RMODBUS library for ruby that mostly works so I've got that covered
<dminuoso>
Even better then =)
<dminuoso>
Inside: And ditch rails. You just need sinatra.
clemens3 has quit [Ping timeout: 260 seconds]
<Inside>
Right
n13z has joined #ruby
<dminuoso>
Or if you want it even smaller, camping is really small
hahuang65 has quit [Quit: WeeChat 2.0.1]
<Inside>
size is not a problem
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
eckhardt_ has joined #ruby
Dimik has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
hahuang65 has joined #ruby
guille-moe has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
Beams has quit [Quit: .]
cdg has quit [Ping timeout: 245 seconds]
<dminuoso>
Inside: That's what she said.
<dminuoso>
Inside: Send me pretty pictures if your device ends up in a big ball of flame.
* dminuoso
is always looking for new pictures to decorate his apartment with
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tipyn has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
qba73 has quit [Ping timeout: 260 seconds]
frm has quit [Quit: my znc crashed]
qba73 has joined #ruby
fribmendes has joined #ruby
lytol has joined #ruby
fribmendes is now known as Guest69428
Guest69428 is now known as frm
frm has quit [Changing host]
frm has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has quit [Ping timeout: 264 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hahuang61 has joined #ruby
rgb-one has joined #ruby
<rgb-one>
Hey
AndBobsYourUncle has joined #ruby
alfiemax has joined #ruby
vrih has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
cagomez has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
WebDawg has quit [Ping timeout: 260 seconds]
clemens3 has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
conta has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
\void has joined #ruby
<Inside>
dminuoso: oh man, at my last job someone framed a PCB that I (briefly) turned into an LED/SED
WebDawg has joined #ruby
<dminuoso>
Haha
frm is now known as fribmendes
alfiemax has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Code4Dopamine has quit [Ping timeout: 260 seconds]
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
krawchyk_ has quit [Quit: krawchyk_]
jottr has quit [Ping timeout: 264 seconds]
cagomez has joined #ruby
_whitelogger has joined #ruby
hfp_work has quit [Quit: bye]
hfp_work has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
fribmendes has quit [Remote host closed the connection]
tomphp has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
hfp_work has quit [Quit: bye]
willmichael has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
n0m4d1c has joined #ruby
biberu has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tipyn has quit [Read error: No route to host]
tipyn has joined #ruby
hfp_work has joined #ruby
cagomez has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
jcalla has quit [Quit: Leaving]
hfp_work has quit [Client Quit]
tipyn has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
vaillancourtmax has quit [Ping timeout: 264 seconds]
hfp_work has joined #ruby
cagomez has quit [Ping timeout: 265 seconds]
schneider- has joined #ruby
SeepingN has joined #ruby
Code4Dopamine has joined #ruby
roca has quit [Quit: roca]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rwb has joined #ruby
rgb-one has left #ruby ["Konversation terminated!"]
tomaw has quit [Quit: Quitting]
tomaw has joined #ruby
cagomez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
fribmendes has joined #ruby
fribmendes is now known as Guest28043
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vrih has joined #ruby
Guest28043 has quit [Client Quit]
raynold has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
am55 has joined #ruby
cagomez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
hfp_work has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
hfp_work has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 268 seconds]
schneider- has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider- has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
frm has joined #ruby
frm has joined #ruby
frm has quit [Changing host]
frm is now known as fribmendes
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
cyberRodent has quit [Ping timeout: 256 seconds]
cyberRodent has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
conta has joined #ruby
vrih has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
amatas has quit [Quit: amatas]
milardovich has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
anisha__ has quit [Quit: This computer has gone to sleep]
fribmendes has quit [Quit: huh... i guess my bouncer crashed...]
fribmendes has joined #ruby
fribmendes has quit [Changing host]
fribmendes has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
fribmendes has quit [Client Quit]
fribmendes has joined #ruby
fribmendes has quit [Changing host]
fribmendes has joined #ruby
cyberRodent has quit [Ping timeout: 252 seconds]
am55 has quit [Quit: am55]
claudiuinberlin has joined #ruby
fribmendes has quit [Client Quit]
fribmendes has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
fribmendes has quit [Changing host]
fribmendes has joined #ruby
jottr has joined #ruby
Yzguy has joined #ruby
mtkd has quit []
cyberRodent has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
wojnar has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
RougeR has joined #ruby
jcalla has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Rr4sT has joined #ruby
biberu has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
cyberRodent has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
Emmanuel_Chanel has joined #ruby
cyberRodent has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
raul782 has joined #ruby
cdg has joined #ruby
fribmendes has quit [Quit: huh... i guess my bouncer crashed...]
fribmendes has joined #ruby
fribmendes is now known as Guest54353
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
raul782 has quit [Read error: Connection timed out]
raul782 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
luminous has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
n008f4g_ has quit [Ping timeout: 252 seconds]
Guest54353 has quit [Quit: huh... i guess my bouncer crashed...]
eckhardt_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
SeepingN has joined #ruby
cagomez has joined #ruby
frm has joined #ruby
frm has joined #ruby
frm has quit [Changing host]
frm is now known as fribmendes
dinfuehr has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
dinfuehr has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Quit: WeeChat 2.0.1]
jeffreylevesque has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
n0m4d1c has quit [Remote host closed the connection]
workmad3 has joined #ruby
am55 has joined #ruby
drewmcmillan has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
b0rng0matic has joined #ruby
dan64- has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jenrzzz has joined #ruby
sameerynho has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Mike11 has joined #ruby
mjacob has joined #ruby
am55 has quit [Ping timeout: 265 seconds]
<mjacob>
i'm looking for a ruby tutorial for someone who already has a lot of programming experience (in my case python)
<mjacob>
can you recommend something like that?
workmad3 has quit [Ping timeout: 276 seconds]
Coldblackice has quit [Ping timeout: 268 seconds]
<dminuoso>
mjacob: Eloquent Ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit []
am55 has joined #ruby
memo1 has joined #ruby
baweaver has joined #ruby
baweaver is now known as Guest15092
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 264 seconds]
memo1 has quit [Client Quit]
memo1 has joined #ruby
dan64 has joined #ruby
synthroid has quit []
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
memo1 has quit [Ping timeout: 268 seconds]
RougeR has quit [Ping timeout: 248 seconds]
Yzguy has quit [Quit: Zzz...]
<miah>
i'd go with Well Grounded Rubyist https://www.manning.com/books/the-well-grounded-rubyist because it covers basic ruby stuff and using the stdlib. if you already have programming skills its probably the things you need to know about ruby.
Yzguy has joined #ruby
<mjacob>
both books don't seem to be specifically for people who are already programmers. or am i misinterpreting the descriptions?
<mjacob>
basically i'm looking for something like "dive into python", but for ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah>
WGR is similar to DIP if im reading the description correctly
<miah>
WGR isn't trying to teach you OOP etc, just how to do ruby. if you already know python you can probably skim WGR for just the details you need
<dminuoso>
mjacob: Eloquent Ruby is definitely targeted at people with programming background
<dminuoso>
mjacob: It just has a quick dozen pages of so with some introduction for a bizarre reason that is beyond me, and then catapults into the depths of ruby.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<mjacob>
dminuoso: it's from 2011. would you say it's still up-to-date?
<dminuoso>
mjacob: Yeah.
<dminuoso>
mjacob: Ruby hasn't changed much, the few bits you can pick up along the way.
<miah>
ya the good ruby books are all from that era
willmichael has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
memo1 has joined #ruby
dmitriy_ has joined #ruby
claudiuinberlin has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
spiette has quit [Remote host closed the connection]
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
reber has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
upmime is now known as jrabe
hahuang61 has joined #ruby
conta has quit [Ping timeout: 268 seconds]
memo1 has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 260 seconds]
Mike11 has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
anjen has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
raynold has quit [Quit: Connection closed for inactivity]
RougeR has joined #ruby
RougeR has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
memo1 has joined #ruby
vaillancourtmax has joined #ruby
garyserj has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
rwb has joined #ruby
jcalla has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pilne has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has quit [Read error: Connection reset by peer]
Exagone313 has joined #ruby
vaillancourtmax has joined #ruby
pastorinni has joined #ruby
GinoMan has joined #ruby
<dminuoso>
I wouldn't go that far..
<dminuoso>
But its probably the best ruby book.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GinoMan has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
anjen has joined #ruby
tcopeland_ has quit [Quit: tcopeland_]
vaillancourtmax has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has quit [Ping timeout: 256 seconds]
johnny56 has quit [Ping timeout: 276 seconds]
johnny56_ has joined #ruby
cdg has joined #ruby
memo1 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
mniip has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
babykosh has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<weaksauce>
i don't know, everything about it was great
mniip has joined #ruby
<dminuoso>
weaksauce: Yeah but if thats the best programming book you have read, then you're in for a treat..
IshMael_ has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
<miah>
hah
babykosh has quit [Client Quit]
<weaksauce>
dminuoso what is better in your opinion?
vaillancourtmax has joined #ruby
<weaksauce>
at least in the context of what someone is asking for? a book for competent programmers to get a good lay of idiomatic practices in a language
<weaksauce>
written for experienced programmers
<dminuoso>
weaksauce: Books that dont focus on teaching you language idioms.
mtkd has quit []
<weaksauce>
concept wise there are more useful books sure. none i have read were as nicely written though.
<dminuoso>
weaksauce: The vast majority of language idioms are not "good patterns to train", but rather mishaps and misfeatures in language design that are hacked and worked around with poor abstractions.
havenwood has quit [Quit: ZNC 1.6.5 - http://znc.in]
havenwood has joined #ruby
havenwood has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
IshMael_ has left #ruby ["WeeChat 2.0.1"]
memo1 has quit [Ping timeout: 260 seconds]
netherwolfe has quit [Ping timeout: 256 seconds]
<dminuoso>
miah is likely to have a fancy random suggestion, based on their comment.
<dminuoso>
=p
jottr has quit [Ping timeout: 256 seconds]
<weaksauce>
i'm all ears
<weaksauce>
my statement might have been a bit of hyperbole ;)
<dminuoso>
weaksauce: Im currently digging through "Pierce, Types and Programming Languages" which is a very refreshing book that is broadening my horizon with every paragraph. :)
<pilne>
anyone have any horror stories about the pycall gem for *borrowing* things from the stricter snakey folk? (:
schneider- has quit [Ping timeout: 240 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<apeiros>
memo1: what did you expect? images are binary files. they don't contain text.
<memo1>
i need to find a pattern to construct independet jpeg files, but the ?? sigs dont help me. There is a way to view the file on hex
<memo1>
apeiros: i read a perl file that extract that kind files, looking for this patther "\xFF\xD8" and "\xFF\xD9"
<apeiros>
ok: 1) binary files don't really have lines, 2) except for header data, text manipulation won't work all that well to manipulate jpegs
<apeiros>
and 3) if you read the file as binary (encoding: "binary"), you can do such searches and substitutions. "\xff\xd8" is the same in ruby as in perl (or well, similar enough, not sure about perl's encoding handling)
<apeiros>
(not that I'd recommend it, especially since you don't seem to know what those patterns actually mean)
<memo1>
apeiros: can i share the perl file?, is short, i just try ro reply on ruby. Just for learning
<apeiros>
sure, but it'll be others to look at it. I'm hitting the pillow now.