Cisco solving error opening tftp:// at bootup

When you power on or restart a switch that does not have a config.text file in flash memory, the switch tries to get configuration files from a TFTP server. If the configuration files are not found, the switch automatically configures the service config global configuration command, which causes the switch to continue searching (in the background) for the expected configuration files.

If the service config command does not find the configuration files, these error messages appear:

%Error opening tftp:// (Socket error)
%Error opening tftp:// (Socket error)
%Error opening tftp:// (Socket error)
%Error opening tftp:// (Socket error)
*Mar  1 00:03:29.695: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp:// failed
*Mar  1 00:03:29.699: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp:// failed
*Mar  1 00:03:29.703: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp:// failed
*Mar  1 00:03:29.707: %SYS-4-CONFIG_RESOLVE_FAILURE: System config parse from (tftp:// failed

These message should be considered as warnings.

In order to stop this from happening at boot time add “no service config” and “no boot network” to the global configuration (and save these changes)

2620XMR01#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
2620XMR01(config)#no service config
2620XMR01(config)#no boot network
*Mar  1 00:05:22.967: %SYS-5-CONFIG_I: Configured from console by console
2620XMR01#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...

Programming a Motorola MAXTRAC using DOSBox

One way to program a Motorola MAXTRAC is to use a older slower computer with a serialport on it.
Another way is to use DOSBox to emulate a computer running DOS, it is also possible to emmulate a slow computer.

I did this from a PIII Laptop @ 1Ghz running Windows XP, but other operating systems are also possible to use, but in some cases these instructions needs to be modified.

And NO, I will not give you a copy of the RSS so don’t bother asking for it.

  1. Start with setting up DOSBox so you can access the serial port you wish to use. I set it up to map the usb->serial adapter that windows gave com34 as com1 in DOSBox
  2. I set up the D drive in DOSBox to be a dropbox folder so I can share my config between computers and do backups more easily
  3. Create a shortcut to the Motorola MAXTRAC RSS software like
    "C:\Program Files\DOSBox-0.72\dosbox.exe" -conf "C:\Program Files\DOSBox-0.72\dosbox.conf" "C:\Radio\Motorola\MaxTrac\MAXTRAC.exe"
  4. And now we are done and can use the software to program the radio
  5. If you are getting errors and belive these are based on DOSBox being to fast, you can slow it down by adjusting the cycles value in the config file or you can use crlt+F11 to slow it down when it is running

DOSBox using a serialport

In order to allow DOSBox to use the serial ports of the computer you need to change the settings.

I do this in the conf file to have it in one location

# serial1-4 -- set type of device connected to com port.
#              Can be disabled, dummy, modem, nullmodem, directserial.
#              for directserial: realport (required), rxdelay (optional).
serial1=directserial realport:com1
serial3=directserial realport:com34

So this example setting means that com1 of my computer (Windows) is com1 in DOSBox and com34 of my computer is com 3 in DOSBox

Git replacing the editor for commit messages

The man page says

The editor used to edit the commit log message will be chosen from the GIT_EDITOR environment variable, the core.editor configuration variable, the VISUAL environment variable, or the EDITOR environment variable (in that order).

So in order to make nano our default editor we can do

git config --global core.editor "nano"

--global means this will become a default setting for all of git (leaving it out would only affect the current git repo you are running the command from)

SSMS Invalid Column name

Sometimes the Cache of SSMS gets “corrupted” or fails to update, this can lead to Red squiggles under column namnes, table names, basiacally anything (Also SSMS will claim the name does not exist with for instance the error message invalid column namn).
When this error lies in SSMS, then refreshing the cache is the solution, and this is done with “Ctrl-Shitf-R

Visual Studio 2012 and Razor 1.0 (opening an older project in 2012)

VisualStudio 2012 assumes we are using the latest and greatest (version 2) when it comes to the Razer view engine. However when we are opening a project that was created using version 2010 then we were using 1.0 and that is the reason that 2012 is telling us about all the errors it believes we have with our project.

The solution is to edit the web.config file and under “appSettings” tell VisualStudio that this project is using version 1.0

<add key="webpages:Version" value="1.0" />