<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Alexander Halemba</title>
    <description>The latest articles on Forem by Alexander Halemba (@alexander89).</description>
    <link>https://forem.com/alexander89</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F684102%2Fdc4e23a0-675d-49aa-bbdf-195530a9cb0a.jpeg</url>
      <title>Forem: Alexander Halemba</title>
      <link>https://forem.com/alexander89</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/alexander89"/>
    <language>en</language>
    <item>
      <title>How to produce YouTube videos simpler?</title>
      <dc:creator>Alexander Halemba</dc:creator>
      <pubDate>Tue, 17 Aug 2021 09:04:33 +0000</pubDate>
      <link>https://forem.com/alexander89/how-to-produce-youtube-videos-simpler-5f5o</link>
      <guid>https://forem.com/alexander89/how-to-produce-youtube-videos-simpler-5f5o</guid>
      <description>&lt;p&gt;Today I published my first youtube video. It was much harder to make than I expected.&lt;/p&gt;

&lt;p&gt;I learned a lot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lightning&lt;/li&gt;
&lt;li&gt;Sound setup&lt;/li&gt;
&lt;li&gt;Screen + Face + Drone recording&lt;/li&gt;
&lt;li&gt;Kdenlive&lt;/li&gt;
&lt;li&gt;OBS recording settings&lt;/li&gt;
&lt;li&gt;public domain licenses&lt;/li&gt;
&lt;li&gt;time wrap&lt;/li&gt;
&lt;li&gt;cutting, effects, ...&lt;/li&gt;
&lt;li&gt;publishing at youtube&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I invested over 15 hours in producing 16 minutes video. &lt;/p&gt;

&lt;p&gt;Is this huge time effort normal? &lt;br&gt;
How do you prepare your videos? &lt;br&gt;
How do you edit them?&lt;/p&gt;

&lt;p&gt;Here is my result: &lt;a href="https://youtu.be/j5qqn2eOI2M"&gt;https://youtu.be/j5qqn2eOI2M&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>video</category>
      <category>discuss</category>
      <category>livecoding</category>
    </item>
    <item>
      <title>Youtube: Rust SDK - DJI Tello Drone</title>
      <dc:creator>Alexander Halemba</dc:creator>
      <pubDate>Tue, 17 Aug 2021 08:53:36 +0000</pubDate>
      <link>https://forem.com/alexander89/youtube-rust-sdk-dji-tello-drone-3cim</link>
      <guid>https://forem.com/alexander89/youtube-rust-sdk-dji-tello-drone-3cim</guid>
      <description>&lt;h2&gt;
  
  
  Rust SDK - DJI Tello Drone
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iR8HONAJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfku8wotqsepagrp2hiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iR8HONAJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfku8wotqsepagrp2hiw.png" alt="YouTube"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Finally, I did it!&lt;br&gt;
&lt;a href="https://youtu.be/j5qqn2eOI2M"&gt;https://youtu.be/j5qqn2eOI2M&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is much harder than I expected, and I could invest more days to polish it. &lt;/p&gt;

&lt;h2&gt;
  
  
  What I learn:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🔥 No take_off() without land()&lt;/li&gt;
&lt;li&gt;🏄 How to use Kdenlive&lt;/li&gt;
&lt;li&gt;📜 Make a script before starting a video &lt;/li&gt;
&lt;li&gt;🤯 LiveCoding without a script for a video is hard&lt;/li&gt;
&lt;li&gt;🪚 Flying a drone without seeing it could hurt&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Repo:
&lt;/h2&gt;

&lt;p&gt;crates.io: &lt;a href="https://crates.io/crates/tello"&gt;https://crates.io/crates/tello&lt;/a&gt;&lt;br&gt;
github: &lt;a href="https://github.com/Alexander89/rust-tello"&gt;https://github.com/Alexander89/rust-tello&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>drone</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Did you know: local-first-cooperation?</title>
      <dc:creator>Alexander Halemba</dc:creator>
      <pubDate>Fri, 13 Aug 2021 11:44:32 +0000</pubDate>
      <link>https://forem.com/alexander89/did-you-know-local-first-cooperation-f1l</link>
      <guid>https://forem.com/alexander89/did-you-know-local-first-cooperation-f1l</guid>
      <description>&lt;p&gt;This is definitely something I like to share with you:&lt;/p&gt;

