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 To Break Google’s Monopoly on Search, Make Its Index Public
Like you said, the value of Google is the algo. The index is worth little.

The limits of Bing, Qwant, DDG, etc. are not the number of the indexed pages.

It's that, give them the same pages, and the same search terms, and they don't return results as good.

sametmax··on Python consumes a lot of memory – how to reduce the size of objects?
Same for dictionaries ain't it ?
sametmax··on Microsoft Attempting to Destroy the Careers of Its Critics
I don't need to disseminate any information, microsoft lying, insulting, cheating and corrupting for 20 years has been largely documented by the medias in the nineties.

If you were capable of reading at all at that time, it was one scandal every year.

sametmax··on If Sapiens were a blog post
Harari keeps repeating "this is just an hypothesis" or "we can't be sure of what happened at that time" during the whole book. He highlights multiple hypothesis as well in all chapters, to compare them.

Actually the blog post literally shows that, by repeating "We’re not sure".

I can imagine many critics to the book, but presenting speculations as fact is definitely not one of them.

sametmax··on Nintendo Switch Lite: a smaller, cheaper Switch built for handheld play
They will probably lower the price of the 3DS after at the same time.

They also don't target the same population.

3DS targets small kids, it's surdy, and have low graphic capabilities. You put it in their bag back, for a long car ride, etc.

The Switch is a family console. The adults play it. We have diablo on it. But it got only a 3h lasting battery and it's more likely to break.

sametmax··on Microsoft Attempting to Destroy the Careers of Its Critics
Yes, times change. Now MS is not the top dog anymore, Amazon, Apple, Google and Facebook are all eating his lunch. There is competition. So they can't get away with acting like the old MS. The marketing people figured that out, and are just adjusting. Business as usual.

I've never seen a deeply flawed self-enclosed cultured turned into a sane one. I've seen ones change because they were so much injected with outside influenced. I've seen ones change because the core was alright, and it recognized the problem. But never have I seen a team of bullies sticking together and turn into good people.

However, I have seen plenty of them putting up a smile, getting some green paint on and buying a stairway to heaven.

It's a shame people keep falling for it though. That's why politicians can be crooked. That's why abusive relationships last. That's why you can pollute, use children workers and lie to customers: by the time you pay the price, it's a slap on the wrist compared to what you did, and earned from it.

Then you just say you changed, and people forget or forgive, let you keep the loot, and the right to carry on with your business.

sametmax··on Pirate our games, don't buy them from key resellers, say indies
Yes but it can be a useful business approximation depending of your target.
sametmax··on Pirate our games, don't buy them from key resellers, say indies
Just make it localized in the region language only for that price. Ok, doesn't work with Nigeria, since they speak english. But it would work in Asia, and in a lot of other African and south American countries.
sametmax··on Firefox 68.0
Confirmed, Ubuntu 16.04 on dell xps works fine, and the added boost in perf is noticeable (or the placebo effect is not).
sametmax··on Libra, 2 Weeks In
> Not just privacy. Democracy in general.

So yeah, China...

sametmax··on Libra, 2 Weeks In
Not just privacy. Democracy in general.

No cash mean you can't do anything that has not been validated by the state first.

It means kids will have less options to foul around without the parents checking it.

It means you won't be able to pay in a gay bar anonymously.

It means any new (and hence controversial) political concept will have no way to financially grow to acceptance.

It means no living off the grid.

It means hobo will be even more excluded.

It means in case of crisis, the financial system is paralyzed.

It means if powerful people wants something bad for you, you can't be on the run.

It means easy censorship against unpopular activists or artists.

It means no way to test a weird idea off the record to see if it's worth it.

It means no escape if the gov raises taxes in an unjust way.

It means no workaround for paralyzing bureaucracy.

It means no grandpa selling his home grown vegetable at the farmer market on the side.

It means everything you do, where you do, at what time and with whom is tracked, permanently recorded, then passed to algo or AI for analysis.

No grey area. No margin of error.

Just the immovable, inflexible structure of current society imposing itself to everybody.

sametmax··on Libra, 2 Weeks In
You mean exchanges.

Exchanges != crypto.

Individuals can use btc anonymously. It's public, but only the person you deal with know who owns your wallet.

sametmax··on The new dynamic arrays in Excel with Python and xlwings
MS seems to push Python these days, but I doubt it will happen for Excel: they rewrote a lot of it in JS, so it makes more sense for them to provide a JS binding. Besides, making Python decently works on the Web version of Office would be a huge challenge.
sametmax··on Boeing loses big order for 737 Max aircraft
That's also how people defended slavery.
sametmax··on Why Lisp Failed (2010)
The crust of the article is:

> The reason Lisp failed was that it was too successful at what it was designed for. Lisp, alone amongst the early languages was flexible enough that the language itself could be remade into whatever the user required. [...] However, the process causes Balkanization. It results in many sub-languages all slightly different. This is the true reason why Lisp code is unreadable to others. In most other languages it is relatively simple to work out what a given line of code does. Lisp, with its extreme expressibility, causes problems as a given symbol could be a variable, function or operator, and a large amount of code may need to be read to find out which.

And I perfectly agree. You can see it in tutorials too. You can even see it in any Lisp-lover comments showing you a proud snippet of how "it can be solved better with lisp": it's too clever.

A little bit of clever is fun, it's good for the soul, it can even be productive. But Lisp is just a big pile of cleverness.

Being clever is so appealing to my geek nature. It's so cool. Yet experience (in coding and life) taught me it is not a good property to build a community around. Or a project for that matter.

