HNHacker News
TopNewBestAskShowJobs

sametmax

16,803 karma · joined May 21, 2012

French blogger about Python and porn, which strangely go well together (http://sametmax.com [NSFW] [FR])

Phone + not being an english native speaker can result in serious comment injury.

submissionscomments
sametmax··on Insect Apocalypse German Bug Watchers Sound Alarm
Your comment and this article are the first I noticed mentioning the birds as a second indicator. It means the cascade has started. Somewhere else, it's probably already acting as well: the soil, the plants, or stuff we don't know about.
sametmax··on Insect Apocalypse German Bug Watchers Sound Alarm
Some of us are noticing. I was discussing last year with my friends and family how clean your bikes helmets and cars windshields were compared to 20 years ago: no insect on it.

It's just that people carry on. They don't build their life. They don't make conscious choices, orientate their actions or try to think about the society they live it.

They just go through it, going from one small short term objective to another, most of the time motivated by a small pleasure or to avoid pain.

That is why people get fat, get stuck in traffic going to a job they don't like, going back to TV eating unhealthy food and indulging some kind of addiction.

Believe it or not this is also a big cause of couples staying together, marrying, making children. Not the grand idea of love. Inertia. Status quo.

sametmax··on Insect Apocalypse German Bug Watchers Sound Alarm
Just because you can report a problem doesn't mean you have a solution. That doesn't mean the problem is not worth reporting.

I haven't seen panic. People can't stop listening since they haven't even started. Most people don't know about this, don't care, or can't see the big picture.

But repeating works.

We know it works, because that's how TV ads work.

So I'm all OK with repeating that again, and again.

People getting tired of it ? Meh, they still watch TV after the 1876th coca cola ad. And then they go buy soda.

I'll take the chance of repeating a wholesome message.

sametmax··on D as a C Replacement
Visual appearance and cognitive load are very much linked IMO.
sametmax··on Choose Boring Technology
Competitors don't kill you because they chose a new tech. They kill you because they can either:

- solve a new problem

- solve an existing problem better

- solve an existing problem cheaper

A new tech MAY allow that, and it MAY be used successfully toward that objective, but even in that case, that's hardly the core of it for most cases. Not saying it does not happen, but there are much more at play.

sametmax··on Ask HN: What do you do on an Android phone that cannot be done on an iPhone?
I'm referring to that time where iPhone 5 buttons where breaking all over the place, Apple said it was hardware and that the only fix would be to buy the iPhone 6, but then rooted versions of the iPhone could use a non official software patch to fix the issue.
sametmax··on Pennsylvania Is First State to Use Automated System to Expunge Criminal Records
> the actual problem is probably pretty simple.

Yeah but writing the code is not what's expensive on this project.

sametmax··on 'We all suffer': why San Francisco techies hate the city they transformed
I'd imagine:

Hot weather and good infrastructures so you can live in the street.

Liberal so you are not bashed out by the cops.

Rich so you can beg for money.

Many water points.

Strength in number.

sametmax··on Ask HN: What do you do on an Android phone that cannot be done on an iPhone?
That's the comment I wanted to write.

I'd add:

- kde-connect. It's awesome to be able to control my computer for my phone, especially while watching a movie.

- alternative stores. Being able to use aptoid and f-droid let me use the full potential of the phone without tying it to an email account.

- productivity concepts arrive first on android. We had wifi hot spot. Quick wifi/bt/3G switch first. Etc. With apple, you only have what Apple though about, or could copy later. With Android, the community can implement many things.

- USB-C charger. I don't want yet another charger/adapter

- my phone will still work in 5 years. No "oh the home button is broken" scandal.

sametmax··on Ask HN: What do you do on an Android phone that cannot be done on an iPhone?
pulsesms is a good alternative to airdroid for the desktop sms experience. Still not on par with iMessage, but way better. Also, kde-connect has a better integration for remote desktop/phone control.

In the end, I only keep airdroid for sharing files and contacts.

sametmax··on Google Duplex might make my design job redundant
"Our proprietary locking product will replace the now common standard and open way of doing it"

No thanks

sametmax··on Reducing Wasted Food at Home
Not only. First, some people, eating the same excess calories than you, won't store it as fast. Genetics play a role. Also, you may store more fat or not depending of:

- the time of the day you eat it (you will more likely store things if you eat it late than early in the morning due to your homonal cycle)

- the duration on which you eat it (the infamous 9 hours popularized by dr rhonda patrick)

- what you mix. Eating the same amount of calories in pure fat, or in a mix of 50% fat and sugar will not result in the same process by the liver.

- insulin sensibility. Which is influence by the quality of your food. E.G: how much sugar it contains.

- ability to process said food, again influenced by the state of irritation of your intestine and your microbiome, and hence influenced by the quality of your food. E.G: adult can get irritated intestines by intaking dairy product after they lost their childhood ability to proess it as well.

I know it's a convenient shortcut to say "calories in, calories out", especially since it's easy to demonstrate (the anecdotal Twinkie diet made us all think). But if we keep repeating that, we are not helping people to lose weight. Dieting has a very low success rate because of the solely focus on the calorie count, while using the informations above as well lead to less rebound and frustration in my experience.

sametmax··on Magical, Mystical JavaScript Transducers
Isn't it exactly the use case of generators ? I though js had the yield keyword by now.
sametmax··on A Rooftop Device That Can Make Solar Power and Cool Buildings
Solar panels can be mounted on a moving playform.
sametmax··on Most Unit Testing Is Waste (2014) [pdf]
My take on that is to make tests using a unit test lib, but a bit more macro. Midway between unit tests and e2e. It's not pure, it's not best practices, but it's great value.
sametmax··on Microsoft's Linux Kernel
Most people don't know what a URL is, and you want them to install an OS ?
sametmax··on Building Standalone Python Applications with PyOxidizer
> The parts I don't like:

> + Static linking

It's actually what I like in this project. Dynamic linking causes many issues, especially on Linux, where you never have quite the same libs depending of the distro. If I want a standalone exe, I want static linking. If I want dynamic linking, I'll make a deb or a rpm.

> + No extension (shared library) support

> + The module importers look over-engineered / too complicated

Man, the project just came out, give it time. You're very harsh on this.

> + Custom Python distributions

Well, yes. That's why it works. Otherwise you are back to require a C compiler on the machine or use dynamic linking.

> + Not sure what Rust gets you here, besides additional complexity

- link to the custom python distrib, allowing you to use the nice rust toolchain instead of the mess that is the c toolchain or dynamic linking

- free rust / python interrop. This is very interesting.

- potentially cross compilation and even make the tools stand alone itself

> + No support for Python 2.7 (Python 3 drops support for Windows XP which is still a legit platform for many scenarios)

Python 2.7 is reaching EOL in a few months. It's perfectly reasonable to not support it. No poney.

sametmax··on “The books will stop working.”
I don't want a refund. I want to keep my books.

"yeah, we take back your transplanted heart but don't worry we will give a refund so it's not immoral"

sametmax··on Truths programmers should know about case (2018)
The part "Case-insensitive comparison requires case folding" says there is an algo for that, but it's up to the language to implement it.

E.G: in Python 3, it's recommend to use str.casefold() instead of str.lower() for this:

    >>> "Straße".upper().lower()
    'strasse'
    >>> "Straße".lower()
    'straße'
    >>> "Straße".casefold()
    'strasse'
    >>> 
Depending of the context, a little str.strip() and/or a str.split() + str.join() may also help. User usually don't want to consider blanks when entering data (e.g: an address), while it's important for machines (e.g: a password).

Now like @lmm said, this only normalize the codepoints. Meaning is of course, impossible to be sure that way.

sametmax··on Building Standalone Python Applications with PyOxidizer
Seems fair to me, giving the nature of the language, the inertia of c/c++ and low level stuff, the learning curve of this domain, the popularity of web/scripting and the 4 years I mentioned.
sametmax··on Building Standalone Python Applications with PyOxidizer
> it doesn't seem to catch up in popularity which I find weird.

What's your metric to say that ? After all, it's a system language, not a web one or scripting one, so it's not likely to go to the top trending stats very fast. Not to mention we had a stable version for only 4 years.

sametmax··on Jobs where liars excel
Because you have credibility, while a junior want to reassure.
sametmax··on The Problem of the Aging Surgeon (2009)
Or just much less surgeries, or only in support of newbies.

Fatigue and speed of execution seem central.

sametmax··on Building Standalone Python Applications with PyOxidizer
I tried pyinstaller, and never managed to make it work for my projects. Some libs are dynamically linked so it may cause problems.

Nuitka worked immediatly, but still dynamamically links libc and doesn't allow this nice rust/python interraction nor the possibility of future cross compilation.

sametmax··on Building Standalone Python Applications with PyOxidizer
Nuitka can do that. Since it converts python to c, then compile the c code, you can just get the c, and compile it the way you want.

PyOxider packages and accesses the python files I think, so they are here and available.

sametmax··on Building Standalone Python Applications with PyOxidizer
XAR is only for "Linux or macOS", with FUSE installed.

PyOxidizer offers a solution that:

- works on Windows

- can produce executable for Windows, Mac and Linux, but also potentially cross compile from any of those in the future

- results in a stand alone executable, not some filesystem abstraction

- as such, the target machine doesn't need to have anything installed

- it also offers to embed Python into Rust projects, and Rust into Python projects

A better alternative would be the excellent nuitka (nuitka.net):

- it compiles Python to C

- it's very compatible, very reliable (I battle tested it)

- works better than the alternatives like py2exe, cx_freeze, etc

- does provide a standalone executable

- more mature that both of these projects

But:

- no cross compilation

- no rust / python interoperability

- more complicated to get working on windows

So I'm really excited for PyOxidizer. It may make the task of providing a stand alone executable even easier than with nuitka, and as a bonus, may build a bridge between the Python and Rust community, which really are meant to play together.

sametmax··on Ask HN: Password manager with best experience on Linux?
Passwords are not just for websites, same services has different domains, sync is free, autocomplete on mobile, passwords are not the only thing I want to save, etc.
sametmax··on D is being used for autonomous driving research – Audi and Mercedes
1000x faster than numpy / scipy ?
sametmax··on Suicide Rates Among Adolescents and Young Adults in the United States, 2000-2017
It helped the trains, not the kids.
sametmax··on How much climate change can still be considered safe?
It's assuming it's already safe. There is a good chance several armed conflicts of the last decades were influenced by climate chances consequences. Conflicts that also cascaded into other tension rising events, because of immigration, altered business, demography flux, etc.
← PreviousPage 8 of 34Next →