WP:RETENTION: This editor is willing to lend a helping hand. Just ask.

My Windows installation has been compromised.

Even though my other OS/computer has not been affected, I might not be very much active until the virus is neutralised.

—usernamekiran (talk) 13:16, 8 February 2024 (UTC)
[reply]

Please comment on Talk:Useful idiot

The feedback request service is asking for participation in this request for comment on Talk:Useful idiot. Legobot (talk) 04:29, 3 January 2018 (UTC)[reply]

Is that you DumbBOT?
usernamekiran(talk) 19:59, 3 January 2018 (UTC)[reply]

Parsing database dumps

Hi there! I've being trying to parse a database dump, but I haven't had much luck running it on Toolforge. The tasks keep on getting killed, presumably because they take up too much memory. Here's my code if it helps.
import bz2
from lxml import etree
file_path = 'enwiki-latest-pages-articles.xml.bz2'

tag_count = 0

with bz2.open(file_path, 'rb') as file:
    context = etree.iterparse(file, events=('end',), tag='{http://www.mediawiki.org/xml/export-0.10/}page')
    if tag_count % 1000:
        print(tag_count)
    for _, elem in context:
        tag_count += 1

        elem.clear()

        while elem.getprevious() is not None:
            del elem.getparent()[0]

print("Total page tags:", tag_count)
— Qwerfjkltalk 17:55, 2 November 2023 (UTC)[reply]
@Qwerfjkl: Hi. yes, you are right. The pod gets OOMKilled. It was confusing, not much information was around, and it was pain in the butt. When I was having this (similar) issue, I solved it by loading the xml file in parts, and then breaking the file in chunks based on the closing tags. Only after breaking in chunks, I could process the dump. As soon as I get to the computer, I will upload all the relevant programs to github repository, and will let you know. But that may take 12ish hours from now. —usernamekiran (talk) 18:25, 2 November 2023 (UTC)[reply]
It seems to be split into 27 chunks already (e.g. enwiki-20231101-pages-articles1.xml-p1p41242.bz2), I might try seeing of those work. — Qwerfjkltalk 19:14, 2 November 2023 (UTC)[reply]
@Qwerfjkl: Hi. Sorry, I forgot to mention, we need to unzip the bzip file before processing it to conserve the memory/RAM. The unzip/extraction process takes a lot time though, and the uncompressed file is very big in size, so - on toolforge - it is recommended to delete it after being done with it. But there seems to be something wrong/missing with the way I broke the unzipped xml file into chunks. The results of my next script were not very much accurate. Kindly let me know if there was something wrong with it. Also, please dont mind my rudimentary skills of python. This script also could use better error handling. github repository. —usernamekiran (talk) 12:35, 3 November 2023 (UTC)[reply]
If you look at my code above, I used the streaming decompression library bz2 and lxml for the parsing. So I don't think decompression is necessary. From what I can tell it seems to run okay. — Qwerfjkltalk 14:47, 3 November 2023 (UTC)[reply]
import bz2
from lxml import etree

file_path = 'enwiki-latest-pages-articles.xml.bz2'
tag_count = 0

with bz2.open(file_path, 'rb') as file:
    context = etree.iterparse(file, events=('end',), tag='{http://www.mediawiki.org/xml/export-0.10/}page')

    for _, elem in context:
        tag_count += 1
        elem.clear()

        while elem.getprevious() is not None:
            del elem.getparent()[0]

        if tag_count % 1000 == 0:
            print("Processed", tag_count, "pages")

print("Total page tags:", tag_count)

@Qwerfjkl: —usernamekiran (talk) 15:12, 3 November 2023 (UTC)[reply]

