HNHacker News
TopNewBestAskShowJobs

philo23

862 karma · joined February 15, 2011

submissionscomments
philo23··on Win32 is the stable Linux userland ABI (and the consequences)
Yeah exactly, it's probably impossible even between different generations of the same brand of graphics card.
philo23··on Win32 is the stable Linux userland ABI (and the consequences)
> Their goal is being able to suspend a game on your desktop and play it on your Deck will likely need them to standardize on a single platform [..] There are some additional challenges with this approach [..] but sticking to a single platform [..] removes some concerns with synchronizing lower level state across multiple platforms.

My understanding with the suspend/resume stuff they've talked about for the Deck is less about actually suspending/resuming the game by syncing some low-level state like memory or graphics, and more about quickly syncing save games via Steam cloud saves.

I only had a quick look over their docs when the Deck was announced and from what I could tell you basically opt into a new system-level save behavior where at any point the Steamworks library can tell the game "this device is going to suspend now, save your progress" then another computer can start the game and immediately load up the save file, giving the impression of seamless suspend/resume.

So as long as your save game files aren't OS specific in some way there's no reason why this should lock you into any specific platform, Windows or otherwise.

philo23··on Laravel 9
I think quite a lot of the PHP routers are based on regexes, for better or for worse. One of the most famous is FastRoute by nikic that (from memory) merges all your routes into one big regex and then tells you which route to dispatch based on some index that comes back in the match. I don't know how widely that specific library is still being used though or if it's since been replaced by something better.

https://github.com/nikic/FastRoute

philo23··on Safari Ruined My Tuesday
Yeah they've always updated Safari on the previous version of macOS, but that's pretty far from being evergreen, and the average user isn't going to be using the technology preview.

Take Chrome for example, where there's roughly an update every 60 days and the option for them to push out security fixes quicker.

Imagine having to wait for an operating system update (major or minor version) to just get the latest secure version of Chrome. That's pretty much where Safari is, especially on iOS.

Don't get me wrong, I think Safari gets a lot of unwarranted hate and it can certainly be a bit quirky here and there, but if they didn't have to wait for the next major/minor release of macOS/iOS to update Safari I think it'd be in a much better place.

philo23··on Safari Ruined My Tuesday
I think Safari is now the only big non-evergreen browser remaining out there, and I think it's really holding it back. On both security fixes and features.

I hope some point in the future Apple untie Safari from macOS and iOS so they can be updated independently without having to wait months to operating system updates to come out..

philo23··on Gmail password first character is case insensitive on mobile device
Realistically this is only going to affect people on mobile devices, which looks like it'd bring that down to about 6.5%
philo23··on Most URLs are syntactically valid JavaScript code
This is a neat trick, but I'm more interested in the little remark about how Svelte uses the $: label

https://svelte.dev/docs#3_$_marks_a_statement_as_reactive

Is Svelte doing something clever with these labels at runtime, or is it just using the label to do some kind of transformation when the javascript is compiled, anyone know?

philo23··on A surprisingly common error users make when installing Brew
I think up until recently, homebrew was also recommending incorrect instructions for fish shell users in a similar sounding way. The instructions basically said add "fish_add_path /usr/local/bin" to your config.fish file, but in actual fact you only need to run fish_add_path once and its added permanently to your $PATH for all your future sessions, as well as your current session.

I only realised when I finally got fed up with my terminal taking several seconds to start, I dug into why and found that my $PATH had something crazy like >1000 items with the homebrew path taking up pretty much all of them.

philo23··on JPEG XL
I've noticed sometimes that when Cloudflare optimises images and serves up their own WebP versions of your existing images, if you go to save it you get the original jpg/png back.

Presumably the HTTP request that gets sent when you save an image sends different Accept headers.

Doesn't seem to work all the time, but presumably thats down to a combination of different Cloudflare settings, origin server configuration and what format the original image were in too.

philo23··on Firefox Release 89.0
I don't mind the new design, except for the 2-line "Playing" message on tabs playing audio. It just seems really obnoxious.

I know in compact mode it's similar to how it was previously, but knowing that's now hidden away and unsupported doesn't exactly inspire confidence it'll stick around for long…

philo23··on Observing my cellphone switch towers
This is also how the original iPhone + iPod Touch got your location without any GPS hardware, so you could see your rough current location on the map after one of the early updates.
philo23··on My NAS exposes itself over the internet without permission
I suspect they mean the letter prefixes: _n_ExternalPort + _n_InternalPort for number, _s_Protocol for string and _b_Enable for boolean.

It's probably just a convention they use in the source code that's made its way into the JSON by serializing something? Either that or old habits die hard.

