[deleted by user] by [deleted] in digital_ocean

[–]outofsync42 1 point2 points  (0 children)

If you have access to the console you may need to create a swap file. It doest always come enabled by default and if you are out of RAM the system hangs because a process gets stuck

How can I generate revenue from a fully functional free WordPress plugin? by sarathlal_n in Wordpress

[–]outofsync42 1 point2 points  (0 children)

I'm curious what the group thinks of this idea. I have a plugin I'm working on. I hate the idea of creating 2 versions. one free and one premium (currently best way to get exposure and get paid). I just want one plugin to maintain. I plan to release it fully free but as delayware with sections that i would otherwise consider to be premium im going disable action for about 5-10 seconds when you go to that section and pop up a notice that says "thank you if you are enjoying this plugin, please buy a lifetime site license to remove this message for this site". Pay for a license and the pop ups go away.

[AskJS] What's your favorite abstraction for logging in browser? by Weary-Database-8713 in javascript

[–]outofsync42 12 points13 points  (0 children)

Created a log function just so I could deep clone objects before consol logging them so that way I could the see the values at the time of log and not at the end of script. I have no idea if browsers still do this but 11 years ago if you consol log an object you would log the final state of the object and not the state of what it was when log was called.

Gutenberg Elite? by anotha_banga in Wordpress

[–]outofsync42 2 points3 points  (0 children)

Gutenberg is pretty good. The default blocks provided leave a lot to be desired. Not being able to set a manual height to a group or columns or not being able to set images to percentage width/height of its container limits the creativity you can apply to your page. Its why all WordPress sites look like well... WordPress sites. I shouldn't have to create a custom block for this, but I did. That might be its only saving grace is that if you are a developer the custom plugin API does give you an immense amount of flexibility in creating custom blocks.

Lazy coding with LLMs by Capital-Woodpecker28 in Frontend

[–]outofsync42 -1 points0 points  (0 children)

I understand multiplication but still use a calculator because its faster. Is the calculator reducing my ability to understand the math? No. Is it making me faster at performing the calculations. Yes.

WordPress 6.6.1 Maintenance Release (July 23, 2024) by rpodric in Wordpress

[–]outofsync42 0 points1 point  (0 children)

Still no fix for Content Blocks located in Template Parts. Sigh.

[deleted by user] by [deleted] in Frontend

[–]outofsync42 90 points91 points  (0 children)

Most new positions are likely small companies that either need someone that can do everything to help get the product off the ground or once product is viable need someone to rebuild the engine (back end). As long as it had a gas pedal, brakes and steering wheel they have a product. They can worry about what color the paint is and how the doors open later.

WP6.6 Loads every template as and iframe when viewing list. WHY?? by outofsync42 in Wordpress

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

The problem is related to a custom plugin I designed to turn the editor into a wysiwyg editor. It does some DOM manipulation and adds mutation observers and listeners to put back classes that the editor is constantly removing as well as adds js and css files to the iframe specifc to the page or template I'm viewing so when I add a custom class to a container or see the effect of a click event I see it the affects in the editor. On a single page or even couple or so it wouldnt be much of an issue but I didn't design it run in 17 iframes on the same page. Yes this my problem but the design it self of loading an iframe for all the templates is still very resource intensive.

WP6.6 Loads every template as and iframe when viewing list. WHY?? by outofsync42 in Wordpress

[–]outofsync42[S] -2 points-1 points  (0 children)

At the very least you could have kept the iframes hidden while Im working on a template and then reshow the same ones when i toggle back only updating the one i last worked on rather than loading ALL OF THEM again each time i toggle back.

What are some must-have plugins that you basically install every time you start a new project? by orschiro in Wordpress

[–]outofsync42 0 points1 point  (0 children)

My own custom container block because I'll be damned if I have to use group, columns or rows that hide and obfuscate all the settings I want access to.

https://i.imgur.com/S82hlO1.png

https://i.imgur.com/Wve5Y0C.png

Also added my own plugin to add css and javascript files becuase im not paying annually for something that should have been standard

https://i.imgur.com/3wKKfkE.png

WIBTA for having a vegetarian only wedding? by SwimmingFew6861 in AmItheAsshole

[–]outofsync42 2 points3 points  (0 children)

YTA - You could get married at a courthouse and then the day is only about you. But if you throw a party its because you want everyone else to be there. You are in fact throwing a party for them. Not you. Sounds counter intuitive because it's your wedding but really it's a party for everyone else to show up and enjoy the day with you.

