What fun or important formulas would you put on a shirt?

June 2, 2018 Just for fun ,

Lance got a custom made glow in the dark “math, physics, and chemistry” shirt for his birthday a year or two ago (It was Sofia’s idea, she bought the materials, and I got to play.)

He is clearly unimpressed with the photo op, but I wanted to share this shirt, which includes some of the what I thought were a number of the most interesting or important relationships

  • Gamma function, which generalizes factorial to non-integer values.
    \begin{equation}\label{eqn:formulas:20}
    \Gamma(z + 1) = \int_0^\infty t^z e^{-t} dt.
    \end{equation}
    This formula satisfies \( n! = \Gamma(n + 1) \).

  • Euler’s:
    \begin{equation}\label{eqn:formulas:40}
    e^{n i \theta} = \lr{ \cos\theta + i \sin\theta }^n.
    \end{equation}

  • Schr\”{o}dinger’s equation
    \begin{equation}\label{eqn:formulas:60}
    i \, \hbar \PD{t}{} \ket{\psi} = H \ket{\psi}.
    \end{equation}

  • Taylor series
    \begin{equation}\label{eqn:formulas:80}
    f(x) = \sum_{k = 0}^\infty \frac{f^{(k)}(0)}{k!} x^k.
    \end{equation}

  • Euler-Lagrange equations:
    \begin{equation}\label{eqn:formulas:100}
    \PD{x_i}{\LL} = \frac{d}{dt} \PD{\dot{x}_i}{\LL}.
    \end{equation}
    These formulas can be used to express most dynamics relations. You can think of them as basically being the consequence that physical laws are either inherently greedy or lazy.

  • Stokes’ theorem, in its geoemetric algebra form
    \begin{equation}\label{eqn:formulas:120}
    \oint_{\partial V} d^n \Bx \cdot T = \int_V d^n \Bx \cdot \lr{ \spacegrad \cdot T }.
    \end{equation}

  • Quantum commutator relationships between position and momentum
    \begin{equation}\label{eqn:formulas:140}
    \antisymmetric{X}{P} = i \, \hbar.
    \end{equation}

  • Fourier transform
    \begin{equation}\label{eqn:formulas:160}
    \tilde{f}(\omega) = \int_{-\infty}^\infty f(t) e^{-i \omega t} dt.
    \end{equation}

  • Vector product
    \begin{equation}\label{eqn:formulas:180}
    \Ba \Bb = \Ba \cdot \Bb + \Ba \wedge \Bb.
    \end{equation}
    In geometric algebra the vector product has a dot and wedge product split. In \R{3} you can write this as
    \( \Ba \Bb = \Ba \cdot \Bb + I (\Ba \cross \Bb) \), where \( I = \Be_1 \Be_2 \Be_3 \).

  • Relativisitic energy (Einstein’s)
    \begin{equation}\label{eqn:formulas:200}
    E = \frac{m c^2}{\sqrt{1 – (\Bv/c)^2}}.
    \end{equation}

  • Cauchy contour integral relationships for the nth derivative
    \begin{equation}\label{eqn:formulas:220}
    f^{(n)}(s) = \frac{n!}{2 \pi i} \int_C dz \frac{f(z)}{(z-s)^{n+1}}
    \end{equation}

  • Maxwell’s equations
    \begin{equation}\label{eqn:formulas:240}
    \begin{aligned}
    \partial_\mu F^{\mu\nu} &= J^\nu \\
    \epsilon^{\mu \nu \rho \sigma} \partial_\nu F_{\rho \sigma} &= 0.
    \end{aligned}
    \end{equation}
    I’m partial to the geometric algebra form of Maxwell’s equations \( \grad F = J \), but that wouldn’t have looked as good on the shirt.

  • Dirac equation
    \begin{equation}\label{eqn:formulas:260}
    0 = \lr{ i \gamma^\mu \partial_\mu – m } \psi.
    \end{equation}

If you had to pick a set of important formulas on a tee-shirt, which ones would you pick?

UPS twitter bot’s response to my blog post: complete nonsense.

May 25, 2018 Boycott UPS , , ,

I received the following response to my post about the latest customs brokerage extortion by UPS (charging us to destroy the first shipment of a package).  Clearly, the UPS Customer Support twitter feed is a bot.  Once provided with a non-standard answer it shut up for good.

 

 

 

UPS: charging you to break your stuff.

May 25, 2018 Boycott UPS , , ,

 

I have to admit that I hate UPS with a passion.  As a Canadian, if you ever want to purchase something from the United States, you have to pray that UPS isn’t the shipper, because if they are you are going to get screwed.  Now, let’s be perfectly clear.  By screwed, I don’t mean something that leads to a shuddering climactic orgasm, and a great afternoon nap.  Screwed by UPS means you are raped in the ass.  Think of yourself as a prisoner serving the first day of twenty years in maximum security, and UPS is the gang of Nazi skinheads oogling you as you are naked in the shower picking up the soap from the floor.

