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

I think it's very nice, and should be the default behavior. Ergonomics of GNU tooling is lacking to say the least. That's why we love fdfind and ripgrep and love find/grep way less.

I would use it if it were the default behavior, but the problem is already solved by the "moreutils" package, which I install on all my machines. This lets you do:

    vidir filename
or

    vidir directory # default to .
And it will open your $EDITOR with one file name per line. You edit it in the comfort of your favorite editor, and it batch renames for you, or rename the single file for the first case.

Note that if you use vscode, $EDITOR should be "code -w", not just "code".

comment 6y ago · link · parent

The question here is, "is is CCP propaganda, and how much of it?"

comment 6y ago · link · parent

Wondering if it's not a way to prevent editing detection software to work. Anybody knows something about this?

comment 6y ago · link · parent

So basically, our best chance now is not to cure them, but to help them survive until their immune system fight it off?

comment 6y ago · link · parent

Just out of curiosity, how long ago was it?

Malaria nowadays is very easy to prevent and treat with a course of atovaquone/proguanil, which have low side effect on the short run.

I want to know if doctors are still prescribing chloroquine despite of that. I know they do sometimes in the army.

comment 6y ago · link · parent

Sure.

I just mention it because most people in the world have a job that make them less money than my friends web services.

And I'm assuming most startups, unless heavily founded, may have to think about this trade off as well.

The cost in infra can easily be a factor of ten.

comment 6y ago · link · parent

As usual, it depends. I know some friends that have profitable websites because they run on a private server and they handcrafted everything. If they had to use cloud services for serving stuff, host the db, provide search and cache things, it would cost too much and they couldn't make a living out of it.

comment 6y ago · link · parent

Took me 20 seconds to install twint, and start scraping.

Took me 20 minutes to install twitter-dump, and despite a successful twitter-dump auth, I end up with 'Request exception Forbidden {"errors":[{"code":200,"message":"Forbidden."}]}'.

Not going to spend time to fix that, I'll use the dirty solution that works.

comment 6y ago · link · parent

Voices can be transformed to all look the same and hide gender, age and origin. Remains vocabulary, education, etc.

comment 6y ago · link · parent

I wonder if only seeing the facts, and not seeing the faces or names of the parties would make for fairer rulings in public courts.

Plus, using remote techs would make organizing the whole thing way easier, and safer for the victim.

comment 6y ago · link · parent

If you are a python beginner, don't try to do everything at once, it's too hard.

Start with black. It's very easy to setup, and the reward is great.

comment 6y ago · link · parent

autokey

it's a linux clone of autohotkey, meaning it lets you script your mouse/keyboard/windows using python. It can trigger the scripts using a keyboard shortcuts or by watching keywords in regular text. I use it to kill emai/phone/date quickly, or to automate combinations of actions in GUI that don't have macros.

youtube-dl

I travel a lot, with plenty of downtime. Downloading conferences from many video sites, or music, turns those otherwise wasted hours into learning experience, relaxation, etc.

dynalist

Favorite life organization app, that I use for shopping, restaurant idea, todo, etc. Basically half of my GTD is in there. It's much more productive than any system I tried before, and I tried a lot of them.

thunderbird

I have 20 email addresses, and this varies depending of my clients. Web base email are not up to the task, and I need offline search/archive capabilities. Thunderbird is the only mature cross platform app that does that correctly.

pulsesms

I have a rich social life, and this means organizing groups of people. Of course, they all have their different chat apps, social account, preferences. Some are using an old 3310. Some don't want to be on facebook, etc. SMS is the only things that works with everybody, but typing it on the phone is a pain. I have an android phone, so no imessage, but no google account, so no android message. Pulsms allows me to write message from my computer comfortably.

fdfind and ripgrep

I search stuff all the time, and since they are way faster type (because easier to remember), faster to execute, and have an output that is faster to read, cumulatively it saves a lot of time.

tilix

I don't use a tiling windows manager or tmux-like software, so I rely on tilix to provide a terminal a the press of a key, and to provide tabs and split screens.

black

Automatic formatting for python code. No parameters.

bitwarden

Or lastpass, or 1password. Any password manager really. But bitwarden is the latest I'm using. I'd also say "tetripin" for otp on the command line but it would not really make it up to 100 hours.

meld

It compares files or directory. It's not the best out there, but it works everywhere, so I don't have to wonder. I just install meld. I'd say reggexer for search and replace as well, but again, not saving 100 hours.

--

Of course I could say GNU/Linux, python, firefox and vscode, but it's a bit obvious. Probably the most productive softwares I use though.

comment 6y ago · link · parent

I like toml but the syntaxe for an array of objects is terrible.

comment 6y ago · link · parent

If you need a linter for you conf file, something is wrong.

comment 6y ago · link · parent

Not the point. No unix api does.

