Avete presente Matteo Salvini? (Per il quale «servirebbero quattro mesi di servizio militare per insegnare ai nostri ragazzi l’uso delle armi», per il quale contro gli immigrati «i confini ci sono e vanno difesi anche con le armi», per il quale «in Siria e in Libia serve l’intervento militare e chi dice di no è un senza palle: con i tagliagole bisogna intervenire militarmente e massicciamente», per il quale «il modello è la Svizzera dove un cittadino su due è legittimamente armato e dove ogni cittadino ha la possibilità di difendersi», per il quale – ricordo bene ‘sta dichiarazione, perché la fece ispirandosi a un fatto violento avvenuto a Frattamaggiore – per il quale, dicevo, «se io vengo aggredito o minacciato nella mia azienda, nel mio negozio, nella mia casa ho il diritto di difendermi», anche con le armi perché «la difesa è sempre legittima», per il quale «se ti trovi una o più persone in casa alle tre di notte, mascherate, sono a casa tua e violano la proprietà privata, che cosa fai prima di sparare, gli chiedi se hanno una pistola?», per il quale se spari a un rapinatore «e se il rapinatore ci rimane, nella prossima vita farà un altro lavoro», per il quale «se si ha il porto d’armi è normale andare in giro armati e difendersi»)… Ecco, sì, proprio il Matteo di cui sopra, viene a dirci, con viso preoccupato e pensoso – e già ‘sta cosa, detta così, fa ridere -, che, per aiutare l’Ucraina invasa dai carrarmati di Vladimir Putin, lui «fatica a parlare di armi con leggerezza».
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/calendar-768x1024.jpg?resize=644%2C859&ssl=1)
#! /bin/bash
send_notification() {
TODAY=$(date '+%-d')
HEAD=$(cal "$1" | head -n1)
BODY=$(cal "$1" | tail -n7 | sed -z "s|$TODAY|<u><b>$TODAY</b></u>|1")
FOOT="\n<i> ~ calendar</i> B. Raucci"
dunstify -h string:x-canonical-private-synchronous:calendar \
"$HEAD" "$BODY$FOOT" -u NORMAL
}
handle_action() {
echo "$DIFF" > "$TMP"
if [ "$DIFF" -ge 0 ]; then
send_notification "+$DIFF months"
else
send_notification "$((-DIFF)) months ago"
fi
}
TMP=${XDG_RUNTIME_DIR:-/tmp}/"$UID"_calendar_notification_month
touch "$TMP"
DIFF=$(<"$TMP")
case $1 in
"curr") DIFF=0;;
"next") DIFF=$((DIFF+1));;
"prev") DIFF=$((DIFF-1));;
esac
handle_action
The calendar
script is responsible for handling mouse events triggered by your bar, following are valid arguments:
./calendar curr # current month
./calendar next # increment month
./calendar prev # decrement month
Copy calendar
to your polybar config directory. Then, in your polybar config, you can use click-left
, scroll-up
and scroll-down
actions to invoke the script. For example:
[module/calendar]
type = custom/script
label = " "
exec = echo Calendar
click-left = ~/.config/polybar/calendar curr
scroll-up = ~/.config/polybar/calendar next
scroll-down = ~/.config/polybar/calendar prev
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/PXL_20220116_172517372.PORTRAIT.jpg?resize=768%2C1024)
Era il 10 gennaio del 1982 e il Commodore 64 veniva presentato, per la prima volta, al Consumer Electronics Show di Las Vegas…
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/Commodore64_ita-1024x871.jpg?resize=711%2C604&ssl=1)
Il sole quando sorge, sorge piano e poi
la luce si diffonde tutto intorno a noi…
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/fullsizerender.jpg?resize=768%2C1024)
Just like TikZ, Inkscape has the option to render the text of a figure using LaTeX. For this, it exports figures as both a pdf and a LaTeX file. The pdf document contains the figure with text stripped, and the LaTeX file contains the code needed to place the text at the correct position. For example, suppose you’re working on the following figure in Inkscape:
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/inkscape-1.png?resize=704%2C556&ssl=1)
To include this figure in a LaTeX document, you’d go to File › Save As, select ‘pdf’ as the extension and then press Save which makes the following dialog pop up:
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/inkscape_2.png?resize=580%2C387&ssl=1)
Choosing ‘Omit text in pdf and create LaTeX file’, will save the figure as pdf+LaTeX. To include these Inkscape figures in your LaTeX document, you can add the following code to your preamble:
\documentclass[11pt,a4paper]{scrbook}
\usepackage{import}
\usepackage{graphicx}
\usepackage{siunitx}
\usepackage{import}
\usepackage{placeins}
\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{enumitem}
\usepackage{calc}
\begin{document}
\chapter{Introduction}
Assuming the figure is located at figure/disegno.svg
, it can simply be included with following code:
\begin{figure}[hbt!]
\centering
\begin{normalsize}
\def\svgscale{0.5}
\import{figure/}{disegno.pdf_tex}
\end{normalsize}
\caption{Test}
\label{fig:test}
\end{figure}
Compiling your document, you’d get the following.
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/01/inkscape_3.png?resize=452%2C393&ssl=1)
As you can see, the text is rendered by LaTeX which makes the figure blend in beautifully.
A positive integer is called an Armstrong number of order n if:
\(abcd…=a^n+b^n+c^n+…\)
Source Code: Check Armstrong number
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2021/12/armstrong-1024x839.png?resize=609%2C499&ssl=1)
Here, we ask the user for a number and check if it is an Armstrong number.
We need to calculate the sum of the n-power of each digit. So, we initialize the sum
to 0 and obtain each digit number by using the modulus operator %
. The remainder of a number when it is divided by 10 is the last digit of that number. We take the n-power using exponent **
operator.
Finally, we compare the sum with the original number and conclude that it is Armstrong number if they are equal.