Hello To Hugo

Just prodding the slugs...

Testing mmark with inline (\(x\)), and display math:

\[ H(X) = \langle I(X) \rangle \]

Piping input to the gcc preprocessor

Spent a while hacking this little pipe to grab the configuration constants for the Marline firmware on my Rostock 3D printer:

echo "$(grep -e '^#define' Configuration.h)$(echo -e "\nDELTA_DIAGONAL_ROD")" | gcc -E - | tail -n 1

The first part,

echo "$(grep -e '^#define' Configuration.h)$(echo -e "\nDELTA_DIAGONAL_ROD")" 

will spit out all the #define lines in Configuration.h, followed by a newline (echo -e) and the symbol I am after. Having newlines within bash variables still feels like magic :)

After that, I rely on standard Unix notation to make gcc use standard input (“-”). The gcc documentation doesn’t seem to mention this possibility.

Note to self: find a way of using markdown on Blogger – straight HTML and the “Composer” are equally horrible for geeky stuff.


After a long downtime, I’ll try reviving this blog mostly as a place to chronicle my experiences with a newly build 3D printer.

First, let’s get MathJax online. Looking through the docs, it looks like what I need to match the StackEdit/GitHub configuration is the following (at the end of the <head> block):

<script type="text/x-mathjax-config">     MathJax.Hub.Config({         tex2jax: {             inlineMath: [ ['$','$'] ],             displayMath: [ [ '$$', '$$'] ],             processEscapes: true nbsp;    }}); </script> <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript">

Below should be a displayed equation
$$ E^2 = m^2 + p^2 $$
the same could be inlined like so: $E^2 = m^2 + p^2 $

Am of course planning on moving it all to a static system like all the cool kids, but not right now…

Worlds deepest ring trap!

Yup, I am quite sure they will never be deeper than this.

Squeezing any harder from the top would send the poor ions flying out the side.

Doing Y's again

I really should be doing some quantum schmantum, but couldn’t help fiddling with some ideas for a best-compromise Y-intersection. This time around I’m firmly committed to Mathematica – once you know the gotchas you can actually get some nifty performance. And the language is heavenly compared to most other things and Matlab in particular. </p?

More posts