User talk:Zhuyifei1999

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{#useliquidthreads:1}}

This is a Wikimedia Commons user talk page.

This is not an article, file or the talk page of an article or file. If you find this page on any site other than the Wikimedia Commons you are viewing a mirror site. Be aware that the page may be outdated and that the user to whom this talk page belongs may have no personal affiliation with any site other than the Wikimedia Commons itself. The original page is located at https://commons.wikimedia.org/wiki/User_talk:Zhuyifei1999.

This is the user talk page of Zhuyifei1999, where you can send messages and comments to Zhuyifei1999.

  • Be polite.
  • Be friendly.
  • Assume good faith.
  • No personal attacks.
  • Please sign and date your entries by clicking on the appropriate button or by typing four tildes (~~~~) at the end.
  • Put new text under old text.
  • New to Wikimedia Commons? Welcome! Ask questions, get answers as soon as possible.
  • Click here to start a new topic.


Wiki Loves Africa 2020[edit]

Wiki-Loves-Africa-logo.png
Contribute to Wiki Loves Africa and to how the world sees Africa! Contribuez à Wiki Loves Africa et impactez la façon dont le monde voit l’Afrique!
Dear Zhuyifei1999

In the past, you contributed to the Wiki Loves Africa competition. This February, you have another opportunity to create beautiful photographs on the theme of "transportation" that could change how the world understands people and culture in your part of Africa. As with previous years, there are also many exciting cash prizes.

Wiki Loves Africa is an annual public contest where people across Africa can contribute media (photographs, video and audio) about their environment to Wikimedia Commons for use on Wikipedia and other project websites of the Wikimedia Foundation.

Images from the competition have helped millions learn more about Africa and see Africa more clearly from an African perspective. Overall, nearly 5000 people like you have contributed to this photo contest, and contributed 18,000 images about Africa.

When does it take place?

The 2020 competition will start on the 15th of February 2020 and close on 31st March 2020.

What should we contribute?

Pictures ! audios ! videos ! The theme for the 2020 contest is... Africa on the Move ! This theme encompasses a host of approaches and is intentionally open to interpretation. It encourages the submission of visual representations of movement or transportation, whether by path, road, sea air, by self-propelled, animal or mechanical means, or the historical or contemporary structures that have been created to facilitate movement or the transportation of people, goods, or animals.

In addition to the value your photos contribute to understanding and African visibility, there are several prizes on offer. The international prizes are:

  • 1st prize: US$1000
  • 2nd prize: US$800
  • 3rd prize: US$500

Additional categories are:

  • Culturally specific or traditional representations of transport or structures that facilitate transportation : US$500
  • Prize for best quality video: $500


Each winner will also receive a pack of goodies (proposed: a hat "I edit Wikipedia from Africa", a branded battery, stickers). Additional prizes will be available in some countries.

For rules and information about how to participate, or to join the contest, click on Contribute to the Wiki Loves Africa photo contest.

Warmest,

Anthere, for the Wiki Loves Africa Team


Cher ou chère Zhuyifei1999,

Au cours des années passées, vous avez participé au concours photographique Wiki Loves Africa. Ce mois de février vous avez à nouveau l'opportunité de proposer de fabuleuses illustrations sur le thème du "transport", qui pourraient profondément modifier la façon dont le reste du monde voit l’Afrique et comprend ses habitants et ses coutumes. Bonus, comme lors des années précédentes, il y a plusieurs prix à la clé.

Wiki Loves Africa un concours public annuel où chacun est invité à partager des illustrations via Wikimedia Commons, en rapport avec le thème de l’année, illustrations qui pourront être utilisées sur Wikipédia ou les autres sites de la Wikimedia Foundation.

Les photos collectées par le passé dans le cadre du concours ont aidé des millions de personne à mieux connaitre et comprendre l’Afrique et à la voir selon une perspective africaine. Au cours des dernières années, près de 5000 personnes comme vous ont contribué au concours, un total de 18,000 photos sur l’Afrique.

Quand le concours se déroule t-il?

Le concours 2020 démarre le 15 février 2020 et cloture le 31 mars 2020.

Quelles sont les contenus attendus?

Des photos ! Des enregistrements audio ! Des vidéos ! Le thème du concours 2020 est ... Le transport.

Ce thème englobe de nombreuses approches, il est aussi intentionnellement ouvert à l’interprétation. Le thème Transport ! encourage à proposer des représentations liées au mouvement ou au transport, que ce soit par la route, ou l’air, ou l’eau, de façon auto-propulsée ou avec l’aide de la force animale ou mécanique, ou bien également les structures architecturales historiques ou contemporaines qui sont à l’origine ou ont facilité le mouvement et le transport des êtres humains, des animaux ou des biens.

En plus de la valeur intrinsèque que vos photos apportent pour une meilleure visibilité et compréhension de l’Afrique à travers le monde, il y a de nombreux prix à gagner. Les prix internationaux sont les suivants:

  • 1er prix: US$1000
  • 2ème prix: US$800
  • 3ème prix: US$500

Catégories additionnelles:

  • Transport ou structures de transport traditionnelles : US$500
  • Prix de la meilleure vidéo: US$500

Chaque gagnant recevra également des cadeaux supplémentaires tels qu'une casquette "I edit Wikipedia from Africa", une batterie portable, des stickers... Des prix supplémentaires seront offerts dans certains pays.

Pour plus d'informations, règles de participation et pour participer au concours, cliquez sur Participer au concours Wiki Loves Africa.

Bien à vous,

Anthere, pour l'équipe Wiki Loves Africa

AjaxQuickDelete and Cat-a-lot on betacommons[edit]

As to not further derail the discussion on Commons:Administrators' noticeboard/User problems#Jameslwoodward, it seems AjaxQuickDelete isn't loading on betacommons either. Cat-a-lot uses jquery.ui.resizable and jquery.ui.dialog so I checked what else uses that and nothing else uses jquery.ui.resizable but AjaxQuickDelete uses jquery.ui.dialog.

And now I noticed what's probably going on:

	mw.loader.using([
			'jquery.ui', // deprecated
			'mediawiki.user',

Oh, snap. @Krinkle: I think this means Cat-a-lot and AjaxQuickDelete are about to break. - Alexis Jazz ping plz 10:02, 2 March 2020 (UTC)

I haz fixed ur deprukasion! - Alexis Jazz ping plz 10:27, 2 March 2020 (UTC)
I am getting close I think: https://commons.wikimedia.beta.wmflabs.org/wiki/User:AJ/Restore-a-lot MediaWiki:Gadget-Restore-a-lot.js
A list of files would have to be edited with a simple search and replace. That's far more doable than clicking hundreds of times. (pywikibot is nice, but it would also be nice to have an on-wiki alternative)
I have to figure out how to make Restore-a-lot pass the token (I modified the request that.. does err something, not the actual edit-request) and figure out how to "satisfy" cat-a-lot so it continues editing after the first file. I'm a total noob so this takes forever. It's not very efficient. - Alexis Jazz ping plz 12:31, 2 March 2020 (UTC)
It compiles, ship it! Only works when using English UI (?uselang=en for anyone who doesn't use English as the default) and only tested on Special:DeletedContributions. Reason it only works in English is because Cat-a-lot uses the "title" attribute, which on Special:DeletedContributions contains "(page does not exist)". I remove this "(page does not exist)" nonsense and it should be easy to just use the contents of the <a> tag (because it's like <a href="File:example.jpg" title="File:example.jpg (page does not exist)">File:example.jpg</a>) instead of the title attribute, but again, I'm a noob. - Alexis Jazz ping plz 11:20, 3 March 2020 (UTC)
@GreenMeansGo: no lot of repetitive clicking in your near future. Face-smile.svg - Alexis Jazz ping plz 11:22, 3 March 2020 (UTC)
Oh god. It's my arch nemesis, code. GMGtalk 11:25, 3 March 2020 (UTC)
@GreenMeansGo: I've been busy for hours getting it to work and even broke MediaWiki in the process just so we could have an undeletion tool that works like Cat-a-lot. I'm no besties with code either. Face-wink.svg - Alexis Jazz ping plz 12:13, 3 March 2020 (UTC)
@Alexis Jazz: I can fix that <a> issue. Could you remove any code that are unused and change any namings from cat-a-lot to restore-a-lot (except those referring specifically to cat-a-lot)? --Zhuyifei1999 (talk) 17:10, 3 March 2020 (UTC)
Also, forgot to say, very nice work! I'm sure you will get more experienced with coding ;) --Zhuyifei1999 (talk) 17:21, 3 March 2020 (UTC)
Thank you. :-) I'll try, but I probably can't remove everything because the tool otherwise breaks and I don't always understand why. It's now at User:Alexis Jazz/Restore-a-lot.js so admins can load it in their common.js. I'll keep that version stable (well, as stable whatever I do gets ;-)) and mess about on betacommons. - Alexis Jazz ping plz 17:32, 3 March 2020 (UTC)
I tried, but I don't think I can. I'm working at https://commons.wikimedia.beta.wmflabs.org/wiki/User:AJ/Restore-a-lot.js (refreshes faster than the version in MediaWiki:) and I can't even add an undeletion button/link that actually works. After hours I managed to add an undeletion link (which would hopefully allow getting rid of results.html), but it just doesn't work. - Alexis Jazz ping plz 18:25, 4 March 2020 (UTC)
@Alexis Jazz: I don't understand; what exactly is the issue you are hitting? Like code + expected behavior + actual behavior --Zhuyifei1999 (talk) 20:19, 4 March 2020 (UTC)
The code is spaghetti, but I got it to work. :-) The way I think it works/worked is: the original "undelete" button was just a modified "add category" button that when pressed would fake-add some invisible category to the files which would normally be seen left of the button. The button/link I made did the same, but there was no invisible category left of it, so it tried to add "undefined" and that didn't go down well. I've solved it by hardcoding "Images" as the category. :-P - Alexis Jazz ping plz 20:27, 4 March 2020 (UTC)
@Alexis Jazz: But why do you need a category? We aren't working on categories and should just remove all code related to categories --Zhuyifei1999 (talk) 20:50, 4 March 2020 (UTC)
I 100% agree, but it'll take some time for me to figure out how to remove that stuff without breaking everything. I simply have no idea what I'm doing ("you pay peanuts, you get monkeys"), but at least the tool looks quite neat now as all the unneeded visible elements are gone or invisible now. - Alexis Jazz ping plz 21:18, 4 March 2020 (UTC)
The javascript console and console.log is your friend :) --Zhuyifei1999 (talk) 22:55, 4 March 2020 (UTC)
I gotta look into that.. anyway, how is now? If more cleanup is needed, do you have any suggestions? - Alexis Jazz ping plz 00:05, 5 March 2020 (UTC)
Can I have your permission do code review in line (add comments)? --Zhuyifei1999 (talk) 00:08, 5 March 2020 (UTC)
You don't need permission to do that! Of course you can, please, that would be very helpful. :-) - Alexis Jazz ping plz 08:38, 5 March 2020 (UTC)
Thanks for your comments! I've made some more changes. Really stupid question (I feel like I'm just poking at unknown things in the dark): in a line like: "getContent: function ( page, targetcat, mode )", what are page, targetcat and mode? Are they variables that go into the function? Or does the function output them? How are they called inside the function (if input)/retrieved afterwards (if output)? - Alexis Jazz ping plz 17:04, 5 March 2020 (UTC)
They are the parameters for the function. Simple example:
function fibonacci(i) {
	if (i < 2)
		return i;

	return fibonacci(i-1) + fibonacci(i-2);
}

