Archive

Author Archive

New eXtend Standard Library 1.6.3

February 4th, 2012 Rashaud Teague No comments

Removed the lists.c functions and the data types that belonged. Project Page

Categories: C/C++, Linux, UNIX Tags:

Definitely going to install this soon!

February 1st, 2012 Rashaud Teague No comments

FACEpress

EDIT: THIS DOES NOT WORK!

Categories: Fun Tags:

Razer Gaming Laptop.

February 1st, 2012 Rashaud Teague No comments

Check out this new gaming laptop by Razer.

razer laptop

Categories: Fun Tags:

My dream home rig

February 1st, 2012 Rashaud Teague No comments

Must. Have. This.

command center guns

Categories: Fun Tags:

eXtended Standard Library final big release.

January 27th, 2012 Rashaud Teague No comments

1.6.x is the last big release of this library. Documentation is updated and ongoing. Future releases will be bug fixes and minor enhancements only.

View the project page.

Categories: C/C++, Development Tools, Linux, Mac OS, UNIX Tags:

eXtend C Standard Library Overhaul

January 26th, 2012 Rashaud Teague No comments

The upcoming 1.6 and final branch of the 1.x versions will a change in the way functions generated new data within them. No more memory allocations and returning with the newly allocated memory.

For example:

char * substr(const char *str, unsigned int start, unsigned int length) {
    int str_size = (int) strlen(str);
   
    if (start >= str_size) return (char *)str;
    if (start + length >= str_size) length = str_size - start;
   
    static char *rstr;
    if (rstr != NULL) free(rstr);
   
    if (length > 0) {
        rstr = (char *) malloc(length * sizeof(char));
        int i, j;
        for (i = start, j = 0; j < length; i++, j++) rstr[j] = str[i];
        rstr[length] = '\0';
    } else {
        rstr = (char *) malloc(1 * sizeof(char));
        strcpy(rstr, "");
    }
   
    return rstr;
}

Will be rewritten as:

char * substr(const char *str, unsigned int start, unsigned int length, char *buffer) {
    int str_size = (int) strlen(str);
   
    if (start >= str_size) return (char *)str;
    if (start + length >= str_size) length = str_size - start;
   
    if (length > 0) {
        int i, j;
        for (i = start, j = 0; j < length; i++, j++) buffer[j] = str[i];
        buffer[length] = '\0';
    } else {
        strcpy(buffer, "");
    }
   
    return buffer;
}

And its usage, in short:

char search[delimiter_size];

substr("Hello World", 0, 5, search);

printf("%s\n", search);
Categories: C/C++, Development Tools, Linux, Mac OS, UNIX Tags:

I like viewing processes this way.

January 24th, 2012 Rashaud Teague No comments
ps -Ao pcpu,time,pmem,pid,ppid,user,command
Categories: Linux, UNIX Tags:

Stop SOPA/PIPA

January 18th, 2012 Rashaud Teague No comments

Everyone, help stop SOPA/PIPA. Help stop Congress from, again, helping and interfering with failed business models (i.e. bailouts) and most importantly stop Congress from essentially censoring the internet!

For more information:

https://www.google.com/landing/takeaction/

Categories: Freedom Tags:

eXtended Standard Library Update

January 15th, 2012 Rashaud Teague No comments

Had to make a quick change to the broken get_slope function. Please download version 1.1.1 ASAP.

View the wiki page for it’s new documentation.

Categories: C/C++ Tags:

Maris Laboratories Project Wiki

January 13th, 2012 Rashaud Teague No comments

I forgot to tell you all that I’ve finally installed and started setting up the Maris Labs wiki. I really needed this for documenting code *cough* *cough* eXtended Standard Library.

Mind that this wiki is under construction at this point. I’m working hard to get it “finished”. Please check out the eXtended Standard Library‘s project page, as I am frequently updating the documentation, starting with the non-self explanatory functions first.

Other projects (listed on my Projects page) will have wiki pages set up as soon as possible.

Cheers!

Categories: Uncategorized Tags: