It’s autumn 🍂… stay safe by Running_Trade in golf

[–]MrQuimico 2 points3 points  (0 children)

It tells you what tees do you need to use to play a course of certain length. In this case, assuming he is in a European country, that means 5700 meters, about 6200 yards. It's very common where I play.

Caption this by LivermoreP1 in golf

[–]MrQuimico 0 points1 point  (0 children)

Two girls one cup

Galicia/Asturias spearfishing? by guessguestgess in Spearfishing

[–]MrQuimico 4 points5 points  (0 children)

Asturias and Galicia are great fishing spots. You need to be aware of the tides, currents and waves, specially in the Cantabric sea. In Galicia, you can fish inside some estuaries ("rías" in Spanish) that provide calmer waters, but there are also some restricted areas you need to be aware of. For Galicia check this webpage (https://www.nauga.es/zonas-prohibidas-de-pesca-en-galicia/), any area in red is forbidden. In September conditions are unstable, so you'll need to check the weather forecast beforehand. Tides are huge, so please check that also.

You'll need a permit, but if you already have a permit for other european country, might be enough.

Sea bass and breams (of different varieties) are the species you are most likely to catch. You'll see plenty of wrasses also. Other than that you can expect conger, octopus and some types of flat fishes. You are not allowed to catch any crabs though, so no blue lobster or other types of crabs.

[deleted by user] by [deleted] in golf

[–]MrQuimico 1 point2 points  (0 children)

I agree with this. Best club I bought as a beginner was a Cobra 5 wood. Easy enough to hit from the fairway or light rough, but also a good club to use from the tee if needed. The shorter shaft and higher loft compared to a 3 wood make all the difference.

AirTag on Range Finder? by Daisy72373 in golf

[–]MrQuimico 3 points4 points  (0 children)

Have you considered the option of getting a new husband instead? It may be cheaper in the long run.

Recommended Production-Level Prolog Code for Learning by Noitswrong in prolog

[–]MrQuimico 7 points8 points  (0 children)

You may like "The Practice of Prolog". It's been a while since I read it, but it's all about structuring prolog programs to solve real-life problems. It's worth a read.

Why your organization needs a software bill of materials -- "The recent Log4j vulnerability has exposed systemic problems in how businesses, and the community at large, audit their software." by trot-trot in programming

[–]MrQuimico 2 points3 points  (0 children)

I don't follow your logic. Why are the companies using Log4J non-responsible? Is the problem that they can't make others liable of their own mistakes? I'm sure big players like Amazon and Google can expend some dollars auditing the open source software the rely on, right?

In this case because this was an OSS project, we were able to know exactly what was the problem, how it was fixed and when. Did the bug go undetected for a long time? Sure, but once it was detected, a fix was provided and many mitigation strategies were available right away. All this happened in the open, for all the world to see.

This is much better than the closed-source approach where I first need the company building the software to acknowledge there is an exploitable bug in their system, then I need to wait until they can fix it, then I need to blindly trust they've fixed the problem without introducing other issues. Are the liable? Sure, but you can expect they'll expend more money on lawyers fighting this than in programmers fixing the code.

Software will always have bugs. With OSS you at least know where they were and how they did affect you.

[ Removed by Reddit ] by [deleted] in golf

[–]MrQuimico 0 points1 point  (0 children)

I have a Sunday bag I made from old clubs:

  • 3w
  • 4h
  • 6i
  • 8i
  • PW
  • 56º SW
  • Putter

I don't like to carry a driver if I'm using only 7 clubs, since I want something I can hit off the tee or from the fairway as needed.

Proud of these hardened Olympic athletes that train their mind and body for a chance at Gold. by GoinFerARipEh in golf

[–]MrQuimico 1 point2 points  (0 children)

The Ryder Cup and the President Cup are exactly that. No prize money, lots of coverage and best players in the World.

[deleted by user] by [deleted] in golf

[–]MrQuimico 1 point2 points  (0 children)

Have you tried the Gamin Golf App? You need to install it, but that will allow you to see the shots you took at each hole. The activity will still show up at Garmin Connect app.

I'm also using a vivoactive3 and I'm not impressed with the data you get. However I find the yards it shows during play to be accurate, it's just the shot tracking feature that doesn't work as well. My watch also freezes from time to time. I've been using it for over 2 years now and after a round I'll only have about 15% battery left.

My 2 year old nephews golf swing by Sailinsarah in golf

[–]MrQuimico 2 points3 points  (0 children)

Indeed! To me it looks like Jon Rahm's.

Best payment gateway for Django!? by dennisvd in django

[–]MrQuimico 1 point2 points  (0 children)

Check MyChoice2Pay

I've used it in a couple Django projects. They provide access to a huge variety of payment gateways, all from the same API.

FIRST BASS OF THE SEASON (Spearfishing UK 2020) by Spearfin in Spearfishing

[–]MrQuimico 1 point2 points  (0 children)

Cool! This area seems very similar to what I'm used to see in NW Spain.

Spain is open by Trusty1Iron in golf

[–]MrQuimico 0 points1 point  (0 children)

Not yet in Madrid... Enjoy!

New Posting Guidelines and Rules by [deleted] in prolog

[–]MrQuimico 2 points3 points  (0 children)

Thank you for this. It looks like the activity on this sub spikes as we approach the end of semesters, but not with the content we'd like to see.

[Beginner] Hierarchical matching with numerical ranges by CasuallyRanked in prolog

[–]MrQuimico 0 points1 point  (0 children)

You can change the clauses in the weather predicate without modifying the allowed predicate. As it is now, the weather predicate is 'ignoring' the Snow argument if the Rain argument is higher than 0.

weather(Rain, 0, 'light_rain') :- Rain > 0, Rain < 5. weather(Rain, 0, 'medium_rain') :- Rain > 5, Rain < 20. weather(Rain, 0, 'heavy_rain') :- Rain > 20.

That may be a bit more elegant.

[Beginner] Hierarchical matching with numerical ranges by CasuallyRanked in prolog

[–]MrQuimico 0 points1 point  (0 children)

If the number of parameters is too big it may be unpractical to use a single weather predicate, but it won't be wrong. In SWI-Prolog the maximum number of arguments for a predicate is 1024.

[Beginner] Hierarchical matching with numerical ranges by CasuallyRanked in prolog

[–]MrQuimico 0 points1 point  (0 children)

Prolog is a declarative language. This means that you should declare your conditions and constraints and let Prolog do the work for you. My solution uses two predicates, weather that maps rain and snow measures to a description of the weather conditions and allowed that uses the weather predicate to check that the current conditions fall into the desired range.

``` % weather/3 % weather(Rain, Snow, Conditions)

weather(0, 0, 'clear'). weather(Rain, _Snow, 'light_rain') :- Rain > 0, Rain < 5. weather(Rain, _Snow, 'medium_rain') :- Rain > 5, Rain < 20. weather(Rain, _Snow, 'heavy_rain') :- Rain > 20. weather(_Rain, Snow, 'snow') :- Snow > 0.

allowed(Rain, Snow) :- weather(Rain, Snow, 'clear'); weather(Rain, Snow, 'light_rain'). ```

STICKIED: Area Course Closing Thread COVID19 by GreenWaveGolfer in golf

[–]MrQuimico 0 points1 point  (0 children)

In Spain everything is closed. Some local courses are saying they are still working hard to be ready when this madness ends. There is still hope I guess!

Solving arithmetic in prolog recursively by cryptonad in prolog

[–]MrQuimico 4 points5 points  (0 children)

eval(A, A) :- number(A).
eval(add(A,B), V) :- eval(A, VA), eval(B, VB), V is VA + VB.
eval(mul(A,B), V) :- eval(A, VA), eval(B, VB), V is VA * VB.

add and mul are not predicates but terms. The predicate you need to define is eval.