vikaton has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 246 seconds]
jemc has joined #crystal-lang
johndescs has quit [Ping timeout: 244 seconds]
johndescs has joined #crystal-lang
jemc has quit [Ping timeout: 246 seconds]
baweaver is now known as lemur
lemur is now known as baweaver
jemc has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 244 seconds]
jemc has quit [Ping timeout: 268 seconds]
<FromGitter>
<bararchy> @silmanduin66 we have a problem here ;)
<FromGitter>
<bararchy> for a moment I was like "when did I wrote this?" hahah
<FromGitter>
<bew> oooh it got me too x)
ashirase has quit [Ping timeout: 245 seconds]
ashirase has joined #crystal-lang
DTZUZO has quit [Ping timeout: 244 seconds]
<FromGitter>
<girng> i kept doing socket.remote_address.to_s, then using that IP to connect to the ip remotely LOL. but that actually has the internal/local port with it. so i just do socket.remote_address.address. then send over the port
<FromGitter>
<girng> herp derp girng let's gooooo
<FromGitter>
<silmanduin66> @bararchy :-D
<FromGitter>
<j8r> mps do you know why /opt isn't present on Alpine but /srv does?
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter>
<diegogub_gitlab> Hello all! Any idea how to force Enum to convert to string in to_json?
spacemanspam has joined #crystal-lang
<FromGitter>
<Blacksmoke16> what does it do now?
<FromGitter>
<Blacksmoke16> ah
<FromGitter>
<diegogub_gitlab> returns a Int, which is logically what a Enum is..just wondering if it's possible to change behavior for a more readable json
DTZUZO has joined #crystal-lang
<FromGitter>
<Blacksmoke16> not sure without overriding the to_json method
<FromGitter>
<diegogub_gitlab> @Blacksmoke16 thanks..I guess I will have to do that
<FromGitter>
<bew> You can put the custom to_json on specific enums
<FromGitter>
<bew> @AmberSaber no problem
<FromGitter>
<AmberSaber> btw?
<FromGitter>
<Blacksmoke16> by the way
<FromGitter>
<AmberSaber> thank you
<FromGitter>
<bew> Ty
<FromGitter>
<bew> 😂
jemc has joined #crystal-lang
jemc has quit [Client Quit]
jemc has joined #crystal-lang
<FromGitter>
<j8r> btw - by the way. bew - by end way
<FromGitter>
<j8r> 😀
powerbit has quit [Ping timeout: 272 seconds]
jemc has quit [Remote host closed the connection]
<FromGitter>
<bew> Ahem... X)
<FromGitter>
<j8r> is there MySQL gurus here? How can I set a right for an user to only be able to drop itself?
<FromGitter>
<Blacksmoke16> drop itself?
<FromGitter>
<Blacksmoke16> like no permissions?
Raimondi has quit [Ping timeout: 240 seconds]
<FromGitter>
<j8r> The user can drop its single database, that's fine
<FromGitter>
<j8r> It can't connect anymore, but there is still a useless user lying there
<FromGitter>
<j8r> I would like the user `abc` to be able to perform `DROP USER IF EXISTS 'abc'@'::1'`
<FromGitter>
<j8r> and only for `abc`, not other users
<FromGitter>
<j8r> don't know if possible
<FromGitter>
<Blacksmoke16> yea im not sure if you can drop yourself
<FromGitter>
<Blacksmoke16> i cant imagine that working
<FromGitter>
<j8r> But I can drop the database where I'm connected
<FromGitter>
<j8r> or at least, sis there a way to mark myself as removable or something like that?
<FromGitter>
<Blacksmoke16> cant you just login as admin account and drop the user?
<FromGitter>
<Blacksmoke16> or you going to be creating users for others and only want them to be able to do that?
<FromGitter>
<j8r> For me its simpler and more secure if the user can do that
<FromGitter>
<Blacksmoke16> `To use DROP USER, you must have the global CREATE USER privilege, or the DELETE privilege for the mysql system database.` so looks like you just have to give them `DELETE` and they should be able to drop themselves
<FromGitter>
<Blacksmoke16> at least the docs dont call out and say you cant do that
<FromGitter>
<j8r> so the user can also delete other users :/
<FromGitter>
<Blacksmoke16> yea :/
<FromGitter>
<j8r> But that's not too bad, there is no database the remaining user can access to
<FromGitter>
<Blacksmoke16> which was to create a procedure that validates that the user can drop personX, and just give them permission to run that vs actually drop the user
<FromGitter>
<j8r> wow o.o
<FromGitter>
<j8r> Do I need to create on procedure for each new user?
<FromGitter>
<Blacksmoke16> would create it as root account
<FromGitter>
<j8r> nvm, ok
<FromGitter>
<Blacksmoke16> and just give each new user permission to run it like he says
<FromGitter>
<j8r> I may use its solution, maybe too complicated. Thanks for helping @Blacksmoke16 :)
<FromGitter>
<Blacksmoke16> np, good luck
<mps>
j8r: /opt is for packages which are not in distribution, i.e. third party, and number of such packages for Alpine is small, if they exists at all
<mps>
and /srv is standard by FHS, iirc
jemc has joined #crystal-lang
jemc has quit [Ping timeout: 245 seconds]
spacemanspam has joined #crystal-lang
jemc has joined #crystal-lang
FromGitter has quit [Read error: Connection reset by peer]
junland has quit [Quit: Disconnected.]
junland has joined #crystal-lang
<jokke>
54
<jokke>
whops
jemc has quit [Quit: WeeChat 2.2]
jemc has joined #crystal-lang
spacemanspam has quit [Read error: Connection reset by peer]
spacemanspam has joined #crystal-lang
spacemanspam has quit [Read error: Connection reset by peer]
<robacarp>
has anyone tinkered with compiling crystal sans GC for use in embedded?
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]