Skip to content

Edoardo Vignati 👨🏻‍💻

› Always looking for awesome things

Menu
  • Studies
  • Publications
  • Skills
  • Portfolio
  • Projects
  • Career
  • Blog
  • 🇮🇹 Servizi
Menu

Category: Programming

[Solved] MySQL not decoding emojis and special characters

Posted on 08/04/202308/04/2023 by Edoardo

If you have this problem, you should check 4 things. Encoding of tables Open PhpMyAdmin and check whether the database is encoded with utf8mb4_unicode_ci and also all the columns have the same encodign or not Encoding of MySQL If you are on Linux, go to /etc/mysql/my.cnf and add or edit the following: Then restart mysql:…

Continue reading

Constant size of a widget across multiple devices and screen resolutions in Flutter

Posted on 03/03/202330/07/2023 by Edoardo

I was developing a feature in my app, in particular a map with some icon markers using this package. During my programming session I used an Icon widget and I set the icon size at 100. Good, everything run smoothly, but when I launched the app on different screens I found the following situation here…

Continue reading

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/202106/01/2023 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/202102/12/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/202126/06/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
  • 1
  • 2
  • 3
  • Next
© 2025 Edoardo Vignati 👨🏻‍💻 | Powered by Minimalist Blog WordPress Theme