That's what he said.

Eight Hour Lunch's blog

Trig Function Gotchas in PHP, JavaScript and Excel

Fri, 04/13/2012 - 08:13 -- Eight Hour Lunch

Physics. Mmmmhmm, fun!  No really. I had no idea that I could be so entertained with a calculator, a few free hours and a dry erase board. Having solved hundreds of problems over the last several weeks, I'd  write a few small physics simulations in JavaScript for the HTML5 canvas. I started with a function to plot the course of a projectile fired at a given angle and velocity using: 

$$ s = v_{0}t+\frac{1}{2}at^2 $$

LaTeX and Web Fonts in Drupal 7

Thu, 03/22/2012 - 17:14 -- Eight Hour Lunch

If you hadn't noticed already from the last post, I've been on kind of a math kick these days. I've been eager to share what I've learned, haven't had a way to share formulas other than  images. That's ok, but it's not very flexible.

I tried setting things up manually, but didn't have a ton of luck. Fortunately, there's a module (MathJax: LaTeX for Drupal) that seems to work pretty well. Unfotunately, it's still in beta, so use it at your own risk.

Zebra Striping Tables by CSS Class with JavaScript

Tue, 10/18/2011 - 12:19 -- Eight Hour Lunch

You shouldn't need to do this under normal circumstances with Drupal, but for those other times... Just be sure to include class="zebraTable" in the opening <table> tag for any of the tables you want styled, and make sure you have an even and odd class defined in your CSS file. You might also want to change the class names to something other than odd and even to avoid conflicts with your existing styles.

Pages

Subscribe to RSS - Eight Hour Lunch&#039;s blog