|
Ok, that's cool. Can see where someone mis-Types as signed without thinking. I doubt my ability to stomach the long haul doing c/c++. So. Much. Stuff. Does endian-ness ever matter to you?
|
|
|
|
|
jochance wrote: Does endian-ness ever matter to you? No, normally the compiler handles endian for you. The only time you have to check endian is when you're doing network programming, and then you just call a function to convert to network-endian from native endian or vice versa.
Shouldn't even be using signed pointers, that's normally handled for you too... it was me messing up the code.
jochance wrote: So. Much. Stuff. Yea, C++ got a lot, but if you learn it, you learn 80% of all the other languages. I'd recommend C# as a first language or for regular use, though.
|
|
|
|
|
I cut teeth in GW/QuickBasic and just rode RAD from there.
Lots of "dabbling" though.
|
|
|
|
|
Down memory lane we go ...
In my case we were using a GIS-system that included encryption of username and password in connection strings for SQL Server ...
They had implemented a variant of Ceasar chipher of their own design ... Unfortunately 'n' and 'm' ended up being replaced with a zero-width-character in Windows Latin1 ...
and having that at the end of the connection string turned out to be a rather bad idea as the full string seldom was marked in copy-n-paste
Why 'n'/'m' was such a bad choice? Their default username was "admin" and the password was "Solen" (besides, passwords was case-ignorant).
and ... their system assumed that "USER ID" and "PASSWORD" allways was encrypted ...
and up we pops again
|
|
|
|
|
"Caesar cipher"
How appropriate the timing of recollection with the ides of March upon us.
It really is the little things.
|
|
|
|
|
I don't know if it was me or VS. I wrote some tree building and balancing code. Got it working perfectly, so I wanted to increase the tree depth be increasing the input (random names). When I got to about ~60 (~60 depths of recursions, don't recall the actual number but using 60 as close enough) the program just terminated. No error codes, no warnings about stack size limits, nothing. I thought I created an error with my input, so retried again. Same result. Then light bulb came on about stack sizes, but there was no documented limits of VS that could find at the time (about 20 years ago). When I reduced the use of the stack (less tree depth) until it worked perfectly again. It was probably just memory limit. I was using 64 bit mode (I think).
Go figure.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
“If you’ve done five impossible things this morning, why not round it off with breakfast at Milliways, the restaurant at the end of the universe!”
|
|
|
|
|
|
I had a similar-ish problem with some code on an Arduino Nano. Everything looked good until it called one particular library function - then went barmy. Changing to a Nano Every (lots more flash and RAM) fixed it, with no other changes.
|
|
|
|
|
honey the codewitch wrote: I fixed this completely blind. That's happened to me more than once. I have a Heisen-bug that seems intractible. Every attempt at debugging it moves or changes it in some way. I give up, refactor/rework, and presto - figure out the original problem. The decision at that point is whether to fix the original code or use the reworked version.
Software Zen: delete this;
|
|
|
|
|
Read all about it![^]Quote: The international plumbing community, as represented by the Council, has a vital role in promoting the link between good quality plumbing, health, environmental sustainability and, increasingly, economic prosperity. I think one could replace the starting of that sentence with most anything, like "cleaning my cat's litterbox has a vital role in promoting the link between good quality litter, health, environmental sustainability and, increasingly, economic prosperity.
Well, if you are a plumber or know someone that is, please help them celebrate this much needed and not often respected job!
|
|
|
|
|
"The Beer Brewers' Union ... health, environmental sustainability and, increasingly, economic prosperity."
|
|
|
|
|
I completely replumbed our house so I guess it's a celebrate me day. YAY!
|
|
|
|
|
Had it been out of plumb?
|
|
|
|
|
Nothing in this house was plumb, level or square. A bit of a challenge.
Old house, built early 60s in a very rural town of 770.
|
|
|
|
|
Did you ever read "—And He Built a Crooked House—", by Robert Heinlein?
Your place sounds nice, if one is a "country mouse". I, a "city mouse", wouldn't want to live in a town much smaller than 20,000 people. There would be too few local amenities for my liking.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: Did you ever read "—And He Built a Crooked House—", by Robert Heinlein?
No haven't read that one.
We moved here about 3 years ago from a city of 2.5M and I absolutely hated it. When I moved there 35 years ago there were about 200K and that was manageable. But since then New Yorkers fleeing from their home state have moved into Florida and brought big city problems with them.
The town we live in is small, 2 blinking lights. We live on the edge of town and it's quiet, peaceful and very few issues. Everything you do has trade offs; we traded peace and quiet for amenities that are within walking distance.
|
|
|
|
|
Mike Hankey wrote: Old house, built early 60s in a very rural town of 770. Heh - my house was built in 1910. I still have the old outhouse structure that "dumps" into the creek below, before a bathroom was added later on. And nothing is level. I don't even have doors on the rooms upstairs because the frames are so tweaked. But then again, my mortgage is $650 a month, a third of what rentals go for around here.
|
|
|
|
|
I've worked on houses that bad and they are a PITA to do any kind of work on.
Here we have houses that were built during the depression that they call scrap houses. They were built from what was left over after building other houses. You talk about a house that's not level, square or plumb, they have studs that are different sizes that are spliced together. Door jambs that some are standard size and some were fabricated using 2x6s. This is just the tip of the ice burg. I helped a friend of mine that is a flipper (a guy that buys houses, fixes them then resells) fix one up and swore that I would never do another. Funny story about my friend he originally hired me because he had to do some work under a house and he was terrified of spiders. We ended up doing quite a few houses together.
|
|
|
|
|
I think you've just articulated how ChatGPT works.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Software Zen: delete this;
|
|
|
|
|
Reminds me of this, all too true, joke:
The joke: How would you write "I changed a light bulb" on your resume?
Single-handedly managed the successful upgrade and deployment of new environmental illumination system with zero cost overruns and zero safety incidents.
Jeremy Falcon
|
|
|
|
|
Anyone can make these proclamations; there's no governing body at any national or international level to accept/reject/manage any such proposal.
How very a-propos.
|
|
|
|
|
|
They manage magnificent eye protectors (11)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|