Correct me if I'm wrong, but that seems to essentially be the same as my script. — Qwerfjkltalk 16:29, 3 November 2023 (UTC)[reply]
@Qwerfjkl: yeah you are right. When I first looked at your script, I thought (mistakenly) that something was wrong wrong with the counting method. So I pasted your script in windows notepad, and then got busy in IRL, when I came back I started to edit your script. In short, there is no issue with your script. Sorry about the muck-up. Did you try breaking the original/unzipped xml file into smaller xml files, and then parsing these files? "etree.iterparse" wouldnt consume much memory, and the script is also removing the processed element(s) from memory, I am not sure why this might be failing. are you sure it is OOMKilled? what do the .err/.out files say? Maybe lxml dependency was not installed on your toolforge correctly? —usernamekiran (talk) 16:53, 3 November 2023 (UTC)[reply]
When running the script it literally just errors "Killed." Nothing in the script actually runs afaict, or at least, none of the print statements are executed and outputed. — Qwerfjkltalk 17:10, 3 November 2023 (UTC)[reply]
┌───────────────────────────┘
So you suggest creating 2300 json files? — Qwerfjkltalk 15:06, 21 November 2023 (UTC)[reply]
@Qwerfjkl: yes. If you want/need, then at the end of the script, or through another script you can combine all these files together, and delete the ~2400 files. —usernamekiran (talk) 16:23, 21 November 2023 (UTC)[reply]
But surely reading those files for usage would just overload the memory, especially if combined? — Qwerfjkltalk 16:36, 21 November 2023 (UTC)[reply]
@Qwerfjkl: not much, by my estimation, the complete operation of merging the files would need around 550 MiB. —usernamekiran (talk) 20:40, 21 November 2023 (UTC)[reply]
I see, I'll try that. My question is, I suppose, if we can load it by reading json files, why can't we store it by reading xml dumps? — Qwerfjkltalk 21:24, 21 November 2023 (UTC)[reply]
@Qwerfjkl: it is related to memory accumulation, and python's garbage collector. and we will be using streaming approach to merge the files, which should be memory efficient. I cant be 100% sure though. I have started a test run on toolforge a few minutes ago, lets see how it goes (so far, the program is using around 40Mi). As I was not sure why do you need the data, and I had to make some minor changes in the script, the output would be in txt files, in following format:
'Anarchism',
'Albedo',
'A',

and

'AccessibleComputing': 'Computer accessibility',
'AfghanistanHistory': 'History of Afghanistan',
'AfghanistanGeography': 'Geography of Afghanistan',

I hope that format is okay for you. —usernamekiran (talk) 12:52, 22 November 2023 (UTC)[reply]

All I need is, for a given page title, to check whether it exists, and if it does, is it a redirect (and if so what is the redirect target). — Qwerfjkltalk 15:29, 22 November 2023 (UTC)[reply]
@Qwerfjkl: the script finished successfully with created the file for articles with 378 MBs, and files for redirects for 555 MBs. and the highest memory value consumed by the script was 108.4 MiB. —usernamekiran (talk) 18:54, 22 November 2023 (UTC)[reply]
My issue would be when reading the files, especially if they were combined (for my purposes, I think I'll just represent redirects as 'RedirectTitle': 'RedirectTarget' and articles as 'ArticleTitle: '', in the same file). — Qwerfjkltalk 19:36, 22 November 2023 (UTC)[reply]
Okay, I've implemeted this. I have a 2 GB JSON file containing the relevant data, but when I try to load it into memory using JSON.load(file) after about a minute it gets killed. — Qwerfjkltalk 15:52, 29 November 2023 (UTC)[reply]
I'm currently trying storing the data on a SQL database. — Qwerfjkltalk 17:39, 9 December 2023 (UTC)[reply]
@Qwerfjkl: Hi, sorry for the delayed reply, I was feeling a little under the weather. Unfortunately, I do not have any experience with databases, so I cant help you much. What are you trying to achieve, I mean whats your goal/target? Maybe I/we can come-up with some workaround bypassing the use of SQL? —usernamekiran (talk) 10:32, 16 December 2023 (UTC)[reply]
I'm trying to restart the Missing Redir4ects Project. You can see this for an example of the output I'm trying to get. — Qwerfjkltalk 11:31, 16 December 2023 (UTC)[reply]
In case you're interested, I made a website for this at toolforge:missingredirectsproject. — Qwerfjkltalk 18:21, 17 January 2024 (UTC)[reply]
@Qwerfjkl: Hi, thanks for the update, it is appreciated a lot. May I ask how did you manage the previous issues? —usernamekiran (talk) 02:52, 19 January 2024 (UTC)[reply]
Like I said, using a sql database. — Qwerfjkltalk 07:04, 19 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.
TolBot (talk) 21:00, 12 December 2023 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.
TolBot (talk) 21:00, 17 December 2023 (UTC)[reply]

The Signpost: 24 December 2023

Scripts++ Newsletter – Issue 23

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.
TolBot (talk) 21:00, 29 December 2023 (UTC)[reply]

Blocked your bot

