Better HN
topnewbestaskshowjobs
Log inSign up

julienpalard

693 karma · joined Sep 20, 2014 (12y ago) · 65 submissions

Python user since 2009, https://hackinscience.org author, helped translating https://docs.python.org in french and helped other languages to land their translations on docs.python.org too.

https://mdk.fr

Submissions

1.

A checkbox to enable the Django debug toolbar(mdk.fr ↗)

2 points · by julienpalard · 6mo ago · discuss

comment 3y ago · link · parent

Working for Google for free?

comment 3y ago · link · parent

Yes. Decimal time almost happened in France during the revolution, but fixing all the clocks was impossible so people kept their standard clocks, so they kept the old habit...

comment 3y ago · link · parent

My advice in the situation when someone wants to "free RAM": "You bought it, better use it."

It always felt strange that people buy lots of RAM but want it to be kept unused...

comment 3y ago · link · parent

Same as:

    find . /
Don't get why there's quoting here.

6.

Black screen at phone boot: buy new or fix it?(mdk.fr ↗)

2 points · by julienpalard · 3y ago · discuss

comment 3y ago · link · parent

I like the simplicity of passwordstore. But keepassx* are good too. I'll never trust an online solution, and probably almost never trust a browser extention.

comment 4y ago · link · parent

Which is close-source (or I didn't find it in their github repo).

9.

Protonmail can delete the wrong email and nobody cares(github.com ↗)

438 points · by julienpalard · 4y ago · 237 comments

10.

The shortest pull request ever(github.com ↗)

133 points · by julienpalard · 4y ago · 54 comments

comment 4y ago · link · parent

In someone lands here seeking a maintained compiler for Python, there's a lot, on top of my head:

- Pythran (https://pythran.readthedocs.io) (ahead of time compiler) - mypyc (https://mypyc.readthedocs.io/en/latest/) (ahead of time compiler) - cython (ahead of time compiler) - Numba (JIT) - Pypy (An interpreter doing JIT compiling) - Nuitka (Ahead of time, IIRC)

At this point we should build a "Awesome Python Compilers" repo ... oh wait, it obviously already exists: https://github.com/pfalcon/awesome-python-compilers

comment 4y ago · link · parent

It's a good habit which ensures pip runs with the same interpreter as your `python` command.

One example (but there's many): On Windows a `pip install --upgrade pip` can't work as the OS would lock the `pip` executable, while a `python -m pip install --upgrade pip` works as the OS would lock python instead.

I also encontered environments (CI runners, things like this) with `python` and pip installed, installed but no `pip` shortcut.

More: https://snarky.ca/why-you-should-use-python-m-pip/

comment 4y ago · link · parent

I don't see the dumpster fire here:

$ python -m pip install west

That's it, no venv, no sudo.

pip will install it in ~/.local/ so you'll need a:

    PATH="$PATH:$HOME/.local/bin"
to get it to your path.

comment 4y ago · link · parent

A deadly virus caused a mass vaccination? We already knew.

comment 4y ago · link · parent

True. There's a demo prooving it: https://wiki.mobian-project.org/doku.php?id=wake-mobile

(Tested on my PinePhone on Mobian: it works!)

comment 4y ago · link · parent

Just the built in managers. Other are worse: they do vendor locking for profit.

comment 4y ago · link · parent

Upgrading dependencies is also a way for me to resolve issues, so I don't fight it.

18.

Pipe library introduces partially parameterized aliases(mdk.fr ↗)

1 points · by julienpalard · 4y ago · discuss

comment 4y ago · link · parent

Why you no host? (https://yunohost.org/) ;)

comment 4y ago · link · parent

As the author, I'd add logtop:

    tail -f /var/log/nginx/access.log | cut -d' ' -f1 | logtop
as a live updating replacement for a |sort|uniq -c|sort -gr|head

comment 4y ago · link · parent

man locate

comment 4y ago · link · parent

Just choose one that pleases you / make sense for you.

I mean, email is federated, let's use it this nice feature wisely and stop trying to get everybody on the same service.

To answer your question I'd vote for Tutanota or Protonmail.

comment 4y ago · link · parent

I'm using a Pinephone since ~6 month now, and I don't feel the need to turn back, if one anecdote do weight in your stats :D

comment 4y ago · link · parent

This is typically the kind of idea that I don't understand: docstrings are here so the developer can state what *needs* to be stated here (the *not obvious*) the why, the how, the known limits...

Taking a comment as an example, compare:

    if is_even(x):  # if x is even
and:

    except UnicodeError as err:  # Can happen on malformed IDNA.
One is not usefull (but can be derived automatically), the other one IS usefull to understand the code, but *can't be derived automatically* (without a deep understanding of the used libraries behind the various calls in the try statement).

comment 4y ago · link · parent

You're not alone :D

26.

Python releases adoption since 2016(github.com ↗)

2 points · by julienpalard · 4y ago · discuss

comment 4y ago · link · parent

As I use Debian in production ($DAYJOB, https://afpy.org, https://hackinscience.org, https://mdk.fr, ...) it make sense to also use Debian to develop (which I use since Woody), so I have Debian on my laptop and even on my phone (mobian exactly) :D

comment 4y ago · link · parent

Next target of music industry: Firefox & Chrome, because they also allow for listening their music on Youtube.

comment 4y ago · link · parent

White page on Firefox 96

comment 4y ago · link · parent

Shameless plug : I wrote a tool to watch DNS updates at the authoritative nameserver : https://github.com/JulienPalard/dnswait

DNS propagation is a lie!

123