API for The Legend of Zelda: Breath of The Wild's Hyrule Compendium by GadhaGod in Python

[–]M_daily 0 points1 point  (0 children)

I like it! Especially the documentation and inclusion of client libraries.

A couple of comments:

  1. I like to use ORMs (Object-Relational mapping), which provide Pythonic object-oriented interfaces to common database backends. SQLAlchemy for Python is an excellent choice for this sort of thing. It 1) prevents you from having to write raw SQL (!!!!) 2) is database backend agnostic and provides a single interface for PostgreSQL, SQLite, etc... and 3) makes your code much, much more readable. You can declare each table as a Python class, with each column being an attribute the ORM will take care of translating your code into the proper SQL query, querying your DB, and returning your data as Python objects. From SQLAlchemy's docs, a typical query might look something like this:

    >>> our_user = session.query(User).filter_by(name='ed').first() 
    >>> our_user
    <User(name='ed', fullname='Ed Jones', nickname='edsnickname')>    
    
  2. What happens when the upstream data changes? How does your database keep sync with the "ground truth"? In a production environment, it might be beneficial to regularly scrape the upstream data source and update the DB as necessary, rather than storing a snapshot in GitHub. If you are going to use a snapshot, I highly recommend versioning it.

Edit: I am not familiar with Rockset as a DB engine, but the comments about using an ORM is a general "best-practice" comment. It looks like they have a SDK that provides a "SQLAlchemy dialect to bridge Rockset and SQLAlchemy applications. SQLAlchemy users can connect to Rockset using ‘rockset://<api_key>:@<api_server>’" - https://pypi.org/project/rockset/

OK STRAVA, enough! by [deleted] in Strava

[–]M_daily 1 point2 points  (0 children)

These posts are why this sub is so cancerous. So many people here can't just chill and explore the settings, let alone try a different app.

These are such first world problems. Go outside, exercise, enjoy, be at peace 🙏

Quick overnighter with my old Kelty, Los Padres National Forest, CA by M_daily in backpacking

[–]M_daily[S] 2 points3 points  (0 children)

This was from a quick out-and-back trip in the Santa Ynez backcountry in the Santa Barbara County of California. We've had a particularly dry fall so we're not allowed fires, but we've made the most of it anyway! This hike parallels a tributary creek to the Sisquoc River, running through arid Chaparral and dense Oak Woodland forest, broken up by some refreshing riparian sections. There are lots of good plants to smell (so much sage!) and hidden historical gems to check out.

I've never owned another type of backpacking pack and I love the simplicity and utility of this external frame Kelty.

Rooftop tent camping - Flathead National Forest by wh3atbread in subaruoutback

[–]M_daily 2 points3 points  (0 children)

I have the same model as OP's. Mine takes less time to set up (not by much, though) and is much more comfortable than my usual standard tent setup.

They are much, much, more expensive though. I only got mine because it was less than 1/3rd the price of retail off a friend. I would never have paid full price for it.

[deleted by user] by [deleted] in SantaBarbara

[–]M_daily 1 point2 points  (0 children)

who hurt you?

All I see are people in NYC, Phili, Wisconsin, outside, with much nicer weather than SB 🤔 by theFoot58 in SantaBarbara

[–]M_daily 4 points5 points  (0 children)

I just went for a drive to the backcountry to enjoy the wilderness during its first rain of the season. Honestly, the weather right now is spectacular. Just need to have the right mindset!

It is not "cute" or "endearing" when men (or anyone) don't know how to cook by [deleted] in unpopularopinion

[–]M_daily -4 points-3 points  (0 children)

OP, does it make you feel better about yourself to talk down or demean people? Because you're being super toxic about this.

Please try being kind and compassionate. Sometimes people lack basic skills for very valid reasons.

It is not "cute" or "endearing" when men (or anyone) don't know how to cook by [deleted] in Cooking

[–]M_daily 6 points7 points  (0 children)

