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 6y ago · link · parent

Receiving money as a freelancer can be challenging, but given how dangerous it is to give FB more power, I think it's worth spending a bit of time in finding alternatives.

Personally I use https://stripe.com/.

Last customer was in India, and it was hard for him to wire me money. Stripe made it a breeze, I created an invoice, enter his mail, and he just paid using his credit card.

The fees are a bit high, so the question is more "how much inconvenience do I think is worth this moral stand?".

And there is no universal answer to this question, since moral is arbitrary, and I don't accept the inconvenience in many other avenues.

Good luck

comment 6y ago · link · parent

I wish.

But for what we know, they didn't have direct access, they made requests to the companies.

Wikipedia states "PRISM collects stored internet communications based on demands made to internet companies".

https://en.wikipedia.org/wiki/PRISM_(surveillance_program)#E...

CNET says:

"Sources challenge reports alleging National Security Agency is 'tapping directly into the central servers.' Instead, they say, the spy agency is obtaining orders under process created by Congress."

https://www.cnet.com/news/no-evidence-of-nsas-direct-access-...

Which makes sense.

Why pay the cost for a huge and complicated setup when a cheap piece of paper can do the job, and the gag order make it as secret?

comment 6y ago · link · parent

As long as zoom is closed source from end to end, they could pretend to use quantum entanglement over IP, for all I care.

I still use it, don't get me wrong. My threat model for the use case that I make of zoom does not need strong encryption, only being script kiddies proof.

comment 6y ago · link · parent

ublock or ublock origin?

comment 6y ago · link · parent

WhatsApp is controlled by Facebook, and they already centralize a gigantic amount of personnal data. Their moral track record has also been consistently bad. They were part of the PRISM program. They meddle with politics. They are rich and powerful.

The chinese WeChat example shown us how convenient a popular chat app coupled with a payment system can be, and how quickly an entire society can adopt it.

I think this feature should be considered as a threat to users, and be avoided, while actively and strongly, but respectfully, advising people around us to do the same.

comment 6y ago · link · parent

Exactly. Basically, let's not expect any GAFAM to have our interest in mind and just do it ourself.

comment 6y ago · link · parent

On android, one can use facebook in the firefox mobile browser instead of the app. Firefox mobile does allow ublock origin, and it's trivial to add a home shortcut to any web app.

This has other advantages: facebook web site can't ask for a 1000 permissions or to be updated regularly, won't run in the background eating memory and battery and this will limit the disk space it can eat.

You're paying the price with a less integrated UI, yet given the pros, it may be worth it.

comment 6y ago · link · parent

Wouldn't it be simpler to just use ublock origin?

comment 6y ago · link · parent

If you write for your hobby, the writing is your hobby, not the pen.

Nobody said, "I can't wait to click on githubs buttons!"

But they might have said, "I can't wait to make this code available".

comment 6y ago · link · parent

Good, let the people using github for fun leave.

Github is not meant to be fun, it's meant to be like a pen.

A good pen can be enjoyable. Beautiful. You can feel attachement to it.

But it is not built to be played with. By that I mean it's not its primary function, even if a creative or bored mind can use it for that.

A good pen fullfills its intended purpose when it disapears from your mind while you use it, yielding to the writting that should be the center of your attention.

I don't think about github when I code. I just use it.

comment 6y ago · link · parent

Size

comment 6y ago · link · parent

Never tried it

comment 6y ago · link · parent

SJCL is 6.4KB gzipped, libsodium is 188KB.

If one plans to use the lib in the browser, it makes a huge difference.

Also, I'm not a crypto expert by any mean, but SJCL seems higher level, and hence, easier to use. Not to mention harder to missuse.

Projects like https://0bin.net have been using it for 7 years, with 500000 visitors in the last few months, so I'd say it's pretty battle tested too.

Not nearly has much as libsodium, of course. But I wouldn't discard SJCL, I think it has a place.

comment 6y ago · link · parent

It's way lower level, and easier to missuse.

comment 6y ago · link · parent

Same.

At first I though "this must be a joke", but then I though, "well, it can make sense in some contexts".

And now I don't know if I'm fool or not.

comment 6y ago · link · parent

This is a great exercice.

I found that it works great in programming too: take a very beautifully crafted code, remove some bits, and ask the students to fill in the blanks, or wrap something around it.

The students then gain many things out of it:

- they practice reading someone else code

- they have to understand a problem to solve from context

- they get to craft a solution to that problem

- they don't have to start "from scratch", which is easy to do for simple problems, but hard as soon has you dwelve into advanced concepts

Above all, like the soviet education exercice, one untold benefit is that they get to see the beautiful code itself. It's not only inspiring and driving their efforts, it builds taste.

comment 6y ago · link · parent

My brother loved this text and offered it to me in the form of a book.

Reading it, I was disapointed. It paints the support from Rike, an experienced and depressed poet, to a young and depressed one.

