log☇︎
2000+ entries in 0.001s
billymg: it's short and closest to the original [[]] that was suggested but without failing in bash snippets
billymg: http://logs.ossasepia.com/log/trilema/2020-01-28#1957592 << this was my rationale. from actual testing it proved safe across languages (with only a handful of exceptions in the mp-wp genesis' 162k lines)
billymg: and thanks for bearing with me during the live style tweaking
billymg: ok, do you mind refreshing to see if that fixed what you were seeing?
diana_coman: billymg: hm, why the scrollbars then?
billymg: the width of my codeblock column vs. the width of by blog content column vs. the width of the blog "layout" (white bg) is all set in my theme, not in the plugin
billymg: > visual separation via background or similar, sure; but why is more than that needed? << this is the main reason, yes, and i thought that i kept that to a minimum (1px light gray border is all really)
diana_coman: visual separation via background or similar, sure; but why is more than that needed? (and I'm truly asking aka if indeed there's a good reason for it, fine; I just don't currently see the reason)
diana_coman: billymg: I don't get why is the code separated from the rest of the text as such; for one thing the test article there for instance did not work well at all on zoom in/out in my firefox
billymg: also fwiw the width of the viewport i have set in my blog's theme css, not in the plugin. the css in the plugin was left intentionally bare-bones so that users could style it to best fit their own blog layouts
billymg: so i could remove the 1px gray border and increase the width by about 20px so that it goes right to the edges of my blog's content column, but that would still be a viewport, no?
billymg: diana_coman: i'm not sure what you mean. if there's no viewport then the content column of the blog becomes the "viewport" -- e.g. http://trilema.com/2019/forum-logs-for-19-mar-2016/
ossabot: Logged on 2020-01-28 15:04:59 mircea_popescu: the portion "$footnotes_options['superscript'] = (array_key_exists('superscript', $_" is visible on my browser. in order to actually see the "POST)) ? true : false;" portion of it, i'd have to scroll right. however, the right scrollbar is under line 413. if i scroll that far down, the topmost line is in the high 300s, meaning that i can't observe the effect scrolling right has upon line 149.
billymg: http://logs.ossasepia.com/log/trilema/2020-01-28#1957590 << ahh, i see what you mean. yes that block was particularly bad in the first version, mostly due to the insane default css tab-width setting. it's also something that i tend not to notice because i don't use the scrollbars themselves for scrolling (trackpad on a laptop instead)
diana_coman: billymg: why is the viewport necessary?
billymg: hrm, i'm not seeing anything else in the trilema logs css that would fix it. so the space to the right of the pane is completely empty, not a single line extending past the viewport's edge? is it a lot of empty space to the right (in terms of pixels, inches, or however)?
billymg: but i'm not even sure yet if that's what's causing the ghost scrollbar you're seeing, since you say the text is properly wrapping within the viewport and the scroll appears unnecessary
billymg: ok, so trilema logs uses `word-wrap: break-all` on the entire content column. i used jfw's suggestion of `white-space: pre-wrap` on the code column because it wraps long lines without splitting individual strings
billymg: in my version of firefox there is no scroll bar, but lemme take a look at the css for trilema logs...
billymg: no, no setting there, so whatever's default (which i believe is overflow: auto)
mircea_popescu: hence my "look into how trilema does logs"
billymg: hrm, that's strange. that was my only guess as to what be causing the ghost horizontal scroll bar (those lines needed a special case handling with `word-wrap:break-word;` to properly wrap)
mircea_popescu: 128MB default memory limit for a PHP script << this is not factual ; there's no default limit for a php script, it's set by config file, you can make it any value you wish.
billymg: > because while the horiz scrollbar is still there for some reason, there's no need of it, as the actual width matches the window width << this might be because the hashes at the top of the diff are not being broken in your browser
mircea_popescu: this is remedied in the new version, because while the horiz scrollbar is still there for some reason, there's no need of it, as the actual width matches the window width, so there's no leeway to scroll left/right
mircea_popescu: the portion "$footnotes_options['superscript'] = (array_key_exists('superscript', $_" is visible on my browser. in order to actually see the "POST)) ? true : false;" portion of it, i'd have to scroll right. however, the right scrollbar is under line 413. if i scroll that far down, the topmost line is in the high 300s, meaning that i can't observe the effect scrolling right has upon line 149.
mircea_popescu: billymg, in the original example i looked at, line 149 reads : "$footnotes_options['superscript'] = (array_key_exists('superscript', $_POST)) ? true : false;"
billymg: and whether or not that was similar to what a "linter" would do (which is closer to the first block, depending on how it's configured)
feedbot: http://qntra.net/2020/01/entire-argentine-judiciary-paralyzed-as-computers-stop-working-for-them/ << Qntra -- Entire Argentine Judiciary Paralyzed As Computers Stop Working For Them
billymg: that probably wasn't the best example for "how to manually format your code to fit in the viewport", since the regex line still goes beyond the max column width, but i was mostly trying to make sure i understood what jfw meant by "language-aware indentation" from his editor
billymg: i personally prefer the formatting in the first block because the newlines and indentation make it very easy to see that exactly one condition is being tested (the result of preg_match_all) and that preg_match_all is being passed exactly 4 arguments
ossabot: Logged on 2020-01-28 06:24:08 mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957549 << your example instantly falls down on its own power, btw : think you, to scroll right to see portions of the top lines i now have to scroll down such that the lines in question are off the viewport ? how do i know when i scrolled enough ?
billymg: http://logs.ossasepia.com/log/trilema/2020-01-28#1957575 << i'm not sure i follow here. you would need to scroll right to read the line with the regex and then back left to continue downward (since i've already updated the formatting of the patch viewer on my site so that lines now wrap to fit the viewport, here is what i was referring to: http://paste.deedbot.org/?id=p1jb )
ossabot: Logged on 2020-01-28 06:03:38 mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957532 << this being usually indicative of poor data structures & organization to begin with.
billymg: http://logs.ossasepia.com/log/trilema/2020-01-28#1957556 << seriously. i was ashamed at myself for how long i'd let it go on. completely wrapped up in the saltmines i deluded myself into thinking i didn't need it
billymg: there should be no more horizontal scrolling, but potentially depending on browser vintage some of the css attributes may not be supported. if it looks off to anyone please let me know along with browser version so i can look into it
billymg: i reduced the tab-width and added the css line wrapping jfw suggested
billymg: http://logs.ossasepia.com/log/trilema/2020-01-28#1957561 << with this in mind i made some adjustments to the CSS that i think improve the display quite a bit http://billymg.com/2020/01/embedded-vpatch-formatting-for-mp-wp-draft-vpatch-for-review/#S1-L1
ossabot: Logged on 2020-01-28 02:52:39 billymg: btw, when you say "language-aware indentation", do you mean something that would produce a block like http://billymg.com/2020/01/embedded-vpatch-formatting-for-mp-wp-draft-vpatch-for-review/comment-page-1/#S1-L136 ?
mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957549 << your example instantly falls down on its own power, btw : think you, to scroll right to see portions of the top lines i now have to scroll down such that the lines in question are off the viewport ? how do i know when i scrolled enough ?
mircea_popescu: in any case, the "machine-wrapped lines" refers to the machine pissing spurious characters into the text, NOT to how any terminal ~displays~ the text. what's wrong is specifically comma-slash-n, a syntactucally forbidden construction, \n can only follow a dot, questionmark, exclanation point etc.
mircea_popescu: and i think it's extensible : the same exact process should be applied to all code displayers ; it'll handle comments correctly by default, and people who don't like what it does to their code should write their code otherwise.
mircea_popescu: what i'm saying here to billymg is that he really should look into how trilema flows the content of logs such that they fit in the allocated space, imo that's the only way to go about ths problem
mircea_popescu: now, all this becomes entangled once we apply our literate coding standards, because suddenly the code-vs-text difference above dissolves, and wtf are you saying, mircea_popescu ?!
mircea_popescu: there's also the argument that the compiler's the arbiter of code, and if ~it~ doesn't complain then fuck you. but in any case i really am not advanced enough to have the impression i have something to say on that matter.
mircea_popescu: then again have you seen my/his (hey, if dumbass bois can be denoted by complex pronominal constructions of little sense and even less purpose, why can't i be my/his!!!!) bash kb+ one-liners ? the man's insane!
mircea_popescu: there's the argument that very long lines are a symptom of poor writing habits, and if one re-wrote his code such that "fitting code to viewport" is never an issue the code won't thereby suffer (and if this means ditching idiocies like "object oriented" and dead-end wanna-be nonlanguages -- well, it's a public service).
mircea_popescu: wrt code however, mircea_popescu has no firm oppinion on line length, or what to do about it (apparently he also doesn't have a firm oppinion on discussing himself in the third person, which strikes the fourth person mp, that being the first person reading itself in the third person, as a little odd).
ossabot: Logged on 2020-01-28 02:42:48 jfw: Wrapped lines are something you can get used to perhaps. My historical preference was to pick a fixed width (typically 80) and use the text editor to wrap at that with language-aware indentation, but I understand mircea_popescu to be firmly against this.
mircea_popescu: wrt text, mircea_popescu is firmly against machine newlines, because text is supposed to maintain auctorial intent not machine convenience, and the unit is the paragraph, and further considerations.
mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957545 << this is a misunderstanding. wrt code, mircea_popescu is firmly against spaces-as-substitute-tabs, on the theory that duble vowels are stupid and triple-vowels pure linguistic breakdown. there's no fucking reason to keep clucking at the same button over and over like a maniac ; and besides there's semantic difference between the two, spaces-as-tabs are just fucking
ossabot: Logged on 2020-01-28 02:39:59 billymg: i think i lean towards displaying code exactly as it is, even if this means some horizontal scrolling _within_ a pane, rather than machine-wrapped lines (which can be disastrous for legibility)
mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957543 << imo this is the wrong choice in context.
mircea_popescu: one of the many benefits of travel, it forces the review and fixing of bad trees.
ossabot: Logged on 2020-01-28 01:20:54 billymg: btw in a few i'll be in cr for about a week. this past week i've been setting up travel iron, archival and transfer procedures, etc. the digital part of the move proving much more complicated than the physical
mircea_popescu: http://logs.ossasepia.com/log/trilema/2020-01-28#1957532 << this being usually indicative of poor data structures & organization to begin with.
mircea_popescu: bvt, i did see that, but i took it as a simple stop-gap non-answer. it's there serving a political purpose, i don't have cause to take offense for neglect or anything, which i don't ; but it's not ordinarily much of an answer, as there's no proceeding on it.
bvt: mircea_popescu: since this point was raised in #ossasepia, a ping: i did provide the answer (as best as i could) to http://bvt-trace.net/2020/01/re-pbrt/#comment-110
jfw: billymg: realized I might not have quite understood what you're asking - I meant indentation strictly, not adding line breaks, if that's what the linter does. Much harder thing to do mechanically and well.
jfw: yes, vim and emacs for example do this automatically for known file types.
billymg checks time, goes to get ready for bed
billymg: that one i formatted manually but in the saltmines had "linter" running which would do the same thing on every file save
billymg: btw, when you say "language-aware indentation", do you mean something that would produce a block like http://billymg.com/2020/01/embedded-vpatch-formatting-for-mp-wp-draft-vpatch-for-review/comment-page-1/#S1-L136 ?
billymg: it's also on my todo list to eventually create a reference theme for mp-wp. this should be an opportunity to better support the code "content type" within the context of a blog
jfw: I'll need to duck out of the discussion for a day or two though; been falling behind on my own priorities. Wanted to chime in though since I'd been recently dealing with blogging snippets.
jfw: Wrapped lines are something you can get used to perhaps. My historical preference was to pick a fixed width (typically 80) and use the text editor to wrap at that with language-aware indentation, but I understand mircea_popescu to be firmly against this.
jfw: you're welcome. and yeah, no fully satisfying fix there that I'm yet aware of
billymg: i think i lean towards displaying code exactly as it is, even if this means some horizontal scrolling _within_ a pane, rather than machine-wrapped lines (which can be disastrous for legibility)
billymg: i think the most involved was the one about styling. it's tricky because the ideal width for a column of text in an article is not the same as the ideal width for a pane displaying code
billymg: jfw: thanks for the quick and thorough review. i left a response to your comments
jfw: ah, possibly trinque is correct too, the fix got fixed. http://thewhet.net/2019/03/mp-wp-patch-for-enabling-html-comments/
ossabot: Logged on 2020-01-26 17:40:14 trinque: I can almost certainly steal someone's session cookie with a comment if they do what dpb suggests.
jfw: trinque: http://logs.ossasepia.com/log/trilema/2020-01-26#1957361 - independent of the proposed session cookie change, in theory this is not so: there's a whitelist for the tags allowed in comments. In practice it seems to work too. It's in the ever so intuitively named wp-includes/kses.php
billymg: approved it, ty
jfw: billymg: commented on your vpatch draft, probably went to spam.
billymg: after that, no more excuses. and my work and communications will reflect that
billymg: looking forward to being completely done with the move and settled in early march -- five short weeks away!
billymg: btw in a few i'll be in cr for about a week. this past week i've been setting up travel iron, archival and transfer procedures, etc. the digital part of the move proving much more complicated than the physical
billymg: those were some good reads and re-reads, this certainly eases the paranoia that still creeps up every now and then
ossabot: Logged on 2019-12-23 02:18:41 mp_en_viaje: to be perfectly clear & understand each other : the ENTIRETY of stage, from "broadway" to "highbrow theatre" to ballet to ice skating to ~EVERYTHING ELSE~, the absolutely and strictly only reason ANYTHING like the stage exists in contemporary degeneracy,
mircea_popescu: feeding others always has the potential to produce socialism. one approach is to also give them something to do -- in which case it produces art, the best form of socialism avaialble.
mircea_popescu: there's a self-obvious reason socialism existed traditionally as the political mode of subsistence peasants, and then became an urban matter once industrialization produced of idle and useless vagrants in sufficient quantities.
billymg: and still requires the effort. it seems the further i get from the child-me the more aware i am of the child-me that remains
billymg: that certainly describes my own trajectory. developing out of the socialist mindset was like any other basic developmental process, in that it required some risk/initiative and continued effort
mircea_popescu: so i really wouldn't be worried about any eventual extermination of socialism. if you don't wash you become filthy, and if you don't think you become a socialist. these'll survive, being as they are the names for a lack. lacks are eternal.
mircea_popescu: in fact, i doubt if anything ~but~ socialism is even meaningful to small children, much like nothing but tit is meaningful to even smaller ones. by extension reproduction-as-only-function females, the dedicated mothers, grandmothers etc with no other activities or preoccupations besides the production and early rearing of children are liable to revert to their mindset and worldview.
mircea_popescu: some stay that way.
mircea_popescu: all children are born socialist the way they're born dumb, deaf and iliterate, with no taste for food and no taste for music, with no sexual capacity or experience, acultural, amoral and so forth.
mircea_popescu: socialism can and will survive indefinitely. like ordinary filth, vermin infestation and so on, it's the natural order, prevalent inside graves, abandoned human dwellings, any other disturbed then neglected terrain.
billymg: how much longer can socialism even survive in a post bitcoin world? is the idea to scam as much as possible before it goes away forever? the failed forkcoin looking exactly like the failed state
mircea_popescu: less reading deng derpy-ping, more log reading. it ain't the 50s anymore.
mircea_popescu: working debate, proceeding usefully towards actionable results' been a thing for a while now.
mircea_popescu: " Non-debate theory is my invention. Non-debate, is to gain time to work hard. When you debate, everything becomes more complicated and it wastes time. Nothing can be done. Don’t debate, and just try. Be brave and experiment." what ludicrous, half-literate, anachronistical nonsense. where's the gook dog been living under for the past decade, a rock in his native chinastan ?
billymg: hanbot_abroad: if you want to take a look i just published a draft of the vpatch. i think more can be done in terms of cleanup of the old code but i wanted to get some eyes on it before doing another pass
ossabot: Logged on 2020-01-27 08:25:46 hanbot_abroad: billymg what *are* the options on footnotes, even?
billymg: http://logs.ossasepia.com/log/trilema/2020-01-27#1957376 << ah crap, sorry i missed this earlier. they are more like constants (for adjusting e.g. whether you want decimal or roman numeral footnote identifiers) that were stored in the db because the average wordpress luser can't be trusted to edit a few variables in a php file and needs checkboxes he can click instead
ericbot: Logged on 2020-01-27 13:02:26 mircea_popescu: why the fuck are you so dedicated anyway ? wrong place, ditch the heathens at the FIRST sign of trouble.
lobbes: http://logs.ericbenevides.com/log/trilema/2020-01-27#1957409 << I think I may have been a little blinded by my desire to not keep you waiting forever for this thing. But after actually talking it through (and getting proper sleep) I can see that trying to ride that rabid horse wasn't going to pay off in the long run
ericbot: Logged on 2020-01-27 13:01:32 mircea_popescu: http://www.krankendenken.com/2020/01/mp-wp-bot-my-current-problem-and-possible-solutions/ << just ditch the shithole host you ran into.
lobbes: http://logs.ericbenevides.com/log/trilema/2020-01-27#1957408 << roger that. Yeah, the 'oops suspended' thing was pretty odd. I'm fine just declaring "Shinjiru" a scammer and finding someone else then