Better HN
topnewbestaskshowjobs
Log inSign up

NVI

456 karma · joined Aug 20, 2012 (14y ago) · 43 submissions

https://n12v.com/

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

Submissions

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

United Kingdom and Canada, for example, have alphanumeric ZIP codes.

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

comment 3y ago · link · parent

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

comment 3y ago · link · parent

Perhaps we should call it Web Speech API.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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...

comment 4y ago · link · parent

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)

comment 4y ago · link · parent

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)

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Yes. In fact, he was one of the most prolific WebKit contributors.

comment 4y ago · link · parent

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 :)

comment 6y ago · link · parent

What's odd about the network tab?

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

I made an sRGB to Display-P3 gradient and it worked well for me in Safari: https://codepen.io/NV/pen/GRJvYzQ.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 12y ago · link · parent

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_...

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

comment 12y ago · link · parent

Is there a command line tool available? I’d like to include it into my website build process.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

There are few for Polymer: http://n12v.com/2-way-data-binding/#comment-1432482279

comment 12y ago · link · parent

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?

comment 12y ago · link · parent

http://swannodette.github.io/todomvc/labs/architecture-examp... has "//# sourceMappingURL=app.js.map" but the file is missing.

comment 13y ago · link · parent

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."

comment 13y ago · link · parent

I just released Flying Focus 1.2 that doesn’t do anything on mouse interactions.

comment 13y ago · link · parent

I don’t think it ever had animated focus transitions.

comment 13y ago · link · parent

http://nv.github.io/flying-focus/test/ is an experimental version that only works on tab and arrow keys (for radio buttons).

comment 13y ago · link · parent

http://nv.github.io/flying-focus/test/ experimental version only works on tab and arrow keys (for radio buttons).
12