The Even-more Complete List of Hex Words
I realized that I was being insufficiently lee7, so I added S, T, and Z, converting into 5, 7, and 2. This produced a much longer list, of course.
I realized that I was being insufficiently lee7, so I added S, T, and Z, converting into 5, 7, and 2. This produced a much longer list, of course.
While converting some code to 64-bit on Snow Leopard, I discovered that character literals are ints, so I couldn’t use them for 8-byte longs. The alternative is readable hex constants.
Casper Fabricius has a nice shell script for creating new git repositories on DreamHost. Unfortunately, this works only for creating new repositories.
One problem I had with the expression-to-C converter is that CForm converts negations of terms into a negation of parenthesized terms.
I frequently use Mathematica to rearrange or solve symbolic equations to use in C++ programs. While Mathematica is quite powerful for that, it has no facility to hoist common subexpressions into variables.
(updated 2009-03-23 to add the backslashes that disappeared between my blog editor and WordPress)
In Mathematica, typing index brackets is clumsy, as one has to type esc-[[-esc then esc-]]-esc. I found a way to modify the Edit menu to add a shortcut for this. Read more…
Mathematica 7 introduces a new Image function that eliminates all the hassle previously necessary to create and export pixel-perfect raster images.
I was asked what the purpose is of the test image in my previous post, and why the alpha was set to 0.01 rather than 0 in alternating pixels.
Read more…
I keep having to figure out how to export pixel-perfect raster images from Mathematica, which I use for test images with my software. I found that it’s simpler to use ArrayPlot than Raster now, so I’m documenting this for my future use (and any one else’s).
Read more…
I realized too late (again) that updating Safari causes Pith Helmet to refuse to load. I wonder if there’s a surge in ad impressions between the time that Safari updates and Pith Helmet updates to match?
Fortunately, bumping Pith Helmet’s MaxBundleVersion to 5525 lets it load, and so far I haven’t seen any problems.
I hate flash ads.