Jump to content

User talk:AzaToth

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

This is an old revision of this page, as edited by MiszaBot III (talk | contribs) at 12:38, 29 June 2007 (Archiving 1 thread(s) (older than 7d) to User talk:AzaToth/Archive June 2007.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

User talk:AzaToth

Welcome to my talk page. Here are some tips to help you communicate with me:

  • Please continue any conversation on the page where it was started.
    • If I have left a message on your talk page please DO NOT post a reply here. I will have your talk page on watch and will note when you have replied.
  • Add or respond to an existing conversation under the existing heading.
    • Indent your comment when replying by using an appropriate number of colons ':'.
    • Create a new heading if the original conversation is archived.
  • To initiate a new conversation on this page, please click on this link.
  • You should sign your comments. You can do this automatically by typing four tildes (~~~~).

CSS help

AzaToth, would you mind taking a look at the CSS for Template:Hidden messages? The template should be as small (vertically) as possible, but hopefully with not-too-small font size. Thanks, Λυδαcιτγ 18:19, 22 June 2007 (UTC)[reply]

Bug in morebits?

Morebits seems to be doing something strange to AFD Helper. OverlordQ 00:40, 23 June 2007 (UTC)[reply]

Actually on second thought, seems to be bug in AFD Helper rather.

TWINKLE block-warnings

When leaving a blocking notice on a user's talk page, TWINKLE leaves 2 signatures: 1 in the block notice, after the block notice, while there should be only 1: The signature in the block notice. Here's what I'm talking about (please note that I didn't actually block you. :-) ):

You have been temporarily blocked from editing in accordance with Wikipedia's blocking policy for abuse of editing privileges. Once the block has expired, you are welcome to make constructive contributions. If you believe this block is unjustified, you may contest the block by adding the text {{unblock|your reason here}} below. « ANIMUM » 14:48, 23 June 2007 (UTC)[reply]
« ANIMUM » 14:48, 23 June 2007 (UTC)[reply]

Could you configure the twinkle code to omit the signature immediately after the notice? Thanks, « ANIMUM » 14:48, 23 June 2007 (UTC) Can see tomorrow... AzaToth 16:13, 23 June 2007 (UTC)[reply]

Twinkle breaks other scripts

