havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3; 2.2.6; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
montanonic has quit [Ping timeout: 256 seconds]
yeticry has quit [Read error: Connection reset by peer]
gusrub has quit [Ping timeout: 268 seconds]
bturker has quit [Ping timeout: 256 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 260 seconds]
Derderderd has quit [Ping timeout: 260 seconds]
kareelee has joined #ruby
gry has joined #ruby
s2013 has joined #ruby
gusrub has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
railssmith has joined #ruby
yeticry has joined #ruby
plujon has joined #ruby
Madplatypus has joined #ruby
kareelee has quit [Ping timeout: 245 seconds]
sneakers has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
nettoweb has quit [Client Quit]
ta_ has joined #ruby
<adam12> Rich_Morin: That's the one I meant - stdlib Logger.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
kareelee has joined #ruby
aryaching has joined #ruby
<Radar> I've got an issue here where a delayed_job worker is killed during a deploy. The worker is running a really long running job (think 10s of minutes) and it's important that it doesn't get killed. Similarly, it's important that deploys are not blocked because one of these workers is running.
<Radar> I was thinking about moving the working part out to a separate script that is invoked via a Rake task, which is invoked via Cron.
<Radar> That way then it's outside of the delayed job queue entirely.
<mikecmpbll> Radar : does your deploy restart DJ? and how?
<Radar> Is that a sensible thing to do?
<Radar> mikecmpbll: yes
aryaching_ has quit [Ping timeout: 246 seconds]
<Radar> mikecmpbll: not sure how... checking
<mikecmpbll> can't say i'm massively familiar with restarting dj even though i use it (😅) but it feels like it shouldn't affect any running jobs
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Radar> It absolutely does affect it.
<Radar> The jobs are given X seconds to finish running and if they don't finish in that time then they're forcefully terminated.
kareelee has quit [Ping timeout: 258 seconds]
ta_ has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 250 seconds]
<mikecmpbll> oic. hmm
bturker has joined #ruby
s2013 has joined #ruby
agent_white has quit [Quit: backinnabit]
Derderderd has joined #ruby
dnicole has joined #ruby
kareelee has joined #ruby
MrSamuel has joined #ruby
<centrx> Radar: If you can be absolutely sure that the spun-out job will finish, and you don't need to monitor it, seems like a not too bad solution
<mikecmpbll> Radar : what happens to the job after the restart anyways, does it remain in the table?
<centrx> Could also split the long job into parts
<Radar> mikecmpbll: job does not restart because it has a status called "processing"
<mikecmpbll> ah, so it just gets stuck there.
<Radar> jobs that are tagged as "processing" do not have their process resumed
bturker has quit [Ping timeout: 256 seconds]
enterprisey has joined #ruby
<mikecmpbll> maybe you can catch whatever signal gets sent to the process and do something graceful :/
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> like "wait two hours for the job to finish"? :
sp4rrow_ has quit [Quit: The Internet needs a break and I need a cookie]
<Radar> :P
blackmesa has quit [Ping timeout: 265 seconds]
<Radar> centrx: Yeah splitting it into multiple parts seems like another sensible option too.
<mikecmpbll> :D idk. maybe stop the job properly and reschedule it
kareelee has quit [Ping timeout: 260 seconds]
x77686d has quit [Quit: x77686d]
<c-c> Radar: so is this "worker" a process or a thread?
<Radar> c-c: process
<c-c> Radar: so, did you fork it someplace or?
<Radar> c-c: It's a delayed_job worker
riskish has joined #ruby
<c-c> thats from which lib/gem?
<Radar> delayed_job.
<Radar> It's ran with `bundle exec rake jobs:work`
<c-c> well I've just been rehashing process control on linux with ruby
<c-c> so this is interesting
dikaio has quit [Quit: Lost terminal]
<c-c> but, this gem is not familiar to me, plus its rails
Dobler has joined #ruby
<c-c> generally to ensure your process runs until it finishes, you fork, then detach from parent process: fork do; Process.detach; end
kareelee has joined #ruby
<c-c> Radar: did you look at job parameters
<Radar> c-c: "job parameters"?
<c-c> Delayed:Worker.max_run_time
<Radar> I think that setting is used to terminate a job if it runs for too long.
<c-c> github for delayed_job says default is 4 hours, but perhaps you set it someplace
<mikecmpbll> yeah, that's an option for dj to kill long running jobs itself, afaik
alexar has quit []
kareelee has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
<centrx> Radar: You could also just anticipate deploys and prevent the job from running before deploys
ta_ has joined #ruby
<centrx> s/running/starting
<Radar> centrx: not how this org works
<Radar> centrx: customer service team are doing the data uploads for this job and they don't tell us when they're running it
<Radar> similarly, we don't give them warning we're doing a deploy
<centrx> sounds like one big happy family
<Radar> It's hard coordinating over a hundred people to play nice on a monolith :P
ta_ has quit [Read error: Connection reset by peer]
davidt_ has joined #ruby
ta_ has joined #ruby
montanonic has joined #ruby
kareelee has joined #ruby
davidt has quit [Ping timeout: 245 seconds]
kareelee has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
Madper|AFK has quit [Remote host closed the connection]
gregor3005 has joined #ruby
agent_white has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
marr has quit [Ping timeout: 250 seconds]
gloscombe has quit [Quit: gloscombe]
beilabs_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
leitz has joined #ruby
<leitz> If I do a short test case on Linux and run it under an old Ruby, it shows me the tests. If I do the same thing under a new Ruby on Windows, it shows nothing. Is that Windows, new Ruby, or operator error?
<leitz> I'm in chapter 1 of Greg Brown's Ruby Best Practices, page 17.
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
kareelee has joined #ruby
<zenspider> leitz: probably windows. how are you running?
arescorpio has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<leitz> zenspider, just "ruby tc_MyClass.rb"
<leitz> I think I duplicated the process on my CentOS box at home, but I'm old and the memory fades...
<leitz> At home I get the dots and Finished, number of tests, etc.
<leitz> On Winderz I get zip.
kareelee has quit [Ping timeout: 265 seconds]
<leitz> Which is kind of a bummer since the entire first chapter is on testing. :(
plujon has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
<leitz> Okay, nappy time for me. I've had some Ruby fun this evening.
leitz has quit [Quit: Nappy time]
<zenspider> hrm... you SHOULD get output that way. As long as it really is the same code. I'd guess that you're not requiring "minitest/autorun" (or equivalent) on the windows side
gusrub has quit [Remote host closed the connection]
<zenspider> MOST windows problems come from people double clicking a file and the terminal disappears as soon as it is done running. so it DOES run, but you don't see anything if it is really fast
<zenspider> but in your case...
<zenspider> try running via rubymine or other editor w/ test integration?
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
kareelee has joined #ruby
SteenJobs has joined #ruby
millerti has joined #ruby
gusrub has joined #ruby
h1fuelce_ has joined #ruby
kareelee has quit [Ping timeout: 248 seconds]
edwardly has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
x77686d has joined #ruby
chopin has joined #ruby
kareelee has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax is now known as saneax-_-|AFK
jenrzzz has quit [Ping timeout: 245 seconds]
chopin_ has quit [Ping timeout: 260 seconds]
blackbom1 has joined #ruby
kareelee has quit [Ping timeout: 246 seconds]
MrSamuel has quit [Quit: Leaving]
bmurt has joined #ruby
blackwind_123 has quit [Ping timeout: 258 seconds]
blackbombay has quit [Ping timeout: 260 seconds]
sdothum has quit [Ping timeout: 260 seconds]
davidt has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
davidt_ has quit [Ping timeout: 245 seconds]
bmurt has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nankyokusei has joined #ruby
sdothum has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
weaksauce has joined #ruby
aryaching has joined #ruby
ta__ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
kareelee has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
splud has quit [Quit: splud]
jhack has joined #ruby
kareelee has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jhack has quit [Client Quit]
astrobunny has joined #ruby
aryaching has joined #ruby
reverberations has joined #ruby
roshanavand has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
chouhoulis has joined #ruby
shinnya has joined #ruby
astrobunny has quit [Ping timeout: 258 seconds]
astrobunny has joined #ruby
Anonymoose2 has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
kareelee has joined #ruby
jhack has quit [Quit: jhack]
reverberations has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 250 seconds]
ixti has quit [Quit: WeeChat 1.6]
Anonymoose2 has quit [Ping timeout: 248 seconds]
h1fuelcell has joined #ruby
kareelee has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 246 seconds]
jeyraof has joined #ruby
ResidentBiscuit has joined #ruby
astrobunny has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
GodFather has joined #ruby
cdg_ has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
h1fuelcell has joined #ruby
sdwrage has quit [Quit: Leaving]
jhack has joined #ruby
kareelee has joined #ruby
jhack has quit [Client Quit]
jhack has joined #ruby
kareelee has quit [Ping timeout: 244 seconds]
reverberations has joined #ruby
h1fuelcell has quit [Ping timeout: 246 seconds]
tau has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
kareelee has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
kareelee has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
kareelee_ has joined #ruby
adavia has quit [Ping timeout: 245 seconds]
<bonhoeffer> i'm trying to understand "9\x9C\xBB\xA8J\x1F\xBC\xE21\xEE\x066" -- this is just a String -- but as bytes -- but what is that 9 at the start
f4 has joined #ruby
ghr has joined #ruby
<bonhoeffer> a[0] => 9, a[1] => \x9c
<centrx> Looks like it might be a 9
<bonhoeffer> or maybe 0x09
<bonhoeffer> ?
<bonhoeffer> or \x09 in that syntax
gusrub has quit [Remote host closed the connection]
<bonhoeffer> ruby just doesn't bore you with extra digits
kareelee_ has quit [Ping timeout: 250 seconds]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<bonhoeffer> what i don't understand is why a[1] => "\x9C", why not "\"
gusrub has joined #ruby
davidt_ has joined #ruby
<bonhoeffer> that ain't no normal string
enterprisey has joined #ruby
brent__ has joined #ruby
davidt has quit [Ping timeout: 258 seconds]
jhack has quit [Quit: jhack]
jhack has joined #ruby
<elomatreb> >> "\x41" == "A"
<ruby[bot]> elomatreb: # => true (https://eval.in/693477)
<baweaver> looks normal to me
<bonhoeffer> for example a[0].hex => 0
<baweaver> >> "9\x9C\xBB\xA8J\x1F\xBC\xE21\xEE\x066".is_a?(String)
<ruby[bot]> baweaver: # => true (https://eval.in/693478)
h1fuelcell has joined #ruby
<elomatreb> 9C just isn't an ASCII character
Rich_Morin has quit [Quit: Rich_Morin]
bturker has joined #ruby
<bonhoeffer> yes -- so a[1].is_a?(String) is true
<bonhoeffer> but if a[10] = "\xDC" <-- one character
<bonhoeffer> which is 220, right?
<bonhoeffer> so how is \xDC one element (char) of the string?
jhack has quit [Ping timeout: 245 seconds]
<elomatreb> IIRC Ruby String are sequences of bytes (C-like) not codepoints
x77686d has quit [Quit: x77686d]
tau has joined #ruby
jtdoncas_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
csk has joined #ruby
<bonhoeffer> but . . . "\x9c" is then != "\x9c" which is odd
<bonhoeffer> where the second is a "normal" string and the first is some hex encoding
ResidentBiscuit has quit []
kareelee has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
<elomatreb> >> "\x9c" == "\x9c"
<ruby[bot]> elomatreb: # => true (https://eval.in/693479)
<elomatreb> bonhoeffer: I'm afraid I don't flo
<elomatreb> *follow
<bonhoeffer> nope -- not on my machine
<bonhoeffer> one sec
<bonhoeffer> a = SecureRandom.random_bytes(1); a => "\xD9", a == "\xD9" => false
<bonhoeffer> both are Strings; a.is_a?(String) => True
<elomatreb> Wow, you're right
<bonhoeffer> well, i'm sure i'm wrong . . . I'm missing something
<elomatreb> Ah, found it
<al2o3-cr> bonhoeffer: probably one encoding is binary theo the utf-8
<elomatreb> The SecureRandom string has a different encoding
kareelee has quit [Ping timeout: 258 seconds]
<elomatreb> Ruby strings are only equal if the encoding matches
<bonhoeffer> got it -- so is there a function to find a string's encoding?
<elomatreb> .encoding
<bonhoeffer> elomatreb: got it
ryan_notabot has quit [Ping timeout: 248 seconds]
<bonhoeffer> ASCII-8BIT vs UTF-8
<al2o3-cr> :)
<bonhoeffer> got it now
<elomatreb> Welcome to the magical world of String encodings
ace_33 has joined #ruby
Anonymoose2 has joined #ruby
pilne has quit [Quit: Quitting!]
kareelee has joined #ruby
reverberations has quit [Ping timeout: 260 seconds]
libastral has quit [Ping timeout: 244 seconds]
libastral has joined #ruby
<elomatreb> >> require "securerandom"; a = SecureRandom.random_bytes(0); a == ""
<ruby[bot]> elomatreb: # => true (https://eval.in/693480)
kareelee has quit [Ping timeout: 246 seconds]
<elomatreb> Welp, exceptions to every rule :shrug:
JoshS has joined #ruby
<centrx> random string of length 0 is not random!?
sp4rrow has joined #ruby
<elomatreb> The encodings of the strings are different (ASCII-8BIT vs UTF-8), yet the equal
kareelee has joined #ruby
jaguarmagenta has joined #ruby
dn` has quit [Read error: Connection reset by peer]
dn` has joined #ruby
kareelee has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
railssmith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 1.6]
harai has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
Anonymoose2 has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
reverberations has quit [Max SendQ exceeded]
dnicole has quit [Ping timeout: 245 seconds]
kareelee has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bomb has joined #ruby
bomb is now known as Guest32727
agent_white has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
Guest32727 has left #ruby [#ruby]
kareelee has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
JesseH has quit [Ping timeout: 258 seconds]
dviola has quit [Quit: WeeChat 1.6]
agent_white has joined #ruby
Rodya_ has joined #ruby
csk has quit [Quit: ZZZzzz…]
kareelee has joined #ruby
Definity2 has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
harai has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
OTORelic1 has quit [Ping timeout: 246 seconds]
kareelee has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
beilabs has joined #ruby
ryan_notabot has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
OTORelic1 has joined #ruby
hanmac has joined #ruby
blackbom1 has quit [Ping timeout: 248 seconds]
CloCkWeRX has quit [Ping timeout: 248 seconds]
nullfxn has quit [Quit: leaving]
nullfxn has joined #ruby
moei has joined #ruby
OTORelic1 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
gix has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
h1fuelcell has joined #ruby
gix has joined #ruby
kareelee has joined #ruby
dikaio has joined #ruby
dikaio has quit [Client Quit]
dikaio has joined #ruby
gregor3005 has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
jeffaustin81 has joined #ruby
kareelee has quit [Ping timeout: 260 seconds]
brendan- has joined #ruby
bonhoeffer has quit [Ping timeout: 260 seconds]
jeffaustin81 has quit [Max SendQ exceeded]
blackbom1 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
railssmith has joined #ruby
kareelee has joined #ruby
centrx has quit []
_sfiguser has quit [Remote host closed the connection]
bmurt has joined #ruby
montanonic has quit [Ping timeout: 258 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kareelee has quit [Ping timeout: 260 seconds]
Ishido has quit [Ping timeout: 248 seconds]
h1fuelcell has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
kareelee has joined #ruby
cdg has joined #ruby
arescorpio has quit [Quit: Leaving.]
dnicole has joined #ruby
kareelee has quit [Ping timeout: 256 seconds]
cdg has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
cdg has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 245 seconds]
railssmith has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
bturker has joined #ruby
anthony has joined #ruby
<tau> hi. is there some alternative to rsense?
<tau> that package for ruby completion.
kareelee has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
anthony has quit [Client Quit]
jtdoncas_ has joined #ruby
jtdoncas has quit [Ping timeout: 245 seconds]
h1fuelcell has joined #ruby
enterprisey has quit [Remote host closed the connection]
kareelee has quit [Ping timeout: 246 seconds]
jtdoncas_ has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
sdwrage has joined #ruby
uxp_ has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 265 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jtdoncas has joined #ruby
kareelee has joined #ruby
gix has joined #ruby
kareelee_ has joined #ruby
kareelee has quit [Read error: Connection reset by peer]
eggshke has joined #ruby
djbkd has quit [Quit: My people need me...]
x77686d has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 250 seconds]
jtdoncas_ has joined #ruby
JoshS has joined #ruby
montanonic has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ruby
x77686d has quit [Quit: x77686d]
skweek has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
kareelee has joined #ruby
emptyflask has joined #ruby
djbkd has joined #ruby
railssmith has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kareelee_ has quit [Ping timeout: 268 seconds]
conta has joined #ruby
conta has quit [Ping timeout: 250 seconds]
h1fuelcell has joined #ruby
Dobler has quit [Ping timeout: 265 seconds]
gnufied has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 250 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
jhack has joined #ruby
minimalism has joined #ruby
conta has joined #ruby
eggshke has quit []
benlieb has joined #ruby
spk has quit [Ping timeout: 248 seconds]
jhack has quit [Ping timeout: 246 seconds]
herbmillerjr has quit [Remote host closed the connection]
kareelee has quit []
nankyokusei has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
saneax-_-|AFK is now known as saneax
alan_w has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
nankyokusei has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
h1fuelcell has quit [Remote host closed the connection]
cdg_ has joined #ruby
Definity2 has quit [Ping timeout: 265 seconds]
ace_33 has quit [Ping timeout: 250 seconds]
cdg has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
Moosashi has joined #ruby
Moosashi has quit [Client Quit]
h1fuelce_ has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
h1fuelce_ has joined #ruby
h1fuelcell has quit [Ping timeout: 265 seconds]
xberg has joined #ruby
LoneHermit has quit [Remote host closed the connection]
enterprisey has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
spk has joined #ruby
dnicole has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Dimik has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
conta has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
h1fuelce_ has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
postmodern has joined #ruby
nighthwk1 has joined #ruby
emptyflask has quit [Ping timeout: 258 seconds]
tmtwd has joined #ruby
tmtwd has quit [Client Quit]
jshjsh has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
JoshS has quit [Disconnected by services]
nighthwk1 has quit [Read error: Connection reset by peer]
tau has quit [Remote host closed the connection]
emptyflask has joined #ruby
Emmanuel_Chanel has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Emmanuel_Chanel_ has joined #ruby
emptyflask has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
enterprisey has quit [Remote host closed the connection]
bturker has joined #ruby
h1fuelce_ has joined #ruby
muelleme has joined #ruby
Emmanuel_Chanel_ has quit [Quit: Leaving]
h1fuelcell has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
shinnya has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
bocaneri has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
gusrub has quit []
bturker has joined #ruby
howdoi has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
emptyflask has joined #ruby
tom8877 has joined #ruby
h1fuelcell has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
awc has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
awc has quit [Quit: Mutter: www.mutterirc.com]
CloCkWeRX has quit [Quit: Leaving.]
Ishido has quit [Remote host closed the connection]
jgnagy has quit [Ping timeout: 244 seconds]
songliangliang has joined #ruby
* songliangliang 晕倒
fenre has joined #ruby
firstdayonthejob has joined #ruby
dionysus69 has joined #ruby
hinbody has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
conta has joined #ruby
aufi has joined #ruby
foooobear has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
Ishido has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
djbkd has quit [Remote host closed the connection]
x77686d has joined #ruby
djbkd has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
akar has joined #ruby
Madplatypus has joined #ruby
Emmanuel_Chanel has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
skydiver has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
h1fuelcell has joined #ruby
x77686d has quit [Quit: x77686d]
colegatron_origi has quit [Ping timeout: 268 seconds]
colegatron has joined #ruby
nankyokusei has joined #ruby
last_staff has joined #ruby
andrzeju_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
arquebus has joined #ruby
arquebus has quit [Client Quit]
arquebus has joined #ruby
lenwood has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
arquebus has quit [Quit: Leaving]
johnny56 has quit [Ping timeout: 246 seconds]
johnny56 has joined #ruby
harai has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
pandaant has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
\0 has joined #ruby
akar has quit [Read error: Connection reset by peer]
emptyflask has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
h1fuelcell has joined #ruby
jenrzzz has joined #ruby
amclain has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
aganov has joined #ruby
conta has quit [Ping timeout: 260 seconds]
grh has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
h1fuelcell has quit [Ping timeout: 245 seconds]
mark_66 has joined #ruby
claudiuinberlin has joined #ruby
Hyuk has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
stoffus has joined #ruby
SesMan has joined #ruby
hogetaro has quit [Ping timeout: 250 seconds]
skydiver has quit [Quit: WeeChat 1.6]
skydiver has joined #ruby
tyang has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: gnight]
postmodern has quit [Ping timeout: 258 seconds]
blackwind_123 has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
jaguarmagenta has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
Burgestrand has joined #ruby
beilabs has quit [Ping timeout: 268 seconds]
beilabs has joined #ruby
conta has joined #ruby
h1fuelcell has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
biberu has joined #ruby
bayed has joined #ruby
beilabs_ has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
foooobear has quit [Read error: Connection reset by peer]
beilabs has quit [Ping timeout: 260 seconds]
Humdai has joined #ruby
cibs has joined #ruby
JoshS has joined #ruby
_whitelogger has joined #ruby
AlexRussia has joined #ruby
songliangliang has quit [Quit: Leaving]
vondruch has joined #ruby
Silthias1 has joined #ruby
omphe has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
lenwood has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
jaruga___ has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
mr_rich101 has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
h1fuelce_ has joined #ruby
AlexRussia_ has joined #ruby
jgnagy has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
flying has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
jtdoncas_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
lenwood has joined #ruby
frozengeek____ has joined #ruby
bturker has joined #ruby
jgnagy has quit [Ping timeout: 245 seconds]
SpiffTR has joined #ruby
emptyflask has joined #ruby
mikecmpbll has joined #ruby
\0 has left #ruby [#ruby]
Chair has joined #ruby
emilkarl has joined #ruby
dnicole has joined #ruby
jsrn_ has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
frozengeek____ is now known as frozengeek
tvw has joined #ruby
cdg_ has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
marr has joined #ruby
awc has joined #ruby
b0nn has quit [Quit: leaving]
b0nn has joined #ruby
nofxxx has quit [Ping timeout: 260 seconds]
maattdd has joined #ruby
tomphp has joined #ruby
awc has quit [Quit: Mutter: www.mutterirc.com]
lenwood has quit [Ping timeout: 250 seconds]
asdf_ has joined #ruby
cyphase has quit [Ping timeout: 245 seconds]
asdf_ has left #ruby [#ruby]
emilkarl has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
emilkarl has joined #ruby
banisterfiend has joined #ruby
jeyraof has joined #ruby
jaguarmagenta has joined #ruby
akar has joined #ruby
h1fuelce_ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
nankyokusei has joined #ruby
h1fuelcell has quit [Read error: Connection reset by peer]
jtdoncas has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
nettoweb has joined #ruby
emptyflask has quit [Remote host closed the connection]
yeticry has joined #ruby
hinbody has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Ping timeout: 258 seconds]
rkoller has joined #ruby
terens has joined #ruby
akar has quit [Quit: leaving]
sdwrage has quit [Quit: Leaving]
lenwood has joined #ruby
rrawlins has joined #ruby
sdwrage has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
Beams has joined #ruby
sdwrage has quit [Client Quit]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
emilkarl has quit [Quit: emilkarl]
ahuman has quit [Ping timeout: 244 seconds]
h1fuelcell has joined #ruby
ahuman has joined #ruby
minimalism has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
SesMan has quit [Remote host closed the connection]
symm-_ has quit [Quit: Leaving...]
SesMan has joined #ruby
symm- has joined #ruby
awc has joined #ruby
SesMan has quit [Remote host closed the connection]
rodfersou has joined #ruby
SesMan has joined #ruby
awc has quit [Client Quit]
nixmaniack has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
jaguarmagenta has quit [Remote host closed the connection]
stoffus_ has joined #ruby
stoffus has quit [Ping timeout: 265 seconds]
SpiffTR has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 245 seconds]
ishe_ua has joined #ruby
aryaching has joined #ruby
SpiffTR has joined #ruby
koooge has quit [Quit: Leaving...]
xall has joined #ruby
aryaching_ has joined #ruby
SesMan has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
SesMan has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 244 seconds]
lenwood has joined #ruby
jaguarmagenta has joined #ruby
SesMan has quit [Remote host closed the connection]
AlexRussia_ has quit [Ping timeout: 268 seconds]
SesMan has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Joufflu has quit [Quit: Leaving]
hutch34 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
stoffus_ has quit [Quit: leaving]
ta__ has quit [Read error: Connection reset by peer]
SesMan has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
SesMan has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
sarlalian_ has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
SesMan has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
ta_ has joined #ruby
SesMan has joined #ruby
xberg has quit []
blackmesa has joined #ruby
cyphase_eviltwin has joined #ruby
sarlalian has joined #ruby
h1fuelcell has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
h1fuelcell has joined #ruby
gregf_ has joined #ruby
minimalism has quit [Quit: minimalism]
lenwood has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
h1fuelcell has quit [Ping timeout: 248 seconds]
cyphase_eviltwin is now known as cyphase
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
minimalism has joined #ruby
gbgdev has joined #ruby
jaguarmagenta has joined #ruby
ta__ has joined #ruby
RedFromage has joined #ruby
jtdoncas_ has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
RedFromage has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
ishe_ua` has joined #ruby
ta_ has joined #ruby
RedFromage has joined #ruby
h1fuelcell has joined #ruby
RedFromage has quit [Remote host closed the connection]
jgnagy has joined #ruby
SesMan has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
ishe_ua has quit [Ping timeout: 250 seconds]
RedFromage has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
jtdoncas_ has quit [Ping timeout: 258 seconds]
RedFromage has quit [Client Quit]
<shadeslayer> is there something in the stdlib that would allow me to process new lines in a file when it gets written to?
h1fuelcell has quit [Ping timeout: 246 seconds]
jgnagy has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 265 seconds]
lele has quit [Ping timeout: 260 seconds]
maattdd has quit [Ping timeout: 256 seconds]
<apeiros> shadeslayer: IO.select
* shadeslayer looks
<shadeslayer> ah thanks, of course select will do what I want
<apeiros> i.e. you open the file, pass the handle to IO.select, which then waits until there's something which can be read from the file
<shadeslayer> right
<apeiros> you want to do something like tail?
<apeiros> or rather, tail -f
<shadeslayer> yes
lele has joined #ruby
ruby352 has joined #ruby
<ruby352> hello could somebody help me what's the easiest way to create an object which responds to method :call
<shadeslayer> I basically have to read the file and process it on file write, and print some statistics at a set interval ( like bytes written in the past 10 seconds )
<apeiros> ruby352: proc{}
<ruby352> loop_call = l.respond_to?(:call)
<shadeslayer> latter I'm planning to write as a thread.new do whatever; sleep 10 end
<apeiros> or actually in newer rubyies: {}
<apeiros> shadeslayer: might use select's timeout instead of sleep there.
voker57 has quit [Ping timeout: 250 seconds]
<ruby352> @database.listen(:channel, :loop => ??? ) { |channel| p channel print 'abc' }
voker57 has joined #ruby
<shadeslayer> apeiros: won't work I think because if IO happens at x-1 seconds and processing could take longer than a second ...
<shadeslayer> then the stat call could get delayed
<apeiros> shadeslayer: not sure I follow
shinnya has quit [Ping timeout: 260 seconds]
<shadeslayer> apeiros: when I read the new lines coming in via readlines, I have to parse them first, which could take y (milli)seconds, if the IO happens right before the timeout value ( such that y > x - time remaining in the timeout value ), this would cause a problem
lenwood has joined #ruby
<apeiros> I a) don't see why that'd cause a problem and b) how sleep would solve that problem
blackmesa has quit [Ping timeout: 246 seconds]
gbgdev has quit [Remote host closed the connection]
<apeiros> seems to me like classic producer/consumer system
<apeiros> i.e. you read in one thread and push it on a work queue, your consumer (or consumers?) waits on the work queue and processes as fast as possible.
<apeiros> but then again, I don't know why you want to sleep at all
<apeiros> or is that a "I hope none of the processing will ever take >10s" approach?
hutch34 has joined #ruby
nadir has joined #ruby
bustizz has joined #ruby
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shadeslayer> apeiros: what I'm sayng is that the total time spent on IO.select + parsing could be > 10s
<shadeslayer> so it could be for eg 11s , but I need to print stats every 10s
jiraphee has joined #ruby
<ruby352> I'm really struggling the documentation does not give an example
ta_ has joined #ruby
<ruby352> how can I implement this
<ruby352> i'm sure it's trivial
jiraphee has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 260 seconds]
deadnull has joined #ruby
ferr1 has joined #ruby
deadnull has quit [Client Quit]
<apeiros> shadeslayer: sleep(10) won't help you with that… with sleep(10) you'll guaranteed have >10s loop times. because it means it's always the 10s from sleep + processing time…
deadnull has joined #ruby
nankyokusei has joined #ruby
<shadeslayer> apeiros: my thought was to have 2 separate threads, one for stat and one for processing, but then I'll need some sort of priority thread scheduling where it always prioritizes the stat thtread above other things
<shadeslayer> but that's getting pretty complicated
emptyflask has joined #ruby
jtdoncas has joined #ruby
blackbom1 has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
jiraphee has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
jiraphee has quit [Remote host closed the connection]
emptyflask has quit [Ping timeout: 245 seconds]
jiraphee has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
xorgnak has joined #ruby
xorgnak has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<apeiros> yes, timing requirements usually are. how hard they are depends on how hard the requirements are :)
jiraphee has quit [Remote host closed the connection]
Beams has quit [Quit: .]
jiraphee has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<shadeslayer> apeiros: :)
wugy has joined #ruby
stan has quit [Quit: Leaving]
<apeiros> if they aren't too hard, you'll have 3 (or 2 + N) threads:
<apeiros> 1 reader
<apeiros> 1 (or N) processing threads
<apeiros> 1 thread which wakes up all 10 seconds printing current result
<apeiros> ruby's scheduler doesn't make any guarantees about the precision regarding those 10s, though. and I'd do an adjusted sleep anyway (i.e. not sleep(10), but sleep(remaining_time))
SesMan has joined #ruby
SesMan has quit [Remote host closed the connection]
SesMan has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby
SpiffTR has joined #ruby
Silthias1 has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
ruby352 has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Quit: fmcgeough]
nixmaniack has quit [Remote host closed the connection]
x77686d has joined #ruby
faces has quit [Ping timeout: 244 seconds]
jiraphee has quit [Remote host closed the connection]
gbgdev has joined #ruby
jiraphee has joined #ruby
x77686d has quit [Quit: x77686d]
face has joined #ruby
howdoi has quit []
howdoi has joined #ruby
jiraphee has quit [Read error: Connection reset by peer]
grh has quit [Ping timeout: 250 seconds]
Burgestrand has joined #ruby
nettoweb has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
maattdd has joined #ruby
pmarreck has quit []
pmarreck has joined #ruby
gbgdev has quit [Remote host closed the connection]
sdothum has joined #ruby
|RicharD| has joined #ruby
aarongodin has quit []
aarongodin has joined #ruby
<apeiros> shadeslayer: you don't really need that
<shadeslayer> apeiros: actually I just realized
<shadeslayer> I can wrap processing in a Timeout block
<shadeslayer> process as much as you can in under 10s
<shadeslayer> then print, then process again
<apeiros> having a separate print thread does that for you with less complexity I'd say :)
<shadeslayer> well separate print thread is ovious, but I need a way to pause processing when time is nearing 10s
gbgdev has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> no
<apeiros> threading does that for you already
<shadeslayer> apeiros: ok, then how do I tell ruby that the print thread needs to run every 10s no matter what
OTORelic1 has joined #ruby
<apeiros> Thread.new do print stuff; sleep(calculate_remaining_time_to_next_10s); end
<apeiros> errr, add in a `loop do … end`
SpiffTR has quit [Ping timeout: 248 seconds]
<apeiros> as said, no guarantees about the precision. but doing a custom solution won't increase precision.
SpiffTR has joined #ruby
<shadeslayer> oh so ruby doesn't need to be told to wake up the print thread, it does it automatically when the sleep call gets over even though the processing thread might be executing?
<apeiros> if you do a custom solution, you can just as well just do a single thread.
gbgdev has quit [Remote host closed the connection]
<apeiros> yes. that's the point of threads.
<shadeslayer> ahhh cool
rwb has quit [Ping timeout: 260 seconds]
<apeiros> they run concurrently
<c-c> Lately I've been forking a lot. To achieve the same. pid = for do; Process.daemon(); #do stuff; sleep(10); end
<apeiros> not parallely in MRI, but concurrently.
<shadeslayer> I understand now :D
gbgdev has joined #ruby
<c-c> Perhaps for more accuracy one could have a ruby process thats started via system command via cron
<apeiros> unless you have a realtime OS, you will never have guarantees about accuracy.
<shadeslayer> c-c: nah I think that's overkill
<apeiros> your whole process might be blocked by the OS
<shadeslayer> I think what apeiros is suggesting is good enough for the task
antoniobeyah has joined #ruby
<c-c> I would assume all the mentioned approaches would be "off" from the exact 10 second interval by 10's to 100's of milliseconds
zero7 has quit []
zero7 has joined #ruby
<apeiros> depends on the OS and whether the processing involves things which block the scheduler. but I think you can get ms accuracy.
ShummmardeNIK has joined #ruby
<shadeslayer> c-c: I think that is acceptable since it's mostly meant as a thing to be seen by the user
jaguarmagenta has joined #ruby
OTORelic1 has quit [Ping timeout: 258 seconds]
x77686d has joined #ruby
<c-c> I implemented a concurrent base for my game project via multiprocess approach.
antoniobeyah has quit [Client Quit]
<c-c> It's
johnmilton has joined #ruby
<c-c> rather nice, on linux, aside from the forking process going through hoops of two processes for each daemon
JoiF has joined #ruby
shelling__ has quit []
shelling__ has joined #ruby
minimalism has quit [Quit: minimalism]
hutch34 has joined #ruby
synthroid has joined #ruby
twodayslate has quit []
twodayslate has joined #ruby
machty has quit []
<JoiF> Hi! I got a legacy Windows-based-system written in Ruby thrown into my lap (has to be compatible with 1.6+) and I need to do some tweaks here and there to make it run properly on Linux. Does my approach make any sense? (it works, but I have no idea if my usage of symbols is stupid or not?) http://pastebin.com/2zkZ17RW
<ruby[bot]> JoiF: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/aeb3ac1b1ccfa0835921dd397f5d82d2
<ruby[bot]> JoiF: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
machty has joined #ruby
deadnull is now known as _deadnull
_deadnull is now known as deadnull
nikivi has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 260 seconds]
<c-c> JoiF: you should really consider rewriting for 2.0
<c-c> well, 2.3 if poss
<toretore> if you are rewriting you may as well aim for the newest
<JoiF> Not going to happen :)
<JoiF> It'
<toretore> JoiF: to answer your question we need more information
<JoiF> Does my usage of symbols make sense?
<toretore> gist as much code as you can, then explain what its purpose is
SteenJobs has joined #ruby
<JoiF> The purpose is to get different versions of a string depending on if you're running the script on Linux or not
yo61 has quit []
<c-c> well, I can't really tell from the example
<JoiF> Should I index my Hash differently?
endbringer has joined #ruby
<c-c> Does it output what you need?
<JoiF> Yes.
<JoiF> It works, but I have no idea if this is how you do stuff in Ruby
yo61 has joined #ruby
<c-c> Sounds like its done, if its a duck and quacks.
<JoiF> haha
<JoiF> True
jaguarmagenta has quit [Remote host closed the connection]
<toretore> JoiF: it does what you think it does. whether it's the right way to do it is another thing..
Humdai has quit [Ping timeout: 258 seconds]
<JoiF> But I'm not completely familiar with how symbols work. i.e. if they should be used in the manner I'm using them, where I'm simply using a symbol as an index to a Hash, or of symbols are something that's supposed to be set (once or just a few times) globally and then used all over the place?
<c-c> JoiF: also, see these examples - so use of symbol is ok http://www.rubyfleebie.com/an-introduction-to-hashes/
<toretore> JoiF: the way you're using them is fine
<JoiF> Yay! :D
<JoiF> Thanks!
eb0t has quit [Quit: WeeChat 1.4]
eb0t has joined #ruby
<c-c> gl!
<JoiF> So, my predecessor decided it would be a really good idea to roll his own build-system in Ruby. Reason I'm not rewriting for 2.x is that I'm going to be replacing this system with a proper one ASAP. But I need the current one to run on Linux first to have a baseline when integrating the new one.
SesMan has quit [Remote host closed the connection]
fmcgeough has joined #ruby
SesMan has joined #ruby
SpiffTR has quit [Quit: Leaving.]
GodFather has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
AckZ has quit []
AckZ has joined #ruby
JoiF has left #ruby [#ruby]
SesMan has quit [Ping timeout: 246 seconds]
Bacta has joined #ruby
pokui has joined #ruby
maximus has joined #ruby
<Bacta> Is it possible to define a 2d array setter, ex: def [][]= ?
<toretore> that doesn't make any sense
<toretore> a 2d array is an array whose values are other arrays, meaning they are different objects
hutch34 has joined #ruby
<Bacta> so you can do def []=(k, v)
<toretore> you can define a method [] which takes two values and then manipulates the sub-arrays
<Bacta> Can you do def [][]=(k, k2, v) ?
<maximus> Hello. Need some help to install ruby on rails. I got ubuntu 14.04 .. But not sure which is the right path. Since all tutorials and gem files looks so many varieties of installation . And it's confusing.
<toretore> Bacta: no
<ruby[bot]> maximus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<toretore> ?rails maximus
GodFather has joined #ruby
<maximus> yes toretore
<toretore> Bacta: you should explain what it is you're trying to do instead of asking about a specific solution you have in mind
<c-c> Bacta you can just do arrays of arrays for 2D
<c-c> >> [ ['a1','a2','a3'], ['b1','b2','b3']]
<ruby[bot]> c-c: # => [["a1", "a2", "a3"], ["b1", "b2", "b3"]] (https://eval.in/693822)
maximus has quit [Read error: Connection reset by peer]
SteenJobs has quit [Quit: SteenJobs]
Guest97762 is now known as ndrst
bove has quit []
bove has joined #ruby
endbringer has quit [Quit: Leaving]
lancetw has quit []
hutch34 has quit [Ping timeout: 264 seconds]
mrsolo has quit []
CloCkWeRX has quit [Quit: Leaving.]
mrsolo has joined #ruby
lancetw has joined #ruby
SteenJobs has joined #ruby
brendan- has joined #ruby
maattdd has quit [Ping timeout: 246 seconds]
pokui has left #ruby [#ruby]
inerkick has joined #ruby
lenwood has joined #ruby
pior has quit []
pior has joined #ruby
adavia has joined #ruby
tyang has joined #ruby
SesMan has joined #ruby
<canton7> you can replace lines 2 - 5 with 'next if RestClient.Head(...).code != 200'
imanc has quit []
imanc has joined #ruby
jcao219 has joined #ruby
Humdai has joined #ruby
<adgtl> what about exception handling
<adgtl> okay got it
Saladus has joined #ruby
tyang_ has joined #ruby
Saladus has quit [Client Quit]
banisterfiend has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
reverberations has joined #ruby
emptyflask has joined #ruby
herbmillerjr has joined #ruby
minimalism has joined #ruby
Heero has quit []
Heero has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
OTORelic1 has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
emptyflask has quit [Ping timeout: 268 seconds]
jgnagy has joined #ruby
omphe has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has joined #ruby
gnufied has joined #ruby
OTORelic1 has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
antoniobeyah has joined #ruby
b_penguin has joined #ruby
reverberations has quit [Ping timeout: 268 seconds]
caw has quit []
caw has joined #ruby
inerkick has quit [Remote host closed the connection]
<Burgestrand> Bacta both [] and []= can take more than one key though, https://eval.in/693873
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #ruby
cdg has joined #ruby
reverberations has joined #ruby
ShummmardeNIK has quit [Quit: Textual IRC Client: www.textualapp.com]
adavia has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
dionysus69 has joined #ruby
DoubleMalt has joined #ruby
minimalism has quit [Quit: minimalism]
Humdai_ has joined #ruby
rodfersou is now known as rodfersou|lunch
minimalism has joined #ruby
Humdai has quit [Ping timeout: 248 seconds]
JackMc has quit []
Lloyd has quit []
JackMc has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Lloyd has joined #ruby
deadnull has quit [Quit: Bye]
<Bacta> Thanks Burgestrand :)
<Burgestrand> Bacta :)
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
joaomdmoura__ has quit []
dionysus69 has quit [Quit: dionysus69]
joaomdmoura__ has joined #ruby
bustizz has quit []
swills has quit [Max SendQ exceeded]
SteenJobs has quit [Quit: SteenJobs]
terens has quit [Remote host closed the connection]
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
fenre has quit [Remote host closed the connection]
Beams has joined #ruby
hs366 has quit [Quit: Leaving]
jhack has quit [Ping timeout: 258 seconds]
adavia has joined #ruby
DLSteve has joined #ruby
AlexRussia_ has joined #ruby
jabreity has quit []
jabreity has joined #ruby
pandaant has joined #ruby
x77686d has quit [Quit: x77686d]
konsolebox has joined #ruby
x77686d has joined #ruby
jhack has joined #ruby
andersh has quit []
andersh has joined #ruby
jhack has quit [Client Quit]
swills has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
jcao219 has quit [Ping timeout: 246 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
Guest46178 has joined #ruby
jottr has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
Humdai_ has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
OTORelic1 has joined #ruby
Silthias has joined #ruby
saneax is now known as saneax-_-|AFK
OTORelic1 has quit [Ping timeout: 250 seconds]
psychicist__ has joined #ruby
h1fuelcell has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
x77686d has quit [Quit: x77686d]
AndyWojo has quit []
hutch34 has joined #ruby
|RicharD| has quit [Read error: Connection reset by peer]
AndyWojo has joined #ruby
psychicist__ has quit [Ping timeout: 250 seconds]
Salih has quit [Quit: Leaving]
|RicharD| has joined #ruby
tau has joined #ruby
bmurt has joined #ruby
synthroi_ has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
x77686d has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
synthroid has quit [Ping timeout: 244 seconds]
shinnya has joined #ruby
agent_white has joined #ruby
emptyflask has joined #ruby
<agent_white> Mornin' folks
jtdoncas_ has joined #ruby
nixmaniack has joined #ruby
jottr has joined #ruby
<apeiros> moin white
<apeiros> btw., are you from spy vs. spy?
DoubleMalt has quit [Ping timeout: 260 seconds]
ishe_ua` has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 256 seconds]
nixmaniack has quit [Ping timeout: 265 seconds]
cdg has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
tvw has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
antoniobeyah has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
SteenJobs has joined #ruby
rwb has joined #ruby
Humdai has joined #ruby
ryan_notabot has quit [Ping timeout: 265 seconds]
ryan_notabot has joined #ruby
nettoweb has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
OTORelic1 has joined #ruby
blackwind_123 has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
csk has joined #ruby
DLSteve has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
wugy has quit []
MarkFletcher has joined #ruby
synthroi_ has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
jcao219 has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
<tau> hi. is there some lib for doing auto completion in ruby? something like jedi in python?
<tau> is rsense still maintained?
<tau> i mean, is it worth using?
gregf_ has quit [Ping timeout: 260 seconds]
<apeiros> depends on what specifically you want
<apeiros> there's abbrev in stdlib for simple cases
<apeiros> I built a gem 'autocomplete' a long while back, no idea anymore which usecases it covers :)
nankyokusei has joined #ruby
<apeiros> hm
<apeiros> seems I didn't push it
<apeiros> as the name is taken by another author's gem
<apeiros> oh, autocompletion was the name, not autocomplete
lenwood has quit [Ping timeout: 256 seconds]
emptyflask has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
centrx has joined #ruby
sepp2k has joined #ruby
polishdub has joined #ruby
kobain has joined #ruby
dionysus69 has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
antoniobeyah has joined #ruby
xlegoman has joined #ruby
jhack has joined #ruby
chouhoulis has joined #ruby
aufi has quit [Remote host closed the connection]
rrawlins has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
jhack_ has joined #ruby
Bacta has quit [Quit: Leaving]
jhack has quit [Ping timeout: 252 seconds]
jhack_ is now known as jhack
aganov has quit [Remote host closed the connection]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyoku_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
nankyokusei has quit [Ping timeout: 244 seconds]
TvL2386 has quit [Remote host closed the connection]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 258 seconds]
h1fuelcell has joined #ruby
jhack has quit [Ping timeout: 260 seconds]
<shadeslayer> does anyone know how to stub class methods using the stdlib for testing?
Silthias has quit [Quit: Leaving.]
omphe has joined #ruby
<manveru> >> class X; def self.hi; p "hi"; end; end; X.hi; hi = X.singleton_method(:hi); def X.hi; p "bye"; end; X.hi; X.define_singleton_method(:hi, hi); X.hi
<ruby[bot]> manveru: # => "hi" ...check link for more (https://eval.in/694011)
DLSteve has joined #ruby
nankyokusei has joined #ruby
<manveru> shadeslayer: enough for you? :)
<shadeslayer> heh
<manveru> ah, that's probably better
<manveru> it's no stub though
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
h1fuelce_ has joined #ruby
<shadeslayer> yeah I need to stub DateTime
<manveru> you can use Mock if you use dependency injection
nankyoku_ has quit [Ping timeout: 264 seconds]
<shadeslayer> dependency injection?
Snickers has joined #ruby
rodfersou|lunch is now known as rodfersou
<manveru> well, for example YourClass::DateTime = Mock.new
<manveru> by default you'll see ::DateTime, but in your spec it'll be the mock
<elomatreb> Why do you need to stub DateTime, of all things?
h1fuelcell has quit [Ping timeout: 250 seconds]
<manveru> probably to make sure time is frozen
<shadeslayer> ^^
jhack has joined #ruby
<shadeslayer> My class calls DateTime.now when adding some data
<shadeslayer> I want to stub that out to known times
<elomatreb> Can't you just have something like an optional argument for that then? And pass in the object?
<shadeslayer> why ever should I expose that when it's of no use
<manveru> oooh
<shadeslayer> manveru: sweet
<manveru> it's for instance methods though
<manveru> but you can use the singleton instance, see the sample
<elomatreb> I think I'd prefer such an argument over weird stubs/mocks, but you're also right
<tau> apeiros well, i want to integrate completion for ruby in vy(my vim-like in python) so i was wondering of using rsense but it seems to not be under development anymore.
<tau> apeiros so i was wondering whether that is something worth to use.
<manveru> tau: maybe take a look at the neovim gem
<tau> hmm
<tau> manveru rsense seems good because it runs a server and it gives a nice json structure for completions. i wonder whether there is something like that but that is actively being developed.
benlieb has joined #ruby
<manveru> well, neovim plugins work the same way, just with msgpack instead of json
<tau> i see.
mark_66 has quit [Remote host closed the connection]
<manveru> that said, i haven't actually tried ruby completion with it, should do that now :)
<manveru> before i say stupid stuff
nankyoku_ has joined #ruby
<tau> manveru me neither.
<tau> manveru do you think rsense is outdated?
<tau> are you familiar to it?
tvw has joined #ruby
<manveru> well, i looked at it... it's got a ton of open issues and no commit for 3 years
<tau> yea
<shadeslayer> manveru: do you what I'm possibly doing wrong? I required minitest/speck but : Error: test_add_events(TestEventMonitor): NoMethodError: undefined method `stub' for DateTime:Class
c355e3b has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
<manveru> what ruby version?
<shadeslayer> 2.3.1
jhack has quit [Ping timeout: 265 seconds]
beilabs_ has quit [Remote host closed the connection]
beilabs has joined #ruby
conta has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
<manveru> uh
<manveru> actually
synthroi_ has joined #ruby
<manveru> minitest is not in stdlib?
<manveru> i thought it was added a few years ago
emptyflask has joined #ruby
<manveru> there's https://github.com/ruby/ruby/tree/trunk/test/lib/minitest but i don't think you can require that
beilabs has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
<manveru> ah.... must be a problem with my distro
nankyokusei has joined #ruby
jhack has quit [Remote host closed the connection]
xall has quit [Ping timeout: 250 seconds]
nankyoku_ has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
<manveru> >> require 'minitest/mock'; DateTime.stub(:now, "wut"){ p DateTime.now }
<ruby[bot]> manveru: # => uninitialized constant DateTime (NameError) ...check link for more (https://eval.in/694022)
<manveru> >> require 'date'; require 'minitest/mock'; DateTime.stub(:now, "wut"){ p DateTime.now }
<ruby[bot]> manveru: # => "wut" ...check link for more (https://eval.in/694023)
<manveru> there you go
dionysus69 has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
DoubleMalt has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
beilabs has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Client Quit]
<shadeslayer> ah ok
synthroi_ has quit [Ping timeout: 246 seconds]
antoniobeyah has joined #ruby
chopin_ has joined #ruby
nankyoku_ has joined #ruby
<shadeslayer> manveru: thank you :D
jtdoncas has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 260 seconds]
chopin has quit [Ping timeout: 244 seconds]
beilabs has quit [Remote host closed the connection]
astrobunny has joined #ruby
johnny56 has quit [Ping timeout: 246 seconds]
Humdai has quit [Ping timeout: 250 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rodfersou has quit [Ping timeout: 256 seconds]
maattdd has joined #ruby
johnny56 has joined #ruby
Asher has joined #ruby
solocshaw has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
rodfersou has joined #ruby
jphase has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 245 seconds]
conta has joined #ruby
jphase has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
mordocai has joined #ruby
nankyoku_ has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Snowy has joined #ruby
bruce_lee has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordocai> I want to write a script that will run certain system commands concurrently with basically a dependency graph(so run A and B then C and D then run E) while doing something intelligent with the output (logs or nicely formatted to stdout). Are there any gems that will make this easy and quick or do I need to deal with it myself?
amclain has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
rippa has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
teclator has quit [Ping timeout: 260 seconds]
<baweaver> Basically sounds like a Promises implementation
teclator_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordocai> Hmm... yeah, I could see promises helping. Would still need the "Run system commands concurrently and handle their output intelligently" but that might be relatively easy...
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 260 seconds]
<mordocai> FWIW this doesn't need to be general at all. The commands are going to be pretty static and not change often.
Snowy has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
marxarelli has joined #ruby
Chair has quit [Quit: Ex-Chat]
flying has quit []
Chair has joined #ruby
Rodya_ has joined #ruby
bmurt has joined #ruby
maattdd has quit [Ping timeout: 246 seconds]
Chair has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit []
JakFrist[WVU] has joined #ruby
jcao219 has joined #ruby
Dimik has joined #ruby
symm- has joined #ruby
tomphp has joined #ruby
kuSuSE has joined #ruby
h1fuelce_ has quit [Remote host closed the connection]
[Butch] has joined #ruby
s1kx has quit [Ping timeout: 248 seconds]
* mordocai realized this actually isn't that hard to make with threads.
h1fuelcell has joined #ruby
xlegoman has joined #ruby
b_penguin has quit [Quit: Textual IRC Client: www.textualapp.com]
<manveru> Thread.new{ }.value # => promises :D
tomphp_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
<havenwood> mordocai: Promise = Thread # ship it
astrobunny has joined #ruby
tomphp has quit [Ping timeout: 258 seconds]
jsrn_ has quit [Quit: Leaving]
frozengeek has quit [Quit: frozengeek]
astrobunny has quit [Ping timeout: 265 seconds]
jtdoncas_ has joined #ruby
nowz has joined #ruby
dionysus69 has joined #ruby
hutch34 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
byte512 has joined #ruby
zacts has quit [Quit: WeeChat 1.6]
enterprisey has joined #ruby
<mordocai> Chdir doesn't work with multiple threads(it'll error) per docs. Is there a method to have a thread-local chdir? Currently just doing the cd in the command but that's somewhat annoying.
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
enterprisey has quit [Ping timeout: 258 seconds]
JakFrist[WVU] has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has joined #ruby
Sammichmaker has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
rakm has joined #ruby
mikeXsh has quit [Quit: Connection closed for inactivity]
JakFrist[WVU] has joined #ruby
jtdoncas_ has quit [Ping timeout: 250 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
JakFrist[WVU] has quit [Client Quit]
centrx has quit [Remote host closed the connection]
conta has joined #ruby
mikecmpbll has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
JakFrist[WVU] has joined #ruby
conta has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
lenwood has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
OTORelic2 has joined #ruby
matp_ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xesus has joined #ruby
matp has joined #ruby
Beams has quit [Quit: .]
h1fuelcell has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 260 seconds]
nixmaniack has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
chg has quit [Ping timeout: 256 seconds]
OTORelic1 has quit [Ping timeout: 265 seconds]
d0nn1e has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Quit: Leaving...]
xesus has quit [Ping timeout: 252 seconds]
chg has joined #ruby
claudiuinberlin has joined #ruby
salut has quit [Quit: salut]
finisherr has joined #ruby
beilabs_ has joined #ruby
finisherr has left #ruby [#ruby]
mikecmpbll has joined #ruby
duper has quit [Ping timeout: 260 seconds]
beilabs has quit [Ping timeout: 245 seconds]
chg has quit [Ping timeout: 260 seconds]
byte512 has quit [Ping timeout: 250 seconds]
chg has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
railssmith has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
brent__ has joined #ruby
Guest46178 has quit [Remote host closed the connection]
ramfjord has joined #ruby
BTRE has joined #ruby
codfection has joined #ruby
csk has quit [Quit: ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
neminis has joined #ruby
OTORelic2 has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
splud has joined #ruby
teclator_ has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
pilne has joined #ruby
beilabs_ has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
al2o3-cr has joined #ruby
nankyokusei has quit [Remote host closed the connection]
jtdoncas_ has joined #ruby
nankyokusei has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
railssmith has joined #ruby
muelleme has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
conta has joined #ruby
ragesoss has joined #ruby
symm- has quit [Quit: Leaving...]
asdfqwer has joined #ruby
andikr has quit [Remote host closed the connection]
conta has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
asdfqwer has quit [Client Quit]
zeroDi has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
duper has joined #ruby
[Butch]_ has joined #ruby
aknagi has joined #ruby
kyle__ has left #ruby ["WeeChat 1.6"]
[Butch] has quit [Ping timeout: 258 seconds]
[Butch]_ is now known as [Butch]
Anonymoose2 has joined #ruby
Anonymoose2 has quit [Max SendQ exceeded]
minimalism has joined #ruby
Anonymoose2 has joined #ruby
kang0 has joined #ruby
reverberations has quit [Ping timeout: 260 seconds]
[Butch]_ has joined #ruby
<kang0> (kang0) I need someone's 2 hours to settle my tablet
<kang0> Anyone interested?
jaruga___ has quit [Quit: jaruga___]
bturker has quit [Ping timeout: 256 seconds]
[Butch] has quit [Ping timeout: 265 seconds]
[Butch]_ is now known as [Butch]
hutch34 has joined #ruby
x77686d has joined #ruby
djellemah_ has joined #ruby
sean` has joined #ruby
ldnunes has joined #ruby
sean` has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 244 seconds]
sparch has quit [Quit: Leaving]
SpiffTR has joined #ruby
seanhagen has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
seanhagen has quit [Client Quit]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill_ has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
sean` has joined #ruby
sean` has quit [Remote host closed the connection]
dopamean_ has joined #ruby
gbgdev has quit [Remote host closed the connection]
reverberations has joined #ruby
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching_ has quit [Ping timeout: 246 seconds]
synthroi_ has joined #ruby
astrobunny has joined #ruby
jtdoncas has joined #ruby
<havenwood> kang0: What do you mean by "settle my tablet?
<havenwood> "
<centrx> Them sounds like fighting words
sean` has joined #ruby
sean` has quit [Remote host closed the connection]
<kang0> What did you understand?
<kang0> centrx
synthroid has quit [Ping timeout: 268 seconds]
bustizz has joined #ruby
benlieb has quit [Quit: benlieb]
Anonymoose2 has quit [Ping timeout: 265 seconds]
<centrx> kang0: I'm just joking. We have no idea what you mean.
<kang0> I mean it's not working properly and need help also to upgrade
sean` has joined #ruby
<kang0> havenwood
sean` has quit [Remote host closed the connection]
djellemah_ has quit [Ping timeout: 264 seconds]
reverberations has quit [Ping timeout: 265 seconds]
Anonymoose2 has joined #ruby
<kang0> centrx at least every vague question also can be interpreted with multiple meaning; isn't it?
codfection has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 252 seconds]
<havenwood> kang0: The tablet gem? Is this Ruby-related?
<kang0> havenwood nope it's offtopic
<havenwood> !offtopic kang0
<havenwood> ?offtopic
<ruby[bot]> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
aryaching has joined #ruby
Anonymoose2 has quit [Ping timeout: 248 seconds]
csk has joined #ruby
benlieb has joined #ruby
johnmilton has quit [Remote host closed the connection]
kang0 has quit [Read error: Connection reset by peer]
mustmodify has joined #ruby
<mustmodify> is there a non-pry debugger that works in mri 2.1 ?
chouhoul_ has joined #ruby
banisterfiend has joined #ruby
rodfersou has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 244 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<antoniobeyah> i think its byebug
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
blackmesa has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
MarkFletcher has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias has quit [Ping timeout: 260 seconds]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
SeepingN has joined #ruby
ldnunes has quit [Quit: Leaving]
griffindy has joined #ruby
marxarelli|afk is now known as marxarelli
symm- has joined #ruby
Uranio has joined #ruby
muelleme has quit [Ping timeout: 252 seconds]
bastilian has quit []
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
astrobunny has joined #ruby
reverberations has joined #ruby
Uranio has quit [Quit: while you read this, a kitty dies]
Anonymoose2 has joined #ruby
sp4rrow has joined #ruby
enterprisey has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
reverberations has quit [Ping timeout: 265 seconds]
Anonymoose2 has quit [Ping timeout: 265 seconds]
reverberations has joined #ruby
jshjsh has joined #ruby
benlieb has quit [Quit: benlieb]
Anonymoose2 has joined #ruby
SpiffTR has quit [Quit: Leaving.]
nikivi has quit [Quit: irc]
JoshS has quit [Ping timeout: 268 seconds]
reverberations has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
prestorium has quit [Quit: Leaving]
djellemah_ has joined #ruby
KnownSyntax has quit [Quit: No Ping reply in 180 seconds.]
jcao219 has joined #ruby
<mustmodify> antoniobeyah: ok thanks!
benlieb has joined #ruby
mustmodify has left #ruby [#ruby]
djellemah_ has quit [Ping timeout: 250 seconds]
omphe has joined #ruby
benlieb has quit [Client Quit]
rwb has quit [Ping timeout: 268 seconds]
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
nankyoku_ has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 264 seconds]
gheegh has quit [Ping timeout: 268 seconds]
boombox_ has joined #ruby
dhollinger has quit [Ping timeout: 252 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhollinger has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
boombox_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
fmcgeough has quit [Quit: fmcgeough]
harai has joined #ruby
bturker has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
brent__ has quit [Quit: Connection closed for inactivity]
benlieb has joined #ruby
nankyoku_ has quit [Ping timeout: 240 seconds]
bturker has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
darix has quit [Quit: may the packets be with you...]
GodFather has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lxsameer has quit [Quit: WeeChat 1.6]
Derderderd has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 245 seconds]
synthroid has joined #ruby
minimalism has quit [Quit: minimalism]
kayzon has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
f4 has quit [Ping timeout: 244 seconds]
Derderderd has joined #ruby
jokke has quit [Ping timeout: 244 seconds]
synthroi_ has quit [Ping timeout: 250 seconds]
f4 has joined #ruby
harai has quit [Ping timeout: 240 seconds]
<zenspider> I need a windows user... I need a confirmation whether IO.pipe does or doesn't work on windows
<zenspider> I thought it hasn't since day 1, and that's part of the reason for spawn
jtdoncas has quit [Ping timeout: 264 seconds]
SpiffTR has joined #ruby
<matthewd> zenspider: tenderlove and I looked at it recently for something, and noted it had some very Windows-sounding implementation.. but I can't confirm whether said implementation achieves its apparent aim :)
Derderderd has quit [Ping timeout: 264 seconds]
<tenderlove> ya, I remember seeing windows related code in there
<tenderlove> but I have no idea if it actually works
synthroid has quit []
s2013 has joined #ruby
jokke has joined #ruby
montanonic has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
Madplatypus has joined #ruby
JoshS has joined #ruby
AckZ has quit []
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
jshjsh has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
DoubleMalt has quit [Ping timeout: 246 seconds]
reverberations has joined #ruby
dn`_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<adam12> Anybody in here regularly use bundler alternative? dep or something. Just curious.
djbkd has joined #ruby
dn` has quit [Ping timeout: 268 seconds]
dn`_ is now known as dn`
lubekpl has joined #ruby
<tau> i managed to get rsense working, it works with built in objects but when i do stuff like require 'matrix'; x = Matrix[[1]]; x.
<tau> it fails to complete.
<tau> it seems that it is not recognizing the require thing.
Anonymoose2 has quit [Ping timeout: 248 seconds]
_djbkd has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
lubekpl has quit [Quit: Textual IRC Client: www.textualapp.com]
lubekpl has joined #ruby
nixmaniack has quit []
konsolebox has quit [Quit: Leaving]
jtdoncas has joined #ruby
Coldblackice has quit []
<havenwood> adam12: I regularly use RubyGem's built-in Gem dependency resolver. You can `gem install -g` to build a Gemfile.lock from a Gemfile and set RUBYGEMS_GEMDEPS=- to run in the context of the Gemfile.lock gems.
<zenspider> I tweeted it as a question as well ... maybe someone in the know will chime in
<zenspider> I still use isolate... but I think I'm the ONLY person who does now :)
rwb has joined #ruby
<adam12> I'm just being curious. I've used the Rubygem -g option before, which works. I ran across dep a few days ago (again) and wondered what the eco-system outside bundler looked like today.
<adam12> I believe there were some dependency resolving issues in the past with `gem install -g` so I don't think it's a good go-to yet.
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derderderd has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
<hanmac> i am not 100% sure about the current state, but rubygems did absorb bundler
<adam12> Cool. I'm gonna keep my eye on it.
buglessdr has quit [Quit: Leaving]
<adam12> I kind of wish ruby-toolbox didn't feel so abandoned.
frozengeek has joined #ruby
Derderderd has quit [Ping timeout: 246 seconds]
jtdoncas_ has joined #ruby
davidt_ has quit []
JeanCarloMachado has joined #ruby
jenrzzz has joined #ruby
zacts has joined #ruby
JoshS has quit [Quit: Leaving]
moei has quit [Quit: Leaving...]
jtdoncas_ has quit [Ping timeout: 260 seconds]
nowz has quit [Quit: Leaving]
roychri has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
Anonymoose2 has joined #ruby
ramfjord has joined #ruby
enterprisey has joined #ruby
reverberations has quit [Ping timeout: 240 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
heftig has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 250 seconds]
adavia has quit [Ping timeout: 258 seconds]
tyang_ has quit [Read error: Connection reset by peer]
heftig has joined #ruby
jottr has joined #ruby
yeticry has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
lubekpl has quit [Ping timeout: 245 seconds]
gbgdev has joined #ruby
<manveru> adam12: i use nix for my gems
<adam12> manveru: nix like nixos?
<manveru> also on macos, but yeah
<manveru> and back in the old days i used rvm gemsets
<manveru> i suspect that might still work today
<adam12> Yeah - not really concerned about gemsets as much as just installing deps for projects.
<adam12> I'd probably use gem_home for "gemsets".
<manveru> aye
<manveru> we use a combination of nix and direnv, so when you cd into a new project, all your deps are setup
swills has quit [Read error: Connection reset by peer]
bustizz has quit [Remote host closed the connection]
swills has joined #ruby
bustizz has joined #ruby
cdg_ has quit [Remote host closed the connection]
lubekpl has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
hahuang62 has joined #ruby
<tau> manveru was it you who said earlier to have written an auto completion lib for ruby?
hahuang61 has quit [Read error: Connection reset by peer]
claudiuinberlin has quit []
<manveru> i think there was YouCompleteMe and neocomplete
<tau> yes. but i want to integrate ruby autocompletion with vy.
<tau> i have managed to do so with rsense.
bustizz has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 258 seconds]
Definity2 has joined #ruby
<tau> it works with built in things. however, if i use require 'prime'; Prime.<Complete> it fails.
__main__ has quit [Ping timeout: 245 seconds]
<tau> even with stuff like require 'matrix' it is not working. not sure why.
reverberations has joined #ruby
<manveru> YCM can use http://eclim.org/
armando has quit [Ping timeout: 246 seconds]
ReK2 has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
SeepingN has quit [Ping timeout: 260 seconds]
NightMonkey has quit [Ping timeout: 260 seconds]
mg^ has quit [Ping timeout: 260 seconds]
ByronJohnson has quit [Ping timeout: 260 seconds]
Anonymoose2 has quit [Ping timeout: 240 seconds]
<manveru> i think that one also can be used by any other editor
<tau> hmm
benlieb has quit [Quit: benlieb]
<manveru> i guess it's java and probably not very small
jottr_ has joined #ruby
hahuang65 has joined #ruby
<tau> i see.
<zenspider> for gemsets I use ohmygems
mg^ has joined #ruby
_djbkd has quit [Remote host closed the connection]
SeepingN has joined #ruby
djbkd has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ByronJohnson has joined #ruby
minimalism has joined #ruby
NightMonkey has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
SpiffTR has quit [Quit: Leaving.]
ramfjord has joined #ruby
mahlon has quit [Quit: nine foot long outhouse ladle]
armando has joined #ruby
polishdub has quit [Quit: Leaving]
centrx has quit []
csk has quit [Quit: Bye]
<adam12> I havent' had a need for gemsets in a long time, but maybe that's Bundler doing all the work for me ;)
__main__ has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
_djbkd has joined #ruby
<manveru> yeah, same thing basically
<manveru> we replaced bundler because it doesn't handle native deps, same issue as npm
<manveru> so you need to make sure everyone has the same libzmq, libxml, libpg, etc... and two projects may conflict
A124 is now known as A124_
A124_ is now known as A124
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
emptyflask has quit [Remote host closed the connection]
A124 has quit [Quit: '']
[Butch] has quit [Quit: I'm out . . .]
gbgdev has quit []
threh has joined #ruby
A124 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
<zenspider> adam12: if you ever use `bundle exec`, then gemsets are a benefit
<adam12> Never do. direnv adds bin/ as a PATH prefix.
nankyokusei has joined #ruby
<zenspider> bundle_require is really slow too. I _hate_ that wycats thought that autorequire was a good idea. worst thing to happen to ruby development, probably ever...
GodFather has quit [Quit: Ex-Chat]
<zenspider> I tried to remove it from my client's code, but maaaaan... it was hard
GodFather has joined #ruby
<zenspider> (they had HUNDREDS of gems tho)
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
dopamean1 has joined #ruby
dopamean1 has quit [Client Quit]
AlexRussia_ has quit [Ping timeout: 260 seconds]
dopamean1 has joined #ruby
claw has quit [Ping timeout: 256 seconds]
dopamean_ has quit [Ping timeout: 260 seconds]
dopamean1 is now known as dopamean_
lubekpl has quit [Ping timeout: 258 seconds]
Derderderd has joined #ruby
h1fuelcell has joined #ruby
claw has joined #ruby
gheegh has joined #ruby
DarthGandalf has joined #ruby
_chazu has joined #ruby
jottr has joined #ruby
_chazu has left #ruby [#ruby]
nankyoku_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
h1fuelcell has quit [Ping timeout: 244 seconds]
bturker has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
Derderderd has quit [Ping timeout: 264 seconds]
enterprisey has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dionysus69 has quit [Ping timeout: 245 seconds]
Snowy has quit [Client Quit]
sdwrage has quit [Quit: This computer has gone to sleep]
DarthGandalf has quit [Ping timeout: 260 seconds]
bturker has quit [Ping timeout: 256 seconds]
AlexRussia_ has joined #ruby
DarthGandalf has joined #ruby
blackmesa has quit [Quit: WeeChat 1.5]
kayzon has quit [Remote host closed the connection]
JesseH has joined #ruby
antoniobeyah has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
aryaching has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
DarthGandalf has quit [Ping timeout: 256 seconds]
neminis has quit [Quit: Lost terminal]
bonhoeffer has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bonhoeffer> how do i understand what this encoding is: "\xE1\x06\vc;\x00"
<bonhoeffer> looks hex, encoding is ASCII-8BIT -- but i can't write that string to match
<bonhoeffer> it is the result of cipher.random_key
millerti has joined #ruby
nickjj has joined #ruby
<apeiros> it's binary
<apeiros> and \xE1 is a single byte
<apeiros> i.e. the hex is because you're looking at an inspect. that's meant for you to be readable.
<sonOfRa> bonhoeffer: there isn't any real encoding here. random_key should just return a random "string" consisting of raw bytes
|RicharD| has quit [Quit: Sto andando via]
<sonOfRa> Popular representation, if you really need to print it to somewhere, is base64
<bonhoeffer> apeiros: ahhh. . . ok -- so a = cipher.random_key -- if I type a in the console -- it shows me the bytes as a string, but they are really raw bytes
xlegoman has joined #ruby
<apeiros> yes
<apeiros> >> 0.chr
<ruby[bot]> apeiros: # => "\x00" (https://eval.in/694256)
<bonhoeffer> how would i convert a string, say "aaf1" to raw bytes
nankyoku_ has quit [Ping timeout: 258 seconds]
<apeiros> a string is raw bytes. please rephrase your question :-p
<sonOfRa> That depends on the encoding of the string
DarthGandalf has joined #ruby
<apeiros> you mean a string with hex?
<bonhoeffer> apeiros: ok -- yes --- I want to create "\xF1" as in the raw bytes F1
<apeiros> "\xF1" *is* a single raw byte
<sonOfRa> "\xF1"
<apeiros> as said before
<apeiros> >> "\xF1".bytesize
<ruby[bot]> apeiros: # => 1 (https://eval.in/694257)
<sonOfRa> >> "\xF1".inspect
<ruby[bot]> sonOfRa: # => "\"\\xF1\"" (https://eval.in/694258)
<sonOfRa> Err
<bonhoeffer> >> a = "\xF1"; a[0]
* apeiros hands sonOfRa a puts
<bonhoeffer> >> a = "\xF1"; puts a[0]
<sonOfRa> >> puts "\xF1"
<ruby[bot]> sonOfRa: # => � ...check link for more (https://eval.in/694259)
<apeiros> bonhoeffer: you're probably not registered. no eval for you.
<bonhoeffer> got it :)
hutch34 has quit [Ping timeout: 264 seconds]
<bonhoeffer> \ns identify happy123
<sonOfRa> F1 (in extended ASCII is ñ)
<apeiros> not hunter2?
<baweaver> might want to change that password there sparky
<sonOfRa> Does ruby[bot] not do unicode output? Or are both my irc clients and my browser's font broken?
sdwrage has joined #ruby
<apeiros> hm? \xf1 is not valid unicode
<apeiros> hence you get a <?>
<sonOfRa> Oh right, I was thinking UTF-16 where it's 0x00F1
jenrzzz has joined #ruby
<sonOfRa> apparently it's 0xC3 0xB1 in UTF-8.
<bonhoeffer> i'm wondering if the equivalent of b"foo" in python
cdg has joined #ruby
<apeiros> if you don't make us look up python manuals, we might tell you
<apeiros> probably "foo".b, though
mahlon has joined #ruby
<sonOfRa> I think b"..." is "treat everything as an octet"
<sonOfRa> While "..." treats everything as a character (possibly multiple octets)
<apeiros> which makes no sense :)
<apeiros> you need to know the encoding in order to know how a character maps to bytes
<apeiros> and until you know that, the distinction is pointless
last_staff has joined #ruby
<sonOfRa> "..." is UTF-16 or UTF-32 in python, which depends on a compile time switch of python itself
sdwrage has quit [Client Quit]
adavia has joined #ruby
<sonOfRa> So you DO know, and I think b"<unicode-character>" is actually an error because that's not a single byte.
jenrzzz has quit [Ping timeout: 258 seconds]
<apeiros> so python translates from the source file's encoding to utf-16?
<sonOfRa> I'd assume that, but I don't actually know THAT much python. This is just from memory from a time when I did more python
<sonOfRa> And if you're using python2 and not python3, all bets are off
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
DLSteve has joined #ruby
adavia has quit [Ping timeout: 258 seconds]
nikivi has joined #ruby
GodFather has quit [Ping timeout: 250 seconds]
<bonhoeffer> so how could I get "a0f0d3b96" into binary
<bonhoeffer> i'm playing with pack and unpack, but that doesn't seem to be what i want
<sonOfRa> is that a hex string?
<bonhoeffer> it needs to be an encryption key
<sonOfRa> We need to know what a0f0d3b96 is supposed to BE, before turning it into binary
ResidentBiscuit has quit [Quit: Critical Miss]
<bonhoeffer> the exact same datatype that OpenSSL::Cipher.new('aes-256-gcm').randomkey returns
<bonhoeffer> but i have the key stored as a string
<sonOfRa> For example, if it's supposed to be ASCII, you could write "\x61\x30\x66\x30\x64\x33\x62\x39\x36"
<sonOfRa> >> puts "\x61\x30\x66\x30\x64\x33\x62\x39\x36"
<ruby[bot]> sonOfRa: # => a0f0d3b96 ...check link for more (https://eval.in/694262)
DarthGandalf has quit [Read error: Connection reset by peer]
SeepingN has quit [Read error: Connection reset by peer]
<sonOfRa> But if it's supposed to be a hex string, you'd have "\a0\f0\d3\b9\06"
<sonOfRa> err, x after each \ there
<sonOfRa> >> puts "\xa0\xf0\xd3\xb9\x06"
<ruby[bot]> sonOfRa: # => ��ӹ ...check link for more (https://eval.in/694263)
tvw has quit [Remote host closed the connection]
symm-- has joined #ruby
SeepingN has joined #ruby
<sonOfRa> Which, of course, is just random bytes, and as such, "binary".
symm- has quit [Ping timeout: 252 seconds]
Snickers has quit [Quit: Snickers]
<sonOfRa> bonhoeffer: you need to understand what this "a0f0d3b96" IS in order to convert it into binary
DarthGandalf has joined #ruby
<bonhoeffer> agreed -- i just have it as a string (utf-8) encoded
<sonOfRa> Did you copy this key from somewhere? Did it say "use this hexadecimal key", or "use this STRING as a key", or something else?
<bonhoeffer> it is what i have as an environment variable (my real key is different) -- but i have an app that uses that key to encrypt data
dambles has joined #ruby
<bonhoeffer> i obviously need to look at the app and see what it is converted to
<sonOfRa> Note: We can do some deduction here. AES256 has a key size of 256 bits, so 32 bytes.
<sonOfRa> But I don't see ANY representation where "a0f0d3b96" is actually 32 bytes
<sonOfRa> So something is off here.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]