<alex``>
ImAHopelessDev_gitlab: I’m not native english, what is the difference in the order websocket <-> shell?, and how would you describe it in a short description for github
<alex``>
absolutejam_github: socket is really different than websocket no?
<alex``>
we lost something in the name nan?
<FromGitter>
<absolutejam_gitlab> eh, you gotta take some liberties when naming things
<FromGitter>
<absolutejam_gitlab> shlskt.io
<FromGitter>
<absolutejam_gitlab> remove vowels, make it hipster
<alex``>
btw is it the same absolutejam than kakoune? ;o
<alex``>
and for the 'short description'?
<FromGitter>
<absolutejam_gitlab> in IRC?
<alex``>
dunno
absolutejam has joined #crystal-lang
<alex``>
I know an absolutejam in the kakoune community
<FromGitter>
<absolutejam_gitlab> yeah but I haven't opened IRC in a while, oops
<FromGitter>
<ImAHopelessDev_gitlab> @alex, dunno. rolls better off the tongue for me. plus, `websocket` being the first word implies that's the essential part of your app maybe? which is a core thing, without websocket it wouldn't work. i don't know lol
<alex``>
makes sense
<alex``>
hm
<alex``>
I have a question about websocket to execute shell commands
<alex``>
the idea is to have surf to execute from javascript ~/.surf/script.js externals commands on my system
<alex``>
but if a webpage have a js code connecting on localhost, port, it will be able to execute external commands on my machine no?
<alex``>
how can I secure the thing?
<alex``>
to only me be able to exchange messaging through websocket
<FromGitter>
<ImAHopelessDev_gitlab> yeah not sure about internals but could be a security issue if the commands are not cleaned/parsed. i guess, maybe an option to create a whitelist instead. only allow certain commads
<FromGitter>
<absolutejam_gitlab> I know very little about how websockets actually work, but can't you have a standardised format - eg. accept JSON - and a router/validator that parses them?
<FromGitter>
<absolutejam_gitlab> I'd be wanting some hardcore security around this though, otherwise it's just wide-open RCE
<FromGitter>
<ImAHopelessDev_gitlab> yea lol ^^^
<alex``>
ImAHopelessDev_gitlab: I want to execute any shell commands
<alex``>
but want to be secure
<FromGitter>
<ImAHopelessDev_gitlab> hmmm
<alex``>
if I navigate on a page, and it use javascript localhost connection + port, it will be able to execute commands on my system
<alex``>
I don't have this problem on chrome and firefox because they have their own api
<oprypin>
@jwoertink: no, on latest SFML :D
<alex``>
but on surf browser, there is no way to execute shell commands from javascript with an api
<alex``>
so I thought about websocket
<alex``>
but could be a terrible idea
rohitpaulk has joined #crystal-lang
absolutejam has quit [Ping timeout: 276 seconds]
absolutejam has joined #crystal-lang
<FromGitter>
<j8r> alex: depends, abbreviations are everywhere on the CLI
<FromGitter>
<j8r> in code, it doesn't hurt to have longer names
<FromGitter>
<Blacksmoke16> elliotize: you can share variables within the same macro "scope", but there isn't a way to break out logic into reusable functions atm
Vexatos has quit [Quit: ZNC Quit]
rohitpaulk has quit [Quit: Ping timeout (120 seconds)]
masterdonx2 has joined #crystal-lang
MasterdonX has quit [Ping timeout: 246 seconds]
masterdonx2 has quit [Ping timeout: 265 seconds]
pf_ has quit [Ping timeout: 240 seconds]
firejox has quit [Quit: WeeChat 2.5]
MasterdonX has joined #crystal-lang
masterdonx2 has joined #crystal-lang
MasterdonX has quit [Ping timeout: 276 seconds]
Human_G33k has joined #crystal-lang
Human_G33k has quit [Remote host closed the connection]
Human_G33k has joined #crystal-lang
HumanGeek has quit [Ping timeout: 240 seconds]
pf_ has joined #crystal-lang
duane has joined #crystal-lang
DTZUZO has joined #crystal-lang
<FromGitter>
<ilanpillemer> ```code paste, see link```
<FromGitter>
<Blacksmoke16> whats the error
<FromGitter>
<tenebrousedge> D: you broke it!
<FromGitter>
<ilanpillemer> This is just from trying to build it from master
<FromGitter>
<ilanpillemer> I did nothing. I just pulled from master and tried
<FromGitter>
<Blacksmoke16> it would be towards the top above the `??`
<FromGitter>
<ilanpillemer> I wrote a crystal formatter for the acme editor so that crystal files get reformatted on save. Is there someone I should add this so others can know about it?
<FromGitter>
<kinxer> Maybe the forum?
ht_ has quit [Remote host closed the connection]
<FromGitter>
<ilanpillemer> the wiki?
<FromGitter>
<ilanpillemer> I added a link to it in the wiki section for editors
absolutejam has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter>
<ilanpillemer> how do you convert an array of chars to a string?
<FromGitter>
<Blacksmoke16> arr.map &.to_s?
<FromGitter>
<Blacksmoke16> or like join them into a string?
<FromGitter>
<ilanpillemer> yes
<FromGitter>
<ilanpillemer> turn a string into chars.. do some stuff.. convert back to a string
<FromGitter>
<Blacksmoke16> @ImAHopelessDev_gitlab mostly my serialization shard and some other stuff here and there
<FromGitter>
<ImAHopelessDev_gitlab> @Blacksmoke16 nice you work on that a lot huh
<FromGitter>
<ImAHopelessDev_gitlab> kinda like my game ;p
<FromGitter>
<ImAHopelessDev_gitlab> you prob got more proper code in serialization shard than my entire gameserver 😆
<FromGitter>
<Blacksmoke16> is taking a while yea, serialization side of it is done for the most part. doing deserialization now
<FromGitter>
<ImAHopelessDev_gitlab> that i've been working on for year+ (well, 2 if you count nodejs years). and you only been doing serialization shard for 6 months or so right
<FromGitter>
<ImAHopelessDev_gitlab> oh god
<FromGitter>
<Blacksmoke16> more like just 2 months for the refactor
<FromGitter>
<ImAHopelessDev_gitlab> ic
<FromGitter>
<ImAHopelessDev_gitlab> wait, what did you have to refactor?
<FromGitter>
<ImAHopelessDev_gitlab> conform code to new crystal updates?
<FromGitter>
<ImAHopelessDev_gitlab> or api overhaul or something
<FromGitter>
... regarding pointers was really well-written and much better than any stackoverflow answer i've ever read. i want to buy/read a book by brian/asterite or people who are well versed in crystal. i think it would be very insightful.
<FromGitter>
<ImAHopelessDev_gitlab> cya you tomorrow @Blacksmoke16