fibonacci(10); // returns 55
When you call fibonacci(10) and the execution enters fibonacci(i), i is 10. It then recurses into fibonacci(i-1) and fibonacci(i-2), and in these inner frames i takes 8 and 9. More recursion happens until i reaches 0 and 1. Also, each frame is independent from each other. --Zhuyifei1999 (talk) 17:13, 5 March 2020 (UTC)
Simple.. this is very much stretching what I might understand, but I think I somewhat get it. :-) I think I made some progress again, but I can't eliminate getContent. When I do, the operation will cancel with "connection errors", which I think happen because it's checking for a "title" in the response. I tried disabling that check, but the operation just hangs when I do. I think I need another hint.. - Alexis Jazz ping plz 16:55, 7 March 2020 (UTC)
The good news: Restore-a-lot now also works on COM:UDR and deletion requests! :-)
The bad news: that setTimeout thing didn't work and I still can't get rid of getContent. - Alexis Jazz ping plz 19:03, 7 March 2020 (UTC)
Regarding getContent: You don't need the result parameter to undeleteFile do you?
I don't see how that wouldn't work. 5000 is 5 seconds --Zhuyifei1999 (talk) 20:14, 7 March 2020 (UTC)
I don't? I'll try!
I dunno, but I tried it and it just wouldn't wait. Or maybe it starts the next request while it's waiting, not sure. I had set it to 5 seconds to make sure I could verify it works. - Alexis Jazz ping plz 20:53, 7 March 2020 (UTC)
Ah I see why "it starts the next request while it's waiting" would happen. getContent is in a loop so the function would return before the timeout, starting the next request --Zhuyifei1999 (talk) 21:08, 7 March 2020 (UTC)
I got rid of getContent. :-) Does anything more have to be done? - Alexis Jazz ping plz 02:10, 8 March 2020 (UTC)
Get rid of spin wait. I'll look tomorrow. I'm quite bust this weekend and next week, but after that I will hopefully have a ton of time for just a week --Zhuyifei1999 (talk) 03:28, 8 March 2020 (UTC)
Presumably you mean the jquery.spinner. It's gone, I agree, this is better. - Alexis Jazz ping plz 13:06, 8 March 2020 (UTC)
Uh no I was referring to pausecomp. "spin wait" meant a wait that is implemented via spinning --Zhuyifei1999 (talk) 14:12, 8 March 2020 (UTC)
Oh, oops. Still, I'm leaving the jquery.spinner out. I like it better this way. Also, I think I resolved the issue. I currently have the delay set to 800ms because betacommons is seriously underperforming, but on production a lower value can be tried. If betacommons is still down when you read this, I also updated User:Alexis Jazz/Restore-a-lot.js. - Alexis Jazz ping plz 18:37, 8 March 2020 (UTC)
Mind if I properly add a the wait? --Zhuyifei1999 (talk) 19:49, 8 March 2020 (UTC)
This is a collaborative project, do anything that you think will improve it, please. :-) - Alexis Jazz ping plz 20:20, 8 March 2020 (UTC)
I'll do it this weekend or next week. No time right now --Zhuyifei1999 (talk) 18:59, 10 March 2020 (UTC)
Thanks. :-) I've tweaked the interface a little bit, but I haven't changed the delay stuff. - Alexis Jazz ping plz 18:07, 15 March 2020 (UTC)

