Software https://tomroelandts.com/ en Phyphox https://tomroelandts.com/articles/phyphox <article data-history-node-id="382" role="article" about="/articles/phyphox" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/articles/phyphox" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Phyphox</span> </a> </h2> <span property="schema:name" content="Phyphox" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><img style="float: right; border: 1px black solid; margin-left: 1em" src="https://tomroelandts.com/sites/tomroelandts.com/files/styles/thumbnail/public/field/image/phyphox-logo.png" alt="Phyphox logo" title="Phyphox logo" /></p> <p>I normally don’t promote external sites or apps on this blog, but I’ve found an app that every nerd needs (I assume here for a moment that you, my reader, might just as well be one). You need to have <em>Phyphox</em> on your phone! I need…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/articles/phyphox" rel="tag" title="Phyphox" hreflang="en">Read more<span class="visually-hidden"> about Phyphox</span></a></li><li class="comment-add"><a href="/articles/phyphox#comment-form" title="Share your thoughts and opinions." hreflang="en">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/tags/physics" property="schema:about" hreflang="en">Physics</a></li> <li><a href="/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 4 June 2022 </span> <span property="schema:dateCreated" content="2022-06-04T15:05:17+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Sat, 04 Jun 2022 15:05:17 +0000 Tom 382 at https://tomroelandts.com Basic Python Scripts to Save and Load Images https://tomroelandts.com/articles/basic-python-scripts-to-save-and-load-images <article data-history-node-id="381" role="article" about="/articles/basic-python-scripts-to-save-and-load-images" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/articles/basic-python-scripts-to-save-and-load-images" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Basic Python Scripts to Save and Load Images</span> </a> </h2> <span property="schema:name" content="Basic Python Scripts to Save and Load Images" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><img style="float: right; border: 1px black solid; margin-left: 1em" src="https://tomroelandts.com/sites/tomroelandts.com/files/styles/thumbnail/public/field/image/lena-gray.jpg" alt="Figure 4. Middle part of Lena test image in grayscale." title="Figure 4. Middle part of Lena test image in grayscale." /></p> <p>In this article, I list basic scripts to save and load images. As always, I’ve assumed that you want to use <em>NumPy</em> and <em>SciPy</em> for processing your data, and that you use floating point numbers for all processing and…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/articles/basic-python-scripts-to-save-and-load-images" rel="tag" title="Basic Python Scripts to Save and Load Images" hreflang="en">Read more<span class="visually-hidden"> about Basic Python Scripts to Save and Load Images</span></a></li><li class="comment-add"><a href="/articles/basic-python-scripts-to-save-and-load-images#comment-form" title="Share your thoughts and opinions." hreflang="en">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/tags/image-processing" property="schema:about" hreflang="en">Image Processing</a></li> <li><a href="/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 8 May 2022 </span> <span property="schema:dateCreated" content="2022-05-08T13:38:32+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Sun, 08 May 2022 13:38:32 +0000 Tom 381 at https://tomroelandts.com Basic Python Scripts to Save and Load Audio Files https://tomroelandts.com/articles/basic-python-scripts-to-save-and-load-audio-files <article data-history-node-id="247" role="article" about="/articles/basic-python-scripts-to-save-and-load-audio-files" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/articles/basic-python-scripts-to-save-and-load-audio-files" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Basic Python Scripts to Save and Load Audio Files</span> </a> </h2> <span property="schema:name" content="Basic Python Scripts to Save and Load Audio Files" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Each time I need to do something with audio, one dimensional signal processing in general, or images, I need to go through my collection of Python scripts to help me remember once again which library to use to save and load them. To make this easier…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/articles/basic-python-scripts-to-save-and-load-audio-files" rel="tag" title="Basic Python Scripts to Save and Load Audio Files" hreflang="und">Read more<span class="visually-hidden"> about Basic Python Scripts to Save and Load Audio Files</span></a></li><li class="comment-add"><a href="/articles/basic-python-scripts-to-save-and-load-audio-files#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/tags/signal-processing" property="schema:about" hreflang="en">Signal Processing</a></li> <li><a href="/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 4 March 2022 </span> <span property="schema:dateCreated" content="2022-03-04T13:51:52+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Fri, 04 Mar 2022 13:51:52 +0000 Tom 247 at https://tomroelandts.com How to Tweet from Python https://tomroelandts.com/articles/how-to-tweet-from-python <article data-history-node-id="376" role="article" about="/articles/how-to-tweet-from-python" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/articles/how-to-tweet-from-python" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">How to Tweet from Python</span> </a> </h2> <span property="schema:name" content="How to Tweet from Python" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>After deciding that I’d like to automate a weekly tweet of one of my existing blog post, to keep you entertained a bit more now that my posting frequency has diminished lately, I started by googling the different tools and platforms that can be used to do that. However…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/articles/how-to-tweet-from-python" rel="tag" title="How to Tweet from Python" hreflang="en">Read more<span class="visually-hidden"> about How to Tweet from Python</span></a></li><li class="comment-add"><a href="/articles/how-to-tweet-from-python#comment-form" title="Share your thoughts and opinions." hreflang="en">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 6 February 2022 </span> <span property="schema:dateCreated" content="2022-02-06T13:53:18+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Sun, 06 Feb 2022 13:53:18 +0000 Tom 376 at https://tomroelandts.com Fractional Approximations of Pi https://tomroelandts.com/articles/fractional-approximations-of-pi <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Fractional Approximations of Pi</span> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Now that we are just past <em>Pi Approximation Day</em> (22/7 or July 22), I thought about how to find other fractional approximations of pi with small numerators and denominators. I decided that I was going to <em>brute force</em> this thing, just because I can…</p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/users/tom" typeof="schema:Person" property="schema:name" datatype="">Tom</span></span> <span property="schema:dateCreated" content="2020-07-28T10:05:29+00:00" class="field field--name-created field--type-created field--label-hidden">Tue, 07/28/2020 - 12:05</span> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/mathematics" property="schema:about" hreflang="en">Mathematics</a></li> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/fractional-approximations-of-pi" rel="tag" title="Fractional Approximations of Pi" hreflang="en">Read more<span class="visually-hidden"> about Fractional Approximations of Pi</span></a></li><li class="comment-comments"><a href="/index.php/articles/fractional-approximations-of-pi#comments" title="Jump to the first comment." hreflang="en">2 comments</a></li><li class="comment-new-comments"><a href="/index.php/taxonomy/term/19/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1638857033" data-history-node-field-name="comment_node_article"></a></li><li class="comment-add"><a href="/index.php/articles/fractional-approximations-of-pi#comment-form" title="Share your thoughts and opinions." hreflang="en">Add new comment</a></li></ul> </div> Tue, 28 Jul 2020 10:05:29 +0000 Tom 371 at https://tomroelandts.com One Code to Run Them All (Python 2 and Python 3) https://tomroelandts.com/articles/one-code-to-run-them-all-python-2-and-python-3 <article data-history-node-id="351" role="article" about="/index.php/articles/one-code-to-run-them-all-python-2-and-python-3" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/index.php/articles/one-code-to-run-them-all-python-2-and-python-3" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">One Code to Run Them All (Python 2 and Python 3)</span> </a> </h2> <span property="schema:name" content="One Code to Run Them All (Python 2 and Python 3)" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Quite a while ago, I decided to do all my Python programming in Python 3 as much as possible. This is essentially always for the typically small stand-alone programs that I put on this blog. I did this to encourage people to use Python 3 for their own work, and to be future proof. Additionally…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/one-code-to-run-them-all-python-2-and-python-3" rel="tag" title="One Code to Run Them All (Python 2 and Python 3)" hreflang="und">Read more<span class="visually-hidden"> about One Code to Run Them All (Python 2 and Python 3)</span></a></li><li class="comment-add"><a href="/index.php/articles/one-code-to-run-them-all-python-2-and-python-3#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 26 January 2019 </span> <span property="schema:dateCreated" content="2019-01-26T15:20:14+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Sat, 26 Jan 2019 15:20:14 +0000 Tom 351 at https://tomroelandts.com Old Style Linear Regression with TensorFlow https://tomroelandts.com/articles/old-style-linear-regression-with-tensorflow <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Old Style Linear Regression with TensorFlow</span> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><img style="float: right; border: 1px black solid; margin-left: 1em" src="https://tomroelandts.com/sites/tomroelandts.com/files/styles/thumbnail/public/field/image/linear-regression-with-tensorflow-1.png" alt="Figure 1. Line fitted through linear regression." title="Figure 1. Line fitted through linear regression." /></p> <p>This article shows how “old style” linear regression looks when implemented with TensorFlow. When you start diving into TensorFlow, an example like this is typically missing from the tutorials. Linear regression is often the first example, but…</p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/users/tom" typeof="schema:Person" property="schema:name" datatype="">Tom</span></span> <span property="schema:dateCreated" content="2018-12-03T10:14:53+00:00" class="field field--name-created field--type-created field--label-hidden">Mon, 12/03/2018 - 11:14</span> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/old-style-linear-regression-with-tensorflow" rel="tag" title="Old Style Linear Regression with TensorFlow" hreflang="und">Read more<span class="visually-hidden"> about Old Style Linear Regression with TensorFlow</span></a></li><li class="comment-comments"><a href="/index.php/articles/old-style-linear-regression-with-tensorflow#comments" title="Jump to the first comment." hreflang="und">3 comments</a></li><li class="comment-new-comments"><a href="/index.php/taxonomy/term/19/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1567236469" data-history-node-field-name="comment_node_article"></a></li><li class="comment-add"><a href="/index.php/articles/old-style-linear-regression-with-tensorflow#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> Mon, 03 Dec 2018 10:14:53 +0000 Tom 343 at https://tomroelandts.com Symbolic Math in Python https://tomroelandts.com/articles/symbolic-math-in-python <article data-history-node-id="341" role="article" about="/index.php/articles/symbolic-math-in-python" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/index.php/articles/symbolic-math-in-python" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Symbolic Math in Python</span> </a> </h2> <span property="schema:name" content="Symbolic Math in Python" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Yes, you can do symbolic math in Python! The library to take a look at is <em>SymPy</em>. This article is not a SymPy tutorial, as I only want to walk you through some examples to show you the kinds of things that it can do. A good place to start…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/symbolic-math-in-python" rel="tag" title="Symbolic Math in Python" hreflang="und">Read more<span class="visually-hidden"> about Symbolic Math in Python</span></a></li><li class="comment-add"><a href="/index.php/articles/symbolic-math-in-python#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/mathematics" property="schema:about" hreflang="en">Mathematics</a></li> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 22 May 2018 </span> <span property="schema:dateCreated" content="2018-05-22T18:55:43+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Tue, 22 May 2018 18:55:43 +0000 Tom 341 at https://tomroelandts.com Turtle Graphics in Python https://tomroelandts.com/articles/turtle-graphics-in-python <article data-history-node-id="340" role="article" about="/index.php/articles/turtle-graphics-in-python" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-teaser clearfix"> <header> <h2 class="node__title"> <a href="/index.php/articles/turtle-graphics-in-python" rel="bookmark"><span property="schema:name" class="field field--name-title field--type-string field--label-hidden">Turtle Graphics in Python</span> </a> </h2> <span property="schema:name" content="Turtle Graphics in Python" class="rdf-meta hidden"></span> <span property="schema:interactionCount" content="UserComments:0" class="rdf-meta hidden"></span> </header> <div class="node__content clearfix"> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><img style="float: right; border: 1px black solid; margin-left: 1em" src="https://tomroelandts.com/sites/tomroelandts.com/files/styles/thumbnail/public/field/image/koch-snowflake.png" alt="Figure 1. First four stages of the Koch snowflake." title="Figure 1. First four stages of the Koch snowflake." /></p> <p><em>Turtle graphics</em> are a way of drawing where you control a <em>cursor</em>, known as the “<em>turtle</em>”, by instructing it how to move. For example, you tell the turtle to move forward over a certain distance, drawing a line on your screen in the process, then…</p> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/turtle-graphics-in-python" rel="tag" title="Turtle Graphics in Python" hreflang="und">Read more<span class="visually-hidden"> about Turtle Graphics in Python</span></a></li><li class="comment-add"><a href="/index.php/articles/turtle-graphics-in-python#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__meta"> <span> Submitted on 7 May 2018 </span> <span property="schema:dateCreated" content="2018-05-07T11:39:17+00:00" class="rdf-meta hidden"></span> </div> </div> </article> Mon, 07 May 2018 11:39:17 +0000 Tom 340 at https://tomroelandts.com How to Create Animated GIFs with Python https://tomroelandts.com/articles/how-to-create-animated-gifs-with-python <span property="schema:name" class="field field--name-title field--type-string field--label-hidden">How to Create Animated GIFs with Python</span> <div property="schema:text" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><img style="float: right; border: 1px black solid; margin-left: 1em; margin-bottom: 1em" src="https://tomroelandts.com/sites/tomroelandts.com/files/field/image/mandelbrot-animated-small.gif" alt="Animated Mandelbrot fractal" title="Animated Mandelbrot fractal" /></p> <p>To close the series of articles on how to compute fractals using NumPy array operations, I want to show you one more thing: how to create animated GIFs from those NumPy arrays. The first point to make is that…</p> </div> <span rel="schema:author" class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/users/tom" typeof="schema:Person" property="schema:name" datatype="">Tom</span></span> <span property="schema:dateCreated" content="2018-04-09T17:57:58+00:00" class="field field--name-created field--type-created field--label-hidden">Mon, 04/09/2018 - 19:57</span> <div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Tags</h3> <ul class="links field__items"> <li><a href="/index.php/tags/software" property="schema:about" hreflang="en">Software</a></li> </ul> </div> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/index.php/articles/how-to-create-animated-gifs-with-python" rel="tag" title="How to Create Animated GIFs with Python" hreflang="und">Read more<span class="visually-hidden"> about How to Create Animated GIFs with Python</span></a></li><li class="comment-comments"><a href="/index.php/articles/how-to-create-animated-gifs-with-python#comments" title="Jump to the first comment." hreflang="und">3 comments</a></li><li class="comment-new-comments"><a href="/index.php/taxonomy/term/19/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1565121729" data-history-node-field-name="comment_node_article"></a></li><li class="comment-add"><a href="/index.php/articles/how-to-create-animated-gifs-with-python#comment-form" title="Share your thoughts and opinions." hreflang="und">Add new comment</a></li></ul> </div> Mon, 09 Apr 2018 17:57:58 +0000 Tom 337 at https://tomroelandts.com