Skip to main content

Posts

Showing posts with the label ArcIMS

Making Code Samples Readable Online

After lazily just pasting code in <pre> blocks for years, this morning I finally got around to researching a code highlighter like you see on almost all the programming websites. Thanks to SyntaxHighlighter adding this feature was embarrassingly easy. It is self-contained javascript that works on a pre or script tag decorated with a html class calling a brush alias, e.g. <pre class="brush: sql"> INSERT INTO MyWebsite (pre, script) VALUES (complete, awesomeness) </pre> Oh, but it's not just SQL, no there's a whole easel of brushes included: Brush name Brush aliases File name ActionScript3 as3, actionscript3 shBrushAS3.js Bash/shell bash, shell shBrushBash.js C# c-sharp, csharp shBrushCSharp.js C++ cpp, c shBrushCpp.js CSS css shBrushCss.js Delphi delphi, pas, pascal shBrushDelphi.js Diff diff, patch shBrushDiff.js Groovy groovy shBrushGroovy.js JavaScript ...

Repairing Broken Data Sources

What do you do when you open your map and you have a layer that looks like this? What does it mean? The red exclamation point is a visual indicator that something is incorrect in the layer's data source.  To fix it you'll need to know where the data lives and tell the layer in the map this information.  You're giving direction to poor lost layer so it can find itself, you're a metaphysical geographer!  Repairing a data source: Right-click on the layer, from the contextual menu choose Properties In the Properties dialog box choose the Source tab Click Set Data Source Browse to the location of the data layer, select and click Add OK out of the Properties dialog If all went well your data is now displayed. But what if it isn't one layer?  What if you have an entire map of mis-pathed layers? Here's where ArcCatalog comes to the rescue: Locate the map in ArcCatalog Right-click and select Set Data Source(s)   Highlight one of the Data Layers ...

When ArcIMS Site Restoration Fails

Every once in a great while you'll open ArcIMS Administrator and be confronted with Site Restoration Pending, Would you like to restore? At least in my experience, it rarely restores. You can click Yes and wait all morning and nothing happens. So what to do? Shutdown ArcIMS Services in this order: Tasker, Monitor, Application Browse to C:\Program Files\ArcGIS\ArcIMS\AppServer and delete ArcIMSSite.sez Start ArcIMS Services in reverse order: Application, Monitor, Tasker Open Administrator Recreate your services from .axl files TIP: To speed the recreation process it is helpful to name your .axl files the same as the service names in your applications. I'd also recommend storing your ArcIMS site settings in an external configuration file (such as web.config in asp.net) to better facilitate recovery and configuration/server changes on the fly. Link