But progressives are compassionate and insist on society’s roll in helping those in need. A progressive person would never suggest that fire departments should be privatized and require a subscription to get fire protection.

Here is a list of some of my core beliefs-

Medicare for all.

Free quality education.

Make all drugs and drug use legal with a doctors prescription. Treat drug use like a medical problem, not a legal problem.

Legalize non-violent activity between consenting adults.

Drastically reduce the military budget. Close overseas bases unless we can partner with another nation at each one for staffing and expenses. Presently the USA spends as much as the next 17 countries combined, and 15 of them are our allies. The USA has 5% of the world population and spends 50% of the money spent in the world on military.

A Balanced Budget Amendment (except in times of DECLARED WAR).

A fair tax system that is not regressive (like sales tax), but very progressive. Throw out the entire tax code and start over with an income tax with no deductions.

The USA should be more concerned about contract law than people’s sex lives. Get the USA out of the sex business. Instead of gay marriage, civil unions for everyone. If you want to get _married_ go to your church and it is between you and the church. If you go to city hall, civil union.

Corporations are not people (and shouldn’t pay ANY taxes- only people should pay taxes).

Income is income. No type of income is better or worse than any other type of income. It should all be taxed the same way (a progressive rate).

Money is NOT speech! (see: http://MoveToAmend.org)

]]>http://blog.codeinsight.com/2012/09/28/my-core-beliefs/feed/0SAR Tracking in San Benito Countyhttp://blog.codeinsight.com/2009/04/30/sar-tracking-in-san-benito-county/
http://blog.codeinsight.com/2009/04/30/sar-tracking-in-san-benito-county/#respondThu, 30 Apr 2009 20:41:02 +0000http://blog.codeinsight.com/?p=151I just got back from Pinnacles National Monument in San Benito County. I was helping Fernando Moreira and George Dresnek teach a tracking class for the San Benito SAR team.

Here are a few YouTube videos:

Here are some photos I took while there:

]]>http://blog.codeinsight.com/2009/04/30/sar-tracking-in-san-benito-county/feed/0Brainbench “C Fundamentals” Certificationhttp://blog.codeinsight.com/2009/04/08/brainbench-c-language-certification/
http://blog.codeinsight.com/2009/04/08/brainbench-c-language-certification/#commentsWed, 08 Apr 2009 17:54:29 +0000http://blog.codeinsight.com/?p=131Brainbench made some of their certification tests free for April 2009 so I took the C Fundamentals test.

Demonstrates a clear understanding of many advanced concepts within this topic. Appears capable of mentoring others on most projects in this area.

Strengths

Compiler Operations

Functions

Arrays

Program Statements

C Expressions

Weak Areas

Debugging and Error Handling

I was ding’ed for debugging and error handling, and I’ll look into that, but the score wasn’t too bad considering I took the test on a whim and without preparation.
]]>http://blog.codeinsight.com/2009/04/08/brainbench-c-language-certification/feed/1My EMT Ride-alongshttp://blog.codeinsight.com/2009/04/06/my-emt-ride-alongs/
http://blog.codeinsight.com/2009/04/06/my-emt-ride-alongs/#commentsMon, 06 Apr 2009 22:33:22 +0000http://blog.codeinsight.com/?p=85For those who don’t know, I am in an EMT class at Santa Rosa Junior College. After the class I still need to pass the National Registry Exam for EMT’s.

Part of this class requires that I do “Ride-Alongs”, that is, I must spend two 8 hour shifts on the back of an ambulance with other EMT’s to get an idea of what it is like to be an EMT.

Russian River Fire Protection District – Sunday March 8, 2009

My first ridealong was Sunday March 8 at the Russian River Fire Protection District (RRFPD) in Guerneville, CA (the Guerneville firehouse). That day was VERY uneventful. I arrived at 10:00 AM to a clean and orderly firehouse. I spent most of the day in the residence reading.

There was only one call at about 1345 HRS to a house in Oddfellows Park with a stuck flue on a pellet stove. The house was filling with smoke and the residents called for help. The rule at RRFPD is that on any call the entire house, two firefighters and one paramedic, will respond. So we went- one engine with two firemen (Ryan Lantz and Travis Wood), and an ambulance with a paramedic (Glenn Rampone and myself). The call was resolved by Steve Baxman from Monte Rio who made it there before we did.

After we returned from the call Glenn gave me a tour of the ALS rig. He described all the gear he uses and the situations that the gear is used in.

Ryan Lantz- RRFPD Firefighter

Travis Wood- RRFPD Firefighter

Glenn Rampone- EMT/P

VeriHealth – April 3, 2009

My second ridealong was on Friday April 3 at VeriHealth in Santa Rosa. I worked with Bodhi Canfield and Mike Stevenson, both are EMT/B. We only had two calls but we were busy all day.