At best, it's something that can emerge from a battle against long and arduous stream of problems. And then you can rest, you try to factor away the cleverness. But not as a goal. Not as a basic proposition.

sametmax··on Why Is There So Much Saudi Money in American Universities?
Short term yes, but long term, it's our best chance to share values, learn about each others, and grow out of the bubble of our society.

Short travel is a mind opener. But living abroad dye your soul forever.

sametmax··on Boeing loses big order for 737 Max aircraft
> They are banking on the general public forgetting about it over time. Which has happened in the past.

Which almost always happen. Good strategy. Works for politicians, abusive spouses, big companies. What incentive would they have to do otherwise since society most often offers short outburst of rage, then focuses on something else ?

sametmax··on Boeing loses big order for 737 Max aircraft
And he failed at it, since he lost the confidence of the room after he spoke.

There are many strategies you can choose from to defend your company. Not just "we're cool guys".

sametmax··on How to write idempotent Bash scripts
Besides, EAFP is actually a good way to make things idempotent AND free of race conditions.
sametmax··on Babel 7.5
I never said understanding, I said debugging. There are 4 implicit objects here (discounting proxies and wrappers), so unless you know them by heart, you have now idea what's in there. Then of course most debuggers will consider that one line, so to debug, you will hall have to split it in several ones to have the right to know what's going on. Plus, now that you have done it, what ? You put them back as they were ?

That's also hoping your code map files and your browser work well together, which is often not the case. Transpiled code is always a pain to debug at one point or another.

And that's just one line, a code back "full of those" will let you do the dance again and again. A very slow dance at that, cause babel is not the fastest horse in town.

Finally I'll pray your intern doesn't have to do it. But we all have teams full of good programmers right ?

sametmax··on Babel 7.5
I pity the guy who has to debug a code base full of:

    let newScore = fetch(url)
      |> await #
      |> #.json()
      |> await #
      |> #.ID;
sametmax··on Safer Nuclear Reactors Are on the Way
While I'm in favor of nuclear energy, this is something that bothers me. We rarely takes that into factors when comparing it to wind or solar.

Indeed, wind and solar projects can be of much smaller scales. You can iterate on them. Try several places, several designs. And of course, retiring wind turbines or a solar panels, even when you multiply it to get to the same scale of a full blown nuclear reactor, it way easier and cheaper.

In fact, those costs and scales are in such disfavor to nuclear that when officially calculating it, we are not including cheap wiring for the reactor, while we are including expensive underground wiring for wind turbine in my country. It looks better on paper.

The problem is so important, building and retiring reactors is such a pricey thing that we keep postponing it. In France, we are still running reactors that should have been decommissioned long ago.

So I hope we will be able to build some of those awesome new designs. But our society will be more independent, safe and stable if we diversify, and keep investing in wind/solar massively. A mix of energy source is much better right now.

sametmax··on Samsung in hot water over splashy Australian phone ads
Batteries exploding is not "just a bug", nor is lying to your customers.
sametmax··on Insect Apocalypse German Bug Watchers Sound Alarm
If I say "don't open the door, there is a dangerous thing behind it, I saw it". Will you open the door or trust anecdotal evidence ?

The thing is, we need balance between facebook mum faith and requesting studies, numbers and white papers for every single little opinion.

sametmax··on Insect Apocalypse German Bug Watchers Sound Alarm
A hundred cars, helmets and various transparent windows accross 20 years of a travel life, cross referenced with your friends and family experienced may not be scientific. Hell it may not be a representative sample.

But it's a damn good hint.

sametmax··on A better zip bomb
1. You put it in a URL marked as "noindex-nofollow". Google will avoid it. You are supposed to only serve the page to identified spam bots anyway.

2. You create an exception so that they never cache the page and don't proxy this exact URL.

sametmax··on Waymo gets green light in California to pick up passengers in self-driving cars
Suburban US maybe. The rest of the world, you gotta wait a long time.

The thing is, there are plenty of roads that are complicated.

There are plenty of vehicles that are not cars: bikes, motorbikes, trucks, buses, mega transporters, construction / fixing machines, tractors, etc.

Plus of course, you share the road occasionally with protests, parties, events...

And of course criminals won't want self driving cars. And so cops won't. Fire fighters won't. Ambulance driver won't. Anything that needs to get in and out quickly, and each time changing direction, or park in weird locations.

Eventually privacy conscious people will also tilt on how dangerous for society those cars are: you can be spied on, it collects data, it's easy to kill you if you are a political dissident with a simple switch. So a small group of people will also want to opt out.

So while I'm all for as much as self driving car as we can, Waymo effort will still be worth for a long, long time.

sametmax··on A better zip bomb
It's not about downloading, it's about unzipping.

Most bots won't unzip a file they download.

But they will deflate a SSL packet.

sametmax··on A better zip bomb
Not sure, but let's see if I can try without crashing my laptop.

EDIT: nope, steaming doesn't work, the zip relies on the fact it contains many files, and gzip assume there is only one big blog.

EDIT 2: tried with zlib but it expects a different header. So my guess is you really need to open it as an archive.

sametmax··on A better zip bomb
SSH has some kind of compression, so if you can write a Twisted ssh server sending the file as a compressed ssh packed. For detection, fail2ban provides a plugin architecture that allows it to do any action once it noticed an abuse, so you could switch the regular ssh implementation with you tricky one on the fly.

Fun project.

One should also do a lua nginx plugin for that: aggressive crawler ? Comment spammer ? Take this nice gzip HTTP response...

← PreviousPage 7 of 34Next →