HN user

NLips

570 karma
Posts4
Comments280
View on HN

Has anyone found a static analysis tool which understands C11 annex K (aka “safe C”) functions? I’ve found some tools like CLANG static analysis will raise errors for potentially incorrect calls to stdlib C functions, but doesn’t understand the replacements, which means some errors previously caught by analysis can only be caught at runtime.

For best filtering, place the filter so air is “sucked” through by the fan, rather than “pushed”.

(Quite possibly what you meant; I just found “in front of” easy to interpret in either way)

The concept I use is that the next stage is all about how you implement the previous one: the spec is how you implement the requirements, the design is how you implement the spec, the code is how you implement the design.

As okl said, it’s arguably terminology, and maybe high and low level requirements would work for you? I prefer to separate out the terms though, so that “requirements” are the thing that the engineering team can’t unilaterally change without upsetting the stakeholders. If I can change a spec item mid-delivery and it doesn’t matter to the customer, then it wasn’t a requirement. If I can’t change it, then it’s a requirement.

“Would Be Nice If”. Often used even when the “if” expansion doesn’t really make sense.

I disagree with the author.

Requirements are a precursor to the spec, and are a list of MUSTS, SHOULDS, and WBNIS which need to go into the feature/product.

The Spec is a description of how these requirements are/will be met.

An example for the ‘ls’ command:

Requirement: “the user MUST be able to include or exclude hidden files”

Spec: “by default hidden files are not shown. Including the optional argument ‘-a’ will cause hidden files to be listed alongside non-hidden files”

Windows allows you to use a PIN for regular device logon - so you have a longer, more secure password for general use of the account, but an eg 8 digit numeric PIN _only_ for that device.

How did you find/calculate the floor area from Rightmove? In my experience listings _might_ have the area in the floor plan image, so you’d be hoping for floor plans then running OCR to find the area? But I’d expect that to often go wrong or not find anything (missing or duplicate floor plans etc). Would love to know as it’s infuriating that the UK market is based on bedroom count rather than floor area.

On the underground you’re meant to stand on the right of escalators to leave room for those walking up on the left. However, TFL ran a trial a few years ago instructing people to stand on both sides during peak times. This actually increased overall throughout and per-person speed: throughput as you can more closely pack passengers standing rather than allowing a smaller number of walkers half the space (and those walkers are necessarily spaced out more than standers), and per-passenger speed because even though walking up the escalator would be faster, the increased throughout reduces the queue time at the escalator entrance, which has a greater effect.

To my knowledge, they didn’t move forwards with keeping the instruction permanent in peak times, presumably because it’s difficult to implement / ingrain in people.

EDIT: link https://www.shortlist.com/news/holborn-escalator-trial-tube-...

This seems a poor article for not mentioning the St Patrick’s Cross - one of the flags “making up” the Union Flag / Union Jack, representing Ireland. It’s contentious, but arguably significantly less so than the Ulster Banner.

Does your art class perhaps only cover “fine art”? Or does it also include the performing arts like music, theatre, even cinema? In my experience in the UK, “art” in school commonly only means fine art, and other forms of art are different enough that they’re broken out into other “subjects”.

To get the 1% figure you have to include an unstated assumption, which is that a novel virus is just as likely to emerge from this lab as from all top 100 cities put together.

If we try to make a rough calculation from an unknowledgeable starting position, it might be more reasonable to say "just as likely to come from each 1M+ city as to come from each lab [of which there is one]". Then, if we didn't know the geographic origin, the lab probability is ~1% ( = 1/(100 cities + 1 lab)), but knowing the geographic start point you'd get 50%

P(this lab given Wuhan) = P(Wuhan given this lab) * P(lab) / P(Wuhan)

P(this lab given Wuhan) = 1 [this lab is in Wuhan!] * (1/101) / (2/101)

Hah - I’ve assumed for years that days weren’t accessible because the section of ASCII art for them is greyed out!

You can see any year by changing the url: https://adventofcode.com/2021

I think it started in 2015.

On the AoC website you need to provide solutions for each day in a given year to see the next day’s problem, so you can’t instantly see all the problems from a given year unless you’ve previously completed them.

You may be able to find the problems elsewhere on the net.

I don't think the parent is saying the whole E-road network is the equivalent; just that it provides examples of moving country to country without leaving motorways.

From the study:

“ Although 90% of women report acute breast and nipple pain during the first week of breastfeeding initiation”

“ 30% of women who continue to breastfeed at 2 weeks after birth report persistent breast and nipple pain”

That’s certainly quite different from the suggestion that it’s a year of suffering in the normal case.

Breast feed if you want to, and quit when you want, without worrying about what other people think.

We took a few weeks with child one for mother’s nipples to handle the pain. The biggest issue was psychological for the first 2ish weeks, as we’d been told by some midwives that it will not hurt if you’re latching correctly. Visiting a breastfeeding specialist (for free) at 2ish weeks who told us sometimes the pain is unavoidable but normally goes in 4 to 8 weeks made a huge difference. Weaned completely at 9 months.

With child number 2, basically no pain. Weaned completely at 2 years. Mother is very glad she breastfed both, and was ready to stop when the children were.