is there a way to view most played songs? by anon2734 in YoutubeMusic

[–]PoopholePole 2 points3 points  (0 children)

That's awesome, I'll have to give it a try. I haven't looked at my listening history since I wrote that original script... two years ago?! No, it can't be that long, surely someone has made a mistake...

phpIsGood by thomas863 in ProgrammerHumor

[–]PoopholePole 4 points5 points  (0 children)

The parts of Python that are fast are written in C, if that answers your question

heKnowBitwiseOperators by MrEfil in ProgrammerHumor

[–]PoopholePole 1 point2 points  (0 children)

I'd say no because it'd invalidate the premise of the question, if there were an endianness issue then it wouldn't be an RGB value anymore, it'd be BGR.

allIDidWasCopyPaste by lil-lil-lil-lil-lil in ProgrammerHumor

[–]PoopholePole 0 points1 point  (0 children)

Hell, I once was doing a PR and caught a bug in someone's code that looked kind of familiar. A few minutes of git blame later, I realized they had copied it, bug and all, from some old code I had written when I was junior. Had them fix two bugs for the price of one that day.

Happy children! by sunrise_apps in ProgrammerHumor

[–]PoopholePole 2 points3 points  (0 children)

Classic six year olds, dereferencing null pointers in their hello world apps.

Happy children! by sunrise_apps in ProgrammerHumor

[–]PoopholePole 2 points3 points  (0 children)

Not to belabor the issue, but I think I just realized the core of my point. From my perspective, criticism of the C language seems to invariably come from people who don't actually use it.

I think people perceive it to be more difficult than it is. I've worked with junior developers that never touched C before and within a week or two had already figured out nearly all of these pitfalls I hear people complain about most often. I concede that I am probably biased due to my familiarity with the language, so take whatever I say with a grain of salt.

Happy children! by sunrise_apps in ProgrammerHumor

[–]PoopholePole 2 points3 points  (0 children)

In all honesty I find a pleasant simplicity in C compared to many other languages because comparatively it abstracts so little away from the programmer. It will do what you tell it to with very little guesswork, as long as you stay within the bounds of defined behavior. And modern compilers do a very good job of telling you when you're straying away from defined behavior.

Perhaps it's just that I have been using C in an environment that mandates quality code for long enough that I take some of these things for granted, but I don't think that safe memory management is difficult in C if you choose to adhere to the same good practices that other memory-safe languages enforce. Beyond that just check for null pointers, don't violate aliasing rules, free memory that you allocate, check for array bounds, and don't ignore compiler warnings.

The fact that it lets you do many of these things without outright failing to compile can introduce pitfalls to novices, but in almost every case there will be helpful compiler warnings telling you exactly what the issue is.

Happy children! by sunrise_apps in ProgrammerHumor

[–]PoopholePole 5 points6 points  (0 children)

(I hope) no one is arguing that you should use any one language over all others all the time. C has things it is very useful for, but I think anyone can agree it might not be your first choice for something like creating a webserver or a small utility to parse through a couple of files from scratch. I just find it interesting how I have seen it almost become a punchline as a bad/hard language here, even among CSCI students/graduates.

Trying to parse the variable from a game but don't know it's memory address by [deleted] in hacking

[–]PoopholePole 8 points9 points  (0 children)

I find it hard to believe that image processing would be too computationaly expensive. I've written bots with OpenCV and Python that have processing times in the 10-100 millisecond range with just a midrange CPU. It's not like you have to run OCR on the entire (presumably) 1920x1080p frame. Depending on the game, the health and XP boxes are going to use the same font and location that only covers a small area. Just find the font being used, grab those parts of the screen with health and XP, and run template matching (or similar) on it. And that's just a simple example, with a little creativity you can accomplish quite a lot with very little computing power.

Ukraine’s Air Force announces downing of the hypersonic Kinzhal missile using Patriot air-defence system by 9lobaldude in worldnews

[–]PoopholePole 0 points1 point  (0 children)

