Skip to content

Edoardo Vignati

– Always looking for something awesome –

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

Category: Web

Coherent UTF-8 data manipulation from MySQL to JSON in PHP

Posted on 20/10/202224/10/2022 by Edoardo

This short guide may help you to quickly create a simple data flow from the query to the JSON response for example if you want to build an API endpoint. You can find here some details that can save you time and answer to the following question: “Why my accented chars and emojis are not…

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

Increase PHP memory in Nextcloud

Posted on 02/11/202103/05/2022 by Edoardo

This is the typical Nextcloud error that warns you about the low level of php available memory. To increase this parameter you have to edit the php.ini file that could be in different locations depending on the operating system and the version of Apache that you are using. To locate the correct file put the…

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

How to use custom fonts in HTML

Posted on 01/12/202001/12/2020 by Edoardo

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…

Continue reading

How to install custom fonts in html2pdf

Posted on 01/12/202001/12/2020 by Edoardo

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…

Continue reading

Sortable list with jQuery (also on mobile)

Posted on 10/09/202026/03/2022 by Edoardo

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

Continue reading

Access Apache only from localhost in Linux

Posted on 10/09/202010/09/2020 by Edoardo

When you install Apache you expose your computer on the internet allowing attackers to access your webserver. If you want to restrict the access to external requests you would setup few rules. The easiest way is to write in the root of your webserver (usally located in /var/www/html/ ) a file called .htaccess that should…

Continue reading

WPScan: what is and how to install

Posted on 27/05/202027/05/2020 by Edoardo

WPScan is a very interesting and useful tool written in Ruby for scanning WordPress websites and find outdated versions of plugins, known vulnerabilities, enumeration of users etc… It’s very easy to use and very powerful. These are the installation step. After this, let’s install WPScan using gem: To run the scan, first of all update…

Continue reading
  • 1
  • 2
  • Next
  1. Edoardo on [SOLVED] XMLHttpRequest error in Flutter web is a CORS error06/01/2023
  2. Fabi on [SOLVED] XMLHttpRequest error in Flutter web is a CORS error20/12/2022
  3. Edoardo on How to install hplip on Ubuntu28/11/2022
  4. Alex K on How to install hplip on Ubuntu28/11/2022

© 2023 Edoardo Vignati | Powered by Minimalist Blog WordPress Theme