dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
sekmo has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
imkatim has quit []
ascarter has joined #ruby
SpiffTR has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
uZiel has quit [Ping timeout: 248 seconds]
judofyr has joined #ruby
SpiffTR has quit [Quit: Leaving.]
eightlimbed has quit [Ping timeout: 246 seconds]
vondruch_ has joined #ruby
Ilie[] has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
Coldblackice has joined #ruby
djbkd has quit [Remote host closed the connection]
rohitpaulk has joined #ruby
hahuang65 has joined #ruby
conta has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 260 seconds]
<manveru>
hmm, no idea... it's working here :|
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
Coldblackice has quit [Ping timeout: 255 seconds]
Hien has joined #ruby
_moep_ has left #ruby [#ruby]
conta has joined #ruby
nacsurte has joined #ruby
hxegon has quit [Ping timeout: 268 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
<dminuoso>
ljarvis: The best part of it all, is that often management wants to get data from our database. Now we can just send them the XML database, and they can open it themselves with Microsoft Word.
<dminuoso>
This improves our reaction times, since they can obtain information much faster.
blackwind_123 has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
Hien has quit [Quit: leaving]
Hien has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
TheBrayn has joined #ruby
grymmjack has joined #ruby
Coldblackice has joined #ruby
<judofyr>
oh hai folks
<judofyr>
I'm currently enjoying some ugly C code
ketan has joined #ruby
<judofyr>
fun times
<judofyr>
especially when it doesn't work…
pandaant has joined #ruby
Bhootrk_ has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ketan has quit [Ping timeout: 260 seconds]
Bhootrk_ has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
sekmo has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #ruby
mathys has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
Coldblackice has quit []
Coldblackice has joined #ruby
fxa90__ has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
hanmac has quit [Ping timeout: 246 seconds]
fxa has quit [Ping timeout: 276 seconds]
conta has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
jameser has quit [Read error: Connection reset by peer]
jameser has joined #ruby
tau has joined #ruby
Guest10986 is now known as alamar
rohitpaulk has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
KeyJoo has quit [Ping timeout: 268 seconds]
hanmac has joined #ruby
polysics has joined #ruby
marr has joined #ruby
mikecmpbll has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
pandaant has quit [Remote host closed the connection]
mathys has quit [Quit: Leaving]
dazlak has joined #ruby
<dazlak>
Ma position : Le Mesnil-Amelot, France
mim1k has quit [Ping timeout: 240 seconds]
<zenspider>
how exciting...
nacsurte has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
lxsameer has joined #ruby
jaruga_________ has joined #ruby
conta has joined #ruby
dazlak has quit [Remote host closed the connection]
tvw has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
DoubleMalt has joined #ruby
Batholith has left #ruby ["I must go, my people need me!"]
vali has quit [Quit: vali]
hotpancakes has joined #ruby
patarr has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
mathys has joined #ruby
hahuang65 has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.8]
hahuang65 has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cschneid_ has quit [Ping timeout: 246 seconds]
uZiel has quit [Remote host closed the connection]
nicesignal has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
nicesignal has joined #ruby
vali has joined #ruby
roshanavand has joined #ruby
bkxd has joined #ruby
GodFather has joined #ruby
bkxd_ has joined #ruby
uZiel has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
nacsurte has joined #ruby
hotpancakes has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
mathys has quit [Quit: Leaving]
Serpent7776 has joined #ruby
psychicist__ has joined #ruby
dasher00 has joined #ruby
BackEndCoder has quit [Excess Flood]
dionysus69 has quit [Ping timeout: 240 seconds]
Keltia_ is now known as Keltia
BackEndCoder has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
patarr has joined #ruby
joonty has quit [Quit: Leaving]
ketan has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: roshanavand]
ketan has quit [Ping timeout: 268 seconds]
jameser has quit [Ping timeout: 240 seconds]
pwnd_nsfw` is now known as pwnd_nsfw
mathys has joined #ruby
Fernando-Basso has joined #ruby
aswen has joined #ruby
<Camusensei>
Hell. I'm running into this error: "undefined symbol: _ZN6Gecode16ValBranchOptions3defE" at runtime when trying to use the gem "thor" (dep chain: thor > berkshelf > solve > dep_selector > ffi) and it fails with that error inside ffi.
<zenspider>
sure. whatever works for you. just understand you're going back FIVE YEARS to get this to work. expect other problems
<Camusensei>
what could the alternatives be? surely someone else has been trying to use "solve" before me, no?
<zenspider>
probably many... but I'm not familiar with this lib so I won't be able to help there
<Camusensei>
ok, thank you for trying though :)
aufi has joined #ruby
horst has joined #ruby
<zenspider>
n/p
CrazyEddy has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
nacsurte has joined #ruby
tau has left #ruby [#ruby]
nacsurte has quit [Ping timeout: 255 seconds]
cam27 has quit [Quit: cam27]
lightstalker has quit [Ping timeout: 240 seconds]
lightstalker has joined #ruby
jamesaxl has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
<Camusensei>
zenspider: I finally solved the issue by looking at the versions I was using, and it turned out that berkshelf was two major version late, hence the old gecode dependency :)
<zenspider>
so you got to move forwards, not backwards?
<Camusensei>
yes
Bhootrk_ has quit [Quit: Leaving]
Bhootrk_ has joined #ruby
rgr has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
hahuang65 has joined #ruby
Kristjan55555 has joined #ruby
cschneid_ has joined #ruby
Kristjan55555 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
mim1k has joined #ruby
mathys has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
psychicist__ has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
khaki has joined #ruby
khaki has quit [Client Quit]
khaki has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
ferr has joined #ruby
<zenspider>
yay
bkxd_ has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
bkxd_ has joined #ruby
<Camusensei>
:)
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
jameser has joined #ruby
hotpancakes has joined #ruby
rgr has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
SpiffTR has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
nacsurte has joined #ruby
Mia has joined #ruby
SpiffTR has quit [Quit: Leaving.]
mathys has quit [Quit: Leaving]
SpiffTR has joined #ruby
brent__ has joined #ruby
nacsurte has quit [Ping timeout: 268 seconds]
brent__ has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
ddffg has joined #ruby
snowcrshd has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
aswen has quit [Ping timeout: 240 seconds]
mim1k has quit [Read error: Connection reset by peer]
umaaji has quit [Quit: Leaving...]
uZiel has joined #ruby
ketan has joined #ruby
ketan_ has joined #ruby
ketan has quit [Read error: Connection reset by peer]
t-recx has joined #ruby
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
nowhere_man has joined #ruby
kaneki993 has joined #ruby
bkxd_ has joined #ruby
marlinc has quit [Ping timeout: 240 seconds]
ketan_ has quit [Remote host closed the connection]
ketan has joined #ruby
<kaneki993>
I am facing error on running tests on arby . Arby::Dsl::SyntaxError
howdoi has quit [Quit: Connection closed for inactivity]
<mwlang>
I have a ruby gem I want to update to start supporting Rails 5.x.. it’s currently locked to 4.2 with: s.add_dependency "rails", "~> 4.2" in the gemspec, which I *thought* meant “at least 4.2 or later” so I think I misunderstood the docs there.
<havenwood>
mwlang: It's more pessimistic than that.
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<herwin>
i wouldn't exactly call it ruby's pessimistic operator
SpiffTR has joined #ruby
<herwin>
it's not an operator of ruby
<havenwood>
Ruby's pessimistic version constraint is more apt
<mwlang>
havenwood: thanks for that… re-reading a 3rd time, I realized I need >=, not ~>
jameser has joined #ruby
mistergibson has quit [Ping timeout: 268 seconds]
sepp2k has quit [Read error: Connection reset by peer]
runescape07rsps has joined #ruby
ornerymoose has joined #ruby
rfoust has joined #ruby
runescape07rsps has quit [Remote host closed the connection]
runescape07rsps has joined #ruby
vuoto has quit [Quit: Lost terminal]
<judofyr>
mwlang: you probably want "=> 4.2", "< 6"
<judofyr>
oops: ">= 4.2", "< 6"
<mwlang>
judofyr: that’s not a bad idea…
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<judofyr>
mwlang: the only disadvantage is that version "6.0.0.beta" will match that constraint
vuoto has joined #ruby
<judofyr>
I think
<judofyr>
I recall that there were some strange edge case at least
tgragnato has joined #ruby
polysics has quit [Remote host closed the connection]
<mwlang>
yeah, but probably wise to be explicit about excluding all 6.x until I explicitly test and verify functionality of the gem with any version of 6 myself.
polysics has joined #ruby
<judofyr>
I don't know how deeply you integrate with Rails, but using "<= 5.x" might be even safer
jameser has joined #ruby
<judofyr>
but yeah, multiple constraints are nice
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
djbjd has quit [Quit: djbjd]
DLSteve has joined #ruby
djbjd has joined #ruby
mistergibson has joined #ruby
nanoz has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
ornerymoose_ has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Ping timeout: 260 seconds]
ornerymoose_ is now known as ornerymoose
bkxd has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd_ has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
hotpancakes has joined #ruby
s2013 has joined #ruby
pierrearseufrasi has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
SpiffTR has joined #ruby
SpiffTR has quit [Client Quit]
mostlybadfly has joined #ruby
bmurt_ has joined #ruby
jakew has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
simmaniac has joined #ruby
jakew has quit [Client Quit]
jakew has joined #ruby
jakew has quit [Client Quit]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sysvalve has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
jtperreault has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
aupadhye has quit [Ping timeout: 246 seconds]
that2 has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
that2 has left #ruby [#ruby]
jameser has joined #ruby
mim1k has joined #ruby
ikopico has quit [Ping timeout: 240 seconds]
SpiffTR has joined #ruby
aswen has quit [Quit: WeeChat 1.6]
jameser has quit [Client Quit]
Didac has quit [Ping timeout: 268 seconds]
jakew has joined #ruby
jakew has quit [Client Quit]
jameser has joined #ruby
maikowblue has quit [Quit: .]
polysics has quit []
Didac has joined #ruby
ikopico has joined #ruby
jameser has quit [Client Quit]
horst has quit [Quit: horst]
andikr has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Chef3000 has quit [Quit: Page closed]
Chef3000 has joined #ruby
jameser has joined #ruby
bkxd has joined #ruby
fxa90__ has quit [Quit: Leaving]
hotpancakes has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
agimenez has joined #ruby
patarr has joined #ruby
nobodyzxc has joined #ruby
mwlang has quit [Quit: mwlang]
simmaniac has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
eightlimbed has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
pierrearseufrasi has quit [Quit: This computer has gone to sleep]
rama has joined #ruby
rama has quit [Client Quit]
nacsurte has joined #ruby
rama has joined #ruby
rama is now known as Guest28749
sspreitz has quit [Ping timeout: 258 seconds]
hutch34 has joined #ruby
SpiffTR has quit [Quit: Leaving.]
ResidentBiscuit has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
pierrearseufrasi has joined #ruby
Guest28749 has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
jameser has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
sspreitz has joined #ruby
jameser has quit [Client Quit]
snowcrshd has joined #ruby
redondos has joined #ruby
xzhao has joined #ruby
patarr has quit [Ping timeout: 276 seconds]
chouhoul_ has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
hotpancakes has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
theunraveler has joined #ruby
jameser has joined #ruby
SpiffTR has joined #ruby
jameser has quit [Client Quit]
TomyWork has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
pierrearseufrasi has quit [Quit: This computer has gone to sleep]
pierrearseufrasi has joined #ruby
dionysus69 has joined #ruby
pierrearseufrasi has quit [Client Quit]
hahuang65 has joined #ruby
uZiel has quit [Remote host closed the connection]
ahrs has joined #ruby
cadillac__ has joined #ruby
patarr has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
troys has joined #ruby
ResidentBiscuit has joined #ruby
cdg has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
cadillac__ has quit [Read error: Connection reset by peer]
patarr has joined #ruby
pierrearseufrasi has joined #ruby
mim1k has joined #ruby
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby
runescape07rsps has quit [Quit: Leaving]
psychicist__ has quit [Ping timeout: 260 seconds]
pierrearseufrasi has quit [Ping timeout: 240 seconds]
n0vacane has joined #ruby
hotpancakes has joined #ruby
aufi has quit [Quit: Leaving]
boombox_ has joined #ruby
uZiel has joined #ruby
jackjackdripper has joined #ruby
judofyr has quit [Ping timeout: 255 seconds]
rkazak has joined #ruby
TomyLobo has joined #ruby
bkxd_ has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 255 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
boombox_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 246 seconds]
Didac has quit [Changing host]
Didac has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
SpiffTR has quit [Quit: Leaving.]
thatsnotjack has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
mim1k has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
nacsurte has joined #ruby
eputnam has joined #ruby
uZiel has quit [Remote host closed the connection]
jaruga_________ has quit [Quit: jaruga_________]
uZiel has joined #ruby
brent__ has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
troys is now known as troys_
<cttttt>
Just sort of filling in some gaps in Ruby from a long time ago. I'm trying to use `system()` to run an external command, but want to (1) pass in an array of arguments...bypassing the shell and (2) hide all of the output. Based on the documentation, there are options for redirection, but how do I redirect to the bit-bucket in a platform neutral way?
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
chouhoul_ has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 1.7.1]
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
<havenwood>
cttttt: those docs are more than a bit tough to parse
charliesome has joined #ruby
hotpancakes has joined #ruby
roamingdog has joined #ruby
hxegon has joined #ruby
isene has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
cdg__ has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
<cttttt>
havenwood: Yeah...I, for some reason, thought that this literally closed the file descriptor. If it did, the process would be hitting some issues trying to write to it. Ruby must be doing some sort of magic.
cdg has quit [Ping timeout: 276 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
cam27 has joined #ruby
mim1k has joined #ruby
amclain has joined #ruby
djbjd has quit [Quit: djbjd]
cdg_ has quit [Ping timeout: 268 seconds]
cpruitt has quit [Quit: cpruitt]
skweek has quit [Ping timeout: 240 seconds]
zapata has quit [Read error: Connection reset by peer]
Serpent7776 has quit [Quit: Leaving]
snowcrshd has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
troys_ is now known as troys
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
roamingdog has joined #ruby
gusrub has joined #ruby
bmurt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ilie[] has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
roamingdog has quit [Remote host closed the connection]
judofyr has joined #ruby
ResidentBiscuit has joined #ruby
djbjd has joined #ruby
djbjd has quit [Client Quit]
roamingdog has joined #ruby
Fysicus has joined #ruby
amclain has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
mim1k has quit [Read error: Connection reset by peer]
ddffg has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
meshsmith has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
hotpancakes has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
kies has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby
pierrearseufrasi has joined #ruby
cdg__ has quit [Remote host closed the connection]
pierrearseufrasi has quit [Client Quit]
ramakanta has joined #ruby
roamingdog has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
ivanskie has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
<ivanskie>
hi
<ivanskie>
has anyone worked with modbus?
chouhoulis has joined #ruby
<ivanskie>
i'm reading a 64 byte string, this is what i get: [17761, 29807, 28192, 17263, 29296, 28530, 24948, 26991, 28160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17761]
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
synthroid has quit []
bkxd has joined #ruby
<ivanskie>
apaprently there are two ascii characters in each of those
crankharder has joined #ruby
roamingdog has joined #ruby
snowcrshd has joined #ruby
s2013 has joined #ruby
<ivanskie>
32 registers containing up to 64 characters
bkxd has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Quit: Leaving.]
hotpancakes has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Silthias1 has left #ruby [#ruby]
gusrub has quit [Remote host closed the connection]
roamingdog has quit []
ResidentBiscuit has joined #ruby
<ivanskie>
okay so i believe the above should say Eeaton
clemens35 has joined #ruby
hotpancakes has joined #ruby
hahuang65 has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
<cout>
hi
<cout>
sorry wrong window
s2013 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
agimenez has joined #ruby
ketan has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
troys_ is now known as troys
<ivanskie>
https://repl.it/Izfa/4 now i get "Eaton Corporation\x00Ea" so still have a 0 there, and array ends with first char pair so need to skip that...
<ruby[bot]>
havenwood: # => "Eaton Corporation\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x ...check link for more (https://eval.in/821555)
<havenwood>
n is 16-bit unsigned, network (big-endian) byte order
<ivanskie>
right and i think thats exactly what i have here with a string data type in modbus
<havenwood>
roger that
Cohedrin_ has joined #ruby
<ivanskie>
wow u sir can perform miracles
<ivanskie>
i shall subscribe to the power of Ruby
sanguisdex has joined #ruby
<ivanskie>
:P
<ivanskie>
I'm assuming whomever added the .pack to ruby was at some point dealing with a similar problem
gusrub has joined #ruby
<sanguisdex>
I need to debug a gem thats my lib depends on. is there a way to get bundler or my gemfile to tell ruby to look at a gem in certain location for a gem ever time I run the parrent lib with out running bundle install between every test?
<ivanskie>
when you enter 16409 and 39322 into that. u get 2.4 which is what i'm after lol. but how do i do that in ruby without that weird calculation
cagmz has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ketan has joined #ruby
mim1k has joined #ruby
jaruga_________ has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
snowcrshd has quit []
ketan has quit [Ping timeout: 258 seconds]
hotpancakes has quit [Remote host closed the connection]
that2 has joined #ruby
that2 has left #ruby [#ruby]
ramakanta has quit [Quit: This computer has gone to sleep]
mim1k has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
kitikonti has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gmcintire_ is now known as gmci
gmci is now known as gmcintire
zacts has quit [Ping timeout: 276 seconds]
<ivanskie>
gah
<ivanskie>
i got to convert [16409, 39322] to a binary string. but i think i'm doing it wrong
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
Cohedrin_ has joined #ruby
nobodyzxc has quit [Quit: leaving]
skweek has quit [Ping timeout: 246 seconds]
rory has joined #ruby
<ivanskie>
whats odd is that with uints it just spits out an integer.
<ivanskie>
[0, 30] is really just the 30.
<runescape07rsps>
dude im literally here just to get a job at shopify
<runescape07rsps>
im working out too so ill be hot when im ready
tvw has joined #ruby
Guest38987 has joined #ruby
<apeiros>
ivanskie: no, those are two different interpretations
<apeiros>
i.e. one of those two interpretations is wrong
hotpancakes has quit []
agimenez has quit [Quit: Leaving]
<apeiros>
either you're reading two "regions", getting [0,30], or you're reading one (twice as long) region, and getting [30]
<ivanskie>
im just going by the register map and manual of the device
rory is now known as guest
<apeiros>
and what does it say about the size of the unsigned ints?
<ivanskie>
it says, for uid 19, Number of Phases is at register 8032. its a UINT, 2 bytes long. and manual says that if its 2 bytes long, devide by 2 and you'll get number of regs.
bmurt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
and what do you use to unpack those 2 bytes?
<ivanskie>
no idea.
<ivanskie>
i've never used or even known about pack and unpack before today
<apeiros>
so… you've literally learnt nothing, zilch, nada the last ~2h?
<ivanskie>
'UINT – An unsigned integer. Consult the Size parameter to find the integer's size for a given entry (it is a multiple of two so that entries are register-aligned)."
<apeiros>
that's rather sad honestly.
<ivanskie>
apeiros i'm trying to grasp the pack thing and i haven't yet.
<apeiros>
it interprets bytes and converts them to ruby's datatypes for it.
zacts has joined #ruby
<ivanskie>
because i don't quite understand the concept of words in hex
<apeiros>
n* says "read 2 bytes each and convert each of those 2 byte packs into an unsigned integer"
<apeiros>
there is no hex.
<apeiros>
hex is a way to represent *numbers*
<ivanskie>
ya
<ivanskie>
soso n* first converts the hex into binery then reads 2 bytes at a time?
<ivanskie>
binary
<apeiros>
a byte is one of 256 possible values, 2 bytes is one of 65536 values, 4 bytes one of 4.3 billion values. what one of those values *is* depends on how you want to interpret it
<apeiros>
seriously, if you say hex one more time I'm going to kick you :-p
Ilie[] has quit []
<ivanskie>
a byte is 4 bits isnt it? (don't kill me, im trying to remember)
<apeiros>
no, n does not convert a *hex*. it converts 2 *bytes*
<apeiros>
ouch. wikipedia and google failed you hard there…
<ivanskie>
1 byte's 8 bits
<apeiros>
in almost all current architectures, a byte is 8 bit
<ivanskie>
yes my memory failed.
<apeiros>
and "1 byte = 256 values" gives that away too… 2**8 = 256
<ivanskie>
what are you talking about
<apeiros>
what's a bit?
<ivanskie>
oh yah
<ivanskie>
duh
<ivanskie>
nevermind
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
but granted, log2 without a calculator and without knowing the numbers by heart is hard.
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
<ivanskie>
nope i still dont understand what you are saying about 1 byte is 256 values
<ivanskie>
there's 8 bits
<ivanskie>
don't mind me.
<ivanskie>
got it.
<ivanskie>
its not 256 values. its that it could be anything 0 to 256
<ivanskie>
sorry in my head i was keeping track of the topics. i apologize lol
<ivanskie>
yes
<ivanskie>
so why is read_input_registers do .unpack('n*')
judofyr has quit [Remote host closed the connection]
<ivanskie>
im assuming that it received it in hex
* apeiros
smacks ivanskie again
judofyr has joined #ruby
<apeiros>
it did not receive hex. it received binary data.
<ivanskie>
cause if we do .pack('n*') again we get a string of hex stuff /x00 etc
<ivanskie>
ah ok
<apeiros>
no, you don't get hex, you get binary data.
<ivanskie>
why is it represented in hex
<apeiros>
seriously, stop with that fucken hex. you're wrong. it's wrong. stop being wrong.
<nacsurte>
anyone used prawnPDF before? i'm trying to output unicode characters - i loaded the OpenSans TTF font, wrote it out with render_file, but it's still showing up as blank glyphs
<apeiros>
because there's no character in ascii to represent a byte consisting of "00000000"
<apeiros>
hence ruby uses a hex escape sequence, as that's rather readable.
<elomatreb>
Some machines treat the first bit in a byte as the most significant, some as the least significat. Basically some read the number from left to right, some from right to left
<Papierkorb>
Make sure that you understand it's really byte-wise, NOT bit-wise ^
<ivanskie>
that explains it really well , thanks
<apeiros>
base transformation is sum of: digit * base**position
<elomatreb>
Papierkorb: Oh fak
<elomatreb>
Right
<apeiros>
assuming you count the position from right and start with 0 like any good programmer
<ivanskie>
or how binary works
<apeiros>
Papierkorb: there are nibble endians
<apeiros>
haven't met one in the wild yet, though
<Papierkorb>
apeiros: Thruth be told I've never encountered one, but there ought to be Middle-Endian too
<apeiros>
nibble = 4 bits, half of a byte. for those who'd have to google :-p
<ivanskie>
man this was quite a tangent
<elomatreb>
To understand binary, you first have to understand the universe
<ivanskie>
its always 42
<apeiros>
actually, to understand an approximation of the universe, you have to understand binary ;-p
<Papierkorb>
"There are 10 types of people, ..."
<ivanskie>
lol
<apeiros>
DEAD people can read hex.
<elomatreb>
If you really want weird stuff understand base64
<ivanskie>
i wrote some code to download register maps from 24 devices. each of the devices we have here breaks up a register map per unit id. so like 5 register maps per device. so i just combined it into one.
<ivanskie>
did that to send register map to our DCIM vendor to create a device definitioin file into the Schneider DataCenter Expert tool.
<apeiros>
I have no idea what a "register map" is supposed to be
<ivanskie>
modbus
<apeiros>
nope. that did not actually increase my knowledge.
<ivanskie>
register map is basically a csv (usually) file that defines each register for consumption
<ivanskie>
was in the middle of replacing read_holding_maps with read input. cuz apparently in this device holding maps is only implemented for backwards compatibility, and really its stored in input registers.
<ivanskie>
"The PDU/RPP/RPM registers are read using Modbus Function Codes (FC). For most PDU/RPP/RPM registers, FC 04 is used. For alarms, FC 02 is used. The PDU/RPP/RPM supports the following hex function codes:"
<ivanskie>
anyway
<ivanskie>
enough of hex
ldnunes has quit [Quit: Leaving]
* apeiros
smacks ivanskie again
<ivanskie>
do u have some coffe?
<ivanskie>
i need coffee
<apeiros>
replace "hex" with "binary data" and you'd be almost always correct.
<elomatreb>
All this violence
<apeiros>
I'm not allowed to drink coffee.
<ivanskie>
lol
<apeiros>
don't like it anyway, so no big loss, though.
<ivanskie>
hex
* ivanskie
changes name to hexinskie
runescape07rsps has quit [Ping timeout: 240 seconds]
<havenwood>
Chef3000: You're welcome. You'll then need to use --with-curl-lib and point to the libcurl you installed, something like: gem install curb -- --with-curl-lib=C:...
<havenwood>
Chef3000: Windows 10 has a nice linux subsystem that makes these issues just go away since you can use bash directly.
<havenwood>
Chef3000: Check out the WSL (Windows Subsystem for Linux) if you ever update to Win 10.