User talk:André Costa (WMSE)

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Welcome to Wikimedia Commons, André Costa (WMSE)!

-- Wikimedia Commons Welcome (talk) 00:12, 12 January 2013 (UTC)

Commons:Batch uploading/LSH[edit]

Do you have more details about the LSH upload? There are other frameworks that do implement chunked uploading (it's not difficult to implement). Alternatively, you could provide an xml/json file with all the necessary data for the upload, and some other bot op could upload.Smallman12q (talk) 14:55, 23 February 2013 (UTC)

Hi. The metadata delivery for the LSH upload was delayed which is why there have been no recent updates. I'm hoping to get it later this week though. Which are the other frameworks that have implemented chunked uploading? We have been looking at several different ways of uploading the files. My preprocessing would be aiming to construct one meta file per image file containing the image page contents and the (on-wiki) target filename. Part of the problem with putting the upload on someone else is the lack of an easy way of transferring the images, it's ~1.5 TB after all. /André Costa (WMSE) (talk) 11:01, 25 February 2013 (UTC)
I've implemented it in my own Python 2.7 class (~500 lines w/ujson, pycurl, and cstringio...the stash and stashupload portion is ~100 lines using mmap). Honestly, not sure about which frameworks at mw:API:Client_code support it. It's not hard to implement ( fir the framework overall you're only looking for 4 functions, login, stash, stashupload, logout). Regarding the total file size, if you could host the images on an ftp server or some site, I could easily grab and upload them from there. If you can get that TB plugged in, I'll be good to go. I've done that for 1000's of files with User:Smallbot. Alternatively, I could clean up the source and pass it along.Smallman12q (talk) 00:01, 26 February 2013 (UTC)
Hi. Sorry for the delayed reply. If you could pass along the source that would be great. Since the images will most likely be hosted on one of the museum machines that is probably the easiest solution. As a bonus I also get to see working code which might explain why my own solution didn't work. If the offer remains open and if we can put the images on a machine which is accessible I might take you up on the Smallbot offer though. As I mentioned we had been looking at a few different alternatives for the main upload but whatever the solution we pick I would need something like your tool during the test uploads. /André Costa (WMSE) (talk) 12:59, 2 March 2013 (UTC)
Will refactor/add some documentation and put it up tmrw. Cheers.Smallman12q (talk) 00:00, 5 March 2013 (UTC)
I've put up the initial source at User:Smallman12q/PyCJWiki. I'll add better doc/expand this weekend, but it's not too long, and hopefully useful.Smallman12q (talk) 02:30, 6 March 2013 (UTC)
Hi. Sorry for the delay. In addition to everything else I was in the middle of moving which put a halt to many things. I'll try out the code later this week but looking through it it looks pretty straight forward (to use). Many thanks! /André Costa (WMSE) (talk) 19:00, 13 March 2013 (UTC)
That's fine. Let me know if it works. Smallman12q (talk) 23:41, 16 March 2013 (UTC)
Data delivery was delayed once again. Will try it on an unrelated image (when I get the time) and make sure it works. Will get back to you as soon as I've tested it. /André Costa (WMSE) (talk) 16:54, 26 March 2013 (UTC)
OK sorry for the huge delay. Finally got around to testing the script (not on a large file though). It works fine apart from two issues. the first is that I couldn't get it to work using the https address of the api (got 'An error occurred: 60:', 'SSL certificate problem: unable to get local issuer certificate'), http worked fine though. The next one is that "commons.setEditToken()" should be added to the instructions since it is required before attempting an upload (might be worth calling it automatically if self.edittoken is None in any of the upload methods). I'll try to find a larger image to give it a proper test but so far it seems to do the trick =) /André Costa (WMSE) (talk) 23:33, 3 April 2013 (UTC)
this was the file btw. /André Costa (WMSE) (talk) 23:36, 3 April 2013 (UTC)
The SSL error stems from libcurl failing to get the CA certs. You could try "sudo apt-get install ca-certificates" to make sure the proper ca certs are installed. You could add self.sitecurl.setopt(curl.SSL_VERIFYHOST, 0) to init to skip verification (since you'll only be contacting the wiki with the shouldn't be a security issue). Relevant links: [1], [2], [3]. I purposely don't fetch editToken automatically. Permissions should be set explicitly by the programmer...from IRL, I've had horrid experiences with implicit permissions. It's only a line, so not too troublesome. Glad to see it worked, at least with a small file and a single chunk. Cheers.Smallman12q (talk) 01:40, 4 April 2013 (UTC)
It worked with a somewhat larger file (122.02 MB) as well =). No SSL issues this time. Many thanks for a great tool! /André Costa (WMSE) (talk) 19:49, 4 April 2013 (UTC)