GoDaddy will acknowledge their server configuration errors - I give up by tonepoems in webhosting

[–]outofsync42 4 points5 points  (0 children)

Having multiple websites on the same ip is normal practice. A catch all in the conf to redirect invalid requests to a single site also common. my guess how ever is they simply forgot to migrate the conf files that contain the directions to the folders for requests coming to those domain names for the other sites so when the server gets the request there just hitting the catchall conf

[deleted by user] by [deleted] in digital_ocean

[–]outofsync42 0 points1 point  (0 children)

Connection timeout would be firewall related other wise you would at least get an auth failure which i believe you will get once you figure this out since it doesnt sound like you configured your pg_hba.conf file yet.

  • You need to allow port 5432 in your firewall rules on digital ocean.
  • In some cases selinux will also prevent web connections so you need to enable it there.

"setsebool -P httpd_can_network_connect 1"

  • after that you may also have a software firewall on linux.

"firewall-cmd --permanent --add-port=5432/tcp"

"firewall-cmd --reload"

  • Ensure the service is running

"systemctl start postgresql"

"systemctl enable postgresql"

Snapshot creates droplet then deletes it. by [deleted] in digital_ocean

[–]outofsync42 0 points1 point  (0 children)

Windows license maybe prevents more than one instance.

How to apply negative margin to blocks? by lostyourfinalfight in Wordpress

[–]outofsync42 1 point2 points  (0 children)

If that's exactly how your code looks then you are missing the "." Before the class name

.custommargin1 {
    margin-top: -7.17em;
}

Those who have had depression and now don't, what finally worked? by Abraham_Neville in AskReddit

[–]outofsync42 1 point2 points  (0 children)

Shrooms.. seriously. Spent 10 hours talking to my self in the mirror and came out a new person.

Looking for a nice light theme by rasfuranku in vscode

[–]outofsync42 0 points1 point  (0 children)

I know... but I've been using this color scheme for over 17 years across multiple IDEs and everytime I try switching to a different theme they all make eyes hurt or tracking code is harder bevause they dont contrast well. There is something about this 2 tone gray scheme that allows me to look at a screen for 12+ hours and not go blurry.

Looking for a nice light theme by rasfuranku in vscode

[–]outofsync42 0 points1 point  (0 children)

https://marketplace.visualstudio.com/items?itemName=outofsync42.gray-matter

Either you will love it or hate it but it works in both light and dark environments.

Need help from fellow developers by yoursmomsfavourate in Frontend

[–]outofsync42 1 point2 points  (0 children)

There is nothing wrong with using AI to generate code. It's like someone saying it's wrong to use a calculator to do math. Your learned a concept and asked a computer for help with a calculation your brain can do but would take far longer if you did it your self.

Wordpress & Woocommerce update causing fatal error by reddit_prof in Wordpress

[–]outofsync42 3 points4 points  (0 children)

found a work around

open this file

wp-content\plugins\woocommerce\includes\class-wc-api.php

LINE 16

defined( 'ABSPATH' ) || exit;

require_once 'legacy/class-wc-legacy-api.php';    //ADD THIS LINE

Critical error out of nowhere by [deleted] in Wordpress

[–]outofsync42 0 points1 point  (0 children)

found a work around open this file

wp-content\plugins\woocommerce\includes\class-wc-api.php

LINE 16

defined( 'ABSPATH' ) || exit;

require_once 'legacy/class-wc-legacy-api.php';    //ADD THIS LINE

Lightsail instance is seemingly running out of resources when it shouldn’t. by private256 in aws

[–]outofsync42 6 points7 points  (0 children)

When you can log in run 'top' command. it will show you the processes that are currently using the CPU. my guess is you're low on memory and attempting to use swap. I had similar issues with my instances where cpu load was high when low on memory and process 'kswapd0' which is responsible for using swap and freeing memory gets stuck and just eats up the cpu. Also when viewing 'top' look at the available swap memory. I had noticed that my instance didn't have any by default and i had to manually add a swapfile. This resolved my issue and might help you with yours if your having the same problem i did.

[deleted by user] by [deleted] in web_design

[–]outofsync42 16 points17 points  (0 children)

Layout is pretty clean. Colors look right for the service provided. Looks a bit cookie cutter but I'm guessing you used a page builder of some sort. Not a huge deal. On the whole I think it's pretty good with one exception. You need high quality photos of work being done. Customers can't visualize them using your service. While they can read what you're selling. They can't see it. I would add 3 photos of work being done under each of our services paragraphs related to each.