Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 2y ago · link · parent

At this points, it should be mandatory by law to open source the code of any online service your discontinue if people paid for a product that is tied to it.

comment 2y ago · link · parent

I always though it was because it was easy to confuse with logging.

1233.

Xmas Decoration, Part 1(bitecode.dev ↗)

1 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Saying there are changes in the system is even less useful than saying the sky is blue.

There are no system that have zero changes.

Only models that don't or can't account for the changes.

If one is not humble enough to remember all models are wrong, but some are useful, there is not much we can do.

comment 2y ago · link · parent

The optimum time to beat this game for me is 2 seconds.

My brother and I used to have it as kids, eventually you figure out shortcuts, and go faster and faster.

But we discovered by mistake (or rather while expressing frustration) that the quickest route ends up being a very sudden lift of the left corner, sending the ball flying above the whole board, and directly into the last hole.

With practice, you get down to one second to get to the left corner, then a second and a half to get it airborne, and for it to fly into the finish line.

I have no doubt the AI will figure it out, and probably even make it faster.

comment 2y ago · link · parent

Agree.

All those remastering are often done with more importance given to the economic side of things, instead of respecting the art.

Some are destroying the original work.

The first thing that pop into my mind is how they destroyed Buffy with the HD makeover:

https://www.youtube.com/watch?v=oZWNGq70Oyo

As a reddit commenter said about the cropping job: "All they had to do was nothing and they still fucked it up."

It's a disgrace.

comment 2y ago · link · parent

500 page views / second is, again, not that big.

Basic servers are capable of handling hundred of the housands of those if you optimize your db and use a low level language.

We used python and an orm and we handled 1000 r/s on peak hours daily.

And we are talking user accounts, comments, votes, upload, transcoding, video streaming...

Todays computers are mind blowingly fast.

comment 2y ago · link · parent

In 2010, one of my client employee kept complaining the report she downloaded from our intranet app couldn't be opened.

It was only her machine. It worked on all others.

I looked at the file, and it was a tad smaller than on the other machines.

I disabled her anti-virus, it worked !

Realizing kaspersky was taking a bite at the report, I created a self signed tls certificate so the anti virus could read it.

Worked.

comment 2y ago · link · parent

11m monthly user is not that of a big number. Any stack will do providing you don't do something stupid.

Our stack was similar than pinterest, django but postgres and redis. Team of 2.

Indeed, keep it simple. Cache things. Use queue, etc.

You can scale vertically a lot. Db perfs and disk space were our points of focus.

comment 2y ago · link · parent

You are not going to bleach a handrail 50 times a day, it's not economically viable.

comment 2y ago · link · parent

Not with such material which kills everything.

comment 2y ago · link · parent

Yes, but once they are out of their container, they start collecting bacterias.

No matter how clean operating rooms are (which can vary a lot), it's never perfectly sanitized.

A cheap way to get many surfaces agent free would be a nice additional safety measure.

comment 2y ago · link · parent

The thing is, we need to kill bacterias in many other places than the human body:

- medical equipment: handles for scalpels, syringes, operation tables... All those things we need to clean again and again.

- passage ways: doors, handles, stairs handrails, subway grab bars... All the things that propagate infections in very dense populated areas.

- research fabs: hazmat suits, protection googles, fum hood protections,... All the stuff you want to make sure don't end up cross contaminate your batch or escape.

So it's still very useful.

comment 2y ago · link · parent

This thread is full of comments that tl;dr to "oh, they also told us x was safe, but eventually it was not".

The thing is, I'm sure half of those stories came with studies stating how safe all that was. And hacker news like debates where well meaning smart folks defended that point of view because the data was there.

Now I'm much more tolerant to all the tinfoil hats, anti-whatever and crackpots out there. Because even when their arguments make no sense, I get where they come from.

The history of mankind is riddled with those situations.

comment 2y ago · link · parent

"Only"

But yeah, not the cause.

comment 2y ago · link · parent

Any long time with yourself will do: walking for days in the mountains, isolating youself in a cabin in the wood to write, a meditation retreat...

It's hard to have your own thoughts when the entire world is constantly inputting its own in your psyche.

After long periods of silence, you start emptying and the mind fills the void. Ideas come in.

With practice, it will stop filling the void. But this isn't necessary if all you want is producing new ideas.

Even being bored is not necessary, but we are so not used to less input that we easily get bored.

comment 2y ago · link · parent

Several things can be true.

comment 2y ago · link · parent

Consuming energy productively > storing it?

Well, yeah...

comment 2y ago · link · parent

To non french readers: le gorafi is the french equivalent of the onion :)

comment 2y ago · link · parent

Wait until they learn about chocolatines.

comment 2y ago · link · parent

That's exactly that yes.

Also, duplication. I want laptops and hard drives in different bags in case of water, fire, mugging, etc