Tech News: 2020-11[edit]

17:15, 9 March 2020 (UTC)

Flickr Review bot is down![edit]

Hi Zhuyifei1999, are you fine? Your bot FlickrevieR 2 doesn't work anymore and there is a huge, huge queue in the Category:Flickr review needed. Thank you for fixing it ASAP if you are well. All the best, Edelseider (talk) 16:23, 15 March 2020 (UTC)

@Edelseider: It was down but is running now. There was 16 k files a few hours ago. There is "only" 11 k now. --MGA73 (talk) 16:55, 15 March 2020 (UTC)
@MGA73: Oh, okay, thanks! --Edelseider (talk) 18:07, 15 March 2020 (UTC)

It wasn't down. See Commons:Help_desk#Sleepy_bot? --Zhuyifei1999 (talk) 18:48, 15 March 2020 (UTC)

Crops etc.[edit]

Hi! In many cases when bot cant review a file it is because uploader cropped the file. For example File:Kasey Kahne Martinsville Fall 2017.jpg. Can you think of any good way to make it easier for reviewers?

If the license is good the bot could perhaps upload the original file and review that. But if it is not the same file and someone revert the upload then the "bad" file is suddenly reviewed.

Bot could also upload the original and not review the file but make a note that the original is licensed freely and if it is a crop then reviewer could just revert and review.

