Tagged as: Bug-fix, Useful
Sep
27
I was having a hard time with this recently. Maybe I’m dense or maybe this will be helpful to someone out there. If you have a Garmin GPS device, and it gives you an error that says “Can’t Unlock Maps” then try:
- Register online at myGarmin
- Find your unlock codes
- Connect your device to your computer
- Create a file gmapprom.unl and paste the unlock codes into it, one to a line
- Put the file onto the Garmin device inside of the Garmin folder
- It is probably also a good idea to install and update software as necessary
It was a very odd error because it seemed to happen out of nowhere. One minute the device was working fine, and then turning it off and on seemed to somehow allow that file to magically disappear. Not good, Garmin, not good. Don’t let it happen again!
Tagged as: Bug-fix, Geek, Learn, Linux, Mac, Programming, Useful, Windows, Work
May
16
Files on computers are made up of different characters that are interpreted by whatever it is that you are using. That means that no matter what file it is, it is essentially a string of bytes that are interpreted by the program opening it. This means that your music program tries to interpret whatever file you open with it to be conformed to some audio standards (mp3, wma, etc.). Try to open the same file in a text editor, and you’ll find yourself looking at (apparently) junk characters. But then you’ll realize that the file is still just a bunch of characters.
I bring this up because
- It seems as if people don’t realize this.
- I encountered this while writing a Perl script today.
Something else that you should read even if you don’t know what Perl is: Windows and Unix-variants (including Mac OS X and up) do not handle files the same. I’m not talking about Fanaticism (because I’ve already posted about that). Windows uses characters that are referred to as the Carriage Return and Line Feed in order to represent a newline. These names originate because of their original use in the typewriter which actually had a physical mechanism to move. In any case, Unix-variants utilize the line feed character to distinguish its newlines. This can obviously lead to some problems if you use the same files on both systems.
If you don’t know what Perl is then you can fairly safely stop reading this article now because the rest won’t help you much. I know that it was hard for me to find and I’d like to make it available if anyone else so happens to run into the same problem.
While writing a script in Perl today, I had a seemingly strange problem where I would do some processing on my Windows machine and then transfer the file via FTP to a Unix-based server. However I noticed that I had a string that when printed to the screen on my Windows computer would display correctly but would display incorrectly in the file put onto the server. I could not figure this out for quite sometime because it seemed as if some of the lines were printing correctly and some were not. Alright enough explanation. Essentially I thought that the last character was getting chopped off in some way that I did not understand in Perl. However it had to do with Perl assuming that the lines has both a carriage return and a line feed on the lines and then chopping them off when the file was being sent via FTP. The fix that I ended up using was simply a one line regular expression like so (a suggestion from a co-worker):
$output=`some action`;
$output=~ s/\n/\r\n/g;
print $output;
print FOUT $output;
Hope that this helps someone searching for an answer. I know that I would have liked to have happened upon the answer while searching for it.
Tagged as: Blog, Bug-fix, Useful, Wordpress
Apr
08
Today (okay maybe last night) I wanted to finally fix a stupid error that I’ve had with my Wordpress installation. Now I think that Wordpress has been pretty great, but there was something about it that was making me a little bit irritated. Wordpress was working great when I first started, but then one day it seemingly reverted itself back to the Default theme as Kiki so astutely pointed out on this post.
Ever since I was simply temporarily fixing the problem by renaming the default theme to kubrick and actually making a copy of my real theme (Not So Fresh) and naming it default. Thus if wordpress ever decided to revert again, it would have no effect on what people saw.
This is obviously a dumb fix.
Read the rest of this entry »
Tagged as: Blog, Bug-fix, Social-Bookmarking, Useful, Wordpress
Apr
08
If you use Wordpress, I recommend the very nice Gregarious plugin for social bookmarking. It has an excellent interface and the Share This button works very well. But I was having a bug with it because the popup wouldn’t display.
Most of my readers won’t care one iota about this entire post. But I don’t post what they want to read, I post whatever I want to post! And onward!
Read the rest of this entry »
Tagged as: Blog, Bug-fix, Wordpress
Mar
21
So I’ve been using feedburner for stats on my website lately. It’s just a little bit of Javascript added to the templates. Pretty simple. Except it wasn’t working today! It kept showing 0 visitors when I know for SURE that there were visitors (like me!). What’s going on?? Read the rest of this entry »