#soylent | Logs for 2019-12-31
« return
[00:01:56] <AndyTheAbsurd> Maybe my brain just has a hard time parsing it (possibly because I haven't used it enough)? It's certainly better than XML, but just about ANYTHING is better than XML!
[00:02:01] <AndyTheAbsurd> ¯\_(ツ)_/¯
[00:07:59] <FatPhil> "YAML, on the other hand, is even more crap than XML" ... "It's certainly better than XML, but just about ANYTHING is better than XML!"
[00:08:14] <AndyTheAbsurd> So I'm inconsistent. :)
[00:09:08] <FatPhil> it's a one-thing-per-line format. I like that.
[00:09:33] <FatPhil> it means you can make a 5-line script to parse it to extract fields from records.
[00:10:08] <AndyTheAbsurd> Pass XML or JSON through an appropriate formatter, and either of those formats will be one-thing-per-line as well.
[00:10:19] <AndyTheAbsurd> jq, jshon, and xmllint are your friends.
[00:10:30] <FatPhil> (on the assumption that you don't have nested structures, but note how I said "simple things where it's appropriate"
[00:10:37] <AndyTheAbsurd> I guess not needing to pass it through a formatter does have SOME advantage.
[00:11:10] <FatPhil> indeedydoody
[00:14:18] <FatPhil> I keep my beer reviews in YAML, and if I'm desperate I do a magical combo of 2 or 3 context greps in a pipe to do effectively a sql query
[00:14:55] <FatPhil> having said that, sometimes "less" and "/" are more efficient.
[00:16:38] <Bender> [SoylentNews] - Ryuk Ransomware Stops Encrypting Linux Folders - https://sylnt.us - crackers-with-morals
[00:16:49] <FatPhil> (where "/" is the command within "less")
[00:20:51] <AndyTheAbsurd> less is fantastic
[00:21:06] <AndyTheAbsurd> you can use "less +F" instead of "tail -f"
[00:21:19] <AndyTheAbsurd> (yes the F has to be uppercase)
[00:21:44] <AndyTheAbsurd> and then ^C and scroll backwards, then F to return to tail-follow mode.
[00:22:38] <FatPhil> is that an alternative to tail -F | less?
[00:22:52] <FatPhil> oh, you said that!
[00:23:04] <FatPhil> sorry, herp derp
[00:24:42] <FatPhil> never used that - I have a *lot* of tail -f | less's running at the moment in various terminals - that could be very useful.
[00:24:48] <AndyTheAbsurd> you could do that, but you'd only be able to scroll back as far as tail gave. less +F would give you access to the whole file - so if there's actually something interesting in what would have been tail's initial output, you don't have to exit and do another command to go look at it.
[00:30:04] <FatPhil> I might be a bit fuzzled at the momemnt, but my less gives me access to all of the *input*, and that input isn't even a file. I've been to position 5000% in a pager before, I'm sure, as the input had unknown size at the first time it tried to estimate where I was scrolling back to.
[00:30:40] -!- Runaway1956 has quit [Remote host closed the connection]
[00:37:12] <AndyTheAbsurd> right, but if you're piping the output of tail -f into less, you're going to start with whatever the default output of tail is (20 lines, I think). If there's something interesting but incomplete in that (because it's the last few lines of a stack trace), just using less directly lets you access earlier in the file without typing in a new command.
[00:38:03] <AndyTheAbsurd> https://twitter.com
[00:38:04] <systemd> ^ 03Twitter ( https://mobile.twitter.com )
[00:38:54] <FatPhil> happens to me all the time
[00:39:40] <FatPhil> you can't see how fake the badge on my peaked hat is at the time
[01:00:34] <Teckla> Can you generate code that auto-validates JSON? How about YAML?
[01:00:44] <Teckla> That's just about the only thing I've ever liked about XML.
[01:01:36] <Teckla> i.e., 1. Create XML schema 2. Generate [Java] code to validate it 3. Generate [Java] classes/objects for it
[01:01:51] <Teckla> Thus you end up not ever needing to read or write the actual XML.
[01:06:07] -!- arti|work has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[02:07:17] <TheMightyBuzzard> Teckla, any file that you never have to read or write, you are guaranteed to have to read or write.
[02:08:41] <TheMightyBuzzard> but, yeah, you can validate json. you absolutely have to when you're coding in rust or your shit gonna crash the first time you get unexpected input.
[02:08:51] * TheMightyBuzzard glares at MrPlow
[02:09:03] <TheMightyBuzzard> #smake MrPlow
[02:09:03] * MrPlow smakes MrPlow upside the head with white privilege
[02:42:17] -!- boru` [boru`!~boru@klmp-90-594-089-997.dynamic.mnet-online.de] has joined #soylent
[02:42:19] -!- boru has quit [Killed (NickServ (GHOST command used by boru`!~boru@klmp-90-594-089-997.dynamic.mnet-online.de))]
[02:42:22] boru` is now known as boru
[02:48:46] <Bender> [SoylentNews] - Gentoo-Based Calculate Linux 20 Now Available for Download - https://sylnt.us - say-goodbye-to-32-bits
[03:56:37] <Bender> [SoylentNews] - Intel May be Responding to AMD Ryzen With a Hyperthreaded Quad-Core i3 Processor - https://sylnt.us
[04:51:31] -!- Runaway1956 [Runaway1956!~guy@69.57.zqu.zym] has joined #soylent
[04:59:52] -!- MrPlow has quit [Remote host closed the connection]
[05:00:02] -!- MrPlow [MrPlow!MrPlow@Soylent/BotArmy] has joined #soylent
[05:00:02] -!- MrPlow has quit [Changing host]
[05:00:02] -!- MrPlow [MrPlow!MrPlow@nsa.gov] has joined #soylent
[05:00:47] -!- MrPlow has quit [Remote host closed the connection]
[05:01:02] -!- MrPlow [MrPlow!MrPlow@Soylent/BotArmy] has joined #soylent
[05:01:02] -!- MrPlow has quit [Changing host]
[05:01:02] -!- MrPlow [MrPlow!MrPlow@nsa.gov] has joined #soylent
[05:03:15] -!- MrPlow has quit [Remote host closed the connection]
[05:04:01] -!- MrPlow [MrPlow!MrPlow@Soylent/BotArmy] has joined #soylent
[05:04:02] -!- MrPlow has quit [Changing host]
[05:04:02] -!- MrPlow [MrPlow!MrPlow@nsa.gov] has joined #soylent
[05:04:41] -!- guy has quit [Quit: Leaving]
[05:06:40] -!- MrPlow has quit [Remote host closed the connection]
[05:07:02] -!- MrPlow [MrPlow!MrPlow@Soylent/BotArmy] has joined #soylent
[05:07:02] -!- MrPlow has quit [Changing host]
[05:07:02] -!- MrPlow [MrPlow!MrPlow@nsa.gov] has joined #soylent
[05:07:03] <Bender> [SoylentNews] - Have Your Science And Eat It: Scientific Research As Cakes - https://sylnt.us - come-to-the-dark-side,-we-have-cake
[05:13:17] <chromas> How did I miss the systemd story?
[05:13:21] <chromas> I'm a failure
[05:13:29] <chromas> from the two-minutes-hate dept.
[05:14:05] -!- arti|work [arti|work!~textual@fhv-836-375-856-960.socal.res.rr.com] has joined #soylent
[05:21:10] <Bytram> chromas: s/h/l/2
[05:21:54] -!- AzumaHazuki has quit [Quit: Lost terminal]
[05:27:18] <Bender> [SoylentNews] - Have Your Science and Eat It: Scientific Research as Cakes - https://sylnt.us - come-to-the-dark-side,-we-have-cake
[05:37:50] -!- MrPlow has quit [Quit: Powered by Rust.]
[05:38:02] -!- MrPlow [MrPlow!MrPlow@Soylent/BotArmy] has joined #soylent
[05:38:02] -!- MrPlow has quit [Changing host]
[05:38:02] -!- MrPlow [MrPlow!MrPlow@nsa.gov] has joined #soylent
[05:38:28] <TheMightyBuzzard> oh, right, that's a debug build. no wonder it's hogging up so much ram.
[06:18:26] -!- arti|work has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[06:18:40] -!- arti|work [arti|work!~textual@fhv-836-375-856-960.socal.res.rr.com] has joined #soylent
[06:19:12] -!- arti|work has quit [Client Quit]
[07:27:15] <Bender> [SoylentNews] - Study Helps Explain Why Previous Attempts to Develop a Staph Vaccine Have Failed - https://sylnt.us - insufficient-staff
[09:46:59] <Bender> [SoylentNews] - Ubisoft Uses AI to Teach a Car to Drive Itself in a Racing Game - https://sylnt.us - again-with-the-self-driving
[09:52:43] -!- Web_weasel [Web_weasel!~Stefan@tyyr40-367-321-59.range57-179.btcentralplus.com] has joined #soylent
[12:07:23] <Bender> [SoylentNews] - Tesla Delivers its First 'Made in China' Cars - https://sylnt.us - hot-wheels
[13:59:29] <Teckla> TheMightyBuzzard: Ah, cool that you can validate JSON.
[14:00:42] <TheMightyBuzzard> you can validate shit from /dev/urandom if you really want. it's just going to have a much higher failure rate.
[14:02:36] <TheMightyBuzzard> i mean anything format with a spec you can validate to that spec and any data structure you're trying to stuff things into you can validate incoming data to that structure. frankly you need to be doing both any time you take external input.
[14:03:25] <Teckla> My /dev/urandom keeps returning 4
[14:03:54] <Teckla> That joke probably ages me, and it seems likely nobody will get it
[14:04:18] * TheMightyBuzzard chuckles
[14:04:37] <Teckla> Fellow Old Guy?!
[14:04:50] <TheMightyBuzzard> that was back before xkcd pissed me off by going into partisan politics
[14:05:38] <Teckla> Ugh, yeah. Such a nasty infection. :(
[14:06:25] <TheMightyBuzzard> i don't mind folks having opinions. i mind them shoving them down my throat in inappropriate venues and when i can't shove back.
[14:08:31] <TheMightyBuzzard> hrm... i just figured out a way to make a truly random RNG. give a monkey a ten-sided die and use a webcam to run OCR on it.
[14:09:13] <AndyTheAbsurd> problem: the monkey will swallow the die.
[14:09:21] <TheMightyBuzzard> you'd need to treat it with something that tasted horrible though or the monkey'd end up... ninja'd
[14:10:53] <TheMightyBuzzard> one die would be some seriously slow bandwidth though. maybe train it to dump over a whole barrel of d10s and then automate resetting of the barrel.
[14:11:32] <TheMightyBuzzard> nicotine++ #smoke break
[14:11:32] <Bender> karma - nicotine: 749
[14:27:30] <Bender> [SoylentNews] - UK Digital TV Platform Freeview Blames Weather for TV Problems - https://sylnt.us - the-waves-aren't-waving
[15:22:40] -!- arti|work [arti|work!~textual@kpku-40-80-465-497.west.biz.rr.com] has joined #soylent
[15:33:58] <FatPhil> https://www.nbcnews.com
[15:33:59] <systemd> ^ 03Kansas officer off force after fake claim McDonald's workers wrote 'pig' on coffee cup
[15:43:44] <AndyTheAbsurd> Most of the people that think that cops are pigs are not stupid enough to write that on a cop's coffee cup.
[15:43:55] <AndyTheAbsurd> Even the ones that work at McDonald's.
[16:18:09] <FatPhil> Even ones who live in Kansas.
[16:21:41] <FatPhil> right, I'm fucking off to the pubs now
[16:22:22] <FatPhil> if I can tell the time later, I'll blurt out some kind of drunken new year greeting
[16:22:56] <FatPhil> otherwise, enjoy it now with those weird asians!
[16:30:53] <AndyTheAbsurd> My Aussie friend is having a terrible new years
[16:31:01] <AndyTheAbsurd> expected, given that his country is on fire.
[16:47:14] <Bender> [SoylentNews] - Micro-Angelo? This 3D-Printed ‘David’ is Just One Millimeter Tall - https://sylnt.us - that's-really-small
[17:09:16] <TheMightyBuzzard> nothing necessarily wrong with kansas folks. it's entirely possible they moved there because they're dog lovers.
[17:09:27] <TheMightyBuzzard> in case that needs explaining, it's so bloody flat and empty of trees that you can see your dog running away for at least two weeks in kansas.
[19:06:03] <Bender> [SoylentNews] - Scientists Attempt to Recreate 'Overview Effect' From Earth - https://sylnt.us - a-sight-to-see
[19:10:30] -!- mechanicjay has quit [Read error: Connection reset by peer]
[19:11:43] -!- mechanicjay [mechanicjay!~jhowe@Soylent/Staff/Sysop/mechanicjay] has joined #soylent
[19:11:43] -!- mode/#soylent [+v mechanicjay] by Aphrodite
[21:27:49] <Bender> [SoylentNews] - "Pants on Fire" Lawyer Suspended by Florida Supreme Court - https://sylnt.us - hot-story
[22:31:46] <Cascade> I use a neural network to generate random numbers
[22:34:49] <Cascade> When I want to roll a virtual die, I just fire up a stack of google virtual gpus and wait five minutes
[22:47:45] <Cascade> <?xml version="1.0" encoding="UTF-8"?><numbers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation='random.xsd'>
[22:47:47] <Cascade> <number class="random" id="org.numbers.random/values/id-6043812">6</number></numbers>
[22:55:29] <Bender> [SoylentNews] - Waiting for Betelgeuse: What's Up With the Tempestuous Star? - https://sylnt.us - tempest-in-a-belt
[23:06:26] -!- Web_weasel has quit [Read error: Connection reset by peer]
[23:11:10] -!- mechanicjay has quit [Quit: Leaving.]
[23:11:53] -!- mechanicjay [mechanicjay!~jhowe@071-61-273-9.tukw.qwest.net] has joined #soylent
[23:11:53] -!- mechanicjay has quit [Changing host]
[23:11:53] -!- mechanicjay [mechanicjay!~jhowe@Soylent/Staff/Sysop/mechanicjay] has joined #soylent
[23:11:53] -!- mode/#soylent [+v mechanicjay] by Aphrodite