Hello. I've blocked your bot as it is doing weird things - at Wikipedia:In the news/Posted/December 2004 the text gets smaller and smaller (and contained a ((delete)) which is how I noticed) but more concerningly at Wikipedia:In the news/Posted/January 2005 it's added a NSFW image. I presume that's vandalism it's importing from elsewhere, but regardless, it doesn't strike me as something a bot should be doing. Happy for anyone to unblock so long as you know what it is doing. SmartSE (talk) 19:09, 30 December 2023 (UTC)[reply]

@Smartse: Hello. I'm currently on mobile, so I'm not sure about the text getting smaller. The vandalism was expected, and I was going to remove it, and clean-up the other formatting issues after 12ish hours from now. In short, the bot is archiving entries of additions, updates, and removals from Template:In the news. Would you kindly unblock the bot? I will repair all the pages in 12 to 14 hours from now. These archive pages are recently created by the bot, and not watched by anyone. —usernamekiran (talk) 19:30, 30 December 2023 (UTC)[reply]
So you knew it was going to do this? That doesn't seem like a great idea. Why aren't you either filtering it as you go, or more sensibly, dumping the output locally and then cleaning it up before posting it. There doesn't seem to be any need for the bot to doing the editing. I'm not going to unblock it if it's going be carry on doing that and you're not around to fix it. SmartSE (talk) 19:45, 30 December 2023 (UTC)[reply]
@Smartse: Not exactly, I was expecting garden variety vandalism, not this type of vandalism. I terminated the program responsible for the archiving task. There is another task ongoing, that's why I'm requesting for the unblock. Also, I had tried the approach for working on the pages locally like you suggested, I will perfect that method, and upload the tidied up pages. —usernamekiran (talk) 19:57, 30 December 2023 (UTC)[reply]
Ok thanks. I will unblock. SmartSE (talk) 21:24, 30 December 2023 (UTC)[reply]
thanks —usernamekiran (talk) 22:08, 30 December 2023 (UTC)[reply]

I came here to post about these syntax errors. I am glad to hear that you are planning to fix them. Most of the newly created pages have errors; some of them have many dozens of them. You can see the error list on each page's Page information page, under "Lint errors". I cleaned up a couple of pages (see this and this), but the bot continues to edit and create pages, so I assume that you have a plan. Feel free to ping me if you have trouble fixing any of the errors. – Jonesey95 (talk) 23:38, 30 December 2023 (UTC)[reply]

discussion ongoing. —usernamekiran (talk) 00:26, 31 December 2023 (UTC)[reply]

Question from NobleChernobyl (19:53, 31 December 2023)

Hi. How do I edit and is there stuff or articles about scp --NobleChernobyl (talk) 19:53, 31 December 2023 (UTC)[reply]

Happy New Year, Usernamekiran!

   Send New Year cheer by adding ((subst:Happy New Year fireworks)) to user talk pages.

thank you very much Chris, it is appreciated a lot. I hope the same for you, and your family. —usernamekiran (talk) 09:21, 1 January 2024 (UTC)[reply]

Administrators' newsletter – January 2024

News and updates for administrators from the past month (December 2023).

Administrator changes

added Clovermoss
readded Dennis Brown
removed

CheckUser changes

added
readded Maxim
removed

Oversighter changes

added
readded Maxim
removed

Arbitration

Miscellaneous


Sent by MediaWiki message delivery (talk) 11:54, 1 January 2024 (UTC)[reply]

Question from Pada1234 (02:01, 4 January 2024)

Anonyme --ANONYME9182 (talk) 02:01, 4 January 2024 (UTC)[reply]

Question from PighooeyTWS (20:24, 4 January 2024)

Hello, mentor!

Bernard Pearson has asked me to update his Wikipedia page. I don't have the text from him yet, but I note there is a label on his page saying it is not written correctly. If you have time, would you take a look at it and help me understand what I need to do to bring the page in line with current Wikipedia policy?

Thanks very much, PighooeyTWS --PighooeyTWS (talk) 20:25, 4 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 20:58, 6 January 2024 (UTC)[reply]

Tech News: 2024-02

MediaWiki message delivery 01:18, 9 January 2024 (UTC)[reply]

Question from Antihrust (17:20, 10 January 2024)

How to bring right suggestion to music portal? Antihrust my nick --Antihrust (talk) 17:20, 10 January 2024 (UTC)[reply]

Antihrust

I wanna bring to Mindz right understandin of Rokada. Numetl,UrbanMetl, Raivik Deicidez, Angrykorr(post/thrash starter), few Boogy variationz. Korn, fear factory, pantera, radiohead, machine head, SOAD, coal chamber, linkin park, bizkity, etc. And few other spheres righten pages. Antihrust (talk) 17:33, 10 January 2024 (UTC)[reply]