While I can perceive the moral aid it can bring, I didn't benefit from it. It's full of never desmontrated general advices with no given first step to be applied, and often, not even practical applications.

He is a poet after all, and those lines are not meant to be a self help book.

So sure, they are well written, the author can relate to the human condition, and the particular suffering of the receiver. But no matter how you present it, hearing "follow your passion", "don't listen to critics" and "that's life" once more is not adding anything to my current state of understanding of the world.

One could argue that it's more of an aesthetic exercice, and if you look at it that way, it's a success. The prose is touching and clear.

You could also say that the content will speak more to people struggling with the process of art, or just being true to yourself. However, the author offers descriptions, weak analysis, and no solutions. He admits himself that he is still stuck at the same level.

If one craves empathy, or to ear that somebody shared the same hardship, I imagine it can be therapeuthic.

But I learned little from those letters, didn't enjoy it, and didn't benefit their from support.

Maybe you will. It's a short book, so it's not a big time sink.

If you read the first paragraphs and don't feel like carring on, you don't need to go further. It doesn't transform into something different on the way.

comment 6y ago · link · parent

Does hupper can restart on changes to non python files ?

comment 6y ago · link · parent

I heard this, but I can't find any study measuring the differences seriously.

Fasting has various effect, not all of them are linked to the sugar consumption.

comment 6y ago · link · parent

You still need to test the abstraction.

comment 6y ago · link · parent

Yes but unfortunatly, you have to compile it for many systems yourself. And if you want to use it from Python (not from the command line), you need binding.

On the other hand, it's probably more performant than watchdog if you have a lot of files and need to fallback on manual watching.

Plus, if you are not a Python person, you may not want to use pip.

comment 6y ago · link · parent

Because of the nature of Python, using importlib.reload() is going to lead to terrible bugs at some point. Use importlib.reload() only in the shell, for convenience.

If you want autoreload for dev (e.g: like django dev server), better restart the entire process.

There is a 7 years old project that can help you with that called watchdog:

    https://pythonhosted.org/watchdog/
It's a library that uses the fastest way available (e.g: inotify,kqueue...) to react to file changes (you can filter by types such as create, delete, write, etc) and triggers whatever code you want, passing you the metadata.

If you just want something very simple, you don't have to code, you can install watchdog with its optional watchmedo dependancy:

    pip install watchdog[watchmedo]
It will give you the watchmedo command, that lets you do something like this:

    watchmedo shell-command --patterns="*.py" --recursive \
    --command='python your_script_to_rerun.py' .

comment 6y ago · link · parent

> This may be ok to start with, though black coffee by itself has the ability to kill hunger without these crutches.

I always wonderered how much ok it really was. Dreaking coffee will activate some digistive processes, and make the liver work. So you are not exactly fasting.

I never could find a study comparing with, and without coffee.

comment 6y ago · link · parent

Good because it's rarely a good idea to use it nowaday. Python has much better alternatives with join, __format__ and f-strings.

comment 6y ago · link · parent

Individually, each entity composing the group we call "press", may find itself in geopardy.

But as a whole, it's working.

They are just copying each others, because they can see what works and what doesn't. But because everything has a context, and luck is involved, they will be many dying anyway.

comment 6y ago · link · parent

I don't think they are.

I think they are optimizing for survival.

Serious news is expensive, and at this point, a niche market. Few people would consume it (or even be capable of doing so), even fewer are ready to pay the real price of it.

So they did the next best thing: they changed to please the market in a way that makes money. Grabbing a lot of attention, as cheaply as possible, so that you can sell it to the highest bidder.

You think it is self destroying, but only if you see it as from the point of view of a body that should inform people. But as a group that needs to survive, it's a working strategy. Certainly easier to implement than finding a novel way to survive doing the right thing.

Infortunaly, this will lead to suffering for the entire society. But that's the way our economical system work. It assumes that the markets balances things out. Unfortunatly, the common good is not something most individuals prioritize, or even conceptualize, when buying things. Often, they actually can't, because their survival depend on more pressing day-to-day matters.

4737.

Pyflow: A Python package manager inspired by rust and JavaScript(github.com ↗)

2 points · by BiteCode_dev · 6y ago · discuss

comment 6y ago · link · parent

No, and they are very insecure. It's real problem.

But they are not meant to be connected to a home base.

I don't carry them with me all the time, while they are measuring and streaming metrics about my life.

comment 6y ago · link · parent

Aren't the key words, "most likely"?

comment 6y ago · link · parent

I don't, but I already have to. They run my life, and in France, my health. And they are not for profit.

I'm all for putting a better system in place, but meanwhile, I'd rather have my health data being in state own institutions that I feed from time to time with my visits, than having an always on monitor that streams directly my life to a for profit company.

But to be honest, I don't want to stream my life to any entity.

1
157158159
184