tips Archives - Code Craftsman https://www.codecraftsman.us/ Tales from a Dev Dad Wed, 02 Nov 2022 02:45:54 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.3 https://www.codecraftsman.us/wp-content/uploads/2020/08/cropped-code-craftsman-logo-32x32.png tips Archives - Code Craftsman https://www.codecraftsman.us/ 32 32 How to create a reusable code template in PHPStorm https://www.codecraftsman.us/how-to-create-a-reusable-code-template-in-phpstorm/ Tue, 25 Oct 2022 04:37:36 +0000 http://www.codecraftsman.us/?p=660 JetBrains actually calls these Live Templates. They allow you to quickly insert a code template for any language and get prompted for filling optional variable names. The snippet is then bound to an abbreviation of your choice. There’s so many settings in PHPStorm, I’m not surprised if you didn’t know about the enormous number of Live Templates available to you out-of-the-box. They’re activated via a short abbreviation, then Tab or Enter. To access them, open the dialog at File > Settings > Editor > Live Templates. Here’s a list of the default categories: Just look at the collection of VueJS-based…

The post How to create a reusable code template in PHPStorm appeared first on Code Craftsman.

]]>
Quiet that bathroom ceiling fan https://www.codecraftsman.us/quiet-that-bathroom-ceiling-fan/ Wed, 19 Oct 2022 03:25:39 +0000 https://www.codecraftsman.us/?p=643 Developers need focus and noisy bathroom exhaust fans don't help. Follow along as I show you a simple trick to silence the shakes and vibrations of your bathroom fan.

The post Quiet that bathroom ceiling fan appeared first on Code Craftsman.

]]>
Create a clean zip file of your WordPress plugin folder https://www.codecraftsman.us/create-a-clean-zip-file-of-your-custom-wordpress-plugin-folder/ Wed, 12 Oct 2022 02:31:29 +0000 http://www.codecraftsman.us/?p=613 Want to zip up your custom plugin for distribution, but don't want that huge node_modules directory or package.json to get shipped along with it? There's a script for that.

The post Create a clean zip file of your WordPress plugin folder appeared first on Code Craftsman.

]]>
How I built my hyper-fast blog for free https://www.codecraftsman.us/how-i-built-my-hyper-fast-blog-for-free/ Sun, 25 Sep 2022 04:10:24 +0000 http://www.codecraftsman.us/?p=551 It's a thing of beauty when you see your blog post a full 100 Google Page Speed score. To think that it was done completely free just makes you all warm and fuzzy inside.

The post How I built my hyper-fast blog for free appeared first on Code Craftsman.

]]>
Lorem ipsum for Photoshop designers https://www.codecraftsman.us/lorem-ipsum-for-photoshop-designers/ Tue, 20 Sep 2022 02:58:27 +0000 http://www.codecraftsman.us/?p=522 We all need it. Filler text for our designs is a must. I'll admit I created this because I'm too lazy to truncate text out of Photoshop's built-in Lorem ipsum generator. This tool creates placeholder text at just the right length for pasting into your design.

The post Lorem ipsum for Photoshop designers appeared first on Code Craftsman.

]]>
Generate a PFX file from a GoDaddy SSL certificate https://www.codecraftsman.us/generate-a-pfx-file-from-a-godaddy-ssl-certificate/ Fri, 09 Sep 2022 03:24:16 +0000 http://www.codecraftsman.us/?p=512 This happens to me regularly with Azure apps. I need the PFX version of an SSL certificate in order to secure a Web App or service. I'll show you the simplest command to get the job done.

The post Generate a PFX file from a GoDaddy SSL certificate appeared first on Code Craftsman.

]]>
How to share Vue components between multiple projects https://www.codecraftsman.us/how-to-share-vue-components-between-multiple-projects/ Thu, 24 Feb 2022 05:06:23 +0000 http://www.codecraftsman.us/?p=402 Avoid code duplication in your Vue-based projects by sharing components and libraries without using a 3rd-party service or symlinks.

The post How to share Vue components between multiple projects appeared first on Code Craftsman.

]]>
Create a hexagonal button in css https://www.codecraftsman.us/create-a-hexagonal-button-in-css/ Tue, 12 Oct 2021 02:31:58 +0000 http://www.codecraftsman.us/?p=374 No absolutely positioned div tags needed. No SVG necessary. Learn to create cool hexagonal buttons with pure html + css.

The post Create a hexagonal button in css appeared first on Code Craftsman.

]]>
Integrate the Elementor theme system into reusable templates https://www.codecraftsman.us/integrate-the-elementor-global-theme-system-into-reusable-templates/ Thu, 22 Oct 2020 02:33:26 +0000 http://www.codecraftsman.us/?p=253 The new theme system in the Elementor Wordpress plugin is great at first glance, but how can we make it work in a real website development flow? I'll show you how to setup a Wordpress theme using reusable templates styled by the global Elementor Theme settings.

The post Integrate the Elementor theme system into reusable templates appeared first on Code Craftsman.

]]>
My Umbraco v8 project setup in Visual Studio https://www.codecraftsman.us/my-umbraco-v8-project-setup-in-visual-studio/ Tue, 01 Sep 2020 01:03:28 +0000 http://www.codecraftsman.us/?p=173 If you've been tasked with customizing an Umbraco project for the first time, it can take some time to figure out the ideal project structure. I worked through several issues already and will show you a simple Visual Studio setup that makes custom models and logic a breeze while staying organized.

The post My Umbraco v8 project setup in Visual Studio appeared first on Code Craftsman.

]]>