eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

196
active users

#sagemath

0 posts0 participants0 posts today
Simon Tatham<p>An oddity in <a href="https://hachyderm.io/tags/SageMath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SageMath</span></a> I noticed today:</p><p>If you want a Sage program to return failure to the OS, writing sys.exit(1) like you would in plain Python _works_, but has the side effect of printing a line to standard error containing just the text "1":</p><p>$ cat fail.sage<br>import sys<br>sys.exit(1)<br>$ sage fail.sage<br>1<br>$</p><p>Why? Because in ordinary Python, sys.exit("message") prints the message to stderr and then exits with status 1. So sys.exit looks at its argument to see if it has type 'int', and decides whether to print a message or not.</p><p>And one of the changes that Sage makes to the Python semantics is that integer literals aren't plain 'int' any more – they're autoconverted into some more interesting Sage type, so that writing e.g. '1/3' can give you a rational instead of a float, as computer algebra users expect.</p><p>So we're passing the value 1 to sys.exit as a _Sage_ numeric type, and apparently sys.exit decides that doesn't count as an int, but it's happy to call str() on it to convert it into an error message. Hence printing "1".</p><p>An easy workaround is sys.exit(int(1)).</p>
Nadiah Kristensen<p>I recently read a paper by Kleshnina and others and used it to teach myself some evolutionary game theory techniques.</p><p>This is a little obscure, so I'll thread below about why this topic matters for humans and the environment 🧵 </p><p><a href="https://nadiah.org/2024/11/20/kleshnina_2023" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">nadiah.org/2024/11/20/kleshnin</span><span class="invisible">a_2023</span></a></p><p><a href="https://fediscience.org/tags/GameTheory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GameTheory</span></a> <a href="https://fediscience.org/tags/PrisonersDilemma" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PrisonersDilemma</span></a> <a href="https://fediscience.org/tags/iteratedGame" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iteratedGame</span></a> <a href="https://fediscience.org/tags/cooperation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cooperation</span></a> <a href="https://fediscience.org/tags/EvolutionOfCooperation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EvolutionOfCooperation</span></a> <a href="https://fediscience.org/tags/Z3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Z3</span></a> <a href="https://fediscience.org/tags/pyeda" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyeda</span></a> <a href="https://fediscience.org/tags/networkx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>networkx</span></a> <a href="https://fediscience.org/tags/sympy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sympy</span></a> <a href="https://fediscience.org/tags/SageMath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SageMath</span></a> <a href="https://fediscience.org/tags/sustainability" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sustainability</span></a></p>
Yazılım Teknisyeni<p><a href="https://mastodon.social/tags/Switch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Switch</span></a> to <a href="https://mastodon.social/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> solutions in <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a></p><p>Photoshop: <a href="https://mastodon.social/tags/Photopea" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Photopea</span></a><br>Illustrator: <a href="https://mastodon.social/tags/Inkscape" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Inkscape</span></a><br>PremierePro: <a href="https://mastodon.social/tags/Kdenlive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kdenlive</span></a> <a href="https://mastodon.social/tags/Shotcut" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shotcut</span></a> <a href="https://mastodon.social/tags/OBStudio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OBStudio</span></a> <br>Office: <a href="https://mastodon.social/tags/FreeOffice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeOffice</span></a> <a href="https://mastodon.social/tags/LibreOffice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LibreOffice</span></a><br>Maya: <a href="https://mastodon.social/tags/Blender" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Blender</span></a><br>Media: <a href="https://mastodon.social/tags/VLC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VLC</span></a><br>Unity: <a href="https://mastodon.social/tags/Godot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Godot</span></a><br>ToonBoom: <a href="https://mastodon.social/tags/SynfigStudio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SynfigStudio</span></a> <a href="https://mastodon.social/tags/Pencil2D" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pencil2D</span></a><br>InDesign: <a href="https://mastodon.social/tags/Scribus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scribus</span></a><br>Nuke: <a href="https://mastodon.social/tags/Natron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Natron</span></a><br>Procreate: <a href="https://mastodon.social/tags/Krita" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Krita</span></a><br>After Effects: <a href="https://mastodon.social/tags/Friction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Friction</span></a><br>Mathematica: <a href="https://mastodon.social/tags/SageMath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SageMath</span></a> <a href="https://mastodon.social/tags/SymPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SymPy</span></a><br>MatLab: <a href="https://mastodon.social/tags/GnuOctave" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GnuOctave</span></a><br>Audition: <a href="https://mastodon.social/tags/Audacity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Audacity</span></a><br>Autocad: <a href="https://mastodon.social/tags/FreeCAD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeCAD</span></a> <a href="https://mastodon.social/tags/QCad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QCad</span></a><br>Ableton: <a href="https://mastodon.social/tags/Ardour" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ardour</span></a> <a href="https://mastodon.social/tags/LMMS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LMMS</span></a> (daily build)<br>Lightroom: <a href="https://mastodon.social/tags/DarkTable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DarkTable</span></a>, <a href="https://mastodon.social/tags/RawTherapee" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RawTherapee</span></a></p><p>And more...</p>
Eugenia L<p><a href="https://mastodon.social/tags/Switch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Switch</span></a> to <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> solutions:</p><p>Windows: <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a><br>Photoshop: <a href="https://mastodon.social/tags/Gimp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gimp</span></a> 3.0-rc<br>Illustrator: <a href="https://mastodon.social/tags/Inkscape" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Inkscape</span></a><br>PremierePro: <a href="https://mastodon.social/tags/Kdenlive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kdenlive</span></a>, <a href="https://mastodon.social/tags/Shotcut" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shotcut</span></a><br>Office/Acrobat: <a href="https://mastodon.social/tags/OnlyOffice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OnlyOffice</span></a>, <a href="https://mastodon.social/tags/LibreOffice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LibreOffice</span></a><br>Maya: <a href="https://mastodon.social/tags/Blender" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Blender</span></a><br>Media: <a href="https://mastodon.social/tags/VLC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VLC</span></a><br>Unity: <a href="https://mastodon.social/tags/Godot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Godot</span></a><br>ToonBoom: <a href="https://mastodon.social/tags/SynfigStudio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SynfigStudio</span></a>, <a href="https://mastodon.social/tags/Pencil2D" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pencil2D</span></a><br>InDesign: <a href="https://mastodon.social/tags/Scribus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scribus</span></a><br>Nuke: <a href="https://mastodon.social/tags/Natron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Natron</span></a><br>Procreate: <a href="https://mastodon.social/tags/Krita" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Krita</span></a><br>After Effects: <a href="https://mastodon.social/tags/Friction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Friction</span></a><br>Mathematica: <a href="https://mastodon.social/tags/SageMath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SageMath</span></a>, <a href="https://mastodon.social/tags/SymPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SymPy</span></a><br>MatLab: <a href="https://mastodon.social/tags/GnuOctave" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GnuOctave</span></a><br>Audition: <a href="https://mastodon.social/tags/Audacity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Audacity</span></a><br>Autocad: <a href="https://mastodon.social/tags/FreeCAD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeCAD</span></a>, <a href="https://mastodon.social/tags/QCad" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>QCad</span></a><br>Ableton: <a href="https://mastodon.social/tags/Ardour" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ardour</span></a>, <a href="https://mastodon.social/tags/LMMS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LMMS</span></a> (daily build)<br>Lightroom: <a href="https://mastodon.social/tags/DarkTable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DarkTable</span></a>, <a href="https://mastodon.social/tags/RawTherapee" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RawTherapee</span></a></p><p><a href="https://mastodon.social/tags/foss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>foss</span></a></p>
Jesus Margar<p>Está corriendo el make después de 7 horas que dije "vamos a invertir esta matriz". A casita a cenar. <a href="https://mastodon.social/tags/sagemath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sagemath</span></a> <a href="https://mastodon.social/tags/sage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sage</span></a></p>
davidlowryduda<p>An <a href="https://mathstodon.xyz/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a>: I'm a senior research scientist at <a href="https://mathstodon.xyz/tags/ICERM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ICERM</span></a> working in theoretical and computation number theory. I also contribute to the <a href="https://mathstodon.xyz/tags/LMFDB" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LMFDB</span></a> (L-function and modular form database), to <a href="https://mathstodon.xyz/tags/sagemath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sagemath</span></a>, and to a variety of other projects in open source math software. I typically write either <a href="https://mathstodon.xyz/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> or <a href="https://mathstodon.xyz/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a> and I'm happy to talk about <a href="https://mathstodon.xyz/tags/math" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>math</span></a> or <a href="https://mathstodon.xyz/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a>.</p><p>I like <a href="https://mathstodon.xyz/tags/cooking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cooking</span></a>, <a href="https://mathstodon.xyz/tags/cycling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cycling</span></a>, <a href="https://mathstodon.xyz/tags/crosswords" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crosswords</span></a>, and even things that don't begin with 'c'.</p>