Titan Fusion

Alexandar Tzanov's Personal Blog

Category: Developer

  • How to save on your Google Cloud Storage bill

    I use Google Cloud to host a static website. I deploy that particular website to App Engine via a Cloud Build process. To run the Cloud Build process I use two separate triggers – one for the main branch and one for the developer branch of a Git repository. Cloud Build provides convenience because it […]

  • Have a listen to the Serverless Programming episode from the Fragmented podcast

    The Serverless Programing episode from the Fragmented podcast is an excellent episode on starting and selling projects as a side or a hobby activity. It does not encompass everything, but it offers a good mindset on how to look at the success or failure of side projects. In addition, the episode talks about serverless architecture and how […]

  • Naming Conventions for the Cloud

    A good summary resource on naming conventions for system resources (servers, DNS, labels, etc.) in your network infrastructure. Be it your own data center or in someone else’s, i.e. the Cloud. Cloud Naming Convention

  • Format a number as US currency [JavaScript]

    A recent project I worked on allowed customers to request cloud computing resources. One of the requirements was to display the cost for each resource amount and the totals for one and two years for the resources the customer was requesting. In the United States, numbers are formatted with a period for the decimal mark […]

  • Format MAC Address [JavaScript]

    I am currently working on a project which will allow users to register their Wi-Fi enabled, non-web browser enabled, devices on the network. These are devices like printers, Apple TV, and Xbox*. One of the data points that have to be collected from the user is the device MAC address. The project customer wants that […]

  • Validate Email Address [JavaScript]

    The following is a quick and dirty way to validate form input, using JavaScript, from a user to confirm that they are entering a value, which could be interpreted as an email address. The function below is meant to quickly and simply ensure that the value provided by the user contains the at ‘@’ symbol and a […]

  • Function: checkboxLimiter [JavaScript]

    The checkboxLimiter function will disable all checkboxes, which share common value for the name attribute after the user has checked a pre-set number of them. The limit number is set in the function source to avoid inconsistency if adding the onChange function call inline of the page source. This does not matter if you are using event […]

  • Messing with WordPress SPAM Bots

    If you have a WordPress based blog, or otherwise use WordPress as a CMS for your website, you are either getting a lot of bad user accounts being created or noticing a lot of knocking on your wp-login.php page. WordPress has a nice feature which allows you to install WordPress in a directory other than […]

  • Basic HTML5 Template

    The Basic HTML5 Template is perfect for testing code snippets. Its purpose is to save you time from having to code a new template every time you want to start working on a new script or test some other code sample. It is just the very basics, and it only supports modern browsers. I am […]

  • How to protect wp-login.php using .htaccess and .htpasswd?

    If you own or maintain a WordPress based web site you might or might not be aware that the wp-login.php page in your root directory, and the wp-admin directory are under constant attacks by malicious bots. This tutorial will show you how to password protect the wp-login.php file through the use of .htaccess and .htpasswd. […]