<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Q37.INFO</title>
    <link>/computing/</link>
    <description>Recent content on Q37.INFO</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="/computing/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Raspberry Pi</title>
      <link>/computing/raspberry_pi/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/computing/raspberry_pi/</guid>
      <description>&lt;h1 id=&#34;raspberry-pi&#34;&gt;&#xA;  &lt;em&gt;Raspberry Pi&lt;/em&gt;&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#raspberry-pi&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;p&gt;This page is about the &lt;em&gt;Raspberry Pi&lt;/em&gt; &lt;em&gt;Pico&lt;/em&gt; (&lt;em&gt;W&lt;/em&gt;).&lt;/p&gt;&#xA;&lt;h2 id=&#34;micropython&#34;&gt;&#xA;  &lt;em&gt;MicroPython&lt;/em&gt;&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#micropython&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;installation&#34;&gt;&#xA;  Installation&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#installation&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;To install &lt;em&gt;MicroPython&lt;/em&gt; on the &lt;em&gt;Pico&lt;/em&gt;, go to &lt;a href=&#34;https://www.raspberrypi.com/documentation/microcontrollers/&#34;&gt;https://www.raspberrypi.com/documentation/microcontrollers/&lt;/a&gt;, download the appropriate &lt;em&gt;.uf2&lt;/em&gt; file, connect the &lt;em&gt;Pico&lt;/em&gt; to the computer while pushing the &lt;em&gt;BOOTSEL&lt;/em&gt; button, release the button and copy the &lt;em&gt;.uf2&lt;/em&gt; file to the device.&lt;/p&gt;&#xA;&lt;p&gt;To program in &lt;em&gt;MicroPython&lt;/em&gt;, the common way is to use &lt;em&gt;Thonny&lt;/em&gt;, an &lt;em&gt;IDE&lt;/em&gt; which also handles the source code upload and running on the &lt;em&gt;Pico&lt;/em&gt;. Another way is to use your usual editor to write the &lt;em&gt;(Micro)Python&lt;/em&gt; source code and &lt;em&gt;adafruit-ampy&lt;/em&gt; (&lt;em&gt;TUI&lt;/em&gt; tool) to upload and run the programs on the device.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Miscellaneous</title>
      <link>/computing/misc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/computing/misc/</guid>
      <description>&lt;h1 id=&#34;miscellaneous&#34;&gt;&#xA;  Miscellaneous&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#miscellaneous&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;clipboard-related-events-in-browser&#34;&gt;&#xA;  Clipboard related events in browser&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#clipboard-related-events-in-browser&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://superuser.com/questions/1595994/dont-let-websites-overwrite-clipboard-in-firefox-without-explicitly-giving-perm&#34;&gt;https://superuser.com/questions/1595994/dont-let-websites-overwrite-clipboard-in-firefox-without-explicitly-giving-perm&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some web site forbid the paste of content in input field (email, password… field). On &lt;em&gt;Firefox&lt;/em&gt;, you can try to change one of following settings in the &lt;em&gt;about:config&lt;/em&gt; page:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;dom.event.clipboardevents.enabled&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;,&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;dom.allow_cut_copy&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;dom.events.asyncClipboard.dataTransfer&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt; (do not exist by defaults, hence already considered to be set to &lt;code&gt;false&lt;/code&gt;).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;running-time-command-on-more-than-one-command&#34;&gt;&#xA;  Running &lt;em&gt;time&lt;/em&gt; command on more than one command&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#running-time-command-on-more-than-one-command&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://unix.stackexchange.com/questions/46051/how-to-run-time-on-multiple-commands-and-write-the-time-output-to-file&#34;&gt;https://unix.stackexchange.com/questions/46051/how-to-run-time-on-multiple-commands-and-write-the-time-output-to-file&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>ESP32</title>
      <link>/computing/esp32/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/computing/esp32/</guid>
      <description>&lt;h1 id=&#34;esp32&#34;&gt;&#xA;  &lt;em&gt;ESP32&lt;/em&gt;&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#esp32&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;h2 id=&#34;i2c-handling-on-esp32-c3&#34;&gt;&#xA;  &lt;em&gt;I2C&lt;/em&gt; handling on &lt;em&gt;ESP32-C3&lt;/em&gt;&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#i2c-handling-on-esp32-c3&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Almost all GPIOs pair can handle hardware &lt;em&gt;I2C&lt;/em&gt;, but only one at a time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>systemd</title>
      <link>/computing/systemd/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/computing/systemd/</guid>
      <description>&lt;h1 id=&#34;creating-a-service-handled-by-systemd&#34;&gt;&#xA;  Creating a service handled by &lt;em&gt;systemd&lt;/em&gt;&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#creating-a-service-handled-by-systemd&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h1&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This is only a sort of reminder on how to install &lt;em&gt;Epeios&lt;/em&gt; related daemons on a Debian system. It&amp;rsquo;s not a comprehensive documentation about sytemd.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;unit-file&#34;&gt;&#xA;  Unit file&#xA;  &lt;a class=&#34;anchor&#34; href=&#34;#unit-file&#34;&gt;#&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;To create a service for &lt;em&gt;systemd&lt;/em&gt;, you have to create a &lt;code&gt;.service&lt;/code&gt; suffixed file in &lt;code&gt;/etc/systemd/system/&lt;/code&gt; which looks like:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-systemd&#34; data-lang=&#34;systemd&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;[Unit]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Description&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;description&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;After&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;network.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;[Service]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;ExecStart&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;command&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Restart&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;always&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;[Install]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;WantedBy&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;multi-user.target&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;where &lt;code&gt;&amp;lt;description&amp;gt;&lt;/code&gt; is a string describing the service, and &lt;code&gt;&amp;lt;command&amp;gt;&lt;/code&gt; the command with its arguments to launch the daemon. If &lt;code&gt;&amp;lt;command&amp;gt;&lt;/code&gt; contains &lt;code&gt;%&lt;/code&gt; symbols, they must be doubled!&lt;br&gt;&#xA;Example:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
