Welcome to my site!

This is my place to write blogs. These blogs will generally consist of articles, tutorials, rants, and tips. They will only come up from personal experience and will hopefully help somebody as much as I would have enjoyed the help then. Hope you enjoy!
 

Esoteric Programming

How needlessly complicated can you make one thing?

From Wikipedia: "An esoteric programming language (sometimes shortened to esolang) is a programming language designed as a test of the boundaries of computer programming language design, as a proof of concept, or as a joke. There is usually no intention of the language being adopted for mainstream programming, although some esoteric features such as visuospatial syntax have inspired practical applications in the arts. Such languages are often popular among hackers and hobbyists. This use of esoteric is meant to distinguish these languages from more popular programming languages."

It basically is just saying that we sometime do stupid crap, "just 'cause." This is one of those times. If you ever read The Hitchhikers Guide to the Galaxy, you'll get this.

Dummies Guide to Setting Up Nginx

Nginx is one of those things that many people want to try but don't. Why? Because it's scary. Well... Nginx itself isn't scary, but all of the poor guides out there make it a nightmare. The first step in making Nginx work for you is to not follow 95% of the guides found on Google. That sounds backward from what you usually hear and I do hate giving that advice. While many of the guides out there will get you going most of the time in most situations, they tend to be suboptimal. Many of these configurations tend to focus on reproducing how Apache does things.

Mister Jones

It's always great to have the latest and greatest gadget. That new netbook is so small and everyone else has it. The Droid does so many cool things, even SSH. I deserve to have all of this cool stuff.

I'm getting rather annoyed with is attitude. Sure, I really want a Droid. They are really amazing. My fiancée no doubt gets tired of hearing me talk about things I'd like to have. However, I would only 'like' to have these. I'm not one to go on and say I 'need' or 'deserve' them. When I talk about them, I'm describing what I would probably do with unlimited money.

Patience

"See that no one repays another evil for evil."
[ I Thessalonians 5:15 ]

This is so easy to understand. It just says that if someone does an evil act, don't react with yet more evil.

Let's break it down though. How ofter have you been angered in IRC, on the phone with technical support, or elsewhere. You feel they're just being morons and you want to punch them. It happens to me a lot.

Simple IP Echo

OK! We all know Nginx is amazing and extremely light. I've been having the need lately to quickly get the IP address of a location. There's "whatismyip.com" but that's an ugly bloat. Look at how much you download to just get a small string of numbers.

To get around this a lot of people run their own website that displays the IP address. This is usually done by passing the connection from Apache to HTTP which has code similar to the following in it.

<?php
        print(getenv(REMOTE_ADDR));
?>

What You Need To Do After Installing Ubuntu 10.10

Every six months these articles become popular. I've been using Ubuntu 10.10 (Maverick Meerkat) for a few months now and I thought I'd share what I thought.

For most users

Step 1:
Install Ubuntu 10.10

Step 2:
Install the little extras you might want, such as Thunderbird, Galeon, etc.

Step 3:
Enjoy!

For cli users

Step 3:

apt-get install aptitude
aptitude purge vim-tiny
aptitude install vim

Step 4:
Enjoy!

For psychotic users like me

Step 1:
Grab Alternate CD

Useful F1 in Firefox

Do you ever use F1 to bring up help pages in Firefox? Do you find this feature useful? Do you like rhetorical questions?

Personally, I've never found this F1 function useful or helpful. The times I wanted some help from it I wasn't able to get the help I needed. So then this becomes a pointless feature. I bumped it some so I kinda of got irritated.

Here's what I did to make it useful:
Open a tab
Go to about:config
Search for app.support.baseURL
Right click
Modify
http://profarius.com/?

Nginx Book Review

Most anyone reading this already knows me. My name is Michael Lustfield. I'm running the servers of a starting web development company called Kalliki Software. We've been in business for a little while now. When we started we had an Apache Web server with less than one half a gigabyte of RAM. After three websites we were feeling the burn. The Apache web server was taking us down. We didn't have the resources to grow out. We needed to grow up. I turned to the two leaders, Nginx and Lighttpd. After investigating each I easily settled on Nginx.

Securing Websites

Building a secure setup is extremely hard. There's an old saying that's basically "build an idiot-proof system and the world will build a better idiot." That works two ways. If you build a hacker-proof system then you'll
find better hackers. Loosely defined use of the term hacker of course.

So, how does one make a secure web server. The easiest would be to use something like Nginx and server only static content with hundreds of layers of strong security to get to altering those files with only one fully

Persistent SSH

It's time for another post. Recently I've had issues with dropping network connections or wanting to connect and keep working on the same thing from other systems. Most of you probably already know the answer. You screen.

Sounds easy enough. My issue is that I'm incredibly lazy. I don't want to SSH into the system AND start screen AND detach AND reattach. That's just asking way too much of someone like me.

Here's the very simple solution. In my ~/.bashrc file I appended this section of code.

ssh() {
  command ssh "$1" -Xt screen -aAdr -RR work bash
}

Pages

Subscribe to Michael Lustfield RSS
2011 © Michael Lustfield