Skip to content

Commit 4093e63

Browse files
authored
Merge branch 'master' into header-keyboard
2 parents 713eb22 + 42b71ef commit 4093e63

File tree

33 files changed

+1313
-530
lines changed

33 files changed

+1313
-530
lines changed

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ verify_ssl = true
55

66
[packages]
77
black = "==19.10b0"
8+
# Cryptography 3.4+ requires Rust to build
9+
# https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst
10+
cryptography = "==3.3.2"
811
flake8 = "*"
912
lektor = "*"
1013
# Werkzeug added and pinned to mitigate this issue:

Pipfile.lock

Lines changed: 225 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
username: Ishan Thilina
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
username: Thanish
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
username: Dinishika Weerarathna
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
username: Ethan Lim
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
username: igorlukanin
1+
username: Igor Lukanin
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
title: Creative Commons Drupal Module
2+
---
3+
categories:
4+
API
5+
development
6+
GSoC
7+
software
8+
tools
9+
---
10+
author: blaise
11+
---
12+
body:
13+
14+
Creative Commons provides vast number of public copyright licenses for people who want to enable free distribution of their work. Creative Commons licenses currently covers over **1.6 billion resources**. These license files are then translated to multiple different languages and ported for [different jurisdictions](https://wiki.creativecommons.org/wiki/CC_Ports_by_Jurisdiction) for international usage. People link to the respective licenses along with their licensed works. These license files are in the form of `html` files, stored in [creativecommons/creativecommons.org](https://github.com/creativecommons/creativecommons.org/tree/master/docroot/legalcode) repo.
15+
16+
### Problem Statement
17+
There are currently two Creative Commons (CC) modules for Drupal. CC Lite only offers limited functionality, but the CC module has not been updated for a long time and doesn't support current versions of Drupal.
18+
19+
### Planning
20+
* update the Creative Commons module, referencing and possibly building on Creative Commons lite, to support Drupal 6\
21+
* expand its functionality to embed and detect license information for some file uploads.
22+
23+
### Summary
24+
The Creative Commons module allows users to assign a Creative Commons license to
25+
the content of a node, or to specify a site-wide license. It uses to Creatve
26+
Commons API to retrieve up-to-date license information. Licenses are diplayed
27+
using a Creative Commons Node License block and the Creative Commons Site
28+
License block. The module also supports some license metadata fields. License
29+
information is output using ccREL RDFa inside the blocks, and can optionally be
30+
output as RDF/XML in the body of a node.
31+
32+
Creative Commons search is available at /search/creativecommons/, and (if the
33+
Views module is installed and enabled) a Creative Commons view is available at
34+
/creativecommons. Creative Commons license information and metadata are
35+
available to the Views module.
36+
37+
For a full description of the module, visit the project page:
38+
http://drupal.org/project/creativecommons
39+
40+
To submit bug reports and feature suggestions, or to track changes:
41+
http://drupal.org/project/issues/creativecommons
42+
43+
### Requirements
44+
None
45+
46+
### Installation
47+
* Install as usual, see [Installing contributed modules (Drupal 5 and 6) |
48+
Drupal.org](http://drupal.org/node/70151) for further information.
49+
50+
### Configuration
51+
* Configure user permissions in Administer >> User management >> Permissions >>
52+
creativecommons module:
53+
54+
- administer creative commons
55+
56+
Users can customize the module settings in Administer >> Settings >>
57+
Creative Commons
58+
59+
- attach creative commons
60+
61+
Users will be able to attach license information to the content of a node.
62+
63+
- use creative commons user defaults
64+
65+
Users will be able to set their own defaults, independent of site defaults
66+
(but still subject to site license availability settings).
67+
68+
* Set available license types, required/available metadata and display settings
69+
Administer >> Settings >> Creative Commons. To make it mandatory to specify a
70+
license, simply make the 'None' type unavailable.
71+
72+
* Set default license type and jurisdiction in Administer >> Settings >>
73+
Creative Commons >> site defaults. Here, you can set the default license to be
74+
used as a site-wide license if you wish, and you can include any relevant
75+
metadata.
76+
77+
* Enable Creative Commons licensing for desired content types in Administer >>
78+
Settings >> Creative Commons >> content types. For example, you might wish to
79+
allow Creative Commons licensing for blog posts, but not forum posts.
80+
81+
* In your Drupal user account settings, you can set a jurisdiction or default
82+
license to override the site defaults.
83+
84+
85+
CC Drupal is only possible due to the support and guidance of my mentors [Kevin Reynen](http://drupal.org/user/48877) and `CC Tech Staff Member`, who have been very supportive on every step of the project.
86+
87+
The project is approaching its completion. Can't wait to see it in production.
88+
89+
---
90+
pub_date: 2009-09-23
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
title: Creative_Commons_LibreOffice_Plugin_Updates
2+
---
3+
categories:
4+
Add-In
5+
GSoC
6+
OpenOffice
7+
opensource
8+
---
9+
author: Ishan-Thilina
10+
---
11+
body:
12+
13+
This year Creative Commons has a much more limited focus on what we would like to see out of Google Summer of Code than in previous years.
14+
15+
### Installation
16+
The latest version of the plugin is 0.7.0, available for download from the [OpenOffice.org Extension site](https://extensions.openoffice.org/en/project/ccooo)
17+
To install:
18+
19+
* Download the plugin
20+
* Open OpenOffice.org
21+
* Go to the `Tools` menu and select `Extension Manager`. Click `Add` and select the file you downloaded.
22+
* After the installation process completes, restart OpenOffice.org. The Creative Commons menu options will be located at the bottom of the `Insert` menu.
23+
24+
Debian/Ubuntu (& other variants) users:
25+
* Debian/Ubuntu (& other variants) users may have problems if the plugin installed using the Extension Manager.
26+
* They may need to install the plugin using the terminal.
27+
* To install use /usr/lib/openoffice/program/unopkg gui -f ccooo.oxt
28+
29+
### Problem Statement
30+
The current Creative Commons LibreOffice (OpenOffice) plugin is written in Java. This project is aimed to port the current plugin to Python while rectifying the problems in the current plugin.
31+
32+
### Solution
33+
The Python port of the Creative Commons Add-in for LibreOffice and OpenOffice.org which allows license information to be embedded in OpenOffice.org and LibreOffice Writer, Impress, Draw and Calc documents.
34+
35+
For more information visit [the official addin page](https://wiki.creativecommons.org/wiki/OpenOfficeOrg_Addin) of Creative Commons
36+
37+
### Testing
38+
Download the out.oxt file. Install it via the LibreOffice Extension Manager (Tools --> Extension Manager).
39+
40+
Then go to `Insert` `--> ` `Creative Commons`. By using the first option you can insert the license information to the document. The second option is for changing those data.
41+
42+
### Knowledge Prerequisite
43+
`Python` ,`Shell`
44+
45+
CC LibreOffice is only possible due to the support and guidance of `CC tech staff member`, who have been very supportive on every step of the project.
46+
The project is approaching its completion. Can't wait to see it in production.
47+
48+
---
49+
pub_date: 2012-07-15
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
title: Creative Commons Media Fingerprinting Library
2+
---
3+
categories:
4+
Add-In
5+
GSoC
6+
opensource
7+
---
8+
author: ethanlim
9+
---
10+
body:
11+
12+
CC would prefer that all content on the Web include correct licensing metadata. Alas, that is not the case. So we're interested in code that will allow us to identify a given item across the Web, even if there's no metadata alongside (or within) it. The tricky part is: people often crop or resize images, clip videos, re-encode content, or quote only pieces of text. So a simple hash is not sufficient: we need more intelligent fuzzy matching. That's what this project is about.
13+
14+
### Expected Results
15+
A library that provides two methods:
16+
* Given a media file, output a fingerprint, and
17+
* Given a file and a fingerprint, return the likelihood of the file matching the original file.
18+
19+
You can focus your efforts on only one or two media types, or you can do more if it's possible.
20+
The library can be in a low-level language (C/C++) or you can use a higher-level language (JavaScript) if it's feasible. Speed is not a major concern at this point.
21+
Bonus: An additional API/method to detect content inside other files (e.g., a PowerPoint file that includes a CC licensed image, or a still image inside a video).
22+
23+
### Notes/Resources
24+
The first task is to decide on a strategy to compare two items and decide how similar they are. Some choices are:
25+
* Hamming distance (bitwise AKA Manhattan distance)
26+
* Euclidean distance (plane distance, also good in higher dimensions)
27+
* Set similarity (Jaccard index; MinHash)
28+
29+
For this project, set similarity seems like the best choice. It would potentially allow us to detect works remixed into other works, if some portion of them has remained intact in some way. The technique involves distilling a document into a set of things, and comparing two documents is simply the ratio of things they have in common to things they do not.
30+
31+
A good way to start is with text, and involves a technique called shingling. For something like images, we'll need more work to determine which "interesting" features of the image to consider (to generate the set of things). This is called "keypoint extraction" and involves using standard algorithms to find vectors of floats that describe each keypoint. Since for images two keypoint vectors might be very similar but not identical, some additional work in clustering and mapping to example keypoints is required for images.
32+
Some reading:
33+
* Chapters 1 and 3 of [Mining Massive Datasets](http://infolab.stanford.edu/~ullman/mmds.html)
34+
* [building shingles in text](https://lingpipe-blog.com/2011/01/12/scaling-jaccard-distance-deduplication-shingling-minhash-locality-sensitive-hashi/)
35+
* [Introduction to Information Retrieval](https://nlp.stanford.edu/IR-book/)
36+
* [OpenCV](https://opencv.org/) for extracting things (features) of images
37+
* BRISK / FREAK: algorithms for "keypoint extraction", for images
38+
* [pHash.org](http://www.phash.org/) might be something we can use.
39+
40+
### Knowledge Prerequisite
41+
`Media formats/encodings` ,`JavaScript` ,`C/C++.`
42+
43+
CC MEDIA FINGERPRINTING LIBRARY is only possible due to the support and guidance of my mentors [Dan Mills](#) or ` other CC tech staff member`, who have been very supportive on every step of the project.
44+
45+
The project is approaching its completion. Can't wait to see it in production.
46+
47+
---
48+
pub_date: 2013-07-15

0 commit comments

Comments
 (0)