I'm starting to post some sample code on http://stackoverflow.com/ . While it would be nice to just not have to worry about this just focus on the development I think it's worth a bit of time.
I've decided that any actually programs I release now I will use the MIT License ( http://opensource.org/licenses/MIT ). But for basic samples I post on the internet I don't think its nice to require the addition of a copyright notice for something someone may only use a small part of the code from the sample. Maybe I'm over thinking it but I think its better to have something there. Unfortunately part of it is just to add the disclaimer to protect myself against peoples use of the software, there are people that would blame you if something went terribly wrong even if you made no claim that it was fully tested and fit for use etc.
So for any larger samples I post I'm going to use the following slightly modified version of the MIT License. The only change I have made is to remove the condition to include this notice with the code.
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE