Jump to content

User talk:Anomie: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 208: Line 208:
: As for closing the thread, after the second comment there I decided it was unlikely to gather any constructive discussion and I wanted to prevent a pile-on. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 12:40, 14 September 2013 (UTC)
: As for closing the thread, after the second comment there I decided it was unlikely to gather any constructive discussion and I wanted to prevent a pile-on. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 12:40, 14 September 2013 (UTC)
::I have struck my comment—a procedural no-no but (I hope) a lesser evil than leaving it in place. Thank you for your measured reply. [[User:Rivertorch|Rivertorch]] ([[User talk:Rivertorch|talk]]) 05:34, 15 September 2013 (UTC)
::I have struck my comment—a procedural no-no but (I hope) a lesser evil than leaving it in place. Thank you for your measured reply. [[User:Rivertorch|Rivertorch]] ([[User talk:Rivertorch|talk]]) 05:34, 15 September 2013 (UTC)

== The Progressive Barnstar ==

{{The Progressive Barnstar|1=I couldn't find a [[WP:BARNSTAR|barnstar]] that would adequately thank those involved in making [[Wikipedia:Requests for comment/Template editor user right|the template editor user right RFC]] a reality, so I created this new one. The Progressive Barnstar recognizes those courageous enough to work towards a vision for change at Wikipedia.<br />'''Anomie''', thank you for your insights into the technical feasibility of this proposal. I consider it a success at this point, no matter what the eventual outcome, and I thank you. <font style="font:Futura;text-shadow:0px 0px 3px #999">[[User:Equazcion|<span style="color:#009;">equazcion</span>]] <span style="font-size:75%">[[User talk:Equazcion|<sup>(<span style="color:#007BA7">talk</span>)</sup>]]</small> 06:28, 18 Sep 2013 (UTC)</font>}}

Revision as of 06:28, 18 September 2013

Question about a script

Greetings Anomie. I hope you don't mind me asking but I am having trouble with a script I am trying to make and I was hoping you might be willing to help me. The script is at User:KumiokoCleanStart/SimpleWPTab.js. Basically its a tab that links to Simple Wikipedia. The intention is if the page exists it will be blue and if its red it doesn't exist in Simple yet. I realize this isn't a perfect matchup because some of the titles are different but its easier than trying to search through the interwiki links. Anyway, I can't seem to make it turn red when there isn't a corresponding page. I'm starting to think it might not be possible. Any insight you can provide would be greatly appreciated. Kumioko (talk) 00:55, 24 June 2013 (UTC)[reply]

You're running into browser restrictions on cross-site requests, see mw:API:Cross-site requests. In this case, the jsonp method should be sufficient. Also, you should be using json output anyway rather than taking XML and then trying to pretend it is HTML, and if you were to continue using XML you should use jQuery.parseXML to do it properly. Also, a cleaner way to add a link to the sidebar is to use mw.util.addPortletLink. Anomie 10:56, 24 June 2013 (UTC)[reply]
Thank you very much for the help. I'll take a look at those. I'm not the greatest programmer so it might take me a little time to decipher and fix. Kumioko (talk) 13:12, 24 June 2013 (UTC)[reply]

10.111.0.0/16

Hi Anomie,

There have been several recent unblock requests from anon users that did not appear to be blocked. The latest unblock messages say that their XFF address had been blocked by you. Since the addresses are private, unroutable address, I have unblocked the range to mitigate the collateral. If you think I've made a mistake, certainly let me know about it. Cheers ​—DoRD (talk)​ 20:57, 24 June 2013 (UTC)[reply]

Ahh...now that I have read WT:BOTPOL, I see that the /8 has been blocked. Please see this unblock request to see what I'm looking at. Interestingly enough, CU doesn't show an XFF address for the user. ​—DoRD (talk)​ 21:01, 24 June 2013 (UTC)[reply]

I'm unblocking the whole range, at least for now. Apparently if the user's ISP's proxy includes an XFF header with the ISP's use of 10.0.0.0/8, the block will pick that up. Ugh. Anomie 21:45, 24 June 2013 (UTC)[reply]
Yes, the devs recently turned XFF blocking on for enwiki, so if whatever comes through in the XFF header is blocked, the user is effectively blocked. Thanks ​—DoRD (talk)​ 00:21, 25 June 2013 (UTC)[reply]

Thanks. See User talk:82.132.213.150. That seems to have worked.

Is it routine to checkuser innocent IPs asking to be unblocked? You've got my IP already - what more are you hoping to discover? I'm not sure I will bother making that edit after all. — Preceding unsigned comment added by 82.132.234.244 (talk) 07:03, 25 June 2013 (UTC)[reply]

mw undocumented feature

The Scribunto manual documents mw.language.getContentLanguage, but I accidentally discovered that "language" is not needed. From a debug window:

=mw.language.getContentLanguage():formatNum(123456.78)
123,456.78
=mw.getContentLanguage():formatNum(123456.78)
123,456.78

I mention that in case it is significant (have I missed something?).

By the way, Module:Convert has stalled for a couple of weeks while I try to support non-English wikis. I won't be able to use any of the mw functions for that because input has to be parsed to determine what precision was given (for example, "123.45" has two digits after the decimal mark), and output has to be formatted according to the options in the convert template (for example, by specifying the number of significant figures). Nearly done, I hope! Johnuniq (talk) 05:12, 2 July 2013 (UTC)[reply]

It's mentioned at mw:Extension:Scribunto/Lua reference manual#mw.language.getContentLanguage, but not drawn attention to. Anomie 11:10, 2 July 2013 (UTC)[reply]
Ouch, don't know how I missed that. Thanks. Johnuniq (talk) 00:26, 3 July 2013 (UTC)[reply]

I just dumped my new code on bn.wikipedia, and it has a couple of bugs which I thought I should share. One I'll have to investigate later, but the other is because mw.ustring behaves differently from string.sub:

  • string.sub('abc', 1, 0) → '' (empty string)
  • mw.ustring.sub('abc', 1, 0) → 'a'

There is a good reason my code is using this feature of Lua, but I'll do it another way. However, you might like to tweak ustring.sub or update its documentation.

Another slight difference I bumped into is that tonumber(z) is nil if z is nil, but mw.language.getContentLanguage():parseFormattedNumber(z) is a runtime error.

In case you're wondering, I am aware that Module:Convert should be entered in Scribunto's version of the "Worst Abuse of the C preprocessor" competition, but Scribunto seems to keep working despite what I pile on. Johnuniq (talk) 12:48, 3 July 2013 (UTC)[reply]

The ustring issue sounds like a bug to me, ustring.sub and string.sub should work the same way for something like that. I'll have a look at the other, too; I'm not sure offhand whether the error is appropriate or not. Anomie 12:51, 3 July 2013 (UTC)[reply]
I've submitted patches gerrit:71816 and gerrit:71820 to fix these issues. BJorsch (WMF) (talk) 16:06, 3 July 2013 (UTC)[reply]

Thanks for fixing the above. The second bug I mentioned is due to a problem using mw.ustring.gsub(s, '%d', t) where t is a table that should convert each Bengali digit (bn) in s to an en digit. If t is accessed from another module via require, it works. However, using mw.loadData causes the gsub to fail to find anything. Table t is in a nested table, so that makes it a bit more interesting (I have not tested the simpler case of t just being a table on its own; I'll do that if you don't feel like the pain of wading through the more complex code I'm using).

Testing shows that the table t is correct because displaying the contents of the table shows it is the same regardless of whether require or loadData is used. However, gsub works in one case, and fails in the other. My guess is that something that ustring.gsub does is being rejected by the mw.loadData dataWrapper(), and gsub then silently fails. Perhaps the PHP code writes to a field in the table?

A system to demonstrate the issue is at bn:User:Johnuniq/sandbox (it's at bn.wikipedia because that's where I am currently working, but I think the code would behave the same anywhere). When editing bn:Module:Convert/sandbox you can do the equivalent of the invoke lines as in these examples:

=p.translate('TEST', 'require')
=p.translate('TEST', 'load')
=p.translate('SHOW', 'load')

Johnuniq (talk) 11:05, 4 July 2013 (UTC)[reply]

Hmm, that is an issue. I'll try to have a look at it sometime soon. Anomie 13:37, 4 July 2013 (UTC)[reply]

Thanks!

Thanks for keeping an eye on my talk page :) Hope all is well. Is AnomieBOT's CHUUCloser opt-in thingee malfunctioning? It didn't seem to want to sign for me earlier. If it's a pain to fix, don't worry about it too much, given we are in the twilight hours of renaming. –xenotalk 21:43, 7 July 2013 (UTC)[reply]

Looks like gerrit:5288 changed the format of the log entries, so the bot wasn't finding the renamed-to name to be able to match it up with the CHUU page.  Fixed Anomie 02:09, 8 July 2013 (UTC)[reply]
Most excellent. –xenotalk 18:16, 8 July 2013 (UTC)[reply]

User:Anomie/Sandbox5

Unauthorized bot running under a user account? Or just a user not paying a whit of attention to what he is doing?
Been feelin' a lot like a bot, lately. I just categorized over 350 redirects that target the Main Page, some of them User pages and subpages. If I got outta hand, I apologize. – Paine Ellsworth CLIMAX! 03:26, 10 July 2013 (UTC)[reply]

Please try to pay more attention to the pages you're editing, to avoid silly things like tagging random user sandbox pages as "redirects from shortcuts" ;) Anomie 03:30, 10 July 2013 (UTC)[reply]
Roger, wilco. Joys! – Paine Ellsworth CLIMAX! 03:40, 10 July 2013 (UTC)[reply]
(talk page stalker) Some years ago, I worked in a software company where "JOYS" was a commonly-occurring constant string in the source code. Why? we wrote software that worked in several languages; when prompted with a yes/no question, users could respond in the affirmative by typing the first letter for any of Ja/Oui/Yes/Si regardless of their own language setting. --Redrose64 (talk) 14:19, 10 July 2013 (UTC)[reply]
So effectively, I wrote "Roger, wilco, yes yes yes yes". Did I sound too eager? ;-) – Paine Ellsworth CLIMAX! 21:06, 10 July 2013 (UTC)[reply]

GAR notification

Calvin and Hobbes, an article that you or your project may be interested in, has been nominated for an individual good article reassessment. If you are interested in the discussion, please participate by adding your comments to the reassessment page. If concerns are not addressed during the review period, the good article status may be removed from the article. — Preceding unsigned comment added by Interlude65 (talkcontribs) 03:29, 14 July 2013 (UTC)[reply]

Infobox floorball club

it seems that the TfD decision at Wikipedia:Templates_for_discussion/Log/2012 March 25#Template:Infobox floorball club, to merge and redirect, was never enacted. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:09, 14 July 2013 (UTC)[reply]

{{sofixit}}. There's only 24 mainspace transclusions, so it shouldn't take you too long. Anomie 14:39, 14 July 2013 (UTC)[reply]

National colours of Australia

Hi. As you can see from looking at the edit history I just rejigged the sentences in the paragraph to make it read better and the left the content unchanged. Good point it would be good to know who - I'll add it in if I find something. --PinkAechFas (talk) 21:37, 17 July 2013 (UTC)[reply]

Invitation to join a discussion

Through this way, I inform there is a discussion about partially disambiguated titles, known as "PDABs". This subguide of WP:D was approved at VPP, in a discussion you participated. Note there was a discussion of PDAB at WT:D the last weeks (everything is explained in the RFC). You are welcome to give ideas about the future of this guideline at WT:D. Tbhotch. Grammatically incorrect? Correct it! See terms and conditions. 05:36, 24 July 2013 (UTC)[reply]

Why has your bot blocked me?

It's not clear to me what my "disruptive edits" were? Please explain in enough detail that I know what the problem is. Newjerseyliz (talk) 18:31, 27 July 2013 (UTC)[reply]

In my Talk Page contributions, it says you put a block on my page. Coincidentally, at the same time, another user put a { block } tag on my Talk Page. It's not clear to me whether I was ever blocked by you but the edit summary says I was. Newjerseyliz (talk) 19:03, 27 July 2013 (UTC)[reply]
Bots do not block users. Anomie (talk · contribs) might block a user on occasion, but only with good reason, and always leaves an explanation. What actually happened is that Nopole64 (talk · contribs) added a {{block}} (which itself was out of order, since that user does not have the power to block), but {{block}} is designed to be substituted, so AnomieBOT (talk · contribs) (which is tasked with tidying up such mistakes) changed the {{block}} to a {{subst:block}}, and that action expanded the template to its underlying code. --Redrose64 (talk) 20:03, 27 July 2013 (UTC)[reply]
I appreciate the explanation, thank you very much, Redrose64! Newjerseyliz (talk) 09:23, 28 July 2013 (UTC)[reply]

Module pages and tab characters

This is to report a minor issue when saving a module that contains tab characters—the first tab is sometimes changed to four spaces. It is not a problem and doesn't worry me, but I thought I should let you know in case you run out of things to do! The gargantuan Module:Convert/data is generated by running a script on my computer. It reads data from a file, and outputs the Lua script needed for the module. The output uses tab characters to reduce the size of the file. To change the module page, I run my script, copy its output in a text editor (Ctrl-A, Ctrl-C), then do Ctrl-A, Ctrl-V in the module edit page. Over an extended period (months, I think) I have noticed that sometimes the first tab is converted to four spaces. I see that because I occasionally use wget to download the wikitext of the convert pages, so I can remind myself what differences my local files have. I just noticed it again, at bn: where I am currently working: diff (edit 31 July 2013). If you felt like having a look at the Bengali wiki, links to the modules are here, however I have seen the same thing at en.wiki, although not for a while. One complication is that I usually have scripting disabled in my browser, but sometimes it is enabled. I'm pretty sure I have seen the first tab get changed to four spaces with scripting disabled; not sure about enabled. Johnuniq (talk) 03:40, 2 August 2013 (UTC)[reply]

I'd expect the opposite, that the first tab would get changed to four spaces when you paste into CodeEditor (which would require JavaScript be enabled). The best thing to do here would be to figure out exactly how to reproduce it and then file a bug about it so it's less likely to be forgotten. Anomie 10:22, 2 August 2013 (UTC)[reply]
I haven't been able to reproduce it, but you're saying it would happen with scripting enabled, so maybe I did have it enabled on the occasions that it has happened. I might play at test2. Thanks. Johnuniq (talk) 11:05, 2 August 2013 (UTC)[reply]

Thank you

For helpful comments here. --Piotr Konieczny aka Prokonsul Piotrus| reply here 11:06, 12 August 2013 (UTC)[reply]

Debian and Coding

Hi, you've made some excellent scripts, may I ask, where did you learn to code?.


Is in your opinion Debian a good operating System? <-- feel free to ping me! --> Original Authority (talk) 18:12, 16 August 2013 (UTC)[reply]

My JavaScript is self-taught. I prefer Debian above any other distro I've tried, although for Linux newbies something like Ubuntu might have an easier learning curve (or at least more forums to ask for distro-specific help). Anomie 21:01, 16 August 2013 (UTC)[reply]
Self taught? you obviously used resources? Original Authority (talk) 22:53, 16 August 2013 (UTC)[reply]
Probably. No idea which ones, if they even exist anymore. Anomie 22:56, 16 August 2013 (UTC)[reply]

Super NES article question.

Hey Anomie. I hope you're enjoying your vacation right now, and I hope you won't get this until you return ^^. I was wondering about your opinion on CaseyPenk's total restructuring of the SNES article. I wasn't sure about it, since it was a featured article and the changes were so drastic. I didn't want to just revert them without a discussion, but it seems like many of the Wiki'ers from the past are gone, and no one has responded to my talk page question.--SexyKick 22:29, 16 August 2013 (UTC)[reply]

Just looked. Haven't read it in depth to see if the reorganization of what's left makes sense, although at a glance I'm skeptical that it still flows. I really don't care for having a "hardware" subarticle, that's just begging some deletionist to come along and claim the subtopic doesn't meet WP:N and then we lose it entirely, which would be a shame considering how much of the 16-bit console war was posturing about hardware capabilites. Anomie 01:14, 17 August 2013 (UTC)[reply]

A kitten for you!

Thank you for your BOT doing good work!

Mad phil84 (talk) 13:34, 22 August 2013 (UTC)[reply]

I came here to say the same. Your AnomieBOT just corrected a stupid mistake I made when I accidentally deleted the primary citation for a reference. Thanks for creating this, it's a great service. --MelanieN (talk) 14:54, 22 August 2013 (UTC)[reply]

User:Anomie/previewtemplatelastmod.js

Hi, User:Anomie/previewtemplatelastmod.js no longer works in MonoBook skin. Is there any possibility of fixing it? --Redrose64 (talk) 21:16, 29 August 2013 (UTC)[reply]

It's working for me, I use Monobook (and FireFox 24.0, currently). Note you have to open the collapsing box to see the template list now. Are you getting any JS errors? Anomie 10:32, 30 August 2013 (UTC)[reply]
It's working now that I've found out how to avoid forced https. (btw: MonoBook, Firefox 23.0.1) --Redrose64 (talk) 17:33, 30 August 2013 (UTC)[reply]
I've used HTTPS Everywhere ever since I passed RfA, and it has always worked fine for me. Error messages would be helpful to try to actually fix whatever the problem is instead of just avoiding it. Anomie 19:33, 30 August 2013 (UTC)[reply]
I didn't see any error messages. I knew that it wasn't working because the "Pages transcluded onto the current version of this page:" list, after expansion, was displayed exactly the same as it does when previewtemplatelastmod.js is not enabled: alphabetic by namespace & page name, each entry consisting of page name, edit link, prot level. --Redrose64 (talk) 23:02, 30 August 2013 (UTC)[reply]

PUF closer in one edit?

Hey Anomie, would it be possible to have the PUF closer try and close all the discussions that it can on a page in one edit? Right now I get quite a few echo notifications every time I delete a file :P If it's possible, that would be great. Thanks, Legoktm (talk) 07:16, 30 August 2013 (UTC)[reply]

It does already: it runs once per hour, and closes anything that was deleted more than an hour ago. So unless you take a long time to delete things or you get unlucky and delete some files just before the bot's "hour" and some just after, it should already be one edit.
For example, this morning AnomieBOT closed 4 discussions in one edit on Wikipedia:Possibly unfree files/2013 August 6 and 3 in one edit on Wikipedia:Possibly unfree files/2013 August 7. It would be nice if they'd fix Template:Bug though. Anomie 10:42, 30 August 2013 (UTC)[reply]
My bad, you're right. Seems like its a bug in echo since I got a notification for each mention, even though they were in the same edit... Legoktm (talk) 21:11, 30 August 2013 (UTC)[reply]
Filed as bugzilla:53607. Legoktm (talk) 22:43, 30 August 2013 (UTC)[reply]

A barnstar for you!

The Barnstar of Good Humor
Awesome!!!!!!!!!!!!!!!!!!!!!!!! Automaniac14th (talk) 00:36, 4 September 2013 (UTC)[reply]

Albert Coons

I am the author of the above-cited article. Your bot recently inserted a statement that a section of the piece was unreferenced, whereas it does contain several references and always has done so. I do not think the bot label is warranted.

Thanks.Mrwick1 (talk) 17:04, 7 September 2013 (UTC)[reply]

@Mrwick1: Comments belong on user talk pages, not user pages.
If you look closely at AnomieBOT's edit, you'll see that all the bot did was add |date=September 2013 to the tags that were added by 70.134.228.107 (talk · contribs) in the previous edit. You'll want to talk to that person about it. Anomie 18:03, 7 September 2013 (UTC)[reply]

AnomieBOT appears to have stopped editing

Hi Brad - hope you're doing well. Just letting you know that AnomieBOT seems to have stopped editing as of about an hour ago. Any idea what the problem is? — Mr. Stradivarius ♪ talk ♪ 13:41, 10 September 2013 (UTC)[reply]

It appears that all of Tool Labs is down; there is mention on the mailing list that NFS is having trouble of some sort. Anomie 13:52, 10 September 2013 (UTC)[reply]

Of timelines and admonishments

True enough, o wise master of my second-favorite bot, and the general thrust of your closing comment is well taken. I must say I found the wording you used a little disproportionate, however. Last I checked, admonishment is the sort of thing that Arbcom does to habitual problem users they're not quite ready to ban, not the routine response of one longterm editor to another after an atypical misstep. My reply to the IP was intended only to be gently ironic, and I'm dismayed that it may have come across as bitey or belittling. I don't believe anyone has ever suggested that about anything I've written on a talk page before, so either my judgment has suddenly gone south and I need to apologize (hard to do now that you've closed the thread) and take a wikibreak or else you're reading into my words a tone and/or an intent that wasn't there. I wish I knew which it was. In either case, you may be assured that I regret letting my perfect façade down and being all too human, if only momentarily. I'll certainly think twice next time. Rivertorch (talk) 04:32, 14 September 2013 (UTC)[reply]

I'm sorry if I read into your comment something that wasn't there, and for using the word "admonish" in the sense of its general English definition without considering the specialized definition used on-wiki at ArbCom which was not my intention at all. I've made plenty of ill-considered comments in my time too (and I'm sure I will again, as hard as I try). I do think you came across harsher than you intended there, though.
As for closing the thread, after the second comment there I decided it was unlikely to gather any constructive discussion and I wanted to prevent a pile-on. Anomie 12:40, 14 September 2013 (UTC)[reply]
I have struck my comment—a procedural no-no but (I hope) a lesser evil than leaving it in place. Thank you for your measured reply. Rivertorch (talk) 05:34, 15 September 2013 (UTC)[reply]

The Progressive Barnstar

The Progressive Barnstar
I couldn't find a barnstar that would adequately thank those involved in making the template editor user right RFC a reality, so I created this new one. The Progressive Barnstar recognizes those courageous enough to work towards a vision for change at Wikipedia.
Anomie, thank you for your insights into the technical feasibility of this proposal. I consider it a success at this point, no matter what the eventual outcome, and I thank you. equazcion (talk) 06:28, 18 Sep 2013 (UTC)