State manipulation with ReactJS
React’s documentation tells us not to manipulate state of components directly, and that we should use setState() to handle any changes. This has two big “gotchas!” that I encountered. 1) […]
React’s documentation tells us not to manipulate state of components directly, and that we should use setState() to handle any changes. This has two big “gotchas!” that I encountered. 1) […]
If you want to check for a nested property in a complex object, you can do it in a single call with lodash / underscore. Example object: parent: { child1: […]
To enable source maps for webpack in gulp, add the attribute: config.devtool = ‘source-map’ into the webpack config file. This will give accurate line numbers for javascript errors from the […]
This is a list of ATOM packages I’ve found useful. https://atom.io/packages/atom-beautify https://atom.io/packages/minimap https://atom.io/packages/multiline-tab https://atom.io/packages/highlight-selected https://atom.io/packages/highlight-line https://atom.io/packages/gulp-control https://atom.io/packages/svn
If you have multiple actions in a single swagger path, you can define the parameters at the top of the definition for that path, without having to repeat it in […]
I was trying to filter a large array of objects by some nested key values in a separate array of objects. I had a few ideas from my old-school tried-and-true […]
Edit the wp-config.php file and add: define(‘FS_METHOD’, ‘direct’) Changing the owner will stop the prompt, but will sometimes break customization and previews. DO NOT do: cd /var/www/html/siteFolder sudo chown -R […]
Make sure that the web server user is the owner for your WordPress installation chown -R www-data:www-data wordpress_folder