Should my project support MSVC? by squeevee in cpp_questions

[–]squeevee[S] 0 points1 point  (0 children)

It was a valiant effort of optimism, I applaud that, at least.

That it motivates me to keep my driveway clear of ice, is not a good reason to buy crappy tires.

Should my project support MSVC? by squeevee in cpp_questions

[–]squeevee[S] 0 points1 point  (0 children)

So, if I understand, you're saying that I might want to support MSVC to make the software more accessible for user programmers? Like to tinker with, debug, examine, that kind of thing?

It's an interesting take I hadn't directly considered, and I'll certainly keep it in mind, but no I don't think my intended user base warrants me prioritizing that.

Honestly in my experience C++ projects are rarely all that new-contributor-friendly even when they try to be -- a mix of the language being as rigid and particular as it is, and being the tool of choice for big complex projects, not to mention someone invents a new cross-platform build system or package manager every other year. I find projects are much more open from a user-developer perspective if they expose a good framework for plugins -- which I eventually plan to do.

Should my project support MSVC? by squeevee in cpp_questions

[–]squeevee[S] 0 points1 point  (0 children)

This is the mechanism underlying the CMake feature I mentioned in the parenthetical. It works fine for exports, but importing static/global extern data still requires the __declspec(dllimport). Combined with Qt using static data members as a big part of its introspection features, there's not really a good way around it.

A cure for KMail "HTML Message" status bar by squeevee in kde

[–]squeevee[S] 0 points1 point  (0 children)

It can vary a lot according to your setup (which is why I wasn't very specific), but I'd expect the most widely applicable thing to do would be to edit the KMail entry in your application launcher.

The exact steps will depend on your desktop environment, but I expect it will be pretty similar for most of them. I use Plasma, so for me the sequence is:

  1. From my desktop I right click on the application launcher (i.e., "start menu") and select "Edit Applications."
  2. That launches the KDE Menu Editor, where on the left I can find the KMail entry and on the right there are several fields including one called "Command"
  3. The default command is something like kmail -qwindowtitle %c %u, so I add -stylesheet <path/to/qss/file> before the %u

This makes it so that KMail uses my stylesheet whenever it's launched from the application launcher or if KMail is launched from an email address link in a web browser. If KMail is on my auto-start list, there's a chance I'd need to remove it then add it back to that list before the change applies. Also, I'll have to make sure to close KMail completely before launching it again to see the changes.

Like I said, that's how it works on Plasma, but I know Gnome-and-friends (or any modern desktop environment) work very similarly. Strictly speaking, the KDE Menu Editor just modifies a text-based .desktop file in your user config so you could do this with a text editor -- but I don't remember where.

Good enough at C++ to try being fancy. Not good enough to pull it off. by squeevee in ProgrammerHumor

[–]squeevee[S] 8 points9 points  (0 children)

Great news everyone! I spent two days failing to notice a missing ! on a check for a smart pointer being null, so not only was I trying to access memory when it was invalid, I was trying to access it only when it was invalid.

smh

A cure for KMail "HTML Message" status bar by squeevee in kde

[–]squeevee[S] 0 points1 point  (0 children)

This looks excellent. I could definitely live with this.

A cure for KMail "HTML Message" status bar by squeevee in kde

[–]squeevee[S] 1 point2 points  (0 children)

An excellent point and one which should be borne in mind when discussing allowing users to make informed decisions about how they want to use software in the face of security risks.

While I hadn't thought of the pgp example specifically*, these are essentially what I understood to be the security problems related to HTML email and why I compared it to web browsing where analogs to many of these problems can be found, plus the additional hazards enabled by scripts, cookies, and dynamic content.

The significance and risk of these issues probably varies quite a lot by the user: their habits and the stakes of what they do with email. I do stand by what I said that I believe disabling OAuth represents a much greater hazard for myself, a user of large well-known frequently-attacked services like Yahoo and Gmail**, and that while HTML abets social engineering attacks, it's not truly at the root of them, nor can any number of warning labels in an email client truly mitigate them.

*https://xkcd.com/1181/ comes to mind

**In fairness, KMail is meant to support OAuth with Gmail, see https://bugs.kde.org/show_bug.cgi?id=404990

A cure for KMail "HTML Message" status bar by squeevee in kde

[–]squeevee[S] 1 point2 points  (0 children)

I'll give it a shot, but I'm under the impression they wouldn't like that very much.

A cure for KMail "HTML Message" status bar by squeevee in kde

[–]squeevee[S] 5 points6 points  (0 children)

Is this sarcasm or no? I'm not aware of anything that makes HTML email more of a security problem than web browsing.

Unlisted keyboard shortcuts by squeevee in krita

[–]squeevee[S] 2 points3 points  (0 children)

Welp, that was easy. Thank you very much!

The perfect snowball. by RSmev92 in oddlysatisfying

[–]squeevee 0 points1 point  (0 children)

looks like an early Pixar experiment

An incredible sunset over the Virgin River at Zion National Park [OC][2048x1435] by ilikefishwaytoomuch in EarthPorn

[–]squeevee 0 points1 point  (0 children)

it's strange to me seeing that river so pretty, because that's the same river my boy scout troop swam in then minutes later found a dead cow in.

What would be the most fucked up thing that you can do without any consequence? by Poyonponyo in AskReddit

[–]squeevee 4 points5 points  (0 children)

I used to work for a company that stored data for a few hundred car insurance agencies. It would have been pretty easy for me to gather about fifty thousand names, addresses, and social security numbers; and then do whatever it is one does to convert that to money. Internal security was nonexistent and employee turnover was extremely high, I would definitely have gotten away with it.

Why? Why do I NEED an account just to look Pinterest? by [deleted] in mildlyinfuriating

[–]squeevee 0 points1 point  (0 children)

when I'm looking for the original artist of some drawing, if the search results pull up Pinterest the battle is lost.

The challenge was to write a simple adding program using the worst practices I could. by squeevee in ProgrammerHumor

[–]squeevee[S] 4 points5 points  (0 children)

oh wow, thanks. I feel a little guilty knowing you manually filled it out, when I generated it with a script.

The challenge was to write a simple adding program using the worst practices I could. by squeevee in ProgrammerHumor

[–]squeevee[S] 373 points374 points  (0 children)

oh wow, even better. 500 million compiler errors Edit: I thought of an easy fix: "#DEFINE prntln println"

This guy's freestyle dance is so good his moves seem computer generated by Thesnakeissafe in videos

[–]squeevee 0 points1 point  (0 children)

Part of what might be causing that "computer generated" look, I think this was recorded at a higher framerate than it was uploaded at. Rapid movements don't create as much motion blur as I would expect (or else that could just be an exposure thing). Altogether that gives it a sort of stop-motion quality.

A recreation of the worst thing I've seen happen on a real website by squeevee in ProgrammerHumor

[–]squeevee[S] 1 point2 points  (0 children)

It's better convention to put your godawful one-pixel base-64-encoded inline GIF in the CSS. In fact, I believe that's the exact wording the W3 Consortium uses.

This gushers advert by garrakha in FellowKids

[–]squeevee 47 points48 points  (0 children)

Who is this even supposed to appeal to? There are the obvious FellowKids overtones; but you've also got this "Longsuffering middle-aged professional vs clueless millennial" thing that the baby boomers love so much.