News for hackers. Stuff that matters.

mharig

Re:MtCellEdit – Lightweight Spreadsheet Program on Saturday September 28, 2024 @09:23AM (#41680085)
For the non-GUI guys there is visidata.

https://www.visidata.org/

> Can’t we just store some data on disk and read / write from it when we need to? (Spoiler: no.)

I disagree. SQLite does a good job in uniting the 2 worlds: complex SQL queries with excellent data consistency and simple file(s). Although SQLite is for sure not the one size fits all solution.

Re:10% of Cubans have left Cuba in the last year on Tuesday July 23, 2024 @07:08AM (#41044747)
Why do you live in Germany?
Re:10% of Cubans have left Cuba in the last year on Tuesday July 23, 2024 @07:07AM (#41044741)
> your comments are objectively xenophobic.

No. Different from most apes, I have a clear picture of the positive and negative (and neutral) sides of the ethnics I know. Undisturbed by mental illnesses like racism and especially political correctness. Facts cannot be xenophobic.

> Germans specifically

IIRC, in WW2 around 60 Million died. That is less than the around 100 Million "murdered" Indians. But in less time, so the death rate is higher. Choose your metrics.

Hint: TODO lists are just stripped down Kanban boards.

Maybe someone will find e.g. clikan more useful.

Re:10% of Cubans have left Cuba in the last year on Sunday July 21, 2024 @11:52AM (#41025947)
> Funnily enough I've never been anywhere where our trashy British tourists go (why would I?). So actually I don't know what they're like, but I've heard very bad things. I've also heard even worse things about the Dutch, though.

You are calling me xenophobic and second the point I made? Are you mentally ill?

And btw, never heard anything worse or even comparable about the Dutch.

And btw 2, never about Scots, either.

> Well whoever they are that you're talking about, they are dead,

I guess you know very well who they are. The people killed in India by the British colonialism, according to the study of an US american institute. And yes, other monkeys are murderish assholes, too. Especially when the uniformism of the nation state mindset kicks in.

And you should discuss your argument that the dead cannot give support with the Jews.

> That's what living and working in Germany and falling in love with a Turkish German taught me.

I doubt your objectivism.

Re:10% of Cubans have left Cuba in the last year on Sunday July 21, 2024 @11:13AM (#41025696)
> and the mix is always better.

Mixing races or cultures is like mixing many colours: at the beginning you get interesting patterns, then a boring uniform brown.

Re:10% of Cubans have left Cuba in the last year on Sunday July 21, 2024 @09:23AM (#41024900)
Continental Europeans have very bad experiences with British tourists. I really like Brits, but just if they stay on their Islands. And I am quite sure I get support from around a 100 Million dead guys from India.

Turks are a very big community (I guess more than 20 Million counting all generations) in Germany with a lot of not well adapted folk.

In my 2500 souls german home village live people from more than 40 nations. I never heard negative comments about them from one of the natives. But the shithole you live in of course may vary.

We Butter the Bread with Butter
Re: on Wednesday July 17, 2024 @08:07AM (#40984954)
Search for a partner who kicks you in the ass.

And if your memory problems do not have genetic or other physiological causes, do physical exercises and try diets. If a keto-like diet does not work, try a carbo rich one.

I do not like that Python does not allow tz-naive time to be interpreted as UTC, which does not need a timezone. So you have to waste space by using a tz-aware format or you have to add the TZ +00 manually in some way.
Re:ZeroMQ: High-Performance Concurrency Framework on Monday July 15, 2024 @03:59PM (#40970992)
If an app needs a DB anyway, has ZeroMQ then advantages over a DB based MQ, like PostgreSQL LISTEN/NOTIFY or SQLite with update_hook?

Did anybody compare throughput/latency for these approaches?

Re:We need visual programming. No, not like that on Monday July 15, 2024 @08:47AM (#40967380)
My 2 €cents from a limited and outdated experience with visual programming tools:

1. Screens have limited size and resolution, and the limits get hit rather fast. The problem can be pushed away by zooming, by maybe an order of magnitude, but for a long living project growing in size and complexity, it will not be enough.

2. In text, near everything is just a grep (fzf,...) away. With the power of regex, if needed. Do the no-code folks nowadays implement a equally powerful search functionality? I had very bad experience with this.

3. Debugging: although the limited possibilities of plugging graphical items together is like an enhanced strict type safety, I'm sure that errors somehow happen. How is the debugging implemented in the visual tools?

4. To store/restore the visual model, the tool developer needs to develop a binary/textual/SQL/... representation and unique source of truth for it. I think the step from that to a good textual DSL is smaller than to a GUI. And the user can more or less effortless use all the powerful tools already developed for shells, IDEs, editors, ....

So in my opinion most of the visual programming things are wasted time and wasted effort.

Re:Why don't we know how antidepressants work yet? on Saturday July 13, 2024 @03:10AM (#40952376)
In my body, a Benzodiazepine cessation causes a drop of the blood pressure to around 70/30 for a few days. Kept me in bed.
Re:The Nine Ways: On the Enneagram on Tuesday July 09, 2024 @09:01AM (#40915597)
Just talking about the types:

I found them more helpful than the Big Five. But there is definitively missing "Type 0: Ape: I follow".

And I do not think that a person fits just one type. They are more, like the Big Five, traits with a spectrum.

I made a CLI password manager with Python.

It uses PBKDF2HMAC and Fernet to encrypt a SQLite DB.

Re:Oldest cave art found showing humans and pig on Friday July 05, 2024 @08:13AM (#40882022)
"Something seems to have happened around 50,000 years ago, shortly after which all other species of human such as Neanderthals and the so-called Hobbit died out."

Isn't the current estimate, that Neanderhals and Danisovans died out around 45000 years ago? Or does he refer only to the region of the cave? And the Homo floresiensis died out 10000 years ago (or 100 years ago, or he still exists, if some Anthropologists are right).

And what I do not understand about the cave archeology: nobody who lives as a nomadic hunter & gatherer lives in a cave. The climate inside is near unbearable if you are accustomed to free air. Maybe one can stay a little time in the mouth of a cave. When the weather conditions outside are as ugly as they can get. Or if the population density got so bad, that an easy to defend place is necessary. The findings IMO are more probable a result of population dynamics than brain development.

Re:SCIM: Ncurses based, Vim-like spreadsheet on Friday July 05, 2024 @07:36AM (#40881872)
You forgot one thing: data entry. It is far more convenient to type tabular data in a spreadsheet app than in a REPL. I use it for simple SQL data, too. As Python coder I use visidata. Provides also fast and convenient aggregations etc.

And, btw, if you search for "distraction free writing",you will find that even some non-coders use vim.

Re:I'm Terrified of Old People on Sunday June 30, 2024 @06:06PM (#40840772)
Thanks for your kind words. Could you please show me the sentence or paragraph in the guidelines where 'post like this' is mentioned? Or must I assume that because this is an anglosaxon site, automatically the political correctness illness takes effect?
Re:I'm Terrified of Old People on Sunday June 30, 2024 @06:55AM (#40836448)
I live now for a decade in a country where traffic lights are just a non-binding recommendation, and I never got almost killed or even hurt for that. You just have to drive slowly and watch and communicate with the other traffic participants. In some cases, morons are made, not born.
Re:Everything I Knew About Stretching Was Wrong on Friday June 28, 2024 @12:40PM (#40822364)
Adam Frater titles it with 'mobility'. I love his 'Improve your Calisthenics in 5 Minutes' vid.
Re:TeamViewer Security Breach on Friday June 28, 2024 @10:13AM (#40820786)
Anywhere Windows binary? My mother and her dog cannot build from source.

But I appreciate your work.

Re:Everything I Knew About Stretching Was Wrong on Friday June 28, 2024 @09:55AM (#40820638)
2 YT channels I like:

The stayflexy guy and Adam Frater. The former even cites scientific studies.

Re:120ms to 30ms: Python to Rust on Friday June 28, 2024 @09:35AM (#40820492)
1. Pickling is, as already mentioned by a cocommenter, slow. Do not use it.

2. Do not use loops, use itertools. (Python 3.12 got a nice 'batched' function, btw.)

3. Preallocate memory, where possible.

4. multiprocessing.shared_memory may help.

5. Something like cython may help.

6. Combination of multiprocessing with asyncio (or multithreading) may help.

7. memmap file access might help.

You see, you have a lot of options before you need to learn another language.

Re:Is Everything BS? on Friday June 28, 2024 @07:59AM (#40819752)
You didn't get the gist of the article: many constraints are artificial or plain mental. And you have to think outside the worn trousers to determine where that is the case.
Re:Is Everything BS? on Friday June 28, 2024 @07:50AM (#40819700)
Being a father?
A cow delivers around 9000 L milk a year. 100 USD/a/cow will raise the production costs for around a little above 1 USDcent/L. Negligible.
Steering the blood flow has more usages. E.g. if you eat, the blood flow in the (peripheral) muscles is attenuated and in the stomac intensified. And it is possible to restrict the blood flow to wounded areas, which is beneficial in a fight. But I was not able to do this every time I got a wound. Maybe too few practice.
One should not forget that cartilage has no arteria/vene system to provide nutrients to the cells and to rid them of the metabolic garbage. This is only done by passive diffusion, driven by compression/decompression of the e.g. discs. And cartilage has no nerves. So the body has to make up pain if it thinks something is wrong, based on some at least to me atm not known parameters in the tissue around the cartilage.

The best medicine for backpain is physical activity, especially with respect to the mentioned compression/decompression. The human body is made for walking, so that is one good treatment. But in some cases it may not be enough, and more special physical exercises may be needed. If you understand German, the YT vids of Liebscher-Bracht helped me a lot. But general flexibility training should in most cases be enough.

With mental exercises, one may get rid of the pain, and that might be enough in cases where it is a mere misinterpretation ,or wrong fixation of the interpretation, of the cartilage status. But e.g. a disc bulge is definitely a pathological condition. One that in many many cases can be healed with rather simple physical exercises.

A good muscle 'armor' around the joints can prevent the pathology and often attenuate the severeness of done damage.

So please exercise. Being dependent on medics and health systems adds to the decapacitation which is todate en vogue. Sapere aude!

Older »