HNHacker News
TopNewBestAskShowJobs

jperras

1,925 karma · joined November 24, 2008

I'm a failed physicist turned software developer. Life is weird like that.

I sometimes say intelligent things on Mastodon: https://hachyderm.io/@malware

I write about things that interest me at https://nerderati.com

[ my public key: https://keybase.io/jperras; my proof: https://keybase.io/jperras/sigs/MiFx-5FlZM7UAxXxqEUihKkwRawBofkeg7q7wD4NmfE ]

submissionscomments
jperras··on Fed announces details of new interbank service to support instant payments
Canadian here. This sounds like Interac eTransfer, which is available to any person sending/receiving money where the endpoints are Canadian banking institutions (all of them, I guess?).

We've had this since 2003.

jperras··on Show HN: `fzf` * `Git` done right
I do believe it is the most well thought out porcelain to git that I have ever come across, in any editor that I've seen. The ability to integrate nearly all the various git CLI tools (not to mention forge, the magit plugin that integrates with github/gitlab) into one cohesive interface is incredible.

Many blog posts have been written about the features of magit, so I wont attempt to enumerate them here.

jperras··on Show HN: `fzf` * `Git` done right
Many things. It's great, but it doesn't hold a candle to magit.

The README lists out several things that are missing that not only exist in magit, they aren't even notable features!

jperras··on Show HN: `fzf` * `Git` done right
Hi. Hardcore 10+ year vim zealot here.

Magit on emacs is hands down the greatest interface to git that has ever been conceived. Vim + Fugitive doesn't even come close (sorry, tpope, I still love you).

So much so that I started using emacs with evil-mode, so that I can use my vim muscle memory and have access to magit. That is how good magit is. It literally converted me to the light (dark?) side.

jperras··on Doing Python Configuration Right (2019)
I've been using Dynaconf: https://github.com/rochacbruno/dynaconf for application configuration, and it's been quite pleasant.

It has various options for cascading configuration sources, such that it makes it relatively straightforward to build a hybrid approach in the event that you're attempting to migrate from a file-based config system to a more modern 12-factor approach.

At one point I needed to write a custom config source for Amazon Secrets Manager, and it proved quite easy to implement. Perhaps I should open source that…

jperras··on Tech-starved government seeks industry’s best, brightest
> One thing I have observed about software and organizations is that big, intractable problems in code are often rooted in big, intractable problems in the organization that produced it.

You've paraphrased (intentionally or not) Conway's Law: https://en.wikipedia.org/wiki/Conway%27s_law

"organizations which design systems ... are constrained to produce designs which are copies of the communication structures of these organizations."

jperras··on Blackout Bug: Boeing 737 cockpit screens go blank if lands on specific runways
I mean, it's probably more complex than what I postulated.

It was just the first thing that came to mind, since 270° is zero in a few trigonometric functions/identities.

jperras··on Blackout Bug: Boeing 737 cockpit screens go blank if lands on specific runways
Is someone dividing by zero somewhere?

"All six display units (DUs) blanked with a selected instrument approach to a runway with a 270-degree true heading, and all six DUs stayed blank until a different runway was selected."

cos(270°) = 0

jperras··on Loudness war
My spouse's father is a well known (Grammy nominated) mastering engineer.

He hated the loudness wars. It was, often times, bands and labels insisting that the albums be "louder" than whatever other comparable album they were trying to emulate, and thus it just escalated with no real sense until it just got ridiculous.

jperras··on Why Child Care Is So Expensive
As I've linked to in previous replies, all the studies[1] I've seen are meta-analyses that compare kids in Quebec to kids in other provinces. I don't see anything that accounts (nor could they, really) for the huge variety of factors that can differ among children in the same age group across vastly different provinces. Quebec is markedly different from the rest of the country and North America in more ways than our socialized universal daycare programme.

Moreover, they are comparing kids that are in daycare vs. kids that are raised solely by one or more of their parents; the fact that the daycare is "universal" or subsidized doesn't have anything to do with it. Moreover, the studies show that the kids are effectively more impulsive and more prone to risk-taking, and have found zero correlation with their cognitive abilities.

1. https://www.nber.org/papers/w21571.pdf

jperras··on Why Child Care Is So Expensive
> It's a "nit pick" for sure, but in my understanding, something that "pays for itself" is not dependent on government subsidies. Quebec has some of the highest income taxes in the country - you pay for such services one way or another.

The subsidies that are required are offset by the increased labour force participation that occurs as a direct result of said subsidies. Conversely, if the subsidies disappeared, then there's a good chance that many of those currently employed parents would have to make a choice – do I remain in the workforce and pay $1-2k/month for childcare, or do I quit my job and raise my child/children?

I've had relatives that live in Ontario that had to make this choice. Daycare in Toronto is $1600/month, and can be around $2500/month if you have two children. If one of the parents is pulling in $50,000/year (net pay of $38,979), and you have to drop close to $30,000 for childcare, for 2-4 years, is it even worth staying at your job?

jperras··on Why Child Care Is So Expensive
I did read the article. It didn't link to the CityLab article that I posted, which I found to be a bit easier to read.

If you read the meta-analysis paper that they link to that describes the "not so good for the well being of the kids", you'll see that they're comparing children that attend daycare to children that are wholly raised at home with one or more parents:

> A recent view of effects of previous child care exposure on outcomes in adolescence suggest that more hours in child care in general does not affect test scores, but has a negative effect on non-cognitive outcomes, such as impulsivity and risk-taking (Vandell et al., 2010).

These negative findings have nothing at all to do with subsidized vs. non-subsidized childcare.

jperras··on Why Child Care Is So Expensive
And it was about as vague as could possibly be:

> But young Canadians who were eligible for the program experienced, as teenagers, “a significant worsening in self-reported health and in life satisfaction” relative to Canadians from other provinces. So, did the Quebec child-care experiment “work”? Yes, for parents and public financing. Perhaps not for the kids.

The paper itself expands on it a little bit more:

> A recent view of effects of previous child care exposure on outcomes in adolescence suggest that more hours in child care in general does not affect test scores, but has a negative effect on non-cognitive outcomes, such as impulsivity and risk-taking (Vandell et al., 2010).

These negative findings have nothing at all to do with subsidized vs. non-subsidized childcare. They're essentially comparing children in daycare vs. children that are able to be raised by one or more parents, full-time.

Would kids be better off being raised by their parents more than being raised by specialized childcare workers? Perhaps. But not everyone is given that opportunity, regardless.

jperras··on Why Child Care Is So Expensive
That's actually one of the not-so-great facets of this program.

It demands a minimum of 80% participation, meaning that if you wanted to stay at home to take care of your children but use subsidized daycare 1-2 days a week to give yourself a break, it's currently not possible. If a child is absent for more than 20% of the "regular" schedule, then the daycare loses that subsidy spot due to it being under-utilized.

There's a movement to help correct this, but it's not simple due to how funds and resources are allocated and planned for.

jperras··on Why Child Care Is So Expensive
It doesn't have to be this way.

Québec has had subsidized daycare for almost 25 years, and the program literally pays for itself (and more!) via increased income taxes from parents that would have otherwise chosen to stay at home.

https://www.citylab.com/equity/2018/12/affordable-daycare-su...

> In Montreal, Quebec’s largest city, a day of child care cost on average $10 in 2016

> Quebec’s program, which introduced low-fee, universal child care in the province in 1996, centered on a few core premises: that if the government helped make child care accessible and affordable, it would allow more women to join the workforce, increase childhood development and social skills, and ultimately raise revenue for the government through increased payroll taxes. In at least two of those objectives, the scheme has been widely successful, says Pierre Fortin, an economist at the University of Quebec at Montreal, and the country’s leading expert in the economics of subsidized child care: It’s increased participation of women in the workforce, and cost efficiency.

> Since beginning the program more than two decades ago, Quebec has seen the rate of women age 26 to 44 in the workforce reach 85 percent, the highest in the world.

> Early estimates anticipated the program would generate 40 percent of its costs via increased income taxes from working parents. Instead, it generated income taxes to cover more than 100 percent of the cost. “In other words, it costs zero, or the cost is negative,” Fortin said. “The governments are making money out of the program.”

The program isn't perfect; there are a variety of issues that have popped up over the years, but since we were literally the first in the world to offer such a comprehensive, sweeping, subsidized plan for the entire provincial population of ~7.1MM in 1996 that was then used as a model in various Scandinavian countries, I'd call it a rousing success.

jperras··on Apple’s iPhone Software Shakeup After Buggy iOS 13 Debut
You must be new here :)
jperras··on Grise Fiord, Canada's most northerly community
> I was fine beyond my eyelids and nostrils crystalizing.

