As a web developer, you know very well the need to debug your code. We often use external libraries for logs, and to format and/or display… How you can improve your workflow using the JavaScript console Please meet: console.group() (or console.groupCollapsed() if we want it to be closed by default). Then add a console.groupEnd()…
Category: Documentations
Documentations, Javascript
When (and why) you should use ES6 arrow functions — and when you shouldn’t
Nice reminder. Arrow functions (also called “fat arrow functions”) are undoubtedly one of the more popular features of ES6. They introduced a new way of… Sorgente: When (and why) you should use ES6 arrow functions — and when you shouldn’t
Documentations
Too much security
When your setting is so tight that you have to copy links from mail client to web browser…
Documentations
Determinare la data in cui è stata scritta una pagina web
Qualche tempo fa mi è stato proposto di scrivere un articolo per la rivista ICT Security Magazine. Ho trattato una tematica che torna utile in molti casi di indagini da fonti aperte o di consulenze… Sorgente: Determinare la data in cui è stata scritta una pagina web – Andrea Lazzarotto Ma che affidabilità forense può…
Documentations, Eiffel, Javascript
Sheer, pure evil
JavaScript: Can (a==1 && a==2 && a==3) ever evaluate to true? Yes, it can. Understand how in this article! That’s pure sheer evil, in my humble opinion as it tricks most people. Eiffel forbids this evilness, but I shall explain it better.
Documentations, Software Libero, Web
Piccole magie
Trasformare un sito WordPress in un sito HTML statico
Link
Documentations, Themes, Web, Wordpress
Bruce Chamoff: Let’s Convert a Static Bootstrap Website Into a Dynamic WordPress Theme
It may be pretty useful
Documentations
Transferring data to a new profile – Thunderbird – MozillaZine Knowledge Base
Sometimes a cleanup is necessary. I stress my little dear Thunderbird a little too much, as I ask it to easily juggle almost fifteen years of email. Today I had to follow Transferring data to a new profile – Thunderbird – MozillaZine Knowledge Base for a fresh start.
Link
<span class="pln">find </span><span class="pun">.</span> <span class="pun">-</span><span class="pln">type d </span><span class="pun">|</span> <span class="kwd">while</span><span class="pln"> read file</span><span class="pun">;</span> <span class="kwd">do</span><span class="pln"> echo $file</span><span class="pun">;</span> <span class="kwd">done</span>However, doesn’t work if the file-name contains newlines. The above is the only solution i know of when you actually want to have the directory name in a variable. If you just want to execute some command, use xargs.
<span class="pln">find </span><span class="pun">.</span> <span class="pun">-</span><span class="pln">type d </span><span class="pun">-</span><span class="pln">print0 </span><span class="pun">|</span><span class="pln"> xargs </span><span class="pun">-</span><span class="lit">0</span><span class="pln"> echo </span><span class="str">'The directory is: '</span>
Sorgente: How can I escape white space in a bash loop list? – Stack Overflow
Furthermore BASH Shell: For Loop File Names With Spaces suggets:
find . -print0 | while read -d $'\0' file do echo -v "$file" done
that should handle even the weirdest file name
