Datomic – The Ten Rules of Schema Growth
Data outlives code, and a valuable database supports many applications over time. These ten rules will help grow your database schema without breaking your applications.
Datomic – The Ten Rules of Schema Growth
Data outlives code, and a valuable database supports many applications over time. These ten rules will help grow your database schema without breaking your applications.
5 Must-Have Vim Plugins That Will Change Your Workflow. In my case
SpaceVim effectively provide alternatives to NERDTree, a file system explorer for Vim
Inserting and updating data with a single query.
Source: Upsert in SQL
Here’s how to get your favorite browser after setting up a new Windows PC, without touching any other browser beforehand.
: How to Download a Browser Without a Browser After Installing Windows
curl -L "<a href="https://download.mozilla.org/?product=firefox-latest&os=win64">https://download.mozilla.org/?product=firefox-latest&os=win64</a>" -o firefox.exe
Any user can create a personal list of hosts to complement the entries in the /etc/hosts file.
The functionality is implemented in glibc. You can define a custom hosts file by setting the
HOSTALIASES
environment variable. The names in this file will be picked up bygethostbyname
(see documentation).Slightly edited from: Can I create a user-specific hosts file to complement /etc/hosts? – Unix & Linux Stack Exchange$ echo 'g www.google.com' >> ~/.hosts $ export HOSTALIASES=~/.hosts $ wget g -O /dev/null
Thanks adamchainz!
You can use “CSV” table storage in (at least) these database backends:
- SQLite: https://www.sqlite.org/csv.html 42
- MySQL/MariaDB via the “CSV” storage engine: https://dev.mysql.com/doc/refman/8.0/en/csv-storage-engine.html 15 . Or MariaDB via the CONNECT storage engine: https://mariadb.com/kb/en/connect/ 1
However these will be slow though. Changes to CSV based tables require a lot of parsing and re-saving.
It’s probably better to import the CSV into a table with an optimized storage engine, and export it again later. django-import-export can help with that: https://pypi.org/project/django-import-export/
Source: Using CSV File as data storage and access
Here is my little “Printer friendly CSS” that I add to each and every page using Simple Custom CSS and JS
/* override styles when printing */
@media print {
@page {
margin: 2cm;
@top-center {
font-family: sans-serif;
font-weight: bold;
font-size: 2em;
content: counter(page);
}
}
/* target the first page only */
@page :first { margin-top: 6cm; }
/* target left (even-numbered) pages only */
@page :left { margin-right: 2cm; }
/* target right (odd-numbered) pages only */
@page :right { margin-left: 2cm; }
body {
font-size: 16pt;
line-height: 1.2;
/*margin: 1cm;*/
color: #000;
background-color: #fff;
border: 1mm black;
}
/* header, */
footer, aside, nav, form, iframe, .menu, .hero, .adslot, .header-bottom, .site-header, .header-middle {
display: none;
}
h2.entry-title {
font-size: 32pt;
}
/* page breaks before main header */
h1 {
break-before: page;
}
/* don't break tables and pictures*/
table, img, svg {
break-inside: avoid;
}
/* avoid too small text */
body,p {
font-size: 16pt;
line-height: 1.2;
}
article {
width: 100%;
/* no columns please
** column-width: 19cm;
** column-gap: 0.5cm;
*/
}
/* no background images */
* {
background-image: none !important;
}
/* styling links */
a {
font-size: 80%;
}
a::after {
content: " (" attr(href) ")";
overflow-wrap: break-word;
}
/* don't display unimportang pictures */
/* img, svg {
** display: none !important;
** }
*/
/* make picture big */
img.print, svg.print {
display: block;
max-width: 100%;
}
/* don't show comments */
#comments {
display: none;
}
/* don't show tables of contents */
.wp-block-uagb-table-of-contents, .advgb-toc {
display: none;
}
}
I use it with News-box theme but it should work fine with any other “pretty modern” theme.
I started reading How to Create Printer-friendly Pages with CSS (local copy)
I used to run du -hsc / |sort -hr | less
but it seems that people needs this
dutree is a free, open-source command-line tool for analyzing disk usage, written in Rust programming language that reports disk usage in a tree-like format.
imagemagick – Converting a multi page pdf to multiple pages using a single command – Stack Overflow
It’s as simple as
convert x.pdf x-%04d.jpg
Where 4
means 4 digits will be show on the page count. You can change jpg to webp or whatever and ImageMagick understand it.
The codes used are the same of the printf function of standard library of the C programming language
For those who like FIrefox Send, the free-as-in-freedom, privacy conscious alternative to WeTransfer a public list of send servers may be useful: this page (on github) holds a list of public Send instances.