Refractoring Me

Programming to become a better programmer

Drug tests for welfare?

clock January 24, 2010 17:17 by author Erik

What would be on that list of banned substances? 


That would include all illegal drugs including marijuana.  We should put alcohol on there since 10.8% of unemployed workers report heavy drinking [3].  Many prescription drugs are just legalized versions of illegal drugs.

What would be considered a failure of the test? 


If they test with any alcohol in their system?

Have no prescription for the prescription drug they test positive for?

They have been on a prescription drug with prescription for X years? Do we pay to have them evaluated by a psychiatrist or doctor?

False positives [1]? How many times do they have to fail?

What about? 


What if they are a parent?  I assume we must take the children away from the parent instead of letting them starve?

This includes welfare, food stamps, and unemployment?

Why not treatment [4]?

The fact that a lot of these people will be mentally ill women with children [5]?

Scenarios... 


So when a mother of three has a drink or smokes a joint to calm her nerves because she lives in a car and can barely feed her children.  We should then stop giving her welfare and take her children away from her?  

What about the false positives?  Someone gets a false positive and subsequently can not get unemployment to pay rent. They then  lose their apartment and can not get a new job because they have no physical address.  

Is the person who smokes a joint only at concerts or does cocaine once at a party better worse or the same as the person who drinks half a gallon of vodka every day? How do evaluate that with a drug test?  

What about the person who is addicted to Oxycontin, Xanax, and ADD drugs [2]?  How does that change if they have a prescription or not?

Closing


I am by no way completely against the idea.  Sure there might be a way to do this effectively (treatment maybe?) that won’t make the problem worse, but I really doubt it.  All I am asking people is to discuss and debate it not just drop an uninformed opinion in.

 





Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


GUToW

clock April 16, 2009 06:04 by author Erik

 

The Grand unification theory of the Web: Utilize the plethora of rich internet applications(RIA) to build a single interface to use all applications in an integrated and seamless way that leverages each RIA's features.  

