24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions
https://www.bitecode.dev/
Email: contact at bitecode.dev
comment 4y ago · link · parent
It cost less than $2K/Month.
The cloud is crazy expensive. Private servers are beasts, and they are cheap.
Of course, for this price, you don't have redundancy and horizontal scaling.
You also don't have to maintain and debug a system with redundancy and horizontal scaling.
comment 4y ago · link · parent
At this point, when a client of mine that is technically litterate has such a bad experience, I pay them a visit.
They would probably learn a ton by having the setup at hand.
comment 4y ago · link · parent
"Pour assurer la fiabilité de la preuve soumise via un dispositif de vidéosurveillance, la qualité de l’image s’avère également déterminante ; plus précisément, elle doit comporter 704 x 576 pixels de résolution au moins et une cadence de 12 images par seconde et plus. L’installation d’un tel système doit être justifiée par un besoin de sécurité ou de protection (personnes, biens, locaux, mesure d’anti-terrorisme). Dans le domaine privé, les personnes concernées doivent en être avisées et vous devez déclarer le dispositif à la CNIL."
"dans le domaine privé" could mean "by private party" or "on private properties", and since IANAL, I don't know which one. The first one would match my understanding, the second would mean the public street would be ok.
comment 4y ago · link · parent
Even in the moutain, I now have a heavier bag. E.G: my latest knife is way bigger, sturdier and so weights a lot more, I also have a smaller one as a backup now.
Being minimalist is not an end goal, it serves a purpose. E.G: to make your life simpler, easier, to help with focus, or to go green.
But I feel like people are more and more travelling light for virtue signaling at this point. You cannot just travel light. Everybody must know you do.
comment 4y ago · link · parent
comment 4y ago · link · parent
I've seen a variety of positive effects, but this is annecdotal, as they are reported by the people taking the substance themself.
There is also the problem of long term vs short term. There are plenty of positive side effects that fade away after a few hours, days, or months.
Often though, people report practical insights about oneself or life, that they could not get before, and those can be lasting.
Some people report physical benefits as well. Paul Stamets famously said his speech impediment disapeared after a session.
On a personnal level, what lasted for me were:
- the understanding of some needs I had, and that I was not allowing myself to have.
- the smoothing of autistic symptoms such. E.g: welcoming of physical contact.
Both significantly improved my quality of life.
I have to insist on the right conditions, though. There affect heavily both your immediate experience and the benefits you may get. If you intend to give it a try, get an experimented, serious and benevolent person to assist you.
There are some groups that are specialized in the matter. I've done my first session with the psychedelic society: you pay them, and they organize a whole 3 days seminar for you. They were competent, caring, and amazingly benevolent. Unfortunatly they exist only in Europe.
comment 4y ago · link · parent
I used Psilocybin, and it was worth it. I would recommand people to give it a try, and I helped people around me, including one parent, to take it.
Yet.
Every time I took it, I could feel my speech ability to decline for a while. The side effects faded slowly, and disapeared eventually every time. But traces of it are noticeable after even a month or two sometimes.
It's like when people claimed that marijuana was not addictive. The deny didn't help at all. I know of several people that are addicted to smoking pot now. It's a negative side effect on their life.
There is no such thing as a free lunch. Powerful products have powerful effects, and this means some harm can exist.
Yes, psilocybin is way safer than the reputation is has been given in the 70'. Yes, taking it (in the right conditions) can benefit you a lot.
But pretending there is zero detrimental effects is wishful thinking and will lead to people abusing the thing, believing it's just funny candy, and they may end up damaged.
comment 4y ago · link · parent
After a while, he goes to talk to his banker:
Him: I don't understand, I kept burning cash, and I have even more than before!
Banker: Yes, we invested the money, and you get a ROI, that's how it works.
Him: Wait, you mean when you are rich, it never stops?
Banker: No. But rest assure, when you are poor neither.
comment 4y ago · link · parent
2 - Caching is life. We have 3 layers of caching: cloudflare, varnish, and redis. Most things don't need to be real time. A lot of things can be a month old and the user doesn't care. User need immediate feedback to be happy, but not necessary fresh data.
3 - if you compile nginx manually, you get to use a lot of plugins that can do stuff super fast, including serving videos. You can script stuff in lua that will just skip the backend completly.
4 - mind your encoding. We carefully chose how we encode videos. The ffmpeg parameters are pretty insane, but the space / quality ratio is amazing, espacially on mobile. It takes a lot of time to experiment with those, nobody share them :)
5 - we offload everything we can to cron tasks or task queues. Including, obviously, encoding, screenshooting, etc.
6 - don't hold data you can't lose. E.G: billing. This way you can have a relaxed attitute toward data. If we ever loose a day of business, users will be in a bad mood for a week, but that won't be the end of the world. We don't need a bullet proof system if bullets can't kill us.
7 - give money to ffmpeg and opencv, because damn those things are fast. And good.
8 - servers are hosted accross 2 providers. This way, if one goes down, or decide to stop doing business with us Google style, we have a second one. Happened recently with leaseweb: they shutdown a whole room without offering an alternative.
E.G: votes.
They don't hit the backend on write. We pile them from nginx to redis, then once a day, we aggregate and store on postgres, which the backends will consumme. We just store each vote on localstorage as well so that the user feels like it's real time when they vote, but in reality it's updated once a day. But votes don't affect the money side of our business, so if we lose them one day, it does not mean death.
P.S: yes, posgres/redis/elasticsearch only hold metadata. Videos are stored on disk. There is no docker images, no mircoservices, FS is ext4. Which means with a lot of RAM, the OS FS cache will have most popular videos already loaded and ready to be streamed. Everything is raid 0, so if we get one disk corrupted, you lose the server. But we upload each videos on severeal servers, so when a disk get corrupted, we just replace the whole server. In fact, anything goes wrong on a server, we replace it. It's not worth it to find the root cause, unless 2 servers die in the same way successively.
comment 4y ago · link · parent
Meanwhile, I currently have a gig to work on a video service which features a never updated centos 6, an unsupported python 2 blob website, and a push to prod deployment procedure, running a single postgres db serving streaming for 4 millions users a month.
And it's got years of up time, cost 1/100th of AWS, and can be maintained by one dev.
Not saying "cloud is bad", but we got to stop screaming old techs are no good either.
comment 4y ago · link · parent
- Rien à foutre : "Nothing to cum for"
- Ca m'en touche une sans m'en faire bouger l'autre: "It touches one of my balls without moving the other one". Actually popularize by French President Chirac :)
- Je m'en branle : "I wank about it"
Seems like involving sexual organs is pretty much international.
comment 4y ago · link · parent
Don't get me wrong, I don't think facebook or any big tech companies has any kind of moral upper hand, given they all spy on people, lie, engage in corruption, monopoly abuses, and so on. And they all have weapon dealers in their portfolio, which sell arms to the same people using pegasus.
comment 4y ago · link · parent
So hes, they are.
Now, the question is: would you rather have lived the cold war without a nuclear deterrent in your country?
It's a harder question to answer.
comment 4y ago · link · parent
Formal education is more expensive. A balanced diet is harder to get, and more expensive. Housing is more expensive near your work. But gas as well if you live far from it.
Today's people debt is higher, and you can't easily work one job, raise a family, and afford education plus buy a home.
It was more common in the 70'.
comment 4y ago · link · parent
When I read the Day 7, I saw bruteforcing would lead to bad perfs. Then I remembered that in high school, I learned a formula to calculate the nth term of a sequence without having to process the entire sequence.
I couldn't remember the formula, nor the name of the concept, so I google around until I found some tutorials, and relearned what I was taught as a child: arithmetic sums.
The consumption for a crab can then be calculated in constant time:
def crab_consumption(crab, target):
n = abs(target - crab) - 1
return (n**2 + 3*n + 2) / 2
And the Python solution finishes instantly.Bottom line, I could keep using Python for all problems and benefit from the amazing productivity of it.
I've been using python since 2.4 now, and it's not always fast enough. But it very, very often, is.