Posts

How to Generate Software License Keys and Verify Them

Image
You are running a small software business that sells digital downloads - apps, plugins, or even templates. When the buyer completes the purchase, you need to provide them with a license key that they can use to activate and validate the software. Here’s how you can implement such a licensing system in your software: Generate a public and private key pair using the RSA algorithm. Sign a message with the private key. The message contains the buyer’s email address and the software SKU. The signed message is the license key that is sent back to the buyer’s email address. When the buyer activates the software, the license key is verified using the public key. The Advantages The advantage here is that the public key can be included in the software’s source code, there’s no need to use a database, and the buyer can verify the license key offline without the need to connect to your server. Let’s now go through the implementation steps in detail. 1. Generate Public and Private K...

How to Accept Online Payments with Zoho Payments

Image
Zoho Payments is a new payment gateway that lets you accept payments on your website. You can visit this sample store to see the Zoho Payments widget in action. Unlike Stripe or RazorPay which are more mature payment gateways, Zoho Payments only supports domestic payments in INR (₹). In the initial release, merchants can only accept one-time payments and customers can pay you with UPI , Net Banking, and Credit Cards. The onboarding process is simple and, once you have uploaded your KYC documents, your account is approved within few business days. There’s no transaction fee for UPI payments while credit card transactions are subject to a 2% fee (excluding GST) How to Accept Payments with Zoho Payments In this tutorial, we’ll create a simple payment page in Google Apps Script and accept payments on our website using Zoho Payments. Assuming that you have signed up for Zoho Payments, you can visit the dashboard to find your “Account ID”. Next, go to Settings > Developer ...

How to Export WooCommerce Customers to Google Sheets

Image
If you are running an online store running on WordPress, chances are you are using WooCommerce to manage your customers and orders. The holiday season in near and you may want to send your existing customers a special discount code for their next purchase. Or you may want to analyze your store’s data to see how your business is performing in various regions. You can the built-in export feature of WooCommerce to export your customers data to a CSV file and then import the CSV file into Google Sheets. Go to your WooCommerce dashboard, navigate to the Customers section, and you’ll find an option to download the customers list as a CSV file. If you are however looking for a more efficient way to export your WooCommerce customers to Google Sheets, you can use Google Apps Script to create a custom script that will export the customers to a Google Sheet. Step 1: Create an API Key in WooCommerce To get started, you’ll create an API key in WooCommerce. Go to your WooCommerce dashboard, na...

How to Rollback Changes to a Specific Commit in Github

Image
Let’s say you have a Github repository where you push all your code changes. Each commit has a unique commit hash, and you can use this hash to restore the code to a specific commit or a particular time. It is advisable that you take a backup of your current code before proceeding. Find the Commit Hash To get started, open your repository on Github and find the commit you want to restore. You can do this by clicking on the “Commits” tab and finding the commit in the list. If you want to restore to a particular date, you can use the calendar dropdown to see all the commits for that day and find the one you want. You may also use the command line to find the commit hash. git log --oneline Once you have found the commit you want to restore, you can create a new branch at that commit. Let’s call this branch working-branch . git checkout -b working-branch < commit-hash > This git command will create a new branch named working-branch pointing to the specified commi...

How to Convert Google Slides to PNG Images with Google Script

Document Studio can convert Google Slides into high-resolution PNG images. This can be useful if you want to create multiple variations of the same slide in bulk - create a single template in Google Slides and then use Document Studio to generate PNG images with different text or images, pulled from a Google Sheet or Google Forms. Internally, the app uses the Google APIs to generate high-resolution thumbnail images of the slides and uploads the individual slides to the Google Drive of the current user. In this tutorial, we’ll explore two methods to achieve the slide-to-png conversion using Google Apps Script. Approach #1 - Use the Google Slides API You can use the Google Slides API to get the thumbnail images of the slides, fetch the blob of the image, and then upload the image to Google Drive. const generateSlideScreenshot = ( ) => { const presentation = SlidesApp . getActivePresentation ( ) ; const presentationId = presentation . getId ( ) ; // Get the o...

Revolutionary Gaming Consoles of 2024

Image
Revolutionary Gaming Consoles of 2024: A New Era of Gaming The gaming world is perpetually evolving, and 2024 is no exception. This year, we witness the launch of several groundbreaking gaming consoles that promise to redefine the way we play, experience, and perceive video games. From enhanced graphics and processing power to innovative features that push the boundaries of what's possible, let's dive into the revolutionary gaming consoles of 2024. 1. PlayStation 6: The Next Level of Immersion PlayStation 6 Sony continues to lead the gaming industry with the introduction of the PlayStation 6. Building on the success of its predecessor, the PS6 boasts an array of features designed to deliver an unparalleled gaming experience. Performance and Graphics: The PS6 is powered by a custom AMD Ryzen 9 processor and an RDNA 3 GPU, offering a substantial leap in graphics performance. This combination allows for 8K resolution gaming at 60 frames per second (fps) and supports real-time ray ...

Augmented Reality (AR) and Virtual Reality (VR)

Image
Augmented Reality (AR) and Virtual Reality (VR) are immersive technologies that alter our perception of the real world. Here's a brief overview of each: Augmented Reality (AR): AR overlays advanced data onto this present reality climate, upgrading the client's impression of the real world. AR can be experienced through smartphones, tablets, AR glasses, or specialized AR headsets. Applications include gaming, navigation, education, retail, and industrial training. Popular examples of AR include Pokémon GO, Snapchat filters, and navigation apps that superimpose directions onto the real world. Virtual Reality (VR): VR creates a completely artificial, computer-generated environment that immerses the user in a digital world. VR experiences are typically delivered through VR headsets, which cover the user's eyes and ears, blocking out the physical surroundings. VR is widely used in gaming, simulations, virtual travel, and training scenarios (e.g., flight simulators, medical trai...