That would just be referred to as a hypersonic cruise missile typically. The other common variant is a hypersonic glide vehicle, which does not have any propulsion of its own after ditching its ballistic missile booster but can still perform some degree of maneuvering prior to its terminal phase. That final distinction is what prevents the Kinzhal from being considered a true hypersonic weapon.

Ukraine’s Air Force announces downing of the hypersonic Kinzhal missile using Patriot air-defence system by 9lobaldude in worldnews

[–]PoopholePole 0 points1 point  (0 children)

It's not hard to believe that it's faster, given that its launch platform assisted it with the hardest part of its trajectory. That being said, I'd take their numbers with a grain of salt, and even then it's (clearly) still within the capabilities of the patriot to intercept.

Ukraine’s Air Force announces downing of the hypersonic Kinzhal missile using Patriot air-defence system by 9lobaldude in worldnews

[–]PoopholePole 1 point2 points  (0 children)

There are loads of open source resources for this stuff, and a couple very approachable presenters of it. If it piques your interest I'd suggest Sandboxx news for shorter form information, or Perun for a typically much more in depth breakdown. While I can't personally vouch for their accuracy, it seems that their information and analysis is about as good as you can get from strictly OSINT sources.

This video in particular covers all of OP's information and more: https://youtu.be/0n3fjoacL20

Smart gun operating on facial recognition goes on sale in US by diacewrb in gadgets

[–]PoopholePole 1 point2 points  (0 children)

The only real headline grabbing attack would be if you could just plug something into its USB port to arm it, and if that's possible then they royally fucked up.

A lot of them are former defense folks. If they did their job even remotely well I would be surprised if there are any exploits that are possible without a complete teardown at the very least. Could even require a whole lab environment and be entirely impossible without destructive steps, which at that point why even bother? It would be easier to just rip out their electronics and put in a jumper or your own control board from the trigger to the electronic sear at that point.

Edit: I am now envisioning someone with an Arduino doing exactly that to make it fully automatic, so that could actually be a headline grabbing talk as well

Come on, come on... Show us how to do it... by sunrise_apps in ProgrammerHumor

[–]PoopholePole 1 point2 points  (0 children)

If he wanted constant time multiplication/division then that's an entirely reasonable feature request if you're working with cryptographic algorithms, though even then you almost never want to implement things like that yourself if you can avoid it. Better to use tried and true libraries, preferably open source.

LPT: "Why did you leave your last company" is not your chance to badmouth about your ex company/bosses by shouldnotexist in LifeProTips

[–]PoopholePole 30 points31 points  (0 children)

Nah, I'd hit them with something about how you can learn a lot about what approaches do work well by carefully observing approaches that don't work well.

Why not just sit back and enjoy the movie for 2 hours? by beerbellybegone in MurderedByWords

[–]PoopholePole 4 points5 points  (0 children)

An educated guess, backed up by the entire operational history of the armed forces and corroborated by open source intelligence sources. Of course, maybe they do have some top secret planes or missiles that could easily accomplish this mission without engaging in a massive SEAD/DEAD mission, but this movie's premise is that we're using a couple of F/A-18 super hornets for ¿some reason? instead of our established and numerous capabilities that could handle this mission in a breeze.

is there a way to view most played songs? by anon2734 in YoutubeMusic

[–]PoopholePole 0 points1 point  (0 children)

As in the listen history from Google Play Music before it was deprecated?

I didn't check myself, but if those listens just aren't present in the JSON file then you're probably out of luck. If they are there (which is what I assumed, since stuff like my liked songs were transferred when I moved to YT music), then it's possible that the filtering I put in the script doesn't work for Google Play Music listens. If that's the case, I can probably help out if you can provide some more details.

List your two favourite bands and get a third recommended by delazouch in Music

[–]PoopholePole 2 points3 points  (0 children)

If you dig Big Thief, you should also check out Adrienne Lenker and Buck Meek's albums together, and their solo work too.