User talk:A particle for world to form

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Welcome[edit]

Hello, Facenapalm, and Welcome to Wikipedia!

Welcome to Wikipedia! I hope you enjoy the encyclopedia and want to stay. As a first step, you may wish to read the Introduction.

If you have any questions, feel free to ask me at my talk page – I'm happy to help. Or, you can ask your question at the New contributors' help page.


Here are some more resources to help you as you explore and contribute to the world's largest encyclopedia...

Finding your way around:

Need help?

How you can help:

Additional tips...

Facenapalm, good luck, and have fun.Pharaoh of the Wizards (talk) 11:31, 26 July 2016 (UTC)[reply]

Question for you...[edit]

How did you create User:Facenapalm/Most imported scripts?     — The Transhumanist    20:10, 2 March 2018 (UTC)[reply]

  • @The Transhumanist: hi. Using this script (this version adapted for Russian Wikipedia, I modified it). The results are incorrect right now, and I have an idea, why, but I haven't fix it for now. I can notify you when I do. Facenapalm (talk) 20:19, 2 March 2018 (UTC)[reply]
    • Please do (notify me). I'd very much be interested in seeing updates to that page. By the way, I was hoping it was in JavaScript. (Sigh.) Here are some more questions for you:
      • You know Russian?
      • Where's the English version?
      • What other programming languages do you know?     — The Transhumanist    20:28, 2 March 2018 (UTC)[reply]
        • @The Transhumanist: I'm native russian speaker and I'm the user of Russian Wikipedia, I'm mostly inactive there. This script was written for ruwiki as well, I just decided to launch it for enwiki to test it on bigger wikis and it fails, statistics is incomplete (probably because of lack of apihighlimits right). I can't say I know any program languages, but I know basic syntax of many of them and can google the rest of needed functions, JS included. Why do you asking? I have no plans to write something for enwiki, I just can occasionally port some of my ruwiki bots. Facenapalm (talk) 21:32, 2 March 2018 (UTC)[reply]
          • I was wondering if you could translate the script into English and/or JavaScript. It's useful, even if the output is incomplete.     — The Transhumanist    22:04, 2 March 2018 (UTC)[reply]
  • @The Transhumanist: I have bad news for you: I've figured out why statistics are incomplete, but I have no idea how to fix it. The problem is that CirrusSearch can't find more than 10,000 articles, while there are currently 28,035 userpages with importScript in English Wikipedia. So the statistics you might see isn't a list of most used scripts – it's a list of most used scripts in the sample of 10k (most popular?) userpages. If you're interested, I can once prepare the statistics manually, but I surely will not update it with bot or script.<bt>Possible solution is to get this list from Quarry, but I don't want to write such a complicated script. There are only 1,500 userpages with importScript in ruwiki, so the problem will not be occured for a long time. Facenapalm (talk) 00:10, 22 March 2018 (UTC)[reply]
    • Oh my, there are barely 50 000 userscripts in English Wikipedia. Seems like Quarry isn't a good idea eigher. The only way is to scan dump?.. Facenapalm (talk) 00:33, 22 March 2018 (UTC)[reply]
      • Narrow your query to the common.js and the skin.js pages. That should bring you under the 50K threshhold.     — The Transhumanist    04:52, 22 March 2018 (UTC)[reply]
    • CirrusSearch does find more than 10K, as can be seen by the number at the top right of the screen. "28,035" userpages found having importScript in them. On English Wikipedia, you can look at 5,000 results at a time; so you look at them in 6 parts, and you've seen them all. And if you can look at them all, so can a script. There's your solution for making a list of all the pages with importScript in them. Then, I assume you scrape each page for the names of the scripts each one imports, tallying them as you go. Is that how you do it?     — The Transhumanist    04:52, 22 March 2018 (UTC)[reply]
      • @The Transhumanist: nah, it doesn't, try it yourself: as you set offset greater than 10,000, you'll get "There were no results matching the query"; same for API request. I still can click on "show previous 20" and get "Results 9,981 – 10,000 of 28,038" (of 10,000, in fact). Facenapalm (talk) 09:45, 22 March 2018 (UTC)[reply]
        • I tried it, using &limit=5000. You're right, won't go past the second batch. Damn. Well, there is the database scanner in AWB. But it won't give you the most up-to-date results. And it cuts you off at 30,000 matches. A workaround with the scanner is multiple searches using regex, splitting up the alphabet. I've been doing that to find uncategorized sectional redirects.     — The Transhumanist    11:28, 22 March 2018 (UTC)[reply]
          • AWB scanner definetely can't calculate anything, I'm pretty sure it even can't get the list of "importScript" functions, only the list of pages with it. I can write a special dump scanner for this, but I don't want to. I think scanning dumps is the only valid way to get statistics in enwiki, because it can take several hours to analyze thousands of userpages with bot, so you anyway shouldn't launch it more often than twice a mouth, otherwise it will be kind of DDoS for server. :D
            You can try to implement it by yourself. The general algorithm is: get the list of userscripts with ^[^/]+/(common|vector|cologneblue|minerva|modern|monobook|timeless)\.js$ title and at least one importScript inside (I use search, you may use Quarry or dumps); get its texts; delete //.+|/\*(?:.|\n)*?\*/ from texts; find importScript *\( *([\"'])([^\"'\n]*?)\1(?: *, *[\"']en[\"'])? *\) inside; unify the results you got (delete "user:" prefix, replace spaces with underscores, delete leading/ending underscores, etc); count unique results. Facenapalm (talk) 12:00, 22 March 2018 (UTC)[reply]

I've been tracking how many have my script loaded, using the WP:INSOURCE parameter.

By the way, I'd be honored if you were to try out my script, SearchSuite, and let me know what you think of it.    — The Transhumanist   12:48, 18 April 2018 (UTC)[reply]

In appreciation[edit]

The Special Barnstar
By the authority vested in me by myself it gives me great pleasure to present you with this barnstar in recognition of your creation of the informative and well researched article, Nuclear Gandhi. Thank you. Gog the Mild (talk) 00:05, 11 January 2021 (UTC)[reply]
Thanks! <3 Facenapalm (talk) 01:09, 11 January 2021 (UTC)[reply]

DYK for Nuclear Gandhi[edit]

On 27 January 2021, Did you know was updated with a fact from the article Nuclear Gandhi, which you recently created, substantially expanded, or brought to good article status. The fact was ... that one of the most recognizable video-game glitches, a bug that forced Mahatma Gandhi in Civilization to use nuclear weapons heavily, never actually existed? The nomination discussion and review may be seen at Template:Did you know nominations/Nuclear Gandhi. You are welcome to check how many pageviews the nominated article or articles got while on the front page (here's how, Nuclear Gandhi), and if they received a combined total of at least 416.7 views per hour (ie, 5,000 views in 12 hours or 10,000 in 24), the hook may be added to the statistics page. Finally, if you know of an interesting fact from another recently created article, then please feel free to suggest it on the Did you know talk page.

Cwmhiraeth (talk) 12:02, 27 January 2021 (UTC)[reply]