dimabagow

Web

Warm Tube WWW
Warm Tube WWW The Internet of the 2000s was warm The 2000s were a strange time. The Internet back then hadn't turned into a giant shopping mall where around every corner someone is trying to sell you something, subscribe you to another service, or push ads for success courses. It was more like a small provincial town. You visit a site built by a single person and literally feel the presence of the author. Crooked design, terrible HTML, animated GIFs, guestbook, hit counter,…
Net Homeless
Net Homeless I first got on the Internet back in 1997. It was a completely different place. No social networks, no smartphones, no corporations controlling most of the traffic. The Internet back then looked more like a giant unstructured network of enthusiasts. From the late nineties, I observed almost the entire evolution of the Web: from homepages on Geocities and Narod.ru to standalone blogs, web forums, RSS feeds, and finally to modern platform monopoly. ### Digital Tenancy vs Digital Sovereignty Today, most…
Vim Cheat Sheet
Vim Cheat Sheet Vim Cheat SheetHere is my personal cheat sheet for commands in the Vim editor that I frequently use or tend to forget.Navigation & Cursor Movement:h, j, k, l — Left, down, up, rightw — Jump forward to the start of a wordb — Jump backward to the start of a word0 — Move to the start of the line$ — Move to the end of the linegg — Go to the first line of the documentG — Go to the…
Compound Interest Calculator
Compound Interest Calculator #compound-calculator{ padding:5px 10%; font-family:'Segoe UI',system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased; --cc-bg:rgba(0,0,0,.02); --cc-border:rgba(0,0,0,.1); --cc-input-bg:#fff; --cc-text:#1a1a2e; --cc-text2:#555; --cc-label:#666; --cc-muted:#999; --cc-accent:#fff; --cc-accent-text:#111; --cc-btn2-bg:rgba(0,0,0,.04); --cc-btn2-text:#555; --cc-hover:rgba(0,0,0,.02); --cc-th-bg:rgba(0,0,0,.04); --cc-highlight:#0066cc; --cc-divider:rgba(0,0,0,.06); } body[data-theme="dark"] #compound-calculator{ --cc-bg:transparent; --cc-border:rgba(255,255,255,.08); --cc-input-bg:rgba(255,255,255,.04); --cc-text:#e0e6ed; --cc-text2:#a0b0c0; --cc-label:#7a8ea3; --cc-muted:#5a6d80; --cc-accent:#fff; --cc-accent-text:#0a0f1a; --cc-btn2-bg:rgba(255,255,255,.06); --cc-btn2-text:#8a9bb0; --cc-hover:rgba(255,255,255,.02); --cc-th-bg:rgba(255,255,255,.04); --cc-highlight:#6cb8ff; --cc-divider:rgba(255,255,255,.06); } #compound-calculator{color:var(--cc-text)} #compound-calculator, #compound-calculator *{box-sizing:border-box} .cc-inputs{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:20px; } .cc-field label{ display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--cc-label); margin-bottom:6px; } .cc-field input{ width:100%; background:var(--cc-input-bg); border:1px solid var(--cc-border); border-radius:6px; color:var(--cc-text); padding:10px 12px; font-size:16px; outline:none; transition:border-color .2s; } .cc-field input:focus{ border-color:var(--cc-highlight); }…
Learn Everything Using the Terminal
Learn Everything Using the Terminal All utilities work in terminal mode.nmon – utility with GUI interface for monitoring CPU, memory, disk i/o and other attributeshdparm -t -T /dev/sda1 – disk performancestat -f / – number of used/free blocks/inodesiostat -m -x sda 2 6 – watch load of specified disk (sysstat package)vmstat -S M 2 50 – watch resource statistics/consumptionfree -m (cache column – memory occupied by FS cache)cat /proc/meminfo – information about RAMcat /proc/cpuinfo – information about CPUcat /proc/interrupts – who generates more interruptscat /proc/net/dev…
WordPress to a New Domain
WordPress to a New Domain Transferring WordPress to a New Domain Sometimes it becomes necessary to change the site domain without changing the site itself. The content remains the same, the structure of links does not change, but the address becomes different. At first glance the task looks simple, however if you do something wrong, you can lose part of the traffic, search engine positions, or get a lot of indexing problems. Conventionally, the process can be divided into two parts: Transferring WordPress to a…
Engine for a Blog
Engine for a Blog When creating a blog, I faced the choice of how and where to run it. Despite the fact that blogs were predicted to quickly decline in popularity, they stayed afloat (hello from 2015, everything happened as predicted). Moreover, they became the most popular type of web page. More and more people want to express their thoughts, share them with others, and express their creative emotions.So what is still better to choose? For WordPress engine there is simply a huge number of…
WP Posts from Custom Field
WP Posts from Custom Field Outputting posts turned out to be not so simple, especially from a specific category selected by the editor in a custom field. Spent about 2 hours to pull out what I need in the form I wanted:<?php $catid = get_field('proizvolnoe_pole', $term); ?><?php $posts = get_posts ("category=$catid&orderby=date&numberposts=10"); ?><?php if ($posts) : ?> <?php foreach ($posts as $post) : setup_postdata ($post); ?><a href="<?php the_permalink(); ?>"><?php the_title(); ?>$catid - variable in which we save the custom field value.get_field - function returning field value.proizvolnoe_pole…