&lt;p&gt;Some pretty smart people try to evolve software to the next level. I am currently working on a project using this pattern technic and will publish DevLog videos as soon I get them post processed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.local-first-cooperation.org/:" rel="noopener noreferrer"&gt;https://www.local-first-cooperation.org/:&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Discover real-world use-cases
&lt;/h2&gt;

&lt;p&gt;See how Local-First Cooperation applies to a wide range of use-cases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa5k8q3j0w40o83o1jlqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa5k8q3j0w40o83o1jlqm.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>localfirst</category>
      <category>eventsourcing</category>
      <category>architecture</category>
      <category>distributedsystems</category>
    </item>
    <item>
      <title>Rust SDK - DJI Tello Drone</title>
      <dc:creator>Alexander Halemba</dc:creator>
      <pubDate>Wed, 11 Aug 2021 10:01:55 +0000</pubDate>
      <link>https://forem.com/alexander89/dji-tello-drone-4ijl</link>
      <guid>https://forem.com/alexander89/dji-tello-drone-4ijl</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypl2tzrvmf5l9p3zliz8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypl2tzrvmf5l9p3zliz8.jpg" alt="Tello Drone"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I got this Tello Drone for Christmas a while back. Flying in circles was quite fun, but the control via the mobile phone was unfortunately not comfortable for me and I couldn't see anything on the small screen.&lt;/p&gt;

&lt;p&gt;It quickly became boring and what does a developer do when he can't sleep at night: hacking.  &lt;/p&gt;

&lt;h2&gt;
  
  
  🤓 Hacking
&lt;/h2&gt;

&lt;p&gt;I first found the public text-based API. It was quite simple to integrate and I tried to control the drone with my GamePad. Unfortunately, movements like "20 cm to the left" are not compatible with a joystick. After some time, however, I came across &lt;a href="https://tellopilots.com/" rel="noopener noreferrer"&gt;https://tellopilots.com/&lt;/a&gt;. Some clever people took the trouble to dissect the API and document it. (&lt;a href="https://tellopilots.com/wiki/development/" rel="noopener noreferrer"&gt;https://tellopilots.com/wiki/development/&lt;/a&gt;) &lt;/p&gt;

&lt;p&gt;Even though the Go implementation is probably the source of truth, the documentation is very good. Now there was only one problem. I want RUST. &lt;/p&gt;

&lt;p&gt;After a few more hours of hacking, two broken propellers and luckily no fly-away, the time had come. Usable as SDK and implementable in any home-automation project. Who doesn't want drones to swarm out when someone rings the doorbell or comes in the driveway. 🙈 &lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Use it
&lt;/h2&gt;

&lt;p&gt;The repo is on github: &lt;a href="https://github.com/Alexander89/rust-tello" rel="noopener noreferrer"&gt;https://github.com/Alexander89/rust-tello&lt;/a&gt; with an example app to fly around with a joystick. You can easily receive the video stream with VNC.&lt;/p&gt;

&lt;p&gt;Here is a small example of how the drone can be controlled via rust.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;tello&lt;/span&gt;&lt;span class="p"&gt;::{&lt;/span&gt;&lt;span class="n"&gt;Drone&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Package&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;PackageData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ResponseMsg&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;time&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;Duration&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="k"&gt;mut&lt;/span&gt; &lt;span class="n"&gt;drone&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;Drone&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"192.168.10.1:8889"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="n"&gt;drone&lt;/span&gt;&lt;span class="nf"&gt;.connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11111&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;loop&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;Some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;drone&lt;/span&gt;&lt;span class="nf"&gt;.poll&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nn"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;Data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Package&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nn"&gt;PackageData&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;FlightData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nd"&gt;println!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"battery {}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="py"&gt;.battery_percentage&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="nn"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nn"&gt;ResponseMsg&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;Connected&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="nd"&gt;println!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"connected"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                    &lt;span class="n"&gt;drone&lt;/span&gt;&lt;span class="nf"&gt;.throw_and_go&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="nf"&gt;.unwrap&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;thread&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nn"&gt;Duration&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1_000_000_000u32&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Happy Hacking and stay tuned&lt;/p&gt;

</description>
      <category>rust</category>
      <category>drones</category>
      <category>dji</category>
      <category>sdk</category>
    </item>
  </channel>
</rss>
