fphilipe_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ur5us_ has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has joined #ruby
schickung_ has joined #ruby
schickung has quit [Ping timeout: 272 seconds]
schickung_ is now known as schickung
DTZUZO has quit [Ping timeout: 244 seconds]
RushPL has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 244 seconds]
vondruch has joined #ruby
chalkmonster has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
AJA4350 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
chalkmonster has quit [Quit: WeeChat 2.5]
schickung_ has joined #ruby
jottr has joined #ruby
schickung has quit [Ping timeout: 258 seconds]
schickung_ is now known as schickung
jottr has quit [Ping timeout: 272 seconds]
schickung_ has joined #ruby
schickung has quit [Ping timeout: 272 seconds]
schickung_ is now known as schickung
dionysus69 has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
tsujp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
glosoli has quit [Ping timeout: 246 seconds]
amateur_rubyist has joined #ruby
schickung has quit [Quit: schickung]
jenrzzz has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
yasumi2136_ has joined #ruby
yasumi2136 has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
RiPuk_ has quit [Ping timeout: 272 seconds]
Swyper has quit [Remote host closed the connection]
yasumi2136_ has quit [Remote host closed the connection]
RiPuk has joined #ruby
charon77 has joined #ruby
grilix has joined #ruby
jcalla has quit [Ping timeout: 245 seconds]
lalitmee has quit [Remote host closed the connection]
nahra has joined #ruby
Tuor has joined #ruby
liKe2k1- is now known as liKe2k1
<Tuor>
Hi, i wrote a little shell script which creates folders on a target system (container image build). Now I want to replace it, because only creating folders with mkdir -p is not the only thing I need any more: I want to be able t set permissions and owners. I tried to write it in ruby and it seems to work. What do you think, do you have any recommandations what I should change? https://dpaste.de/O2q0
<Tuor>
I changed from bash to ruby, because I wanted to be able to have structures, not only a dumm list or "associativ array" (comparable to a Hash with only Strings as values).
<Tuor>
phaul: thx!
Swyper has joined #ruby
banisterfiend has joined #ruby
tsujp has joined #ruby
<phaul>
personally I would use strings for the file names, not symbols
<phaul>
'/tmp/delete.me/delete.me' => # just use the rocket hash syntax and the key will be a string
RushPL has quit [Ping timeout: 252 seconds]
<Tuor>
phaul: please explain why you would do that.
banisterfiend has quit [Client Quit]
banisterfiend has joined #ruby
RushPL has joined #ruby
<phaul>
to me file names are naturally represented with the String type. You can have many different file names, their concatenation, String manipulations all make sense. For :mode or :owner Symbols are good.
<phaul>
as text manipulation doesn't make sense in that context
<Tuor>
I know I can use strings as keys in a hash. I used symbols, becaus I don't expect this foldername/folderpath to change and because I remember hash should use symbols not strings... I'm open to learning why not in this case. ;)
schickung has joined #ruby
<Tuor>
hmm
<phaul>
:mode + :owner is not valid as it shouldn't be
<Tuor>
Ahhh. Stuff like '/var/log/' + 'myservice'?
<phaul>
yeah
<Tuor>
hmm there is a point to it. :) thx.
<Tuor>
https://dpaste.de/kdYE changed it and added the possibility to not set permissions or owner or group
<NL3limin4t0r>
Tuor: If you don't expect the filename to change it probably fine, but I agree with phaul in that I would also use a string in that context. Using a symbol is like using an enum in other languages. They will be added to the `Symbol.all_symbols` list and will remain loaded during the entirety of your program.
DTZUZO has joined #ruby
<NL3limin4t0r>
In this short script it doesn't really matter though.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpanarch1st_ has joined #ruby
Esa_ has joined #ruby
<Tuor>
NL3limin4t0r: OK thx.
banisterfiend has joined #ruby
vondruch has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomas_25 has joined #ruby
<thomas_25>
I'm writing an extension for SketchUp. I want it to have copy to clipboard functionality. To do that I can use pbcopy command line tool in Mac and clip command line tool in Windows. (I'm open for better suggestions but there's none apparently). The problem is these methods do work but in Windows a cmd.exe windows is seen briefle -- which is ugly. Any way that I can fork a process but not have cmd.exe window in Windows?
lucasb has joined #ruby
<adam12>
thomas_25: Can you use a gem in your Sketchup plugin? There are gems that interact with the Win32 clipboard API without shelling out to clip.
mre- has joined #ruby
<adam12>
thomas_25: You might even be able to just call the Win32 API's directly using FFI tho that might be a bit advanced.
jcalla has joined #ruby
<thomas_25>
suppsedely you can use gems but if it involves any compilation it will fail
<thomas_25>
the shortest path for me right now is not to launch a visible cmd.exe is that possible with any variants ? (system, io.popen, etc)
<adam12>
thomas_25: I've never seen one. Do you know if it's even possible on Windows (discarding Ruby as the callee)?
<thomas_25>
hmm good question. can't recall. it's been a decade since i've used windows
queip has quit [Ping timeout: 245 seconds]
schneider has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
<thomas_25>
if anyone has access to a windows machine with a dev toolchain, they might try (i don't right now)
GodFather__ has joined #ruby
<adam12>
I'm on Windows but don't have Ruby installed in the Windows portion, since I develop in a FreeBSD VM.
<adam12>
But if you thought you were close on something I could try to give it a test. I wouldn't be able to sit around and debug it tho.
<Tuor>
I changed it a little, should be a little bit better to read... https://dpaste.de/CyWv
john2496 has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
blizzow has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
conta1 has joined #ruby
galaxie has joined #ruby
grilix has quit [Ping timeout: 268 seconds]
blizzow has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
blizzow has joined #ruby
queip has joined #ruby
philip_rhoades has quit [Quit: Leaving]
jottr has quit [Ping timeout: 245 seconds]
sgen has joined #ruby
jottr has joined #ruby
conta1 has quit [Quit: conta1]
emptyflask has joined #ruby
conta1 has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 244 seconds]
KeyJoo has joined #ruby
sgen has quit [Ping timeout: 250 seconds]
ElFerna has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
thomas_25 has joined #ruby
Nicmavr has joined #ruby
vondruch has joined #ruby
mre- has quit [Quit: Lost terminal]
ellcs has quit [Ping timeout: 258 seconds]
Fr4n has quit [Ping timeout: 248 seconds]
conta1 has quit [Quit: conta1]
jenrzzz has joined #ruby
Esa_ has quit []
<entel>
thomas_25: if its windows 10 debian and ubuntu are in the microsoft store. i usually use cygwin but if i have problems with gems i fall back on that
<rubydoc>
stderr: /home/carcin/carcin/sandboxes/ruby/sandboxed_ruby2.6.0: error while loading shared libraries:... check link for more (https://carc.in/#/r/7ghx)
<leftylink>
great
tokumada has quit [Read error: Connection reset by peer]
john2496 has joined #ruby
<nius>
anybody have experience with developing in WSL with RubyMine?
<phaul>
leftylink: I am aware of the situation.. jhass is in here and he is the one who did carc.in.. all I can do is ping him from time to time
<phaul>
jhass, if you see this.. can you please take a look in to ruby 2.6 being broken with carc.in? thanks
dragonpedro1976 has left #ruby [#ruby]
<phaul>
or we decide to ditch carc.in, but Im not sure what else to replace it with
amateur_rubyist has joined #ruby
greengriminal has quit [Quit: Leaving]
blizzow has joined #ruby
john2496 has quit [Remote host closed the connection]
john2496 has joined #ruby
<phaul>
I also kind of liked the simplicity of ui + the web API with stdin/stderr strings in json response
jottr has joined #ruby
ellcs has joined #ruby
ElFerna has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
gix has quit [Quit: Client exiting]
banisterfiend has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
john2496_ has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
sylario has quit [Quit: Connection closed for inactivity]
ellcs has quit [Ping timeout: 264 seconds]
john2496 has quit [Ping timeout: 272 seconds]
gix has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
tdy has joined #ruby
SeepingN has joined #ruby
blottoface has joined #ruby
amateur_rubyist has quit [Remote host closed the connection]
amateur_rubyist has joined #ruby
s3nd1v0g1us has joined #ruby
tokumada has joined #ruby
blizzow has quit [Ping timeout: 244 seconds]
amateur_rubyist has quit [Ping timeout: 268 seconds]
blottoface has quit [Ping timeout: 272 seconds]
ElFerna has quit [Remote host closed the connection]
ElFerna has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
bambanx has joined #ruby
lxsameer has quit [Ping timeout: 258 seconds]
bambanx has quit [Client Quit]
john2496 has joined #ruby
greengriminal has joined #ruby
john2496_ has quit [Ping timeout: 258 seconds]
cow[moo] has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
bambanx has joined #ruby
reber has quit [Remote host closed the connection]
bambanx has quit [Client Quit]
john2496 has quit [Ping timeout: 248 seconds]
amateur_rubyist has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
involans has quit [Quit: involans]
tokumada has quit [Ping timeout: 245 seconds]
thomas_25 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bitwinery has quit [Ping timeout: 268 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]