I also found some cases where the original was uploaded to Commons under another name (example File:Rogelio Velasco Pérez 2019 (cropped).jpg. In those cases it could be nice to have an {{Extracted from}}.

But the problem is that it would probably make the review proces too complex? Anyway I just wonder if there is a way to make it easier for us lazy reviewers without messing with your bot? --MGA73 (talk) 09:39, 16 March 2020 (UTC)

(Can't access my main account due to an OS reinstall, using alt for now).
Some code to recognize if an image is extracted from the original at Flickr is way too complex for the scope of the bot.
If a file has {{Extracted from}} where the target of {{Extracted from}} has been reviewed, and {{Extracted from}} is indeed true, I don't see the point of reviewing the file again. However the bot is unable to verify {{Extracted from}}. --Zhuyifei1999 (test) (talk) 18:08, 16 March 2020 (UTC)
Then I think it is best not to spend time to work out something! --MGA73 (talk) 18:12, 16 March 2020 (UTC)

Tech News: 2020-12[edit]

21:13, 16 March 2020 (UTC)

Hello! Help Seek[edit]

I notice a user from Thailand trying to prevent the draft article: Robam Moni Mekhala to become a new article! Now he proposed most of the photos I uploaded to the draft article for deletion while the draft is on the REVIEW. Is there anyway to help me? Those photo I have the permission (I asked the owner via fb page, thus got them from fb) and uploaded them on behalf of the owner and attached with owner's name, as she was not part of Wikipedia. I'm just a new editor! Thanks if you can help! Antony Willianson (talk) 16:19, 17 March 2020 (UTC)

Is this about Wikipedia, not WIkimedia Commons? --Zhuyifei1999 (talk) 18:19, 17 March 2020 (UTC)

Why did bot not change the license?[edit]

Bot reviewed the file here but it did not change the license according to what was found on Flickr. I have never seen it leave "a bad" license before. Is that new? --MGA73 (talk) 21:08, 17 March 2020 (UTC)