One Mashup to rule them all.

  • I want a application for my desktop and my mobile device that implements every API for every social network I am involved in.  
  • I want this application to push my status updates to all my sites (like http://www.tweetdeck.com/).  
  • I want my mobile application up update my friends and family my location (like http://www.google.com/latitude/).  
  • I want alarms on my phone to tell me when friends are within a certain range of my current location so I can call them and set up lunch.
  • I want to text my friend and ask them if him want to go to lunch tomorrow.  I want the mobile on his end to parse the text message check his calendar and let him know he is free.   He then accepts, his calendar is updated, an automatic response is sent and my calendar is automatically updated.
  • I want to take a picture of the UPC on gallon of milk I am throwing away with my mobile camera and have it added to my shopping list.  And when my wife asks what I need from the grocery store I can send her that list via SMS, Email, or via webservice from my mobile device.
 
Edit:  I am being a bit ridiculous with all these requirements in one application I know.  I just think that the future is making all this seamless on the phone.  Android is heading there. 

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Spare Parts

clock April 14, 2009 05:08 by author Erik

I downloaded the new 1.5pre Android SDK and gave the emulator a spin.  I am running the latest HTC Magic image on my phone and wanted to see if there was anything from the offical image I was missing on my hacked image.  I found there is an additional tweaking/reporting tool in the cupcake build called Spare Parts. 

 Here are the options:

 

  • Battery/CPU/Network/GPS/Sensor/Patial Wake/Other usage since Last Boot / Since last unplugged / Total
  • Battery information
  • Usage statistics (app usage by time)
  • Window animation timing
  • Transition animations timing
  • Enable fancy input animations
  • Enable fancy rotation animations
  • Font size
  • End button behavior
  • Haptic feedback enable
  • Show Compass in Maps
Most of these are available from other means (settings/developer settings), but there are some that are not.

I pulled the APK from the emulator and installed it on my phone.  Most of the options seem to be working.  Give it a try.  And any of you with non cupcake builds let me know how it works.

spare_parts.apk (20.78 kb)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Codename Renaldo becomes Service Hammer

clock February 24, 2009 06:25 by author Erik

I renamed Renaldo to Service Hammer with the impending public release.  I need to get the GodsOfSoftware site up first to host the project.  I am really toying with open sourcing the project.  It doesnt do all that much, but philosophy has become unless the application will make me Scrooge McDuck rich and the source is not a train wrech I am going to open source it.

What it does...

It is a .Net 2.0 applcation that sits in the system tray.  When you click on it it gives you the ablity to start or stop any service on your computer.  You can assign favorites and favorite groups.  You can start or stop all the services in a goup with one click.

 The application interface is completely menu driven

 Here are some screens.

 
 

 

 
 
 
Any feedback is appreciated. 
 
 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Codename Renaldo becomes Service Hammer

clock February 24, 2009 06:25 by author Erik

I renamed Renaldo to Service Hammer with the impending public release.  I need to get the GodsOfSoftware site up first to host the project.  I am really toying with open sourcing the project.  It doesnt do all that much, but philosophy has become unless the application will make me Scrooge McDuck rich and the source is not a train wrech I am going to open source it.

What it does...

It is a .Net 2.0 applcation that sits in the system tray.  When you click on it it gives you the ablity to start or stop any service on your computer.  You can assign favorites and favorite groups.  You can start or stop all the services in a goup with one click.

 The application interface is completely menu driven

 Here are some screens.

 
 

 

 
 
 
Any feedback is appreciated. 
 
 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Changed the site design

clock October 1, 2008 12:42 by author Erik

I’m my first real try at a site design. I completely revamped thesite.  What do you think?  I made the image in Paint.net and came upwith the color scheme thanks to www.colr.org. Feedback is appreciated.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Your my boy Blue!

clock August 13, 2008 09:36 by author Erik

So it has been about three weeks since I have moved to primariliy coding in C#.  In that time I have converted 75% of my OurSite project I am working on.  In the project I have embedded the dotWiki project.  I like the idea of a blog of sorts with an embedded wiki. Anyway, it was interesting converting someone else code from VB to C#.  I guess it made me feel better.  There were just as many issues or more than my code.  I am close to the entire conversion of the project.  Once that occurs the refactoring will begin.  I would like to release the project on SourceForge, but I still feel like it just is not good enough. 

 

On the issue of C#.  I love it to tell you the truth.  I don't know it seems to give you more pride in your code.  It allows you to have a better feel of what is going on.  VB.net has its place I am working with it now at work, but I really prefer C# now.  I know C#is simplified C++ to alot of people.  And there are even more people that would say you need to know straight C (Joel).  That maybe the case.  But for now, for what I do, for what time I have... I like C#.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Update: Moving from VB.net to C# in a Current ASP.net Project.

clock July 29, 2008 17:24 by author Erik

<update>

There are some things I should share with you. 

  • This was done in VS2005.
  •  I was able to do this since it was a website and not a web application.  In a web application all the code (even code behind) is complied into one assembly.
  •  Another thing to watch for when making the conversion is once you start in the App_Code folder you need to convert all the code in folder.  The code in there is compiled in one assembly and therefore can not be mixed.
I'm about 75% done the conversion if I run across anything else I will post an update.

 </update>

 

Back in highschool and college I used C/C++.  Since I have worked with VB* in the last 10 years I have kinda dwindled on my C skills.  So I decided to strart using C# (It's not C/C++ i know) instead of VB.net on my current homebrew apps.  So here is how I converted the first of my webpages (pictures.aspx) in the OurSite project I am working on.

  1. Checked the web.config to make sure C# was included as compilable language.
  2. Added Pictures.aspx.cs file
  3. Changed page directives in the Pictures.aspx
    1. Changed CodeFile to the CS page
    2. Changed Language to C#
    3. Changed AutoEventWire to true (You can add events to the actual controls and leave this set to false)
    4. Closed and reopened page
  4. Converted Code
    1. Copied VB Code to clipboard
    2. Replaced all &s with +s for string concatination in notepad++
    3. Went to: http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx (Page can go from VB to C#)
    4. Converted code
    5. Pasted new code in Pictures.aspx.cs
    6. Commented out all code in Pictures.aspx.vb
  5. The converter does not detect the difference between array parens vs method parens so I had to change a bunch to []
  6. The .ToString (and other functions) came through the converter without the parens so I had to add them

Yeah so that was it.  The code worked flawlessly.  So I can change one page at a time in my ASP project over to C# code.  Only prereq for this is VS2k5+.

 Any other ideas or better converters please let me know.

 

kick it on DotNetKicks.com

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


New Application - Vesta

clock July 18, 2008 18:39 by author Erik

Keeping with my software naming policy (www.GodsOfSoftware.com) I named my next piece of software after Vesta godess of the hearth.

Reason for this is that I'm tired of having to use a dynamic naming service to host my sites on my personal Comcast connection.  So since my Comcast connection IP address changes very unoften I figured I can point the DNS records directly to my Comcast IP.  The only problem is if the IP address changes.

So long story short the software I'm working on will monitor your router's external IP address with uPnP and email you when the IP changes so you can update your dns records.  Simple appication, but those are my favorite to write.

I will post the application once it becomes stable.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Hello World

clock July 17, 2008 18:56 by author Admin
My first Post

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5