WTF Bites
-
@Tsaukpaetra said in WTF Bites:
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
TortoiseSVN
Found your problem!
I'm open to recommendations.
TortoiseGit is a pretty good GUI for Git, IMHO.
It appears to be the best. As disingenuous as that sounds. Still, no program is without flaw!
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@levicki said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
TortoiseSVN
Found your problem!
I'm open to recommendations.
TortoiseGit is a pretty good GUI for Git, IMHO.
It appears to be the best. As disingenuous as that sounds. Still, no program is without flaw!
You're right. You do kinda have to understand the Git lingo, and it took a little bit for me to configure the menus the way I liked. (Though, thankfully, you can hide a bunch of stuff that you'll never use.)
-
WTF: When dealing with plain-text URLs, many browsers offer an "open link" feature. However, a disturbingly small percentage open them in new tabs.
e.g. Opera
This opens the link in the current tab, which is in my case a pinned Sonarr tab. Some browsers let you middle click the menu item to open it in a new tab, but this one doesn't.
-
You do kinda have to understand the Git lingo
If you didn't, you'd have the problem of being unable to translate any solution described in non-TortoiseGit documentation into what applies in that UI.
-
Opera
There's your problem.
Also, from the link:
The problem with this cycle of events is that Sonarr defaults 'newly appeared' episodes as monitored (although a series level monitored flag overrides that).
Also, any such episodes with airdates in the past are automatically searched if the series+episode level monitored flag is enabled. (Feature to search in case tvdb was 'behind')
Normally that would be fine, but in this case this leads to potentially numerous old and watched episodes from being redownloaded unintentionally, and the reason for me to pause tvdb sync for now.So that is why it happened to me the other day.
-
Chrome […] (Java's Date class)
Given that Chrome does not run Java for about four years now, do you mean like Java's Date class, but actually some JS one, is the application transpiled from Java using GWT or similar tool, or is this that Date produces something that the client-side part is parsing back and stopped understanding?
It's a server-side Java app that displays using JBoss Seam.
Richfaces?
-
@levicki said in WTF Bites:
e.g. Opera
Why are you tormenting yourself like that?
- it has Tampermonkey
- it has Tree Tabs
- maybe I should just use Firefox
-
@boomzilla said in WTF Bites:
It's a server-side Java app that displays using JBoss Seam.
Richfaces?
Richfeces?
-
@levicki My post was mostly ironic because I had setup those two plugins in Firefox in the past week for work, as well as userChrome to hide the top tabs. I'll probably switch over on my home machine eventually but for now
-
Google has some of the most scummy link tracking I've ever seen. Have you ever noticed how hovering over a result shows the ORIGINAL address in the browser status bar, but clicking it directs you to a Google domain and only then redirects? Turns out it listens to
mousedown
event to alter the URL mid-click.
-
@levicki said in WTF Bites:
- Tree Style Tab (or Tree Tabs if you meant literally)
I have the former and it's served me well, but I've considered switching to the latter just for those side tabs.
I've actually used it before, though not much. Tree Style Tabs was more stable back then, but I don't know how much things have changed.
-
https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support#simple-plugin-with-no-dependencies (scroll up a bit):
static Assembly LoadPlugin(string relativePath) { // Navigate up to the solution root string root = Path.GetFullPath(Path.Combine( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName(typeof(Program).Assembly.Location))))))); string pluginLocation = Path.GetFullPath(Path.Combine(root, relativePath.Replace('\\', Path.DirectorySeparatorChar))); Console.WriteLine($"Loading commands from: {pluginLocation}"); PluginLoadContext loadContext = new PluginLoadContext(pluginLocation); return loadContext.LoadFromAssemblyName(new AssemblyName(Path.GetFileNameWithoutExtension(pluginLocation))); }
And later they say:
add
@"HelloPlugin\bin\Debug\netcoreapp3.0\HelloPlugin.dll"
as an element of the pluginPaths array.Was this really the best way you could write this?
-
Google has some of the most scummy link tracking I've ever seen. Have you ever noticed how hovering over a result shows the ORIGINAL address in the browser status bar, but clicking it directs you to a Google domain and only then redirects? Turns out it listens to
mousedown
event to alter the URL mid-click.AFAIK it was always like that. And it's the original link in the status bar that's weird, not the redirection. Without the redirection they wouldn't know how to rank the results.
-
@sebastian-galczynski said in WTF Bites:
Google has some of the most scummy link tracking I've ever seen. Have you ever noticed how hovering over a result shows the ORIGINAL address in the browser status bar, but clicking it directs you to a Google domain and only then redirects? Turns out it listens to
mousedown
event to alter the URL mid-click.AFAIK it was always like that. And it's the original link in the status bar that's weird, not the redirection. Without the redirection they wouldn't know how to rank the results.
Long, long ago, when browsers still had status bars, I'd noted that two attribute values go in the status bar on mouseover; I think they were title and href, and title would trump href.
-
Long, long ago, when browsers still had status bars, I'd noted that two attribute values go in the status bar on mouseover; I think they were title and href, and title would trump href.
Mine still has one, and no, the title attribute only shows the tooltip.
-
.......why is this a notification that I am getting?
-
@sebastian-galczynski said in WTF Bites:
Google has some of the most scummy link tracking I've ever seen. Have you ever noticed how hovering over a result shows the ORIGINAL address in the browser status bar, but clicking it directs you to a Google domain and only then redirects? Turns out it listens to
mousedown
event to alter the URL mid-click.AFAIK it was always like that. And it's the original link in the status bar that's weird, not the redirection. Without the redirection they wouldn't know how to rank the results.
Long, long ago, when browsers still had status bars, I'd noted that two attribute values go in the status bar on mouseover; I think they were title and href, and title would trump href.
In the 90s some sites would put stuff there with Javascript but after that stopped I don't remember anything but href going in there
-
@Polygeekery said in WTF Bites:
.......why is this a notification that I am getting?
Might be a setting. I have the IMDB app installed and I've never had any notifications
-
@hungrier it's a movie from 1933. That was my .
-
@levicki said in WTF Bites:
- Ageless (allows watching age-restricted YouTube without sign-in)
- Don't Track Me Google (demangles search result links and removes click tracking)
I'll try those.
Also LOL at markdown rendering the quote.
-
// Navigate up to the solution root string root = Path.GetFullPath(Path.Combine( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName(typeof(Program).Assembly.Location)))))));
I think we need an animated that does a full 360° spin.
-
-
-
-
This actually reminded me of the classic painting by Pablo Wtfasso:
-
@Zecc Programmer Paintings thread is wherever the fuck.
-
-
@Polygeekery said in WTF Bites:
@hungrier it's a movie from 1933. That was my .
Moviegoers need some escapism from the modern troubles of collapsing stock markets and grocery store shortages, so what's better than a movie from the Great Depression and Dust Bowl era?
-
@Polygeekery said in WTF Bites:
@hungrier it's a movie from 1933. That was my .
Moviegoers need some escapism from the modern troubles of collapsing stock markets and grocery store shortages, so what's better than a movie from the Great Depression and Dust Bowl era?
"Look at it from the bright side — it could be worse"?
-
@boomzilla said in WTF Bites:
Chrome […] (Java's Date class)
Given that Chrome does not run Java for about four years now, do you mean like Java's Date class, but actually some JS one, is the application transpiled from Java using GWT or similar tool, or is this that Date produces something that the client-side part is parsing back and stopped understanding?
It's a server-side Java app that displays using JBoss Seam.
Richfaces?
The old version used Flex, combining Flash for the adminsitrative portal and Richfaces for the end user portal, but since Flash is going away, the development team has rewritten the frontend and replaced it with Angular2, Bootstrap, and PrimeNG for the new version.
At least, I think that's what I'm seeing. I don't know enough about UI frameworks to even really know if what I just said means anything useful.
-
I don't know enough about UI frameworks to even really know if what I just said means anything useful.
Yes. Sounds like the direction we're going (minus PrimeNG, whatever that is).
-
@Polygeekery said in WTF Bites:
@hungrier it's a movie from 1933. That was my .
Moviegoers need some escapism from the modern troubles of collapsing stock markets and grocery store shortages, so what's better than a movie from the Great Depression and Dust Bowl era?
"Look at it from the bright side — it could be worse"?
-
"Look at it from the bright side — it could be worse"?
The First Lutheran!
Luther?
-
@levicki said in WTF Bites:
ondering if there is a C++ way of writing this type of casts:
uint8_t Buffer[20];
int a = *(int*)&Buffer[8];... reinterpret_cast?
-
@levicki I guess you could use a
reinterpret_cast
to get rid of the(int*)
part, but that's just making the whole thing identical-but-more-verbose (which, depending on how you see it, is either a good or a bad thing).EDIT: damn, ed!
-
@levicki said in WTF Bites:
@ixvedeusi Aha, so it is apparently possible to write it as:
int a = *reinterpret_cast<int*>(&Buffer[8]);
Though I am not sure if it really improves readability, and it's definitely more cumbersome to type.
If you know the structure of the entire 20-byte buffer, you could union it with a (possibly packed) struct. But then you could do that in plain C as well.
-
@levicki It makes it explicit that you are type-punning and therefore caution shall be exercised (
uint8_t
is a char-derived type, so the cast is defined).If you know the structure of the entire 20-byte buffer, you could union it with a (possibly packed) struct. But then you could do that in plain C as well.
I believe type-punning with union is not actually defined even for the cases that are exempt from strict aliasing with casts.
-
Just bought this bundle for my quarantined 13 year old who's interested in learning to code (and was using Scratch in a school class before that got squashed):
I clicked on the "This is a gift" box so I could have it sent directly to his email. Then I copied the email in (because I'm paranoid about mistyping stuff like that) and click the "Pay with card" button.
Nothing happens....Open up the console...click...Repeats of the "failed to parse SourceMap" warning...huh...then I notice that the email box has a very thin red line inside the text box.
It turns out there was a trailing space on the email that befuddled them so much that they couldn't continue or even tell me the problem was.
-
(uint8_t is a char-derived type, so the cast is defined).
Not sure, alignment might still be off. IIRC, the rule is that you can access other types through a
char*
, but not the other way around.Legal way would be with a memcpy(), any semi-competent compiler will optimize it away.
-
@boomzilla said in WTF Bites:
I don't know enough about UI frameworks to even really know if what I just said means anything useful.
Yes. Sounds like the direction we're going (minus PrimeNG, whatever that is).
Primefaces but for angular
-
@boomzilla said in WTF Bites:
Just bought this bundle for my quarantined 13 year old who's interested in learning to code (and was using Scratch in a school class before that got squashed):
It turns out there was a trailing space on the email that befuddled them so much that they couldn't continue or even tell me the problem was.
This would be a WTF even if it wasn't a coding course.
-
@levicki said in WTF Bites:
Not sure how I would struct/union that
union retarded_structure_t { struct smaller_version_t { uint8_t signature[8]; uint32_t datum; } smaller; struct larger_version_t { uint8_t signature[16]; uint32_t datum; } larger; };
But I'd be more likely to read enough header bytes first so as to know how much to really read and just have separate structs. (You can do that in a constant sized read, right? If not, the format is totally retarded to the point of having fallen out of the stupid tree as a child, hitting every branch on the way down, and then landing hard on their head.) I try very hard to avoid overreading anything from either files or memory sources…
All this assumes that the host platform has 4-byte alignment rules (pretty likely to be true unless you're using something exotic) and uses little-endian native integers.
-
Status: So... much... wrong... with this....
-
Status: Was on a call with some Internet Associates. Someone was on speakerphone, and we heard Alexa talking, so I said "Hey Alexa, where am I?"
You'll never guess what happened next!
If you guessed "It read out the person's home address because that's where they were", you get a cookie!
Seemed to work for Google Assistant too.
Didn't have an Apple device on the call so we couldn't try that...
-
@Tsaukpaetra said in WTF Bites:
Status: So... much... wrong... with this....
Yeah, look at all those dates in mm-dd-yyyy format.
Edit: missing y. It's not that bad
-
status: I seem to be experiencing screen burnin with my phones LCD...
-
@Tsaukpaetra said in WTF Bites:
Status: So... much... wrong... with this....
It's not that bad
502 OK
-
@Tsaukpaetra said in WTF Bites:
So... much... wrong... with this....
I just love the way the two date+time columns wrap differently. Really gets my CDO going…
-
@boomzilla said in WTF Bites:
502020 OK Boomer
-
@dkf
Would it have been better if they would have used a different date/time format?I'll go to the evil ideas thread now.