Mono 3.2.3 and Fedora 19 and a KeePass fix

If anyone is interested in installing Mono 3.2.3 on Fedora 19, here is what I did.  Note that if something breaks and your favorite app quits working then it’s all on you 😉

I found that someone out there had built Mono 3.2.3 RPMS for Fedora and created a repository.  However, since I was unable to find a .repo file, I went ahead and created this one:

[mono_linet]
name=Mono 3 repository
baseurl=http://yum.linet.dk/opensource/fedora-19-x86_64/RPMS/
enable=1
gpgcheck=0

Once this is done, do a yum update and you should be good to go.

However, I noticed I could no longer run KeePass on my system.  I had followed the instructions found here and use KeePass on my computer, phone, and tablet.  With Mono 3.2.3 KeePass wouldn’t work.  Simple fix is to change to /usr/lib and run the following command:

sudo ln -s /usr/lib64/libgdiplus.so libgdiplus.so

This should make KeePass run again.  Note you’ll get some errors on close if you run it from a console.  These appear to be harmless.

My Experience with the Spotsylvania County Juvenile Court System

Ok, so I have to a bit of a rant here.  Last year, a couple of young delinquents threw a large rock at my car as we were driving home in our neighborhood.  Had the top window been open, the rock would have struck me in the head and could have caused a crash.  I tried to chase them down but they got away.  However, we found out who they were from some young Mexican kids who they normally bullied.  These poor kids were just happy that someone FINALLY would do something to them since they were bullied and afraid to speak to the authorities.  We confronted the mom and the kids admitted to it, so we called the police and charges were pressed.

My wife went to court over it and we found that it would cost $500 in repairs to fix the vehicle.  The kids pled guilty and were found guilty.  They were ordered to do community service and pay the $500 in restitution.  The judge apparently said that even if they moved they still had to do community service and pay the restitution.

We had never heard anything and contacted the courts since they had a year to do this.  What we eventually found out was that another trial had been scheduled since they never sent any money to the courts and never reported any community service.  They never showed up, of course, and we were told since they couldn’t find them that they were just found guilty with a felony on their record and the case was closed.  I spend five minutes online and found out that they’re currently living in St. Louis, MO.  We were told that since it’s just kids and only $500 that it was closed since the state couldn’t do anything any more.

So let’s recap here.  What happened is that a couple of kids caused damage to a vehicle.  They were found guilty.  They were ordered to pay us back for the damage they caused.  However, all they had to do was move out of Virginia and they don’t have suffer any consequences for their actions.  We were told “but they will have a felony on their permanent record.”  This means jack.  People with felonies can easily find almost any kind of job in this day and age.

I realize now why there are so many young punks in this world.  They can basically get away with anything because it’s “too expensive” to prosecute them.  They can get off scot-free without repercussions from their actions.  And then they’re free to continue being young punks wherever they are.  It seems to me like this is just another example of how broken our legal system is.

A Few of My Research Publications

When I was at the USGS I did a lot of research and published several papers.  Now that I have my own website, I figure I can put them online now.  Here’s the first list of papers.  Some of them are final versions of the open file reports, others fell between the cracks when I transferred from the USGS to NGA.

  1. A New Method of Edge Detection for Object Recognition
  2. A Parallel-Processing Approach to Computing for the Geographic Sciences 
  3. A Parallel-Processing Approach to Computing for the Geographic 

    Sciences: Applications and Systems Enhancements

  4. Directed Edge Detection – A New Method for Identifying Objects in Imagery
  5. Distributed Processing of Projections of Large Datasets 

    A Preliminary Study

  6. Extending Beowulf Clusters
  7. A Distributed System for Fast Reprojections of Geospatial Data for 

    The National Map

  8. Model Development and Extraction from Neural Networks 

    Final Report

  9. Processing Large Remote Sensing 

    Image Data Sets on Beowulf Clusters

  10. Using Mosix for Wide-Area Computational 

    Resources

  11. Beowulf Distributed Processing and the United States Geological Survey
  12. An Intelligent Systems Approach to Automated Object Recognition 

    A Preliminary Study

OK, I’ll Give Microsoft Credit

They’ve come a long way from the “bad old days” of doing GUI apps with MFC under Visual C++ 6 where you had the wonderful “black box” message framework you weren’t supposed to touch but always had to anyway.  I managed to make a GUI app today with Windows Forms to read data off a CAC card so I don’t have to keep relying on the command-line driven app I wrote for testing a while back.  No black boxes, no hand editing message maps, no hand driving message pumps to get things done.  And the cool thing is it might run under Mono too.

While I still prefer Qt for most everything, Visual Studio now isn’t bad for the times I have to write source under Windows.

Hello!

Welcome to my new blog.  I got tired of Blogger/Google and now that I have my own domain, well, it’s time for a change 🙂  I’ll be filling more here soon.

Changes, They Are a Comin’

I’m going to try to start posting more here I think.  I’d like to get more into blogging (even podcasting).  This blog will keep its theme, just hopefully more content 🙂  I’m working on a long series of posts about using GIS tools and data since that’s still near and dear to my heart.

I’m also going to keep posting other technical things of interest here as time permits.  I want to get into reviews and discussing technology as well.

