Jump to content


Check out our Community Blogs

DarkLordofthePenguins's Blog



Technology vs. business

Posted by DarkLordCthulhu, 07 November 2011 - - - - - - · 808 views

I just read an article on Ars Technica about a Google lawyer taking a stance on software patents. I'm glad someone representing a company as large as Google is finally speaking against the system. But what I really found interesting...


Group theory and mathematical logic

Posted by DarkLordCthulhu, 19 October 2011 - - - - - - · 384 views

Recently I've made an effort to really master computer programming. I've started practicing coding more, and studying new subjects and languages, trying to significantly expand my range and depth of knowledge and skill (hence why most of my forum activity has been me asking questions rather than contributing advice).

I've known from the beginning that one...


Playing with the terminal

Posted by DarkLordCthulhu, 12 October 2011 - - - - - - · 1047 views

I've been playing around with some escape sequences and the termios structure in POSIX, trying to create a full-screen program. I managed to create the following program. It's a simple "game" that draws a playing grid and a character on the screen and moves the character around the grid when the user presses the arrow keys.



#include
#include...


Simple languages

Posted by DarkLordCthulhu, 08 October 2011 - - - - - - · 604 views

I have said occasionally that I like simple programming languages. I like a language that I can learn the basic syntax of in about a week or two, then spend the next few weeks honing my skills. It isn't a requirement in order for me to like a language, but it helps.

However, I think some people don't understand what I mean when I say this. To many...


Problems with learning Assembly

Posted by DarkLordCthulhu, 26 September 2011 - - - - - - · 436 views

I have just recently started making an effort to learn x86 Assembly, after doing some pretty in-depth preliminary research on CPU architecture concepts and familiarizing myself with the 68K Assembly language. This is the first time I've actually tried programming in an assembly language, and I'm running into a lot or problems. The more I try to get past...


This fu*king sucks.

Posted by DarkLordCthulhu, 07 September 2011 - - - - - - · 606 views

So I just started classes yesterday. I'm going to a community college to get an IT associate's degree, because I'm too lazy and too poor to attend a real school. I had my first classes for two of my three courses yesterday. The first one is on IT foundations, which is basically an overview of the career-oriented aspect of the IT field.

The second class...


This bugs me.

Posted by DarkLordCthulhu, 04 September 2011 - - - - - - · 531 views

Anyone else annoyed by the 18,395 assembly language tutorials and the 824,104 C# tutorials that were posted to this site by two members (the bee guy and the smiley guy) in the last couple weeks? Doesn't this constitute spam or something (you know, flooding a website with superfluous posts in order to get views/responses/points/etc.)?


Prefix vs. infix vs. postfix notation

Posted by DarkLordCthulhu, 03 September 2011 - - - - - - · 129022 views

In my last blog post, I said that I taught myself dc, the Unix RPN calculator. I am also teaching myself Lisp, specifically Common Lisp. Both represent promising alternatives to the imperative, procedural, object-oriented languages that many programmers seem intent on sticking to while remaining ignorant of everything else. These people (at least in my...


dc: an elegant calculator

Posted by DarkLordCthulhu, 29 August 2011 - - - - - - · 835 views

Last night I took the time to teach myself dc, the RPN calculator for Unix. dc is a command-line-based utility that is present on most Unix systems but has been largely superseded by the more intuitive bc. I read the docs for dc on my computer, and tried my hand at its scripting language. I found it to be a very elegant language, and it's probably one of...


Wide characters vs. regular characters in C

Posted by DarkLordCthulhu, 04 August 2011 - - - - - - · 347 views

The following two programs show the advantage of wide characters over regular characters. Both copy a file, but one does it with char and the other does it with wchar_t:


#include

int main( int argc, char **argv ){
FILE *infile = fopen( argv , "r" );
FILE *outfile = fopen( argv[2], "w" );
char c; // char gets truncated.
while( (c = fgetc(...