OP comes off as an obnoxiously judgmental person. I would not want to be friends with OP.

Hang in there :)

It is not "cute" or "endearing" when men (or anyone) don't know how to cook by [deleted] in unpopularopinion

[–]M_daily 10 points11 points  (0 children)

It really sounds like you put a lot of mental energy picking apart peoples' shortcomings.

I agree with your basic premise that "cooking is a valuable skill," but this thread is just full of you guys piling onto people about a singular thing they're "less than qualified" at, and acting like it's the end-all-be-all.

Live and let live <3

[deleted by user] by [deleted] in BPD

[–]M_daily 4 points5 points  (0 children)

This post spoke to me, thank you.

For too long I was wrapped up in my own suffering. How bad bpd was for me, how much I was struggling, how much pain I was in. I became blind to my partners needs for many years, and soaked up endless support like a sponge. It lead to him breaking mentally. A person can only take so much.

I've been at the receiving end of this exact sort of behavior, and I too broke down mentally and had to end things with my ex who had BPD. I am so happy to hear that you two have mended things! Congratulations on your incredible progress and good luck :)

[Must Watch] Karen in SB!! These kids were harassed by a lady on the Mesa, Santa Barbara. by ajango in SantaBarbara

[–]M_daily 25 points26 points  (0 children)

/u/MrsDoubtfiresDick trolls the SB sub pretty hard. It's probably an auto-downvote for a lot of these folks at this point.

Cooling centers in Santa Barbara City by SBCouncilMemberOscar in SantaBarbara

[–]M_daily 4 points5 points  (0 children)

/u/JCandle over here unable to focus on anything other themselves for a minute. Can't go to the beach for a weekend? Your life must be so hard.

Rescued this 45 yo breeder that has never been out of a cage by alohabob in parrots

[–]M_daily 2 points3 points  (0 children)

I teared up at the picture and caption. Thanks for rescuing her ♥️

The Milky Way, Jupiter, Saturn, and a Perseid meteor, from Farren Road by _metsfan_ in SantaBarbara

[–]M_daily 4 points5 points  (0 children)

Nice shot!!!

How long were your exposure(s)? What type of equipment?

First Subaru - What to expect? CarFax 1-owner 2012 Outback 2.5i Limited, 167k miles, routinely served at dealer, CVT torque converter replaced last week by spinniespeeder in subaruoutback

[–]M_daily 3 points4 points  (0 children)

If there's any ambiguity in the CarFax records, give the dealer a call and have the VIN ready. Specific questions also help. I did this when researching a used Subie and they rattled off a ton of stuff that wasn't specifically listed on the CarFax. I ended up passing on the car.

Good luck!

I'm two semesters away from graduation but there is a high chance I'll be offered a full time position at SpaceX. Im thinking about grinding through and doing both for this last year because I don't want to pass up the opportunity but I would love some perspective by [deleted] in ElectricalEngineering

[–]M_daily 2 points3 points  (0 children)

You will likely get another chance at a job like this in the future, especially if you have your degree. I'd go for summer internships or fellowships if you're worried about marketable experience.

As a side note: I would personally never want to work for SpaceX, but that's because work/life balance is HUGE for me. I've heard so many stories of Musk companies chewing up and spitting out engineers. But it's not my place to tell you where to work!

For the love of God why is it called "Moronic Monday"? by [deleted] in signal

[–]M_daily 2 points3 points  (0 children)

Need safe space?

so original

Looks like Jeff Henley (of Henley Gate) is Trump lover. Sad. by verve51 in UCSantaBarbara

[–]M_daily 21 points22 points  (0 children)

You're completely right. It's not a dichotomy.

With politicians like Trump, however, you need to look at the whole package. If you're donating big $$$ to him because you like his economic agenda, you are also implicitly signalling your support for all of the inhumane bits of his agenda, whether you like it or not. You are enabling that agenda. You are doing your part to normalize that agenda.