Twitter

Categories

.NET

Convert HTML to SVG using CloudConvert and C#

HTML is often easier to generate than SVG. Can it be converted to SVG? I’ve found a cloud service with an API that does a nice job converting various formats: CloudConvert. I ended up implementing a small part of their API to do the conversion.

JavaScript

Login Credentials Generator – in JavaScript

Many small applications need to store user credentials, but it’s hard to create a good username/password infrastructure. What if you could just use a small XML file with credentials that don’t actually stores the password, but just a hash and some salt.

For a small cloud project I ended up creating such a solution. This blog explains how to generate the credentials that can be stored in the XML. The aim is to make a solution that works on the client using JavaScript.

WordPress

Increase WordPress performance on IIS

I noticed that the Time To First Byte (TTFB) of my website was taking way too long. First I thought it should be resolved by caching, but I noticed that it couldn’t be the caching, because TTFB kept being pretty high. After some research I found the culprit: IPv6 with the MySQL driver.

.NET

Fixing IE Quirks Mode in ASP.Net

Quirks mode refers to a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for older browsers, instead of strictly complying with W3C and IETF standards in standards mode. Here’s how to force IE into submission by adding a DLL to ASP.Net.

JavaScript

Little life saver: parsing HTML entities

Recently I had the pleasure of building a calculator example exercise. Begin a good programmer I used the some HTML entities as values on the buttons: ×, ÷ and ± as values. It turned out to be quite difficult to parse them with native JavaScript. It is not so hard with LoDash or jQuery, but I wanted to do it native.

WordPress Theme built by Shufflehound. ©2010-2019 by Kees C. Bakker, all code is licensed under MIT.