As a fellow Canadian from Québec, this is how I explain the degrees of coldness to people whom have never experienced it.

You know it's really cold out when your eyelids momentarily freeze shut when blinking due to the accumulated moisture on your eyelashes spontaneously freezing together.

jperras··on Have Online Reviews Lost All Value?
Considering that most ranking algorithms don't a priori give more weight to lower ratings, this is probably fine.
jperras··on Where will ‘garage orphans’ charge electric cars?
> I think this points out the elephant in the room: why are so many people in supposedly high income cities not able to buy properties?

I own & live in an apartment on the top floor of a 3 floor walk-up in a busy metropolitan city. There is perhaps one single person on our street that has a "garage". Everyone else parks on the street. The "not able to buy property" argument here seems like a red herring.

jperras··on Where will ‘garage orphans’ charge electric cars?
Block heaters in grocery stoer parking lots/apartment buildings in Toronto? Where?
jperras··on Sicily's farmers are looking for innovative alternatives to traditional crops
> Perhaps the quality of flavor of the kiwi is just affected by the climate and soil.

That's almost certainly what is happening, unless they have some separate cultivar that was bred to better withstand the Italian climate where they are grown, which is also quite possible.

Berries are an easy one to compare this effect to in North America - you can often tell the difference between a good growing year and a bad one from strawberries, which prefer hot springs and early summers with little rain, and will taste differently if they get cold temperatures and a very wet spring.

