Table of Contents

STATUS updates

TODO

URLs

Some links of interest:

Other Days

November 16th, 2015

pod OpenJDK

It seems the issue with running jar files on the pods comes down to ulimits (and OpenBSD being overly restrictive by default).

Here's a fix (changed 512 to 1024), located in /etc/login.conf:

default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
        :umask=022:\
        :datasize-max=1024M:\
        :datasize-cur=1024M:\
        :maxproc-max=256:\
        :maxproc-cur=128:\
        :openfiles-cur=512:\
        :stacksize-cur=4M:\
        :localcipher=blowfish,8:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:

November 13th, 2015

C++ Operator Overloading

I remember this used to seem so confusing in the past… but having played so heavily with pointers, linked lists, and manipulations therein, this suddenly wasn't any bit of a problem at all.

Working on code for a custom number class:

number & number :: operator+(const number &rhs)
{
    this -> add(rhs);
    return *this;
}
 
number & number :: operator=(const number &rhs)
{
    if (this != &rhs) // with equal, need to check for self-references
    {
        delete this;  // deallocate what we currently have
        memcpy(this, &rhs, sizeof(number)); // replace with copy 
    }
    return *this;
}

Useful links:

Month Status Page Navigation