zondag 10 mei 2009

Licenses

On this blog I plan to host code snippets and jQuery plugins (hence the url). But first I will need a license to publish these snippets in. It will offcourse be an opensource license, but there are so many licenses out there that I was a bit overwhelmed.

At first I thought I should take the MIT-license which boils down to: "Do whatever you like with this software/code as long as you keep this license above it."
But I wanted something which offered more protection, so I decided to use the BSD-license. It boils down to: "Do whatever you like with this code/software as long as you keep this license above it. Oh and please do not sue us, using this code is your own responsibility"

Here is the license as I will post it on top of the code here. I have changed a few things, like removing the need for a company name as I don't have one.

Copyright (c) <year>, Pim Jager
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* The name Pim Jager may not be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Pim Jager ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Pim Jager BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


I shall post code samples soon once I have found a nice client-side javascript syntax highlighter.

1 opmerking:

  1. Hi Pim,
    im sorry if this is not the right place to post this i cant find your email add.

    i saw your post at stackoverflow
    http://stackoverflow.com/questions/1812193/change-text-color-on-change-of-selection-in-dropdown-list

    and you commented using jquery.
    $('#color').change(function(){
    $('#create form .text').css('color', $(this).val());
    });

    ---
    could you help me with this:
    im have the same problem as the poster is having.
    but mine is a little different.
    i want to create a form with text input and a div where as i type the text in the input box it will display it in the div realtime, i saw alot of example with that so its fine, but the problem is i want to have a dropdown box which i can choose color and affect the display font color as i choose.
    here is the sample image.

    http://forum.codecall.net/attachments/javascript-css/4398d1324000325-form-realtime-display-css-style-customize.png

    thank you so much for your help.

    BeantwoordenVerwijderen