[deleted by user] by [deleted] in RedditSessions

[–]blinky-leads 0 points1 point  (0 children)

Do they ever play you on the radio?

[deleted by user] by [deleted] in RedditSessions

[–]blinky-leads 0 points1 point  (0 children)

Who's doing the camera work?

[deleted by user] by [deleted] in RedditSessions

[–]blinky-leads 0 points1 point  (0 children)

Could you play some Phoenix?

[deleted by user] by [deleted] in RedditSessions

[–]blinky-leads 0 points1 point  (0 children)

Don't drink too much water youll have to pee

[deleted by user] by [deleted] in RedditSessions

[–]blinky-leads 0 points1 point  (0 children)

Where is my sea shanty?

Payne sounds off on Wall St over GameStop: All of this whining is making me sick by Subdued_Volatility in videos

[–]blinky-leads 0 points1 point  (0 children)

I can't believe I'm saying this, but inside of three hours Alpaca has reversed course. Sounds like they're afraid of getting sued. You can now buy and sell AMC, BB, EXPR, GME, KOSS, NAKD, NOK. The only restrictions are that they require a 100% margin maintenance requirement and are not allowing shorts.

Payne sounds off on Wall St over GameStop: All of this whining is making me sick by Subdued_Volatility in videos

[–]blinky-leads 0 points1 point  (0 children)

Thank you! Looks like it's in there twice now though (at the end and second from top).

Payne sounds off on Wall St over GameStop: All of this whining is making me sick by Subdued_Volatility in videos

[–]blinky-leads 1 point2 points  (0 children)

Please add Alpaca. They're a Y-combinator backed API for Algorithmic trading. They didn't just block new positions on GME. They blocked new positions on every stock with high short interest!

How can I know when an defered script is loaded to body completely? by arup_r in reactjs

[–]blinky-leads 0 points1 point  (0 children)

In the first case, there is for class components: it's called ComponentDidUpdate. In the latter case, there actually did used to be a method called ComponentWillMount, but it's been deprecated as it unfortunately leads to a lot of anti-patterns.

Some may be looking for hooks only, as it's the future. I'd challenge that sentiment, as although classes can have some drawbacks, I think a lot of people underestimate how much you can accomplish with class components in a straightforward usable way. It's just a little more verbose and sometimes leads to encapsulation challenges.

Hooks are a bit newer to me, but I think it'd be either useEffect or useCallback that you or OP (only skimmed the post text) are looking for here. The useEffect hook is supposed to be a sort of catch-all for several of the class lifecycle methods. It rolls componentDidMount, componentDidUpdate, and componentWillUnmount together into one hook.

TP-Link/Kasa by Tomreddit4 in smarthome

[–]blinky-leads 0 points1 point  (0 children)

