[Clipart] Librarian jobs

jon at rejon.org jon at rejon.org
Thu Aug 5 19:52:52 PDT 2010


Convert to php..that will work :)

On Thu, Aug 5, 2010 at 7:29 PM, J. Alves <alvesjmp at gmail.com> wrote:
>> Unfortunatly, I don't yet have the skills to do make that happen. So in the
>> mean-time, we can do it manually, or if you have php skills you can help
>> guide me through actually making that automatic tool!
>
> Dang, if it was Perl it would take all of 30 seconds to write that,
> but I don't know php... Time to learn, maybe? :-) OK, maybe a little
> more than 10 seconds, because I'd need to know how the database schema
> stores the info -- I would suppose the tags are separate from each
> other, but since this "bad comma" behavior is happening (and the
> general behavior of the site, like the order of tags being maintained,
> etc.) I guess the tags for a given clipart are all stored in one
> database row, together.
>
> In which case something like the following, on the script that
> receives the upload info but before it's sent to the DB, would solve
> the problem:
>
> @tags = split(/,/, $tags);    # assuming tags are in one string,
> separate based on comma in put in list
> foreach (@tags) {
>    $_ =~ s/^\s+//;     # remove all space in the beginning of each tag
>    $_ =~ s/\s+$//;     # remove all trailing space
> }
> $newtag = join(", ", @tags);    # join the "cleaned up" tags using ",
> " (comma space) and put it all in a variable
>
> Now, that's Perl. If someone can translate... :-)
>
> Cheers
> J
>
> On Thu, Aug 5, 2010 at 8:23 PM, chovynz <chovynz at gmail.com> wrote:
>> Oh no! dude, I wasn't saying you were complaining. I've been there and
>> that's the reason I made that wiki entry guideline - to make teh OCAL
>> website look better. But after thinking about it for a few months I have
>> come to the conclusion that it's an absolute waste of Librarian time to be
>> fixing comma spaces. I don't want to waste your time. Your time is too
>> precious to waste on trivial things like commas. That particular job can be
>> done automatically.
>>
>> Unfortunatly, I don't yet have the skills to do make that happen. So in the
>> mean-time, we can do it manually, or if you have php skills you can help
>> guide me through actually making that automatic tool!
>>
>> So, again I say, keep up the great work dude! Keep in contact, keep
>> exploring ways you can help.
>>
>> Cheers
>> Chovynz
>>
>> On 6/08/2010 12:09 p.m., Leonardo Cunha wrote:
>>>
>>> I agree with that. Some kind of automatic fixer would be great!
>>>
>>> I was not complaining about the work. What I really meant was that the
>>> problem with "tag,tag,tag" is not restricted to the old clipart, but to the
>>> new ones too, as some people are used to not put space between tags, so even
>>> if we fix the old cliparts, there will always be new and wrongly spaced
>>> tags. Sorry if it sounded as a complain. :)
>>>
>>> Best regards,
>>> Leonardo Cunha
>>>
>>>
>>>
>>> 2010/8/5 chovynz <chovynz at gmail.com <mailto:chovynz at gmail.com>>
>>>
>>>    Even better would be having it fix itself in the coding. :) I'd
>>>    prefer to "hardcode" certain "rules", so that it's failsafe,
>>>    rather than relying on user-ability to type correctly or ocal
>>>    telling them how to type. That's micromanagement and not good for
>>>    community. It's also a hassle from a Librarian and Admin POV.
>>>    Who's going to change that guideline if it gets out of date? Not
>>>    me. I'll be too busy making more gadgets :D
>>>
>>>    Much better to have an in-the-background comma space fixer than me
>>>    waste your Librarian time good sir! In-fact you might even
>>>    consider striking that entry from the Librarian jobs? (or not yet,
>>>    but we'll do that when the comma fixer is done.)
>>>
>>>    Thanks for your work. It's very appreciated Leonardo! Keep it up!
>>>
>>>    Cheers
>>>    Chovynz
>>>
>>>
>>>
>>>
>>>    On 6/08/2010 5:06 a.m., Leonardo Cunha wrote:
>>>
>>>        Hi,
>>>
>>>        "3. *Add a space after each comma to all tag lists that have
>>>        this format "tag,tag,tag,tag"*. We want this "tag, tag, tag, tag"
>>>        This will stop the tag lists of each clipart breaking the
>>>        page. This format is leftover from the old OCAL cchost system
>>>        and doesn't look very good on our new system."
>>>
>>>        We could/should have a guideline on the upload page or even
>>>        some kind of validation, because I have been fixing lots of
>>>        "tag,tag,tag,tag" from recent submissions.
>>>
>>>        Best regards,
>>>        Leonardo Cunha
>>>
>>>
>>>
>>>
>>>        2010/6/2 chovynz <chovynz at gmail.com <mailto:chovynz at gmail.com>
>>>        <mailto:chovynz at gmail.com <mailto:chovynz at gmail.com>>>
>>>
>>>
>>>           Hi all
>>>
>>>           Here's an update on the list of easy job's I've identified that
>>>           can be done as a Librarian, or as an editor of your own
>>>        clipart.
>>>           This list comes from various discussions on the mailling
>>>        list and
>>>           things I personally have noticed and want done to improve the
>>>           site. It may be possible to do this in the database itself,
>>>        but we
>>>           can help out by doing it manually too. You can copy and paste
>>>           these search queries into the address bar to get a good
>>>        indication
>>>           of the clipart that needs doing. It's not exact, but it's
>>>        good enough.
>>>
>>>           Be smart, use a Find and Replace function in a word
>>>        processor for
>>>           many jobs. I.e. instead of editing the longer tag lists by
>>>        hand,
>>>           copy the tag list into a word processor, find and replace all
>>>           commas with a commaspace, remove unecessary tags, then
>>>        paste back
>>>           into the cliparts' tag list.
>>>
>>>           1. *Replace underscore character "_" with a space character
>>>        " " in
>>>           any clipart titles.*
>>>           Change the Upload Name entry.
>>>           This will enable long titles to be able to break when there
>>>        is too
>>>           much words for the CSS to be able to handle effectively.
>>>        http://www.openclipart.org/search/?query=_
>>>
>>>           2. *Remove tags such as media, public_domain, svg, image, png*
>>>           This will clean up the tag list for better categorisations,
>>>           clearer searches, less tag weight on things that aren't
>>>        relevant
>>>           to the clipart in question. These tags are leftovers from
>>>        the old
>>>           OCAL cchost system and are not necessary in this new OCAL
>>>        system.
>>>           You will be able to remove these often at the same time as
>>>           replacing the commas.
>>>
>>>        http://www.openclipart.org/search/?query=media
>>>        http://www.openclipart.org/search/?query=public_domain
>>>        http://www.openclipart.org/search/?query=svg
>>>        http://www.openclipart.org/search/?query=image
>>>        http://www.openclipart.org/search/?query=png
>>>
>>>           3. *Add a space after each comma to all tag lists that have
>>>        this
>>>           format "tag,tag,tag,tag"*. We want this "tag, tag, tag, tag"
>>>           This will stop the tag lists of each clipart breaking the page.
>>>           This format is leftover from the old OCAL cchost system and
>>>           doesn't look very good on our new system.
>>>           Compare : First Example
>>>        <http://www.openclipart.org/detail/67> and
>>>           Second Example <http://www.openclipart.org/detail/64153>
>>>
>>>
>>>           4. *Add descriptions to cliparts that are missing it.*
>>>           The search searches descriptions as well as other fields.
>>>        To have
>>>           a description will help people find the clipart.
>>>
>>>           5. *Request that people upload clipart separately*.
>>>           Or do it yourself.
>>>
>>>           6. *Tag copyright infringeing clipart*. Then Notify the
>>>        mailing list.
>>>           More eyes = faster finding and dealing with infringement. All
>>>           cliparts should be public domain.
>>>
>>>           7. *Let the mailing list know what you've hidden.*
>>>           This is for better accountability and finding. We are doing the
>>>           best we can but sometimes we make mistakes and others can
>>>        pick up
>>>           on that, so that we can get accurate info.
>>>
>>>           8. *Notify Mailing list of any cliparts that have a remix
>>>        on them
>>>           that need sorting out, or unlinking. Same with any cliparts
>>>        that
>>>           need linking up.*
>>>
>>>           Sweet! I know it looks like alot, but it's not really, when
>>>        you do
>>>           it a little a day.
>>>
>>>           Cheers
>>>           Chovynz
>>>
>>>           _______________________________________________
>>>           clipart mailing list
>>>        clipart at lists.freedesktop.org
>>>        <mailto:clipart at lists.freedesktop.org>
>>>        <mailto:clipart at lists.freedesktop.org
>>>        <mailto:clipart at lists.freedesktop.org>>
>>>
>>>        http://lists.freedesktop.org/mailman/listinfo/clipart
>>>
>>>
>>>
>> _______________________________________________
>> clipart mailing list
>> clipart at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/clipart
>>
>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> João Marcelo Pereira Alves (J) - Genomics, Molecular Phylogeny and Evolution
> Dept. Microbiology & Immunology - MCV/VCU - Richmond, VA, USA
> f. 1-804-828-3897 / 804-852-1234 - http://bioinfo.lpb.mic.vcu.edu
> _______________________________________________
> clipart mailing list
> clipart at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/clipart
>



-- 
Jon Phillips
http://rejon.org/
http://fabricatorz.com/
http://status.net/
http://rejon.status.net + skype: kidproto
+1.415.830.3884 (sf/global)
+86.187.1003.9974 (china)



More information about the clipart mailing list