code logs -> 2018 -> Mon, 22 Oct 2018< code.20181021.log - code.20181023.log >
--- Log opened Mon Oct 22 00:00:11 2018
00:01 VirusJTG [VirusJTG@Nightstar-q9r0g8.clt.hostedsolutions.com] has joined #code
00:01 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
00:04 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
00:04 mode/#code [+o himi] by ChanServ
00:27 VirusJTG [VirusJTG@Nightstar-q9r0g8.clt.hostedsolutions.com] has quit [[NS] Quit: Leaving]
00:28 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
00:28 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
01:28 Degi [Degi@Nightstar-s2ncdu.dyn.telefonica.de] has quit [Connection reset by peer]
01:29 Kindamoody is now known as Kindamoody[zZz]
01:36 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection reset by peer]
01:37 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
01:37 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
01:37 mac [macdjord@Nightstar-grpbnp.mc.videotron.ca] has joined #code
01:37 mode/#code [+o mac] by ChanServ
01:39 macdjord [macdjord@Nightstar-grpbnp.mc.videotron.ca] has quit [Operation timed out]
04:39 celticminstrel is now known as celmin|sleep
04:43 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:43 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:43 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
04:43 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:08 Derakon is now known as Derakon[AFK]
05:14 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:28 Kindamoody[zZz] [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
05:42 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
05:42 mode/#code [+o Kindamoody|autojoin] by ChanServ
05:58
<&Reiver>
I recall hearing numbers (that are far too round to be true, but probably a 'teaching you orders of magnitude' deal) were that Napoleonic guns could manage, at best, 5km, and at 500m/s that resulted in a roughly 2.5m deflection at the most extreme...
05:58
<&Reiver>
...and if you're firing a napoleonic era gun 5km... let's just say your gunnery corps would be /thrilled/ to have to worry about a measurable 2.5m issue in accuracy.
06:04 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Connection reset by peer]
06:08
<&Reiver>
They were definitely accounting for it by WWI, however, especially with the big ones.
06:10 himi [sjjf@Nightstar-qfq.974.56.130.IP] has joined #code
06:10 mode/#code [+o himi] by ChanServ
06:38 himi [sjjf@Nightstar-qfq.974.56.130.IP] has quit [Ping timeout: 121 seconds]
06:40 himi [sjjf@Nightstar-qfq.974.56.130.IP] has joined #code
06:40 mode/#code [+o himi] by ChanServ
06:59 himi [sjjf@Nightstar-qfq.974.56.130.IP] has quit [Ping timeout: 121 seconds]
07:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:23 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
07:36 gnolam_ [lenin@Nightstar-ego6cb.cust.bahnhof.se] has joined #code
07:39 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:39 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:40 gnolam [lenin@Nightstar-ggccfi.cust.bahnhof.se] has quit [Ping timeout: 121 seconds]
08:53 Degi [Degi@Nightstar-o03ijg.dyn.telefonica.de] has joined #code
10:03 Degi [Degi@Nightstar-o03ijg.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
11:11 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
11:11 mode/#code [+o himi] by ChanServ
12:11 Kindamoody|autojoin is now known as Kindamoody
13:12 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
13:56 celmin|sleep is now known as celmin|away
15:21
< [R]>
Bash question: a less stupid way to do: echo $(seq ${f} | sed 's/[0-9]*/| l |/g') | sed 's/| |/|/g'?
15:21
< [R]>
(Where f is a usually single-digit integer)
15:28
< [R]>
4 would be "| l | l | l | l |"
15:42
< simon_>
$ perl -sE 'say "| l " x $n . "|"' -- -n=5
15:42
< simon_>
| l | l | l | l | l |
15:43
< simon_>
-s enables passing arguments to the script via command-line (so you avoid double-escaping), and -E enables 'say' which is just a fancy print.
15:43
< simon_>
sorry, -e would be evaluate expression in argument, and -E is "experimental evaluation" (some more features enabled). 'say' just adds newline.
15:45
< simon_>
I have a question. I'm making a page at work that depends on a public API we're also exposing. the API has keys. our external subscribers use the API in their back-ends, but the page I'm making is actually a VueJS page, so I'm doing API requests in the front-end, which means I'm exposing my API key.
15:46
< simon_>
what's the recommended way of doing this stuff safely? should I restrict domain access to each token and hope that people don't snatch API keys of others and fake the referer in their requests?
15:47
< simon_>
otherwise, I guess, you need something like a shared secret, like RSA. where my back-end sends a temporary token or something like that. but I can't believe that's very common for public APIs. but meh...
15:48
< simon_>
[R], $ perl -se 'print "| l " x $n . "|\n"' -- -n=5
15:48
< simon_>
| l | l | l | l | l |
15:48
< simon_>
[R], want a more BASH-ish way than just calling another language? :D
15:49
< [R]>
Kind of yeah
15:49
< [R]>
I'm thinking I need to rewrite this entire script in something else anyways
15:49
< [R]>
But ATM I don't have time for that
15:51
< simon_>
$ printf '| l %.0s' {1..5}; printf '|'
15:51
< simon_>
{1..5} is bash expansion.
15:52
< simon_>
reminds me of this old t-shirt: https://www.thinkgeek.com/product/374d/
15:54
< simon_>
or: printf '| l %.s' $(seq 1 $n); print '|'
15:54
< simon_>
since those expansions apparently don't work with variables.
15:54
< simon_>
https://stackoverflow.com/questions/5349718/how-can-i-repeat-a-character-in-bash
15:55
< [R]>
Yeah, that was my main issue :p
15:55
< [R]>
I knew about {1..3}
15:55
< [R]>
But I had no means of knowing what "3" would be
16:02
< [R]>
Yeah... nested loops and text processing in bash is D:
16:02
< [R]>
(I'm generating TeX files from multiple CSVs)
16:11
< gnolam_>
https://imgur.com/gallery/QrCGfZZ
16:11
< gnolam_>
Way, way too accurate. :-/
16:11 gnolam_ is now known as gnolam
16:11 mode/#code [+o gnolam] by ChanServ
16:34
< [R]>
Yeah. Totally rewritting this shit
16:34 * [R] just spent the last hour debugging a counter loop
16:47
<&McMartin>
R: I think Diffie-Hellman EC25519 is still the easiest acceptable shared-secret generator
16:48
< [R]>
What are you responding to?
16:48
< [R]>
I meant that's interesting, just seems like you're replying to a really old conversation
16:49 * Vornicus uses a handcart to rotate McMartin towards simon_
16:49
<&McMartin>
Oh yes, that was at simon_, not you
16:49
<&McMartin>
ANd yeah, I only just got online after about 18 hours off
16:50
<&McMartin>
"libsodium is still really good" is I guess a more general observation
17:00
< [R]>
http://point-at-infinity.org/ssss/
17:03
<&McMartin>
Neat
17:17 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:33 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
19:43 Kindamoody is now known as Kindamoody|afk
19:45 Degi [Degi@Nightstar-o03ijg.dyn.telefonica.de] has joined #code
20:42 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:24 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
21:24 mode/#code [+o Reiv] by ChanServ
22:42
< [R]>
"I cant browse my own network but i can browse the web. Whats wrong with qemu?"
22:53 himi [sjjf@Nightstar-al7.pjf.56.130.IP] has joined #code
22:53 mode/#code [+o himi] by ChanServ
22:55
<@gnolam>
Is that a koan?
22:58 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
22:58
<&jeroud>
I love that such a thing exists. I don't love having to copy/paste three out of five passwords from our password manager to unseal Vault every time we need to restart it.
22:59
<&jeroud>
(Regarding ssss.)
23:05
< [R]>
Does it actually use ssss?
23:06
< [R]>
Eitherway, if you store all three in the same place, it seems kind of pointless
23:14 Kindamoody|afk [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
23:14 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
23:14 mode/#code [+o Kindamoody|autojoin] by ChanServ
23:17 Kindamoody|autojoin is now known as Kindamoody
--- Log closed Tue Oct 23 00:00:12 2018
code logs -> 2018 -> Mon, 22 Oct 2018< code.20181021.log - code.20181023.log >

[ Latest log file ]