baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
ofedoren has joined #ruby
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
ofedoren has left #ruby ["WeeChat 2.2"]
wildermind has quit [Quit: Connection closed for inactivity]
dbz has joined #ruby
kurko_ has joined #ruby
ansraliant has joined #ruby
dbz has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
daemonwrangler has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 2.2]
daemonwrangler has joined #ruby
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
marmotini_ has joined #ruby
akaiiro has quit [Quit: Ping timeout (120 seconds)]
exchgr has quit [Quit: ZNC - http://znc.in]
akaiiro has joined #ruby
exchgr has joined #ruby
jcalla has quit [Ping timeout: 268 seconds]
dbz has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
djellemah_ has joined #ruby
dbz has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 276 seconds]
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
tdy has quit [Quit: WeeChat 2.2]
hays_ has joined #ruby
nchambers is now known as uplime
hays has quit [Ping timeout: 252 seconds]
esrse has joined #ruby
tdy has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
<al2o3-cr> name.bytes.zip([key].pack('H*').unpack('C*')).map { |x, y| x ^ y rescue x }.pack('C*').unpack1('H*') # anyone get it any shorter?
za1b1tsu has joined #ruby
dbz has joined #ruby
themsay has quit [Quit: Quit]
themsay has joined #ruby
code_zombie has quit [Quit: Leaving]
dbz has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ruby
arescorpio has joined #ruby
dbz has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
hays has joined #ruby
kurko_ has quit [Client Quit]
kurko_ has joined #ruby
hays_ has quit [Ping timeout: 244 seconds]
kurko_ has quit [Client Quit]
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
dbz has quit [Ping timeout: 268 seconds]
themsay has quit [Ping timeout: 244 seconds]
themsay has joined #ruby
dbz has joined #ruby
dbz has quit [Ping timeout: 245 seconds]
SuperL4g has joined #ruby
braincrash has quit [Quit: bye bye]
Sup3rLurk has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
<baweaver> Anything to do with packing and I'm basically worthless :P
rivalomega has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
marmotini_ has quit [Ping timeout: 245 seconds]
houhoulis has quit [Ping timeout: 244 seconds]
arescorpio has quit [Remote host closed the connection]
houhoulis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
reber has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
sarmiena_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
reber__ has joined #ruby
jetchisel has joined #ruby
reber has quit [Ping timeout: 244 seconds]
jetchisel has quit [Ping timeout: 276 seconds]
cow[moo] has quit [Quit: Textual IRC Client: www.textualapp.com]
cow[moo] has joined #ruby
houhoulis has quit [Remote host closed the connection]
cow[moo] has quit [Client Quit]
jetchisel has joined #ruby
za1b1tsu has joined #ruby
apeiros has quit [Remote host closed the connection]
MoritaShinobu has joined #ruby
ur5us has quit [Remote host closed the connection]
RougeR has joined #ruby
RougeR has quit [Ping timeout: 244 seconds]
akaiiro has quit [Remote host closed the connection]
kurko_ has joined #ruby
aupadhye has joined #ruby
kurko_ has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
LiftLeft has quit [Ping timeout: 276 seconds]
qolq3 has joined #ruby
qolq has quit [Ping timeout: 244 seconds]
qolq3 is now known as qolq
apeiros has joined #ruby
clemens3 has joined #ruby
ur5us has joined #ruby
LiftLeft has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
Tuor has joined #ruby
djellemah_ is now known as djellemah
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
kurko_ has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
themsay has quit [Ping timeout: 244 seconds]
GodFather has quit [Read error: Connection reset by peer]
aufi has joined #ruby
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
GodFather has joined #ruby
kurko_ has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
kurko_ has quit [Ping timeout: 252 seconds]
rivalomega has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
themsay has joined #ruby
themsay has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
<Bish> al2o3-cr: well surely you can't make that shorter
<Bish> but you can safe the precaculated stuff in a varialbe
<Bish> like they encoded key
<Bish> but you will have to do the .map { xor } thing which is the longest part, so most likely not
whysthatso has joined #ruby
vondruch has joined #ruby
nowhere_man has joined #ruby
<Bish> key = "hello".unpack("C*"); secret = "abc"; secret.each_slice(key.length).map { |chunk| chunk.each.with_index.map { |byte,idx| byte ^ key[idx] } }.flatten
<Bish> that's how i would do it.
<Bish> secret.bytes*
whysthatso has quit [Quit: whysthatso]
rafadc has quit [Quit: ZNC 1.7.0 - https://znc.in]
rafadc has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
whysthatso has joined #ruby
jetchisel has quit [Ping timeout: 244 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
tockitj has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
rivalomega has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
rivalomega has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
asphyxia has joined #ruby
kapil____ has joined #ruby
lxsameer has joined #ruby
DTZUZO_ has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
venmx has joined #ruby
<zenspider> al2o3-cr: use trinary op instead of rescue to remove 1 char :P
<zenspider> why is the key in hex?
teej has quit [Quit: Connection closed for inactivity]
<zenspider> scan+map is slightly shorter than pack+unpack
<zenspider> which puts it at 5 chars shorter
* zenspider shrugs
donofrio has joined #ruby
ur5us has joined #ruby
jetchisel has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
esrse has quit [Ping timeout: 272 seconds]
GodFather has quit [Ping timeout: 252 seconds]
yaiyaichu has quit [Remote host closed the connection]
whysthatso__ has joined #ruby
whysthatso has quit [Ping timeout: 276 seconds]
whysthatso__ is now known as whysthatso
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
GodFather has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
ldnunes has joined #ruby
lxsameer has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
alem0lars has quit [Remote host closed the connection]
kurko_ has joined #ruby
alem0lars has joined #ruby
<apeiros> al2o3-cr: name.bytes.zip([key].pack('H*').bytes.cycle).map { |x, y| x ^ y }.pack('C*').unpack1('H*')
<apeiros> 8h roundtrip time 😂
beefjoe has joined #ruby
rivalomega has joined #ruby
rivalomega has quit [Ping timeout: 272 seconds]
vondruch_ has joined #ruby
lxsameer has joined #ruby
sticaz has quit [Quit: sticaz]
troulouliou_div2 has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
vondruch_ is now known as vondruch
DTZUZO_ has joined #ruby
marmotini_ has joined #ruby
wildermind has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
BrainWork has quit [Ping timeout: 244 seconds]
csaunders has quit [Ping timeout: 272 seconds]
csaunders has joined #ruby
<al2o3-cr> apeiros: nice :)
aupadhye has joined #ruby
jcalla has joined #ruby
<al2o3-cr> apeiros: although it's off by two nibbles.
<al2o3-cr> zenspider: trinary op vs rescue, could you clarify?
Yxhuvud has joined #ruby
beefjoe has quit [Remote host closed the connection]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uplime has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
kurko_ has joined #ruby
nowhere_man has joined #ruby
Inline has quit [Remote host closed the connection]
sarmiena_ has joined #ruby
Inline has joined #ruby
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
nyov has joined #ruby
krawchyk has joined #ruby
aupadhye has quit [Quit: Leaving]
<nyov> Hello, can someone tell me how to use a postgres service definition with sequel? https://sequel.jeremyevans.net/rdoc/files/doc/opening_databases_rdoc.html
<nyov> with pg that is PG::Connection.new("service=test")
pushp0p has joined #ruby
<pushp0p> anyone have a good idea of what happens when a SystemStackError occurs? is this completely unrecoverable?
sarmiena_ has quit [Quit: sarmiena_]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
dviola has quit [Quit: WeeChat 2.2]
mr_rich101 has joined #ruby
<phaul> nyov: you can try Sequel.connect(driver_options: { service: test })
<phaul> nyov: I omitted the rest of the options, like :adapter, but you need those too
<al2o3-cr> pushp0p: ruby raises a SystemStackError to stop a stack overflow.
<nyov> phaul: thank you, let me try that
Rapture has joined #ruby
<nyov> phaul: no dice :(
<nyov> tried: Sequel.connect('postgresql://', driver_options: { service: 'test' }) / Sequel.connect(adapter: 'postgres', driver_options: { service: 'test' }) / Sequel.postgres(adapter: 'postgres', driver_options: { service: 'test' })
sarmiena_ has joined #ruby
<nyov> and combinations of Sequel.postgres('postgresql://?service=test', driver_options: { service: 'test' })
dviola has joined #ruby
<nyov> PG::ConnectionBad: could not connect to server: No such file or directory
marmotini_ has joined #ruby
fluxAeon has joined #ruby
urbanmonk has joined #ruby
urbanmonk has left #ruby [#ruby]
<phaul> nyov: I think you need to specify host / port / dbname / user / password as well
<nyov> phaul: no, that's the whole point of having a service file. to not need to specify those. See https://www.postgresql.org/docs/9.1/static/libpq-pgservice.html
<phaul> ah, ok, I see
rivalomega has joined #ruby
rivalomega has quit [Remote host closed the connection]
uplime has joined #ruby
<nyov> sadly I don't have this issue either with python or perl. it's only ruby - well sequel- not understanding the 'postgresql://?service=test' query URI
<nyov> phaul: thanks for the help
<phaul> yeah, sequel seems to assume that the connect() gets the connection info.
urbanmonk has joined #ruby
<phaul> it adds the port for instance in if its not there..
<phaul> you can try #sequel, maybe they can come up with some tricks
<nyov> okay, thanks
SeepingN has joined #ruby
_whitelogger has joined #ruby
Liothen has joined #ruby
cd has quit [Quit: cd]
vondruch has quit [Quit: vondruch]
noodle has joined #ruby
tubbo has joined #ruby
vondruch has joined #ruby
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #ruby
<al2o3-cr> pushp0p: guess what will happen lol ;) https://imgur.com/a/X6wzwFp
SolarAquarion has joined #ruby
SolarAquarion has quit [Excess Flood]
<apeiros> al2o3-cr: hm? how so? or do you have an example?
sarmiena_ has quit [Quit: sarmiena_]
<apeiros> (off by 2 nibbles)
SolarAquarion has joined #ruby
<al2o3-cr> should be 65 at the end instead of 8e
<apeiros> I don't have your input/output, so that alone doesn't really help me :D
<al2o3-cr> with name = "words to encode" key = "EB48F78A9F92F38216E63EACA011"
<al2o3-cr> pushp0p: this is what happens https://imgur.com/a/qGCzUMB
<apeiros> al2o3-cr: uh, yes, I see. you simply don't xor when your key is too short
<al2o3-cr> apeiros: yes.
<apeiros> I cycle the key. I haven't ever seen stopping to XOR. cycling is what's usually done. I thought your code was buggy there.
<apeiros> so it is truly intentional to only xor for the length of the key and leave the rest as-is?
<al2o3-cr> yes.
<apeiros> uncommon. just drop the cycle then and as zenspider suggested use ternary.
<apeiros> though the cycle was the main point of mine :D
<al2o3-cr> yes, which i though was nice :) as i always forget this method :p
<apeiros> well, ||0 is shorter, though
<apeiros> name.bytes.zip([key].pack('H*').bytes).map { |x, y| x ^ (y||0) }.pack('C*').unpack1('H*')
<apeiros> any ^ 0 == any
<al2o3-cr> that was i ended up doing ;)
nyov has left #ruby ["Razor error: Unshaved document could not be shaved"]
<al2o3-cr> i suppose its a lot better that rescuing x
<apeiros> a bazillion times
<al2o3-cr> i totally agree ;P
tubbo has quit [Quit: WeeChat 2.2]
tubbo has joined #ruby
tubbo has quit [Client Quit]
tubbo has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
tubbo has quit [Quit: WeeChat 2.2]
tubbo has joined #ruby
rivalomega has joined #ruby
apeiros has quit []
marmotini_ has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
rivalomega has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
marmotini_ has joined #ruby
clemens3 has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
xfbs has joined #ruby
rivalomega has joined #ruby
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xfbs has quit [Quit: byebye]
xfbs has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
argoneus has quit [Quit: No Ping reply in 180 seconds.]
urbanmonk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
argoneus has joined #ruby
urbanmonk has joined #ruby
Snowy has joined #ruby
asphyxia has quit [Ping timeout: 272 seconds]
xfbs has quit [Quit: afk]
Snowy has quit [Remote host closed the connection]
Tuor has quit [Quit: Konversation terminated!]
Snowy has joined #ruby
kurko_ has joined #ruby
urbanmonk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Snowy has quit [Ping timeout: 260 seconds]
akaiiro has joined #ruby
za1b1tsu has joined #ruby
ivanskie has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
urbanmonk has joined #ruby
desperek has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kurko_ has joined #ruby
cthulchu has joined #ruby
dbz has joined #ruby
troulouliou_div2 has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
Eiam has joined #ruby
eckhardt has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
darkhanb has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
tubbo has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
tubbo has joined #ruby
druonysus has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
tubbo has quit [Ping timeout: 246 seconds]
Snowy has joined #ruby
za1b1tsu has joined #ruby
tubbo has joined #ruby
xfbs has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
sameerynho has joined #ruby
tubbo has quit [Quit: WeeChat 2.2]
al2o3-cr has quit [Quit: WeeChat 2.2]
dbz has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
alem0lars has quit [Remote host closed the connection]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
dellavg_ has joined #ruby
za1b1tsu has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
za1b1tsu has quit [Ping timeout: 260 seconds]
reber__ has quit [Remote host closed the connection]
reber__ has joined #ruby
<cthulchu> I need some help, but without sending the code
tdy has quit [Ping timeout: 276 seconds]
<cthulchu> nah, it's ridiculous
<cthulchu> should ask someone in the office who uses Ruby
elcontrastador has joined #ruby
za1b1tsu has joined #ruby
whysthatso has quit [Ping timeout: 250 seconds]
<cthulchu> so in order to get all files that match the requirement, I use something like: Dir[File.expand_path("~/.Genymobile/Genymotion/deployed/#{device_name}/logcat*.txt")
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cthulchu> see how I can use * there?
<cthulchu> that * means .* effectively
<cthulchu> I would prefer having a normal regex syntax available there
<cthulchu> but what else do I have except the * there?
<cthulchu> do I have question marks?
za1b1tsu has quit [Ping timeout: 276 seconds]
<phaul> ri Dir.glob
<phaul> &ri Dir.glob
<cthulchu> amazing
<cthulchu> thanks!
<cthulchu> wonderful
<cthulchu> is it universalish or ruby-specific?
<cthulchu> is it being handled by Ruby or Ruby just passes it to a file system library who knows this syntax?
akem has quit [Ping timeout: 252 seconds]
<uplime> what do you mean a file system library? wouldn't it just use the normal syscalls to interact with the filesystem?
<Eiam> cthulchu: https://ruby-doc.org/core-1.9.3/Dir.html#method-c-glob "click to toggle source"
<Eiam> you can see the C
whysthatso has joined #ruby
venmx has quit [Ping timeout: 272 seconds]
clemens3 has joined #ruby
<al2o3-cr> cthulchu: if you use pry, install pry-doc. it now enables you to see C source code.
akaiiro has quit [Ping timeout: 252 seconds]
<Eiam> or that
cyberRodent has quit [Ping timeout: 245 seconds]
<baweaver> C what you can see in the C
<Eiam> fail
<Eiam> baweaver: C what you can C in the C
<Eiam> =)
<baweaver> C3?
bmurt has joined #ruby
<baweaver> Eh, it'd be more bang for our buck if we made it C4
<cthulchu> byebug extends pry, doesn't it?
<cthulchu> I use the former
<al2o3-cr> :)
akem has joined #ruby
za1b1tsu has joined #ruby
cyberRodent has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
phenom has quit [Ping timeout: 245 seconds]
<cthulchu> oh!
<cthulchu> my wife told me a cool thing about Python a few days ago
<cthulchu> she said that in Python they have some solition called notebook something and it allows them to rewrite one piece of code and rerun the whole thing without rerunning the context
<cthulchu> so if your script parses a huge xml and you just need to fix certain function, you can kinda freeze the context and make it run only one piece of code against the context
<cthulchu> very much like byebug, but byebug lets you do that in console
<cthulchu> and this thing lets you change the source code and then rerun everything without really rerunning the unchanged part
<cthulchu> it's not like I need it, but it sounds cool
phenom has joined #ruby
orbyt_ has joined #ruby
akaiiro has joined #ruby
Rapture has joined #ruby
<miah> byebug is stand alone, pry-byebug extends pry =)
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Ping timeout: 276 seconds]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
akaiiro has quit [Remote host closed the connection]
Rapture has joined #ruby
GodFather has joined #ruby
za1b1tsu has joined #ruby
bmurt has joined #ruby
kurko__ has joined #ruby
kurko_ has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 244 seconds]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
akaiiro has joined #ruby
jobewan has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
urbanmonk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> rawr
kurko__ has quit [Ping timeout: 250 seconds]
samort7 has joined #ruby
<Eiam> cthulchu: iPython iirc
<Eiam> a bit like mathematica notebooks
hahuang6- is now known as hahuang65
themsay has joined #ruby
GodFather has joined #ruby
dellavg_ has quit [Ping timeout: 268 seconds]
hays_ has joined #ruby
<hays_> anyone here on a mac and ever ran into this with rbenv? configure: error: cannot run C compiled programs.
Snowy has joined #ruby
<Eiam> I use ruby on macOS daily with rbenv, never seen
<Eiam> what are you calling?
<hays_> rbenv install 2.5.1
<hays_> that's running ./configure or something
<hays_> and I get that error. its as if commandline tools are corrupted or something
<Eiam> xcode-select --install
<Eiam> then try again
<hays_> xcode-select: error: command line tools are already installed, use "Software Update" to install updates
<hays_> im going to remove it manually...
<Eiam> can you launch xcode?
<hays_> I don't have xcode installed
<hays_> do I need it? I guess I assumed I just needed the commandline tools?
<Eiam> sometimes things don't finder the headers in the right place with just the CLTools
<Eiam> laying down the actual full xcode can resolve some of those path issues
<Eiam> thats more of a homebrew thing than an rbenv thing though
<hays_> let me try that.
mn3m has joined #ruby
reber__ has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jobewan has quit [Quit: jobewan]
za1b1tsu has joined #ruby
Dbugger has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
knight33 has joined #ruby
goldbox has joined #ruby
desperek has quit [Quit: xoxo]
s2013 has joined #ruby
mn3m has quit [Quit: mn3m]
goldbox has quit [Client Quit]
goldbox has joined #ruby
mn3m has joined #ruby
mn3m has quit [Remote host closed the connection]
patr0clus has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
patr0clus is now known as s3nd1v0g1us
Snowy has quit [Ping timeout: 244 seconds]
goldbox has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wildermind has quit [Quit: Connection closed for inactivity]
Snowy has joined #ruby
Dbugger has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
hays_ has quit [Ping timeout: 268 seconds]
Snowy has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whysthatso has quit [Quit: whysthatso]
Snowy has joined #ruby
nadir has joined #ruby
ldnunes has quit [Quit: Leaving]
Snowy has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
krawchyk has quit [Quit: krawchyk]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freemo has joined #ruby
<freemo> Hello again everyone, I'm back with a new ruby problem I can't crack
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<freemo> I'm usin ncurses with ruby over telnet (thanks to ncurses-ruby). I know it is using ncursesw on the backend since the borders of windows are correctly showing using box drawing characters, but if i try to print anything using addstr or printw then the unicode doesnt render properly (one sec ill screenshot)
Azure has quit [Remote host closed the connection]
Azure has joined #ruby
<freemo> Here is a screenshot: https://pasteboard.co/HICDHY7.png
cd has joined #ruby
<freemo> any ideas what I can try (I've tried everything I can think of)
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
code_zombie has joined #ruby
<freemo> i should also point out that it works fine if sending over the socket directly
clemens3 has quit [Ping timeout: 272 seconds]
venmx has joined #ruby
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has quit [Ping timeout: 252 seconds]
<freemo> I have a feeling im on my own for this one :(
Azure has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
<bhaak> you're wrong that line drawing characters mean that it properly shows unicode
mikecmpbll has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
<bhaak> they've been part of terminal character sets every since that's also why they got into unicode in the first place (when the rule of having previous usage was a hard one and not like now where we have the emoji disease)
SanguineAnomaly has quit [Ping timeout: 252 seconds]
<bhaak> I'm not sure what setting your terminal is missing. stty -a shows what the current settings are and unfortunately, there is a shitton of them.
<bhaak> the most obvious candidate would be istrip, clear high (8th) bit of input characters. but that's just a random guess
SanguineAnomaly has joined #ruby
<freemo> bhaak: well i know at first the box drawing characters werent working in ncurses. It wasnt until after i went to the ncursesw as a back end that those worked
shay has joined #ruby
<freemo> bhaak: also the characters im printing are also the box drawing characters
<freemo> bhaak: so your point is moot because the point is ncurses is drawing the same character as a border successfully that it is failing to print when i use addstr or printw
<shay> my god the XCode.xip file is uncompressing still after like 2 hours
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bhaak> freemo: in that case I would catch the network traffic and look what it is transferring.
<bhaak> or maybe there is even a debug setting to dump it before it gets sent off
<freemo> bhaak: i had the same problem when it wasnt over telnet
<freemo> bhaak: so its most likely something specific to ncurses im thinking
<bhaak> I'm a bit surprised that ncurses (without w) shouldn't have been able to draw them. you can easily check if your terminal supports the old way of drawing line characters. that's even independent of the character set: ruby -e 'puts "\e(0 j k l m n o p q r s t u v w x \e(B"'
shay has quit [Ping timeout: 260 seconds]
<bhaak> if it's also locally, then maybe your terminal is not properly set up? the TERM variable not corresponding to your terminal. although then you would like have problems with any ncurses program
<freemo> bhaak: well as i said the berders themselves work fine it only gives issue when using addstr
<freemo> bhaak: also if i just use puts it works fine too
shay has joined #ruby
<freemo> bhaak: in C this issue can arrize if the wrong locale is set it seems though not sure how to set that in ruby
shay is now known as hays_
RougeR has joined #ruby
daemonwrangler has quit [Ping timeout: 244 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fluxAeon has joined #ruby
daemonwrangler has joined #ruby
s2013 has joined #ruby
knight33 has joined #ruby
knight33 has quit [Client Quit]
<Radar> It's not like the coding tests last week :P
<Radar> Whoops
<Radar> Wrong channel
* Radar is not here
<freemo> bhaak: no ideas then?
za1b1tsu has joined #ruby
<bhaak> nope. as I said, the output looks like some broken terminal settings but then the other, working borders don't make sense
za1b1tsu has quit [Ping timeout: 246 seconds]
marmotini_ has quit [Ping timeout: 252 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
s3nd1v0g1us has quit [Read error: Connection reset by peer]
code_zombie has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
kurko_ has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
<al2o3-cr> freemo: have you tried changing locale and seeing if addstr works?
uplime has quit [Quit: WeeChat 2.2]
rkoller has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
orbyt_ has joined #ruby
xfbs has quit [Quit: afk]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hays_ has quit [Ping timeout: 272 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rivalomega has quit []
asphyxia has joined #ruby