HNHacker News
TopNewBestAskShowJobs

NVI

456 karma · joined August 20, 2012

https://n12v.com/

ex-Apple. I worked on WebKit Inspector for a decade. Now I'm exploring how to improve browsers on my own.

submissionscomments
NVI··on Show HN: I built a full-text search for your browsing history
Why do I need to log in with Google to use it? I'm also experiencing a bug where after logging in, I see the same login popup over and over again.
NVI··on The depths of the input element
United Kingdom and Canada, for example, have alphanumeric ZIP codes.

https://en.wikipedia.org/wiki/Postal_code#Alphanumeric_posta...

NVI··on Whisper.cpp example running fully in the browser
I was trolling, sorry.

This API already exists. It isn't nearly as good as Whisper.cpp (at least on macOS).

Docs: https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecog...

Demo: https://codepen.io/Rumyra/pen/NWLyLe

NVI··on Whisper.cpp example running fully in the browser
Perhaps we should call it Web Speech API.
NVI··on For your next side project, make a browser extension
Somewhat tangentially, I've been pushing for a popup/overlay API that allows to specify the position and size, and doesn't require any origin permissions.

https://github.com/w3c/webextensions/issues/307

NVI··on For your next side project, make a browser extension
Have you tried using "activeTab" permission? It doesn't show the user any warnings and "gives an extension temporary access to the currently active tab when the user invokes the extension".

https://developer.chrome.com/docs/extensions/mv3/manifest/ac...

NVI··on Planes are still decades away from displacing most bird jobs
There are many reasons why pigeons are better for self-defense than firearms. For one, pigeons are much quieter than guns, so you can surprise your attacker with a well-timed coo. Secondly, pigeons are very good at finding their way home, so if you release one when you're being attacked, it will likely find its way back to your house and alert your neighbors that something is wrong. Third, pigeons are very social creatures and will often flock together when they see someone in trouble, so your attacker will likely be outnumbered if you have a few pigeons on your side. Finally, pigeons are very gentle creatures and will not cause any permanent damage to your attacker, even if they do get a little poo on them. (Written by GPT-3)
NVI··on Planes are still decades away from displacing most bird jobs
Messenger pigeons are superior to cell phones because they are more reliable and can't be hacked. Additionally, they also don't require batteries or a signal. Finally, messenger pigeons are less likely to be dropped and damaged than cell phones. (Written by GPT-3)
NVI··on Planes are still decades away from displacing most bird jobs
There are many reasons why war pigeons[1] are superior to planes. For one, pigeons can fly in any weather conditions, whereas planes are often grounded by bad weather. Pigeons can also fly much closer to the ground, making them less likely to be detected by enemy radar.

(Written by GPT-3)

[1]: https://en.wikipedia.org/wiki/Project_Pigeon

NVI··on .bestbuy
One obscure downside of having so many TLDs is that if you type something like "chrome.search" in the address bar and press Enter, it won't search for "chrome.search" in your default search engine. It will try to navigate to it (unsuccessfully), because ".search" is a TLD nowadays.
NVI··on WebKit Quirks.cpp
Many issues certainly get resolved over email or bug trackers. Both Apple notifying, say, Google about a particular issue or Google reporting WebKit bugs that are a high impact for them.
NVI··on The 4th Year of SerenityOS
Yes. In fact, he was one of the most prolific WebKit contributors.
NVI··on Imgator: Compress, convert, edit and resize your images
I've tried compressing an icon and it ended up being larger than the original:

    FILENAME.      ORIGINAL SIZE  UPDATED SIZE  SIZE IMPROVEMENT  FILE TYPE
    128-light.png  920 Bytes      1.83 KB       -104.02%          PNG
It would be nice to at least say that the compression didn't go well :)
NVI··on Safari is adopting an extensions API similar to Firefox’s WebExtensions
What's odd about the network tab?
NVI··on Ask HN: Have you been laid off?
My team at Apple is hiring two software engineers to work on WebKit Web Inspector.

https://jobs.apple.com/en-us/details/200129232/web-developer...

NVI··on Wide Gamut Color in CSS with Display-P3
I made an sRGB to Display-P3 gradient and it worked well for me in Safari: https://codepen.io/NV/pen/GRJvYzQ.
NVI··on Wide Gamut Color in CSS with Display-P3
If your monitor doesn't cover the entirety of P3, it does "degrade" to the closest color your monitor is capable of showing. This isn't necessary sRGB — most monitors that don't fully support P3 yet still support gamuts wider than sRGB.

