angular and servicestack in .net – changing the root path is a nightmare

OK – first, it is because all these great tools are assuming the root url is /. They all give part of the picture, but they don’t know the whole story. Neither do did I. But do I google root uri, base url, AHHHH! Anyways, lets document this so I don’t and you don’t have to go nuts and google for hours like I did.

First – I am using ServiceStackVS 4.x, and it is an angular (not MVC – that might be a mistake) app.  I want

  • myweb.com/myApplication/myServices for the services and
  • myweb.com/myApplication for the application.

So for ServiceStack (I installed the extension ServiceStackVS into Visual Studio 2013) …

  • – change the web.config line from a “*” to “myApplication/myServices*” in the lines that look like:

Continue reading

GitIgnore for Visual Studio development (c#)

Ok, so I am going crazy. A prototype project works, then it doesn’t work, and apparently I clicked a button in the project properties called “Create Virtual Directory”. Don’t click that (you edit a file to mess with IIS Express to undo it). Now that things are working – I still want to fiddle til it is just right, but since I don’t know what is changing underneath. Well lets get Git involved so we can store our files and see what file changes affect what. But … what to upload!? If we include a gitignore in the first place, we can reduce the uploaded files a lot. But what to include? This article led me to a few options. There is an online generator but I chose the VS2013 recommendations from Microsoft’s site. I also added node_modules/ as if you need the node modules, it should be as easy as going to that directory and typing npm install

ServiceStack – how to get it on your .NET projects

So I am using service stack with node quite successfully – but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took – cause I likely won’t remember it otherwise.

Continue reading

My experience of my first VSTO instead of VBA plugin.

The first plug in I am to design in VSTO (not VBA is what that means) is to have the user mark up a document with bookmarks – a set of bookmarks that leads you along. The bookmarks are to be named in a very specific format. The tool will force the user to use the “select first” type bookmark. You can toggle the viewing of bookmarks as well.

How to Create Add-Ins Using VSTO in MS-Word – this gets one started.It is VS2010 and I am using VS 2013 – but it gives a really good view of adding a ribbon item, using forms and making it all work. Ok – I tried it – this is like trying to kill a mosquito with a elephant gun – but that is what corporate wants. Every time you click “run” it starts a new version of Word. This means that you have to load the document of interest every time. In VBA – you “run” from the context you are already in <- RIGHT THERE IS THE CRUX of my axe griding as well as VBA on the fly debugging on ANYONE”S MACHINE. Alas…

Continue reading

Rechargeable Battery Chargers – Lead Acid

if you know how they work, one can then understand how they fit into a Solar Power application so we can convince ourselves that the lower price is indeed worth it or if we should invest in a future battery.

So why lead acid … that is so yesterday? Ok – here is an Li-ion link. Lead acid is cheap and Li-Ion is 4x the price (go look!) and Lead Acid is a well understood technology that takes abuse well. It took L-ion 40 years to get where it is and it was finicky. Lead Acid is much heavier is the downside. Sorry Tesla – you will have to wait for my lucky bucks for my wall mounted unit. Li-Ion are the correct choice for cars (a topic for another blog day) – but Solar … not yet. Chargers for Lead Acid – here’s the scoop.