WLPA campaign[edit]

Hi, André. I've translated header templates for WLPA campaign in Spanish and Catalan, but in the UploadWizard they show the footnote "NOTE: Please do not use this template directly! This is just for translation": Not sure how to fix it. --V.Riullop (talk) 08:18, 23 April 2013 (UTC)

I think the problem comes from {{Upload campaign header wlpa-es-ct}} that calls directly the lang versions for before and after the contest. Probably {{Upload campaign header Wiki Loves Public Art 2013 April}} should be moved to a /layout subtemplate and this template should choose the lang version with {{autotranslate}}.
Another question: {{WLPA-is-running}} sets start time at 201305012200 UTC and this is 2013-05-02-00:00 for CEST timezone. If I have not missed anything, it should be 201304302200. --V.Riullop (talk) 09:02, 23 April 2013 (UTC)
Thanks for spotting this. Upload campaign header wlpa-es-ct isn't designed in the way I originally intended since I had to bake {{WLPA-is-running}} into that rather than implement it in the upload campaign. This also means I'm now calling in a different way from how was intended. I'll sort this out.
And also correct with respect to the timestamps. Now changed. /André Costa (WMSE) (talk) 09:40, 23 April 2013 (UTC)
And the "NOTE: Please do not use this template directly!..." should be sorted as well. /André Costa (WMSE) (talk) 12:48, 23 April 2013 (UTC)

WLPA images[edit]

I'm using Commonist to upload images. Do you need a participant to test the upload wizard?--Pere prlpz (talk) 23:02, 30 April 2013 (UTC)

I'll change it, but Commonist is already running and a few tens of images will be uploaded with "es" tonight.--Pere prlpz (talk) 23:15, 30 April 2013 (UTC)
Can you run your AWB again to clean the remaining images? Please notice that some of them are wrongly tagged "ct-es" instead of "es-ct". Thank you.--Pere prlpz (talk) 20:39, 2 May 2013 (UTC)

WLPA logos[edit]

I have removed the logo of Amical from the template Wiki Loves Public Art 2013. We did not use it in Wiki Loves Monuments Andorra as we did not want to create any confusion with chapters. Now we are in process of recognition as a thematic Wikimedia organization and I think it is better to wait the final decision. Anyway, I am impressed by your work preparing the infrastructure of the competition. Great work! --V.Riullop (talk) 09:32, 1 May 2013 (UTC)

Thanks! My fault about the logo, just wanted to make sure you guys knew we appreciated all of the hard work. Still understand not wanting to cause any confusion =) /André Costa (WMSE) (talk) 09:55, 1 May 2013 (UTC)

Autopatrol given[edit]

Commons Autopatrolled.svg

Hello. I just wanted to let you know that I have granted autopatrol rights to your account; the reason for this is that I believe you are sufficiently trustworthy and experienced to have your contributions automatically sighted. This will have no effect on your editing, and is simply intended to help users watching Recent changes or Recent uploads to find unproductive edits amidst the productive ones. Thank you. INeverCry 15:37, 24 July 2013 (UTC)

Upload Wizard campaign editor[edit]


I'm dropping you a message because you are a Upload Wizard campaign editor who may not have used the tool, or at least not recently. Consensus has been determined that this user right should be removed from users who are not using it or not planning on using it (see previous discussion.) If you have a reason that your upwizcampeditor be kept, please let me know below! If you think you got this message in error, please also let me know. :) ~riley via MediaWiki message delivery (talk) 00:41, 24 May 2016 (UTC)

Hi @~riley:. I definitely still need it since I'm the Swedish coordinator of WLM and also use it to handle ÖDOK/ In general campaigns don't regularly need poking but when they do it's normally with short notice. /André Costa (WMSE) (talk) 09:06, 24 May 2016 (UTC)
Sorry, throught I removed you from the distribution list. You're good, don't mean to bother you! :) ~riley (talk) 11:19, 24 May 2016 (UTC)
No worries. Better one message too many than one too few =) /André Costa (WMSE) (talk) 11:34, 24 May 2016 (UTC)