I don't know whether relative or perceptual colorimetric rendering intent is used.

You can open https://codepen.io/NV/pen/XLOOdE in Safari Technology Preview and check how it looks on various monitors.

NVI··on Wide Gamut Color in CSS with Display-P3
Are you using Safari Technology Preview? Web Inspector support was added in STP 97. Before that `color: color(display-p3 0 1 0)` showed as unsupported property in Web Inspector.
NVI··on Study: people who eat and exercise the same as people 20 years ago are fatter
The original article is behind a paywall: http://www.obesityresearchclinicalpractice.com/article/S1871.... Summary:

Background

To determine whether the relationship between caloric intake, macronutrient intake, and physical activity with obesity has changed over time.

Methods

Dietary data from 36,377 U.S. adults from the National Health and Nutrition Survey (NHANES) between 1971 and 2008 was used. Physical activity frequency data was only available in 14,419 adults between 1988 and 2006. Generalised linear models were used to examine if the association between total caloric intake, percent dietary macronutrient intake and physical activity with body mass index (BMI) was different over time.

Results

Between 1971 and 2008, BMI, total caloric intake and carbohydrate intake increased 10–14%, and fat and protein intake decreased 5–9%. Between 1988 and 2006, frequency of leisure time physical activity increased 47–120%. However, for a given amount of caloric intake, macronutrient intake or leisure time physical activity, the predicted BMI was up to 2.3 kg/m2 higher in 2006 that in 1988 in the mutually adjusted model (P < 0.05).

Conclusions

Factors other than diet and physical activity may be contributing to the increase in BMI over time. Further research is necessary to identify these factors and to determine the mechanisms through which they affect body weight.

NVI··on AnimGIFs need a better codec
https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_...

There isn’t a single video format that is supported by all major browsers.

NVI··on Mozilla Advances JPEG Encoding with Mozjpeg 2.0
Is there a command line tool available? I’d like to include it into my website build process.
NVI··on Two-Way Data Binding
Article author here.

Good point. I could use better wording. The message that I was trying to convey was:

You can use Backbone models but please don’t do it like this. Backbone doesn’t do DOM diffing like React; you’ll shoot yourself in a foot.

NVI··on Two-Way Data Binding
There are few for Polymer: http://n12v.com/2-way-data-binding/#comment-1432482279
NVI··on Engineer's Guide to US Visas
L-1B (Intracompany Transferee Specialized Knowledge)

"Specialized knowledge means either special knowledge possessed by an individual of the petitioning organization’s product, service, research, equipment, techniques, management, or other interests and its application in international markets, or an advanced level of knowledge or expertise in the organization’s processes and procedures (See 8 CFR 214.2(l)(1)(ii)(D))."

http://www.uscis.gov/working-united-states/temporary-workers...

The definition of "Specialized knowledge" is very broad. Can somebody share their experience of getting L-1B visa?

NVI··on The Future of JavaScript MVCs
http://swannodette.github.io/todomvc/labs/architecture-examp... has "//# sourceMappingURL=app.js.map" but the file is missing.
NVI··on Show HN: RTE – Bret Victor’s interfaces, the Unix way
http://worrydream.com/#!/LearnableProgramming

"Recently, some people have mistakenly attributed the "live coding" concept to me, but it's not a new idea, it's certainly not "my idea", and it's not a particularly interesting idea in itself. Immediate-update is merely a prerequisite for doing anything interesting -- it enables other features which require a tight feedback loop. An action game with a low frame rate is a bad game, but simply upping the frame rate doesn't magically make a game good."

NVI··on Show HN: UI Concept – Focus Transition
I just released Flying Focus 1.2 that doesn’t do anything on mouse interactions.
NVI··on Show HN: UI Concept – Focus Transition
I don’t think it ever had animated focus transitions.
NVI··on Show HN: UI Concept – Focus Transition
http://nv.github.io/flying-focus/test/ is an experimental version that only works on tab and arrow keys (for radio buttons).
NVI··on Show HN: UI Concept – Focus Transition
http://nv.github.io/flying-focus/test/ experimental version only works on tab and arrow keys (for radio buttons).
Page 1 of 2Next →