How To Stop A Map/Reduce SuiteScript When It Is Processing

How do you stop a long running map/reduce script in SuiteScript? There are two ways to stop the running of a map/reduce script: cancel the script in the Map/Reduce Script Status area, or make the running Map/Reduce script inactive. Here’s how each method works. Cancel Map/Reduce Script You might be able to stop a map/reduce script running in SuiteScript if there are other scripts running currently and your newly pushed map/reduce script is sitting in the queue. ...

February 14, 2022 · 2 min · 350 words · Ryan Sheehy

OmniGraffle API: Get Text Data From Shapes

I recently had an exercise where I needed to extract all the text from an OmniGraffle document. The task at hand was to check a beautifully designed organisation chart against a spreadsheet list of staff. Doing this task manually was going to take far too long. There had to be a better way of extracting the information I needed from the document: and thankfully there was! OmniGraffle have a new feature labelled Omni-Automation for OmniGraffle that allows you to write JavaScript code and create/modify objects on the canvas. ...

September 24, 2021 · 17 min · 3492 words · Ryan Sheehy

How Many Spaces Is A Tab: 2, 3, 4 or 5?

In Microsoft Word you can control whether or not you want to see the white space characters in your document. This helps to check you haven’t incorrectly inserted a tab where a space should have gone and vice versa. Generally, a tab is the same width as 4 to 5 spaces provided the font being used equally sizes each character. For example, the Courier font’s tab equals 5 spaces, whereas the Arial font is 11 spaces to each tab when the font size for both is set to 12. ...

May 17, 2021 · 4 min · 679 words · Ryan Sheehy

Word Count WordPress - PHP Code

If you want to know how many words your WordPress articles have you can open up each post individually and by clicking on the top left-hand corner’s information icon it will display the number of words. For example, when I completed this post I was curious as to the quantity of words I wrote and upon clicking the information icon within that post was informed of the following data: ...

April 13, 2021 · 4 min · 682 words · Ryan Sheehy

How To Install Multiple WordPress Sites On One Bitnami Stack (AWS Lightsail + Cloudflare)

WARNING – The content contained in this article no longer works per Bitnami’s deprecation of modules – their announcement is here if you want to find out more. I found it tedious trying to change all of my websites (6 in total) to Amazon’s Lightsail Bitnami WordPress box. There are many instructions on how to do this using the WordPress Multisite feature, but not if you actually need individual WordPress installations on the same box. ...

January 28, 2021 · 13 min · 2633 words · Ryan Sheehy

Copy Files From Windows Server To S3 Bucket

I was once connecting my Dropbox account to a Windows VPS to try and sync files from the server to my computer. While I ran into a few problems initially with probably the biggest problem being NOT selecting which folders TO sync and as a result I fried a few Windows boxes. And the software doing the pushing needs to be lightweight. Store your images on Amazon’s S3 It is relatively cheap to store your photos on Amazon S3 with each GB costing around 2.5 cents! That’s correct, a whopping 2.5 cents to store all your files per gigabyte. ...

June 11, 2020 · 11 min · 2254 words · Ryan Sheehy

Amazon SES: Send Email From Your Domain Using Gmail

If you have a custom domain and want to be able to send email through your personal Gmail account without having to register for a Business Gmail account then here’s how you can do it using Amazon’s SES. Prerequisite If you haven’t done so already you will need to set up your custom domain in Amazon’s SES. Here is a detailed step-by-step guide on how to create your email accounts using Amazon SES, Lambda and S3. ...

June 3, 2020 · 4 min · 760 words · Ryan Sheehy

Amazon SES: How To Receive Email

If you’ve created your own custom domain and want to be able to create custom email accounts, but don’t want to register for a Gmail Business account due to cost then there’s an easy way to manage an email server within Amazon called Simple Email Service (SES). In this article you will learn how to register a domain within SES ready for receiving email, then you will see how we can create an S3 bucket to be your simple inbox storage system, followed by creating a Lambda function to forward any email through to your personal account. ...

June 2, 2020 · 13 min · 2600 words · Ryan Sheehy

Hugo: Redirect 301 Layout

If you’ve created a static site using the wonderful Hugo package and need to create some simple redirect HTML web pages then you’ll need to do the following: Create your HTML template and place it in your main layout folder. Create an archetype template file. Create a file using the archetype and fill in all the meta header information. Publish your page. Creating a simple redirect layout in Hugo is relatively easy and can help if you are transitioning from other content providers such as WordPress where your Hugo website structure may slightly change for some posts and pages. ...

May 27, 2020 · 8 min · 1616 words · Ryan Sheehy

How to Create a Google App Script Library

In our previous post on clasp and Google App Script code we discovered how we can pull code down locally, do our edits and then push it back to Google Apps. This is great when we’re working on code on the back-end of Google Sheets, or Google Forms, or any of the other great Google Apps. However, what do you do when you want to write code, but you don’t want someone ‘accidentally’ editing your code? ...

May 25, 2020 · 7 min · 1310 words · Ryan Sheehy