The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
Generally speaking, those one to two hour press conferences make me sick. We have a saying, "Boasting stinks". I have had a need to air out my living room every night the last week or two, even though I usually turn off halfway.
Tonight I decided to sit through it to the end. So that it wouldn't be at total waste of time, I switched my wireless keyboard off, so that I could first brush it off on the surface with a stiff brush. Then, section by section I flipped the keytops of - I can't do then all at once; then it would take the whole night to get them all back in the right place.
If you haven't done it before, you'd be shocked by the amount of hairs, breadcrumbs, and soils that have collected under the keytops! Especially if you've got a dog or a cat in your household. (I haven't had a dog for fifteen years - after that, my keyboard cleaning has been reduced from once every six months to once every three years.)
In an abstract sense, there is a connection between the sound from the press conference and what my stiff brush removed from the keyboard. After I got all the dirt out, the operation of my keyboard has become much smoother, much more reliable. I like it a lot more that way, after brushing out the dirt.
It's a sad day. The little breadboard Zwölf is only a few weeks old, but it's days are already numbered. Elves are immortal, so that's only an inconvenience. Without any work to do, I spent the whole day drawing schematics, programming a PIC microcontroller and drawing up a circuit board. Once I have that PIC running and tested, the BreadZwölf will be scraped off the breadboard and be reborn as the ProtoZwölf[^].
How do you like the picture of that pointy eared supermodel that I found stole in the internet?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
Normally, I don't post links to "paid for" games / books bundles, but ... this time 100% of the payment goes to "go to support organizations responding to COVID-19. For example, delivering protective gear to safeguard healthcare workers and providing medical care to infected patients."
The games aren't new and shiny, and nor are the books, but you may find enough to keep you amused while on lockdown - especially if it lasts as long as they are suggesting ...
Or you could just search for "covid-19 how to help" + a location, and give money or assistance where you know it's really needed, rather than to whomever this American company decides to give your money.
Besides, all the games I (know that I) want out of that lot, I've already got on GoG, and I can't read, so I don't want books.
I wanna be a eunuchs developer! Pass me a bread knife!
I run vs in a VM with the windows firewall blocking all outgoing traffic except a few selected port rules.
No nags; I'll only let the kids out to play when I've got time to watch and know it safe.
... and to be fair vs ain't the only daily 'whaddaboutme' package.
reminds me of the old saying: Children Aussies (whinge way more, and that accent!) should be seen, not heard.
Then: It is my honest opinion that firmware should not use dynamic allocation of memory at all. It has a well defined job to do; the memory requirements for all tasks should be possible to calculate in advance. That is, the code and data should be structured so that it is possible to calculate all memory needs in advance, and to set off that memory at compile time.
There are reasons why Fortran (with no dynamic memory allocation, and for many versions without a stack - no recursion possible) held up for so long. One of the reasons was that is was reliable wrt. memory allocation: It would never crash due to a failing new() or a too deep recursion.
Ada, made for military robustness, did allow recursion, but only if a static code analysis could calculate the deepest nesting level and stack requirement.
CHILL, created for embedded code in telephone switches, required that you marked functions that are to be called recursively. I don't think it made any difference in generated machine code; it was just a way for the compiler to raise a red flag: Here you make a recursion to a function that is not marked as RECURSIVE. Look out - maybe you will run into stack issues.
Embedded code is executed in an environment where you don't have the same facilities as for desktop applications. Often, less resources are available; you can't just let the stack grow to fill those 16 GBytes of RAM. So, the programmer cannot be allowed the same freedom as a standard application developer. Far more restrictive use of dynamic memory and stack are among the limitations an embedded developer should accept.
I know well that this is certainly always reality in embedded code.
Great post. Those are some great points.
and I guess the thing is that I have this piece of nifty hardware that feels like an FM radio receiver or something that just works all the time.
You know what I mean...you never had to reboot your FM radio receiver. There were no chips that got full. It "just worked"!
Anyways, I have this hardware that feels like hardware but it is actually software inside a brittle plastic box and it is, of course, the software that is broken.
It's always software down at the bottom ruining everything.
Also, I know the FM radio receiver was analog and wasn't a computer and that's why it "just worked". Which makes me wonder...Instead of Quantum Computing maybe we should switch back to Analog Computers so they'll be dependable.
We don't need no stinking software!
Allocating most memory during initialization, based on configuration parameters, is good practice in servers.
I worked on telephone switches and never wrote anything recursive. But I did write some interesting code in which function #1 invoked function #2, which in turn invoked function #1.
A former boss wrote the code for call waiting. When one of the calls needed something done on the other call, it sent a message. After several releases the code stumbled into an obscure path where the two calls just kept exchanging messages, creating an overload situation. Although there was code to guard against one call getting into an infinite loop, this hadn't been anticipated. When the code was fixed, defensive code was also added to guard against any one call using an unbecoming percentage of the CPU time.
Most routers are based on Linux. The Linux weenies claim Linux gets great uptime.
Very good point. I run Ubuntu on my home rig and haven't booted into Windows for a couple of weeks now either -- since WFH. But, you are right...it may be Linux's fault down at the bottom.
I'll have to see if I can tell what my generic cable modem (from Spectrum) runs.
A couple of days later the quarantine began in Spain, some people started to go out to the balconies at 20:00h (local) to applaud for the people working in sanitary, security and logistic systems that are keeping the land running and taking care of the people during these times. It went viral pretty fast and now a big part of the land does it everyday to give moral support to all of them.
Now a singer has merged a little home studio (all has been done respeting the #stayathome rules) material with many of the clips of real averge Joes and Janes out there circulating the social media and some material handed over by a cultural association.
All what she gets from the clicks (over 1,3 million in less than a day, so far) in youtube is supposed (I really hope she won't "betray" it) to be donated to the Red Cross. And on top, I think it is a nice melodic song.
The messages being shown in the pictures / videos (in order of appearance):
#1 (big paper) - Thanks to all of you
#2 (granny) - We'll get out of this together, don't stop fighting (I think she was the first elder patient getting over corona and allowed to go back home)
#3 (hospital group 1) - We have heard you /// clapping in the balconies /// and it has been very touching /// we all are in this TOGETHER
#4 (hospital group 2) - Today, the claps... /// go for... /// the security forces of the state!
#5 (hospital group 3) - A /// chant /// for /// life!!!
#6 (Credits) - To all our heroes (m / w)... for our elders, that were young and stood up and shielded our homes with love and wisdom
Me again: TO ALL PEOPLE FIGHTING FOR AND HELPING OTHERS. KUDOS AND A BIG THANK YOU
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
On the topic of the Spanish language (because I know that that's what you were really talking about), the missus put a foreign-language movie on, the other night, while I was busy assembling snacks (it's a tough job, but someone has to do it), and she asked me if she should pause the movie until I'd finished.
"Don't be daft," I replied. "I speak Italian -- although the one woman sounds Spanish."
I don't know what regional accent most of the actors were using, but I could have sworn they were speaking a southern Italian dialect, and I only had to refer to the subtitles when one or two of the characters were speaking.
I wanna be a eunuchs developer! Pass me a bread knife!
OK, answer me this:
Trying to renew my vehicle plates on line. Enter all the gorp, my credit card data and hit submit. See title for results.
This is followed by an email thanking me for renewing and saying that my CC info is being forwarded to their CC vendor.
The question: What will happen next?
a. My credit card will be charged and I will be mailed my plates.
b. My credit card will be charged but no plates will be mailed.
c. I will never hear from them again.
d. Something else.
BTW: do you suppose they have forseen errors?
Sigh. Mother told me there would be days like this, she didn't tell me there would be so many.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
Last Visit: 31-Mar-20 19:33 Last Update: 31-Mar-20 19:33