Hi AzaToth, the following definitions in morebits.js break other scripts:

  • 710: Array.prototype.uniq = function arrayPrototypeUniq() {
  • 721: Array.prototype.dups = function arrayPrototypeUniq() {

The problem happens when other scripts iterate over all array elements using "for..in" loops while assuming that they are not a function. I have started to fix wikEd, but then decided that it might be easier if you could fix your code. Cacycle 04:06, 24 June 2007 (UTC)[reply]

Try to have the check for arr.hasOwnProperty(i) in a for( var i in arr ) loop. AzaToth 04:29, 24 June 2007 (UTC)[reply]
I could remove dups, but uniq is used. It's a "bug" in some JS implementations that it will iterate over things that shouldn't be iteraded over, for example prototypes. AzaToth 04:32, 24 June 2007 (UTC)[reply]
Hehe, sometimes my self forgot to add such checks to operations, and then only find it choke in opera for example. (firefox will for example not iterate over such things) AzaToth 04:35, 24 June 2007 (UTC)[reply]
Firefox and Seamonkey actually do iterate over this and I see no reason why they should not. Please try to make this local to your scripts so that I can remove the bloating checks from wikEd. Thanks, Cacycle 05:03, 24 June 2007 (UTC)[reply]
Firefox doesn't iterate over it, at least not for me. And either should it iterate over all prototypes, or it shouldn't iterate over any. (Hey, it won't iterate over the toString() protetype) Also, there are plenty more defined prototypes for Array in morebits, see the top. AzaToth 05:45, 24 June 2007 (UTC)[reply]
I am using the latest versions of FireFox (2.0.0.4) and SeaMonkey (1.1.2) and in all tested cases of for...in loops over arrays these two properties popup. Internet Explorer 7.0.5730 also iterates over these (as well as some, map, forEach, filter, every, lastIndexOf, indexOf, toSource). You might want to file a Mozilla bug and contact Microsoft, but since these browsers are in use, I suggest that you change your script because it has been breaking other scripts and might introduce unexpected behaviour and difficult to locate bugs in completely unrelated scripts because of its global effects. Cacycle 14:57, 24 June 2007 (UTC)[reply]
The problem is that I need to redefine some of the "standard functions" for some browsers, perhaps I have missed something how to handle prototypes, but when I asked I got the suggestion to use following:
for( var i in foo ) {
    if( !foo.hasOwnProperty(i) ) {
         continue;
    }
    //...
}
Many redefines are located at the top in whats called JSL (Java Standard Library) AzaToth 15:12, 24 June 2007 (UTC)[reply]
You could always use classical local techniques instead of globally adding custom properties to arrays... Cacycle 04:15, 26 June 2007 (UTC)[reply]
That makes ugly code, and I don't like ugly code. I've added a property to the functions that should inhibit iteration over it. AzaToth 13:22, 26 June 2007 (UTC)[reply]

TW still opens in edit mode

How come though the new TW warning system doesn't require you to be in editing mode, it still opens in editing mode after a revert? I think it's better to open in reading mode to make it easier to see what warnings a user has been given, versus reading raw code. --(Review Me) R ParlateContribs@ (Let's Go Yankees!) 18:29, 24 June 2007 (UTC)[reply]

Havn't dig in the twinklefluff code, so that is at the moment unchanged. AzaToth 18:40, 24 June 2007 (UTC)[reply]

TfD nomination of Template:Nosubst

Template:Nosubst has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for Deletion page. Thank you. — Mike Peel 19:12, 25 June 2007 (UTC)[reply]

Merged page histories

Wheeeh, thanks a lot! // habj 21:13, 26 June 2007 (UTC)[reply]

TWINKLE problems

Hello, I've just installed TWINKLE, and when you click on 'Compare selected versions' I can see the roll-back options near the top-right of the page. However, they won't activate when selected - i.e. I click on them and nothing happens. It may help you if I say at the bottom-left of the monitor (above 'Start') it says 'Error on page'.

My computer is Windows Vista and I'm using Windows Internet Explorer. Do you know what the problem is? Lradrama 09:32, 28 June 2007 (UTC)[reply]

There are no plans for the moment to make twinkle compatible with IE. AzaToth 16:04, 28 June 2007 (UTC)[reply]

twinkle with safari

It might be of some interest that Safari 3beta can execute at least some of the scripts. Any hope of including it on the browser list to test against?--Smkolins 15:33, 28 June 2007 (UTC)[reply]

As I'm using linux, I cannot personally test against safari, but another must do that for me. AzaToth 16:03, 28 June 2007 (UTC)[reply]

Hi

Using Firefox, if a user has no contribs I can't use the ARV button to send a report about them because the ARV button is not present to ARV, UAA, or Sockpuppet. MAJ5 (talk) (contribs) 16:52, 28 June 2007 (UTC)[reply]

noinclude for CSD in templates on TW

Hi AzaToth. Can you make it so CSD templates are noincluded when they are placed on a template page? Also, shouldn't CSD T1 put {{Db-divisive}} on the page instead of {{Db-disparage}}? Thanks, --(Review Me) R ParlateContribs@ (Let's Go Yankees!) 02:35, 29 June 2007 (UTC)[reply]

I see no reason for having csd templates inside noinclude (in theory, they should be deleted asap). the other I check tomorrow. AzaToth 02:38, 29 June 2007 (UTC)[reply]
Because it apparently lists all the pages it's transcluded on in CSD, filling it up with tons of pages if a high use template is nominated. --(Review Me) R ParlateContribs@ (Let's Go Yankees!) 02:48, 29 June 2007 (UTC)[reply]
That's true, but then again, is it possible to nominate a high-use template for speedy deletion? AzaToth 12:18, 29 June 2007 (UTC)[reply]