I arrived at 7:50 AM and met them as I drove into the parking lot while they were preparing their ambulance for the day. Our first task was a trip to Airgas on Piner Road to get new oxygen bottles, which took about 30 minutes. After that we went to the self serve car wash on Santa Rosa Avenue and washed the ambulance, also about 30 minutes. It was about 0920 HRS and we had a call scheduled for 1015 HRS so we took a break back at the VeriHealth headquarters.

VeriHealth: Bodhi Canfield & Tiffani Parks

VeriHealth: Mike Stevenson

VeriHealth: Taking A Break

VeriHealth Break Room

Call: Transport CHF Patient.

We had our first call at 1000 HRS to transport a 90 year old man from Memorial Hospital to Summerfield Convalescent center. We arrived at Memorial at about 1015 HRS. There was some confusion as to the BSI precautions to take. This patient had been in the hospital for 3 or 4 days and came in suffering from chest pain.

Our initial information from VeriHealth was that the patient had MRSA bacterial infection and we needed to take special care and don a full body suit before entering the room. When we arrived the nurse said that the MRSA had subsided and was only present in the nares (nasal hairs) so full protection was not required. She gave us a full report on the patient that included the vital signs and general condition of the patient. After the patient was packaged on the gurney and prepared to move to the ambulance we learned from the doctor that she would have preferred for us to have full MRSA protection.

After the Patient was loaded into the ambulance, Bodhi asked me to do an initial assessment, take vitals, and get SAMPLE history. Basically, the first two pages of the medical patient assessment skills sheet we use in the EMT class. We delivered the patient to his destination then prepared for our next call.

Call: Transport Bariatric Patient

Our second call was to transport a bariatric patient (morbidly obese person) from St. Helena Hospital to Queen of the Valley Medical Center (QVMC) in Napa. For this call we had to stop by the headquarters at 200 Montgomery St. in Santa Rosa and swap out our standard gurney for a bariatric gurney. We hit the road at about 1130 HRS and were due in St Helena at 1200 HRS. It is a long drive so we didn’t arrive until 1215 HRS.

When we arrived Stephannie, the nurse on duty, gave us a report including vital signs and blood sugar level. The patient was diabetic and had received dialysis the day before. The patient was very difficult to package because of her size. She was very big, about 6 feet tall and over 400 pounds! It was fortunate that she could “skooch” herself to the edge of the bed so we could slide her on to the gurney.

Once we loaded her onto the ambulance Bodhi drove and Mike took SAMPLE while we were en route. I was impressed how Mike kept the patient engaged in conversation during the trip.

Conclusion

I had a great time on this ride along and learned a lot. It was entirely due to the professsionalism of the Verihealth staff, Mike and Bodhi. I experienced first hand what it was like to work as an EMT on a BLS rig. I hope that I can see both of these people in the future. In fact, Mike is joining the Sonoma SAR team. He is finishing his background check and I should be working with him by the start of summer 2009.

]]>http://blog.codeinsight.com/2008/11/13/brainbench-c-test/feed/1Trackers Class – Napa, CA – October 2008http://blog.codeinsight.com/2008/10/31/trackers-class-napa-ca-october-2008/
http://blog.codeinsight.com/2008/10/31/trackers-class-napa-ca-october-2008/#commentsFri, 31 Oct 2008 18:42:27 +0000http://blog.codeinsight.com/?p=38I just came back from Fernando Moreira’s tracker class in Napa held at Camp Coombs in Napa. I took some pictures and they are available at Picasaweb and on YouTube.

Fernando is a first rate tracker, maybe the best tracker working in the U.S. I learned a lot from him and it is really great fun to spend the weekend tracking.

I recently needed a case insensitive hashtable to store various types of values so I created one by wrapping the .Net hashtable. This hashtable works with any “object” type, but when the key is a string the value is not case sensitive. This is useful for:

Visual Studio 2005 is a pretty big improvement over Visual Studio 2003. So what’s wrong with it? The debugger is broken, that’s what! And that’s no small thing either!

I suppose that I should be more precise. The debugger is broken for all the code that I work on, and those projects are all mixed mode (managed / unmanaged) projects. I have many projects that I work on that predate the emergence of .Net when it came out in 2002 with Visual Studio. That’s why I have written so much about porting legacy (unmanaged) code to .Net.

I was eager to use VS2K5 so I downloaded it a week before the official release date in November 2005. Right away I could see that the debugger was broken for my mixed mode project so I created a bug report on the MS website. Here’s a link:
VB File locked while Debugging Mixed Mode project (You might need an MSDN license to view this link)

The gist of this report is this:

In VS2K5 it is not possible to both edit and debug a source file while debugging a program. That is, you can either:

Set a breakpoint in your project and the debugger will stop there, but you cannot modify the code while you are stopped.

