EppesConsulting Blog

The Random Tech Stuff I Run Into Every Day

Browsing Posts in admin

I was playing around with MOBI/EBOOK formats today (more posts to come in the future) and needed to add a MIME type to my GoDaddy shared hosting account.  I found a great article on how to do this through your Web.config file here.  In my case, the Web.config ended up looking like this:


<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".epub" mimeType="application/xhtml+xml" />
     </staticContent>
    </system.webServer>
</configuration>

I’ve found serversniff.net to have quite
a few domain tools, including traceroute and SSL certificate inspection.

Have you ever needed to get the output of a program into an environment variable so
another program can read it?  It’s really easy to do in a Linux shell, but how
about in DOS?  I’ve found this program to be invalueable:

XSET

The best way to restart a Windows machine from C# code:

restart
computer using c# code

I can’t possibly say enough about mRemote.  This is definitely one I can’t live
without:

mRemote

This project merged with a commercial application which I’m sure is excellent as well,
but the last “free” version (1.50) works just fine for me.

Ever wonder which services your Exchange server is exposing?  Check out the Exchange
Remote Connectivity Analyzer
.

Use the open source equivalent:

Clonezilla

I wanted to had an application I was developing alert our systems administrator to
events like being unable to contact a database.  I usually use a class that catches
an exception and emails it out, but what happens when the problem is with the SMTP
server?  I landed on using SysLog and having the alert pushed over to the actual
monitoring server. 

This is very down-and-dirty code (creates the connection and packet directly instead
of calling a SysLog library), but it worked like a charm for what I needed it to do.

A Low-Overhead SysLog Message
Sender Class

I’ve used X10 for
years to control the accent lights on my house.  I received an el-cheapo Firecracker controller
as part of a start-up X10 pack almost ten years ago now and have been enjoying using
it since.  I never used any big, fancy X10 software that you have to purchase,
I always used the freely available things you find on sites like SourceForge.

Recently I swapped from using a Windows based home server (and mscm17a)
to Linux.  I had no idea of which X10 tools I would need, but I had faith that
the open source community behind Linux would provide.

They delivered well.

I am now using HEYU, a rough equivalent
to the program I was using previously under Windows.  Just substitute cron for
scheduled tasks and you’re up and running.

And for the awesome part – I had always wanted to write a program that would set my
accent lights to come on around sunset and go off when I normally turn in for the
night.  Turning them off at a certain time was easy, it was the sunset part that
was the trick, especially since that could vary from 4-8pm on any given night. 
I’ve seen several
places
to get tables of this information, but no code that really let you
calculate based on your lat/long when the sun would actually set.

Enter X10 Ephem.

Ephem checks your specially commented cron entries and modifies their schedule based
on the parameters you set.  Call it once a day and all of your tasks will shift
up and down relative to sunrise/sunset as you designate.

Put HEYU and X10 Ephem together with my X10 Firecracker and I now have what I believe
is the perfect system for controlling my accent lights.

This is an interesting article about moving large data sets into Amazon S3:

http://www.allthingsdistributed.com/2009/05/amazon_import_export.html