Thought for the day...

nsaspook

Joined Aug 27, 2009
16,330
Horse Manure.

C did the right thing by not making strings special. It's just a sequence of bytes that can be streamed using the NUL for delimiters (zero means false) or manipulated just like any other section of memory.

Ken, Dennis, and Brian did the right thing then and it's just a valid now for low-level embedded programming where string manipulation is usually simple. No extra runtime or extra overhead to handle strings unless the programmer wants it.

If you want a 'string' types for fancy symbolic processing, C let's to make one to your hearts delight.
struct string {
const char *text;
size_t len;
};

struct slice {
type *data;
size_t len, cap;
};

or just one of the hundreds of fancy designed string libraries.
https://github.com/antirez/sds

Mark the end of a string with a null character so it's embedded with the data memory, or "remember" where it is in memory with a variable(s).
 
Last edited:

cmartinez

Joined Jan 17, 2007
8,777
Extract from The Conquest of Happiness (1930) by Bertrand Russell:

1742591928486.png

“Whatever we may wish to think, we are creatures of Earth, our life is part of the life of the Earth; and we draw our nourishment from it just as the plants and animals do. The rhythm of Earth life is slow; autumn and winter are as essential to it as spring and summer, and rest is as essential as motion. To the child, even more than to the man, it is necessary to preserve some contact with the ebb and flow of terrestrial life. The human body has been adapted through the ages to this rhythm, and religion has embodied something of it in the festival of Easter.

I have seen a boy of two years old, who had been kept in London, taken out for the first time to walk in green country. The season was winter, and everything was wet and muddy. To the adult eye there was nothing to cause delight, but in the boy there sprang up a strange ecstasy; he kneeled in the wet ground and put his face in the grass, and gave utterance to half-articulate cries of delight. The joy that he was experiencing was primitive, simple and massive. The organic need that was being satisfied is so profound that those in whom it is starved are seldom completely sane.

Many pleasures, of which we may take gambling and drink as a good examples, have in them no element of this contact with Earth. Such pleasures, in the instant when they cease, leave a man feeling dusty and dissatisfied, hungry for he knows not what. Such pleasures bring nothing that can truly be called joy. Those, on the other hand, that bring us into contact with the life of the Earth have something in them profoundly satisfying; when they cease, the happiness that they have brought remains...

The two-year-old boy whom I spoke of a moment ago displayed the most primitive possible form of union with the life of Earth. But in a higher form the same thing is to be found in poetry. What makes Shakespeare’s lyrics supreme is that they are filled with this same joy that made the two-year- old embrace the grass. Consider “Hark, hark, the lark”, or “Come unto these yellow sands”...

Or, again, consider the difference between love and mere sex attraction. Love is an experience in which our whole being is renewed and refreshed as is that of plants by rain after drought. In sex intercourse without love there is nothing of this. When the momentary pleasure is ended, there is fatigue, disgust, and a sense that life is hollow. Love is part of the life of Earth; sex without love is not. The special kind of boredom from which modern urban populations suffer is intimately bound up with their separation from the life of Earth. It makes life hot and dusty and thirsty, like a pilgrimage in the desert. A happy life must be to a great extent a quiet life, for it is only in an atmosphere of quiet that true joy can live.“
 

nsaspook

Joined Aug 27, 2009
16,330
The next few years will create a completely new chapter in the "Peter Principle" Wiki page.

https://en.wikipedia.org/wiki/Peter_principle

The Peter principle is a concept in management developed by Laurence J. Peter which observes that people in a hierarchy tend to rise to "a level of respective incompetence": employees are promoted based on their success in previous jobs until they reach a level at which they are no longer competent, as skills in one job do not necessarily translate to another.[1][2]
 

nsaspook

Joined Aug 27, 2009
16,330
https://www.thestreet.com/technology/microsoft-and-meta-partner-files-chapter-11-bankruptcy
Microsoft and Meta partner files Chapter 11 bankruptcy
Climate finance firm Aspiration Partners (CTN Holdings), previously backed by Microsoft and Meta, filed for Chapter 11 bankruptcy on March 30.

The company seeks to sell its assets to repay debts, which it will do at auction 45 days from the date of the bankruptcy filing.

The move comes in the wake of major controversy within Aspiration. One of the company co-founders and its largest shareholder, Joseph Sanberg, 45, was arrested on March 3 on a federal criminal complaint alleging that he conspired to defraud two investor funds of at least $145 million.
...
The bankruptcy also raises concerns about the voluntary carbon market (VCM), which is currently valued at $933.23 billion. This decentralized market, which allows individuals and organizations to buy and sell carbon credits to offset their greenhouse gas emissions, is of great importance to businesses striving to reach climate action goals.
https://www.justice.gov/usao-cdca/p...rtners-arrested-conspiring-defraud-investment
Joseph Sanberg, Co-Founder of Aspiration Partners, Arrested for Conspiring to Defraud an Investment Fund of at Least $145 Million

1743735702278.png

The 'Green Scam". These are the types of criminal grifters that see Green money as the goal, not a cleaner, better, Green environment.
 
Last edited by a moderator:

nsaspook

Joined Aug 27, 2009
16,330
Degrees and fancy papers are not everything to understanding. If you stack all of them up. Can they fly? The ability to build things is just as important.

 

nsaspook

Joined Aug 27, 2009
16,330
This sort of criminal crap is not helping any cause. How stupid can you be, to pull a stunt like this?

https://nypost.com/2025/03/25/us-ne...x-after-allegedly-planting-noose-at-her-desk/
PA city worker accused of staging ‘hate crime’ hoax after allegedly planting noose at her own desk
During the investigation, every employee who could have placed the noose on the desk was asked to submit their DNA, Capt. Steve Milkovits said.
“Every employee agreed, except for Ms. Brown,” he said during a press conference streamed by Fox 29. “Initially cooperative, Ms. Brown requested that the investigation be discontinued.”

Brown’s DNA was finally obtained via a court order later in January and it matched up with DNA found on the inner knotted portion and outer surface of the noose, he said.
 
Last edited by a moderator:

nsaspook

Joined Aug 27, 2009
16,330
The demand for racism exceeds the supply.
You would think they would have learned a lesson about using the fake noose after the noose around Jussie Smollett's neck hoax.

It's almost as bad as when, in Japan, criminals killed by other criminals are found dead by hanging to make it look like suicide. They know the police don't really care it was murder if the general public was not involved.
 
Top