User talk:Zhuyifei1999/Archive 34

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

21:59, 12 February 2018 (UTC)


Hi Zhuyifei1999, I am a bored bot (this is kind of a computer program) that is watching the recent changes and tapping buttons like I did now.

Curious about the reason? Possibly not but I will tell you anyway:

  1. You edited User:Zhuyifei1999/sandbox.js. Glad to see you coding in javascript! Have you ever considered becoming a MediaWiki hacker?
  2. Though, that change appears to introduce 8 new jshint issues — the page's status is now having warnings. Note that invalid or ambiguous code often has unwanted side effects like breaking other tools for you. If you cannot find out how to fix it, I suggest blanking the page for now.
  3. To help you understanding where the issues are, I have aggregated a report here and now. If you have questions, don't hesitate to ask users experienced in javascript writing for help. But do not ask the bot's operators (chronically overwrought) unless you suspect an error of mine. If you prefer not getting spammed by me, you can opt-out reports by adding {{ValidationOptOut|type=all}} to your user page or cmb-opt-out anywhere on your your global user page on Meta. Good luck at Wikimedia Commons and happy hacking!
  1. ISSUE: line 271 character 20: This character may get silently deleted by one or more browsers. - Evidence: ml: 'തര്‍ജ്ജമ',
  2. ISSUE: line 632 character 25: Expected a 'break' statement before 'case'. - Evidence: }
  3. ISSUE: line 806 character 48: 'current_dest_file' used out of scope. - Evidence: if ( previous_file === current_dest_file ) {
  4. ISSUE: line 1829 character 54: Confusing use of '!'. - Evidence: if ( elems[ i ].disabled !== !enabled ) {
  5. ISSUE: line 2324 character 33: eval can be harmful. - Evidence: do_submit = eval( UploadForm.oldOnSubmit );
  6. ISSUE: line 2936 character 61: Confusing use of '!'. - Evidence: ( UploadForm.forbiddenFileTypes === null || !( UploadForm.forbiddenFileTypes[ ext ] === true ) );
  7. ISSUE: line 3083 character 37: eval can be harmful. - Evidence: eval( previous_onkeyup_handler );
  8. ISSUE: line 3088 character 37: eval can be harmful. - Evidence: eval( previous_onchange_handler );

Your CommonsMaintenanceBot (talk) at 04:39, 13 February 2018 (UTC).

Unblock

Hi, your action is very unfortunate. If you would have looked better, you would have seen that the block was more than justified and that it was not just about the INC DRs. This user has been walking on the edge since 2 February and has been warned by several different admins. They have litterally wasted several hours of the time of several admins in the past week. The fact that they respond to warnings by targetting the admins (not just me) who warn him in reports does not make us somehow an 'involved party'. Otherwise from now on every user could continue any disruptive behaviour if they would just file a report on every user who warns them. Your action caused that in case that this user would continue their disruptive behaviour, we would come in a difficult situation, unless you repair your mistake. Reblocking this user may not be fair and not be necessary at this point, but at least you could post a message at their user talk page in which you clearly state that they are not allowed to continue their disruptive behaviour and that they will be blocked again if they do continue this behaviour. Jcb (talk) 15:33, 13 February 2018 (UTC)

Hi. I don't know all the history / background / facts about this user. My quick reading shows that there are at least 5 people disagreeing on the block, although Colin may be correct that some are just disagreeing on how the block was performed, not the block itself. For me to 'warn' the user would be weak -- I'd have to first research on what they have done -- and I do not really intend to have further non-administrative non-technical interactions with them. As for the 'difficult situation', in the case that they continue to be disruptive, please report to one of the AN-s with the diffs to allow a third-party to conclude the same and perform the appropriate administrative action. --Zhuyifei1999 (talk) 17:36, 13 February 2018 (UTC)

FlickreviewR 2

Question,

Why has the work speed slowed down? Artix Kreiger (talk) 18:49, 14 February 2018 (UTC)

[8] [9] should hopefully make it better. --Zhuyifei1999 (talk) 19:07, 14 February 2018 (UTC)

Video2Commons

I'm trying to upload a video (Horse shoe Falls Alberta Canada (33367088094)-video) from Flickr with Video2Commons. I started it yesterday, and when I checked today, it was still pending. I aborted that task and resubmitted it, but it seems to be stuck again. Any idea what is going on? --Elisfkc (talk) 17:19, 15 February 2018 (UTC)

Probably related to the meltdown of the physical machine responsible of hosting the instance that does the communication between the backends that runs the tasks and the frontend that shows the interface. I restarted one of the 3 backends and it seems to have started now. There are still some weirdness on the hosts so I'll ask andrew (of Wikimedia Cloud Services team) to look at it before I restart more of the backends. --Zhuyifei1999 (talk) 18:34, 15 February 2018 (UTC)
The backend #1 and #3 are rebooted and now fully functional. #2 is still running the tasks that was started earlier and has been depooled (no more tasks will run on that instance until the service is restarted); the instance is scheduled to reboot at Fri 2018-02-16 19:07:47 UTC so if there are any tasks that was started earlier that is still running by then (unlikely), they will be terminated. After that the system should be completely functional. --Zhuyifei1999 (talk) 19:14, 15 February 2018 (UTC)
Thanks. --Elisfkc (talk) 19:43, 15 February 2018 (UTC)

新年快乐

Happy Lunar New Year!


Hello Zhuyifei1999,
希望你的新年 Chinese New Year 过得好。. 这将是又一个充满成果的年度 Sending you a heartfelt and warm greetings for this new year.

Kind regards,
Artix Kreiger (talk) 17:54, 15 February 2018 (UTC)(UTC)(UTC)

Structured Data feedback - What gets stored where (Ontology)

Greetings,

There is a new feedback request for Structured Data on Commons (link for messages posted to Commons: , regarding what metadata from a file gets stored where. Your participation is appreciated.

Happy editing to you. Keegan (WMF) (talk) 22:58, 15 February 2018 (UTC)

22:54, 19 February 2018 (UTC)

Action needed :)

Hello! I am writing to you because your name is on the Tech Ambassadors list.

Per my previous message on your talk page on Meta, we're making some progress over getting a Phabricator workboard through which we can coordinate communal work. Please confirm that https://phabricator.wikimedia.org/p/zhuyifei1999/ is your account there, by adding it to the table on Meta. (Documentation is available if you want to create a new account instead.)

Finally, a friendly reminder to keep an eye on both your talk page on Meta and m:Talk:Tech/Ambassadors/List! Your voice matters and I want to make sure that we don't miss it. Thanks! Elitre (WMF) (talk) 13:25, 20 February 2018 (UTC)

Embedded Data Bot: Nested SVGs?

Could you have a look at File:Administrative_Gliederung_Deutschlands-ja.svg? Embedded Data Bot tagged it with text/plain data after 70471 bytes. This file has embedded SVGs inside the main <svg> tag, and I suspect that is the position where one of those embedded tags is closed. (I didn't check.) Thanks! Sebari – aka Srittau (talk) 11:47, 24 February 2018 (UTC)

Yeah, that's exactly the cause. However, I don't think implementing a full-fledged XML/SVG parser to fix it is worth the time right now. --Zhuyifei1999 (talk) 20:15, 24 February 2018 (UTC)
Probably not. :) Sebari – aka Srittau (talk) 20:58, 24 February 2018 (UTC)
@Srittau: I had also taken a quick look and it was somewhere around line 650 I think. With scour you can make the file about half the size, but I guess that won't solve your problem here.
Zhuyifei1999, I think the bot was made to prevent vandalism by adding hidden junk messages to files? Can it be tested somewhere without uploading to Commons? - Alexis Jazz 22:02, 24 February 2018 (UTC)
Yes, the bot's purpose is something similar; for its history and construction see the links in the header in this AN thread. And yes it can be tested, but I have not (and do not plan to) build a public interface for it, and right now testing it requires messing with its API directly. --Zhuyifei1999 (talk) 22:44, 24 February 2018 (UTC)
Can it be actively invoked for testing if test files are uploaded to Commons? - Alexis Jazz 00:16, 25 February 2018 (UTC)
Unfortunately not, but in case you are able to set it up yourself (like Dispenser did), the detection python API is <module detection>.detect(path_to_seekable_file_on_your_computer), returning either None or a list of dicts, each containing information on an extraneous component of the file. --Zhuyifei1999 (talk) 02:33, 25 February 2018 (UTC)

Signbot opt-out

Is there no opt-out on a page basis, rather than a user basis? I'd sooner not out for all my edits; just on my own user page. Nfitz (talk) 01:40, 31 January 2018 (UTC)

Do you mean your user talk page? SignBot shouldn't operate on user pages since they are not talk pages. --Zhuyifei1999 (talk) 20:51, 31 January 2018 (UTC)
Of course I mean my user talk page. Are you not aware that it doesn't operate on non-talk pages? Nfitz (talk) 08:24, 4 February 2018 (UTC)
I was referring to your 'just on my own user page'. And no, currently it does not have a per-page opt-out as I was unable to find a use case. Why do you want to make your talk page unsigned? Sandbox edits should go to a proper sandbox, not your talk page. --Zhuyifei1999 (talk) 18:29, 4 February 2018 (UTC)
No visible changes to page should always mean no sig. If the only text is adjusting a comment field, the bot shouldn't be there. Nfitz (talk) 06:31, 11 February 2018 (UTC)
@Nfitz: Just out of curiousity, what is that outcommented block of text on your talk page for? (I should ask on your talk page, but with that block there I'm not even sure that's a good idea..) - Alexis Jazz 11:11, 11 February 2018 (UTC)
@Alexis Jazz: just some notes to myself about stuff that needs fixing or editing here or there. I was trying to avoid creating extra pages. Though that's not really the point. I'll just opt out of the entire bot thing, if there's no way to control it more precisely. Nfitz (talk) 01:19, 20 February 2018 (UTC)
By convention, that belongs to your sandbox. Talk pages are for discussions. --Zhuyifei1999 (talk) 01:31, 20 February 2018 (UTC)
@Nfitz: I agree with Zhuyifei1999, in addition to that, you can give it any name you want. For example User:Nfitz/Notepad. You will not be bothered by any bots if you put your notes there. You can either link to it from your talk- or userpage or bookmark it for easy access. Alternatively you could put your notes directly on your user page at User:Nfitz. It's not entirely conventional, but there is no rule against it and here as well no bots will be bothering you. Your talk page should be available for talk. - Alexis Jazz 01:45, 20 February 2018 (UTC)
@Alexis Jazz: I could put it many, many places. I have no idea, why it's a discussion topic. I also don't know why you are saying my talk page should be available for talk. It is. There is nothing stopping that. The real issue, is that the bot should have more discrete controls. Either way - nothing left to discuss. I'll simply opt out - which is unfortunate for when I do forget to sign elsewhere ...      
That block of outcommented text can make people think (certainly made me doubt) they shouldn't edit the page because they may break something you are working on. And your talk page is the only one for which you automatically get notifications. You could keep your notepad completely unhindered at User:Nfitz or a page like User:Nfitz/Notepad, yet you choose for no obvious reason to keep your notepad on your talk page. If you insist for no good reason to keep your notepad on your talk page, fine. But don't expect other people to adjust their systems to a quirk of yours. They just might if you ask nicely, but if they don't it's not their fault. - Alexis Jazz 20:03, 20 February 2018 (UTC)
All very interesting - but not relevant to this particular discussion. There's a million reasons that one might want to suspend signatures on a particular talk page. Nothing more need to say. I've advised the errant bot owner of the deficiencies. He doesn't give a darn. I've disabled using other techniques. Move on.Nfitz (talk) 01:33, 25 February 2018 (UTC)
Indeed. I'm not gonna 'give a darn' for minor use cases, especially that do not conform to the standard. --Zhuyifei1999 (talk) 02:23, 25 February 2018 (UTC)
I'm not disagreeing with you; maybe I'll get bored enough one day to add it myself. But given it's February, and I'm thinking of planting the garden now, instead of may, I don't think my hell is freezing over anytime soon! Nfitz (talk) 23:34, 25 February 2018 (UTC)
How would one even see the block of unedited text - you hit "Add topic" and you don't see anything that might make you wonder ... - and if someone wants to read, it's all in a text block, with a clear explanation at the top. Anwway to remove you concerns, I've changed the block slightly, so it's presence is even hard to notice without going through the code on the page. (I guess I didn't move on!) Nfitz (talk) 02:02, 25 February 2018 (UTC)
"There's a million reasons that one might want to suspend signatures on a particular talk page." - I can't even think of just one. - Alexis Jazz 14:47, 25 February 2018 (UTC)
If one comes to mind, perhaps move the discussion to my talk page. :) Nfitz (talk) 23:34, 25 February 2018 (UTC)

19:52, 26 February 2018 (UTC)

Hi I am rewriting {{Size}} in Lua. I would like one of the test cases to be in Chinese. Could you check and provide what would be the ideal Chinese localization of some of the phases in Module talk:Size/testcases. I am especially interested in punctuation and spaces. Thanks --Jarekt (talk) 15:30, 28 February 2018 (UTC)

@Jarekt: For, "0.8 × 8 × 80英尺 (24.3 × 243.8 × 2,438.4厘米)", we don't usually add the commas on the thousands when writing Chinese. For "长度:11米; 高度:8米; Width:0.8米; Thickness:11米; 直径:133米", in Simplified Chinese (zh-hans), Width => 宽度, Thickness => 厚度; I'm not too sure about Traditional Chinese (zh-hant). Also, generally we don't use half-width punctuations characters followed by a space, but rather full-width punctuation characters, and spaces are unusual unless some other languages are in the same sentence; see en:Chinese_punctuation#Punctuation_marks --Zhuyifei1999 (talk) 16:09, 28 February 2018 (UTC)
Thanks, I switched to translate wiki translations of punctuation and Wikidata translations stored with properties not items. How does it look now? BTW, commas on the thousands come from mw.language:formatNum. If you think it is incorrect than we would have to file a ticket on phabricator to fix. --Jarekt (talk) 19:55, 28 February 2018 (UTC)
Other than the comma separator, it looks fine to me. Comma separation is not strictly prohibited, but it's usually weird / unusual. In English we increase 'greater' magnitudes by thousands, such that 10000 is 10*1000, ten thousand, but in Chinese we increase by then thousands, so 10000 is called 万, and 100000 is called 十万, 十 meaning ten. 100*10000 = 百万 (百 = hundred) = 1000^2 = million, 10000^2/10 = 千万 (千 = thousand), 10000^2 = 亿, see en:Chinese_numerals#Large_numbers. Having thousand separators make much less sense in Chinese than in English. --Zhuyifei1999 (talk) 20:18, 28 February 2018 (UTC)
I just filed phabricator:T188541 about other issue with localization of mw.language:formatNum Lua function. According to Module talk:Test/testcases for 4 Chinese variants mw.getLanguage('zh'):formatNum(12345678.9) give "12,345,678.9", it sounds like that is not right so let's file bug report. Are you up for that? --Jarekt (talk) 14:31, 1 March 2018 (UTC)
Since that would affech zhwiki the most, I checked how much zhwiki would be affected. The usage is much more than I had expected. I guess if we need to change the bahavior, zhwiki has to agree first. --Zhuyifei1999 (talk) 16:15, 1 March 2018 (UTC)

Unsigned message

I wonder why signbot didn't sign Revision of Commons:Undeletion requests/Current requests? - Alexis Jazz 18:55, 1 March 2018 (UTC)

Because of 800 editcount threshold. Jim didn't explicitly opt-in. --Zhuyifei1999 (talk) 19:17, 1 March 2018 (UTC)
Interesting. Does the 800 editcount threshold also count minor edits? - Alexis Jazz 20:01, 1 March 2018 (UTC)
Yes --Zhuyifei1999 (talk) 21:27, 1 March 2018 (UTC)

A barnstar for you!

The Technical Barnstar
Your friendly prompt support is so much appreciated! Everlasting thanks my friend! ~riley (talk) 04:08, 4 March 2018 (UTC)

Esa Discusión no es mía

La discusión "Plantillas "by country / by province", et." no es mía.
El código lo reconoce como mía por que la edite al poner <nowiki>'s (por que el lenguaje mal utilizado no permite crear nuevas discusiones de ayuda) — Preceding unsigned comment added by Victor Gibby (talk • contribs) 01:35, 5 March 2018 (UTC)

Victor Gibby (talk) 01:36, 5 March 2018 (UTC)
I see. The bot right now tries to find the last line in which a signature is expected. Unfortunately </nowiki> may be part of a comment, or be the last line of an existing comment, so I cannot simply program it so that 'when the whole line is </nowiki>, it is not a comment'. Maybe it's doable like 'when the whole addition is </nowiki>, it is not a comment', but that's much harder to code :( --Zhuyifei1999 (talk) 05:00, 5 March 2018 (UTC)

17:12, 5 March 2018 (UTC)