Question from SuperFeral (19:58, 10 January 2024)

How do I nominate a fair use file for deletion? I know of a file uploaded as fair use that fails to meet WP:NFCC criteria #1. --SuperFeral (talk) 19:58, 10 January 2024 (UTC)[reply]

Question from Thatdude6996 on Category:Homophobic slurs (00:18, 11 January 2024)

Yo how do I edit the actual words and stuff on this --Thatdude6996 (talk) 00:18, 11 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 21:00, 11 January 2024 (UTC)[reply]

The Signpost: 10 January 2024

Tech News: 2024-03

MediaWiki message delivery 00:11, 16 January 2024 (UTC)[reply]

Question from Led sign boards Hyderabad (07:15, 21 January 2024)

our company is based in hyderabad and i want to publish photos and videos of my company in wikipedia --Led sign boards Hyderabad (talk) 07:15, 21 January 2024 (UTC)[reply]

(by talk reader) @Led sign boards Hyderabad: Cannot be done here per WP:NOTWEBHOST and WP:NOTADVERTISING. Chris Troutman (talk) 17:56, 21 January 2024 (UTC)[reply]

Where can I watch videos?

Videos of famous people Phillysiwe (talk) 14:33, 21 January 2024 (UTC)[reply]

@Phillysiwe: Hi. YouTube is easiest, and best option. —usernamekiran (talk) 15:20, 21 January 2024 (UTC)[reply]

Antihrust

