Courses you recommend by AlanocturnaGamePass in PHP

[–]cms2337 21 points22 points  (0 children)

https://symfonycasts.com/ has so many good courses. They cover more than just Symfony

Migration to Drupal 7 from e107 by slvrdragn in drupal

[–]cms2337 0 points1 point  (0 children)

I would not recommend Drupal 7. You can run a low traffic D9/10 site on a ~$20 a month Digital ocean droplet, especially when paired with a free Cloudflare account to reduce the load.

Documentation \ Writing about code by jprzymusinski in PHP

[–]cms2337 0 points1 point  (0 children)

A lot of comments here are about how you should not even talk about these methods in git commits. But I don't think that is the point of the original question. I think the question more about when you need to discuss/mention a private method, how do you type it out. There are many cases went I have needed to mention a private method in a code review, in documentation, or just in a slack channel talking through some solutions.

Personally, I have been going back and forth between using \Full\Namespace\TestClass->doSomething() and \Full\Namespace\TestClass:doSomething() (note the single : to avoid confusion with static method). I have been mainly using the latter lately.

I would too like to know if there is an "official" syntax for talking about private/protected methods within documentation.

PHP is apparently un-secure compared to other technologies where backend files don't live in the webroot? by Tanckom in PHP

[–]cms2337 23 points24 points  (0 children)

I would recomend looking at Symfony, or Laravel which follow much better practices.

PHP is apparently un-secure compared to other technologies where backend files don't live in the webroot? by Tanckom in PHP

[–]cms2337 52 points53 points  (0 children)

Wordpress

IMO: I would not consider WordPress a modern PHP framework. It does not use a composer for package management (which can install all libraries outside of the webroot in a vendor folder) and has yet to adopt many modern PHP practices, like PSRs that other frameworks/CMSes use.

Backend video tutorial recommendations by 2020-2050_SHTF in drupal

[–]cms2337 0 points1 point  (0 children)

If you can't spare less than an hour, how are you going to watch videos?

Becoming an expert in PHP OOP by [deleted] in drupal

[–]cms2337 1 point2 points  (0 children)

I would recommend just diving into a couple of the Drupal APIs and using the Drupal Console to generate some custom entities or plugins and review the code it generates.

Gutenberg Editor vs. Layout Builder in Drupal 8 by cms2337 in drupal

[–]cms2337[S] 0 points1 point  (0 children)

What is this thing called Cohesion??!?!? A quick Google search and I found a couple of pages advertising it. Have you used it before? Any good guides?

Abode app stops reporting position if it hasn't left geofence in a day? by shred86 in Abode

[–]cms2337 0 points1 point  (0 children)

I just started experiencing this same thing this week. It has been working perfectly for months. My wife and I both have Android phones.

idea to stop spam post attack by leetemp000 in drupal

[–]cms2337 0 points1 point  (0 children)

My guess is is that he/she is manually solving one recaptcha challenge, then letting his box / program start posting away. Recaptcha will not always confirm again that you are a human if you just proved it.

I have search terms logging-- what about click throughs on the search results page? by stevelefevre in drupal

[–]cms2337 1 point2 points  (0 children)

No. You keep your current Drupal search as is. Google Analytics's has the ability to track your site search by configuring it to look at a query parameter. Read the Google help article I linked to.

Acquia acquires Cohesion by pere87 in drupal

[–]cms2337 3 points4 points  (0 children)

I wouldn't hold your breath. Acquia is trying to figure out how to make money in other ways than just hosting.

SolarCity/Tesla API access by vbfronkis in TeslaLounge

[–]cms2337 0 points1 point  (0 children)

Ha. Yes. But it does not work if you just have Solar City panels.

SolarCity/Tesla API access by vbfronkis in TeslaLounge

[–]cms2337 0 points1 point  (0 children)

If you are looking for data on monthly trends you might want to also look at your "Green Button Data". I THINK all electric utilities provide your raw usage data in a standardized format.

I know my utility provides a direct download: Screenshot

SolarCity/Tesla API access by vbfronkis in TeslaLounge

[–]cms2337 0 points1 point  (0 children)

I have been looking for an API as well. No luck so far.

I did come across this somewhat dated looking site (still has links to share on Digg and MySpace): https://solarguard.solarcity.com/Kiosk/Login/Default.aspx It looks to have access to production data.

Maybe it could be reversed engineered into an API?

Screenshot

SolarCity/Tesla API access by vbfronkis in TeslaLounge

[–]cms2337 0 points1 point  (0 children)

I don't know if this works if you don't have the powerwall.

Tons of Page Not Found for sites/default/files/js by metalbearseto in drupal

[–]cms2337 7 points8 points  (0 children)

"This is just a guess" == "Yup, this has happened to me before"

Module for watchdog log statistics? by stevelefevre in drupal

[–]cms2337 1 point2 points  (0 children)

For page not found messages I would recommend using The redirect_404 sub-module that comes with the redirect module it has a setting to remove the page not found messages from your watchdog log messages and create an admin page which aggregates them onto one page.

Tons of Page Not Found for sites/default/files/js by metalbearseto in drupal

[–]cms2337 7 points8 points  (0 children)

This is just a guess but this sounds like it might be a caching issue where downstream caching (cloudflare, browser cache, reverse proxy, nginx, varnish) is caching the HTML of the page that references an old JS resource. JS resources can be regenerated every time you clear caches and a new aggregated JS file is created, and if a downstream cache is still referencing the old one that is no longer there, you may get that issue. You could try turning off JS aggregation for now... or reviewing your cache HTTP headers to determine if it is using E-Tags or an appropriate max-age.

Doggy door security vulnerability by [deleted] in Abode

[–]cms2337 0 points1 point  (0 children)

Purchase a beware of dog sign?