jQuery – Fall back to hosted library if cdn fail

Production applications should not be heavily dependent on CDN activities. Applications should use a fallback resource when the CDN is not available. <script src=”https://cdn.dotmaui.com/libs/jquery/3.4.0/jquery.min.js”></script> <script> window.jQuery || document.write(‘<script src=”/js/jquery.min.js”><\/script>’); </script>

Postgresql, managing ENUM types

List of useful commands for working with ENUM in postgresql. Create an enum: CREATE TYPE languages AS ENUM (‘python’, ‘php’, ‘java’); Adding an element to an enum: ALTER TYPE languages ADD VALUE ‘go’;ALTER TYPE languages…

List of useful commands for npm

At dotmaui.com we use a lot Node.js and therefore npm for package management. We keep a list of the commands we use most often and today we want to share it with you. List npm…

New popular libraries added to our CDN

With a view to increasing the Javascript and CSS libraries offered for free, we have added two popular libraries: Handlebars.js:Handlebars provides the power necessary to let you buildĀ semantic templateseffectively with no frustration. https://handlebarsjs.com/ https://cdn.dotmaui.com/libs/handlebars.js/ bootstrap-select:The…

ASP.NET – Format string by CultureInfo

C# var my_date = DateTime.Now; var my_culture = System.Globalization.CultureInfo.CreateSpecificCulture(“it-IT”); var my_string = my_date.ToString(“d MMMM”, my_culture); Console.WriteLine(my_string); VB.NET Dim my_date = DateTime.Now Dim my_culture = System.Globalization.CultureInfo.CreateSpecificCulture(“it-IT”) Dim my_string = my_date.ToString(“d MMMM”, my_culture) Console.WriteLine(my_string)

CSS Minify API 1.2 released!

We have just released a new version of the API to minimize CSS. Based on your feedback we have added four new parameters: removeurlquotes: Removes quotes from urls. Default is true.removecomments: Removes all comments. Default…