Tutorials Page 11
![JavaScript String replaceAll]()
JavaScript String replaceAll
Replacing a substring of text within a larger string has always been misleading in JavaScript. I wrote Replace All Occurrences of a String in JavaScript years ago and it's still one of my most read articles. The confusion lies in that
replaceonly...Froala: The Next Generation WYSIWYG Editor
There are a number of utilities required to really power a content management system and its users. One of the most important utilities is a performant, feature-rich WYSIWYG editor. We've always had to choose between the two exiting editors, CKEditor and TinyMCE, but now we...
![Log a User Out from Command Line]()
Log a User Out from Command Line
Automation is a system administrator, support agent, and tech savvy person's dream. Automating tasks via scripts remotely helps to get clients out of trouble or even the organization itself. Oftentimes big updates can require users log out. Logging a user out from command...
![navigator.clipboard API]()
navigator.clipboard API
Reading from and writing to the user's clipboard can be both a very useful and dangerous capability. Used correctly and it's a huge convenience to the user; used dubiously and the user could suffer catastrophic consequences. Imagine a wrong account number or wallet address...
![GraphQL Editor – The Journey from Initial Release to Version 5.0]()
GraphQL Editor – The Journey from Initial Release to Version 5.0
From the very beginning of our adventure with GraphQL, we were impressed by how great its community is. The amount of content, libraries and great tools generated by GraphQL users amazed us from the very start. The more time we spent working with GraphQL the more...
![Array.prototype.at]()
Array.prototype.at
Working with arrays is an essential skill in any programming language, especially JavaScript, as we continue to rely on external data APIs. JavaScript has added methods like
findand `findIndexrecently, but one syntax I love from languages like Python is retrieving values by negative indexes.When...![Fast, Accurate Geolocation Data with IPWHOIS.io]()
Fast, Accurate Geolocation Data with IPWHOIS.io
In the world of marketing and content targeting, having accurate geolocation data can be the difference between a thriving enterprise and a floundering business. Accurate data is everything, especially in the targeted marketing. When you need trustworthy geolocation data, IPWHOIS.io is a great...
![Command Line trash]()
Command Line trash
One of the first commands you learn when experimenting with command line is
rm, the utility for deleting files and directories. Deletion is a core computer UI operation but operating systems use a "Trash" paradigm, where files are stored before truly deleted. With the...![Terminate Process on a Port from Command Line]()
Terminate Process on a Port from Command Line
Once a week I have to deal with a zombie process or try to start a process that's already running on its designated port. In most cases I use macOS's Activity Monitor to kill the process, which is time-consuming. What if we could just...
![CSS accent-color]()
CSS accent-color
For better or worse, form fields have been somewhat difficult to style with CSS. Form control display is dependent upon device, operating system, and browser, so you can imagine the difficulty in making styling easy. We have slowly been given some controls over form control...






