News for hackers. Stuff that matters.

bugmen0t

Re:Firefox has surpassed Chrome on Speedometer on Tuesday July 18, 2023 @03:09PM (#36777723)
The link is terrible. Maybe the article should link to https://arewefastyet.com or maybe the Speedometer selection at https://arewefastyet.com/win10/benchmarks/raptor-desktop-spe...
Re:Firefox Address Bar Tips on Monday July 10, 2023 @10:59AM (#36667424)
There's also @ for steering the browser to a specific search engine (e.g., wikipedia search).

The canonical URL for how the address bar short cuts is https://support.mozilla.org/en-US/kb/address-bar-autocomplet...

Re:The Lone Banana Problem in AI on Tuesday July 04, 2023 @07:42AM (#36585363)
Would be kinda funny if the lone bananas have been removed from the training dataset because they are not part of the depicted item but are merely in the picture for scale :)
Re:On Having Enough Socks on Friday May 05, 2023 @08:17AM (#35828271)
So, what's the solution to pairing socks? Buying many pairs from the same. Sure. That makes sense. But what happens when half of them are lost or damaged and you can't buy the same kind?

Do you end up as someone pairing socks again or do you throw away half of your socks?

Re:Ask HN: Project ideas for a Linux kernel module on Tuesday May 02, 2023 @05:55AM (#35785298)
write a backdoor :) A kernel module that drops the user into a root shell if they call an obscure kernel functionality with a secret value in some registers.

This should be somewhat easy to start and self-contained. If you want, you can easily extend it if you want things to become more fancy. E.g., hiding the secret constant. Implementing a challenge response protocol, limiting access to other global state (hardware dongle? ip address?) and so on.

Re:The Future of Thunderbird on Thursday February 09, 2023 @12:29PM (#34727616)
Frankly, it's surprising how long they managed to drag it along given they build on top of a weird fork of Firefox ESR. Their foundation is crumbling for years and years. They really need to get off of it.
Re:I still use Flash in 2022 on Wednesday December 21, 2022 @08:21AM (#34080361)
Surprising there is no mention of the wasm/rust-implemented flash player https://ruffle.rs/ in the article.
Re:JavaScript APIs You Don’t Know About on Thursday December 15, 2022 @06:24AM (#33997915)
MDN is documentation for the web, not Firefox.
Re:Complete Rewrite of ESLint on Monday November 28, 2022 @08:37AM (#33773458)
ESLint does not even support the browser. I think your first sentence is (I'm assuming accidentally) creating a straw man argument.
The web platform was mostly piecemeal and happenstance. Not careful, coordinated design.

You'll find that it is unnecessarily and necessarily complex unless you adopt a framework that makes design decisions for you.

Those who were involved with the Mozilla open source project or the company in the years of ~2013-2014 will heavily disagree.

There was a strong and long debate about the pros and cons. One of the strongest argument against was this here, including interoperability. I believe Cory Doctorow has also written multiple articles against DRM. I agree that DRM is generally bad.

However, the arguments for implementing it were the following: at least two other browsers will adopt the tech and that will allow it (per W3C process) to graduate from a Candidate Recommendation to a full Recommendation, making it part of the web platform.

On top, what would it mean for marketshare if people had to install a second browser just for watching movies? Would the non technical users accept and understand this without switching to a browser that they’d consider "actually feature complete"?

Re:EasyList is in trouble and so are many ad blockers on Wednesday October 19, 2022 @03:58PM (#33267228)
Can’t they run an open collective just to pay the bandwidth bill?
Re:Paypal.com is using revoked certificate on Saturday October 15, 2022 @05:21AM (#33213189)
Why are other browsers allowing access when Firefox is not?

Isn’t this a security issue?

Nice idea. Out of curiosity, which song inspired you to build this site?
Re:Templating in HTML on Wednesday October 05, 2022 @01:43AM (#33091736)
template does HTML parsing. The `content` attribute returns a DocumentFragment.
Re:Templating in HTML on Wednesday October 05, 2022 @12:14AM (#33091160)
Do you have a link to the template instantiation proposal?
Re:Swatch Internet Time on Monday September 26, 2022 @01:53AM (#32979856)
Yup. Like on a casio. If I remember correctly the modes were normal time, stop watch, timer and .beats
Re:Swatch Internet Time on Sunday September 25, 2022 @06:13AM (#32970139)
I had a "beats" watch in the late 90s. Something with "internet" in the name was super appealing to me, when I knew I couldn’t have the actual internet with me.

I guess back then, as a teenager I didn’t even know how much of a nerd I was :-)

These APIs were synchronous and thus blocking. People blamed Firefox being slow when in fact, it was mostly extension APIs and the extension code.
the old APIs were actually the only existing, internal and synchronous APIs which does not work in a multi-process, site-isolation architecture.

The internal APIs also had to go. What else would you do?

Re:It's time to halt starting any new projects in C/C++ on Tuesday September 20, 2022 @09:09AM (#32911144)
Rust has very strong backing at Meta, Microsoft, Google, AWS and others. I wouldn't worry about corporate backing.

You can call into the Windows APIs (there's a windows crate) and if you want to call into something that isn't there, `cbindgen` and friends are amazing.

Re:Ask HN: How do you switch between programming languages? on Tuesday September 20, 2022 @04:53AM (#32909278)
Use a linter, a formatter or any other tool that complains early and often. Have a starting setup for each programming language. Being surrounded by a supporting environment helps. You don't have to start with a blank document in a dumb editor.

Pick an IDE that you like. I really like PyCharm but vscode is also quite great.

To that extend you might even go further and have some specific visual clues per programming language. Whether that's different editors, editor profiles / themes depends on you.

Re:Meli – email client in the terminal, in the spirit of mutt on Sunday September 18, 2022 @12:10PM (#32888706)
It shouldn’t be. IMAP doesn’t have to download all of them.
Re:Ask HN: What interesting problems are you working on? on Saturday September 17, 2022 @02:30AM (#32875253)
Given the new DOM API, it’s also relatively easy to forbid the "bad APIs" using something like eslint (at the source level) or Trusted Types (at runtime).

The hope is to also cater to frontend frameworks enough that they will adopt it. There are already some conversations.

Re:Ask HN: What interesting problems are you working on? on Saturday September 17, 2022 @02:25AM (#32875234)
It’s a risk. That’s why there are bug bounty programs and open processes for the specification.

Browsers have a track record of being able to ship security bugs for severe issues within a day or two. Compare that to patching every individual website.

Re:Ask HN: What interesting problems are you working on? on Saturday September 17, 2022 @02:23AM (#32875229)
That’s pretty much the exact use case of a sanitizer.
Re:Ask HN: What interesting problems are you working on? on Friday September 16, 2022 @01:07PM (#32869037)
The most prevalent type of security vulnerability in all of software is XSS. (If you count CVEs, which is admittedly a bit problematic).

I’m collaborating on an attempt to shift the responsibility for XSS from the developers and towards the browser. The current stage focuses on getting the use case "insert HTML but without any scripts" right.

There’s a public specification and prototype implementations in Firefox and Chrome. You can play with it here https://sanitizer-api.dev/

We think that we’ve made the best of many different tradeoffs, but we’re also keen to hear wide feedback.

Re:Ask HN: How can I calculate CO2 emission of servers/VPS? on Wednesday September 07, 2022 @09:43AM (#32750498)
I recommend you take a look at co2.js. This was just mentioned in the latest issue of branch magazine (https://branch.climateaction.tech/issues/issue-4/co2js/) and I haven't played with it myself yet. Code is linked from the article but also https://github.com/thegreenwebfoundation/co2.js/

Older »