|
|
One of mine uses the logic that if her stomach isn't full to bursting, she's about to die from starvation and neglect.
It is theorized in certain family circles that this is why her shape is roughly spherical.
Software Zen: delete this;
|
|
|
|
|
Ours is half feral so she still supplements her diet with lizards or she'd be be around as a school bus.
Like the saying goes; "Our cat is not spoiled, she just has us well trained"
"Ten men in the country could buy the world and ten million can’t buy enough to eat." Will Rogers
PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Quote: Our cat is not spoiled, she just has us well trained Same here .
Software Zen: delete this;
|
|
|
|
|
One day, I'll have my own dog or cat. Maybe both.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
For dogs, I can highly recommend adopting retired greyhounds. Once their racing days are over, they get vet-checked, spayed or neutered, and then adopted out. They are very relaxed and easygoing pets. Contrary to what you might think, they don't need a large space. I had two with a largish house on a quarter-acre lot. Greys are very good with other animals and in social settings due to their upbringing in the kennels. If you have a cat, you may need to test the dog with the cat to ensure it reacts well. Greyhounds are sighthounds, which means their prey trigger is visual. Most do not react strongly to cats, but some will.
With cats, please adopt a stray or a shelter animal. If you take in a stray be sure isolate it from other pets until you've had it to the vet and checked for medical issues, especially feline leukemia. FLV is contagious. Shelter cats usually have been vet-checked and spayed or neutered, which is what the adoption fee covers.
Software Zen: delete this;
|
|
|
|
|
Agreed - if I get a dog it will be a rescue mutt. If I go feline, same thing but we'll see.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
The one I like is; Dogs have owners cats have staff.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
I hadn't heard that one but applies.
"Ten men in the country could buy the world and ten million can’t buy enough to eat." Will Rogers
PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|
Cats have clients, who pay for the privilege.
Software Zen: delete this;
|
|
|
|
|
Hi All,
I asked a bit of an odd question on Friday about converting an integer to a string, using CP more as a rubber duck.. got caught with something else that went pop (real smoke!) and could give much attention to it. Came in this morning late (as I had to get the bus replacement, for the bus replacement for the rail replacement, don't ask!) to find the main job for today had been shelved due to non-delivery of parts. So I could get back to programming the widget I am working on and bingo! Now I need to close it... so it's not waiting...
|
|
|
|
|
First, you have to be respectful of the integer's parents and talk to them about conversion. Then you need to take the integer to church every Sunday so they can talk to the stringy pastor. Most importantly, you cannot force it to convert. It has to be authentic and natural. But, if the integer hangs around enough strings, perhaps one day it'll see the light and realize a character representation of numbers that requires encoding is a much better means of representing data than a number that requires interpretation.
Jeremy Falcon
modified 22-Jan-24 16:25pm.
|
|
|
|
|
So that's where I've been going wrong! if integers go to see the stringy pastor, do floats just float around?
|
|
|
|
|
Floats should go too, but they're stubborn so you'd have to double down.
Jeremy Falcon
modified 22-Jan-24 15:42pm.
|
|
|
|
|
And your point is?
Software Zen: delete this;
|
|
|
|
|
One can mantissapate that response.
Jeremy Falcon
|
|
|
|
|
groan
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Better than mansplaining it, I guess.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
string num = "-5498";
int pos = 0;
int result = 0;
int len = num.Length;
bool neg = false;
if(num[0]=='-') { ++pos; neg = true; }
while(pos<len) {
result*=10;
result = (int)(num[pos]-'0');
++pos;
}
if(neg) result = -1 * result;
something like that?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Nothing nearly that bomb proof, itoa(), as it a value from a sensor reality has issues if it's negative! (mind you checking to see if it's negative might be an idea... sensor can kick out negative if calibrates wrongly!)
modified 22-Jan-24 15:45pm.
|
|
|
|
|
To be fair, i can break what i wrote by feeding it non-numeric characters. I would say more quick and dirty than bomb proof. itoa() works, but it doesn't stream, which is why I've written the above code more times than i care to admit!
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
OP says "integer to a string".
Did I misread something in that or your code?
And C# already has that for both directions.
|
|
|
|
|
No, I misread something in the OP.
Int to string is even easier.
Edit: C# can't stream to an arbitrary length integer off a textreader for example. That's why I've had to write the parsing code myself.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Wordle 947 5/6
🟨⬜⬜⬜⬜
⬜⬜🟨⬜🟨
⬜🟨⬜🟨⬜
⬜⬜🟩🟩🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 947 4/6*
🟨⬜⬜⬜🟨
⬜🟨🟨⬜🟨
🟩🟨🟨🟨⬜
🟩🟩🟩🟩🟩
"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!
|
|
|
|