Check Windows Services statuses using Powershell

PowerShell is a great and essential “scripting” (the scripting is just one of the many things this language can do) tool. It not only helps save you time, it also provides greater flexibility to execute repeated tasks manually or via scheduled tasks. Almost all Windows roles and features ship with PowerShell cmdlets. Once of the most common tasks, specially on server machines, is to check regularly the status of a specific service. Read More …

Uploading and use WebP image files on WordPress

WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-90% smaller than comparable JPEG images at equivalent SSIM quality index. Read More …

What are Dot-Source scripts in Powershell?

Dot-sourcing is a concept in PowerShell that allows you to reference code defined in one script in a separate one. This is useful when you’re working on a project with multiple scripts and might have functions specified in one script(s) and the code to call those functions in another. Other than building a module, dot-sourcing is a good way to make that code in another script available to you.
Read More …

Javascript / jQuery – Validation of file size while uploading

The following is a demonstration of client-side validation and is implemented to provide a nice user experience. In some cases, client-side validation is a much better method in comparison to the server-side method as it consumes less time. Read More …