<baweaver>
Now to add syntax highlighting. If I have the positions of it I can hopefully highlight certain characters to signify a match
thomas_25 has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
xco has joined #ruby
_whitelogger has joined #ruby
gigetoo has joined #ruby
KeyJoo has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
gigetoo has joined #ruby
HyperTables has quit [Remote host closed the connection]
akemhp has joined #ruby
KeyJoo has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
dbugger has joined #ruby
Guest86961 is now known as phaul
InFlames has quit [Ping timeout: 265 seconds]
akemhp has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
jenrzzz has joined #ruby
gigetoo has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
KeyJoo has joined #ruby
KeyJoo has quit [Remote host closed the connection]
yoshie902a has joined #ruby
gix has joined #ruby
KeyJoo has joined #ruby
_whitelogger has joined #ruby
zapata has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
galaxie_ has quit [Ping timeout: 260 seconds]
akemhp has joined #ruby
akemhp_ has joined #ruby
galaxie_ has joined #ruby
top_roupi has joined #ruby
akemhp has quit [Ping timeout: 240 seconds]
top_roupi has quit [Remote host closed the connection]
ravenousmoose has joined #ruby
top_roupi_ has joined #ruby
top_roupi_ has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unreal has joined #ruby
<yoshie902a>
NL3limin4t0r: It took me a while to understand what PolicyEnforcer & PolicyEnforcer::MethodWrapper were doing and how you did it, but I figured most of it out. One unknown is why you have a gate clause for @wrapping, and why you set it to true before you define the methods and why you set it to false after. Can you please let me know. Thank you
gigetoo has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
sh7d has quit [Quit: meh]
ua_ has quit [Ping timeout: 268 seconds]
yoshie902a has left #ruby [#ruby]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ua_ has joined #ruby
bacchist_ has quit [Quit: Lost terminal]
ravenousmoose has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP has joined #ruby
tsujp has joined #ruby
Intelo has joined #ruby
jacksoow has joined #ruby
jacksoow_ has quit [Ping timeout: 246 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sh7d has joined #ruby
jacksoow has quit [Read error: No route to host]
jacksoow has joined #ruby
shirak_ has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
fig-le-deunch has joined #ruby
yann-kaelig has joined #ruby
dionysus69 has joined #ruby
shirak_ has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #ruby
kyrylo has joined #ruby
bsdband48 has joined #ruby
xco has joined #ruby
bsdbandit-01 has quit [Ping timeout: 265 seconds]
kyrylo has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsujp has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
jacksoow has quit [Ping timeout: 250 seconds]
jacksoow has joined #ruby
mouseghost has joined #ruby
<mouseghost>
is it possible to make accept tcp connection manually, somewhat? so i create a server, then set it up to accept 1 connectoin (c = server.accept) and then connect to it and get that connection in c and manipulate it?
kyrylo has joined #ruby
mozzarella has quit [Read error: Connection reset by peer]
mozzarella has joined #ruby
<mouseghost>
ok nvm now it works
<mouseghost>
weird but it doesnt work now and then... idk why
postmodern has quit [Quit: Leaving]
xco has joined #ruby
akemhp_ has quit [Quit: Leaving]
lucasb has joined #ruby
bsdbandit-01 has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
bsdband48 has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby
queip has quit [Ping timeout: 268 seconds]
mozzarella has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
queip has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
AJA4351 has joined #ruby
AJA4351 is now known as AJA4350
AJA4350 has quit [Ping timeout: 268 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr_ has joined #ruby
sandstrom has joined #ruby
hiroaki has joined #ruby
xco has joined #ruby
Inline__ has joined #ruby
dinfuehr_ has quit [Ping timeout: 276 seconds]
kyrylo has joined #ruby
dinfuehr has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Ping timeout: 276 seconds]
ravenousmoose has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
mozzarella has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guardian>
hello, beside sprockets is there anything else maintained in the ruby ecosystem to manipulate javascript sources and sourcemaps?
ricpf has joined #ruby
xGrind has joined #ruby
ricpf has quit [Quit: Leaving]
ricpf has joined #ruby
akemhp has joined #ruby
jenrzzz has joined #ruby
ricpf has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 265 seconds]
rwb has joined #ruby
hiroaki has quit [Ping timeout: 276 seconds]
AJA4350 has joined #ruby
nowhere_man has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Swyper has joined #ruby
naftilos76 has joined #ruby
<havenwood>
guardian: Webpacker is the popular one these days, but it uses Webpack.
<naftilos76>
Hi everyone, i was communcating fine via serial port with my cnc yesterday using gem 'serialport' but today i am having issues. When i use the method 'read' or 'getc' the execution stops there and i have to use CTRL+C to get out of there
<ruby[bot]>
naftilos76: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<naftilos76>
It makes no sences - it was working fine yesterday...
AJA4351 has joined #ruby
<naftilos76>
the serial connection works fine if i use CNCjs
<naftilos76>
so there is something going on with ruby
jenrzzz has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<naftilos76>
the connection SerialPort.new(....) works normally after trying in irb, that is, it returns an object which i can then use to close the connection
<naftilos76>
but when i use method .read it hangs instead of returning an empty string or whatever the buffer contains
<naftilos76>
that's it
<naftilos76>
can anybody take a guess?
<phaul>
there is a lot of magic numbers in this. I wonder if the hw response is dependent on things
<phaul>
you sleep 0.5. why 0.5? why not 3.14? You try the file 10 times? Why 10 times?
<naftilos76>
phaul: well there is also something else: the linux box i am using is in a VM but i seriously doubt if this plays any role
sh7d has quit [Quit: meh]
sh7d has joined #ruby
<naftilos76>
sometimes after using .read method right after using .write method i had to wait for the serial to be send and receive in order for the related buffer to have data after the 0.5 sec
<naftilos76>
so it would work with 3.14 as well :)
jenrzzz has quit [Ping timeout: 265 seconds]
<naftilos76>
this is just a basic code
<phaul>
is 0.5 coming from some hw specification? Why 0.5? How do you know that the hw response is not delayed longer?
<naftilos76>
the problem remains with or without the sleep
<naftilos76>
i did the serial port init with irb and right after that i used sp.read and then it got stuck there
<naftilos76>
so pls forget the sleep command
<naftilos76>
in order for me to do it via irb i do:
<naftilos76>
sp is a valid object (i assume) because i can use the .close method
<naftilos76>
also using .write method does not seem to work because doing it yesterday i could see a led flashing instantly
<naftilos76>
but today there is nothing to see
<phaul>
to me it feels like the PC is not in sync with the HW, maybe the HW is stuck in some state, it might be worth resetting the HW as well
<naftilos76>
sorry, .write works - just tried it and the led flashes - seems that the data is passing through
<naftilos76>
phaul: just did it - no change
<naftilos76>
i get the exact same behavior
<naftilos76>
let me do that again though
<naftilos76>
it is a VM after all
Nicmavr has quit [Read error: Connection reset by peer]
<phaul>
when I said restart the HW I meant the CNC..
shah^ has quit []
Nicmavr has joined #ruby
<naftilos76>
phaul: sorry, just did that as well...
<naftilos76>
and re-did it
<naftilos76>
it is just the .read method that hangs
<naftilos76>
it was working fine yesterday
_dbugger has joined #ruby
<naftilos76>
i used to get an empty string if there was nothing in the buffer and the buffer contents when it was filled with some string...
drincruz has quit [Read error: No route to host]
<naftilos76>
there are no endless loops on my side at least...
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
dbugger has quit [Ping timeout: 245 seconds]
shirak_ has joined #ruby
<naftilos76>
anybody else?
shirak__ has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
shirak_ has quit [Ping timeout: 240 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
<naftilos76>
something weird just happened... as the .read command was stuck i removed the usb cable from the pc and i got a valid return val as i would normally do the terminal just showed => ""
ur5us has joined #ruby
<naftilos76>
and then i did it again and i got the same thing
skx86 has quit [Quit: Connection closed for inactivity]
<guardian>
thanks havenwood
akemhp has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<al2o3-cr>
naftilos76: what happens if you do: `sp.read_timeout = -1` and then call `sp.read`
shirak__ has quit [Ping timeout: 276 seconds]
<naftilos76>
al2o3-cr: YOU fixed it
<naftilos76>
after doing it i got "" when calling .read
<naftilos76>
after i sent a command and then doing a .read i got the string i would normally expect
<naftilos76>
calling again .read method returned an empty string as supposed to
<naftilos76>
that's it
<naftilos76>
al2o3-cr: can you pls explain why this did what it did?
<al2o3-cr>
from the serailport docs: A negative read timeout will return all the available data without waiting.
<al2o3-cr>
in you're case in reading forever
<naftilos76>
well for some reason something was reset
<naftilos76>
would that be a good thing to set at init?
<naftilos76>
just to avoid future issues
<naftilos76>
cause if it happens once chances are it will again
<al2o3-cr>
naftilos76: i see no concern in doing that.
<naftilos76>
al2o3-cr: thank you so much - and you phaul for your time!
<naftilos76>
my regards
<phaul>
my worry would be with non-blocking IO to a HW is that if you are going to lose data
<al2o3-cr>
phaul: in fact you're probaly right there.
<phaul>
it's fine for instance with a mouse pointer that just streams data to the PC, but if something has a two way protocol on which you have to talk to it..
<al2o3-cr>
naftilos76: probably not a good solution then.
InFlames has joined #ruby
<naftilos76>
al2o3-cr: i will give it a try -
<al2o3-cr>
naftilos76: okay.
akemhp has joined #ruby
fanta1 has quit [Quit: fanta1]
AJA4351 has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
xGrind has quit [Quit: Saindo]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch has quit [Read error: Connection reset by peer]
greypack has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
hiroaki has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ruby
loveablelobster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loveablelobster has joined #ruby
akemhp_ has joined #ruby
akem__ has joined #ruby
akemhp has quit [Ping timeout: 276 seconds]
akemhp_ has quit [Ping timeout: 250 seconds]
cd has joined #ruby
akem__ has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
fanta1 has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
GodFather has joined #ruby
loveablelobster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
hutch has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
naftilos76_ has joined #ruby
fanta1 has quit [Quit: fanta1]
naftilos76 has quit [Ping timeout: 240 seconds]
Dirkos has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Swyper has joined #ruby
greypack has joined #ruby
Dirkos has quit [Remote host closed the connection]
naftilos76_ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
naftilos76_ has joined #ruby
naftilos76_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
kyrylo has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
hiroaki has quit [Ping timeout: 246 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp has joined #ruby
tsrt^ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
orbyt_ has joined #ruby
Swyper has joined #ruby
luminousnine has joined #ruby
bsdbandit-01 has quit [Read error: Connection reset by peer]
shirak__ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
kyrylo has joined #ruby
JohanP has quit [Remote host closed the connection]
shirak__ has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
loveablelobster has joined #ruby
loveablelobster has quit [Client Quit]
Technodrome has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
ur5us has joined #ruby
Swyper has quit [Remote host closed the connection]
jacksoow_ has joined #ruby
kyrylo has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 265 seconds]
jacksoow has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
guardian has quit [Excess Flood]
ur5us has joined #ruby
hiroaki has joined #ruby
jacksoow_ has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 240 seconds]
akemhp has quit [Remote host closed the connection]
akemhp has joined #ruby
jacksoow has joined #ruby
ur5us has joined #ruby
guardian has joined #ruby
duderonomy has joined #ruby
s3nd1v0g1us has joined #ruby
akemhp_ has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
bvdw has quit [Quit: bvdw]
bvdw has joined #ruby
skx86 has joined #ruby
bvdw has quit [Client Quit]
bvdw has joined #ruby
bvdw has quit [Remote host closed the connection]
bvdw has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
sandstrom has quit [Quit: My computer has gone to sleep.]
Swyper has joined #ruby
ellcs has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
ellcs has quit [Ping timeout: 245 seconds]
InFlames has quit [Ping timeout: 240 seconds]
infinityfye has joined #ruby
_whitelogger has joined #ruby
hutch has quit [Read error: Connection reset by peer]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
bitwinery has joined #ruby
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
jacksoow has quit [Ping timeout: 245 seconds]
jacksoow_ has joined #ruby
s3nd1v0g1us has joined #ruby
akemhp has joined #ruby
etupat has joined #ruby
akemhp_ has quit [Ping timeout: 252 seconds]
jacksoow_ has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
nowhere_man has joined #ruby
AJA4351 has joined #ruby
Swyper has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
shirak__ has joined #ruby
Swyper has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
infinityfye has quit [Remote host closed the connection]