philo23··on Spirals, Snowflakes and Trees: Recursion in Pictures
A Moiré pattern perhaps? https://en.wikipedia.org/wiki/Moir%C3%A9_pattern
philo23··on Netscape and Sun Announce JavaScript (1995)
Yeah, I remember people talking about Rhino when node.js originally came out, saying things like it's been tried before and wouldn't catch on.
philo23··on Self-host your fonts for better performance
I've always wondered the legality of downloading web fonts from Google Fonts and self-hosting them.

At first glance it probably doesn't sound like a problem, I get it's effectively the same as serving them from Google, but I know fonts can also sometimes have strange licensing requirements… so I always figured it was safer just to avoid it entirely.

philo23··on Amazon EC2 Mac Instances
As weird as it is, I think as long as they provide an entire physical Mac you’re free to run as many macOS virtual hosts on it yourself as you want to. At least that’s my understanding of the EULA explained in the MacStadium blog post.
philo23··on Facebook Container for Firefox
Worth pointing out that while they're probably safe (and do in fact use the same container APIs to separate out the domains), these are all from third-party developers. Where as the Facebook container is from Mozilla directly.
philo23··on App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m
This is sort of already a feature coming to iOS 14, though it's really for switching an existing account to an Apple ID login, there's nothing technically stopping a developer from using it to switch a user from FB login connected account too.
philo23··on Team Fortress 2 source code has leaked
The F-STOP included in this leak, from my understanding, isn't Valve's prototype. It's just in-development fan-made game to try and replicate Valve's unreleased prototype.
philo23··on Rediscovering CardDAV
The iOS (and iPod) sync portion of iTunes is now built into the Finder in macOS Catalina, now that iTunes has been split up into different apps (Music, Podcasts, etc)
philo23··on Uses for CSS Custom Properties
Presumably they can't just use one dash to avoid clashes with vendor prefixes (-moz-, -webkit- etc.)

I don't think I've ever actually checked, but I always assumed valid CSS property names can only be alpha-dash strings.

philo23··on Magdeburg Water Bridge
And for something a little older doing something similar, there's the Anderton Boat Lift built in 1875 https://en.wikipedia.org/wiki/Anderton_Boat_Lift
philo23··on Apple iOS 13.1 Personal automation via Shortcuts
This sounds like a very reasonable solution. I kinda hope this is the way they end up solving it, if this really is the reason they're not truly automatic.
philo23··on Apple iOS 13.1 Personal automation via Shortcuts
I've heard quite a few times now that some of the reasons these automations aren't completely automatic is to avoid them being abused by people with bad intentions.

Say for example someone setting one up on someone else's phone (without their knowledge) to run every X minutes and using it to track someone's location, without them ever knowing about it.

I'm not entirely sure that's the real reason behind these notifications, but it does seem plausible.

philo23··on iPadOS
You should be able to pull down on any page of the home screen to bring up the app search screen, rather than having to swipe all the way to the left.

You can now also long press the wifi icon (twice) from the control centre in iOS 13 to quickly switch wifi networks without going into the settings app, you can also do the same with the bluetooth icon.

A lot of this stuff is really hard to just discover though if you're not already aware it exists to begin with.

philo23··on How to Bypass “Slider Captcha”
Looking at the source code for at least the first example [0] it looks like a simple $('form').submit() would work just as well. It's all the library is doing internally (after some HTML5 form validation checks)

I suspect most slider captcha's out there are doing something similar or at the very most setting a hidden field to "true" or "1" etc. Very few are probably fingerprinting your mouse/touch movements to actually validate you're a real human being.

[0] https://github.com/kthornbloom/slide-to-submit/blob/master/j...

philo23··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
I believe you can still import shortcuts from files in iOS 13, you just need to “Allow untrusted shortcuts” in the Settings app first.
philo23··on PHP 5 and 7.0 end of life
It's not a great solution, but there are drop in libraries that shim the old mysql_* functions to their mysqli_* equivalents.

https://github.com/dshafik/php7-mysql-shim

It won't be 100% perfect and it's definitely not something I'd want to use long term, but it can help with the initial migration to PHP 7.

philo23··on Apple has pushed a silent Mac update to remove hidden Zoom web server
Signed is not the same to Sandboxed on macOS, afaik.
philo23··on How to Enable DNS-over-HTTPS in Firefox
After that ISP award thing came out it finally convinced me to look into DoH and give it a go. So I ended up setting up a Pi Hole this weekend running a local DoH-to-DNS proxy and then changing the DNS settings on my router to point to the Pi Hole. This also means my hosts file continues to work if I need it, and all* the programs running on my PC are transparently going through DoH without them being any the wiser.

The setup was a little bit fiddly to get going, but I'm now super happy with it. As a sidenote, it was interesting to see how effective uBlock Origin already was because I thought the Pi Hole's blacklists weren't working at first!

*I imagine I'm not catching every single one of the DNS lookups on my network, but I bet it's now a large percentage of them.

← PreviousPage 3 of 6Next →