Web Mystery - Development Blog
Hello, my name is Andrey, and this is my personal blog. At the very beginning of my career, I called "Web mysteries" things behaviour of which I couldn't explain. As it came with experience, everything happens for a reason - you just need to take more time on learning, debugging or googling the issue. This blog was initially meant to explain such "mysteries" and save time of the readers, but in fact contains general articles split into 3 categories: Front End, Drupal and Tools. Welcome!
-
Adding Comments to a Static Astro Website with Remark 42
Posted on:Static Site Generators like Astro are a simple and quick way to spin up a static website and get it live. However, adding more advanced features might become challenging with all the options available. Today, we will explore one way to add the comments functionality to a static website, based on Astro, with a self-hosted Remark42 service.
-
Running a Discord bot written in Deno in Docker
Posted on:In the previous article, I explained how to create a simple Discord bot with Deno and run it locally. In a real-world scenario, we would like to keep our bot online 24/7, and a home computer is not the best choice for this purpose. Read on to find out how to run out bot in a Docker container in the AWS cloud.
-
Making a Discord bot with Deno and Discordeno
Posted on:A few days ago, Deno was released, and I couldn't resist to try it out. In a nutshell, Deno is a new secure JavaScript and TypeScript runtime that supports importing modules from URLs (npm is no longer needed), has a flexible permission system, modern promise-based APIs and many more goodies.
Even though this is the very first stable release, there are lots of modules written by enthusiasts already available for us to use. In this article, we'll use Deno and Discordeno library to create a simple discord bot.
-
Contextual Menus in a Cross-Platform Electron Application
Posted on:Electron applications do not come with contextual menu out of the box. However, it is always a good idea to add a context menu to your project–it does bring more native look and feel. In this article, we are going to review different methods of contextual menu creation as well as building a dynamic menu with conditionally displayed items.
-
Making customized (white label) builds of a Cordova application–Android
Posted on:Imagine that you are developing a super useful Android application (backed by Cordova or Ionic) and several your customers would like to have it. However, they want to put their logo and are willing to pay extra for this. Of course, we do not want to have a different code base for each client, and it would be nice to make all required changing during the build process. Here is a guide on how to do this for Cordova Android applications.
-
Making HTTP-request During React Server-Side Rendering on Electrode Platform
Posted on:Imagine a React application with SSR where you need to make an external HTTP request and set use its result as initial state. This might be difficult to accomplish as the rendering process is synchronous, so we would have to find a right place to make the request before rendering, and thus postponing rendering and sending the response. In this short article, I will show you how to implement this on Electrode React project.
-
Setting up Build Environment for Cordova (Android) Applications on Cent OS 7
Posted on:Sometimes, it becomes necessary to set up a Cordova build process on a Linux server–to let your colleagues make builds without doing any set up or make the built files available for download from the web. Here we will set up Android application build process on a clear Red Hat Cent OS 7 server.
-
Blog's revival. Angular 7 and Server-Side Rendering
Posted on:Finally, after a bit of intense work, the Web Mystery blog has been updated to the latest version of Angular with Server-Side Rendering support. This will allow search engines to index pages more effectively and hopefully will bring the website back to Google.
-
How to Make APNS Push Notifications in a Cordova iOS Application
Posted on:It has been almost 2 years since I wrote this post about making push notification on Android with Google Cloud Messaging. This is its second logical part, which describes how to send pushes to an iOS application with Apple Push Notifications service (APNS). As previously, the process will be described in a context of Cordova application.
-
Adding WebRTC support to an iOS Cordova based application
Posted on:Despite the recent rise of frameworks that utilize native UI, Cordova is still remaining one of the most popular and easy ways to build an Android or iOS application. With Crosswalk WebView, you get a great solution for your WebRTC based app, which works almost perfectly out of the box… on Android. When it comes to iOS, things become a little more sophisticated. Read on to find out how to get real time communications to work on iPhones and iPads.