HNHacker News
TopNewBestAskShowJobs

julienpalard

693 karma · joined September 20, 2014

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

submissionscomments
julienpalard··on Project Euler
I learned Python using Project Euler, and then created https://hackinscience.org, it's the same but different (only Python, running unit tests against your code).
julienpalard··on I just want to run this one Python script
apt install python-is-python3 ♥
julienpalard··on Ask HN: What are your favorite Android FOSS applications
Minetest, Shattered Pixel Dungeon, Loop Habit Tracker. But now I'm on Mobian :)
julienpalard··on Ask HN: Google Nonprofit for Maps Use?
Why not an OpenStreetMap based solution?
julienpalard··on Wikivoyage has disappeared from DuckDuckGo
Isn't startpage owned by an advertisment company? https://restoreprivacy.com/startpage-system1-privacy-one-gro...
julienpalard··on The Decline of Django
Django fan here, but honest question: is there a Flask admin at least as good as Django admin?
julienpalard··on How does apt render its fancy progress bar?
Ooh so I hope you were right ;)
julienpalard··on How does apt render its fancy progress bar?
In Python you can use tqdm for this:

    python -c 'import tqdm; i=[j for j in tqdm.trange(int(1e8))]'
julienpalard··on How does apt render its fancy progress bar?
Fixed, thanks! (I'm french :D)
julienpalard··on How does apt render its fancy progress bar?
I'm french ;)
julienpalard··on How does apt render its fancy progress bar?
How would you do the DECSTBM without hardocindg it? Honest question.
julienpalard··on How does apt render its fancy progress bar?
You can't imagine how many times I wondered about it before testing it and writing the article ;)
julienpalard··on How does apt render its fancy progress bar?
There's https://tqdm.github.io/ to do nice progress bars in Python.

But my goal was not really the progress bars, but the placing of it below the logs.

julienpalard··on How does apt render its fancy progress bar?
I had to do it quite a few time when implementing this one ;)

I often type "C-c" or "enter" before typing reset to ensure I have nothing before it in the buffer.

A bit like I often do "Enter Enter ~ .` instead of just `~.` to kill a dying SSH session (I don't know why I hit enter twice here... a single time is enough.) to ensure the ~ is at the beginning of the buffer (if it's not, it won't work).

julienpalard··on How does apt render its fancy progress bar?
Interestingly apt don't do this, they hardcode sequences as I did.

Maybe they bet those sequences are the same on all terminals since 1970, espacially those marked "DEC Private" and it won't change soon?

I honestly don't know.

julienpalard··on Senegal Programming Language
Add ABC, B, C, D, C++, F#, C#, ...
julienpalard··on Usage statistics of server-side programming languages for websites
I bet most Python web frameworks (just checked with Django) don't report being Python (or even the said framework) in HTTP headers, so it can't be counted.

Another point of data could be: https://insights.stackoverflow.com/trends?tags=php%2Cpython%...

julienpalard··on Matrix? No, Thanks
Same!
julienpalard··on Yt-dlp – A YouTube-dl fork with additional features and fixes
Does not look inactive to me: https://github.com/ytdl-org/youtube-dl/graphs/contributors
julienpalard··on Crossing an entire country in a straight line
Uncaught SyntaxError: top level await is not currently supported on Firefox
julienpalard··on I am resigning along with most other Freenode staff
<@kline> whats best is for everyone just to sit tight and wait for it to pan out, freenode isnt going to implode overnight no matter what random pastebins say

<@Fuchs> as it is clearly stated in my letter, this was a draft that was not supposed to be published, but a draft from a colleague that linked to mine got indexed by a search engine and found

<@Fuchs> as of right now, none of us resigned, freenode is still ran by the same volunteers that ran it for the past 2 decades, and the rest is rumours and hearsay, we'll gladly officially communicate when we can, until then I'd suggest taking any rants, pastebins, articles and the likes with a grain of salt

julienpalard··on Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust
Reminds me of logtop:

    $ apt install logtop
    $ printf "%s\n" the foo the foo the defenestration the | logtop
    7 elements
       1    4 the
       2    2 foo
       3    1 defenestration
It's implemented using an AVL tree (because it aimed to work on continuous streams like logs, so it's limited in size).
← PreviousPage 2 of 2