Friday, December 22, 2006

Busted Wireless Network Adapter, Win XP, and ipconfig

This post is purely for those searching for the answer to this problem on Google. I have the answer. At least it fixed my problem. If you get this error when you run ipconfig:


Windows IP Configuration

An internal error occurred: A device attached to the system is not functioning.

Please contact Microsoft Product Support Services for further help.

Additional information: Unknown media status code.


Then go to Control Panel > Administrative Tools > Services and ensure the following services are running and set to Automatic startup:
Remote Procedure Call (RPC)
Routing and Remote Access

I had disabled these in tweaking my little laptop's performance, and that somehow screws with ipconfig. My network adapters worked all along, I just couldn't use ipconfig.

So there.

Sunday, November 05, 2006

utilsdotnet - Google Code

utilsdotnet - Google Code - I've added a project to my utilsDotNet project on Google Code. ircBot.net is a IRC bot in C#. It currently does a random Google Image Search based on search terms you send it in an IRC channel. It works on Windows (of course) and Linux (with mono installed)

Monday, October 23, 2006

ISP Traffic Shaping SLA Script

For a linux based router:

#!/bin/bash

IF=eth2

#clean up any current config
tc qdisc del dev eth2 root

#set up the interface, and set packet size
#(1000) and bandwidth (for shaping calcs)
#this is typically the inside NIC card interface,
#not the outside (Upstream facing) nic
tc qdisc add dev $IF root handle 1: cbq avpkt 1000 bandwidth 100mbit

#create a 512 kbit class
tc class add dev $IF parent 1: classid 1:1 cbq rate 512kbit allot 1500 prio 5 bounded isolated

#create a 1MBit class
tc class add dev $IF parent 1: classid 1:2 cbq rate 1MBit allot 1500 prio 5 bounded isolated

#create a 2MBit class
tc class add dev $IF parent 1: classid 1:3 cbq rate 2MBit allot 1500 prio 5 bounded isolated

#create a 3MBit class
tc class add dev $IF parent 1: classid 1:4 cbq rate 3MBit allot 1500 prio 5 bounded isolated

#create a 4MBit class
tc class add dev $IF parent 1: classid 1:5 cbq rate 4MBit allot 1500 prio 5 bounded isolated


#-------------CUSTOMER SLA's------------#

#customer 1-1 mbit
#dst in this case is the customer's ip address
tc filter add dev $IF parent 1: protocol ip prio 16 u32 match ip dst 10.10.31.103 flowid 1:2

#customer 2-2 mbit
tc filter add dev $IF parent 1: protocol ip prio 16 u32 match ip dst 10.10.31.104 flowid 1:3
#/------------CUSTOMER SLA's-----------#

#start shaping the classes
tc qdisc add dev $IF parent 1:1 sfq perturb 10
tc qdisc add dev $IF parent 1:2 sfq perturb 10
tc qdisc add dev $IF parent 1:3 sfq perturb 10
tc qdisc add dev $IF parent 1:4 sfq perturb 10
tc qdisc add dev $IF parent 1:5 sfq perturb 10

Thursday, July 06, 2006

China Bound

T - 12 hours and counting. We'll be in China for the next 12 days, picking up our adopted daughter, Long Mei Zhi (Addison Claire Meizhi Martin). General Tso's Chicken, here I come! I am prepared for the gastric warfare I may have to face while there. Bring on the mu-shu!

Saturday, May 27, 2006

Addison Claire Meizhi Martin


Addison Claire Meizhi Martin
Originally uploaded by nikko_.
Our referral for our adoption has finally arrived! This is Addison Claire. She's the most beautiful baby in the world!

Saturday, April 29, 2006

Touch.Net

Touch.Net is a simplified version of the unix/linux touch application. It "touches"
files, updating their date/timestamps.

Usage:
Touch.exe "dir or file to update"

EDIT: All of my code is now here: http://code.google.com/p/utilsdotnet

Clipboard HTML Viewer

Applications like Word allow you easily create things like tables, hyperlinks, etc in your documents. What you possibly didn't know is that if you copy these objects to your clipboard, only the text is copied, not the formatting. The formatting is actually sitting on your clipboard as HTML! You could use this HTML if you could only get to it. Well now you can! ClipViewer lets you access this HTML
and even lets you copy and paste it into other applications.
Usage: ClipViewer.exe


EDIT: All of my code is now here: http://code.google.com/p/utilsdotnet