The big hunting knife is not mandatory. As I said, I use it rarely.

But I'd hate to be in a situation where I need it and not have it.

Maybe it's also good luck charm at this point :)

comment 2y ago · link · parent

It's more that you need a robust versatile piece of metal. An ontario rat 7 will cut ropes, wire, wood, but also be a poor man rebar alternative, dig small holes in the ground, decapitate a snake, move things in acid or fire, slice bread, create an anchor, pierce pipes, slash tires, etc. For the form factor, it packs a lot.

But as I say I rarely use it. It's like insurance. Maybe it's more like a totem at this point.

Also my experience with showing off a weapon is escalation. And I'd rather stay very far away from physical conflict. Not for moral reasons, simply because it leads to outcomes I don't like.

comment 2y ago · link · parent

Alcohol, sex and a generous stock of dark humor.

comment 2y ago · link · parent

It's the case for many NGO. Just know that:

- NGOs won't pay nearly as much as the private sector, obviously.

- It's very hard to get in, at least for deployed missions. So do not hesitate to try again and again for a long time.

- Once you are in, it ripples, and you easily get access to many other missions, provided you did a good job. It can be useful to accept something completely out of your main thing, just to get the foot in the door.

- A lot of NGO work is actually not helping anybody. Be prepared to be disappointed. Some is good, but the amount of PR, virtue signaling and scams is staggering. Although many people are under the delusion they save the world. Do it for the experience, and maybe you'll get lucky and you'll do more good that bad, on average. Some days, I'm still unsure I did. But emergency responses are where the most unambiguous good is done.

- If you do it for long enough, you will get hurt. That's just how it is. Sick, wounded, bankrupt... Something. That's one of the prices to pay. E.G: in West Africa, our first Malaria was kinda a rite of passage. We'd joke about it. You can't take pills with side effects for ever.

- You'll need to be pretty autonomous. Nobody is going to take you by the hand. But the cool part of this is that you'll get responsibilities and freedom of action you'll have nowhere else. It can be a curse as much as a blessing, but I loved it.

comment 2y ago · link · parent

Going throught iq84 right now, but apprently it's one of the easiest.

comment 2y ago · link · parent

Getting to the north pole is a series of a lot of pretty basic shits, I'm afraid.

Life is mostly mundane, after all. And there is a limit to what you can prepare for.

One day my taxi, or should I say death trap, went fast and furious on a pedestrian in the middle of Bamako. The procedure for the locals at the time was to stone the culprit to death before the police arrive, as anybody with money will pay their way out.

Not much you can pack to help you with that.

And not programming related anyway.

comment 2y ago · link · parent

Two things can be true.

comment 2y ago · link · parent

No, that's understanding you don't replace a complex system with 1000 variables with a solution of 10 variables.

Soil are complete ecosystems. Plants are complex organisms.

You can dumb it down a lot and get very good result for some time, but eventually what made it anti-fragile, à la nassim taleb, will run out. And your alternative is not anti-fragile.

comment 2y ago · link · parent

Yes, deliberately indeed.

But I as suspect you may believe, I didn't work for the military.

I worked for NGOs, governments bodies, the UN and WHO, and of course the private sector.

At home I have a fridge, hot water, heating, nobody is shooting guns except in the shows I can stream in HD thanks to fiber while eating an organic avocado.

So it's easy to forget a huge part of the world is not comfortable. But those areas do have a lot of human activity, and some need computers.

In the article I hint about a text message base system to control a cluster of computers. That was in 2000 something, and Uganda was trying to control a big tuberculosis epidemic. The goal was to synchronize all medical outposts. In this country, this meant dozens of very remote places, in the jungle, in the mud, etc.

It could take up to 3 months to gather enough data about all the cultures of each new batch to prescribe the proper treatment. Often too late.

One day the NGO Find decided to attempt to create a system that would link all them using GPRS. So they sent me there. Text messages was the only thing that would be semi-reliable, and locals would plug their nokias on the batteries on their Jakartas (a popular chinese bike that was everywhere) to have them always available, so we used that, and cheap laptops to host the software.

Another time I got hired at the last minute to help with a training to promote Microsoft products in remote places in the hope that once they become a market, they would chose them. When I arrived, the African MS representative gave a speech, a few t-shirts, pocketed the money, and left immediately.

Without the MS expert to take a lead, I didn't have much of a plan. So I trained the entire audience how to use Linux.

Good times.

Want to entertain a bunch of stranded scientists on an island? Give them a Python training, it's part of the budget anyway. Want to prove some legal issues? Lock the expert with an airgap system and let him figure it out.

I get all sorts of offers. Some are questionable, of course.

Once the parliament of Mali asked me to craft some very shady accounting system. I refused.

But I can only tell you about it only because this particular governing body have little power over me today.

1
414243
184