sarjalim

joined 1 year ago
[–] [email protected] 2 points 9 months ago (1 children)

Yes, agreed, some of it is probably just bluster to seem like they're doing something.

However, even if we agree that more police resources are necessary, I don't know how we should get more of competent, educated police in the short term unless we involve military (who do have some education at least). The last thing I want is for us to rapidly employ new "police" (ordningsvakter) with only weeks or a few months of training - that's how we get additional problems with US-style police violence on top of the gang violence problems...

[–] [email protected] 11 points 9 months ago* (last edited 9 months ago) (3 children)

I agree that the current government is implementing exactly 0 long-term strategies to help deal with the root cause of the problems, like strengthening and financing social services and welfare, healthcare and mental healthcare, schools and social programs, decriminalizing some drugs etc, to curb influx of underage criminals into the gangs and remove some of the economical incentives. The opposition is coming out with good suggestion after good suggestion, and the right-wing (by Swedish standards) government has basically just slashed welfare across the board in practice. They are going for only the hard-on-crime approach, which as far as I know has no real scientific proof of long-term efficacy unless paired with social/community interventions.

However, I think many swedes agree that the police need more resources - particularly people watching possible targets of future bombings and just more eyes on the gangs. We have one of the lowest number of police per capita in Europe, slightly higher than the rest of the Nordic countries tbf, but with much bigger problems with organized crime and violence.

I'm also horrified at this general societal development, but I can see the merit of involving some of the military in more eyes-on-the-ground kinds of operations for a few years until we have more of a grip on the gang situation. I prefer that to visitation zones, harsher punishments and more generalized surveillance of non-suspects being allowed.

But maybe I'm just naïve to the implications.

[–] [email protected] 6 points 9 months ago (1 children)

Japp, håller med. Han kanske är skitbra på sitt jobb, men jag tror inte svenska folket överlag har den uppfattningen med tanke på hur han hanterade Mats Löfving-fallet och nu våldsvågen. Tror han skulle ha nytta av att vara mer öppen om både sig själv och polisens arbete och utmaningar.

[–] [email protected] 4 points 9 months ago (3 children)

Det är inte lag på att vara tillgänglig för media. Samtidigt kan jag tycka att är man högt uppsatt inom en myndighet så ingår det på något sätt i arbetsuppgifterna att faktiskt vara kommunikatör utåt.

[–] [email protected] 16 points 10 months ago* (last edited 10 months ago) (3 children)

I pay for Bitwarden premium and the big thing for me is the ability to use it for 2FA/TOTP right from the browser extension (for sites where I feel convenience mostly trumps hardened security). It's glorious that Bitwarden autofills username and password, and then auto-copies the current 2FA code to your clipboard so you can just paste it immediately, instead of needing to pull up your phone and authenticator app to fetch a code, or check your email/texts for a code.

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

I also use Connect. My phone is a Samsung Galaxy S23 Ultra, I think it has to do with the emoji collection on the device rather than a specific app. Screenshot of emoji with modern car wheel in Connect app

[–] [email protected] 13 points 10 months ago* (last edited 10 months ago)

As someone else already said, don't overthink the language choice aspect in general. If you learn almost any imperative language with C-like syntax (Go, JS/TS, C#, Java etc), picking up another one in the same "family" to a usable degree will be a very minor hiccup done within a very short time (hours). Sure, there are quirks and special syntax and different collections of built-in features for each one, but as a developer you will likely switch between several anyway and need to look up syntax from time to time - you know that something can be done, but the details how are a bit fuzzy.

For instance, I code mostly in C# and JS/TS, but we have legacy applications written in VB.NET so I often google VB syntax for things that I know how to write in C#. I also occasionally code in C, have dabbled in Fortran, Python and PHP and I'm sure I'm forgetting one or two. SQL and LINQ syntax too of course. What you learn on your developer journey is that something can be done, but remembering the specific implementation in a specific language might be a job better suited for your search engine. That said, of course it's good to start with one language that you know pretty well, but it seems like you're already there with Python.

The real challenge is learning the methodology of building applications, philosophy of OOP, patterns and program/application architecture and frameworks. Language choice is very much secondary to those areas of expertise imo.

Personally though, I am partial to JS/TS as I've used those the longest, they are extremely versatile and frontend development is my favorite area.

[–] [email protected] 1 points 10 months ago* (last edited 10 months ago)

Very little (and long ago). We usually use a frontend stack of Angular and PrimeNG for our projects.

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago) (4 children)

I'm honestly not necessarily a BEM fan as class names become literally huge if you don't rely a bit on nested elements (targeting nested classes is not very BEMmy - but SASS makes it so convenient). But haven't found a naming convention or "framework" that does the job better. BEM also doesn't address how you should organize the style library for maintainability. I just use my own simplified structure based on ITCSS now.

I just wish that someone could make a methodology or an architecture of building style libraries that felt obvious and was more plug-and-play, I hate that I feel like have to revisit the style library organization and naming convention for each new project to reevaluate if it makes sense for the scope of the project.

Then again, I work as a fullstack dev in a small team of more backend-focused fullstack devs, so I don't do frontend as often as I'd like and don't really have anyone to discuss these issues with.

[–] [email protected] 2 points 10 months ago (2 children)

When you figure out how to set up Caddy, please send me a PM... I've tried and given up, but probably managed to misconfigure or misunderstand something.

For outside access I use Ngrok so I don't have to bother with router settings. Probably isn't recommended, but it was easy to set up and has worked flawlessly for me for years.

[–] [email protected] 2 points 10 months ago

Lol I hear ya 😅 But great that you got it to work for your setup. Best of luck with your projects!

[–] [email protected] 6 points 10 months ago* (last edited 10 months ago) (2 children)

If I understand correctly (and I'm not 100% sure I do), localhost in a Docker container lives in it's own little network which is not the host's network.

The container is its own localhost, which has its own ports (which is why you have to map an internal localhost port to a host PC localhost port for every container you wish to access). This means that Prowlarr in your case, has no idea what localhost:4666 should be since in Prowlarr's localhost universe there exists nothing on that port. To access what the host knows of ports (instead of the container), you have to write the host's address from inside the Prowlarr container.

I hope that wasn't impossible to follow 😅

Now that I think about it (haven't tried myself though) you could possibly add the mapping of port 4666:4666 to the Prowlarr Docker compose setup and then use localhost:4666 to access qBittorrent from inside Prowlarr.

view more: next ›