Source: grew up in farm country, have picked single cultivar source berries for preserves/freezing/eating for many years.

jperras··on Ask HN: What do you do with your Raspberry Pi?
Ha! I live a few blocks from that corner. Always wondered who set that up and for what reason.

Nicely done. Hopefully the construction there will end soon, too.

jperras··on Firefox Monitor
It is, but many services will (incorrectly) prevent an address with a `+` in it from ever making it to their database/whatever.

So the fact that the MTA will route it is irrelevant if it never makes it to the MTA in the first place.

jperras··on Goldman Sachs, Patagonia, and the Mysteries of “Business Casual”
> The other factor to consider is that people who are too cold can layer up but someone who’s too hot doesn’t have an option other than working from home.

While true in the abstract, the real reason why most office buildings are "cold" is because indoor climate regulations are based on empirical thermal comfort models that were developed in the 1960s, and thus mostly based on the metabolic rates of men instead of women.

https://www.nature.com/articles/nclimate2741

jperras··on Using SQLAlchemy and Postgres functions to produce JSON structures from joins
It's relatively straightforward to map a materialized view to an ORM entity in SQLAlchemy, if that's what you want to do:

http://www.jeffwidman.com/blog/847/using-sqlalchemy-to-creat...

SQLAlchemy's ability to separate out the query API, metadata, data objects, and combine them all via mappers is very powerful. I've been using SQLA for many years, and I still regularly find some functionality that I was never aware of.

jperras··on It’s Hard to Learn French in Middle Age
It's sometimes difficult in Montreal due to how easy it is to get around in English; people will by default switch to English to help you out, and almost everyone is bilingual to some degree.

Just stick to your guns of speaking in French and let people know you want to practice, and you'll do great!

And congratulations on the move! It's a wonderful city. So wonderful that I'm moving back there in a month after being in the Toronto region for almost 10 years.

jperras··on It’s Hard to Learn French in Middle Age
Informal vs. formal and the gradient between them is always going to be an issue in any language, especially when comparing languages.

French also has more built-in structures for formal address/politeness, though many of them are being left by the wayside just as we left feudal lordships with a peasant class.

For what it's worth, I'd say that the more "stuffy" version of "de rien" in French would be "il n'y a pas de quoi".

jperras··on It’s Hard to Learn French in Middle Age
> An anecdote from a trip to Quebec city. My wife and I walked up to a hostess to inquire about getting a table for dinner. We greeted her in French. As soon as we started to ask about a table, she stopped us and said, "No no no no. This will be in English."

Native Québecois here. That's most definitely very odd.

The typical scenario is someone not fluent in French attempts to speak it, and the other person switches to English as a courtesy, not as a slight against you; many people forget or don't know that most Québecois in major cities are bilingual.

Simply mentioning that you would like to continue in French so that you can practice will elicit gratitude and wide smiles - we really, really, really like it when people speak French, no matter the quality, and most will happily help you learn a few extra words or expressions.

jperras··on It’s Hard to Learn French in Middle Age
The more idiomatic translation of "de rien" would be "think nothing of it".

Source: lifelong bilingual in French & English.

jperras··on Who Killed Lard? (2012)
Whenever I cook bacon, I always cook it in the oven. In addition to keeping things relatively clean (as opposed to cooking on the stove top), it also makes collecting the rendered pork fat much easier – you just tip the baking sheet and trickle into whatever container you use.

In this way I accumulate lard with a mild smoke flavour and I use it for a variety of other things. It's not enough to deep fry of course, but it's enough to use a few spoonfuls here and there to add some flavoured fats that I would not be able to otherwise.

← PreviousPage 3 of 11Next →