Java 7 File Attribute Views

I couldn’t find a list of the results of FileSystem.supportedFileAttributeViews() on various operating systems, so I made one: UnixFileSystem/BsdFileSystem/MacOSXFileSystem: “basic”, “posix”, “unix”, “owner” LinuxFileSystem: Unix + “dos”, “user” SolarisFileSystem: Unix + “acl”, “user” WindowsFileSystem: “basic”, “dos”, “acl”, “owner”, “user”

Syncing large file libraries over the Internet

With the demise of FolderShare, I’ve found it rather difficult to keep my music library synchronized between home and the office. While there is software you can buy like SuperSync, you can pretty easily achieve a more general solution using free software, with the added benefit of universal OS support (e.g. Windows, Mac OS X, …

Continue reading ‘Syncing large file libraries over the Internet’ »

Easily centralize a local Git repository

If you’re like me (and condolences if you are), you’ve often started a local Git repository for a new project, and then later wanted to create a shared upstream repository on another computer. (GitHub walks you through this, but let’s assume you want to manage the shared repository yourself.) Before I knew Git very well, …

Continue reading ‘Easily centralize a local Git repository’ »

E*trade Sucks (and Ameritrade too)

The Sanmina-SCI stock I foolishly purchased through their Employee Stock Purchase Program is currently trading at a third of its purchase price. Now, to add insult to injury, I see that E*trade (the broker Sanmina used for the ESPP) charged me $20 for the 6:1 reverse split last August. They call it a “mandatory reorganization …

Continue reading ‘E*trade Sucks (and Ameritrade too)’ »

Putting UTF-8 into C/C++ Source Code

After much googling, I could not find any tools for converting a UTF-8 string into an escaped C/C++ string literal suitable for pasting into an ASCII source file. Therefore I produced this Perl script which seems to provide a fairly readable escaped string: use strict; chomp; print ‘”‘; my $prev_esc = 0; print map { …

Continue reading ‘Putting UTF-8 into C/C++ Source Code’ »

Misinformation about health care reform from Senator Hutchison?

I just read the Senator’s health care column from yesterday. The 4th and 5th paragraphs The Administration’s proposal contains tax penalties and fees on small businesses that are not able offer health insurance. To pay these added costs, many small businesses could be forced to decrease workers wages, hire fewer employees, implement layoffs, or cut …

Continue reading ‘Misinformation about health care reform from Senator Hutchison?’ »

Build Boost 1.39 for 64-bit Windows

Building Boost for 64-bit Windows turns out not to be completely straightforward. These instructions assume you’re using Visual Studio 2008 and running from a VS 2008 x64 Command Prompt. First, running bootstrap.bat appears to fail: Building Boost.Jam build engine Failed to build Boost.Jam build engine. Please consult bjam.log for furter diagnostics. You can try to …

Continue reading ‘Build Boost 1.39 for 64-bit Windows’ »

Expat 2.0.1 for 64-bit Windows

I couldn’t find any instructions for building Expat for 64-bit Windows (x64), so I updated the 32-bit projects files myself: expat-vs2008-x64.zip. See my projects page for brief usage instructions. Update: With the March 2012 release of Expat 2.1.0, Expat now supports building with CMake, and these build files are no longer necessary. After installing CMake …

Continue reading ‘Expat 2.0.1 for 64-bit Windows’ »