News for hackers. Stuff that matters.
Re:Some tiny personal programs I've written by somdax on Wednesday March 09, 2022 @11:12AM (#30616104)
I wrote a tiny program to help me buy a puppy :)

The place I wanted to get a puppy from said that they didn't take reservations for the upcoming puppies until they were born. The only way to know when they were born was to check their website and then give them a call.

So the tiny program I wrote kept checking a webpage and whenever it changed content, it would sende a text message "PUPPY ALERT!".

A few hours after I deployed the program, I got message so I thought it had a bug, but no, the puppies had just been born <3

Re:Some tiny personal programs I've written by uxcolumbo on Wednesday March 09, 2022 @04:40PM (#30620373)
For anybody considering getting a dog - please consider adopting rather than buying.

• You’re Saving A Life

Adopting a dog from a shelter not only means that you’re giving him a happy life, but you also free up a spot at the rescue or shelter to save another dog’s life.

• Helps Fight Puppy Mills

Approximately 90% of puppies you can buy in pet stores or online are from puppy mills. Adopting a dog from a shelter takes business away from mills. The more people who adopt, the more puppy mills have a hard time staying in business.

More reasons: https://www.caninejournal.com/adopt-dont-shop/

Re:Some tiny personal programs I've written by vgel on Wednesday March 09, 2022 @05:56PM (#30621081)
Except every dog adoption place around here has requirements like "Must be an experienced dog owner, have a 5 acre yard, own your home, and be able to do 50 push-ups without getting out of breath. Expert sword-swallowers preferred."
Re:Some tiny personal programs I've written by chockchocschoir on Thursday March 10, 2022 @08:56AM (#30626908)
Ok, so the above recommendation doesn't work for you, just ignore it then.

What you are saying doesn't apply everywhere, and I doubt it applies in most places around the world, since shelters usually have way too many dogs and would love to be able to find anyone to care for them before they have to effectively execute them.

Re:Some tiny personal programs I've written by zanellato19 on Thursday March 10, 2022 @11:39AM (#30628881)
I got my current dog from simply showing and saying "I want that one" and then signing a paper saying I won't abuse him.
[dead]
Re:Some tiny personal programs I've written by munificent on Wednesday March 09, 2022 @07:24PM (#30621787)
Also, if you care about the environment, don't have children. And, really, best to off yourself as well. Might want to take down a few less enlightened folks with you when you go.
Re:Some tiny personal programs I've written by arbitrary_name on Wednesday March 09, 2022 @09:21PM (#30622536)
What an odd response. Did the prior post upset you in some way? Not having dogs and children are both reasonable and moral responses to the climate crisis. Suicide and murder are not.
Re:Some tiny personal programs I've written by munificent on Thursday March 10, 2022 @01:52AM (#30623861)
> Did the prior post upset you in some way?

There is a perspective I see sometimes where some people have elevated environmentalism so high in their value system relative to all else that they end up in a moral position where consuming any resources at all which all living things do is somehow morally unconscionable.

My comment sounds like a joke, but it's not far off: https://en.wikipedia.org/wiki/Voluntary_Human_Extinction_Mov...

Reasonable environmentalists think humans have as much right to exist and seek joy as any other living being as long as it's done in a sustainable way. We just want people to, you know, maybe walk to work instead of driving sometimes. Don't litter. Push your government to pass laws against pollution.

There are lobbyists and well-funded organizations pushing against any progress on the environment and the existence of extreme views like "you're a horrible person if you —checks notes—have a fucking dog" makes it too easy for those groups to paint all environmentalists as out of touch kooks. That's the last thing we need.

The parent comment described pet ownership as "is among the biggest environmental stupidity I can think of". Call me crazy, but a couple of meaty snacks for Fido is pretty far down the list after, I don't know, carbon emissions, greenhouse gases, coral bleaching, acid rain, deforestation, fuel oil, fracking, chemical dumping, nuclear weapons, water table draining, etc.

Re:Some tiny personal programs I've written by slightwinder on Thursday March 10, 2022 @04:04AM (#30624799)
> Reasonable environmentalists think humans have as much right to exist

There is a right to exist, but not a right to be created. Saying someone should kill themselves and kill some other along the way, is just not acceptable in a normal discussion.

