Readit News logoReadit News
Contortion commented on Some users have noticed settings that let Meta analyze and retain phone photos   zdnet.com/article/meta-mi... · Posted by u/mdhb
lazide · 3 days ago
There is a reason they paid so much for it. In a lot of the world, they’re essentially required.
Contortion · 3 days ago
And next to impossible to get rid of. I would much rather use Signal but convincing even privacy-conscious people to switch is an uphill battle.
Contortion commented on Abusing Entra OAuth for fun and access to internal Microsoft applications   research.eye.security/con... · Posted by u/the1bernard
Contortion · 22 days ago
Microsoft documentation is a nightmare, it doesn't surprise me there are vulnerabilities.

I recently built an SSO login using Entra ID (which was thankfully single-tenant) and I basically had to keep randomly stabbing in the dark until I got it to work with the correct scopes and extra fields returned with the access token.

Trying to search for any kind of Getting started guide just took me to child pages several levels deep full of incomprehensible Microsoft jargon and hyperlinks to helpful-sounding but ultimately similarly useless articles.

Contortion commented on PHP 8.5 adds pipe operator   thephp.foundation/blog/20... · Posted by u/lemper
sandreas · a month ago
Exactly... similar in Symfony.

While converting arrays to collection-object is a suitable option that does work, it would feel much more "native", if there were extension methods for Iterable / Traversable.

Contortion · 23 days ago
Agreed. Like in JS and Java, it would be a lot nicer if the language itself had the chainable methods.
Contortion commented on Ratfactor's illustrated guide to folding fitted sheets   ratfactor.com/cards/fitte... · Posted by u/zdw
SilverElfin · 23 days ago
I’m not into the repeated cycle of folding clothes or sheets. Just leave them in hampers.
Contortion · 23 days ago
If you never wash your sheets, you never have to fold them.
Contortion commented on PHP 8.5 adds pipe operator   thephp.foundation/blog/20... · Posted by u/lemper
sandreas · a month ago
While I appreciate the effort and like the approach in general, in this use case I really would prefer extensions / extension functions (like in Kotlin[1]) or an IEnumerable / iterator approach (like in C#).

  $arr = [
    new Widget(tags: ['a', 'b', 'c']),
    new Widget(tags: ['c', 'd', 'e']),
    new Widget(tags: ['x', 'y', 'a']),
  ];
  
  $result = $arr
      |> fn($x) => array_column($x, 'tags') // Gets an array of arrays
      |> fn($x) => array_merge(...$x)       // Flatten into one big array
      |> array_unique(...)                  // Remove duplicates
      |> array_values(...)                  // Reindex the array.
  ;
feels much more complex than writing

  $result = $arr->column('tags')->flatten()->unique()->values()
having array extension methods for column, flatten, unique and values.

1: https://kotlinlang.org/docs/extensions.html#extension-functi...

Contortion · a month ago
Basically what Collections do in Laravel.
Contortion commented on Forced to upgrade   herman.bearblog.dev/force... · Posted by u/SpookyChoice
Contortion · 9 months ago
Fairphone guarantees 8 years of updates for the Fairphone 5.
Contortion commented on Rider is now free for non-commercial use   jetbrains.com/rider/... · Posted by u/kretaceous
jw1224 · 10 months ago
I’m a PhpStorm user so not familiar with Rider specifically, but in my experience JetBrains IDEs are exactly that: Integrated Development Environments. Whereas VSCode is more of a code editor first and foremost.

There’s tons of overlap between the two, and for casual development VSCode will usually be fine. But as a professional I rely on IDEA to make a living, and it rarely lets me down.

95% of everything I could ever need comes out-of-the-box, so I don’t need to go plugin hunting (though there is a broad range of IDEA plugins too). In fact the IDEA plugins are cross-compatible, so plugins for Rider will work in PhpStorm, PyCharm, Rubymine, etc.

The refactoring is outstanding, and leaps beyond what VSCode can do it. Basically it just understands my code like a real developer would. Not just simply checking syntax, but understanding project structure, naming conventions, coding styles, and more.

PhpStorm gives me access to a full debugger, with inline breakpoints and execution step controls. “Find Usages” is incredibly thorough and even understands dynamic symbol names in many cases.

Also I get a full MySQL and Redis client, right there in the UI. I can click on strings which refer to column names in my code, and they’ll appear in the DB panel instantly.

At the end of the day these are power-user features, but I’m glad to have them and feel significantly more productive in a JetBrains IDE. Embracing static analysis and a full IDE was probably the single most beneficial upgrade to my skills and career.

Contortion · 10 months ago
I've tried VS Code and Haystack (based on VS Code) for writing PHP and I just couldn't stand it after having used PhpStorm. Basic things like copying variables, indenting, moving lines into if statements, multiple cursors etc. just aren't intuitive in VS Code when writing PHP and a lot of the things I can do in PhpStorm with the press of a button just aren't possible.

I really hope they move PhpStorm to the same payment model as Rider so I can also use it for my own non-work projects.

Contortion commented on Show HN: If YouTube had actual channels   ytch.xyz... · Posted by u/hadisafa
ebri · a year ago
There is a bug when using qutebrowser (using arch linux) - when turning on the sound, the TV turns off (e.g. goes to black-and-white-noise-mode). When turning off the sound, the TV turns on again.

On google chrome, all is well. Just for FYI :) very cool project!

Contortion · a year ago
Slightly similar bug in DuckDuckGo on Android, unmuting causes the video to buffer again but it then pauses itself and there's no way to unpause it.
Contortion commented on OWASP Juice Shop: Hacking a Modern Web Application   blog.javascripttoday.com/... · Posted by u/whatamidoingyo
whatamidoingyo · a year ago
Damn, it's actually not, lol.

It's bad... isn't it? :O It's one of the first articles I wrote, and I posted it here thinking nothing of it, but alas, it hit the first page.

Although it was primarily written to introduce the JuiceShop project to people, so I guess that's good.

Contortion · a year ago
Honestly, it's not a bad article. I'd not heard of OWASP Juice Shop and now I'm interested to check it out. The article also prompted me to look into how user input sanitising works in the framework I use. So all in all I'd say it's a positive addition to the internet.
Contortion commented on Edinburgh, Scotland makes it illegal to advertise SUVs   washingtonpost.com/climat... · Posted by u/bookofjoe
Hnrobert42 · a year ago
How is single use paper even worse for the environment than single use plastic?
Contortion · a year ago
Paper is environmentally expensive to produce and recycle. If it's worse than plastic is surely debatable but it's definitely not significantly better.

https://science.howstuffworks.com/environmental/green-scienc...

u/Contortion

KarmaCake day87June 17, 2023View Original