Page 1 of 2

New tutorial

Posted: Wed Nov 14, 2007 9:18 am
by JamesM
A couple of people have been asking how to make a virtual filesystem, so I made a tutorial for it.

http://www.jamesmolloy.co.uk/tutorial_h ... nitrd.html

Can someone please tell me what they think of it? The next one will be about multitasking.

Cheers,

JamesM

Posted: Wed Nov 14, 2007 9:36 am
by cyr1x
Good work, i think. The code is clear and the doc's are well written.

Btw, what's the license of your tutorial?

Posted: Wed Nov 14, 2007 9:54 am
by AJ
Looks good, but my VFS is a good few months off, so I'll let you know when I get a chance to implement something.

Cheers,
Adam

Posted: Wed Nov 14, 2007 9:54 am
by JamesM
Thanks!

Not certain about the licence, possibly may make it GPL but I'm not quite uptodate on which license is which. I really just want a comment somewhere saying where the code was ripped from if someone steals it.

Posted: Wed Nov 14, 2007 1:25 pm
by OrOS
That would be a BSD-style license. GNU is going lo-lo recently with their license enforcment...

Posted: Wed Nov 14, 2007 1:50 pm
by Brynet-Inc
I think you're doing a good job with the tutorial, but it would be a shame if you put a GPL on it - It would prevent anyone from using bits and pieces of your code in other projects.

Would you consider a BSD-style licence?

Posted: Wed Nov 14, 2007 3:28 pm
by JamesM
Brynet-Inc wrote:I think you're doing a good job with the tutorial, but it would be a shame if you put a GPL on it - It would prevent anyone from using bits and pieces of your code in other projects.

Would you consider a BSD-style licence?
Thanks, and yes. I don't want that enforcement in place, All I want it to 'force' people to keep/maintain my author comments etc, so people know where it came from and I gain a little recognition.

I don't mind others taking my work, but wouldn't like them to fob it off as their own. Is there such a licence?

Posted: Wed Nov 14, 2007 3:41 pm
by JackScott
The BSD license requires that they keep your copyright notice in place (first clause). The only other thing it specifies is lack of warranty.

I would support the use of BSD licensing as well (I'm using it for my OS).

Posted: Wed Nov 14, 2007 4:36 pm
by Brynet-Inc
Yayyak is correct, If you licence your tutorial under a BSD licence.. your copyright will remain intact.

If someone wishes to use your code in a proprietary product, your licence must be included with it's documentation.

Here is what most BSD-like licences look like, You as the licence holder could add or remove text you don't like and call it the JamesM licence.

Code: Select all

Copyright (c) <year>, <copyright holder>
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.
    * Neither the name of the <organization> nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY <copyright holder> ``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 <copyright holder> 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.
Another commonly used licence is the ISC licence..

Code: Select all

Copyright (c) 4-digit year, Company or Person's Name <E-mail address>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Both are very simplistic licences, which unlike the GPL are not several pages long...

Posted: Wed Nov 14, 2007 9:11 pm
by SpooK
The MIT License

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, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

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 SOFTWARE.
More at http://www.opensource.org/licenses ;)

Posted: Thu Nov 15, 2007 3:26 am
by JackScott
Yayyak's License:
* You can choose whatever license you like for this software that I provided to you free, however it must fit on one typed page.

Posted: Thu Nov 15, 2007 3:57 am
by JamesM
Sounds good.

Posted: Thu Nov 15, 2007 6:27 pm
by OrOS
Since the phpbb license puts content under the GPL, I require a copyright notice in your product that it was my original idea to go with a BSD license. Also, its hereby illegal for you to possibly make a living from this code. Thanks, and have a nice day, GNU.

- J/k, but you get my point :)

Posted: Thu Nov 15, 2007 6:30 pm
by AndrewAPrice
OrOS wrote:Since the phpbb license puts content under the GPL, I require a copyright notice in your product that it was my original idea to go with a BSD license. Also, its hereby illegal for you to possibly make a living from this code. Thanks, and have a nice day, GNU.

- J/k, but you get my point :)
So by using GCC anything we compile is automatically under the GPL too? Same with GPL'ed text editors, design program, etc.

Posted: Thu Nov 15, 2007 6:32 pm
by OrOS
*cough* When you hit signup. Obviously.