Better HN
topnewbestaskshowjobs
Log inSign up

nicolasp

290 karma · joined Mar 8, 2011 (15y ago) · 58 submissions

Submissions

comment 1y ago · link · parent

Key features include:

* Zero-overhead profiling: Attach to any running Python process without affecting its performance

* No code modification required: Profile existing applications without restart

* Real-time statistics: Monitor sampling quality during data collection

* Multiple output formats: Generate both detailed statistics and flamegraph data

* Thread-aware profiling: Option to profile all threads or just the main thread

2.

Python 3.15 will include a new sampling profiler(docs.python.org ↗)

4 points · by nicolasp · 1y ago · 1 comment

comment 1y ago · link · parent

Wait times are in the order of tens of milliseconds instead of seconds. That makes a massive difference in how nice uv is to use vs pip.

comment 2y ago · link · parent

You can put these options in a config file and they will become the default: https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#configur...

5.

I made Google Maps 8-bit for NES because Google wouldn't(youtube.com ↗)

3 points · by nicolasp · 5y ago · discuss

comment 5y ago · link · parent

The "Restore previous session" checkbox is the first setting in the preferences for me (wording may differ a little as I'm not on the English version though). Doesn't that work for you?

comment 5y ago · link · parent

I mostly agree with you. I just want to point out that the reason Trump was held to a different standard than previous presidents is simply that he lied so much from the start. Journalists from "mainstream media" rightly perceived him as a threat because when called out on his lies he overtly attacked them and encouraged violence against them (arguably resulting in casualties in the Capital Gazette shooting).

comment 5y ago · link · parent

I'm not convinced that's true. He didn't refer to any specific institutions or subsets of journalists in the quotes I included. Even assuming that he meant to, the examples he cites are CNN, NBC, NYT and WaPo. He also accused editors at The Intercept of censoring him over Hunter Biden stories. That's already a very large group of people to generalize.

He clearly views himself and a handful of others as outsiders, in a crusade against a journalistic profession that he views has wholly corrupted by corporate interests.

comment 5y ago · link · parent

I'm very ambivalent about Greenwald. One the one hand he produced essential work with the Snowden revelations and his exposure of corruption in Brazil. He also makes good points about the moral evil of the Bush/Cheney administrations and Obama's continuation of the war on terror.

But on the other hand it feels like he spends a lot of time attacking strawmen just for the sake of being contrarian. Saying that journalists are authoritarians who want to protect the secrets of the powerful [1] and control access to platforms [2] has a tiny grain of truth in it but is mainly a massive oversimplification that paints a group of thousands of professionals who have a myriad of varying incentives with an incredibly broad brush. He seems to be incapable of nuance in his critique of the journalistic profession, and that renders his message mostly inaudible to me because it feels like it's coming from some form of resentment rather than reasoned arguments.

[1] "Journalists view the dissemination of information about what powerful people are doing in the dark not as their principal function and purpose—which is what it ought to be if we had a healthy media—but as something to be denounced and condemned."

[2] "[Facebook and Google and Twitter, and Silicon Valley in general] began to censor because journalists demanded they do so, in part because journalists are authoritarians who believe that the modes of information [should be] regulated by them and by others.

comment 7y ago · link · parent

As a student I learned C and how OSS projects work through hacking Rockbox to add features to my iRiver H320. Fond memories and a very valuable learning experience.

comment 8y ago · link · parent

The standard plan is $5 per user per month, so for 5 users that's $25/mo.

comment 10y ago · link · parent

> Is there a way to make a previously hidden iTerm window show without also bringing any other iTerm windows to the front?

HyperDock[1] Lets you do that.

[1] https://bahoom.com/hyperdock/

13.

Git-deps: Git commit dependency analysis tool(github.com ↗)

2 points · by nicolasp · 10y ago · discuss

comment 10y ago · link · parent

Even so, it should still be their responsibility. They're the ones selling the finished product to the consumer.

comment 11y ago · link · parent

What? You can definitely hail a taxi in France. It can sometimes be very hard to find one that is free, but there's no law that says you have to either call for them or go to a taxi stop.

comment 11y ago · link · parent

When someone comes to you to offer you a "taxi" service in France, it's pretty certainly a scam (especially with a price like that). A licensed taxi has a sign on the roof, doesn't randomly offer you its service, and its price is regulated. It never would have cost you even 60€ for 6 km. It would have been roughly the same as with the Uber, maybe a bit cheaper.

The question of whether you would prefer a licensed taxi or an Uber is a different one which I won't get into for now :)

comment 11y ago · link · parent

How do you find out the number of open tabs?

comment 11y ago · link · parent

Interestingly the search on HN is powered by algolia :)

comment 11y ago · link · parent

They're talking about the algorithmic competitions like ACM ICPC or TopCoder. Google have their own (Google Code Jam), which they use as a recruiting tool.

comment 11y ago · link · parent

Gay marriage (or "marriage for everyone") is a recent, substantial change to a law that is familiar to many French people. I thought it was a great example despite its somewhat controversial nature.

comment 11y ago · link · parent

You should give QtCreator [1] a try. It's made by the Qt people for Qt development, but even for non-Qt stuff it's a pretty good IDE.

[1] http://qt-project.org/wiki/Category:Tools::QtCreator

comment 12y ago · link · parent

There is a similar case in France (albeit at a much smaller scale), where DNA tests were run on all male pupils and staff from a school in an effort to find the perpetrator of a rape. So far they haven't found a suspect.

http://www.theguardian.com/world/2014/apr/13/french-school-d...

http://www.theguardian.com/world/2014/may/22/french-school-r...

comment 12y ago · link · parent

One problem with Heroku's European region is that it's not Safe Harbor compliant. This means it's not possible to use them and still comply with the data protection laws in some (most?) European countries.

When they announced the European region a year ago they said "Safe Harbor Compliance is Coming Soon" [1], but there has been no news about it since (as far as I know, at least).

[1] https://blog.heroku.com/archives/2013/4/24/europe-region

comment 12y ago · link · parent

You should check out Tree Style Tab [1]. I always have a lot of tabs open and I can't live without it. It lets you choose where to put the tab bar, among other settings.

[1] https://addons.mozilla.org/firefox/addon/tree-style-tab/

comment 12y ago · link · parent

A comment in the article mentions libpuzzle[1], which looks interesting. A Python binding also exists: PyPuzzle[2].

[1] http://www.pureftpd.org/project/libpuzzle

[2] https://github.com/ArchangelSDY/PyPuzzle

comment 12y ago · link · parent

The market being regulated doesn't necessarily prevent collusion from happening, but makes it illegal when it does happen.

27.

Facebook Hacker Cup 2014 Qualification Round is underway(facebook.com ↗)

1 points · by nicolasp · 13y ago · discuss

comment 13y ago · link · parent

Thanks, this is a useful complement to github's network graph. The ability to sort repos by last update would make it even nicer IMO.

comment 13y ago · link · parent

The Peter principle actually states that in a meritocratic organization people will rise as long as they're competent, then stagnate once they reach the limit of their competence.

Edit: The one you're thinking of is rather the Dilbert principle [http://en.wikipedia.org/wiki/Dilbert_principle].

comment 13y ago · link · parent

I know I'm rather late but I just wanted to point out that this number is likely an exaggeration. See this: http://fistfulofeuros.net/afoe/more-like-colmar-on-thames/
12