January 22, 2010

CRTs, MHz, megabytes, and Linux. Making usable boxes from junk, to
donate.
8 Comments
CRTs, MHz, megabytes, and Linux. Making usable boxes from junk, to
donate.
8 Comments
#include <stdio.h> struct test1 { double b; }; struct test2 { int a; test1 b; }; test2 foo; int main() { printf("%d\n",(int)&foo.b.b - (int)&foo); return 0; }What does this print? On Windows, it prints 8. On OS X (or linux), it prints 4. Which means, if you access foo.b.b a lot, it will be slow. UGH. I guess that's why there's -malign-double for gcc. Now if I can just figure out how to enable that for Xcode...
Recordings:
freeform jam with brennewtnoj
7 Comments
I took this in 2000, on slide film.. but here it is, processed and uploaded with snapease heh (testing it)
I spent the better part of this week working on a new program called "SnapEase" (credit to Al for the name).
I've found myself having a bunch of digital photos and wanting to post them online. SnapEase lets you import your photos (or folders), then nondestructively (and very quickly) crop, rotate, desaturate, rename, and/or remove the images from the list. Once you have your list the way you like it, you can have it automatically resize and save the images to disk or upload to the web. In this initial version the upload is just a generic HTTP POST thingy (with example script), but I'm intending to add support for Flickr and F***B***.
Updated: Released w/ source, link is www.cockos.com/snapease!
P.S. thanks to WhiteTie for the artwork and logo!
13 Comments
Stumptown, mmm. I still miss Blue Bottle when I'm in NY.
(that's the Empire State Building in the reflection)
1 Comment
We write a lot of code, and when we find parts that are sensible to reuse, we tend to make them part of WDL (pronounced W-D-L or "whittle"). WDL includes a bunch of stuff, but what we strive for is to make it easy to just use a little bit of (aka get hooked on) WDL. One of my favorite parts of WDL is LICE, the Lightweight Image Composition Engine.
I've made available a simple Jetpack game that I made a couple of years ago for Allison's nephew. The source is included. Download here (win32), and it'll need the latest WDL to compile if you wish to compile it. Rob[o[tron]] of Underhill Amps made the music.
Recordings:
brennewt - 1 -- [25:43]
brennewt - 2 -- [12:41]
1 Comment
If you use NSMenuItem directly and assign a submenu to it using [parentMenu setSubmenu:forItem:], be sure to use [parentMenu setSubmenu:nil forItem:...] before releasing the NSMenuItem or parentMenu.
It appears that there's some internal system cache of NSMenuItems (for keyboard shortcuts etc), and simply removing the menu item doesnt invalidate that cache, which can cause random crashes on some systems, though it might be fixed for 10.6.
I've spent so much time on getting everything nice on OS X, for REAPER v3.13. I think it's paying off. Schwa says "it is like walking through mud." I tend to agree -- it's 95% "ugh" and 5% "woot". To be fair I'm sure Win32 was similar for me, back in the day, but I guess I didn't have much of an alternative (before that I had done some Xlib stuff that was not particularly enjoyable).
If you have a ReadyNAS, you might need to set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa LmCompatibilityLevel = 2 to let you access it via SMB.
October 17, 2009
0 com.apple.CoreFoundation 0x94563084 CFRetain + 36
1 com.apple.HIToolbox 0x90e99438 RetainEventParamData + 90
2 com.apple.HIToolbox 0x90e991cb SetEventParameter + 233
3 com.apple.HIToolbox 0x90edff75 SendMenuPopulate + 189
4 com.apple.HIToolbox 0x90edfe73 PopulateMenu + 63
5 com.apple.HIToolbox 0x90eebcd6 SearchCacheEntries + 348
6 com.apple.HIToolbox 0x90eeb86c SearchCache + 316
October 17, 2009
October 17, 2009