Posted on:

The kind of errors I hate the most are the ones you cannot even find in the documentation. When you get no compiler warnings, and even an incentive from your preferred auto-completion tool to go straight into them.

Todays such error is the following:

byte[] buffer = /* something that fills the buffer with the contents of a string*/;<br /> String stringBuffer = new String(buffer, Charset.forName("UTF8"));

What's wrong here?? Compiles fine, looks fine.... let's read the doc... fine. Except, as it turns out, for long buffers, it will truncate the string and add a trailing .... So you need to do something like this instead

String stringBuffer = new String(buffer, ...

Posted on:

@adurdin has made a skin for the iPhone simulator that may wear less on your eyes when you're sitting there developing all day: iPhone simulator beautified.
Visit his blog for instructions on how to install it.

Posted on:

I mentioned libpd for iOS a while ago, and now I found that it's ready to be played with. But as soon as I wanted to play with spectral analysis, I started missing tools, so trying to get cartopol~ and poltocart~ to work, I ended up putting in support for all the Cyclone objects. When the work was done (it compiled and ran fine) I put it on GitHub: https://github.com/niklassaers/PdTest02WithCyclone. Many thanks to Richard Lawler for giving ...

Image Image

Father, husband, software developer, musician and photographer.


Get to know what I'm up to

© 2020 Niklas Saers Contact Me