Or change the VS2K5 options and the breakpoint will never be hit, but you can edit your code at any time.Changing modes requires going to the “Tools > Options” menu and changing the debug mode.

I want to be clear, I am not talking about that truly marvelous feature that MS calls “Edit & Continue” where you can, on the fly, edit and recompile code in a single debug session. I am talking about just editing the code without a recompile.

The most frustrating thing about communicating this to MS tech support was that EVERYTIME the MS tech support kept saying that E&C is not supported in mixed mode. And EVERYTIME I had to explain that I wasn’t talking about E&C at all!

So, debugging legacy code with VS2K5 becomes very time consuming and I choose to forgo using it until MS fixes it. However, it looks like they won’t acknowledge that the bug exists, even though at least one MS tech confirmed it for me (I burned one of my MSDN incidents to get at least some traction on it).

.Net purports to be a secure platform, but when I create a .Net setup package and used a custom action I found that I could not run the setup package on a network.

I have a VB.Net installer. The installer program I created
(System.Configuration.Install) handles the various events
like MyBase.AfterUninstall, etc. This program works fine
but when I run the installer on a network resource (a UNC
path) it generates a System.Security.Security exception
before the program even starts. The .MSI installer kicks
off just fine, but throws the exception just when the .EXE
program starts.

The installer works fine if the UNC drive is mapped, or if a
local drive. Any idea on what may be happening?

The solution may surprise you. It surprised me! The setup package created in VS.Net has to be given permissions to execute from a UNC path, but not from a mapped drive! My users would never go for having to do that. They want to click a link in the email I send or on a web page and have the installer run. Fortunately, there is an easy work around, but it shows just how crummy the .Net security is.

Here’s the trick: Create a batch file named setup.bat that gives the user all the permissions the setup package needs to run on the network. Here’s the contents of the batch file used to set security on .Net 1.1:

As you can see from my previous post I am interested in recycling my old “C” code for use in .Net. I don’t want to rewrite the code in C# or VB so I am wrapping it with a C# DLL. The good thing about .Net is that it already has much of the functionality that I put into some of these old C libraries. However, there is a lot that I didn’t write that I would like to wrap, in particular: GSL gets wrapped here: Gnu.dll.

Well here we are on CodeInsight.com! I’ve been writing code for a very long time now and I have a lot to share. I am working on a .Net wrapper for the GNU GSL (See GSL it here) Here’s what I’ve got so far: Gnu.dll. It is a bit generous for me to use the namespace Gnu, but there is a lot of open source legacy “C” code that I’d like to wrap for use in .Net, and the “Gnu” namespace seemed the most appropriate.

I really like .Net and think that it is long overdue. I have been writing code pretty much entirely on MS-DOS and Windows since 1986 and I have used Microsoft products pretty consistently the entire time. As far as MS code development, the only MS products I haven’t used are COBOL and Fortran (although I have use Fortran on other platforms). I have also had the pleasure of dealing with MS for support over the years. When MS came out with Visual Studio 1.0 for use on Windows 3.0 in 1992 they really took a step backwards from Programmer’s Workbench. PWB was almost as good as emacs as a code development platform. But heck, VS 1.0 didn’t even have regular expressions in the editor- how lame is that? Plus it came on 22 floppies and took over 3 hours to install! But the telephone tech support was pretty good, and VS did improve over the years. I was really happy when VS 5.0 came out and had incremental compiles and “Edit & Continue” for C+. I thought that was just soo coool!

When .Net came out in 2002 I thought that VS took another leap forward. I really liked VS 6.0, but VS.Net was missing something I always took for granted in VB: Edit & Continue! How could they take it away??? At least they still had it in C++, which was really killer. When VS.Net 2003 came out I was happy with it too. But when VS.Net 2005 came out I was immediately disappointed!

Sure, VS.Net 2005 had lots of great new features and it claimed to have Edit & Continue, but the debugger was broken! At least the debugger was broken for use in “mixed mode” development (managed/unmanaged solutions). Back in the day, a mixed mode project was using different development platforms like C, assembly, and VB, and then linking them together, something I have done since ‘93 when I got VB 3.0. I still like to use VB as the GUI and C++ Dll’s for the implementation. The legacy code I use interfaces quite nicely with .Net, if you know how to do it (thus the port of GSL).

You see in VS.Net 2005 in the unmanaged code you can either set a breakpoint or edit the code during a break in a debug session, but not both! And it is a hassle to switch the modes.

One week before the official release of VS.Net 2005 I created a bug report on this at the MS web site. The lame-o’s at MS tech support kept insisting that this was a feature not a bug, since Edit & Continue was not supported in mixed mode. My point was that I didn’t care if the code didn’t compile and run on the fly, I only want to edit it while I stepped through the code, so as to correct and improve it during the debug session!
]]>