Archive for the ‘Meaningful Labor’ Category.

VisualStudio linking error when re-compiling

Well, I don’t want to lose to many words about VisualStudio compared to any professionally acting development tool, but there seem to be (non-)surprisingly many people out there suffering from the same insane problem…

When re-compiling a project, with the intention of only processing those files that have been changed since the last run (or those depending on such files), the linker fails in a miserable way:

1>CVTRES : fatal error CVT1100: duplicate resource.  type:ICON, name:1, language:0x0409
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

As common when using tools from Redmond, the error message is of almost no real help, since it does not tell anything about the file(s) that caused this problem. BTW, you won’t find any more details in the oh-so-detailed build-log either…

Well, the relly bad problem here is the linker itself, who tries to incorporate a given icon file into the executable binary, and thus runs the visual studio resource compiler (“RC.EXE” iirc), which in turn terribly cries out noticing there is already a compiled resource file where it would like to create a new one so desperately… Having left you standing there in the rain, compilation fails. It doesn’t even consider to tell you which files conflict or simply override the old resource file.

To avoid this, navigate to the topmost folder in your destination tree, and look for files having a “.res“ suffix. Using a sane cygwin shell, simply do something like:

find | grep ".res$" | xargs rm -v

Having removed the .res-files, recompiling works like a charm. Well, I’m going home into the GNU-zoo now, enough of this annoyance…

clean up frozen mails in exim queue

for mail in $(sudo mailq | grep frozen | cut -c 11-26) ; do
    sudo exim4 -Mrm $mail
done

extend or adjust the grep-pattern as required by your situation…

git and svn

by far the best article I’ve read for somebody used to subversion (and tied to an SVN-repo) who wants to use git locally:

Git-SVN: Whys And Hows

thanks!!

Apache and WebDAV properties (mod_dav)

Ever got messages like this in your Apache logfiles, wondering why setting properties via a client on your (otherwise working) WebDAV is failing?

Could not open the property database.  [500, #205]
(2)No such file or directory: Could not open property database.  [500, #1]
(2)No such file or directory: Attempted to set/remove a property without a valid, open, read/write property database.  [500, #202]

Well, simply add a directory called “.DAV“ (note the leading dot!) to your WebDAV base-directory, that is writeable to the webserver. That’s where the corresponding information will be stored by Apache. Note that this is “somehow” mentioned by the mod_dav documentation at webdav.org, but not by Apache’s documentation itself. Yes, that’s bad and pretty annoying.

vimagic: identifying and treating non-printable or other strange characters

reset vim’s internal representation of what printable characters are, then find all non-printable chars except “TAB” (note that “^I” means literally pressing the TAB-key):

:set isprint=
/[^[:print:]^I]


UPDATE: a nicer way to achieve this is to activate search-highlighting and then search for characters in the range 0×7f – 0xff (this way vim displays the printable chars like german umlauts, but they’re highlighted, so you can identify them easily):

:set hlsearch
/[\x7f-\xff]

(see also: vim-wiki, vimtips)

lightning in thunderbird-3

what’s the point in complaining about beta-releases? well, the hope for a better final version…

currently, not only TB-3 has a lot of bugs, but also the latest lightning-plugin: Bug 523555

most confusing to me is the fact that importing a certificate is insufficient to make this work, you also have to select every certificate and edit its trust-properties to make it work. how daffy…

welcome back!

migrating the blog to the new server is finished and thanks to the professional service from prosite, even switching the domain was done in five minutes!

textpattern is dead. dead, dead, dead.

In the progress of migrating to a different server, I decided to upgrade my textpattern-installation. So I used the current release 4.2.0, basic installation was quite easy as expected. Next, I tried once again to install a theme since textpattern looks awful by default… Since the official theme-site lists an updated version of my old theme “Gentle Calm” this was the choice to go for – and this is where once again the pain starts.

Documentation talks about sth. like “easy and quick” installation procedure. Followed by dozen steps that include uploading and naming images, adjusting CSS by hand, editing existing templates and so on. What a PITA!!! Just to discover in the end that AGAIN half of the basic stuff like archives, RSS and so on is not working. And even more, none of the recommended plugins is available anywhere on the textpattern web-resources. Nothing but dead links.

Being disappointed once again this hard, I decided to test a different blogging-software. After a close look at HelixBlog (guess why…) which looks really interesting, I decided anyhow to give WordPress a chance.

And that’s where the nice part of the story begins. Basic installation was quite the same, but what a difference with what you are greeted after that: a nice admin-panel, many details but very well-organized. One-Click-Installation of new themes (or one-tar-installation, depending on your preferences). And the most shocking: an import-tool to migrate from textpattern to WordPress.

After all, the whole procedure of installing WP, a convenient theme and importing all information from textpattern took less time than going halfway through the theme-installation with TXP.

textpattern is dead. really.

sort/re-order your photos on the iphone / ipod touch

as always, apple thinks they know what’s best for the user and keep him from adjust anything to its gusto… ever wondered why the photos you sync to your iphon/ipod are completely random and out of order? no matter about filenames or meta-information like exif? no way to sort them? grrrr

well, the filename doesn’t count (otherwise digikam would be a solution by batch-renaming your favorite pictures): no, it’s the file’s timestamp (to be precise, the timestamp of the last change)!!

here’s a neat script to adjust those timestamps so the photos get sorted by mapping an ascending order from the filenames to their respective timestamp:

david uebelacker: iphone bilder sortieren

Post-BIOS era: EFI arrives on (non-Apple) Notebooks like Sony’s VAIO

Today I had a brand-new Sony VAIO VGN-Z41WD on my desk and was asked to set it up with Win7. After creating recovery DVDs with the installed Vista, I tried to enter the BIOS – and failed. This machine is not equipped with ston-aged 8-bit BIOS code but finally manufacturers seem to make the move towards EFI.

Well, F2 is the key to press when the InsydeH2O-logo appears on the boot screen. Pressing other keys along with it seems to confuse the machine (and makes it ignore all of them, which is why I probably failed to enter the EFI-setup at first).

Unfortunately, the Insyde locks out the user from most options available in a classic BIOS setup. Currently it seems like this restriction can be removed, for more information see those blog entries:

http://feature-enable.blogspot.com/2009/07/enable-vt-on-insydeh2o-based-sony-vaio.html
http://marcansoft.com/blog/2009/06/enabling-intel-vt-on-the-aspire-8930g/