mirror of
https://github.com/balkian/balkian.github.com.git
synced 2025-08-24 04:32:20 +00:00
Deploying to gh-pages from @ balkian/balkian.github.com@2b54cecdab 🚀
This commit is contained in:
33
categories/index.html
Normal file
33
categories/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!doctype html><html lang=en-us dir=ltr><head><meta charset=utf-8><meta name=viewport content='width=device-width,initial-scale=1'><meta name=description content="My ramblings and reflections"><title>Categories</title><link rel=canonical href=https://balkian.com/categories/><link rel=stylesheet href=/scss/style.min.2882a282de220283d6a6763f309d88473c8c934a66d2f8fcb45ce0bfac2af61a.css><meta property='og:title' content="Categories"><meta property='og:description' content="My ramblings and reflections"><meta property='og:url' content='https://balkian.com/categories/'><meta property='og:site_name' content='J. Fernando Sánchez'><meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-07-20T02:30:43+02:00 '><meta name=twitter:title content="Categories"><meta name=twitter:description content="My ramblings and reflections"><link rel=alternate type=application/rss+xml href=https://balkian.com/categories/index.xml><link rel="shortcut icon" href=/img/favicon.ico></head><body><script>(function(){const e="StackColorScheme";localStorage.getItem(e)||localStorage.setItem(e,"auto")})()</script><script>(function(){const t="StackColorScheme",e=localStorage.getItem(t),n=window.matchMedia("(prefers-color-scheme: dark)").matches===!0;e=="dark"||e==="auto"&&n?document.documentElement.dataset.scheme="dark":document.documentElement.dataset.scheme="light"})()</script><div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky"><button class="hamburger hamburger--spin" type=button id=toggle-menu aria-label="Toggle Menu">
|
||||
<span class=hamburger-box><span class=hamburger-inner></span></span></button><header><figure class=site-avatar><a href=/><img src=/img/me_hu_57f477f2a0e68f7e.png width=300 height=300 class=site-logo loading=lazy alt=Avatar>
|
||||
</a><span class=emoji>💭</span></figure><div class=site-meta><h1 class=site-name><a href=/>J. Fernando Sánchez</a></h1><h2 class=site-description>My ramblings and reflections</h2></div></header><ol class=menu-social><li><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank title=GitHub rel=me><svg class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6.0 00-1.3-3.2 4.2 4.2.0 00-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3.0 00-6.2.0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2.0 00-.1 3.2A4.6 4.6.0 004 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg></a></li><li><a href=https://git.sinpapel.es/balkian target=_blank title=gitea rel=me><svg viewBox="0 0 640 640" width="32" height="32"><path d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12" style="fill:#fff"/><path d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9.0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6M125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1m300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1" style="fill:#609926"/><path d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8s2 16.3 9.1 20c7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3s17.4 1.7 22.5-5.3c5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8z" style="fill:#609926"/></svg></a></li><li><a href='https://scholar.google.com/citations?user=JLNusZ8AAAAJ&hl=en' target=_blank title="Google scholar" rel=me><svg aria-label="Google Scholar" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#4285f4"/><path fill="#fff" d="M213 111l-107 94h69c5 45 41 64 78 67-7 18-4 27 7 39-43 1-103 26-103 67 4 45 63 54 92 54 38 1 81-19 90-54 4-35-10-54-31-71-23-18-28-28-21-40 15-17 35-27 39-51 2-17-2-28-6-43l45-38-1 16c-3 2-5 6-5 9v103c2 13 22 11 23 0V160c0-3-2-7-5-8v-25l16-16zm58 141c-61 10-87-87-38-99 56-11 83 86 38 99zm-5 73c60 13 61 63 10 78-44 9-82-4-81-30 0-25 35-48 71-48z"/></svg></a></li></ol><ol class=menu id=main-menu><li><a href=/><svg class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="5 12 3 12 12 3 21 12 19 12"/><path d="M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"/><path d="M9 21v-6a2 2 0 012-2h2a2 2 0 012 2v6"/></svg>
|
||||
<span>Home</span></a></li><li><a href=/search/><svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg>
|
||||
<span>Search</span></a></li><li><a href=/links/><svg class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5.0 005 0l4-4a3.5 3.5.0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5.0 00-5 0l-4 4a3.5 3.5.0 005 5l.5-.5"/></svg>
|
||||
<span>Links</span></a></li><li><a href=/cheatsheet/><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg>
|
||||
<span>Cheatsheets</span></a></li><li><a href=/projects/><svg class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
|
||||
<span>Projects</span></a></li><li><a href=/archives/><svg class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><rect x="3" y="4" width="18" height="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8"/><line x1="10" y1="12" x2="14" y2="12"/></svg>
|
||||
<span>Archives</span></a></li><li><a href=/about/><svg class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>
|
||||
<span>About</span></a></li><li class=menu-bottom-section><ol class=menu><li id=dark-mode-toggle><svg class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="8" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<svg class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="16" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<span>Dark Mode</span></li></ol></li></ol></aside><aside class="sidebar right-sidebar sticky"><form action=/search/ class="search-form widget"><p><label>Search</label>
|
||||
<input name=keyword required placeholder="Type something...">
|
||||
<button title=Search>
|
||||
<svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg></button></p></form><section class="widget archives"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg></div><h2 class="widget-title section-title">Archives</h2><div class=widget-archive--list><div class=archives-year><a href=/archives/#2025><span class=year>2025</span>
|
||||
<span class=count>5</span></a></div><div class=archives-year><a href=/archives/#2023><span class=year>2023</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2021><span class=year>2021</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2019><span class=year>2019</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2016><span class=year>2016</span>
|
||||
<span class=count>1</span></a></div><div class=archives-year><a href=/archives/#2015><span class=year>More</span></a></div></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><line x1="5" y1="9" x2="19" y2="9"/><line x1="5" y1="15" x2="19" y2="15"/><line x1="11" y1="4" x2="7" y2="20"/><line x1="17" y1="4" x2="13" y2="20"/></svg></div><h2 class="widget-title section-title">Categories</h2><div class=tagCloud-tags><a href=/categories/linux/ class=font_size_3>Linux
|
||||
</a><a href=/categories/programming/ class=font_size_3>Programming
|
||||
</a><a href=/categories/reflections/ class=font_size_1>Reflections</a></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-tag" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M11 3l9 9a1.5 1.5.0 010 2l-6 6a1.5 1.5.0 01-2 0L3 11V7a4 4 0 014-4h4"/><circle cx="9" cy="9" r="2"/></svg></div><h2 class="widget-title section-title">Tags</h2><div class=tagCloud-tags><a href=/tags/python/ class=font_size_8>Python
|
||||
</a><a href=/tags/linux/ class=font_size_5>Linux
|
||||
</a><a href=/tags/git/ class=font_size_3>Git
|
||||
</a><a href=/tags/github/ class=font_size_3>Github
|
||||
</a><a href=/tags/keyboard/ class=font_size_3>Keyboard
|
||||
</a><a href=/tags/logitech/ class=font_size_3>Logitech
|
||||
</a><a href=/tags/apache/ class=font_size_2>Apache
|
||||
</a><a href=/tags/javascript/ class=font_size_2>Javascript
|
||||
</a><a href=/tags/snippet/ class=font_size_2>Snippet
|
||||
</a><a href=/tags/arch/ class=font_size_1>Arch</a></div></section></aside><main class="main full-width"><header><h3 class=section-title>Section</h3><div class=section-card><div class=section-details><h3 class=section-count>3 pages</h3><h1 class=section-term>Categories</h1></div></div></header><section class=article-list--compact><article><a href=/categories/reflections/><div class=article-details><h2 class=article-title>Reflections</h2><footer class=article-time><time datetime=5007-03-05T09:25:54+01:00>05 Mar 2025</time></footer></div></a></article><article><a href=/categories/programming/><div class=article-details><h2 class=article-title>Programming</h2><footer class=article-time><time datetime=26007-02-26T23:22:59+01:00>26 Feb 2025</time></footer></div></a></article><article><a href=/categories/linux/><div class=article-details><h2 class=article-title>Linux</h2><footer class=article-time><time datetime=1007-06-01T00:00:01Z>01 Jun 2019</time></footer></div></a></article></section><footer class=site-footer><section class=copyright>©
|
||||
2012 -
|
||||
2025 J. Fernando Sánchez</section><section class=powerby>Built with <a href=https://gohugo.io/ target=_blank rel=noopener>Hugo</a><br>Theme <b><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank rel=noopener data-version=3.30.0>Stack</a></b> designed by <a href=https://jimmycai.com target=_blank rel=noopener>Jimmy</a></section></footer></main></div><script src=https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=" crossorigin=anonymous></script><script type=text/javascript src=/ts/main.1e9a3bafd846ced4c345d084b355fb8c7bae75701c338f8a1f8a82c780137826.js defer></script><script>(function(){const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e)})()</script></body></html>
|
1
categories/index.xml
Normal file
1
categories/index.xml
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Categories on J. Fernando Sánchez</title><link>https://balkian.com/categories/</link><description>Recent content in Categories on J. Fernando Sánchez</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 05 Mar 2025 09:25:54 +0100</lastBuildDate><atom:link href="https://balkian.com/categories/index.xml" rel="self" type="application/rss+xml"/><item><title>Reflections</title><link>https://balkian.com/categories/reflections/</link><pubDate>Wed, 05 Mar 2025 09:25:54 +0100</pubDate><guid>https://balkian.com/categories/reflections/</guid><description/></item><item><title>Programming</title><link>https://balkian.com/categories/programming/</link><pubDate>Wed, 26 Feb 2025 23:22:59 +0100</pubDate><guid>https://balkian.com/categories/programming/</guid><description/></item><item><title>Linux</title><link>https://balkian.com/categories/linux/</link><pubDate>Sat, 01 Jun 2019 00:00:01 +0000</pubDate><guid>https://balkian.com/categories/linux/</guid><description/></item></channel></rss>
|
33
categories/linux/index.html
Normal file
33
categories/linux/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!doctype html><html lang=en-us dir=ltr><head><meta charset=utf-8><meta name=viewport content='width=device-width,initial-scale=1'><meta name=description content="Posts related to installing, maintaining and running GNU/Linux"><title>Category: Linux - J. Fernando Sánchez</title><link rel=canonical href=https://balkian.com/categories/linux/><link rel=stylesheet href=/scss/style.min.2882a282de220283d6a6763f309d88473c8c934a66d2f8fcb45ce0bfac2af61a.css><meta property='og:title' content="Category: Linux - J. Fernando Sánchez"><meta property='og:description' content="Posts related to installing, maintaining and running GNU/Linux"><meta property='og:url' content='https://balkian.com/categories/linux/'><meta property='og:site_name' content='J. Fernando Sánchez'><meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-07-20T02:30:43+02:00 '><meta name=twitter:title content="Category: Linux - J. Fernando Sánchez"><meta name=twitter:description content="Posts related to installing, maintaining and running GNU/Linux"><link rel=alternate type=application/rss+xml href=https://balkian.com/categories/linux/index.xml><link rel="shortcut icon" href=/img/favicon.ico></head><body><script>(function(){const e="StackColorScheme";localStorage.getItem(e)||localStorage.setItem(e,"auto")})()</script><script>(function(){const t="StackColorScheme",e=localStorage.getItem(t),n=window.matchMedia("(prefers-color-scheme: dark)").matches===!0;e=="dark"||e==="auto"&&n?document.documentElement.dataset.scheme="dark":document.documentElement.dataset.scheme="light"})()</script><div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky"><button class="hamburger hamburger--spin" type=button id=toggle-menu aria-label="Toggle Menu">
|
||||
<span class=hamburger-box><span class=hamburger-inner></span></span></button><header><figure class=site-avatar><a href=/><img src=/img/me_hu_57f477f2a0e68f7e.png width=300 height=300 class=site-logo loading=lazy alt=Avatar>
|
||||
</a><span class=emoji>💭</span></figure><div class=site-meta><h1 class=site-name><a href=/>J. Fernando Sánchez</a></h1><h2 class=site-description>My ramblings and reflections</h2></div></header><ol class=menu-social><li><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank title=GitHub rel=me><svg class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6.0 00-1.3-3.2 4.2 4.2.0 00-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3.0 00-6.2.0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2.0 00-.1 3.2A4.6 4.6.0 004 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg></a></li><li><a href=https://git.sinpapel.es/balkian target=_blank title=gitea rel=me><svg viewBox="0 0 640 640" width="32" height="32"><path d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12" style="fill:#fff"/><path d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9.0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6M125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1m300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1" style="fill:#609926"/><path d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8s2 16.3 9.1 20c7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3s17.4 1.7 22.5-5.3c5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8z" style="fill:#609926"/></svg></a></li><li><a href='https://scholar.google.com/citations?user=JLNusZ8AAAAJ&hl=en' target=_blank title="Google scholar" rel=me><svg aria-label="Google Scholar" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#4285f4"/><path fill="#fff" d="M213 111l-107 94h69c5 45 41 64 78 67-7 18-4 27 7 39-43 1-103 26-103 67 4 45 63 54 92 54 38 1 81-19 90-54 4-35-10-54-31-71-23-18-28-28-21-40 15-17 35-27 39-51 2-17-2-28-6-43l45-38-1 16c-3 2-5 6-5 9v103c2 13 22 11 23 0V160c0-3-2-7-5-8v-25l16-16zm58 141c-61 10-87-87-38-99 56-11 83 86 38 99zm-5 73c60 13 61 63 10 78-44 9-82-4-81-30 0-25 35-48 71-48z"/></svg></a></li></ol><ol class=menu id=main-menu><li><a href=/><svg class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="5 12 3 12 12 3 21 12 19 12"/><path d="M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"/><path d="M9 21v-6a2 2 0 012-2h2a2 2 0 012 2v6"/></svg>
|
||||
<span>Home</span></a></li><li><a href=/search/><svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg>
|
||||
<span>Search</span></a></li><li><a href=/links/><svg class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5.0 005 0l4-4a3.5 3.5.0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5.0 00-5 0l-4 4a3.5 3.5.0 005 5l.5-.5"/></svg>
|
||||
<span>Links</span></a></li><li><a href=/cheatsheet/><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg>
|
||||
<span>Cheatsheets</span></a></li><li><a href=/projects/><svg class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
|
||||
<span>Projects</span></a></li><li><a href=/archives/><svg class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><rect x="3" y="4" width="18" height="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8"/><line x1="10" y1="12" x2="14" y2="12"/></svg>
|
||||
<span>Archives</span></a></li><li><a href=/about/><svg class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>
|
||||
<span>About</span></a></li><li class=menu-bottom-section><ol class=menu><li id=dark-mode-toggle><svg class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="8" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<svg class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="16" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<span>Dark Mode</span></li></ol></li></ol></aside><aside class="sidebar right-sidebar sticky"><form action=/search/ class="search-form widget"><p><label>Search</label>
|
||||
<input name=keyword required placeholder="Type something...">
|
||||
<button title=Search>
|
||||
<svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg></button></p></form><section class="widget archives"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg></div><h2 class="widget-title section-title">Archives</h2><div class=widget-archive--list><div class=archives-year><a href=/archives/#2025><span class=year>2025</span>
|
||||
<span class=count>5</span></a></div><div class=archives-year><a href=/archives/#2023><span class=year>2023</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2021><span class=year>2021</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2019><span class=year>2019</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2016><span class=year>2016</span>
|
||||
<span class=count>1</span></a></div><div class=archives-year><a href=/archives/#2015><span class=year>More</span></a></div></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><line x1="5" y1="9" x2="19" y2="9"/><line x1="5" y1="15" x2="19" y2="15"/><line x1="11" y1="4" x2="7" y2="20"/><line x1="17" y1="4" x2="13" y2="20"/></svg></div><h2 class="widget-title section-title">Categories</h2><div class=tagCloud-tags><a href=/categories/linux/ class=font_size_3>Linux
|
||||
</a><a href=/categories/programming/ class=font_size_3>Programming
|
||||
</a><a href=/categories/reflections/ class=font_size_1>Reflections</a></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-tag" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M11 3l9 9a1.5 1.5.0 010 2l-6 6a1.5 1.5.0 01-2 0L3 11V7a4 4 0 014-4h4"/><circle cx="9" cy="9" r="2"/></svg></div><h2 class="widget-title section-title">Tags</h2><div class=tagCloud-tags><a href=/tags/python/ class=font_size_8>Python
|
||||
</a><a href=/tags/linux/ class=font_size_5>Linux
|
||||
</a><a href=/tags/git/ class=font_size_3>Git
|
||||
</a><a href=/tags/github/ class=font_size_3>Github
|
||||
</a><a href=/tags/keyboard/ class=font_size_3>Keyboard
|
||||
</a><a href=/tags/logitech/ class=font_size_3>Logitech
|
||||
</a><a href=/tags/apache/ class=font_size_2>Apache
|
||||
</a><a href=/tags/javascript/ class=font_size_2>Javascript
|
||||
</a><a href=/tags/snippet/ class=font_size_2>Snippet
|
||||
</a><a href=/tags/arch/ class=font_size_1>Arch</a></div></section></aside><main class="main full-width"><header><h3 class=section-title>Categories</h3><div class=section-card><div class=section-details><h3 class=section-count>3 pages</h3><h1 class=section-term>Linux</h1><h2 class=section-description>Posts related to installing, maintaining and running GNU/Linux</h2></div></div></header><section class=article-list--compact><article><a href=/p/linux-on-the-microsoft-surface-go/><div class=article-details><h2 class=article-title>Linux on the Microsoft Surface Go</h2><footer class=article-time><time datetime=1007-06-01T00:00:01Z>01 Jun 2019</time></footer></div></a></article><article><a href=/p/fixing-hdmi-flickering/><div class=article-details><h2 class=article-title>Fixing HDMI flickering</h2><footer class=article-time></footer></div><div class=article-image><img src=/img/rpi.png loading=lazy alt="Featured image of post Fixing HDMI flickering"></div></a></article><article><a href=/cheatsheet/linux/><div class=article-details><h2 class=article-title>Linux Cheatsheet</h2><footer class=article-time></footer></div><div class=article-image><img src=/img/linux.png loading=lazy alt="Featured image of post Linux Cheatsheet"></div></a></article></section><footer class=site-footer><section class=copyright>©
|
||||
2012 -
|
||||
2025 J. Fernando Sánchez</section><section class=powerby>Built with <a href=https://gohugo.io/ target=_blank rel=noopener>Hugo</a><br>Theme <b><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank rel=noopener data-version=3.30.0>Stack</a></b> designed by <a href=https://jimmycai.com target=_blank rel=noopener>Jimmy</a></section></footer></main></div><script src=https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=" crossorigin=anonymous></script><script type=text/javascript src=/ts/main.1e9a3bafd846ced4c345d084b355fb8c7bae75701c338f8a1f8a82c780137826.js defer></script><script>(function(){const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e)})()</script></body></html>
|
249
categories/linux/index.xml
Normal file
249
categories/linux/index.xml
Normal file
@@ -0,0 +1,249 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on J. Fernando Sánchez</title><link>https://balkian.com/categories/linux/</link><description>Recent content in Linux on J. Fernando Sánchez</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 01 Jun 2019 00:00:01 +0000</lastBuildDate><atom:link href="https://balkian.com/categories/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux on the Microsoft Surface Go</title><link>https://balkian.com/p/linux-on-the-microsoft-surface-go/</link><pubDate>Sat, 01 Jun 2019 00:00:01 +0000</pubDate><guid>https://balkian.com/p/linux-on-the-microsoft-surface-go/</guid><description><p>Believe it or not, Surface tablets have pretty good linux support, except for the webcams in newer models.
|
||||
These are some useful notes to get Ubuntu installed in your surface go, as of Summer 2019.</p>
|
||||
<h2 id="installing-the-kernel">Installing the kernel
|
||||
</h2><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">git clone --depth <span class="m">1</span> https://github.com/jakeday/linux-surface.git ~/linux-surface
|
||||
</span></span><span class="line"><span class="cl">cp -a ~/linux-surface /media/&lt;your usb&gt;
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">cp -a /media/&lt;your usb&gt;/linux-surface ~/
|
||||
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> ~/linux-surface/
|
||||
</span></span><span class="line"><span class="cl">sudo sh setup.sh
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><h2 id="booting-ubuntu-first">Booting ubuntu first
|
||||
</h2><p>Switch out of Windows S mode.</p>
|
||||
<p>Boot into the &ldquo;Command Prompt&rdquo;.</p>
|
||||
<p>From Windows go to &ldquo;change advanced startup options&rdquo; and select &ldquo;restart now&rdquo;.</p>
|
||||
<p>When it reboots, choose the &ldquo;Troubleshoot&rdquo; option, then choose the &ldquo;Advanced options&rdquo; option, and finally choose the &ldquo;Command Prompt&rdquo; option.</p>
|
||||
<p>After the device reboots, login to the command prompt and then you should see a terminal with X:\windows\system32&gt;</p>
|
||||
<p>At the prompt, check your UEFI entries:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">bcdedit /enum firmware
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Copy UEFI entry of &ldquo;Windows Boot Manager&rdquo; to create a new entry for Ubuntu: bcdedit /copy {bootmgr} /d &ldquo;Ubuntu&rdquo;</p>
|
||||
<p>Copy the printed GUID number including the braces {} using Ctrl+C</p>
|
||||
<p>Set file path for the new Ubuntu entry. Replace {guid} with the returned GUID of the previous command (Ctrl+V). bcdedit /set {guid} path \EFI\ubuntu\grubx64.efi</p>
|
||||
<p>Set Ubuntu as the first/ entry in the boot sequence. Again replace {guid} with the returned GUID of the copy command.</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">bcdedit /set <span class="o">{</span>fwbootmgr<span class="o">}</span> displayorder <span class="o">{</span>guid<span class="o">}</span> /addfirst
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Check your UEFI entries again: bcdedit /enum firmware You should see something like this:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
|
||||
</span><span class="lnt"> 2
|
||||
</span><span class="lnt"> 3
|
||||
</span><span class="lnt"> 4
|
||||
</span><span class="lnt"> 5
|
||||
</span><span class="lnt"> 6
|
||||
</span><span class="lnt"> 7
|
||||
</span><span class="lnt"> 8
|
||||
</span><span class="lnt"> 9
|
||||
</span><span class="lnt">10
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl">Firmware Boot Manager
|
||||
</span></span><span class="line"><span class="cl">---------------------
|
||||
</span></span><span class="line"><span class="cl">identifier <span class="o">{</span>fwbootmgr<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl">displayorder <span class="o">{</span>3510232e-f8eb-e811-95ce-9ecab3f9d1c4<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="o">{</span>bootmgr<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="o">{</span>2148799b-f8eb-e811-95ce-9ecab3f9d1c4<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="o">{</span>312e8a67-c2f6-e811-95ce-3c1ab3f9d1de<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="o">{</span>312e8a68-c2f6-e811-95ce-3c1ab3f9d1de<span class="o">}</span>
|
||||
</span></span><span class="line"><span class="cl">timeout <span class="m">0</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Make sure the GUID you copied is the first one listed in displayorder. Then type exit, turn off the PC and turn it back on. After this my surface go is automatically booting to the grub bootloader which lets me choose between Windows and Ubuntu but defaults to Ubuntu after ten seconds.</p></description></item><item><title>Fixing HDMI flickering</title><link>https://balkian.com/p/fixing-hdmi-flickering/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://balkian.com/p/fixing-hdmi-flickering/</guid><description><img src="https://balkian.com/img/rpi.png" alt="Featured image of post Fixing HDMI flickering" /><p>Use this config to avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span><span class="lnt">6
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl"> <span class="n">hdmi_drive</span><span class="o">=</span><span class="mi">2</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="n">hdmi_group</span><span class="o">=</span><span class="mi">2</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="n">hdmi_mode</span><span class="o">=</span><span class="mi">42</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="n">disable_overscan</span><span class="o">=</span><span class="mi">1</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="n">config_hdmi_boost</span><span class="o">=</span><span class="mi">7</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div></description></item><item><title>Linux Cheatsheet</title><link>https://balkian.com/cheatsheet/linux/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://balkian.com/cheatsheet/linux/</guid><description><img src="https://balkian.com/img/linux.png" alt="Featured image of post Linux Cheatsheet" /><h2 id="black-screen-and-lightdm-doesnt-unlock">Black screen and LightDM doesn&rsquo;t unlock
|
||||
</h2><p>Add this to your /etc/lightdm/lightdm.conf file:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-cfg" data-lang="cfg"><span class="line"><span class="cl"><span class="k">[LightDM]</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="na">logind-check-graphical</span><span class="o">=</span><span class="s">true</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>##Edit previous commands</p>
|
||||
<p><code>fc</code> is a shell builtin to list and edit previous commands in an editor.
|
||||
In addition to editing a single line (which you can also do with <code>C-x C-e</code>), it also allows you to edit and run several lines at the same time.
|
||||
You use it like this:</p>
|
||||
<p>List previous commands</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ <span class="nb">fc</span> -l
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10259</span> nvim deploy.sh
|
||||
</span></span><span class="line"><span class="cl">10260* <span class="nb">cd</span> ..
|
||||
</span></span><span class="line"><span class="cl">10261* nvim content/cheatsheet/linux.md
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10262</span> <span class="nb">cd</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>List commands with date (in zsh)</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ <span class="nb">fc</span> -ld
|
||||
</span></span><span class="line"><span class="cl">10260* 19:38 <span class="nb">cd</span> ..
|
||||
</span></span><span class="line"><span class="cl">10261* 19:38 nvim content/cheatsheet/linux.md
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10262</span> 19:40 <span class="nb">cd</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10263</span> 19:40 <span class="nb">fc</span> -l
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>You can add the date too:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ <span class="nb">fc</span> -fld
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10262</span> 1/10/2019 19:40 <span class="nb">cd</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10263</span> 1/10/2019 19:40 <span class="nb">fc</span> -l
|
||||
</span></span><span class="line"><span class="cl"><span class="m">10264</span> 1/10/2019 19:40 <span class="nb">fc</span> -ld
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>You can edit a range of commands</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ <span class="nb">fc</span> <span class="m">10262</span> <span class="m">10264</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>The range can be relative to the current position, so the previous command is equivalent to:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">$ <span class="nb">fc</span> -3 -1
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>If you save and exit, all commands are executed as a script, and it will be added to your history.</p>
|
||||
<p>Source: <a class="link" href="https://shapeshed.com/unix-fc/" target="_blank" rel="noopener"
|
||||
>https://shapeshed.com/unix-fc/</a></p>
|
||||
<h2 id="prevent-logoff-from-killing-tmux-sessions">Prevent logoff from killing tmux sessions
|
||||
</h2><p>Lately I&rsquo;ve noticed that logging out of i3, intentionally or when i3 fails, would also kill any tmux or emacs sessions.
|
||||
This is extremely annoying.</p>
|
||||
<p>This is caused by a new default in logind (systemd&rsquo;s login) to kill user process on logoff.
|
||||
You can revert this setting in your logind.conf (<code>/etc/systemd/logind.conf</code>):</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-cfg" data-lang="cfg"><span class="line"><span class="cl"><span class="na">KillUserProcesses</span><span class="o">=</span><span class="s">no</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Or only for a specific process (e.g., tmux):</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">systemd-run --scope --user tmux
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Source: <a class="link" href="https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session" target="_blank" rel="noopener"
|
||||
>https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session</a></p>
|
||||
<h2 id="upload-a-temporary-file">Upload a temporary file
|
||||
</h2><p>Sometimes you just need to copy/paste a file from a server, and copying from the terminal can be a hassle.
|
||||
These two services are command-line &ldquo;pastebins&rdquo; just one curl away:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span><span class="lnt">6
|
||||
</span><span class="lnt">7
|
||||
</span><span class="lnt">8
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">&lt;command&gt; <span class="p">|</span> curl -F <span class="s1">&#39;sprunge=&lt;-&#39;</span> http://sprunge.us
|
||||
</span></span><span class="line"><span class="cl"><span class="c1"># OR</span>
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl">&lt;command&gt; 2&gt;<span class="p">&amp;</span><span class="m">1</span> <span class="p">|</span> curl -F <span class="s1">&#39;f:1=&lt;-&#39;</span> ix.io
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl"><span class="c1"># OR</span>
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl">&lt;command&gt; <span class="p">|</span> curl -F<span class="s2">&#34;file=@-&#34;</span> https://ttm.sh
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><h1 id="install-fortinet-sslvpn-support-for-networkmanager">Install Fortinet SSLVPN support for NetworkManager
|
||||
</h1><p>UPM (Universidad Politécnica de Madrid) uses a propriatary VPN solution.
|
||||
The instructions for GNU/Linux on their website involve downloading a specific client (<code>.tar.gz</code>) and manually running it.
|
||||
That works, but it is kind of a hassle.
|
||||
A much more convenient alternative is installing this NetworkManager plugin:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">pacman -Sy networkmanager-fortisslvpn
|
||||
</span></span><span class="line"><span class="cl"><span class="c1"># Or apt get install networkmanager-fortisslvpn </span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Now you can simply add a new VPN connection in NetworkManager and manage it as you would any other connection.</p></description></item></channel></rss>
|
1
categories/linux/page/1/index.html
Normal file
1
categories/linux/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>https://balkian.com/categories/linux/</title><link rel=canonical href=https://balkian.com/categories/linux/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://balkian.com/categories/linux/"></head></html>
|
1
categories/page/1/index.html
Normal file
1
categories/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>https://balkian.com/categories/</title><link rel=canonical href=https://balkian.com/categories/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://balkian.com/categories/"></head></html>
|
33
categories/programming/index.html
Normal file
33
categories/programming/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!doctype html><html lang=en-us dir=ltr><head><meta charset=utf-8><meta name=viewport content='width=device-width,initial-scale=1'><meta name=description content="Posts related to programming languages"><title>Category: Programming - J. Fernando Sánchez</title><link rel=canonical href=https://balkian.com/categories/programming/><link rel=stylesheet href=/scss/style.min.2882a282de220283d6a6763f309d88473c8c934a66d2f8fcb45ce0bfac2af61a.css><meta property='og:title' content="Category: Programming - J. Fernando Sánchez"><meta property='og:description' content="Posts related to programming languages"><meta property='og:url' content='https://balkian.com/categories/programming/'><meta property='og:site_name' content='J. Fernando Sánchez'><meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-07-20T02:30:43+02:00 '><meta name=twitter:title content="Category: Programming - J. Fernando Sánchez"><meta name=twitter:description content="Posts related to programming languages"><link rel=alternate type=application/rss+xml href=https://balkian.com/categories/programming/index.xml><link rel="shortcut icon" href=/img/favicon.ico></head><body><script>(function(){const e="StackColorScheme";localStorage.getItem(e)||localStorage.setItem(e,"auto")})()</script><script>(function(){const t="StackColorScheme",e=localStorage.getItem(t),n=window.matchMedia("(prefers-color-scheme: dark)").matches===!0;e=="dark"||e==="auto"&&n?document.documentElement.dataset.scheme="dark":document.documentElement.dataset.scheme="light"})()</script><div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky"><button class="hamburger hamburger--spin" type=button id=toggle-menu aria-label="Toggle Menu">
|
||||
<span class=hamburger-box><span class=hamburger-inner></span></span></button><header><figure class=site-avatar><a href=/><img src=/img/me_hu_57f477f2a0e68f7e.png width=300 height=300 class=site-logo loading=lazy alt=Avatar>
|
||||
</a><span class=emoji>💭</span></figure><div class=site-meta><h1 class=site-name><a href=/>J. Fernando Sánchez</a></h1><h2 class=site-description>My ramblings and reflections</h2></div></header><ol class=menu-social><li><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank title=GitHub rel=me><svg class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6.0 00-1.3-3.2 4.2 4.2.0 00-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3.0 00-6.2.0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2.0 00-.1 3.2A4.6 4.6.0 004 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg></a></li><li><a href=https://git.sinpapel.es/balkian target=_blank title=gitea rel=me><svg viewBox="0 0 640 640" width="32" height="32"><path d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12" style="fill:#fff"/><path d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9.0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6M125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1m300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1" style="fill:#609926"/><path d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8s2 16.3 9.1 20c7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3s17.4 1.7 22.5-5.3c5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8z" style="fill:#609926"/></svg></a></li><li><a href='https://scholar.google.com/citations?user=JLNusZ8AAAAJ&hl=en' target=_blank title="Google scholar" rel=me><svg aria-label="Google Scholar" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#4285f4"/><path fill="#fff" d="M213 111l-107 94h69c5 45 41 64 78 67-7 18-4 27 7 39-43 1-103 26-103 67 4 45 63 54 92 54 38 1 81-19 90-54 4-35-10-54-31-71-23-18-28-28-21-40 15-17 35-27 39-51 2-17-2-28-6-43l45-38-1 16c-3 2-5 6-5 9v103c2 13 22 11 23 0V160c0-3-2-7-5-8v-25l16-16zm58 141c-61 10-87-87-38-99 56-11 83 86 38 99zm-5 73c60 13 61 63 10 78-44 9-82-4-81-30 0-25 35-48 71-48z"/></svg></a></li></ol><ol class=menu id=main-menu><li><a href=/><svg class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="5 12 3 12 12 3 21 12 19 12"/><path d="M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"/><path d="M9 21v-6a2 2 0 012-2h2a2 2 0 012 2v6"/></svg>
|
||||
<span>Home</span></a></li><li><a href=/search/><svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg>
|
||||
<span>Search</span></a></li><li><a href=/links/><svg class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5.0 005 0l4-4a3.5 3.5.0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5.0 00-5 0l-4 4a3.5 3.5.0 005 5l.5-.5"/></svg>
|
||||
<span>Links</span></a></li><li><a href=/cheatsheet/><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg>
|
||||
<span>Cheatsheets</span></a></li><li><a href=/projects/><svg class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
|
||||
<span>Projects</span></a></li><li><a href=/archives/><svg class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><rect x="3" y="4" width="18" height="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8"/><line x1="10" y1="12" x2="14" y2="12"/></svg>
|
||||
<span>Archives</span></a></li><li><a href=/about/><svg class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>
|
||||
<span>About</span></a></li><li class=menu-bottom-section><ol class=menu><li id=dark-mode-toggle><svg class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="8" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<svg class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="16" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<span>Dark Mode</span></li></ol></li></ol></aside><aside class="sidebar right-sidebar sticky"><form action=/search/ class="search-form widget"><p><label>Search</label>
|
||||
<input name=keyword required placeholder="Type something...">
|
||||
<button title=Search>
|
||||
<svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg></button></p></form><section class="widget archives"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg></div><h2 class="widget-title section-title">Archives</h2><div class=widget-archive--list><div class=archives-year><a href=/archives/#2025><span class=year>2025</span>
|
||||
<span class=count>5</span></a></div><div class=archives-year><a href=/archives/#2023><span class=year>2023</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2021><span class=year>2021</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2019><span class=year>2019</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2016><span class=year>2016</span>
|
||||
<span class=count>1</span></a></div><div class=archives-year><a href=/archives/#2015><span class=year>More</span></a></div></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><line x1="5" y1="9" x2="19" y2="9"/><line x1="5" y1="15" x2="19" y2="15"/><line x1="11" y1="4" x2="7" y2="20"/><line x1="17" y1="4" x2="13" y2="20"/></svg></div><h2 class="widget-title section-title">Categories</h2><div class=tagCloud-tags><a href=/categories/linux/ class=font_size_3>Linux
|
||||
</a><a href=/categories/programming/ class=font_size_3>Programming
|
||||
</a><a href=/categories/reflections/ class=font_size_1>Reflections</a></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-tag" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M11 3l9 9a1.5 1.5.0 010 2l-6 6a1.5 1.5.0 01-2 0L3 11V7a4 4 0 014-4h4"/><circle cx="9" cy="9" r="2"/></svg></div><h2 class="widget-title section-title">Tags</h2><div class=tagCloud-tags><a href=/tags/python/ class=font_size_8>Python
|
||||
</a><a href=/tags/linux/ class=font_size_5>Linux
|
||||
</a><a href=/tags/git/ class=font_size_3>Git
|
||||
</a><a href=/tags/github/ class=font_size_3>Github
|
||||
</a><a href=/tags/keyboard/ class=font_size_3>Keyboard
|
||||
</a><a href=/tags/logitech/ class=font_size_3>Logitech
|
||||
</a><a href=/tags/apache/ class=font_size_2>Apache
|
||||
</a><a href=/tags/javascript/ class=font_size_2>Javascript
|
||||
</a><a href=/tags/snippet/ class=font_size_2>Snippet
|
||||
</a><a href=/tags/arch/ class=font_size_1>Arch</a></div></section></aside><main class="main full-width"><header><h3 class=section-title>Categories</h3><div class=section-card><div class=section-details><h3 class=section-count>3 pages</h3><h1 class=section-term>Programming</h1><h2 class=section-description>Posts related to programming languages</h2></div></div></header><section class=article-list--compact><article><a href=/p/bridging-rdf-json-ld-and-dataclasses/><div class=article-details><h2 class=article-title>Bridging RDF, JSON-LD and Dataclasses</h2><footer class=article-time><time datetime=26007-02-26T23:22:59+01:00>26 Feb 2025</time></footer></div></a></article><article><a href=/p/uv-one-rust-tool-to-rule-all-pythons/><div class=article-details><h2 class=article-title>uv - One rust tool to rule all pythons</h2><footer class=article-time><time datetime=17007-02-17T23:02:47+01:00>17 Feb 2025</time></footer></div><div class=article-image><img src=/img/uv.png loading=lazy alt="Featured image of post uv - One rust tool to rule all pythons"></div></a></article><article><a href=/cheatsheet/python/><div class=article-details><h2 class=article-title>Python</h2><footer class=article-time></footer></div><div class=article-image><img src=/img/python.png loading=lazy alt="Featured image of post Python"></div></a></article></section><footer class=site-footer><section class=copyright>©
|
||||
2012 -
|
||||
2025 J. Fernando Sánchez</section><section class=powerby>Built with <a href=https://gohugo.io/ target=_blank rel=noopener>Hugo</a><br>Theme <b><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank rel=noopener data-version=3.30.0>Stack</a></b> designed by <a href=https://jimmycai.com target=_blank rel=noopener>Jimmy</a></section></footer></main></div><script src=https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=" crossorigin=anonymous></script><script type=text/javascript src=/ts/main.1e9a3bafd846ced4c345d084b355fb8c7bae75701c338f8a1f8a82c780137826.js defer></script><script>(function(){const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e)})()</script></body></html>
|
242
categories/programming/index.xml
Normal file
242
categories/programming/index.xml
Normal file
@@ -0,0 +1,242 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming on J. Fernando Sánchez</title><link>https://balkian.com/categories/programming/</link><description>Recent content in Programming on J. Fernando Sánchez</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 26 Feb 2025 23:22:59 +0100</lastBuildDate><atom:link href="https://balkian.com/categories/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Bridging RDF, JSON-LD and Dataclasses</title><link>https://balkian.com/p/bridging-rdf-json-ld-and-dataclasses/</link><pubDate>Wed, 26 Feb 2025 23:22:59 +0100</pubDate><guid>https://balkian.com/p/bridging-rdf-json-ld-and-dataclasses/</guid><description><p>In the RDF world, data is expressed as a collection of triples.
|
||||
These triples can contain IRIs that may or may not be accessible or valid.
|
||||
And the use of these IRIs may or may not adhere to a vocabulary.
|
||||
Checking the validity of the IRIs and the semantics of the triples is an additional step.</p>
|
||||
<h2 id="the-rdflib-way">The <code>rdflib</code> way
|
||||
</h2><p><code>rdflib</code> only models IRIs, values and namespaces.
|
||||
Developers need to be cognisant of the URIs they are using, and the vocabularies being used.
|
||||
Prior to version 2.0, senpy followed a very similar model.
|
||||
It had a base class to represent a generic node.
|
||||
Each instance then gets its own automatically generated id, and will act like a normal dictionary, whose keys and values will be serialized as a JSON-LD dictionary.
|
||||
Multiple subclasses were also included to model specific types of node, mostly to provide convenience methods for the given subtype.
|
||||
Here is an example of a subclass, <code>Entity</code>.</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">entry</span> <span class="o">=</span> <span class="n">Entry</span><span class="p">()</span>
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl"><span class="n">entry</span><span class="p">[</span><span class="s1">&#39;vocab:property&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">25</span>
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="n">entry</span><span class="o">.</span><span class="n">jsonld</span><span class="p">())</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Would print something like this:</p>
|
||||
<div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span><span class="lnt">5
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="nt">&#34;@id&#34;</span><span class="p">:</span> <span class="s2">&#34;:Entry_202505....&#34;</span><span class="p">,</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="nt">&#34;@type&#34;</span><span class="p">:</span> <span class="s2">&#34;prefix:Entity&#34;</span><span class="p">,</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="nt">&#34;vocab:property&#34;</span><span class="p">:</span> <span class="mi">25</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">}</span>
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><p>Producing correct triples using this model requires using the vocabularies and URIs properly, with little to no tooling to enforce it.
|
||||
This poses a big problem for a tool like Senpy, which aims to make it easier for professionals without a background in RDF to build and consume semantic NLP ser
|
||||
If an attribute is not a URI and is not included in the global JSON-LD context, it will not generate a triple in the final graph.
|
||||
Moreover, there is way to enforce that the vocabularies and the</p>
|
||||
<p>Pros:</p>
|
||||
<ul>
|
||||
<li>Flexible/extensible</li>
|
||||
<li>Lightweight. This is mostly JSON-LD in Python&rsquo;s clothing.</li>
|
||||
<li>Naturally maps to both <code>rdflib</code> and writing <code>json-ld</code></li>
|
||||
</ul>
|
||||
<p>Cons:</p>
|
||||
<ul>
|
||||
<li>Discoverability. Documentation and examples are needed to know which attributes to use</li>
|
||||
<li>Error-prone. It is easy to misuse a property, or introduce typos</li>
|
||||
<li>Tight coupling with semantics/RDF. One needs to know a thing or two about RDF, especially if new vocabularies or annotations need to be used.</li>
|
||||
</ul>
|
||||
<h2 id="the-object-oriented-way">The object-oriented way
|
||||
</h2><p>An obvious alternative to this problem in an object-oriented language like python is to use classes to represent our data model.
|
||||
These classes can define the specific attributes available, and typing annotations can serve both as a guide for the developer, and as a means to automatically
|
||||
validate objects at runtime.
|
||||
There are tools like <a class="link" href="https://pydantic.dev/" target="_blank" rel="noopener"
|
||||
>pydantic</a> that make this process very simple.
|
||||
Then, we only need to define how your models should be serialized into JSON-LD.
|
||||
We can thoroughly test this serialization to ensure that the resulting object is correct and produces the right RDF graph.
|
||||
Going back to our previous example, we could define an Entry class as a dataclass, and define all the possible types of annotations as attributes.</p>
|
||||
<p>This model works great when all the possible attributes are known ahead of time.
|
||||
But it starts to break when the model provided is not comprehensive enough, or customers of your library need to provide their own ad-hoc annotations / attribut
|
||||
es.
|
||||
This could be solved by encouring consumers of our library to define their own subclasses whenever they need to add new attributes.
|
||||
This works perfectly fine for serialization, but it breaks if your library needs to automatically deserialize these subclasses.
|
||||
It also breaks if different parts of the code need to add their own attributes on the same data at the same time.
|
||||
This was precisely the case of <code>senpy</code>, where entities are annotated by different plugins, each providing a different set of annotations.</p>
|
||||
<p>Pros:</p>
|
||||
<ul>
|
||||
<li>Discoverability. All possible attributes are known ahead of time, including their possible types.</li>
|
||||
<li>Decoupling from RDF. Developers only need to know about the dataclasses provided. The mapping to the RDF world is already encoded in the dataclass.</li>
|
||||
</ul>
|
||||
<p>Cons:</p>
|
||||
<ul>
|
||||
<li>Rigidity. Adding new types of annotations requires modifying the models, in the main module.</li>
|
||||
<li>Polymorphism.</li>
|
||||
</ul>
|
||||
<h2 id="a-hybrid-approach">A hybrid approach
|
||||
</h2><p>Whichever solution is chosen in the end, it needs to:</p>
|
||||
<ul>
|
||||
<li>Make it easy and error-proof to add the most common types of annotations</li>
|
||||
<li>Allow for additional annotations/attributes to be added</li>
|
||||
<li>Allow for upgrades in the future. i.e., converting the most common custom annotations into built-in ones</li>
|
||||
<li>Allow for deserialization of custom types</li>
|
||||
<li>Allow multiple consumers to add their own annotations</li>
|
||||
</ul></description></item><item><title>uv - One rust tool to rule all pythons</title><link>https://balkian.com/p/uv-one-rust-tool-to-rule-all-pythons/</link><pubDate>Mon, 17 Feb 2025 23:02:47 +0100</pubDate><guid>https://balkian.com/p/uv-one-rust-tool-to-rule-all-pythons/</guid><description><img src="https://balkian.com/img/uv.png" alt="Featured image of post uv - One rust tool to rule all pythons" /><p>Long story short: I&rsquo;m now using <a class="link" href="https://github.com/astral-sh/uv" target="_blank" rel="noopener"
|
||||
>uv</a>, and so should you.
|
||||
It is a great replacement for pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.</p>
|
||||
<h2 id="context">Context
|
||||
</h2><p>For years, my strategy to manage python projects has been a mix of a custom <code>setup.py</code>, several hand-crafted <code>requirements.txt</code> files (through <code>pip freeze</code>), a custom virtualenv per project, and multiple tools to upload to PyPI.
|
||||
Although this works, this setup has many drawbacks:</p>
|
||||
<ul>
|
||||
<li>It requires user intervention (creating a venv, sourcing it, handling new deps). This isn&rsquo;t ideal if you want new (probably inexperienced) users to use your projects.</li>
|
||||
<li>On a similar note, the whole process needs to be well documented if you want other users to contribute or maintain the code.</li>
|
||||
<li>Pinning dependency versions is finicky, and I&rsquo;ve run into problems beause of that.</li>
|
||||
<li>Creating a new project involves a template, or copying files from an older project.</li>
|
||||
</ul>
|
||||
<p>Of course, this is nothing new.
|
||||
There is a whole site dedicated to <a class="link" href="https://packaging.python.org/en/latest/" target="_blank" rel="noopener"
|
||||
>packaging your Python project</a>.
|
||||
A plethora of different projects have come and go, with varying degrees of success.</p>
|
||||
<h2 id="alternatives-poetry">Alternatives (poetry)
|
||||
</h2><p>About a year before trying <code>uv</code>, I tried to catch up with the ecosystem and get to know the <code>blessed new way</code>.
|
||||
However, the task proved to be a little more difficult, as the landscape is filled with a myriad of alternatives, each with their own set of drawbacks and detractors.
|
||||
Packaging has historically been a weak spot, in ironical contradiction to the Zen of Python&rsquo;s &ldquo;There should be one&ndash; and preferably only one &ndash;obvious way to do it&rdquo;,</p>
|
||||
<p>I eventually settled on <a class="link" href="https://python-poetry.org/" target="_blank" rel="noopener"
|
||||
>poetry</a>.
|
||||
Mostly because it seemed like the most popular alternative.</p>
|
||||
<p>There are many things I liked about it.
|
||||
First of all, having a convention for dependencies (<code>pyproject.toml</code>) and a tool that properly handles them was nice.
|
||||
It also removed the need to remember specific incantations to build and publish my Python projects.
|
||||
Lastly, I mixed it <code>poetry2nix</code> to create reproducible python environments using nix.
|
||||
This makes for a very powerful experience.</p>
|
||||
<p>However, there were multiple hiccups.
|
||||
First of all, it took me some time to figure out which specific fields to use (each tool can define ad-hoc properties in a the <code>pyproject.toml</code> file), and some of them seemed redundant with the more generic ones.
|
||||
Full disclosure, this specific point might be a mistake on my side, and I do not remember the details.
|
||||
The second one is speed.
|
||||
(Re-)creating an environment took a non-negligible amount of time.</p>
|
||||
<h2 id="enter-light-uv">Enter <del>light</del> <code>uv</code>
|
||||
</h2><p>According to its repository, <code>uv </code>can replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.
|
||||
Not only that, but it also claims to do that 10-100 times faster than pip.
|
||||
I must admit that it being written in rust was a another selling point for me, as I&rsquo;m looking for excuses to collaborate in a decently-sized rust projejct.</p>
|
||||
<p>Installing it is dead simple: simply download the binary (e.g., with curl) or run <code>pip install uv</code>.
|
||||
You won&rsquo;t need much more: <code>uv</code> seems to just do the right thing out of the box.
|
||||
And it does it really, really fast.
|
||||
The rest of the time it gets out of the way.</p>
|
||||
<p>My only gripe so far is that I don&rsquo;t seem to find a built-in command to drop into a shell, but that is nothing that <code>uv run $SHELL</code> cannot fix.</p>
|
||||
<h2 id="common-operations">Common operations
|
||||
</h2><h3 id="initialize-a-repository">Initialize a repository
|
||||
</h3><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">uv init
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><h3 id="adding-dependencies">Adding dependencies
|
||||
</h3><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">uv add senpy
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><h3 id="running-commands-inside-the-environment">Running commands inside the environment
|
||||
</h3><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt">1
|
||||
</span><span class="lnt">2
|
||||
</span><span class="lnt">3
|
||||
</span><span class="lnt">4
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">uv run &lt;COMMAND&gt;
|
||||
</span></span><span class="line"><span class="cl">
|
||||
</span></span><span class="line"><span class="cl"># e.g., run a shell using your python version and dependencies
|
||||
</span></span><span class="line"><span class="cl">uv run $SHELL
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div><h3 id="dependency-tree">Dependency tree
|
||||
</h3><div class="highlight"><div class="chroma">
|
||||
<table class="lntable"><tr><td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
|
||||
</span><span class="lnt"> 2
|
||||
</span><span class="lnt"> 3
|
||||
</span><span class="lnt"> 4
|
||||
</span><span class="lnt"> 5
|
||||
</span><span class="lnt"> 6
|
||||
</span><span class="lnt"> 7
|
||||
</span><span class="lnt"> 8
|
||||
</span><span class="lnt"> 9
|
||||
</span><span class="lnt">10
|
||||
</span><span class="lnt">11
|
||||
</span><span class="lnt">12
|
||||
</span><span class="lnt">13
|
||||
</span><span class="lnt">14
|
||||
</span><span class="lnt">15
|
||||
</span><span class="lnt">16
|
||||
</span><span class="lnt">17
|
||||
</span><span class="lnt">18
|
||||
</span><span class="lnt">19
|
||||
</span></code></pre></td>
|
||||
<td class="lntd">
|
||||
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">uv shell
|
||||
</span></span><span class="line"><span class="cl">Resolved 44 packages in 1ms
|
||||
</span></span><span class="line"><span class="cl">my-project v0.1.0
|
||||
</span></span><span class="line"><span class="cl">├── fastapi[standard] v0.115.8
|
||||
</span></span><span class="line"><span class="cl">│ ├── pydantic v2.10.6
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── annotated-types v0.7.0
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── pydantic-core v2.27.2
|
||||
</span></span><span class="line"><span class="cl">│ │ │ └── typing-extensions v4.12.2
|
||||
</span></span><span class="line"><span class="cl">│ │ └── typing-extensions v4.12.2
|
||||
</span></span><span class="line"><span class="cl">│ ├── starlette v0.45.3
|
||||
</span></span><span class="line"><span class="cl">│ │ └── anyio v4.8.0
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── exceptiongroup v1.2.2
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── idna v3.10
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── sniffio v1.3.1
|
||||
</span></span><span class="line"><span class="cl">│ │ └── typing-extensions v4.12.2
|
||||
</span></span><span class="line"><span class="cl">│ ├── typing-extensions v4.12.2
|
||||
</span></span><span class="line"><span class="cl">│ ├── email-validator v2.2.0 (extra: standard)
|
||||
</span></span><span class="line"><span class="cl">│ │ ├── dnspython v2.7.0
|
||||
</span></span><span class="line"><span class="cl">...
|
||||
</span></span></code></pre></td></tr></table>
|
||||
</div>
|
||||
</div></description></item><item><title>Python</title><link>https://balkian.com/cheatsheet/python/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://balkian.com/cheatsheet/python/</guid><description><img src="https://balkian.com/img/python.png" alt="Featured image of post Python" /><h2 id="interesting-libraries">Interesting libraries
|
||||
</h2><h3 id="tqdm"><a class="link" href="https://github.com/tqdm/tqdm" target="_blank" rel="noopener"
|
||||
>TQDM</a>
|
||||
</h3><p>From tqdm&rsquo;s github repository:</p>
|
||||
<blockquote>
|
||||
<p>tqdm means &ldquo;progress&rdquo; in Arabic (taqadum, تقدّم) and an abbreviation for &ldquo;I love you so much&rdquo; in Spanish (te quiero demasiado).</p></blockquote>
|
||||
<p><img src="https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif"
|
||||
loading="lazy"
|
||||
alt="TQDM in action"
|
||||
></p>
|
||||
<h2 id="tools">Tools
|
||||
</h2><h3 id="uv"><a class="link" href="https://github.com/astral-sh/uv" target="_blank" rel="noopener"
|
||||
>uv</a>
|
||||
</h3><p>🚀 A single tool to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.
|
||||
⚡️ 10-100x faster than pip.</p>
|
||||
<ul>
|
||||
<li>Provides comprehensive project management, with a universal lockfile.</li>
|
||||
<li>Runs scripts, with support for inline dependency metadata.</li>
|
||||
<li>Installs and manages Python versions.</li>
|
||||
<li>Runs and installs tools published as Python packages.</li>
|
||||
<li>Includes a pip-compatible interface for a performance boost with a familiar CLI.</li>
|
||||
<li>Supports Cargo-style workspaces for scalable projects.</li>
|
||||
<li>Disk-space efficient, with a global cache for dependency deduplication.</li>
|
||||
<li>Installable without Rust or Python via curl or pip.</li>
|
||||
<li>Supports macOS, Linux, and Windows.</li>
|
||||
</ul></description></item></channel></rss>
|
1
categories/programming/page/1/index.html
Normal file
1
categories/programming/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>https://balkian.com/categories/programming/</title><link rel=canonical href=https://balkian.com/categories/programming/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://balkian.com/categories/programming/"></head></html>
|
33
categories/reflections/index.html
Normal file
33
categories/reflections/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!doctype html><html lang=en-us dir=ltr><head><meta charset=utf-8><meta name=viewport content='width=device-width,initial-scale=1'><meta name=description content="Longer posts that summarize my views or thoughts on a specific topic"><title>Category: Reflections - J. Fernando Sánchez</title><link rel=canonical href=https://balkian.com/categories/reflections/><link rel=stylesheet href=/scss/style.min.2882a282de220283d6a6763f309d88473c8c934a66d2f8fcb45ce0bfac2af61a.css><meta property='og:title' content="Category: Reflections - J. Fernando Sánchez"><meta property='og:description' content="Longer posts that summarize my views or thoughts on a specific topic"><meta property='og:url' content='https://balkian.com/categories/reflections/'><meta property='og:site_name' content='J. Fernando Sánchez'><meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-07-20T02:30:43+02:00 '><meta name=twitter:title content="Category: Reflections - J. Fernando Sánchez"><meta name=twitter:description content="Longer posts that summarize my views or thoughts on a specific topic"><link rel=alternate type=application/rss+xml href=https://balkian.com/categories/reflections/index.xml><link rel="shortcut icon" href=/img/favicon.ico></head><body><script>(function(){const e="StackColorScheme";localStorage.getItem(e)||localStorage.setItem(e,"auto")})()</script><script>(function(){const t="StackColorScheme",e=localStorage.getItem(t),n=window.matchMedia("(prefers-color-scheme: dark)").matches===!0;e=="dark"||e==="auto"&&n?document.documentElement.dataset.scheme="dark":document.documentElement.dataset.scheme="light"})()</script><div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky"><button class="hamburger hamburger--spin" type=button id=toggle-menu aria-label="Toggle Menu">
|
||||
<span class=hamburger-box><span class=hamburger-inner></span></span></button><header><figure class=site-avatar><a href=/><img src=/img/me_hu_57f477f2a0e68f7e.png width=300 height=300 class=site-logo loading=lazy alt=Avatar>
|
||||
</a><span class=emoji>💭</span></figure><div class=site-meta><h1 class=site-name><a href=/>J. Fernando Sánchez</a></h1><h2 class=site-description>My ramblings and reflections</h2></div></header><ol class=menu-social><li><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank title=GitHub rel=me><svg class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6.0 00-1.3-3.2 4.2 4.2.0 00-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3.0 00-6.2.0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2.0 00-.1 3.2A4.6 4.6.0 004 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21"/></svg></a></li><li><a href=https://git.sinpapel.es/balkian target=_blank title=gitea rel=me><svg viewBox="0 0 640 640" width="32" height="32"><path d="m395.9 484.2-126.9-61c-12.5-6-17.9-21.2-11.8-33.8l61-126.9c6-12.5 21.2-17.9 33.8-11.8 17.2 8.3 27.1 13 27.1 13l-.1-109.2 16.7-.1.1 117.1s57.4 24.2 83.1 40.1c3.7 2.3 10.2 6.8 12.9 14.4 2.1 6.1 2 13.1-1 19.3l-61 126.9c-6.2 12.7-21.4 18.1-33.9 12" style="fill:#fff"/><path d="M622.7 149.8c-4.1-4.1-9.6-4-9.6-4s-117.2 6.6-177.9 8c-13.3.3-26.5.6-39.6.7v117.2c-5.5-2.6-11.1-5.3-16.6-7.9.0-36.4-.1-109.2-.1-109.2-29 .4-89.2-2.2-89.2-2.2s-141.4-7.1-156.8-8.5c-9.8-.6-22.5-2.1-39 1.5-8.7 1.8-33.5 7.4-53.8 26.9C-4.9 212.4 6.6 276.2 8 285.8c1.7 11.7 6.9 44.2 31.7 72.5 45.8 56.1 144.4 54.8 144.4 54.8s12.1 28.9 30.6 55.5c25 33.1 50.7 58.9 75.7 62 63 0 188.9-.1 188.9-.1s12 .1 28.3-10.3c14-8.5 26.5-23.4 26.5-23.4S547 483 565 451.5c5.5-9.7 10.1-19.1 14.1-28 0 0 55.2-117.1 55.2-231.1-1.1-34.5-9.6-40.6-11.6-42.6M125.6 353.9c-25.9-8.5-36.9-18.7-36.9-18.7S69.6 321.8 60 295.4c-16.5-44.2-1.4-71.2-1.4-71.2s8.4-22.5 38.5-30c13.8-3.7 31-3.1 31-3.1s7.1 59.4 15.7 94.2c7.2 29.2 24.8 77.7 24.8 77.7s-26.1-3.1-43-9.1m300.3 107.6s-6.1 14.5-19.6 15.4c-5.8.4-10.3-1.2-10.3-1.2s-.3-.1-5.3-2.1l-112.9-55s-10.9-5.7-12.8-15.6c-2.2-8.1 2.7-18.1 2.7-18.1L322 273s4.8-9.7 12.2-13c.6-.3 2.3-1 4.5-1.5 8.1-2.1 18 2.8 18 2.8L467.4 315s12.6 5.7 15.3 16.2c1.9 7.4-.5 14-1.8 17.2-6.3 15.4-55 113.1-55 113.1" style="fill:#609926"/><path d="M326.8 380.1c-8.2.1-15.4 5.8-17.3 13.8s2 16.3 9.1 20c7.7 4 17.5 1.8 22.7-5.4 5.1-7.1 4.3-16.9-1.8-23.1l24-49.1c1.5.1 3.7.2 6.2-.5 4.1-.9 7.1-3.6 7.1-3.6 4.2 1.8 8.6 3.8 13.2 6.1 4.8 2.4 9.3 4.9 13.4 7.3.9.5 1.8 1.1 2.8 1.9 1.6 1.3 3.4 3.1 4.7 5.5 1.9 5.5-1.9 14.9-1.9 14.9-2.3 7.6-18.4 40.6-18.4 40.6-8.1-.2-15.3 5-17.7 12.5-2.6 8.1 1.1 17.3 8.9 21.3s17.4 1.7 22.5-5.3c5-6.8 4.6-16.3-1.1-22.6 1.9-3.7 3.7-7.4 5.6-11.3 5-10.4 13.5-30.4 13.5-30.4.9-1.7 5.7-10.3 2.7-21.3-2.5-11.4-12.6-16.7-12.6-16.7-12.2-7.9-29.2-15.2-29.2-15.2s0-4.1-1.1-7.1c-1.1-3.1-2.8-5.1-3.9-6.3 4.7-9.7 9.4-19.3 14.1-29-4.1-2-8.1-4-12.2-6.1-4.8 9.8-9.7 19.7-14.5 29.5-6.7-.1-12.9 3.5-16.1 9.4-3.4 6.3-2.7 14.1 1.9 19.8z" style="fill:#609926"/></svg></a></li><li><a href='https://scholar.google.com/citations?user=JLNusZ8AAAAJ&hl=en' target=_blank title="Google scholar" rel=me><svg aria-label="Google Scholar" role="img" viewBox="0 0 512 512"><rect width="512" height="512" rx="15%" fill="#4285f4"/><path fill="#fff" d="M213 111l-107 94h69c5 45 41 64 78 67-7 18-4 27 7 39-43 1-103 26-103 67 4 45 63 54 92 54 38 1 81-19 90-54 4-35-10-54-31-71-23-18-28-28-21-40 15-17 35-27 39-51 2-17-2-28-6-43l45-38-1 16c-3 2-5 6-5 9v103c2 13 22 11 23 0V160c0-3-2-7-5-8v-25l16-16zm58 141c-61 10-87-87-38-99 56-11 83 86 38 99zm-5 73c60 13 61 63 10 78-44 9-82-4-81-30 0-25 35-48 71-48z"/></svg></a></li></ol><ol class=menu id=main-menu><li><a href=/><svg class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="5 12 3 12 12 3 21 12 19 12"/><path d="M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"/><path d="M9 21v-6a2 2 0 012-2h2a2 2 0 012 2v6"/></svg>
|
||||
<span>Home</span></a></li><li><a href=/search/><svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg>
|
||||
<span>Search</span></a></li><li><a href=/links/><svg class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5.0 005 0l4-4a3.5 3.5.0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5.0 00-5 0l-4 4a3.5 3.5.0 005 5l.5-.5"/></svg>
|
||||
<span>Links</span></a></li><li><a href=/cheatsheet/><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg>
|
||||
<span>Cheatsheets</span></a></li><li><a href=/projects/><svg class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="9"/><polyline points="12 7 12 12 15 15"/></svg>
|
||||
<span>Projects</span></a></li><li><a href=/archives/><svg class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><rect x="3" y="4" width="18" height="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8"/><line x1="10" y1="12" x2="14" y2="12"/></svg>
|
||||
<span>Archives</span></a></li><li><a href=/about/><svg class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="7" r="4"/><path d="M6 21v-2a4 4 0 014-4h4a4 4 0 014 4v2"/></svg>
|
||||
<span>About</span></a></li><li class=menu-bottom-section><ol class=menu><li id=dark-mode-toggle><svg class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="8" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<svg class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="16" cy="12" r="2"/><rect x="2" y="6" width="20" height="12" rx="6"/></svg>
|
||||
<span>Dark Mode</span></li></ol></li></ol></aside><aside class="sidebar right-sidebar sticky"><form action=/search/ class="search-form widget"><p><label>Search</label>
|
||||
<input name=keyword required placeholder="Type something...">
|
||||
<button title=Search>
|
||||
<svg class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7"/><line x1="21" y1="21" x2="15" y2="15"/></svg></button></p></form><section class="widget archives"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M9.828 9.172a4 4 0 100 5.656A10 10 0 0012 12a10 10 0 012.172-2.828 4 4 0 110 5.656A10 10 0 0112 12 10 10 0 009.828 9.172"/></svg></div><h2 class="widget-title section-title">Archives</h2><div class=widget-archive--list><div class=archives-year><a href=/archives/#2025><span class=year>2025</span>
|
||||
<span class=count>5</span></a></div><div class=archives-year><a href=/archives/#2023><span class=year>2023</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2021><span class=year>2021</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2019><span class=year>2019</span>
|
||||
<span class=count>2</span></a></div><div class=archives-year><a href=/archives/#2016><span class=year>2016</span>
|
||||
<span class=count>1</span></a></div><div class=archives-year><a href=/archives/#2015><span class=year>More</span></a></div></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><line x1="5" y1="9" x2="19" y2="9"/><line x1="5" y1="15" x2="19" y2="15"/><line x1="11" y1="4" x2="7" y2="20"/><line x1="17" y1="4" x2="13" y2="20"/></svg></div><h2 class="widget-title section-title">Categories</h2><div class=tagCloud-tags><a href=/categories/linux/ class=font_size_3>Linux
|
||||
</a><a href=/categories/programming/ class=font_size_3>Programming
|
||||
</a><a href=/categories/reflections/ class=font_size_1>Reflections</a></div></section><section class="widget tagCloud"><div class=widget-icon><svg class="icon icon-tabler icon-tabler-tag" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><path d="M11 3l9 9a1.5 1.5.0 010 2l-6 6a1.5 1.5.0 01-2 0L3 11V7a4 4 0 014-4h4"/><circle cx="9" cy="9" r="2"/></svg></div><h2 class="widget-title section-title">Tags</h2><div class=tagCloud-tags><a href=/tags/python/ class=font_size_8>Python
|
||||
</a><a href=/tags/linux/ class=font_size_5>Linux
|
||||
</a><a href=/tags/git/ class=font_size_3>Git
|
||||
</a><a href=/tags/github/ class=font_size_3>Github
|
||||
</a><a href=/tags/keyboard/ class=font_size_3>Keyboard
|
||||
</a><a href=/tags/logitech/ class=font_size_3>Logitech
|
||||
</a><a href=/tags/apache/ class=font_size_2>Apache
|
||||
</a><a href=/tags/javascript/ class=font_size_2>Javascript
|
||||
</a><a href=/tags/snippet/ class=font_size_2>Snippet
|
||||
</a><a href=/tags/arch/ class=font_size_1>Arch</a></div></section></aside><main class="main full-width"><header><h3 class=section-title>Categories</h3><div class=section-card><div class=section-details><h3 class=section-count>1 page</h3><h1 class=section-term>Reflections</h1><h2 class=section-description>Longer posts that summarize my views or thoughts on a specific topic</h2></div></div></header><section class=article-list--compact><article><a href=/p/efficient-collaboration/><div class=article-details><h2 class=article-title>Tips for efficient collaboration</h2><footer class=article-time><time datetime=5007-03-05T09:25:54+01:00>05 Mar 2025</time></footer></div></a></article></section><footer class=site-footer><section class=copyright>©
|
||||
2012 -
|
||||
2025 J. Fernando Sánchez</section><section class=powerby>Built with <a href=https://gohugo.io/ target=_blank rel=noopener>Hugo</a><br>Theme <b><a href=https://github.com/CaiJimmy/hugo-theme-stack target=_blank rel=noopener data-version=3.30.0>Stack</a></b> designed by <a href=https://jimmycai.com target=_blank rel=noopener>Jimmy</a></section></footer></main></div><script src=https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=" crossorigin=anonymous></script><script type=text/javascript src=/ts/main.1e9a3bafd846ced4c345d084b355fb8c7bae75701c338f8a1f8a82c780137826.js defer></script><script>(function(){const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap",e.type="text/css",e.rel="stylesheet",document.head.appendChild(e)})()</script></body></html>
|
327
categories/reflections/index.xml
Normal file
327
categories/reflections/index.xml
Normal file
@@ -0,0 +1,327 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reflections on J. Fernando Sánchez</title><link>https://balkian.com/categories/reflections/</link><description>Recent content in Reflections on J. Fernando Sánchez</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 05 Mar 2025 09:25:54 +0100</lastBuildDate><atom:link href="https://balkian.com/categories/reflections/index.xml" rel="self" type="application/rss+xml"/><item><title>Tips for efficient collaboration</title><link>https://balkian.com/p/efficient-collaboration/</link><pubDate>Wed, 05 Mar 2025 09:25:54 +0100</pubDate><guid>https://balkian.com/p/efficient-collaboration/</guid><description><h2 id="background">Background
|
||||
</h2><blockquote class="note"><p>TL;DR I work in academia. This post focuses on advice I&rsquo;d give a younger me to be a more effective supervisor and project lead.</p></blockquote>
|
||||
<p>My role in my research group has evolved from individual contributor to project lead that manages a team of multiple students.
|
||||
This often involves coordinatating with other senior researchers and their teams.</p>
|
||||
<p>This post is a collection of advice I would have given myself back when I started this journey.
|
||||
It is also an excuse to reflect on these ideas I&rsquo;ve been implicitly applying everyday, and maybe learn a few things more in the process.</p>
|
||||
<p>In my field, projects are often tied to a specific grant or some sort of public funding.
|
||||
This means that the main concern of the lead is to ensure that the results at the end of the project match the description in the project proposal.
|
||||
It also typically means maximizing the number of publications related to the project and their overall impact.</p>
|
||||
<p>To do so, most projects rely on three types of staff: a) senior researchers (post-doc); b) junior researchers (PhD students); and c) interns doing their bachelor&rsquo;s or master&rsquo;s thesis.
|
||||
The level of contribution is generally inversely propotional to the level of mastery of the contributor: PhD students design and develop the main contributions (both software and experimental) under the supervision of senior researchers (advisor/supervisor), and interns take care of tasks that are narrow in scope and not crucial to any academic contribution.
|
||||
For instance, a PhD student may develop a new model for text classification, and an intern will wrap that model in an HTTP service with a nice UI.
|
||||
When the service and UI part is intricate and has some potential academic merit, that task may be conducted by a PhD student as part of their thesis.
|
||||
That was precisely the case with Senpy, which was part of my PhD thesis, and it has since been used by dozens of students to develop services in the context of other research projects.</p>
|
||||
<h2 id="reasons-to-form-a-team">Reasons to form a team
|
||||
</h2><p>In my opinion, a team has two advantages over a single contributor.
|
||||
The first one is that collaboration often generates <strong>synergies</strong>, leading to surprising and enriching results (a team is greater than the sum of its parts)
|
||||
Carefully selecting your team members and creating an environment that is conducing to these synergies is a topic on its own, and I will not get too deep into it here.</p>
|
||||
<p>The second advantage can be summarized as <strong>concurrency</strong>: tasks can be tackled by more than one member.
|
||||
This often implies some sort of parallelism.
|
||||
Tasks tend to be split between different members, in hopes of speeding up the process.
|
||||
But it can also be beneficial to have concurrency even in the absence of parallelism: different members can take turns solving the same problem.
|
||||
This is common when the task requires exclusive access to a resource (e.g., performing an experiment on an expensive machine).</p>
|
||||
<h2 id="challenges-of-teams-of-students">Challenges of teams (of students)
|
||||
</h2><p>Just like in computer science, coordination in a concurrent project involves a non-negligible overhead.
|
||||
The objective is to minimize this overhead.</p>
|
||||
<p>I&rsquo;ve really struggled with managing teams in the past.
|
||||
Given my context, I often attributed the failures to lack of time (having to juggle teaching and research), lack of training and preparation on the intern&rsquo;s side (they&rsquo;re often undergrads), lack of appeal or definition of the task (too academic-y), or any other external factors.</p>
|
||||
<p>While all those aspects play an important role, some of them are out of our control as a project lead in academia: grants require a certain type of project and workflow, and the quality of our interns is bounded by the quality of our degrees.
|
||||
So I think it is more constructive to focus on things that we can control.
|
||||
In other words: we have to play the hand we&rsquo;re given.</p>
|
||||
<p>Besides, there is no merit in achieving good results with excellent students/engineers.
|
||||
They would succeed on their own even if you weren&rsquo;t there.
|
||||
The real test for a good leader is succeeding with a subpar team.</p>
|
||||
<p>In that vein, I&rsquo;ve reflected on my mistakes as a leader, and the inefficiencies of the teams around me.
|
||||
I&rsquo;d classify my failures in the following areas:</p>
|
||||
<ul>
|
||||
<li>Delegation (and lack thereof). Piling up too many tasks and blocking progress.</li>
|
||||
<li>Communication. Not having a coherent view of the state of affairs, the details of specific tasks, the general processes to follow, or the priorities of different tasks within a project.</li>
|
||||
<li>Direction (or purpose). Not having a common direction</li>
|
||||
</ul>
|
||||
<h3 id="delegation">Delegation
|
||||
</h3><p>I have a tendency to become a bottleneck in any project I am involved in: many tasks end up depending on me, either directly or indirectly. In the concurrency metaphor, I become a lock for many tasks, and a single executor for the rest.
|
||||
This issue was not that apparent early on, when most of my work was as an individual contributor or I had the bandwidth to supervise and complete my tasks.</p>
|
||||
<p>I think it is quite common to feel like delegating a task in these scenarios means:</p>
|
||||
<ol>
|
||||
<li>Defining the task in advance</li>
|
||||
<li>Choosing an assignee for the task</li>
|
||||
<li>Setting a deadline for the task</li>
|
||||
<li>Explaining the task and the relevant context</li>
|
||||
<li>Replying to multiple questions by e-mail or in person. Extra points when the questions make you wonder if any part of the explanation was ever clear.</li>
|
||||
<li>Reviewing the results after the deadline</li>
|
||||
<li>Realizing the assignee misunderstood the task or delivered something not even close to what you agreed upon</li>
|
||||
<li>Going back to point 3.</li>
|
||||
<li>When you&rsquo;re unlucky or short on time: giving up and doing the task yourself</li>
|
||||
</ol>
|
||||
<p>Many times, if felt like delegating tasks only lead to frustration and wasted time.
|
||||
Especially when compared to the alternative:</p>
|
||||
<ul>
|
||||
<li>Defining the task</li>
|
||||
<li>Setting a deadline</li>
|
||||
<li>Finishing the task</li>
|
||||
<li>Profit</li>
|
||||
</ul>
|
||||
<p>Luckily, some students and projects were an exception to this.
|
||||
They worked autonomously and delivered something beyond the minimum requirements.
|
||||
This reinforced my helplessness and the feeling that the problem was not being able to work with experienced engineers.</p>
|
||||
<p>However, I now believe that the truth lies somewhere in between.
|
||||
Sometimes your circumstances make it quite hard or inefficient to delegate tasks.
|
||||
And some times may not be good candidates for delegation.
|
||||
But most of the times you can take advantage of having an extra pair of hands, you just have to do that effectively.</p>
|
||||
<h3 id="communication">Communication
|
||||
</h3><p>Small teams rely on implicit knowledge more than they realize.
|
||||
Even more so if the team is made up of highly specialized people that have worked in the same environment with mostly the same people for years.</p>
|
||||
<p>Communication is a broad term.
|
||||
It includes technical and concrete things such as how a certain task should be done.
|
||||
But it also includes broader things like etiquette, organizational values, and who is more willing to help you out on certain topics on a Friday afternoon.</p>
|
||||
<p>Here, I would take a page out of Python&rsquo;s zen and recommend that &ldquo;explicit is better than implicit&rdquo;.
|
||||
Implicit (or tacit) knowledge comes with a whole set of drawbacks:</p>
|
||||
<ul>
|
||||
<li>It makes onboarding new users harder. Without a common knowledge base, all knowledge transference has to rely on personal interactions. Even worse, those interactions are probably organized on the spot, and are likely to miss important points.</li>
|
||||
<li>It makes you heavily reliant on your current members (and their memory).</li>
|
||||
<li>It impedes proper evaluationn and progress, since they are not written anywhere.</li>
|
||||
<li>It increases the likelihood of misunderstandings when two members have conflicting beliefs, and makes it harder to detect them until it is too late.</li>
|
||||
<li>It makes contradictions and (unknowingly) changing your mind much more likely. It can happen to the best of us, especially if you are involved in too many projects. When contraditions happen often, your colleagues will learn not to rely on your opinion.</li>
|
||||
</ul>
|
||||
<p>On the other hand, communication has to go both ways.
|
||||
This means that your newer members need to be able to communicate when something is going wrong or can be improved (backpressure).
|
||||
They should also feel free to talk about their motivation, state of mind, and feelings, <strong>when appropriate</strong>.
|
||||
That last part is quite subjective, of course.
|
||||
Try to find your - and your organization&rsquo;s - middle ground between &ldquo;I don&rsquo;t care how you feel, just do your job&rdquo; and &ldquo;sure, you can go to the Maldives on short notice. Oh, and don&rsquo;t worry about not having met a deadline in months, I&rsquo;m sure you&rsquo;re stressed and can use some vacation but will work remotely if we need you&rdquo;.</p>
|
||||
<p>I personally feel a sweet spot is treating your coworkers like people, being empathetic and compassionate.
|
||||
Part of being a good coworker is fulfilling the duties and obligations you accepted when signing your contract.
|
||||
First and foremost, because not fulfilling them means someone else will have to work harder to make up for it.
|
||||
And, secondly, because doing our part is the only way to move the organization (and research) forward.</p>
|
||||
<h3 id="direction">Direction
|
||||
</h3><p>By failure in direction I mean not keeping a consistent and shared set of general goals, principles and values in your organization.
|
||||
In order to really take part in any enterprise, you need to have a clear understanding of the objectives and motivation.
|
||||
When it comes to specific tasks, <em>what you&rsquo;re doing</em> is often not as important as the <em>why you&rsquo;re doing it</em>.
|
||||
In fact, there may be times where you aren&rsquo;t truly sure of what exactly it is that you are doing, but you trust the process and the motivation behind the task.</p>
|
||||
<p>I&rsquo;ve seen two failure modes in this regard.
|
||||
The first one is to not have a clear direction.
|
||||
The end result is that members of the team are not really that committed.
|
||||
If no other <em>why</em> is provided, we are only left with <em>because they pay me to do it</em>.
|
||||
And academia is not known to pay particularly well, to be honest.</p>
|
||||
<p>The other mode is to provide contradicting or incompatible directions.
|
||||
This can be in a short period of time, leading to the impression that there isn&rsquo;t really any conviction in the message.
|
||||
But it can also be done over a longer period of time.
|
||||
That can be perfectly acceptable, provided that the change in direction is justified and compatible with the principles of the organization.</p>
|
||||
<p>Failure in direction is somewhat related to communication, but it is subtly different.
|
||||
An organization can excel at communication, but change their direction constantly.
|
||||
Arguably, a thorough communication strategy makes radical changes in direction less likely.
|
||||
On the one hand, a change in direction needs to be documented, which can be a pain.
|
||||
On the other hand, a written change is easier to spot and more likely to generate complaints.</p>
|
||||
<h2 id="rules">Rules
|
||||
</h2><p>I&rsquo;d argue that the path to successfully managing a research team lies in roughly the following key goals:</p>
|
||||
<ul>
|
||||
<li>Fostering autonomy</li>
|
||||
<li>Avoiding miscommunication</li>
|
||||
<li>Optimizing your contribution</li>
|
||||
</ul>
|
||||
<p>The remaining of the post will be a series of tasks or rules to achieve these goals.</p>
|
||||
<blockquote class="warning"><p>Most of these ideas probably generalize well to collaboration outside of academia, but I hesitate to make more general claims.</p></blockquote>
|
||||
<h3 id="fostering-automony">Fostering automony
|
||||
</h3><p>The tips here are aimed at avoiding supervision overhead and training future leads.</p>
|
||||
<h4 id="provide-a-simplified-version-of-the-bigger-picture">Provide a (simplified version of the) bigger picture
|
||||
</h4><p>Try to paint the bigger picture, even for menial tasks within large projects.
|
||||
For you, this may be the nth project you&rsquo;re involved in this year, but the new intern may not have even heard about European projects before.
|
||||
Going back to the idea of direction, it is easier to work on something if you know the context of your work.</p>
|
||||
<p>Having a general idea of the project and the context of your task will also help you make decisions on your own.
|
||||
For instance, if I am told to develop a shiny new API for text classification, I may have to ask many questions: 1) what will be input look like?; 2) what should the parameters be?; 3) am I using POST or GET requests?; 4) should I return a JSON object or an XML?&hellip;
|
||||
What if, instead of that, I am also told this API will be used in the context of project X, that our organization will be the only consumers of the API, and they also give me a link to the project&rsquo;s docs.
|
||||
I may be able to figure out some of those answers on my own (e.g., by finding examples in the project&rsquo;s website), or decide that some questions are not vital at this point (e.g., if we are the only consumers, we can change from GET to POST if we need to much more easily).</p>
|
||||
<p>One caveat here is that a link to the documentation or some vague words about the project do not constitute proper context.
|
||||
You are responsible for summarizing the important bits of the context, providing instructions on how to navigate the reference materials, and being open to answer questions that may arise in the exchange.</p>
|
||||
<h4 id="do-not-discuss-implementation-details-unless-strictly-necessary">Do not discuss implementation details unless strictly necessary
|
||||
</h4><p>There is a fine line between discussing a non-trivial implementation detail and bikeshedding for hours about class names and code best practices.
|
||||
For that reason, you should try to prioritize discussing high-level parts of the problem and the assignment, and trust the student to figure out the details on their own, or come back to you for clarification.</p>
|
||||
<p>It is very common that students focus on very specific details when they are sharing their progress with their supervisors.
|
||||
They will generally try to start by showing snippets of code and their results.
|
||||
I find it helpful to remind them to explain their problems top-to-bottom, starting with a sentence or two about the context of their project, the description and motivation of the specific task they were doing, and the relationship with previous (and future) tasks.
|
||||
That usually helps figure out the level of understanding of the student, whether there are any conceptual errors, and whether the specific block or problem is really worth discussing during the meeting.</p>
|
||||
<p>Some technical problems will warrant a discussion in detail, either due to their complexity or their importance to the project.
|
||||
In those cases, always limit the time you will spend on that specific issue ahead of time, and make sure to allow for some time at the end of the meeting to go back to any important high-level details.</p>
|
||||
<p>If there are other students that worked on similar projects, do not hesitate to refer your new student to them.
|
||||
It can be an opportunity for them to collaborate, and for the original student to work on explaining and teaching technical issues.</p>
|
||||
<h4 id="provide-feedback">Provide feedback
|
||||
</h4><p>Make a point of evaluating the results of each student on every level, and provide constructive and actionable feedback to them.
|
||||
Even if no technical issues arise during the project, try to review the code and give some tips (e.g., formatting, code structure, DRY).
|
||||
Try to focus on bigger issues and enforcing best practices before nitpicking and giving feedback on small subjective improvements.</p>
|
||||
<p>Make it clear when your feedback is objective/best practice (e.g., a function is deprecated) and when it is a matter of preference.
|
||||
If it is the latter, try to provide more than one alternative, to encourage them to think about it and make an educated decision.</p>
|
||||
<h4 id="take-documentation-and-knowledge-transfer-seriously">Take documentation and knowledge transfer seriously
|
||||
</h4><p>Taking the time to write down basic documentation can save a lot of time in the long run.
|
||||
Besides, most of the job of mentoring a new student is lost when that student finishes their degree and leaves to find a job in industry.
|
||||
Good documentation can remain in your organization and be extended long after the intern is gone.</p>
|
||||
<p>This is very obvious for specific tools, whether internal or public.
|
||||
Good documentation means any new member can check the tool and use it without much assistance.
|
||||
Even better documentation helps newcomers contribute to the tool.
|
||||
Make sure to make it clear who to approach if something is missing from the documentation, and make it easier to do so than to make assumptions and use the tool incorrectly.</p>
|
||||
<p>Writing documentation can be very time consuming, and sometimes it is hard to know exactly what things to focus on when writing the docs.
|
||||
You need to anticipate the needs of the future user.
|
||||
If you are short on time, a good strategy is to delegate the writing of the documentation.
|
||||
Instead of going into details, you can write a very barebones version and training a new user to use and contribute to your tool.
|
||||
Then, leave it up to the new user to extend the documentation, including more details and pitfalls.
|
||||
As a bonus, reading and fixing the docs will give you a better sense of how well that new user understands the tool, as well as possible improvements.</p>
|
||||
<p>This tip also applies to more general areas such as machine learning, graph neural networks, or simulation.
|
||||
Just remember you do not need to reinvent the wheel in those cases.
|
||||
A simple summary and a list of references to expand on the topic could be more than enough.
|
||||
Make sure to also include any specifics that apply to your organization.
|
||||
For instance, point to repositories on github (public or private) that can be used to explore the topic, examples of similar projects in the domain, etc.</p>
|
||||
<p>Identify what information is important for any new hire and present it to them as clearly as possible.
|
||||
Part of that information should be where and how common knowledge is stored and shared, should they need more information in the future.
|
||||
Make this documentation as easy to discover and consume as possible.
|
||||
Centralizing this common information in the form of a wiki is often a good idea.</p>
|
||||
<p>Lastly, make it easy for any member of your organization to update this common documentation, and encourage them to do so.
|
||||
Whenever a member asks you something useful that is not documented, don&rsquo;t just answer the question.
|
||||
Take the time to add this information yourself (e.g., by copy-pasting your response) or task that member with expanding the documentation themselves once they find an answer.
|
||||
If your organization&rsquo;s culture does not encourage using these docs, they will quickly get outdated and fall out of use.</p>
|
||||
<p>One example of taking this documentation approach really seriously is <a class="link" href="https://oxide.computer/" target="_blank" rel="noopener"
|
||||
>Oxide (computer company)</a>.
|
||||
They have a process they call <a class="link" href="https://rfd.shared.oxide.computer/" target="_blank" rel="noopener"
|
||||
>Request For Discussion (RFD)</a>, which they use to discuss and document both technical and organizational decisions.
|
||||
For instance, they have <a class="link" href="https://rfd.shared.oxide.computer/rfd/0537" target="_blank" rel="noopener"
|
||||
>RFDs on why they record every meeting</a>, <a class="link" href="https://rfd.shared.oxide.computer/rfd/0110" target="_blank" rel="noopener"
|
||||
>RFDs about their choice of database</a>, and even <a class="link" href="https://rfd.shared.oxide.computer/rfd/0001" target="_blank" rel="noopener"
|
||||
>an meta-RFD that discusses the motivation RFDs and how the process should work</a>.</p>
|
||||
<h4 id="trust-your-teammates-ability-to-learn">Trust your teammate&rsquo;s ability to learn
|
||||
</h4><p>I&rsquo;ve been bitten by this way too many times.
|
||||
Your students are probably more capable of learning than you think, especially if you have set up your documentation right.
|
||||
What they lack in experience, they make up for with free time, a (more) neuroplasticity and determination.</p>
|
||||
<p>Sure, they will make mistakes (see the next section) and need some feedback (two sections above), but that is how we all learnt.</p>
|
||||
<h4 id="use-tools-wisely">Use tools wisely
|
||||
</h4><p>Your students probably have little experience with code versioning, reviewing processes, time management, etc.
|
||||
A good choice of tools and some training can go a long way and make your life much easier in the long run.
|
||||
It will also give your students a taste of what working in a bigger/real company feels like and a head start.</p>
|
||||
<p>For instance, using git makes it easier to collaborate on code.
|
||||
It also ensures that your results will not be lost if your student&rsquo;s laptop gets stolen.</p>
|
||||
<p>Using GitLab CI or GitHub Actions to deploy public services will provide more autonomy to your students.
|
||||
It will force them to commit working code, and it will make it easier to check their results and discuss the end result.</p>
|
||||
<p>Using overleaf for theses has most of the advantages for collaboration as something like google docs, while being much more flexible and easier to produce formatting results.
|
||||
You may also use something like latex on a shared folder (e.g., nextcloud), although the chances of connflicts is higher, so be careful with documents that require live collaboration.
|
||||
In both cases, make sure to make the getting started experience as simple as possible: provide a sensible template, and only focus on simple features at first.</p>
|
||||
<p>Also, on a related note, make sure every team member has a proper development setup.
|
||||
It does not matter which tool they use (VSCode, emacs, Jetbrains), as long as they are comfortable with it and they are able to focus on actual work.
|
||||
It helps to have a sensible default for your organization that is easy to set up and use, especially because most students do not have enough experience or skill with any particular tool.</p>
|
||||
<h4 id="encourage-cooperation">Encourage cooperation
|
||||
</h4><p>Do not become the center of every conversation.
|
||||
If a topic can be discussed between two students, let them handle it on their own and get back to you if they need anything.</p>
|
||||
<p>The ability to discuss with your peers and report only when needed will be extremely important for them in the future.
|
||||
They are also likely to discuss the topic more openly and more relaxed thhan with you (no matter how approachable you are).
|
||||
That might lead to valuable insights and improvements for your team and project.</p>
|
||||
<p>Moreover, this attitude of open collaboration will help create those synergies we mentioned before, and make future projects easier and more enjoyable.</p>
|
||||
<h4 id="reward-proactivity">Reward proactivity
|
||||
</h4><p>The whole point of this section is to get your team to work independently when possible.
|
||||
Be explicit about this goal to make sure it is clear to everyone.
|
||||
And encourage behavior that aligns with this goal, even on a small scale.</p>
|
||||
<p>For instance, show interest when a student has shown initiative and researched something on their own, or when they go beyond the minimum requirements.
|
||||
Sometimes, you will notice that this research was not completely well oriented or it was not a very efficient use of time.
|
||||
Do not jump straight to criticize it.
|
||||
Compliment the attitude regardless, try to find the value in the results, and be gentle when providing feedback on why other topics or tasks were higher priority or a better choice.</p>
|
||||
<h4 id="dont-be-a-perfectionist">Don&rsquo;t be a perfectionist
|
||||
</h4><p>Perfect is the enemy of done.
|
||||
It is also the enemy of a happy co-worker.</p>
|
||||
<p>Try to remember that you are dealing with students, and you were probably no better at their age.
|
||||
Besides, you probably delegated the task beause you did not have any spare time to do it yourself.
|
||||
<code>FIXME</code> is often better than <code>TODO</code>.</p>
|
||||
<p>Take the opportunity to provide some feedback and teach them something useful.
|
||||
Some mistakes are also worth adding to your documentation, or presenting to other students in a presentation.</p>
|
||||
<h3 id="avoiding-miscommunication">Avoiding miscommunication
|
||||
</h3><p>A common source of wasted effort and unnecessary back-and-forth is miscommunication.
|
||||
These are some tips to help keep everyone on the team informed and aligned.</p>
|
||||
<h4 id="make-priorities-clear">Make priorities clear
|
||||
</h4><p>All team members should understand the general priorities (project-wise) as well as the specific prorities of their assigned tasks.
|
||||
This will help inform their decisions when some other tasks inevitably come up, or the urgency of a task changes.</p>
|
||||
<h4 id="define-boundaries-and-abstractions">Define boundaries (and abstractions)
|
||||
</h4><p>Once again, the goal is generally to achieve some sort of parallelism between your team members.
|
||||
In order to do that, they need to know how they will interact with each other.</p>
|
||||
<p>On a more general level, this means knowing the responsibilities and scope of your work.</p>
|
||||
<p>On a more specific level, it means knowing their dependency graph.
|
||||
In other words, whether the progress of one team member will depend on the results of another one.
|
||||
Whenever there is a dependency, the interface should be made very clear.
|
||||
This often takes the form of an API, a file with a given format, or a section of a document.</p>
|
||||
<p>Take some time to define the boundary as precisely as needed at that point in the project.
|
||||
I would suggest having specific examples that you can discuss and modify.
|
||||
It is hard to discuss in the abstract, especially for inexperienced contributors.
|
||||
When in doubt, default to the simplest option (e.g., a common file vs using a database).
|
||||
Do not dwell too much on specific structural/representation details (e.g., which OWL vocabulary to use), but make sure that all the necessary bits are there.
|
||||
Converting a document or querying a document store (e.g., elasticsearch) instead of your file system is relatively easy, but making up non-existing data can be a challenge.</p>
|
||||
<p>One type of failure I&rsquo;ve seen quite frequently in this area is to be too fuzzy about the expected results from a team (or contributor), and refusing to discuss or provide examples.
|
||||
That tends to result in multiple iterations, each of them not-quite-what-you-wanted, and frustration in both sides.</p>
|
||||
<h4 id="be-approachable">Be approachable
|
||||
</h4><p>Did I wrote a whole section about autonomy? Yes.
|
||||
Is the end goal to do more and talk less? Also yes.
|
||||
Thing is, no process is perfect, and misunderstandings are bound to happen at some point.
|
||||
If your only response to questions is a grumpy face or a &ldquo;read the freaking docs&rdquo;, your students will not alert you when something really needs your attention, and you will find out too late.
|
||||
For instance, the documentation may be unclear, or your processes may be inadvertedly alienating new members and making new hires harder.</p>
|
||||
<p>Another way to be approachable is to be clear about your shortcomings, and whether something you are saying is negotiable and/or debatable.
|
||||
My rule of thumb is to err on the side of negotiable, and only be strict when it is really necessary (e.g., time constraints or an unproductive student).
|
||||
We are all more likely to finish our tasks if we feel them ours, if we a say in how and when to perform them.</p>
|
||||
<p>Just to be clear, approachable does not mean you have to be their confident or their best friend.
|
||||
It also does not mean that it is okay to challenge or question you continuously.
|
||||
Some times it is okay to simply say &ldquo;just do as I say&rdquo;.</p>
|
||||
<h4 id="review-frequently">Review frequently
|
||||
</h4><p>One type of review is individual.
|
||||
It involves reviewing code on github, or reading deliverables and papers on overleaf.
|
||||
It can help catch misunderstandings, and measure the true rate of progress in the individual tasks.
|
||||
The other type of review is done as a group, by going through the key progress and action points.
|
||||
This type of review helps everyone stay on the same page, and catch any general drifts in the project, such as misaligned priorities.</p>
|
||||
<p>The frequency of each type of review depends on the specific nature of the project, the types of tasks being performed by the student, and your confidence on the student&rsquo;s abilities.</p>
|
||||
<h3 id="optimizing-your-contribution">Optimizing your contribution
|
||||
</h3><p>Tips on optimizing your contribution to the team.</p>
|
||||
<h4 id="prioritize-prioritize-prioritize">Prioritize, prioritize, prioritize
|
||||
</h4><p>Part of your job as a project lead is to identify the main goals in a project and to prioritize the tasks that will lead you there.
|
||||
On the other hand, you are part of a research group, and you should be actively involved in its health and future.
|
||||
Lastly, you are also in charge of the life-long project that is your research career.</p>
|
||||
<p>In all these cases, your goal should be to identify the long term goals, come up with a sound strategy, and prioritize the tasks that will lead you and your group there.
|
||||
Keeping your priorities straight will help you make steady progress, and avoid bikeshedding and changing goalposts.
|
||||
It will also help you steer your progress in the right direction, since we all have limited time and effort and can&rsquo;t do everything at once.</p>
|
||||
<p>The fact that your time is limited also means that you will need to decide how to prioritize these three roles.
|
||||
I&rsquo;ve listed them in increasing level of importance for me.
|
||||
It means that it is okay to focus on a specific project for a while, but if progress in your career is stalled - usually through publication - you need to reevaluate and concentrate your efforts on that.</p>
|
||||
<h4 id="be-okay-with-short-term-inefficiencies">Be okay with (short-term) inefficiencies
|
||||
</h4><p>I&rsquo;ve personally struggled with delegating tasks that will take me orders of magnitude less work than they will a student.
|
||||
Thing is, most tasks will fall under this category, and your time is limited, so you have to delegate if you want to have time for more important matters.
|
||||
If you never delegate any tasks, you are not allowing your team to learn and catch up on whatever technical skills are required.
|
||||
Besides, you are not improving yourself on the managerial side of things.
|
||||
It turns out delegating is hard, it requires a whole set of non-technical skills.
|
||||
I suspect this is oftentimes the reason we don&rsquo;t do delegate in the first place: delegating is hard, and technical tasks are usually more straightforward, so we just don&rsquo;t want to do the work.</p>
|
||||
<h4 id="dont-neglect-training">Don&rsquo;t neglect training
|
||||
</h4><p>You are a senior researcher.
|
||||
You probably know how to solve problems in your domain quite efficiently.
|
||||
In my case, that means processing data and developing code.</p>
|
||||
<p>That means I could dedicate my days to processing data and developing new code for my group.
|
||||
That group would likely be used in multiple projects.
|
||||
However, there is a hard limit to how much code I can push out in a day, especially if you take into account other obligations such as teaching.</p>
|
||||
<p>A wiser strategy would be to set aside some of that coding time to instead help students become better programmers.
|
||||
Firstly, because those students will be thankful and more motivated to work than when they are left to learn on their own without much guidance.
|
||||
Secondly, because those students will then be more prepared to help me out if I delegate a task to them.
|
||||
And, lastly, because these students have a whole life in fron of them.
|
||||
A life full of big projects of their own, and contributions to society.
|
||||
That little training time can have a compounding effect in the future.</p>
|
||||
<h4 id="set-a-time-limit-for-your-interactions-in-advance">Set a time limit for your interactions in advance
|
||||
</h4><p>Really long slots can easily lead to bikeshedding and going unnecessarily deep into implementation details, which is clearly an inefficient use of your time.
|
||||
Even worse, our attention span and memory are finite, so longer and dense meetings can lead to fatigue and to missing or dilluting important points in the conversation.</p>
|
||||
<p>For these reasons, be very clear about these time limits, and do not extend these meetings unless it is strictly necessary.
|
||||
You can always schedule a new meeting, but be sure to provide enough time in between to process the results of the meeting, reflect and prioritize.</p>
|
||||
<h2 id="beyond-your-team">Beyond your team
|
||||
</h2><p>The previous points and rules focus mostly on actions that can be applied within your team, and that you can fully control.
|
||||
But teams rarely work in isolation, you will most likely
|
||||
In order to be effective, you also need to coordinate with other teams/groups, and more generally work on your organization&rsquo;s culture and sense of belonging.</p>
|
||||
<p>Many of the aspects I talked about in the team section apply here.
|
||||
For instance, the obsession with documentation can - and should - be applied organization-wise.
|
||||
The same goes for defining boundaries and using concrete examples when collaborating with other teams.
|
||||
For most intents and purposes, you can treat other teams as another contributor to your team.
|
||||
Just one that will be more costly and slow to interact with.</p>
|
||||
<p>If possible, I&rsquo;d try to apply the rule about focusing on the big picture, and limit most meetings to those that strictly need to be involved.
|
||||
Avoid involving whole teams in discussions when the broad strokes have not been defined yet.
|
||||
The responsibilities will be dilluted in a bigger group, it will be harder to avoid misunderstandings and easier to bikeshed.</p>
|
||||
<p>On the organization&rsquo;s side, I would suggest having an honest conversation about your core principles.
|
||||
I really liked <a class="link" href="https://www.youtube.com/watch?v=9QMGAtxUlAchttps://www.youtube.com/watch?v=9QMGAtxUlAc" target="_blank" rel="noopener"
|
||||
>Bryan Cantrill&rsquo;s talk about principles of technology leadership</a>.
|
||||
He goes deep into the effects that principles have had on well known companies, and how to go about defining your company&rsquo;s principles.
|
||||
I think that writing down your principles forces you to be conscious about their trade-offs, and to be explicit about your choices and attitudes.</p>
|
||||
<p>More generally, try to define (light) processes that reward and facilitate behaviors you find positive, such as writing documentation and being proactive.
|
||||
And try to discourage the opposite type of behavior as soon as possible, to make correcting them easier.
|
||||
Apply the ideas of frequent evaluation and feedback, openness and honesty in every aspect of your organization.</p></description></item></channel></rss>
|
1
categories/reflections/page/1/index.html
Normal file
1
categories/reflections/page/1/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!doctype html><html lang=en-us><head><title>https://balkian.com/categories/reflections/</title><link rel=canonical href=https://balkian.com/categories/reflections/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://balkian.com/categories/reflections/"></head></html>
|
Reference in New Issue
Block a user