Coding

Archive for posts related to coding activities.

Testing an image gallery library in javascript

Testing a simple lightbox javascript in my wordpress theme.

Novembre 6, 2024

PenguibBotLib, my library for Elegoo Penguin bot

An Arduino library to program the Penguin Bot by Elegoo in an easier way,

Ottobre 12, 2024

Venn’s diagram applied to web agency life and software development

Thoughts about Venn's diagram and making software.

Giugno 13, 2024

The Quantcast CMP broke my sites

A javascript error in CMP blocks my site.

Maggio 19, 2023

WP Gutenberg notes

Collection of notes and thoughts on Wordpress Gutenberg blocks development.

Gennaio 9, 2023

Optimizing LCP, Largest Contentful Paint result

Notes about Core Web Vitals optimization challenge

Gennaio 4, 2023

Find values recursively inside complex json objects in PHP

A PHP function to to quickly search complex, nested php structures for specific values.

Dicembre 18, 2022

Scroll to DIV by ID without jQuery

Use scrollIntoView instead of jQuery animate.

Dicembre 16, 2022

React links

Collection of links and notes while approaching React.js, next.js and related topics.

Dicembre 14, 2022

Come realizzare in PHP un bot per il controllo di accesso ad un gruppo Telegram

Una serie di appunti per la realizzazione di un bot di controllo di un gruppo Telegram, non è un vero e proprio tutorial, ma è sicuramente utile per ripercorrere il progetto.

Dicembre 9, 2022

Updating a metabox after Gutenberg updates

When press on "Update" refresh a custom metabox under gutenberg editor.

Dicembre 4, 2022

Reti neurali, corso base (2/2)

Corso base su reti neurali, elenco slide:

Giugno 16, 2021

Reti neurali, corso base (1/2)

Seconda parte

Giugno 15, 2021

Count coloured cells on Google Sheets with reference

Google sheet trick to count cells

Maggio 22, 2020

WP doesn’t send email? try this

Snippets for sending emails with Wordpress

Febbraio 8, 2020

Two post types share the same taxonomy in WordPress

Sharing a taxonomy between different post types

Novembre 14, 2019

MYSQL add counter in a query

Use mysql variables to create a counter in SQL, PHP code to use an SQL counter and what does the i mean in mysqli?

Novembre 9, 2019

Modify the language attribute based on category in WordPress

How to modify the language attribute in your Wordpress theme using a specific value

Novembre 7, 2019

WordPress Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

How I've beat the php mysterious fatal error unknown in Wordpress caused by caching plugin WP Fastest Cache

WordPress Gutenberg doesn’t parse Istagram oembed url

Sometimes Instagram embed doesn't work, why?

Novembre 4, 2019

Hacking del sistema di irrigazione Claber

Modificare il sistema di irrigazione della Claber per utilizzarlo con Arduino e una app realizzata ad hoc

Novembre 1, 2019

Stop sending email to new user in WordPress admin registration

A code snippet to prevent WordPress to send notification emails when you manually create new users. It uses a pluggable function.

A new avatar generator for WordPress with get_avatar and Flathash

Brand new avatars for WordPress Gravatar service

Aprile 7, 2017

3 ways to add author’s image in WordPress

Add author's image in WordPress without a plugin

Aprile 5, 2017

Orari trenord, corri solo quando ce n’è bisogno

Hai presente quando corri in stazione per prendere il treno al volo e, quando arrivi, ti accorgi che il treno ha 12 minuti di ritardo?

Marzo 30, 2017

Add filter on wp_title not working with Yoast SEO plugin

A SEO filter on wp_title

Febbraio 22, 2017

Generate all old PDF preview images with WordPress 4.7

PDF previews needed in media gallery?

Dicembre 13, 2016

Highlight text for search results in PHP

Useful code to highlight text occurences in search results or in a text. How to highlight text in a string…

Settembre 2, 2016

Remove or change the view link in WordPress posts list admin

If you want to remove the row action ‘view’ from the admin posts list within a specific custom post type…

Maggio 23, 2016

Modify wp_query for a specific category in category.php

Order by meta field in category.php

Aprile 8, 2016

Customize your site icon for new WordPress 4.4 embeds

Customize your wordpress embed

Dicembre 11, 2015

How to bring back tweet counters

Twitter doesn't want you to see how many tweets your links did.

Novembre 24, 2015

Twitter counter no longer works

Bye bye twitter

Novembre 23, 2015

How to add rel=”nofollow” to links with preg_replace()

Adding rel="nofollow" to external link is a good SEO practice.

Settembre 22, 2015

Limit the number of categories for posts in WordPress

Just one category for each post

Settembre 14, 2015

Remove archive pages in WordPress, how to

Archives go home! :-)

Settembre 8, 2015

WordPress 4.1.1 is available! Please update now.

Sometimes you find messages like “WordPress 4.1.1 is available! Please update now.“, in italian it is: “È disponibile WordPress 4.1.1! Aggiorna…

Marzo 16, 2015

Fix for WP SUPER CACHE home not refreshing

WP SUPER CACHE is one of the most used WordPress plugin for cache, but probably there is a small bug…

Dicembre 1, 2014