The font_awesome_flutter plugin is very easy to use and contains tons of beautiful icons. But, what if the icons are not known at compile time? I wrote a one-class Dart file that uses the Font Awesome plugin and allows to pick an icon at runtime. Using the naming convention of fontawesome.com you can include the…
Category: Programming
Easy and ready-to-use alternative to Log4j
I wrote a one-class logger, lightweight and very easy to use. It can be a good alternative to Log4j for small projects or if you want to customize you logging experience. Features It’s a self-contained one-class logger No third party dependencies required Fully customizable It works with jar packages Different levels of logging Logs on…
How to use custom fonts in HTML
This is intended to be just a simple example on how to use custom fonts in your website. First of all you have to download the desired font file and here is a short list of the most famous repositories: www.dafont.com www.dafontfree.net www.1001fonts.com www.fontsquirrel.com www.urbanfonts.com After you downloaded the zip you will find one or…
How to install custom fonts in html2pdf
Here is a short guide on how to install custom fonts in the famous html2pdf php tool. If you don’t know how to install or how to use it, please checkout my other post here. I hope this can be the final and easy guide to accomplish this task. First of all let’s download the…
[SOLVED] Flutter Android licenses exception
If you are here it means that you are facing a frustrating exception regarding Android licenses in Flutter. More specifically the exception occurs when you try to run the following command: and the output is something like this: The easiest fix I found is to install the Android SDK Command-line Tools. In Android Studio open…
Sortable list with jQuery (also on mobile)
This is a demo. Drag elements to reoder them. Demo page hereDownload zip here Video to show how this works on different platforms and devices (browser, mobile on browser, real Android device, simulated Android device): References: https://github.com/mjsarfatti/nestedSortable http://jsfiddle.net/xorivip215/fxd3tbea/ https://github.com/furf/jquery-ui-touch-punch
Nexus Repository Manager
Every good Java programmer should know and use a build automation tool like Maven or Gradle. Associated with one of these tools there is always a good repository from which the artifacts are downloaded and included automatically in the project. Probably the most important repository for artifacts is Maven Central But what if you want…
Let your code live forever
Update – July 2020 Github recently added a badge on Github profiles that contributed to the code vault. You can find it on your account main page under the personal information. How many repositories of yours have been put into the code vault??? Svalbard, an awesome place at the end of the world, where time…
Remove link from HTML with CSS
This is a simple work-around to remove actions and links from a link tag without replacing the inner HTML code. For example it can be useful if you are trying to edit a CMS template like a WordPress or Joomla template. These lines of code will do the work easily: .the-outer-container a{ โpointer-events: none; โcolor:…
PostgreSQL date/time tips
I know, editing date/time fileds in a database is not easy and sometimes we don’t use good techniques to do it because of the difficulty. In some of my projects I had to manage timestamp, so, I would like to share some useful tips. Split a timestamp into two elements: SELECT d[1] AS date, d[2]…