Author Archives: Calvin Froedge

Ikigai by Sebastian Marshall – A Review

I just finished up the book Ikigai (or rather, ordered collection of essays, email fragments and blog posts) by a guy named Sebastian Marshall.  Ikigai translates to “Reason for Living,” and Sebastian does a good job of putting together a case for what type of reasons one should live their life, and provides a general framework [...]

Posted in Books, Goals, Health, Philosophy, Self Improvement | 2 Comments

A !Quick Lesson in Operators

Operators are one of the core components of any programming language. Knowing how they are classified and how they can be used is extremely important. This post might teach you some new operators. Since the samples are pulled from multiple languages, you may even learn something cool about a new language. Enjoy, and please point [...]

Posted in Programming | Leave a comment

The difference between a function-like macro and a function in C, C++

I’ve been working my way through some of the open courseware computer science materials that MIT hosts. The past few nights, I’ve been reviewing the “Practical Programming in C” lecture notes and assignments. For the most part, the first few assignments were really easy for me – few new concepts. One bit that tripped me [...]

Posted in C Programming Language, C++ | 2 Comments

How Well Do You Understand “Static” Variables?

Today I realized that I did not completely understand the “static” keyword as it applies to variables, which is used in many programming languages. If you weren’t aware of the full breadth of how the static keyword alters a variable, this post should be a mind blower. So, let’s start simple. Take the following example [...]

Posted in Abstract, PHP, Programming, Software Design | 2 Comments

Quick Introduction to the Observer Pattern

A continuation in my self-assigned crash course in design patterns, I’ve been learning more about the observer pattern recently. It’s a cool pattern, and I’m hoping I can convince some of you that it’s worth learning more about. I only have time for a quick post, and hopefully I can get in the major points [...]

Posted in Programming, Software Design | 1 Comment

Understanding Singletons

Why ANOTHER article about Singletons? If you search for ‘Singleton’ in Google or StackOverflow you get a bajillion and a half results.  That makes sense, because it’s one of the most commonly implemented design patterns in the history of software.  Some reasons for the popularity of the Singleton are: A.  It makes more intuitive sense [...]

Posted in C++, JavaScript, PHP, Programming | Leave a comment

Add support for dbase in php 5.3.8

PHP’s dbase extension allows you to work with .dbf files in PHP. After php 5.2, you can no longer compile php with dbase support, so here’s how you can add it to your php installation: 1. Download dbase: http://pecl.php.net/get/dbase 2. Extract and cd into. 3. sudo phpize 4. sudo ./configure && sudo make && sudo [...]

Posted in PHP, Programming | Leave a comment

Tackling the Linux Network for Small Business – Part 2 – Hardware and Topology

Believe it or not, this is the easy part. There aren’t that many physical components that make up a small business network, and acquiring all of them should be both easy and fast. First, let’s start with a diagram (click to enlarge), and we’ll drill into each piece in more detail. So, basically your internet [...]

Posted in Internet, Networking | Leave a comment

Tackling the Linux Network for Small Business – Part 1 – Goals & Overview

I’ve been working on a Linux driven network for my family’s small business, Froedge Machine. It’s been an awesome, engrossing experience so far working on this – and the farther I delve the more I realize just how approachable this type of project is. I’m far along enough in the project now that I can [...]

Posted in Networking, Programming | Leave a comment

PCI Compliance Step 5 – Adding Automated Virus Scanning to Your Ubuntu Server

Number 5 of the 12 PCI compliance steps in the SAQ D is to “Use and regularly update anti-virus software or programs.” We all know that this *really* isn’t needed – but it’s in the PCI compliance requirements – so here’s an easy way to do it. Install ClamAV: sudo apt-get install clamav And then [...]

Posted in PCI Compliance, Programming | 2 Comments