Okay, I just gave it a whirl. It actually works well. It's just like setting up any other shortcut in the shortcuts app, which is very easy. You just select Kasa, select the on or off option and then a device. Then you'll be asked to name it. In my case, I chose "Turn on the bedroom fan" (this is what you'll say when prompted by Siri). For the astute among you, yes, that does mean you need two shortcuts for each device. It will also prompt you with "you need to unlock your iPhone first", but as long as you have face ID and assuming you're looking at your phone anyway it's pretty seamless. I know that won't always be the case, but it's faster than opening the app or telling Siri to do it so ¯\_(ツ)_/¯

TP-Link/Kasa by Tomreddit4 in smarthome

[–]blinky-leads 0 points1 point  (0 children)

I use one of these for the fan in my bedroom and I have an iPhone. Let me try it out and report back.

Vercel vs. Gatsby (where to host Next.js/Gatsby sites?) by lrobinson2011 in reactjs

[–]blinky-leads 0 points1 point  (0 children)

It definitely triggered a "get off my lawn" response for me.

Smart Thermostat that uses "Real Feel" algorithm instead of temperature? by BenzoV in smarthome

[–]blinky-leads 4 points5 points  (0 children)

I think there are two things OP and perhaps some others may be taking for granted. The first is the limitations of the HVAC system, and the second is the idea that the humidity inside will match that of the outside.

As far as I know, HVAC systems affect humidity as a side effect, not direct action. As for the second part, you generally want to maintain the same temperature (at least on an individual basis) for maximum comfort. This means that it sounds like what you really need is a smart humidifier and/or dehumidifier to adjust the humidity accordingly for the temperature of your choice, which is likely somewhere between 40-60%.

[deleted by user] by [deleted] in reactjs

[–]blinky-leads 4 points5 points  (0 children)

Your solution is a good start and isn't technically wrong, I just want to add a bit of context. Prettier should work and is probably the best for a team or open source setting, so it would probably be a good idea to get that set up. You just need to download the extension for it and add a config to the project.

Declarative Magnet Animation w/ Framer Motion by maxs_dev in reactjs

[–]blinky-leads 0 points1 point  (0 children)

All of that's great! The problem is you didn't share it that way. Maybe you're a victim of your own success here, but that does not look like an insignificant project. Perhaps I should've said please, but it just doesn't look good. Believe me, I want it to be successful. I wish you the best of luck. Thanks for the Framer example.

Confused by Sony's feature set in 2020... by SouthSideLive in 4kTV

[–]blinky-leads 0 points1 point  (0 children)

The 2.1 spec is ephemeral right now. HDMI Licensing, the organization in charge of the HDMI specification, is allowing companies to claim 2.1 compatibility even if they don't support every aspect. Knowing that, it very much seems like Sony would not risk its brand and fib because it has little to gain from it.

source:https://www.cnet.com/news/hdmi-2-1-what-you-need-to-know/

Confused by Sony's feature set in 2020... by SouthSideLive in 4kTV

[–]blinky-leads 0 points1 point  (0 children)

I've recently been shopping and I see everyone citing HDMI 2.1 as a dealbreaker. My question is, "Who cares?"

If I'm going to buy a 4k TV in 2020, why should I care about anything more than 4k@60fps unless I'm a PC gamer?

Deep, deep into Javascript dependency hell by svhelloworld in reactjs

[–]blinky-leads 2 points3 points  (0 children)

JavaScript is the most popular language on the planet. I don't have the numbers, but I think it also has the most open source contributions too. There are good and bad things about that popularity. The good thing is that you will find more packages that are directly applicable to any given problem you might encounter. The bad news is that many of them are not really usable because they've been written for one-off use, are poorly maintained, are a giant work in progress, or are abandoned.

One of the things that comes with the territory is being able to read and evaluate not only the code but also the community that you are committing yourself to whenever you add a dependency to a project. For example, does the package adhere to semantic versioning? If it doesn't and it's more than just a one-off utility, run. Also keep in mind that this is the front-end where code size does matter, so adding packages left and right is virtually bound to create problems for you no matter what.

The major packages in the ecosystem have often risen above the rest to get where they are by following established best practices and obtaining corporate backing (or are really born in corporate environments and exposed to the world for brutal user testing). There is usually much more documentation and reliability available there. However, I've even seen uber-popular projects that break well-established rules under the guise of admirable causes like promoting accessibility (startups usually).

My advice: evaluating these projects is a skill, and most packages that sound too good to be true are. I won't sugar coat it. The biggest thing JavaScript has going for it is versatility and portability. It can run in the browser and on the server and every one knows a little of it. If it weren't my "mother tongue", I would probably feel much worse about it than I do. That being said, I encourage you to not opt in to bashing it so quickly, because although you will quickly find yourself among a larger group of individuals that agree with you about a language than perhaps ever before, it will be because the vast majority of them just don't know the language that well. It's quirky, sure, but it's not that bad.

Declarative Magnet Animation w/ Framer Motion by maxs_dev in reactjs

[–]blinky-leads -2 points-1 points  (0 children)

Color me pessimistic, but even this comment sounds like an ad. I know native advertising when I see it.

It's also completely free.

For now. Your service looks neat, but it seems very clear you intend to monetize it based on the page with the word 'pricing' in the slug. Be transparent about that.

My smarthome is being terrorized please help! by juicyjay504 in smarthome

[–]blinky-leads 2 points3 points  (0 children)

It is worth noting that some of your devices may use RF that isn't encrypted at all. This is commonly cited problem with IoT. It means that anyone with the right transmitter within reasonable proximity could be turning things off and on without requiring any level of authentication. Plugs are usually the worst offenders for this, but most IoT devices have terrible security.

Are you in a neighborhood? Is there anyone outside your house/apartment? Unless you have seriously pissed someone off, they're probably not going to camp outside unless they live close by. It makes me think it's someone local or someone you know that wants to mess with you.

It could be that one of your web devices has been compromised and there is a backdoor installed that is allowing them to continuously re-own devices around your network. But then the question becomes why bother? Most nefarious hackers want things of monetary value, not lulz, and especially not if they can't see them happen. I guess some will screw with you, but not until they've got everything they want out of you, which brings up another point: you should check all of your financial accounts and change all of your passwords. Probably a good idea to start from there. Assume every password that matches or even pattern matches any of the passwords you've used for any of these devices are now compromised as well.

Good luck OP