comment 6y ago · link · parent

Not the point.

Check other comments about ps on unix.

comment 6y ago · link · parent

Keyword is "crossplatform"

comment 6y ago · link · parent

Same, unless you are on windows only, ps has no benefit.

The selling point of ps is the piping of objects. Mac and linux api don't output those.

comment 6y ago · link · parent

If you need crossplatform scripting and will install a runtime, why go powershell or bash ? Something like ruby or python seems more adpated.

comment 6y ago · link · parent

Make sense.

comment 6y ago · link · parent

I hear exactly the same about Python.

Some complains it's moving too fast.

Some that's it's an old language that's stuck in the past.

The balance between stability and keeping up with modernity is hard to reach, and people will never be happy.

comment 6y ago · link · parent

Small packages means more packages, and more packages compounds the dependency graph which:

- makes dependency resolution harder

- means more points of failure

- makes auditing difficult

- makes install time longer

- leads to harder maintenance and upgrade

This also causes heterogeneity in the mass of your dependencies:

- it splits the resources for documentation, testing, tutorial, etc

- it ensures very weak integration between various building blocks, forcing everyone to rebuild glue code again and again

- it makes discovering the proper solution to your problem harder as you must chose a combination of dependencies instead of one

- it makes contributing to the project harder, especially to junior profiles, and increases the price of on-boarding

- eventually, it leads to a culture that pushes the "libs versus frameworks" so far you never get a decent framework for anything. This is why there is no JS equivalent to RoR or Django.

There is, of course, a balance to reach. You don't want a lib that does everything.

comment 6y ago · link · parent

To quote the article:

"Luckily, most of them are using the same version of lodash, which just needs one lodash to install inside node_modules. This is often not the case with real-world production projects. Sometimes, different packages require different versions of other packages."

Npm lets you install several versions of the same package. This has the advantage of saving the dev the testing of their lib with a wide range of dependencies versions: it almost always works. Unfortunately, that means most devs just choose one version and call it a day. They build libs like one would build a project: as you were alone in the world.

comment 6y ago · link · parent

Yes and no.

Because of the small stdlib, you need dependancies, sure.

But why this idea that each dependency must be very small, forcing you to install a hundreds childs, which, themselves, will install a hundred until the pyramid of files start to turn node_modules into a stress test?

comment 6y ago · link · parent

Which is weird. I would have expected have the leftpad scandal that the community would have found a balance.

To me, culture is a feature, and despite using JS a lot since it has a monopoly on the browser, the community culture never clicked with me.

I often feel like they are reinventing the wheel, not learning from other techs solving the same problems, under and over-engineering, regularly guilty of the XKCD 927 syndrom.

Few projects taste integrated, working together, clean. The stacks looked like hacked together. Agreement on best practices and conventions are timidly showing up. It also seems popular tools are just starting to stabilize and the breaking modifications rhythm to slow down. At least more than anywhere else I worked.

There is no way I can be objective saying this, but anyone with the same feeling?

comment 6y ago · link · parent

Separating the IO from the rest of the program is always a good practice, that we keep rediscovering.

E.G:

- UI in React are trying to be just rendering functions with one input and one output. Even more so with hooks.

- in python, there is a new trend of providing "Sans I/O" (https://sans-io.readthedocs.io/), and async/await are not just keywords, but a generic protocol created to delegate I/O to something from outside your code.

It's interesting to see that on very old systems, even the hardware was organized that way.

comment 6y ago · link · parent

It's been envisioned already:

https://www.destroyallsoftware.com/talks/the-birth-and-death...

The talk is hilarious, and very much on point.

comment 6y ago · link · parent

This is a false dichotomy and assumes there are only two choices:

- not handling the pandemic

- tracking the population

You can get information about people assembling in other ways:

- helicopters

- intel gathering

- cops and army patrolling dressed as civilian

- create groups of citizen in town responsible to patrolling

And probably many I don't know about.

Then you add to that: keeping to communicate with the public, testing a lot, providing masks, etc.

The fact you are using this argument shows how much powerful the culture about "the end justify the mean" and "trusts the authority to deal with this" is.

I remember the first time I saw Jack Bauer on TV decapitating a terrorist in 24 to get an information. I though, "wow, they are really creating a new normal here".

That's what it is about: creating a new normal. And pretending there is no other choice, while nobody is trying to provide any.

comment 6y ago · link · parent

The book Propaganda is good, but you can feel the naive vision of capitalism, corporation and power in general. The author seems to genuinely believe the invisible hand will balance things out, that people won't abuse their power and that ethics were a stronger motivator than money in the system.

comment 6y ago · link · parent

No, it was already terrible before.

But it was labelled as terrible. I was for the secret service.

Now it's going to be culturally accepted, and in the hand regular administrators.

This is on order or magnitude worse, for something that was awful.

1
168169170
184