libera/#maemo/ Thursday, 2024-08-01

sunshavi_It ended this way   awk '/987654321/{ print $0; done=0; while (!done) { getline varline; if (varline ~ /^ /) {print varline} else { if (varline ~ /987654321/) {print varline} done = 1} };}'01:18
FatPhilwhat package is gainroot in?18:19
FatPhilI could have sworn I installed it oonly weeks ago, but I've had so many bodies in my mitts I can't remember which one's which.18:20
sixwheeledbeastrootsh19:20
FatPhilah - I remember that message!19:31
FatPhilit's not "gainroot", it's "sudo gainroot"19:32
FatPhilI would have remembered that a decade ago!19:32
FatPhilI find it hard to put into words how much I hate the application manager19:33
FatPhilBut it's easy to say thank you for the reminder - thank you, sir, for the reminder.19:34
FatPhilthe funny thing is that in order to apt-get install rootsh I did a ssh root@localhost ;-)19:35
joergor simply root20:18
joergget speedyHAM20:19
joergget CSSU!20:19
joergsunshavi_: I missed the "else { if (varline ~ /987654321/) {print varline} done = 1} };" part :-)20:29
joerg~ # type root20:31
joergroot is /usr/bin/root20:31
joerg~ # file /usr/bin/root20:31
joerg/usr/bin/root: ASCII text20:31
joerg~ # ls -l /usr/bin/root20:31
joerg-rwxr-xr-x    1 root     root           61 Nov  3  2009 /usr/bin/root20:31
joerg~ # ls cat /usr/bin/root20:31
joergls: cat: No such file or directory20:31
joerg/usr/bin/root20:32
joerg~ # cat /usr/bin/root20:32
joerg#From Andrey Gubarev's easyroot.20:32
joergexec sudo gainroot --use-su20:32
joerg~ #20:32
joergusr/sbin/gainroot  https://termbin.com/e0vx  - the whole mafic is in sudo iirc20:35
joergmagic even20:35
joergsunshavi_: but I guess this still doesn 't cut it. What's with two consecutive multiline messages from same target number?20:55
joergprolly needs else { done = 1; if (varline ~ /987654321/) {done = 0; print varline} } }"20:57
joergand even then I don't know awk enough to be sure it does what it's supposed to, regarding 'when gets pattern buffer read'20:59
joergdoes a `getline` advance the file read pointer?21:01
joergor can you do arnitrary amount of getline and always get same result? Or does "script loop" _not_ do implicit `getline _patternbuffer` when previously already a getline been done?21:03
joerghonestly, that output format is BAAAAAAD >:-( - I wonder what merlin1991 thought when he designed it that way21:03
joergwhen your far end "number" starts with a space, like if "MOVISTAR;IN;2023-10-22T00:28:07Z;2023-10-22T00:29:10Z;operator"   the operator decided to call themselves " MOVISTAR" instead, with leading space, you're fsckd21:09
joergwhat's wrong with proper full CSV with escaped delimiters for when they appear _inside_ strings?21:12
joergor (DUH!) even... XML21:13
FatPhilif you're not wrapping json with XML, you're doing it wrong.22:05
KotCzarnyo.O22:05
KotCzarnyi always hated xml22:05
KotCzarnyjson is passable22:05
FatPhilit's the combo for the win22:05
duuudesmart engineers wrap XML in yaml22:27
FatPhilyeah, but IBM never standardised yamlx, but they did jsonx22:28
FatPhilI wasn't making a joke, I was pulling out a piece of internet history from my arse22:28
FatPhilAnd no, I don't want to put it back there afterwards.22:29
FatPhilbut you're right, the best way of storing jsonx fragments would be in yaml. Alas nobody's been smart enough to standardise that yet.22:30
duuudethe only excuse not to use UTF-16 is to use EBCDIC instead22:33
duuude\r\n for life22:33
duuude\n\r is superior though22:33
KotCzarnywhat about \r ?22:38
joergI don't know what all the hate about XML. Ot's a well defined markup language, that alas isn't used right by most devs22:48
KotCzarnydefined, yes. human friendly, cumbersome.22:53
FatPhil\n\r is the history, though22:54
duuudeKotCzarny: \r is cool, it just doesn't go to the next line22:54
joerg<master name="mAsTER" color="blue"> <property1>fooo</property1> <property2>bar</property2> this is well formed XML, I hope </master>22:54
duuudejoerg: lot's of bugs and performance degradation caused by it, has a lot of visual clutter etc.22:56
joerg<master> this is NOT </master> <property1> completely unrelated to master </property1>22:56
duuudeand basically useless and totally unjustified syntax made by an idiot who had an SGML fetish22:57
joergaha22:57
KotCzarnyand you have to press shift a lot22:58
duuudeXML is on top of my hatelist22:59
duuudeabsolutely irrational. worst of both worlds. hard for computers and humans alike.22:59
KotCzarnyparsing should be trivial, as long there is no syntax error23:00
duuudeI think microsoft was responsible for "popularising" it23:00
KotCzarnybut i love how unindented, space compressed xml is practically unreadable23:00
duuude&nbsp;23:00
FatPhilIf GML was an infant, SGML is the bright youngster who far exceeds expectations and made its parents too proud, but XML is the drug-addicted gang member who had committed his first murder before he had sex, which was rape.23:01
KotCzarny20 levels of nesting23:01
FatPhil-- Erik Naggum, RIP23:01
KotCzarnyespecially if names are 30+ chars long23:02
joerganything substantial maybe? except of "feelings"?23:02
KotCzarnyfat, ugly23:02
duuudewell it has costs and no benefits23:02
duuudetrash23:02
duuudealso, feelings matter. formats are used by humans.23:03
joergsorry, nope23:03
joergXML was _never_  meant to regularly get edited ot read by humans23:03
KotCzarnyits like systemd23:04
joergyou could as well complain about HTML being a mess to write23:04
KotCzarnynever meant, used a lot due to some fuck forcing it23:04
duuudejoerg: I would prefer a binary format for that23:04
duuudejoerg: such tags make sense for text markup23:04
joergsuuuuure23:04
FatPhilduuude: my favourite thing about XMLs from the W3 folk, is that when they decided to standardise a syntax for CSS they didn't chose an XML.23:05
FatPhilEat your own dogfood, or stop pushing it on others.23:06
duuudelol23:06
duuudeFatPhil: had not thought of it before23:06
FatPhilyou may use that argument, I offer it here for free.23:06
duuudemaybe W3C is not that evil after all23:06
KotCzarnyor they overlooked the chance23:06
duuudeduuude imagine XML CSS arrgh23:07
joergnfc about CSS but HTML is clearly a fuckedup ML flavor23:08
joergXML23:08
FatPhiljoerg: hence Erik's comment. It's in my .sig list.23:08
joerg?23:08
FatPhilhe used to post a lot to comp.lisp, and was always hilarious when modern reinventions of s-exps came up.23:08
FatPhiljoerg: 00:01 < FatPhil> If GML was an infant, SGML is ...23:09
joergsorry, I'm prolly too tired. Completely fell out of context23:09
FatPhilmore Naggum-isms: https://en.wikiquote.org/wiki/Erik_Naggum23:09
duuudedid his name influence his naggings?23:10
FatPhil"Intellectual laziness is punishable by brain death. It is a natural law." beautiful!23:11
KotCzarnywhat about intellectual zombies?23:12
KotCzarnyi think my main gripe with xml is packing 2 orthogonal namespecases into one, nodes and attributes23:20
KotCzarnywhile its nice in theory, in practice its sucky23:21
KotCzarnyif you want to store such data in sql, it gets messy23:21
duuude"XML is a giant step in no direction at all. " that was a new one23:23
duuudeI wonder why Naggum happens to bring such random unrelated stuff when talking about tech23:26
joergKotCzarny: think of it as a tree structure, with node objects that may have a defined set of attributes, plus arbitrary number of leaves23:50
joergobviously a regular database is just too simplistic to implement such data structure in a straight forward way23:51
FatPhilKotCzarny: your 2 namespaces criticism is one of my biggest complaints, but you put it so much more clearly than I could have. I had already tried to type something like that twice!23:52
joergot's pretty much object oriented I'd say23:53
joergsimilar concepts23:53
joergand while you have all the features, you don't _have_ to use them23:55
joergyou could as well set up a (slightly modified) ISAM data table in XML23:55

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!