Wikipedia:Village pump (technical)/Archive M#Cursor in search box

{{Wikipedia:Village pump/Archive header}}

Deleting an account

I saw a "how to" help headline on the subject of deleting a Wikipedia account, but I got disconnected from the page and now I can not find the topic anywhere. Please help me by letting me know how to delete my Wikipedia account or telling me where I can find the information. Thank you.

:Wikipedia accounts cannot be deleted: this is a function of how Mediawiki works, and is intended to make it impossible for edits to be "orphaned". (It's a pain and a pest because there are heaps of bogus accounts which litter Special:ListUsers like a plague, but you have to take the rough with the smooth…) You can have your user page deleted and locked down, but that's as far as you can go. Sorry. HTH HAND —Phil | Talk 09:45, 13 January 2006 (UTC)

SVG files, borders and skins

Hi we're having a problem on Flag of Australia where SVG images in a appear to have borders in the Classic Skin but not in Monobook. Is there a way to have the borders appear in both skins? Or can anyone offer advice on how to force borders to appear in a gallery?--nixie 03:00, 13 January 2006 (UTC)

Redirect are acting weird

All redirects I am encountering are going straight to the 'no-redirect' version. --hello, i'm a member | talk to me! 00:50, 13 January 2006 (UTC)

:Redirects aren't working for me either :( - Hahnchen 00:58, 13 January 2006 (UTC)

::Confirming. Developers made a booboo! — Ambush Commander(Talk) 00:58, 13 January 2006 (UTC)

:::Same problem here, on both Firefox and IE. Dave6 00:59, 13 January 2006 (UTC)

:::::Problem is totally not browser related. Redirects are handled internally, not through HTTP status codes. — Ambush Commander(Talk) 01:02, 13 January 2006 (UTC)

::::Indeed, it's rather annoying. I guess I do get to realize just how many of the pages I visit are redirects. --Spring Rubber 01:00, 13 January 2006 (UTC)

:Appears to be fixed. Thanks for the fast response, developers! --Spring Rubber 01:17, 13 January 2006 (UTC)

Red or Blue (or brown)

I've had a quick look through the source code documentation, (and a quicker look through the source code), to try and find out how Wikimedia gets the size of an article to decide whether it is blue, brown (stub), or red.

I'm moving my personal wiki to a MySQL database, but my red/blue decider is much much slower than when i used files. At the moment i am using a query like this:

SELECT LENGTH(`articletext`) FROM `articles` WHERE `title`=\"Page i'm looking up\""

And i'm doing this for every link in a page. Red (if no result), empty colour (also red) if the len is <4, or blue (length > or = 4). This is very slow, for a page with 1000 links, it is ten times slower than grabbing the filesize from a flat text file. (5 sec vs. 0.5 sec)

I was thinking of adding another column to the table, with a static length in it (saved at page save). I thought this would save mysql the calcution for every link that the user sees. Wikipedia doesn't seem to have a length field in the cur table, so I was wondering how it does this.

Thanks a lot,

Tristan Tristanb 23:05, 12 January 2006 (UTC)

:Actually we do have a page_len field. This is needed because our text storage is flexible, and may include compressed or offsite text storage. --Brion 00:21, 13 January 2006 (UTC)

Oh, thanks for that. I was looking at the 1.4 information on meta and couldn't find it. I've seen the table now on the cvs.

Tried adding the new field containing the size of the article in bytes, but it takes just as long as calculating length at runtime. I think i'll have to try loading everything into an array, and reading from that to minimise the number of SELECT statements I make. (Or just cope with it :-D).

Thanks again for your help! Tristanb 03:37, 13 January 2006 (UTC)

Table that autosorts

Not sure if this was asked before. It would be great if we could create tables of information that auto-sort on a mentioned column. Can it be programmed in the software so that when the page gets loaded it will always sort the list and load it? Would be very useful when maintaining lists. - GaneshkT/C\@ 22:51, 11 January 2006 (UTC)

: I don't believe that's the case, but in terms of adding and removing entries when maintaining a list, if the list is already sorted, it is trivial to keep it sorted. enochlau (talk) 04:27, 13 January 2006 (UTC)

: I'm sure I've seen somewhere some javascript which will sort a table in place: you have to couple it with some other stuff which places sort "buttons" in the headers, but I don't seem to recall it's too onerous. [http://www.brainjar.com/dhtml/tablesort/default.asp This] looks like a good place to start; [http://www.romankoch.ch/capslock/tablesort.htm here's] another. I found a bunch via Clusty [http://clusty.com/search?query=javascript+table+sort]. Besides, if it's javascript, it's all client-side anyways, so won't place any discernable extra strain on the servers. HTH HAND —Phil | Talk 09:40, 13 January 2006 (UTC)

Edit in place

Wouldn't it be handy if the Media-Wiki software implemented [http://24ways.org/advent/edit-in-place-with-ajax edit-in-place]? Instead of looking for an edit button, one could just click a paragraph and extend it. Especially useful for correcting spelling errors. If the implementation is done cleanly, I think this could mean a decline in server load (no need to brew entire edit-pages)--Joris Gillis 10:50, 10 January 2006 (UTC)

:It would probably mean an increase in the server load, if it meant saving more often (all saves must go to the master database host, while reads can come from the slave database hosts). --cesarb 15:07, 10 January 2006 (UTC)

::I meant that, for an equal amount of changes, the edit-in-place technique would require less resources. Of course, the edit-in-place would stimulate all users to do changes more often. But I don't think that's a disadvantage;-)--Joris Gillis 15:21, 10 January 2006 (UTC)

::If it was a javascript function, it would probably reduce the server load. Shardsofmetal 18:53, 10 January 2006 (UTC)

:::As I understand it, the server performance is mostly database-limited, so I don't think it would make much difference. Some, maybe, but nothing dramatic. —Ilmari Karonen (talk) 19:36, 10 January 2006 (UTC)

:Ok, apart from the server impact, is there no-one that likes the idea? Suppose you would just double-click a paragraph, and the paragraph transforms in an edit-box. No need to wait for the edit page to load. Just stay in the article and do your edit quickly. [http://24ways.org/examples/edit-in-place-with-ajax/ Demo]: click the paragraph.--Joris Gillis 19:49, 10 January 2006 (UTC)

::It's probably more like "the current way works fine, and nobody can be bothered to implement it; the developers already have their hands full". If, OTOH, someone made a working demo using only your user javascript and user CSS, and other people started using it, it would have more chance. --cesarb 21:21, 10 January 2006 (UTC)

:::This isn't a new idea, there's been discussion and even a few implementations over the last few years. It's generally thought to be a useful extension to wiki principles. Indeed, Ward Cunningham has said that he would have made wiki WYSIWYG from the start if he was able to. The main problem is round-trip HTML<->wikitext conversion. We can convert wikitext to HTML, there are plenty of WYSIWYG HTML editors around, but there is no way to convert the resulting HTML back to wikitext. -- Tim Starling 01:31, 11 January 2006 (UTC)

::::Ignoring server-load issues, you could set things up so that the wikitext for each paragraph was sent with the paragraph, as a hidden div or something like that. Templates would need careful handling though... Lupin|talk|popups 02:22, 13 January 2006 (UTC)

Wikipedia has a problem

Does anyone know what's up? I just got a string of these with and error unkown message. It said svr 3(2,3, or 4). Is this a server problem? WAvegetarian (talk) (email) (contribs) 19:22, 9 January 2006 (UTC)

:Yes. It means (as the message should be saying) that it could not reach the database server. --cesarb 19:27, 9 January 2006 (UTC)

:http://www.thewritingpot.com/wikistatus/ --Adrian Buehlmann 19:32, 9 January 2006 (UTC)

  • Well, I don't know what is going on with Wikipedia but my user page Chef Clover doesn't show the user box pictures. And when I right click the picture, and then click show picture, and it wouldn't show the picture, no matter how many times i tried this! Does this have something to do with hackers or cookies or whatever? Please speak in normal English! Chef Clover 04:01, 13 January 2006 (UTC)

:This appears to have been a temporary issue which is now resolved by the looks of it. Rob Church (talk) 15:31, 13 January 2006 (UTC)

::Okay. Great! Thank you! Chef Clover 22:02, 13 January 2006 (UTC)

Using CVS

I read the page on meta about using CVS to download the most current MediaWiki version, but I did not understand. Can anybody simplify this for me. Thanks, Shardsofmetal 08:50, 8 January 2006 (UTC)

: Is there a specific part you need clarification on? --TheParanoidOne 12:01, 8 January 2006 (UTC)

::A couple of things.

::* The program TortoiseCVS installed on widows XP, but did not add a link to start a program in the start menu, just the help and about links. Is there something I need to know in order to use CVS?

::* Which files do I need to use MediaWiki 1.6?

::Thanks, Shardsofmetal [ Talk | Contribs ] 16:52, 10 January 2006 (UTC)

:::TortoiseCVS integrates itself into the Windows explorer context menu, as mentioned on the TortoiseCVS page. Hence no application added to the start menu. Create yourself a folder to hold checked out code, and from within that folder, play around with the new TortoiseCVS context menu items. --TheParanoidOne 17:43, 10 January 2006 (UTC)

::Concurrent Versions SystemAmbush Commander(Talk) 21:50, 8 January 2006 (UTC)

TortoiseCVS is a nice Windows wrapper for CVS. Once you've got it working, you'll want check out the phase3 module from (CVSROOT) :pserver:anonymous@cvs.sourceforge.net:/cvsroot/wikipedia. Rob Church (talk) 15:28, 13 January 2006 (UTC)

[[Special:DoubleRedirects]] bug

Look at it, then use an Offset of 500. It looks rather wacked out Sceptre (Talk) 18:22, 7 January 2006 (UTC)

:Looking at the page, there are double listings, double redirects that aren't, etc. Someone has just fucked it up Sceptre (Talk) 21:29, 7 January 2006 (UTC)

::Page is dead. I suppose a developer is looking into it. — Ambush Commander(Talk) 23:36, 7 January 2006 (UTC)

:::Any way to contact a developer to fix the page? The redirects have been sorted, but it still gives (next 50) links Sceptre (Talk) 20:22, 11 January 2006 (UTC)

I recall Ashar did something with recaching special pages a while back, which might coincide with this. Page now shows no entries for me when I view it. Rob Church Talk 19:26, 12 January 2006 (UTC)

:That's true, Robchurch, but look at the links on the page at the top. Although there are no DRs, you can see (next 50) as a link Sceptre (Talk) 20:58, 12 January 2006 (UTC)

Yep, that's borked. Rob Church (talk) 15:26, 13 January 2006 (UTC)

Blocking

The current Special:Blockip page sucks just a wee bit. I'd like to improve it, but I can't just go off willy-nilly adding things, without asking you lot what you'd like to see. Asking for ideas? Yes, I have gone off the bat. Still, your thoughts, suggestions opinions will be welcomed at http://meta.wikimedia.org/wiki/User:Robchurch/Blocking - sign, please, so I know who to ask for more information on an interesting idea.

Ta, Rob Church (talk) 23:42, 14 January 2006 (UTC)

Contributions from before creation of account

On my talk page, User:Democritus claims that he created his account last month; this is confirmed by the [http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=newusers&user=Democritus&page=|user creation log]. Nevertheless, [http://en.wikipedia.org/wiki/Special:Contributions/Democritus Democritus' contribution list] shows four edits from 2002. How is this possible? Democritus would like these contributions to be removed from the list of his contributions. -- Jitse Niesen (talk) 20:56, 14 January 2006 (UTC)

:I believe that a user may have registered that address long ago in the dim and distant past. A software change, I believed, wiped out some of the records of names (or something along those lines), so a recent user could choose the same names and those edits from the history would be assigned to them. [[Sam Korn]] 21:04, 14 January 2006 (UTC)

/w/index.php doesn't check integrity of data before committing edit to article

  • The problem: Here's how the bug can be recreated, and why it's actually a MediaWiki bug:
  1. I started editing a section of the page.
  2. At some point I wanted to "Show Preview". Obviously, I somehow clicked the "Save Page" button instead, unknowingly -- classic error.
  3. However, right after clicking the button, I saw a typo in the (still displayed) edit window: so I had the reflex to immediately hit the ESC key (shortcut for the browser's Stop icon) in order to cancel the operation and edit a bit more.
  4. But at this point, the browser had already started to POST the *first half* of the edit field's content, before it cancelled the sending operation (abruptly resetting the HTTP connexion).
  5. When the POST was aborted (from my side), the partial edit that had been sent yet was commited to the article instead of being ignored, resulting in a corrupted (and apparently vandalized) section of the page.

IMO, MediaWiki should NEVER have accepted to commit to the database a half-sent contribution, whose POST operation was aborted and never completed, and thus whose integrity was undefined.

  • A solution: Now, one really simple and reliable software solution is:
  1. In the HTML code for the edit form, to add just before its ending , a hidden field with a static "magic value", such as:

/>

  1. In the PHP code for "/w/index.php" that receives and processes our edits, to accept as a valid edit only an edit that did send the "EndOfForm" field and with the exact magic value "Commit".

The logic is of course that if/when the sending of the form is aborted by any mean before its full completion, then the server will never receive the last field, or its complete value (worst case scenario it would receive a partial "EndofForm=Commi"), and it should react by not writing to the database. Conversely, if the server did receive the exact "EndOfForm=Commit" parameter, then it can be sure to have received 100% of the data that was all before that, and it can safely commit it to the database.

  • An example: I've already detailled the whole affair (with links to diffs) on the talk page of the admin who thought I was vandalizing a page (he saw the article corrupted by the half-sent edit-in-progress that was commited to the database):

: User_talk:Sceptre#Your_overboard_reversions_at_Pink_Floyd_trivia

(I'm going to post this both at Wikipedia:Bug_report and Wikipedia:Village pump (technical) as per the advice on the bug-report's talk page...)

62.147.113.126 18:31, 14 January 2006 (UTC)

:We have such fields already (or did have). Please confirm. --Brion 20:22, 14 January 2006 (UTC)

::An HTTP post sends the character count before the data, so if the connection is interrupted before all the data has been transmitted the server can tell it didn't get all of the data. It's not clear to me where this should be detected, but at the protocol level enough information is already present to do so. -- Rick Block (talk) 21:38, 14 January 2006 (UTC)

Redirects to categories

I notice redirects to categories have stopped working again. Shortcusts like CAT:CSD or CAT:NS and such no longer work properly, the contents of the category is not visible. I though this very bug was fixed some time ago, at least ut has worked fine for some months, but not so anymore. Wassup! --Sherool (talk) 17:07, 14 January 2006 (UTC)

:Fixed again. Domas is trying to make page loading more efficient but had managed to break redirect handling a couple of times. I've reverted the changes pending correction. --Brion 20:30, 14 January 2006 (UTC)

My Signature

My signature is supposed to look like this: JarlaxleArtemis. Instead, it's just plain. JarlaxleArtemis 06:18, 14 January 2006 (UTC)

:See Wikipedia:How to fix your signature. --cesarb 15:37, 14 January 2006 (UTC)

Javascript bug

Error: missing ; before statement

Source File: http://en.wikipedia.org/w/index.php?title=-&action=raw&smaxage=0&gen=js

Line: 280, Column: 58

Source Code:

var menu = "