> Call me crazy, but a couple of meaty snacks for Fido is pretty far down the list after

Those meaty snacks make 20% of worldwide meat-consumption. As a country, pets would be the 60th biggest CO2-emitter in the world. Just because there are bigger culprits, doesn't mean that the smaller ones are excused. Moving pets to more friendly foods would have a huge impact on the world.

Re:Some tiny personal programs I've written by munificent on Thursday March 10, 2022 @01:53PM (#30630859)
> There is a right to exist, but not a right to be created.

But the top-level post is advocating adopting shelter animals and the reply was that keeping pets is bad for the environment. Those shelter animals already exist and if they aren't adopted, they will likely be killed. It's the same thing modulo different species.

Re:Some tiny personal programs I've written by trevcanhuman on Wednesday March 09, 2022 @10:13PM (#30622841)
Why are they not ? This is more of an ethical dilemma. I agree with @ munificient. I could probably list a lot of things that do a lot of bad for the environment.

But making everything hyper-efficient and reducing on EVERYTHING we almost possibly do just takes away our basic freedoms. I'm not saying you're wrong about not having dogs. I have one myself but yeah, you're right. It's like having a child. But I like being able to choose having it or not.

Re:Some tiny personal programs I've written by cgriswald on Wednesday March 09, 2022 @06:49PM (#30621518)
> The idea that we grow food to feed cattle or fish to feed pets is among the biggest environmental stupidity I can think of.

