Posts

  • Deprecating methods in Objective-C

    Nothing lasts forever

    Sometimes you think of a better way of doing things or you got something wrong and you need to deprecate the older version. It would be great if the compiler could help...

    2018
    Read More
  • Disabling init

    Sometimes you just don't want to support init

    In the old days you would be to catch it in runtime; call `[self release]`, error, then return nil. This approach should no longer be used...

    2018
    Read More
  • Varargs in c and Objective-C

    Variadic arguments in c, and how to use them in Objective-C

    With varargs, as their name suggests (var-args), you can define a function or method that takes a variable number of arguments...

    2018
    Read More
  • A Simple OpenIKEd site-to-site VPN

    How to setup a simple site-to-site OpenIKEd based VPN on OpenBSD

    For the benefit of future users, this article details the setup process for a simple site-to-site VPN using OpenIKEd with pre-shared keys on OpenBSD 5.8/5.9...

    2016
    Read More
  • The Problem with rand(3)

    Not all random numbers are created equal

    Some random numbers are less random than others, and most are less random then you think. This entry outlines some of the flaws in the standard 'c' libraries random number generators...

    2016
    Read More