Stay tuned!

Fun with OpenStreetMap and Open Source

So as part of my pushing OpenStreetMap to people, I made some sample screen shots for a friend of mine who is wanting to move away from paying Google for their maps.  Thought I’d share in case other people want to see what’s possible using OpenStreetMap data for rendering.

For my setup, I have PostgreSQL/PostGIS running on a server here at home.  In it I’ve imported:

On top of that, I’m also running the Geoserver 2.2 beta to provide all of the data as a WMS, WCS, and WFS OGC services.  The OSM data was imported using the excellent imposm tool.  I used the styles from OSMinaBox for WMS styling with some additions I made to the SLDs to make sure additional features were rendered.
The following screen shots are samples I’ve made using some of this data.  I threw them together for Doug so didn’t really do any tweaking to label placements and the like. 
Screenshot 1 – OSM overview
In this screen shot, I used the US Tiger 2011 Counties data set for the background layer.  Plus it helped me to locate and zoom into my areas of interest.  The OSM* layers are all WMS renderings from my local Geoserver install using the above-mentioned SLDs.  OSM_Roads is actually a database view that imposm makes with all of the road layers merged together.
This second screenshot is zoomed in a level so that Geoserver does more labeling based on the SLD rules.
Screenshot 2 – Zoomed in example
On this third screenshot, I overlaid the USGS GNIS file with my own rendering rules inside QGIS.  I basically used SJJB icons under QGIS to make GNIS look a little nicer.  However, the bluish-green dots show I’m still not done with the style in QGIS and once it’s done there I’ll move it over to Geoserver to do the WMS rendering there as well.  
Screenshot 3 – GNIS overview
Here’s my quick post for now.  Just wanted to do a quick showing of how you can make decent looking maps from completely free data.  I apologize in advance since I have no artistic skills whatsoever though 🙂

A Random Post: Am I on a 32- or 64-bit OS?

So in response to a question on IRC this morning (and it’s early and I’m not fully awake), here’s a quick program I wrote to show how to detect if you’re on a 16-, 32-, or 64- bit OS by checking the size of an int* in C/C++:

#include


int main (int argc, char* argv[])
{
  int foo = sizeof(int*);
  
  switch (foo)
  {
  case 2:
    std::cout << "Size = 2: 16 bit OS" << std::endl;
    break;
  case 4:
    std::cout << "Size = 4: 32 bit OS" << std::endl;
    break;
  case 8:
    std::cout << "Size = 8: 64 bit OS" << std::endl;
    break;
  default:
    std::cout << "Size = " << foo << std::endl;
  }


  return(0);
}

My Latest Odd Project

So since the USGS is releasing a bunch of their old scanned paper maps at their Historical Topographic Map Collection, I thought it would be interesting to take the GeoPDF‘s there and georeference them to GeoTIFF‘s to compare to modern maps.  I’ve always had a thing about history, so thought this would be a fun side project to get my cartography back on.

Since QGIS doesn’t yet import GeoPDF’s, I’m first loading them into the GIMP (at around 300 dpi from the PDF), clipping the collar out, and saving them to a LZW-compressed TIFF.  Then I’m importing the TIFFs into QGIS and using the Georeferencing plugin to mark the grid points on the map.  I’ve read that the old maps were based on the Clarke 1866 ellipsoid, so in QGIS I’m setting the source projection to NAD27, which is based on Clarke 1866.  Yes, I know that technically this isn’t fully correct in the cartographic sense, but then again georeferencing old paper maps like this also won’t exactly put out a highly accurate GIS product either 😛  I’m outputting them to WGS84 from the georeferencing plugin.  Times on my older Dell E1705 are around 5 minutes doing a polynomial interpolation with Lanczos interpolation.  Then again, I remember back in the mid to late 1990’s when DRG production at the USGS on the old Data Generals would take a whole lot longer, so I wasn’t going to complain 🙂

The output isn’t so bad really.  Here’s a sample of the output draped on top of Yahoo Street Maps (Google Maps and reprojection on the fly doesn’t seem to work so well in QGIS right now).

Setting the Fredericksburg 1889 map to 50 percent transparency in QGIS and zooming in to old town, you can see that the map fits to a modern map surprisingly well.

I’ll probably play around with this some more and maybe upload the georeferenced maps to archive.org or something along those lines.

Fun With Verizon

So we had an odd outage here at the Maddox house.  Internet quit working.  Phone quit working.  FIOS boxes couldn’t access the Internet either (tested On Demand, Widgets, etc).  So I called Verizon tech support.

Me: Yeah, everything except for the television video stream has quit.
Tech: Have you changed anything on your router?
Me: Not for about a year now.
Tech: Let me run some tests and check.  Oh I found the problem, your wireless on your router was turned off.
Me: Yeah, it’s been off for about a year now.  I’m using a Wireless N router.
Tech: I turned your router’s Wireless back on.  Did that fix things?
Me (thinking): WTF?  The wireless has been off for a year and why would that affect the FIOS boxes and phones anyway.
Me: Nope.  Maybe you should reset the equipment here?
Tech: Well, let’s see if turning the wireless on fixed things.
Me (beating my forehead so hard I made it flat): Um, ok,