The meats that dogs and cats eat are essentially the waste products from meat production aimed at human consumption. You can certainly find some exceptions (especially on Instragram), but the vast, vast majority of people, even those feeding raw diets to their pets, use either meat not meant for human consumption or offal that most Americans don't consume.

Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @02:17AM (#30623995)
The choice is: "Not rescuing a dog from the pound" vs what? ..."leaving them there to wait a few more weeks/months in a cage before being put to sleep"?

Nah. Have you ever bonded with a dog? Nah. I'll take dogs over people any day.

I'm all for closing puppy mills/farms, neutering etc but I draw the line at "don't rescue a dog that already exists"

Even premium dog kibble is made out of the lowest quality junk meat left over from what people eat. I too am a vegetarian (and I don't have kids, and have never owned a car and gave up flying years ago). But I do not begrudge my two hounds their bag of kibble. I'm fact I'd be willing to bet that my household CO² footprint is lower than yours, even with my two greyhounds.

Re:Some tiny personal programs I've written by froddd on Thursday March 10, 2022 @02:09AM (#30623950)
> The idea that we grow food to feed cattle or fish to feed pets is among the biggest environmental stupidity I can think of.

That is the wildest exaggeration I can think of.

I’m also vegetarian, though I am because I’d rather not kill things when I don’t need to. The environmental benefit is an appreciable side effect, and confirms to me I’ve made the right choice for myself. I like to try to share my views with as many people as I can, but I think expecting everyone to ‘just get it’ is setting yourself up for failure, and ultimately unhelpful in the long run.

Re:Some tiny personal programs I've written by schwartzworld on Thursday March 10, 2022 @08:41AM (#30626759)
If you're adopting a rescue animal, there is no environmental argument. My dog was bred for racing, a cruel and violent industry that throws the dogs away like garbage when they are no longer used. I don't think there's any ethical argument to be made against adopting a dog like that.

If people giving their cats cat food is enough to make you question your commitment to vegetarianism, maybe you're not really that committed? You should do things for yourself, and base their value on the decisions of others

[dead]
Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @02:23AM (#30624058)
As I've said elsewhere, I do not drive, fly, eat meat or have kids. My laptop is a 8 years, my phone is a repairable FP3 which has had several parts replaced over the last 3 years. And yes, I rescued two greyhounds from a cruel fate, and I feed them kibble (reconstituted / recovered meat). I have zero problem with the latter, and still call myself am environmentalist.
Re:Some tiny personal programs I've written by epolanski on Wednesday March 09, 2022 @06:38PM (#30621439)
I have long ago learned that most care about environment as long as it doesn't impact their life and what they like.

Makes people feel uneasy.

Re:Some tiny personal programs I've written by munificent on Wednesday March 09, 2022 @07:25PM (#30621791)
I mean... should people not be able to like things?
Re:Some tiny personal programs I've written by jiscariot on Thursday March 10, 2022 @07:29AM (#30626160)
Spend 50k on a Tesla and you get to enhance you lifestyle, signal your eco-solidarity and to some extent, affluence. Bang for buck, if you really care about the environment, don't have children. There is nothing that comes close to impact.
Re:Some tiny personal programs I've written by lghh on Wednesday March 09, 2022 @11:18PM (#30623172)
Have you considered the environmental impact of using this site? It’s certainly not free.
Re:Some tiny personal programs I've written by stjohnswarts on Thursday March 10, 2022 @02:27AM (#30624105)
that's what I'm thinking if you want to suck all the joy out of life just move to the woods and live off the land, have the least environment impact possible
Re:Some tiny personal programs I've written by hereforphone on Wednesday March 09, 2022 @12:06PM (#30616982)
To those thinking about getting a dog: please consider a shelter first.
Re:Some tiny personal programs I've written by munificent on Wednesday March 09, 2022 @01:01PM (#30617848)
This is very good advice, but I wish it wasn't presented without qualifiers. There are good reasons to get a shelter dog:

- You are potentially saving a dog's life that would otherwise be put down.

- They are often initially cheaper than buying a dog from a breeder.

People rightly focus on the strong moral argument of the first point and they even emphasize the second to imply that it's a good self-interested choice too. But they advocate so strongly that they often omit the real downsides:

- The long-term cost may be higher. There are breeds that are known for significant health problems, but many breeds don't have them and if you buy a puppy of those breeds, their health is closer to being a known quantity. With a shelter dog, you are rolling the dice. There is maybe an argument that hybrid vigor makes shelter mutts statistically more healthy, but that has to be balanced against the facts that (1) the dog may have ended up in the shelter because of health problems or (2) the dog's life pre-shelter may have caused health problems.

- There may be long-term behavioral problems. Dogs in shelters may have been feral, living on the streets, abused, or relinquished because of behavioral problems. If they were feral and weren't potty trained well as a puppy, you may never train them out of marking. Even if the dog was homed, the kind of people who don't spay and neuter their animals (thus leading to puppies that end up in the shelter) are often the kind of people who don't train them well either. There also seems to be a correlation with shelter dogs coming from dog fighting communities. You see a ton of pitbulls, which are wonderful sweethearts when raised right but are not when they aren't. Even non-pit breeds may have been abused as bait dogs.

I love the dog I got from a breeder, and I love my shelter dog (who is snoring next to me as I write this), but the latter was not the pure win that shelter advocates often make it out to be.

The right way to think of it is sort of like getting a used car: it can save you money and be a morally good choice (in the case of a car, less waste and better for the environment), but it's also an unknown quantity where you need to do more due diligence to know what you're getting into, or accept that you are taking a risk with higher variance.

But, unlike with a car, you're signing up for the dog for life.

So, yes, please consider a shelter first. Any future dogs I get will likely be shelter dogs. But consider it cautiously and take your time finding the dog that is right for you.

Re:Some tiny personal programs I've written by Ntrails on Wednesday March 09, 2022 @02:48PM (#30619124)
> There may be long-term behavioral problems..

I know this is right - but I feel obliged to point out that this is true with a new puppy too.

Training dogs properly is work, and inconsistent or incomplete training only gets harder and harder to fix. Plenty of dogs in shelters are there because owners could not rectify their own mistakes. Not from malice, or lack of caring. Simple unknowing incompetence.

Don't be too quick to judge those who give dogs up

Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @02:39AM (#30624217)
I've rescued several greyhounds from the racing industry. One time, after our old greyhound "Pasha" died, we decided to take on a challenge: a greyhound who was rehomed several times, and even abandoned by a shelter (run by a bleeding heart who had no idea how to handle dogs). Lily was a crazy black greyhound who hated all dogs and was afraid of most people. Her name wasn't Lily - she was 6 years old and didn't have a name that she responded to. For the next 2 months we basically had these rules:

* Always have treats in your pocket

* Avoid triggers (dogs) but whenever Lily sees one at a distance, give her a treat

* If she acts aggressively, don't yank the leash or shout, put a treat at her nose and call her name

That's it, in a nutshell. It works for basically any behavioural problem in any dog. (Of course, the breed will have its own personality type - they all do). 6 months later Lily would go nose-to-nose with a rabid chihuahua and remain calm. She was one of the best dogs I've ever had. Still miss the old thing.

She died last year, and we rescued 2 greyhounds (brother/sister). Dorrie is fine but Merlin was, for reasons unknown, afraid of certain types of street light. Which is a massive pain in the ass of you live in a city. We followed the exact same rules, and within a few weeks he was ignoring them. (Still gets spooked at random stuff, like the moon, or light reflected from a kitchen knife onto the ceiling)

Re:Some tiny personal programs I've written by dgb23 on Thursday March 10, 2022 @09:07AM (#30627015)
We have a new dog since a month (podenco mix) that had about 5 previous owners and is 4-5 years old. Lovely but very rough edges. Even a few scars on his nose and head so our guess is that he was at least in one tough fight.

Similarly he has problems with other dogs (not with our other podenco, who he loves). He is insecure, stares, starts to go full aggro if they stare back etc. We try to be as careful and consequent as we can. The good thing is he is a very fast learner, not as stubborn.

We give him praise and treats typically after he did well on an encounter (which we keep at fair distance as well). It wouldn't occur to me to give it to him beforehand.

Your method seems simple and I get why it would work, but it's counterintuitive. Can you elaborate? It is something that worked specifically for her for some reason? Or do you think the simple conditioning thing just works. My intuition would be that he has to show the desired behavior and then gets praise/treats. What do you think?

Re:Some tiny personal programs I've written by bo1024 on Thursday March 10, 2022 @09:33AM (#30627309)
Not the person you asked but I’d guess it has to do with managing the emotions or anxiety that lead to the bad behavior. The way I think of it is I don’t want to teach the dog to overcome negative emotions, I want to help them not have negative emotions in the first place. If possible.
Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @03:57PM (#30632330)
This, exactly. I think that the idea is to teach to dog how to interrupt the negative emotion with something positive. It gets to the point where they interrupt it themselves without your intervention. With Lily, it got to the point where she'd see a small dog or a cat, and she'd look straight up at me (good girl!)

To begin with, practice randomly when there is no trigger. Have a sneaky treat ready and say the dog's name. If it's difficult to begin with (because they don't know their name), try putting the treats into a small plastic container and shaking it, or taking the plastic packaging of their treats. They learn to respond to that noise very quickly. Words are more complex, but if you say their name when you make the noise they'll start responding to that too. Always carry accessible treats.

5 months since we adopted untrained (pretty wild) greyhounds, I can get either of them to sprint to me by calling their name, sit, high-five, lie down... no matter what's going on around them. That response makes it easier to discourage cat-chasing and to reduce their prey drive.

Re:Some tiny personal programs I've written by munificent on Thursday March 10, 2022 @01:37PM (#30630631)
I think you're approaching it from an operant conditioning model where the treat must come after as a consequence of good behavior. But what they describe sounds like reciprocal inhibition:

https://en.wikipedia.org/wiki/Desensitization_(psychology)#R...

The idea is that you can't feel opposing emotions simultaneously. So if you can make the dog feel relaxed (by giving a treat beforehand), it interferes with their ability to feel anxiety.

They aren't earning the treat for choosing not the be anxious. The positive emotional feeling from the treat prevents the anxiety from occurring.

Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @04:06PM (#30632437)
This is also an excellent explanation
Re:Some tiny personal programs I've written by raffraffraff on Thursday March 10, 2022 @04:03PM (#30632404)
With Lily we didn't take the risk of bad behaviour during an encounter. We would just ply her with treats and tell her she was a good girl as we walked by a small yappy dog. I think she started associating those encounters with positive emotions.
Re:Some tiny personal programs I've written by dgb23 on Friday March 11, 2022 @06:17AM (#30638569)
Thank you! I'm not very experienced with dogs (my partner is) and I'm still too much in my head instead of with the dog. I think I might be trying a bit too hard (or rather too often) to train him instead of just managing situations in a nice way if that makes sense.
Re:Some tiny personal programs I've written by munificent on Wednesday March 09, 2022 @04:30PM (#30620253)
I'm not saying this to judge the dogs' original owners. In many cases, the dog was feral and there is no original owner.

The important point is that dogs go through developmental milestones just like people and when you get a dog that has already finished its puppyhood, you have lost the opportunity to be present during those milestones and train the dog. Dogs can learn as adults, of course, but correcting bad behaviors is a lot harder. When you get a younger dog (shelter or not), they are more plastic and easier to train.

Yes, of course, it's on you to actually do that training well, but at least you have the chance. When you buy an adult dog, which is what most shelter dogs are, you're kind of stuck with what you get.

Re:Some tiny personal programs I've written by hbn on Wednesday March 09, 2022 @03:20PM (#30619470)
Right, but when you don't know the dog's breed (i.e. it's 17 types of cross-breeds) nor its history (if it's gonna have PTSD from being abused or fighting for its life in the streets), it's a much safer bet to get a purebred or simple/common cross of 2 breeds where you can Google the general behaviours of those types of dogs, and you know its entire history of life up to that point: being born, then laying around with its siblings and mom
Re:Some tiny personal programs I've written by cgriswald on Wednesday March 09, 2022 @03:58PM (#30619852)
You really want a common cross that has been breed from that same cross for generations. Otherwise what you get is an unpredictable grab bag of behaviors from the original breeds.
Re:Some tiny personal programs I've written by hereforphone on Wednesday March 09, 2022 @01:14PM (#30618007)
Wall of text on point. I got a shelter dog 5~ years ago and it is a relatively difficult breed. I knew nothing about dogs. But I love it and take care of it (because I take ownership of my decisions, particularly where they involve the life of another creature), and it's gotten better over time. I also exercise caution where necessary.

If I had to do it again, I'd get an easier breed.

Re:Some tiny personal programs I've written by cgriswald on Wednesday March 09, 2022 @04:01PM (#30619888)
Anyone getting a shelter dog should pay for a dog behaviorist to either help them select a dog or evaluate the dog they have selected. They should also have a trainer lined up to help them teach the dog how to live with them. This goes 20x for first time dog owners.
Re:Some tiny personal programs I've written by frockington1 on Wednesday March 09, 2022 @01:14PM (#30618000)
I was ineligible to adopt a Daschund from a shelter because my property doesn't have 1 acre of fenced in yard. Other places required 2 veterinarian references (we had 1 reference due to owning a cat). It can be a lot harder than people think to adopt a dog from a shelter
Re:Some tiny personal programs I've written by anthomtb on Wednesday March 09, 2022 @01:40PM (#30618365)
One acre of fenced yard for a dachshund? I’ve seen onerous dog ownership requirements before but never that much land for that small of a canine.
Re:Some tiny personal programs I've written by tshaddox on Wednesday March 09, 2022 @02:45PM (#30619090)
I was recently having a conversation with a married couple I had just met through a mutual friend. They were detailing their recent difficulties trying to get a dog. They were looking at both shelters and breeders, and both had their own difficulties, costs, red tape, waiting periods, etc. The woman was also pregnant with their first child. I asked, and the irony was not lost on them.
Re:Some tiny personal programs I've written by iamricks on Wednesday March 09, 2022 @02:28PM (#30618923)
To adopt my cat during covid i had to do a Facetime interview with the shelter and show them around my place.

It felt like i was applying for a job.

Re:Some tiny personal programs I've written by henryfjordan on Wednesday March 09, 2022 @05:46PM (#30620971)
This really varies. I got this kind of treatment from a group of ladies fostering Shi Tzus. I think they really just wanted an excuse to keep those dogs or give them to new potential old-lady friends.

At the next place I tried they basically threw the dog at me.

Re:Some tiny personal programs I've written by froddd on Thursday March 10, 2022 @02:14AM (#30623982)
This is most excellent advice, and certainly did not state “you should not get a puppy from a reputable breeder”, which seems to be what a lot of the replies to it assume it said.
Re:Some tiny personal programs I've written by gcheong on Wednesday March 09, 2022 @01:19PM (#30618072)
If you're set on a particular breed also consider a rescue that specializes in that breed if there is one.
Re:Some tiny personal programs I've written by lgvld on Wednesday March 09, 2022 @12:13PM (#30617087)
Such a cute story :)
Re:Some tiny personal programs I've written by livinglist on Wednesday March 09, 2022 @12:23PM (#30617278)
I did something similar not long ago.. lol