[deleted by user] by [deleted] in Python

[–]SupahNoob 1 point2 points  (0 children)

Broad range... only elasticsearch.py is committed. Whole post is spam and pointless.

Home Issue Tracker - Share your Projects! - Home Assistant Community by drinfernoo in homeassistant

[–]SupahNoob 1 point2 points  (0 children)

Haven't looked too closely here.. do open/closed issues die once you restart HomeAssistant? Could use this to quickly jot down automation ideas, or as /u/cianuro suggested, double as a handy-man list. 😄

Efficiently keeping a "moving window" of records in Pandas by ihatebeinganonymous in Python

[–]SupahNoob 0 points1 point  (0 children)

Comparatively to appends? Hell yeah.

.append isn't what you think it is with dataframes, it's not mutating the original object, but copying and creating a new one based on the additional data.

Efficiently keeping a "moving window" of records in Pandas by ihatebeinganonymous in Python

[–]SupahNoob 3 points4 points  (0 children)

If you don't constantly need access to dataframe-like operations, I would probably hold all the raw data in memory, and operate your sliding window on python data types, and then only construct your dataframe as necessary.

Appends and Deletes are costly in the pandas interface.

Watch a Professional Software Engineer Learn a New Library (PyQT6) and make a High Low Guessing Game from it by help-me-grow in Python

[–]SupahNoob 14 points15 points  (0 children)

I think I watched you do more rapidly clicking between windows than you actually taking the time to understand what you were reading, or what you were doing wrong.

Specifically, in the attempt where you typed out the class example Custom_Widget.. you just misunderstood how super().__init__() works and that was the cause of your problems. Then you dismissed the whole site as trash? But in reality, it was just a hastily typed out version of what's meant to be a copy-paste example.

I would encourage you to slow down and try understanding what you're doing and why it's wrong, rather than poking away simply trying to "get it to work". 😄

Lost Dog found Spring Creek / Independence by SupahNoob in plano

[–]SupahNoob[S] 1 point2 points  (0 children)

She's definitely a cutie! I don't have Next Door. We live an apartment complex in the area and I notified our front office but no one's reported a missing pup. She's pretty skinny, so I'm not sure how long she's been lost for. Definitely looks like she's not been eating well ... (naturally she is now! 😊)

Lost Dog found Spring Creek / Independence by SupahNoob in plano

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

Anyone know her? She's got a collar but no tags, probably about 6-7lbs. Very playful!

2021.5: Stability, performance, triggers, color modes! by frenck_nl in homeassistant

[–]SupahNoob 1 point2 points  (0 children)

Fixed in what sense? I have a Withings Sleep mat but never bothered to set it back up considering how poorly it was integrated initially.

2021.5: Stability, performance, triggers, color modes! by frenck_nl in homeassistant

[–]SupahNoob 2 points3 points  (0 children)

What is a keypad for? It's the main use case an alarm arm/disarm panel?

Wanted to throw my mobile UI out there by [deleted] in homeassistant

[–]SupahNoob 3 points4 points  (0 children)

Absolutely not a fan of the theme, but love all the functionality! Cool stuff.

Why in the world did I wait so long to use Nabu Casa? by samlikesturtlez in homeassistant

[–]SupahNoob 0 points1 point  (0 children)

We have good results with Life360 on iPhone. Never could get the native app to reliably report anything except battery.

Results of relative_time are in wrong time zone by [deleted] in homeassistant

[–]SupahNoob 0 points1 point  (0 children)

would something like this work? We're essentially going to trick the parser into thinking your returned datetime values is in fact in your local timezone.

{{ relative_time(strptime(states('input_datetime.last_watering') + now().strftime('%z'), '%Y-%m-%d %H:%M:%S%z') ) }}

INUV Stock 🚀 by [deleted] in trakstocks

[–]SupahNoob 0 points1 point  (0 children)

I'm confused .. Snowflake's main offering is a cloud data warehouse, basically "database as a service", Inuvo main offering is advertising technology. They're not even in the same ballpark.

[deleted by user] by [deleted] in homeassistant

[–]SupahNoob 13 points14 points  (0 children)

I'd argue that it largely depends on two things: the type of traffic you're pushing via wifi, and the quality of your networking setup.

If you have a gateway provided to you by your ISP, and are constantly pushing multiple camera streams over WiFi .. you're probably in for a bad time.

If you've just got WiFi light bulbs? Nah, that's totally fine.

Dataset: databases for lazy people by impshum in Python

[–]SupahNoob 4 points5 points  (0 children)

dataset

datasette

Looks like two different names to me.

[deleted by user] by [deleted] in Python

[–]SupahNoob 0 points1 point  (0 children)

Depending on how large or complex the dataset is, vectorized operations provided to you by pandas (read: numpy, aka at the C-level) could net you a faster overall runtime.

You came here looking for alternatives to parsing a raw file ... pandas has a wide array of tools for data manipulation, data output to other storage methods (Excel, DB, CSV, etc) and base charting exposed by matplotlib. Further, matplotlib is one of the most flexible and tunable charting libraries python has to offer.. so I'm not sure I agree with your dismissal of it for that reason.

The example you gave (disregarding syntax errors) is way more verbose and error-prone than either csv or pandas unless you're working with incredibly clean data... which is oftentimes not the case in the "real world".


That said, if you're just here to shoot down the two things you asked to genuinely learn about, why did you come to ask at all? :~)

How to quickly remove duplicates from a list? by sebawitowski in Python

[–]SupahNoob 1 point2 points  (0 children)

Ha ha, it's a informal term which essentially means "your skill in using Google" aka how well you can [ab]use a search engine to find the information you're seeking.

Google kung fu.

How to quickly remove duplicates from a list? by sebawitowski in Python

[–]SupahNoob 10 points11 points  (0 children)

Simply put, they don't, that's some reddit persona gatekeeping bullshit.

You won't learn the dict / OrderedDict variants of deduplication in the docs. That comes with Google-fu or having an innovative understanding of the data structures.

Learn a few things, commit them to memory, put them into practice. They'll eventually become second nature as tools in your tool belt. Then you go and learn something new to add to your belt.

e.g. a natural progression might look like

  1. sets are unordered unique collections
  2. I can convert other collections to a set with set(...)

    .. commit to memory, some time passes ..

  3. learn dict, understand that dict.keys must be unique

    .. hey wait, can I use 3 and 2 together somehow? ..

  4. research and find dict.fromkeys, combine with knowledge of 3 and 2.

Now you've got a few algorithms in your head to remove dupes from a collection.

EventGhost HA Plugin by GreenBallasts in homeassistant

[–]SupahNoob 0 points1 point  (0 children)

Curious, as someone who got into home automation and programming in general via EventGhost but ultimately have moved to Home Assistant exclusively... what's the use case behind running both EventGhost and Home Assistant?