01 November 2025

cssUniversal.html

<style>
    body {
        margin: 0;
        background-color: rgba(0, 0, 0, 0.09);
        color: rgba(0, 0, 0, 0.6);
        font-family: sans-serif;
    }

    div.container {
        display: flex;
        justify-content: center;
        min-height: 100vh;
        padding: 1rem;
    }

    div.card {
        background-color: rgba(255, 255, 255, 1);
        max-width: 585px;
        width: 100%;
        box-shadow:
            0 4px 8px 0 rgba(0, 0, 0, 0.2),
            0 6px 20px 0 rgba(0, 0, 0, 0.19);
        padding: 1rem;
        border-radius: 4px;
    }

    h1,
    h2,
    h3 {
        margin: 1.5rem 0 0.75rem 0;
    }

    div.card {
        padding-bottom: 3rem;
    }

    .contact {
        text-align: center;
    }

    table {
        font-family: Arial, Helvetica, sans-serif;
        border-collapse: collapse;
        width: 100%;
    }
    
    td, th {
        border: 1px solid #ddd;
        padding: 8px;
    }
    
    tr:nth-child(even){background-color: #f2f2f2;}
    
    tr:hover {background-color: #ddd;}
    
    th {
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        background-color: #04AA6D;
        color: white;
    }

    @media print {
        body {
            background: white !important;
        }

        .container {
            display: block;
            min-height: auto;
            padding: 0;
            margin: 0;
        }

        .card {
            box-shadow: none !important;
            border: none;
            background: white !important;
            max-width: 100%;
            padding: 1in;
        }

        body, p, li, h1, h2, h3 {
            color: black; !important;
            font-family: "Arial", sans-serif;
        }

        nav, footer, .no-print {
            display: none !important;
        }

        a {
            color: black;
            text-decoration: none;
        }
    }
</style>

<body>
    <div class="container">
        <div class="card">
            <div class="contact">...</div>
            ...
        </div>
    </div>
</body>

28 October 2025

Beautiful Letter with Shadow

<style>
    body {
        margin: 0;
        background-color: rgba(0, 0, 0, 0.09);
        color: rgba(0, 0, 0, 0.6);
        font-family: sans-serif;
    }

    div.container {
        display: flex;
        justify-content: center;
        min-height: 100vh;
        padding: 1rem;
    }

    div.card {
        background-color: rgba(255, 255, 255, 1);
        max-width: 585px;
        width: 100%;
        box-shadow:
            0 4px 8px 0 rgba(0, 0, 0, 0.2),
            0 6px 20px 0 rgba(0, 0, 0, 0.19);
        padding: 1rem;
        border-radius: 4px;
    }

    h1,
    h2,
    h3 {
        margin: 1.5rem 0 0 0;
    }

    div.card {
        padding-bottom: 3rem;
    }

    .contact {
        text-align: center;
    }

    @media print {
        body {
            background: white !important;
        }

        .container {
            display: block;
            min-height: auto;
            padding: 0;
            margin: 0;
        }

        .card {
            box-shadow: none !important;
            border: none;
            background: white !important;
            max-width: 100%;
            padding: 1in;
        }

        body, p, li, h1, h2, h3 {
            color: black; !important;
            font-family: "Arial", sans-serif;
        }

        nav, footer, .no-print {
            display: none !important;
        }

        a {
            color: black;
            text-decoration: none;
        }
    }
</style>

<body>
    <div class="container">
        <div class="card">
            <div class="contact">...</div>
            ...
        </div>
    </div>
</body>

21 October 2025

'Job systemd-networkd-wait-online.service/start running' takes a long time

The following method worked for me -
$ ip add

Find the name of your network interface, e.g. wlp3s0

Open the file -

$ sudo systemctl disable systemd-networkd-wait-online.service

or 

$ sudo vi /usr/lib/systemd/system/systemd-networkd-wait-online.service

Edit the line -

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online

into -

ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --interface=wlp3s0

Then run the command below -

$ sudo systemctl daemon-reload

Reboot your computer.


08 September 2025

How to Transform or Say Convert Different Format of Files Such as .md, .rst, .html, .docx, .pdf, etc.?

Install 'pandoc' software

How to install pandoc?

$ sudo apt update
$ sudo apt install pandoc

 

How to use pandoc?

$ tldr pandoc 

How to Install and Use Prettier on Ubuntu?

# npm install -g prettier
 
How to make html and css and javaScript files
prettier?
 
$ prettier --write --tab-width 4 test.html