WTF Bites
-
@dcon I've had this sort of workflow many times. Usually...first time I'm experimenting with the intention of coming back and streamlining, etc. But once it's done I look back and......and figure I'll fix it next time. But by that time I've forgotten what the plan was, and had to do all that manual crap again. Rinse and repeat.
Huge satisfaction when you finally slay the and do the needful, though.
-
@dcon Perhaps you should upgrade to Sublime Text
-
Peak clickbait.
Yes, it's just a video about unions.
-
@dcon Perhaps you should upgrade to Sublime Text
I've done the needful.
-
@Gustav LOL "probably never heard of"
I've used them 20 or 30 years ago...
-
Yes, it's just a video about unions.
Is there a video about onions? Seems like it might be more interesting
-
@Gustav LOL "probably never heard of"
I've used them 20 or 30 years ago...
thread is .
-
@HardwareGeek said in WTF Bites:
@Gustav LOL "probably never heard of"
I've used them 20 or 30 years ago...
thread is .
Hello, Pot? Yes, it's Kettle...
-
status
Bug: This really bad thing happened. We only saw it once.
Me: Can I get updated logs:
QA: We only saw it once.
Bug: Closed, no repo
<person>: Please fill out the justification section for the steps you've done.:argh:: QA can't repro. But to justify closing it, they want the devs to not repro it. Of course, this must be done on the actual hardware.
-
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
@Gustav LOL "probably never heard of"
I've used them 20 or 30 years ago...
thread is .
Hello, Pot? Yes, it's Kettle...
Yes? I'm not denying that. In fact, there's a good chance I used them even longer ago than @dcon did.
-
status
Bug: This really bad thing happened. We only saw it once.
Me: Can I get updated logs:
QA: We only saw it once.
Bug: Closed, no repo
<person>: Please fill out the justification section for the steps you've done.:argh:: QA can't repro. But to justify closing it, they want the devs to not repro it. Of course, this must be done on the actual hardware.
I would probably be expected to link the PR in which I improved default logging to give me the required information if it happens again, or justify why I did not do so.
-
status
Bug: This really bad thing happened. We only saw it once.
Me: Can I get updated logs:
QA: We only saw it once.
Bug: Closed, no repo
<person>: Please fill out the justification section for the steps you've done.:argh:: QA can't repro. But to justify closing it, they want the devs to not repro it. Of course, this must be done on the actual hardware.
I would probably be expected to link the PR in which I improved default logging to give me the required information if it happens again, or justify why I did not do so.
I actually have logging in there. But I can't tell where in there because the system time was out-of-sync with real time. And they don't know by how much. Hence step2 where I asked for updated logs.
-
Oh, hey, that reminds me. I've got a bunch of old videos I've been to fix: thumbnails are fine, but on playback they're just 1 pixel wide and really tall. You've given me something to look for/fiddle with to see if a dud aspect ratio is encoded anywhere. Because it looks like someone's trying to divide the video height by zero.
-
@Gustav clean .
Well, I guess you could put air quotes around every word in that title, like some annoying people.
-
@sebastian-galczynski said in WTF Bites:
No idea why would they do this.
Placing bet: intern was tasked to make web version.
-
@sebastian-galczynski said in WTF Bites:
It took me a while to actually find out what is wrong with this video, but I managed to fix the thumbnail generator by adding so many switches to ffmpeg that they don't fit on the screen.
There are ffmpeg frontends which could have helped. Have you heard about HandBrake?
-
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.
-
@topspin that’s most flavours of Markdumb, sadly.
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML?You are used to the broken Markdumb in NodeBB that does that. It is wrong. For what is only written in a web editor it mostly doesn't matter, but most text files have paragraphs broken to lines of around 80 characters for readability in plain text editors, which still includes all IDEs, and those line breaks are not significant, so they shouldn't be when the text is processed as markdown. So no, Gitlab is doing it correctly.
-
@Bulb yeah, from the point of view of some technical weirdo who doesn't care about users, maybe. Imagine your email client would work like that.
This isn't an IDE processing plain text files, it's a text entry field for a ticket comment. It should behave that way.
-
@topspin there are people who use text clients that force wrap at 80 characters/line, it looks weird in replies.
-
Imagine your email client would work like that.
E-mail client definitely used to behave that way. IIRC a trailing whitespace made the line break significant.
This isn't an IDE processing plain text files, it's a text entry field for a ticket comment. It should behave that way.
… where it is quite likely to e.g. paste from git comments, which generally have flowed paragraphs. It behaves correctly. I would absolutely hate and despise if it made the line breaks significant.
Also note that *there ain't no such thing as significant line break in normal typography. Either it is a separate paragraph, or it is flowed. Unless it is some kind of a code block, which has its own markdown.
-
Also note that *there ain't no such thing as significant line break in normal typography.
You do not read much
Poetry and other such
You uncultured swine
-
How to block your database and not get caught:
BEGIN; SELECT something FROM somewhere FOR UPDATE; -- or perhaps even LOCK TABLE something IN EXCLUSIVE MODE; BEGIN; -- you get a warning, but the transaction is still open -- just sit and wait
Now, you have a mysterious
BEGIN
in pg_stat_activity and every other thing waits for it. I still don't know what left this transaction open.
-
@sebastian-galczynski said in WTF Bites:
I still don't know what left this transaction open.
Shirley there's a way to get the query text of a running session?
-
@Tsaukpaetra said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
I still don't know what left this transaction open.
Shirley there's a way to get the query text of a running session?
Not after the fact. You need to turn on query logging upfront, and then pray that the disk doesn't fill up on Sunday (cause there's no such thing as 'sysadmin' nowdays).
-
-
@topspin there are people who use text clients that force wrap at 80 characters/line, it looks weird in replies.
There are also people who press the Return key when the line
they’re typing reaches the right side of the text field they’re typing
it into. I always long for moderator privileges on any forum on
which I see things like that.
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.You're supposed to do spacespaceenter to get a Markdumb line break.
-
Fucking javascriptey ORM mixes up database sessions. It seems impossible to get the actual connection used by the data mapper, getConnection() always gets one from the pool at random. The result is a general mess with raw queries (which are necessary here and there) and transactions. Of course I was told before that this is fixed.
-
@sebastian-galczynski said in WTF Bites:
getConnection()
Depends on the object you're calling that in I suppose....
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.You're supposed to do spacespaceenter to get a Markdumb line break.
Or a \ at the end of the line, at least in CommonMark.
-
@Tsaukpaetra said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
getConnection()
Depends on the object you're calling that in I suppose....
The object is called "EntityManager" and it has its own transaction management methods like begin(), flush() and commit(), which perhaps work. The problem is that I need a raw query issued in transaction between some ORM-y operations like find(). Seems impossible so far, I'm digging into the code...
-
I think I fixed this. You just need to use
em.execute()
instead ofem.getConnection().execute()
. The profound difference in how this works wrt sessions is of course not mentioned in the docs at all, and theem.execute()
method is only mentioned once, here:
.
By the way, thegetConnection().execute()
variant also handles logging, so the docs isn't even correct.
And this library is apparently the best the js ecosystem has to offer. Sigh...
-
@TimeBandit said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
Not after the fact.
So MariaDB is superior
Probably the only way it is
-
@sebastian-galczynski said in WTF Bites:
javascriptey ORM
-
-
@Watson The 15th.
-
@Watson the one that doesn't do anything actual users want so it's always supplemented by plethora of non-standard extensions.
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.You're supposed to do spacespaceenter to get a Markdumb line break.
Yeah, at that point I’ll just put a
<br>
in there before I remember that incantation.
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.You're supposed to do spacespaceenter to get a Markdumb line break.
Yeah, at that point I’ll just put a
<br>
in there before I remember that incantation.Fucking hell, why does it elid a line break when I white the space four times!
-
@Tsaukpaetra Four spaces means something else, duh...
-
@Tsaukpaetra Four spaces means something else, duh...
Not at the end of the line before the new line character, according to CM spec - it’s two or more spaces.
Except when it isn’t (e.g. inside
<code>
tags).I love how Markdown is now more fragmented than bbcode.
-
You're supposed to do spacespaceenter to get a Markdumb line break.
Not compatible with my OCD regarding spaces at the end of a line.
-
@sebastian-galczynski said in WTF Bites:
Of course I was told before that this is fixed.
And you believed that?
-
So I published a Function App with Visual Studio 2022 Community Edition to Azure. Well, not once. But quite often, since I had to play around to get things working the way I think they should do.
Now I have a few 100MBs of zip files in
obj\Release\net8.0\PubTmp
. And of course, aclean
in VS does not at all affect any of those outdated files.Looks like I ought to write a
CleanUp.exe
utility to keep the disk free from clutter: Azure charges for disk space used...
-
@BernieTheBernie said in WTF Bites:
a
clean
in VS does not at all affect any of those outdated filesAzure charges for disk space used
This is in no way related. Move along.
-
Status: Fucking Markdumb in Gitlab. If I enter a line break, how about you actually add a
<br>
instead of slamming everything on the same line as if I had written raw HTML? And no, I don't want to put in two line breaks to get a<p>
everywhere.You're supposed to do spacespaceenter to get a Markdumb line break.
… which actually comes from Quoted Printable, which in turn is why
Imagine your email client would work like that.
the ones working with plain text (rather than HTML as is way more common these days) do.
-
@Bulb yes but they don’t generally make that part the user’s problem to have to deal with.