When I was startin write music in 89 y, with nick "UrbanMetl", arizen sea of post/thrash folowers ("huskvarn" "kremator" "crownear" "hellraiser" etc in USSR / "fear factory" "the panther (ger)" "pantera" "downset" "exhorder" etc in usa.). Than, after my "porngrind 94" demoz arizen somekind "new metal" (what Im translate "Numetl" - "korn" "linkin park" "Skin" "limp bizkit" "SOAD" "coal chamber" "machine head" & few stars "sepultura" "radiohead" "static x" "entombed" "slayer" "kreator" "wasp" "fight" "korrozia metalla" "ddt(rus)" - use my ideas. In popular Muzlo I inventen "Raivik Deicidez" in 93y. Seein in inet in 00y- 100+ records from White youth.... That peoplez must pay 500 milliardz 500.000..000.000€ to me (every lohband have now over half milliard bux.. Antihrust (talk) 08:43, 22 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 21:00, 22 January 2024 (UTC)[reply]

Tech News: 2024-04

MediaWiki message delivery 01:02, 23 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 21:00, 23 January 2024 (UTC)[reply]

Question from Pemcil (10:12, 25 January 2024)

How to make a reference? --Pemcil (talk) 10:12, 25 January 2024 (UTC)[reply]

Question from Pemcil (16:01, 25 January 2024)

Hello. Pĺease discard all earlier questions. Thank you. --Pemcil (talk) 16:01, 25 January 2024 (UTC)[reply]

Question from Hasnath96 (10:52, 26 January 2024)

Hello --Hasnath96 (talk) 10:52, 26 January 2024 (UTC)[reply]

Question from Itislikethat (13:45, 26 January 2024)

Hello! Can I ask how do I upload a voice audio file and add it to articles? --Itislikethat (talk) 13:45, 26 January 2024 (UTC)[reply]

(by talk reader) @Itislikethat: Please see Wikipedia:WikiProject Spoken Wikipedia. Chris Troutman (talk) 14:16, 26 January 2024 (UTC)[reply]
Thank you! Itislikethat (talk) 09:47, 27 January 2024 (UTC)[reply]

Notification: Feedback request service is down

Hello, Usernamekiran

You may have noticed that you have not received any messages from the Wikipedia:Feedback request service for over a month. Yapperbot appears to have stopped delivering messages. Until that can be resolved, please watch pages that interest you, such as Wikipedia:Requests for comment/Wikipedia policies and guidelines.

This notification has been sent to you as you are subscribed to the Feedback Request Service. - MediaWiki message delivery (talk) 08:11, 28 January 2024 (UTC)[reply]

Question from Sk Kumar Sharma on Lok Janshakti Party (Ram Vilas) (09:00, 28 January 2024)

Me bhi chirag paswan ke sath judna chahta hu --Sk Kumar Sharma (talk) 09:00, 28 January 2024 (UTC)[reply]

Question from Avarionline69 (21:10, 28 January 2024)

How do I create an article on a mobile device --Avarionline69 (talk) 21:10, 28 January 2024 (UTC)[reply]

Tech News: 2024-05

MediaWiki message delivery 19:29, 29 January 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 21:00, 29 January 2024 (UTC)[reply]

Question from V123456jha (11:35, 30 January 2024)

How do i get started with creating an article about my company Upride Network Private Limited? Its my company and I want an article to be live on Wikipedia. --V123456jha (talk) 11:35, 30 January 2024 (UTC)[reply]

(by talk reader) @V123456jha: That's not possible; Wikipedia is not advertising so you don't get to write an article about your own company. This is an encyclopedia, not MySpace. Chris Troutman (talk) 11:39, 30 January 2024 (UTC)[reply]
Ok
In this case can i write about Driving & Road Safety education in India, and mention all those companies in India(including Upride - https://upride.in ) which are working in this domain? V123456jha (talk) 11:44, 30 January 2024 (UTC)[reply]
@V123456jha: Probably not because the goal of encyclopedia articles is not to tell readers about companies in that field. Our goal is to neutrally summarize the subject. We have an article Driving in India which could use more sources. Instead of attempting a new article, just improve the articles which already exist. Chris Troutman (talk) 13:05, 30 January 2024 (UTC)[reply]

The Signpost: 31 January 2024

Administrators' newsletter – February 2024

News and updates for administrators from the past month (January 2024).

Administrator changes

added
removed

Bureaucrat changes

removed Worm That Turned

CheckUser changes

removed Wugapodes

Interface administrator changes

removed

Guideline and policy news

Technical news

Arbitration

Miscellaneous


Sent by MediaWiki message delivery (talk) 18:01, 1 February 2024 (UTC)[reply]

Question from Unionrecorder (19:13, 3 February 2024)

Can I view my finished edits before I publish them? --Unionrecorder (talk) 19:13, 3 February 2024 (UTC)[reply]

(by talk reader) @Unionrecorder: Please see Help:Show preview. Chris Troutman (talk) 19:25, 3 February 2024 (UTC)[reply]

Question from Aronhymaan (17:18, 4 February 2024)

Hey --Aronhymaan (talk) 17:18, 4 February 2024 (UTC)[reply]

Question from Aronhymaan (17:19, 4 February 2024)

I want to create an article --Aronhymaan (talk) 17:19, 4 February 2024 (UTC)[reply]

Question from ISCorg (06:20, 5 February 2024)

Hi Kiran I want to start a new article on Promoting Racial Harmony across nine (9) subjects. The objective of the writing and posting on wikipedia, is to

1. Educate people 2. Take away ideas from readers 3. Learn how people became bitter and selfish

The objective in everyday life is to raise awareness day by day, week by week, and months into years.

My question to you is, how do I start the article? Many thanks --ISCorg (talk) 06:20, 5 February 2024 (UTC)[reply]

Hi. All of the things you want to do are contrary to Wikipedia's policies and guidelines. Please read Wikipedia:What Wikipedia is not for further guidance. Deb (talk) 09:45, 5 February 2024 (UTC)[reply]

Tech News: 2024-06

MediaWiki message delivery 19:20, 5 February 2024 (UTC)[reply]

Question from MK4ewsbdi (07:53, 8 February 2024)

Hello.. i would like to know how i can change a photo? Can i just upload my own photographed of the celebrity during his fanmeet and change it? --MK4ewsbdi (talk) 07:53, 8 February 2024 (UTC)[reply]

@MK4ewsbdi: Hello. I have posted the Wikipedia's policies related to images to your talkpage. In very short, you should upload images to Wikimedia commons only if you have taken/captured the photograph yourself. In other cases, you wont be the copyright holder − in such cases, the image should be uploaded at Wikipedia:Files for upload. You can get detailed advice from multiple experienced editors at WP:Teahouse. —usernamekiran (talk) 09:00, 8 February 2024 (UTC)[reply]

Notification of administrators without tools

Greetings, Usernamekiran. You are receiving this notification because you've agreed to consider endorsing prospective admin candidates identified by the process outlined at Administrators without tools. Recently, the following editor(s) received this distinction and the associated endearing title:
  • Thank you for supporting this effort. Your contributions are an integral part of overall success, and an example for others to follow.
  • To stop receiving these notifications, remove your name from the list.

TolBot (talk) 21:00, 9 February 2024 (UTC)[reply]