Skip to content

Edoardo Vignati

– Always looking for something awesome –

Menu
  • About me
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • Travels  
Menu

Category: Programming

Export HTML to PDF with Python and Flask

Posted on 30/03/202230/03/2022 by Edoardo

Here is a very quick guide to generated a PDF from HTML and download it using Flask. First of all add these two dependencies in you requirements.txt file and install them using pip Then install the pdf engine running: In your code, import pdfkit and render an HTML template. Then put the output into pdfkit…

Continue reading

How to save PHP object into SESSION variable

Posted on 03/02/202224/02/2022 by Edoardo

If you try to save an object into the $_SESSION variable, you will probably notice this error: __PHP_Incomplete_Class Object This error occurs when an object cannot be serialized and deserialized properly. For this reason, before assigning an object to a session variable, you must serialize it using the function To deserialize it you just have…

Continue reading

[SOLVED] XMLHttpRequest error in Flutter web is a CORS error

Posted on 08/10/202109/10/2021 by Edoardo

This is the error from http package in Flutter: This error is a Javascript error and it can be inspected from AndroidStudio terminal or from the browser console. If you run into this problem it means that the requests to the API server are failing due to a CORS error. When executing these types of…

Continue reading

[SOLVED] flutter_osm_plugin not working (Expecting an argument)

Posted on 11/09/2021 by Edoardo

If you are here it means that you cannot use the OSM plugin for Flutter. And if you are reading this post I hope you’re going to fix it. This is the error: If you are facing the same error, you can try to fix in this way: invalidate cache and restart upgrade Flutter upgrade…

Continue reading

How to install a venv in Python without network connection

Posted on 11/09/202103/04/2022 by Edoardo

In some cases you have to replicate a Python project on a computer without internet connection. In these cases you must not simply copy the venv folder. Requirements for this process: the project, a memory mass storage, another computer with internet connection. First of all, you have to to install Python on the offline machine….

Continue reading

How to open a page in Facebook app in Android with Flutter (deep link)

Posted on 29/08/202114/05/2022 by Edoardo

Maybe, if you are here, it means that you already tried to launch the Facebook URL of a page failing because the browser is launched instead of the native app. Well, to open the Facebook app on a specific page it’s quite simple if you know the correct way. First of all you can use…

Continue reading

How to read multipart form data with Flask

Posted on 27/07/202127/07/2021 by Edoardo

This is a simple snippet in Python that allows to read a multipart form data with Flask.

Continue reading

[SOLVED] Overlap images in HTML

Posted on 17/06/202117/06/2021 by Edoardo

If you spent hours trying to find a good solution to overlap images in HTML, this is your final solution. This doesn’t require CSS or Javascript. Only HTML. This is a tricky way to overlap images without using that annoying absolute CSS property misused. In fact if you use the position:absolute property, you will not…

Continue reading

Add Font Awesome icons dynamically in Flutter apps

Posted on 19/04/202119/04/2021 by Edoardo

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…

Continue reading

Easy and ready-to-use alternative to Log4j

Posted on 07/04/202119/04/2021 by Edoardo

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…

Continue reading
  • 1
  • 2
  • 3
  • Next
  1. Edoardo on Sortable list with jQuery (also on mobile)05/04/2022
  2. Katrin on Sortable list with jQuery (also on mobile)05/04/2022
  3. Edoardo on Sortable list with jQuery (also on mobile)07/02/2022
  4. Katrin Konrad on Sortable list with jQuery (also on mobile)07/02/2022

© 2022 Edoardo Vignati | Powered by Minimalist Blog WordPress Theme