UPS runs a double payment scam where they leverage Canadian customs to charge you for the “service” of collecting any customs charges.  Their charges for this service are often more than the original shipping amount, and can be a large percentage of the total declared value of the item.  You may have thought that you (or the person sending the package) paid for shipping, but UPS collects on both ends, from both the shipper and the reciever.  It’s a really nice scam and I am sure it is immensely profitable.

Here’s the latest example:

UPS determined that $7.62+$14.20 was due to the Canadian government (which was too high), and then charged $36.85+$4.79 for the service of collecting this payment.  The total customs charge from UPS, including the duty is a whopping $63.46, which was 62% of the total value of the item in this case.

This extortion can be handled by collecting the shipping slip from the UPS delivery guy, telling him that you’ll be self clearing, and then calling UPS and telling them that you’ll be self clearing the item.  They then email you the forms that you need to take to the CBSA (Canadian Border Security Agency), which look like:

You have two business days to complete the self clearing process, and for that time UPS will hold your package ransom.

The self clearing process is a real pain in the ass to do, at least if you live in Markham, since the only CBSA office that handles this paperwork is all the way down near the airport, on 2720 Brittania Rd E.  It’s a windy road that you are not inclined to believe you are allowed to be on.  You also have to pass through a huge gate that has razor wire all over it, and looks like the armed guards just stepped away for a moment, but will be back to shoot you shortly for trespassing.

Assuming you avoid getting shot or arrested for tresspassing, and find the office, you can then collect the following form:

This is the B15 form that UPS requires to release the package to you.  You email then this form, and they arrange to re-deliver the package to you after they receive the paperwork.

We went through the pain of doing the self clearing for the package above (a glass sink), but after UPS left it at the door (without even ringing the doorbell), we discovered that they had destroyed the sink, which looked like this:

This is not in a good state to install.  We called UPS to collect the item that they destroyed and the manufacturer to ship a replacement item.  This is unfortunately where things get really irritating.  UPS now charged us for the service of having originally destroyed the first sink, by imposing a second brokerage handling fee for the replacement item.  Since we’d paid the duties all ready, this final charge of $34.86 was for the difficult service of collecting $0.00 duty and GST for the Canadian government:

My wife spend a half hour arguing with the poor UPS delivery guy (who is a pawn) that they had no right to charge us a second time for brokerage fees, when we’d already handled those the first time.  She was ready to keep the item without paying this additional extortion, and deal with UPS management/customer-service after the fact, but the delivery guy said that the police would be called if that was done.

They’ve basically got you by the balls.  This time, we ended up paying their extortion, as we didn’t trust UPS not to destroy the item a second time, and have plumbers coming for install work starting next week.  I don’t hold much hope that calling UPS management will result in any refund, since they are perfectly happy with customers perceiving them as a money grubbing company that behaves unethically, and is ready to shaft you at every possible opportunity.

UPS’s new motto: “If we can’t screw you with brokerage fees the first time, we will destroy your stuff and charge you a second time to replace it.”  We just paid $34.86 towards their new marketing campaign.

Mainframe development: a story, chapter 1.

April 19, 2018 Mainframe , , , , , , , , , , , , ,

Once upon a time, in a land far from any modern developers, were languages named COBOL and PL/I, which generated programs that were consumed by a beast known as Mainframe. Developers for those languages compiled and linked their applications huddled around strange luminous green screens and piles of hole filled papers while chanting vaguely latin sounding incantations like “Om-padre-JCL-beget-loadmodule-pee-dee-ess.”

In these ancient times, version control tools like git were not available. There was no notion of makefiles, so compilation and link was a batch process, with no dependency tracking, and no parallelism. Developers used printf-style debugging, logging trace information to files.  In order to keep the uninitiated from talking to the Mainframe, files were called datasets.  In order to use graphical editors, developers had to repeatedly feed their source to the Mainframe using a slave named ftp, while praying that the evil demon EBCDIC-conversion didn’t mangle their work. The next day, they could go back and see if Mainframe accepted their offering.

[TO BE CONTINUED.]

Incidentally, as of a couple days ago, I’ve now been working for LzLabs for 2 years.  My work is not yet released, nor announced, so I can’t discuss it here yet, but it can be summarized as really awesome.  I’m still having lots of fun with my development work, even if I have to talk in languages that the beast understands.

Applied vanity press

April 9, 2018 math and physics play , , , ,

Amazon’s createspace turns out to be a very cost effective way to get a personal color copy of large pdf (>250 pages) to markup for review. The only hassle was having to use their app to create cover art (although that took less time than commuting downtown to one of the cheap copy shops near the university.)

As a side effect, after I edit it, I’d have something I could actually list for sale.  Worldwide, I’d guess at least three people would buy it, that is, if they weren’t happy with the pdf version already available.