Better HN
topnewbestaskshowjobs
Log inSign up

djxfade

858 karma · joined Jun 13, 2019 (7y ago) · 299 submissions

Submissions

comment 2mo ago · link · parent

PHP still rules the world, even though many doesn't want to realize it. It's still the biggest web language by a far margin

comment 2mo ago · link · parent

Realistically, what would the business case for Apple be where it would make sense to make Linux a first-class citizen on their hardware? Their product is a combination of hardware and software that works together to form the final product.

comment 5mo ago · link · parent

This is pretty much what Tauri solves. It re-uses the systems WebView. So the built apps are tiny (kb to a few mb)

comment 5mo ago · link · parent

Anyone know why? Some of the tiers more than doubled in price, that's pretty insane.

comment 5mo ago · link · parent

On macOS, I use a free app called Fluor, that lets me auto switch the Fn key behavior based on which app is active.

comment 8mo ago · link · parent

I disagree. What if, hear me out, parents actually parent, instead of relegating the parenting to companies, and ruining the internet for the rest of us?

comment 1y ago · link · parent

This.

One common use case for the @ operator, is when "destructuring" array members into variables. In some cases, you can't know if the member will be available, but it's not important if it's missing. In that case, you can silence the warning.

$array = ['apple', 'pear']; @list($mainFruit, $secondaryFruit, $tertiaryFruit);

Since I suppress the warning that would occur due to the third member not being present, the program will continue executing instead of halting.

comment 1y ago · link · parent

It was implemented in some of the earlier Leopard beta's iirc. Possible speculation from my side, but it was probably removed due to licensing once Oracle expressed interest in acquiring Sun Microsystems.

comment 1y ago · link · parent

As a side note, I personally HATE apps that opens links in an in-app web view (apps like Instagram, Facebook, etc). I really wish Apple could have a system wide preference where it could force in-app web views to open in the browser.

comment 1y ago · link · parent

What if I just simply promise to not enjoy it?

comment 1y ago · link · parent

It is, it's called inline styles

comment 1y ago · link · parent

It goes both ways. If you try to post anything remotely criticizing Donald Trump or his government on /r/conservative you'll also get banned. Even if you try to keep it objective.

comment 1y ago · link · parent

Whats the point of the obfuscation in the first place, if they offer mappings to deobfuscate it?

comment 1y ago · link · parent

Totally possible today with modern SPA technology that all major browsers support

comment 1y ago · link · parent

Open System Settings, click "Sound" in the sidebar. Under the "Sound Effects" section, you'll find a toggle labeled "Play sound on startup". Turn this off to permanently disable it. Otherwise, the startup sound is tied to the audio level you had before last shutdown.

comment 1y ago · link · parent

I think what they meant to say was that Rosetta 2 is going away in the future, leaving only native AARCH64 binaries compatible

comment 1y ago · link · parent

You could simply set Windows XP to use the classic theme as well.

comment 1y ago · link · parent

That's not totally correct. PHP has a "short function" syntax for that specific use case, it automatically captures data without the 'use' statement.

    $a = 5;
    $b = fn ($c) => $a * $b;
    print($b(2)); // 10
    print($b(4)); // 20

comment 1y ago · link · parent

This is what Apple did when they finally dumped the OS X branding. macOS 15 also reports as 10.15.

comment 1y ago · link · parent

Very cool! How does this work from a technical standpoint? Do you have to implement a full HTML/CSS renderer in JS, or is there an official browser API to capture the elements as image data?

comment 1y ago · link · parent

Probably due to different font rendering in the OS.

comment 1y ago · link · parent

Statamic https://statamic.com/

comment 1y ago · link · parent

Yes it does support this

comment 1y ago · link · parent

Sounds kinda like Backpacker: https://en.wikipedia.org/wiki/Backpacker_(video_game_series)

comment 1y ago · link · parent

We do pay carbon tax for all our exports. I know that doesn't defend it. But at least we pay our fair share. Even tough I can definetly see why it looks bad from a moral standpoint.

comment 2y ago · link · parent

I never understood why Reddit couldn’t just have kept the API free, and embedded ads in the feed directly. They would get their ad revenue, and third party developers would actually help them make money.

comment 2y ago · link · parent

Couldn't I just make an aggregate audio device which uses the mic on my MacBook Pro, and speakers of the AirPods?

comment 2y ago · link · parent

Yes definetly. Apple's implementation is solid.

comment 2y ago · link · parent

Modern Mac's use a very similar sleep state, where they can still receive notifications and perform simple background tasks.
12345
10