User talk:Ricordisamoa

From Meta, a Wikimedia project coordination wiki

Afrikaans | العربية | অসমীয়া | asturianu | azərbaycanca | Boarisch | беларуская | беларуская (тарашкевіца) | български | ပအိုဝ်ႏဘာႏသာႏ | বাংলা | བོད་ཡིག | bosanski | català | کوردی | corsu | čeština | Cymraeg | dansk | Deutsch | Deutsch (Sie-Form) | Zazaki | ދިވެހިބަސް | Ελληνικά | emiliàn e rumagnòl | English | Esperanto | español | eesti | euskara | فارسی | suomi | français | Nordfriisk | Frysk | galego | Alemannisch | ગુજરાતી | עברית | हिन्दी | Fiji Hindi | hrvatski | magyar | հայերեն | interlingua | Bahasa Indonesia | Ido | íslenska | italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Qaraqalpaqsha | kar | kurdî | Limburgs | ລາວ | lietuvių | Minangkabau | македонски | മലയാളം | молдовеняскэ | Bahasa Melayu | မြန်မာဘာသာ | مازِرونی | Napulitano | नेपाली | Nederlands | norsk nynorsk | norsk | occitan | Kapampangan | Norfuk / Pitkern | polski | português | português do Brasil | پښتو | Runa Simi | română | русский | संस्कृतम् | sicilianu | سنڌي | Taclḥit | සිංහල | slovenčina | slovenščina | Soomaaliga | shqip | српски / srpski | svenska | ꠍꠤꠟꠐꠤ | ślůnski | தமிழ் | тоҷикӣ | ไทย | Türkmençe | Tagalog | Türkçe | татарча / tatarça | ⵜⴰⵎⴰⵣⵉⵖⵜ  | українська | اردو | oʻzbekcha / ўзбекча | vèneto | Tiếng Việt | 吴语 | 粵語 | 中文(简体) | 中文(繁體) | +/-

Welcome to Meta![edit]

Hello Ricordisamoa, and welcome to the Wikimedia Meta-Wiki! This website is for coordinating and discussing all Wikimedia projects. You may find it useful to read our policy page. If you are interested in doing translations, visit Meta:Babylon. You can also leave a note on Meta:Babel or Wikimedia Forum (please read the instructions at the top of the page before posting there). Happy editing!

-- 15:00, 1 October 2011 (UTC)

Botflag at ksh-Wikipedia[edit]

Your requested botflag at ksh-Wikipedia has been granted.--BBKurt (talk) 16:33, 2 April 2013 (UTC)[reply]

Thanks, I've already seen it. --Ricordisamoa 17:13, 2 April 2013 (UTC)[reply]

Fundraising translation feedback[edit]

Hey Ricordisamoa, I have a bit of a request to ask from you. We pulled down our banners nearly a fortnight ago for what was a highly successful international fundraiser and brought the curtain down on last years fundraiser. This week however we will be changing payment processors and during the testing of the new system it would be useful to use the time productively on on testing banner text.

To help us out with this I wonder if you would be willing to help us improve our italian text using This Link

Simply follow the simple instructions on that page and if you have any questions feel free to contact me on my talk page.


We are going to run the test on tuesday so if you dont see this message till 24 hours after it was sent you can ignore me :) Many Thanks though.

Jseddon (WMF) (talk) 18:11, 28 April 2013 (UTC)[reply]

Lock[edit]

See Global locks. PiRSquared17 (talk) 13:50, 6 May 2013 (UTC)[reply]

I finally understand, thank you. --Ricordisamoa 13:31, 27 June 2013 (UTC)[reply]

Mi dispiace di avere a suo tempo tradotto con 'bottone'[edit]

Chiedo venia, co-italano RicordiSamoa, ma per non buttarmi troppo giù, potremmo giustificarmi con le 'prime armi', la 'nuova arrivata', la 'non so quale iniziale deformante smania di volere dimostrare più di quello che riuscivo a fare'.. Ma, se nessun Amministratore sarà così cattivone nel frattempo da bloccarmi, potrai verificare che col tempo che è succeduto da allora, sono un poco migliorata, ed anzi ho meravigliosamente capito che, quando una traduzione è molto difficile per me, lascio che siano gli altri a partire, e.. col senno di poi, vado lì e affino le.. ripetizioni, le doppie mancanti, qualche riga saltata.. Vedo giusto così? Ciao, --Gloria sah (talk) 22:30, 8 May 2013 (UTC)[reply]

Non fa niente, grazie per tutti i tuoi sforzi! --Ricordisamoa 22:43, 8 May 2013 (UTC)[reply]

Your request at nlwiki[edit]

Dear Ricordisamoa, I've responded to your request here. Kind regards, Mathonius (talk) 18:45, 17 May 2013 (UTC)[reply]

I've already replied there, thanks for noticing. --Ricordisamoa 13:31, 27 June 2013 (UTC)[reply]

Text selection and editing tools[edit]

Presently many toolbar links and tools run a "encapsulate" action, t.i. adding some text before and after text selection. Such tools are "pediacentric", they presume that there's only one textbox so they are build to run there. Tools don't run on different textareas or input fields - while the best would be, that they run exactly the same into any textarea/input area.

This draft script reads selection from any textarea/input area and returns the original activeElement and selection into a comfortable format (it's verbose just to make things easier to catch):

function sel() {
    var elemento=document.activeElement;
	var ss=elemento.selectionStart;
	var se=elemento.selectionEnd;
	var contenuto=elemento.value;
	var s=[contenuto.substring(0,ss),contenuto.substring(ss,se),contenuto.substring(se)];
	return [elemento, s];
}

This is a test version of an "encapsulate" script, using sel():

function incapsula(pre,post) {
    var s=sel();
    var testo=s[1][0]+pre+s[1][1]+post+s[1][2];
    s[0].value=testo;
}

What's your opinion about? --Alex brollo (talk) 06:01, 27 June 2013 (UTC)[reply]

IMHO most buttons are actually supposed to be used in "wpTextbox1" only; however, some others aren't (such as special characters). The best way to solve this would be to get the default addToToolbar functions extended by MediaWiki developers, and to encourage tool developers to use those. --Ricordisamoa 13:24, 27 June 2013 (UTC)[reply]
Well, the programming style of wikiEditor is really very complex - to a discouraging level. I'll try to get some attention by its developers, but it's not "my way" at all: I wonder how much of the code is addressed to "core functionality" and how much is devoted to "beautifying"; IMHO adding an icon linked to a tool can be done with two or three lines of jQuery code and I can't understand the need to write something which needs hundreds of lines with the same (or more limited) functional result. :-(. In the meantime, I'll add my scripts to my personal tools.... ignoring wikiEditor. --Alex brollo (talk) 15:15, 27 June 2013 (UTC)[reply]
Update. sel() runs well when shot by an hotkey; doesn't run with a click on a button.... simply, I presume, why after the click the document.activeElement is the button. :-( So, I save sel() for my Chrome Shortcut manager scripts only.

Js scripts su wikisource[edit]

Con i privilegi ridotti di utente semplice, non puoi modificare il nsMediaWiki nè i js degli altri utenti. Spero che questa limitazione sia presto superata. Nel frattempo potrei ridirigere alle tue pagine js la lettura degli script; mi sembra la cosa più saggia, così eventuali miglioramenti prenderebbero subito vita. Secondo te, basta importScript()? E' una routine sincrona o asincrona? --Alex brollo (talk) 15:02, 4 July 2013 (UTC)[reply]

Beh... succede spesso che "rompa" uno script tentando di migliorarlo, dato che quasi sempre uso le mie stesse sottopagine come test. Se non vi preoccupate di questo, allora importScript o mw.loader.load dovrebbero bastare; altrimenti, rassegnatevi a decine di "{{editprotected}}" al giorno! --Ricordisamoa 01:57, 5 July 2013 (UTC)[reply]
Non nego che mi punge vaghezza di candidarti come sysop su it.source per permetterti di accedere direttamente al nsMediaWiki; l'unico problema è che non so precisamente se la cosa ti interessi, e se tu abbia il tempo di prenderti questa incombenza. In genere, inoltre, passa un po' più di tempo dalla "prima apparizione" alla candidatura; ma io farei ben volentieri un'eccezione. Nel frattempo, punterò qualche importScript() alle tue pagine js personali; spero di ricordarmi di avvisarti (come avrai visto, sono un pasticcione e non garantisco niente ;-) ).
(ridomando: importScript() è sincrono o asincrono? Detesto mw.loader.load() con tutte le mie forze....) --Alex brollo (talk) 07:23, 5 July 2013 (UTC)[reply]
importScript è probabilmente asincrono, ma non ne trovo alcuna conferma nella documentazione... – sysop su it.source? non se ne parla, aspetta almeno qualche mese --Ricordisamoa 07:55, 5 July 2013 (UTC)[reply]
Aimè. Ok, continuerò con i miei pasticci.... --Alex brollo (talk) 08:09, 5 July 2013 (UTC)[reply]
Puoi provare User:Ricordisamoa/JavaScript task force --Ricordisamoa 08:24, 5 July 2013 (UTC)[reply]

Importing Iraqi census data[edit]

Hi, Ricordi!

I started Wikidata:Wikidata:Project_chat#Importing_Iraqi_census_data and learned that the ability is coming in the northern hemisphere autumn WhisperToMe (talk) 05:40, 20 July 2013 (UTC)[reply]

Deep user inspector[edit]

Of course there is always somebody who thinks that everything that is possible has to be done. Of course there is always somebody who ignores the opinion of a community’s majority. No one should be surprised about your inspector. It’s just another disappointment. NNW (talk) 20:55, 11 September 2013 (UTC)[reply]

100% agree. This tool is lacking an opt-in. Without this function it must be shut down immediately. -- smial (talk) 21:49, 11 September 2013 (UTC)[reply]
You're free not to use it; I'm not advertising it at all. --Ricordisamoa 00:09, 12 September 2013 (UTC)[reply]
You don’t? NNW (talk) 07:51, 12 September 2013 (UTC)[reply]
@NordNordWest: that was just a full reply to Cyberpower678's last question. --Ricordisamoa 08:36, 12 September 2013 (UTC)[reply]
Cyberpower678’s last question, your answer to it. No one asked for the link to that tool, you gave it without a question. NNW (talk) 08:43, 12 September 2013 (UTC)[reply]
@NordNordWest: that provisional "answer" was pending for an update, of course. --Ricordisamoa 08:46, 12 September 2013 (UTC)[reply]
From your point of view, of course. The only way to promote that tool. Again: No one asked for that link. NNW (talk) 08:54, 12 September 2013 (UTC)[reply]

This is really reckless, Ricordisamoa. Do you know en:Wikipedia:Do not disrupt Wikipedia to illustrate a point? Of course you do, you did this on purpose, right? Let me translate you the first reaction posted on your new tool: "This a good occasion to leave the project for good. Last drop on the balance." Congratulations. --Atlasowa (talk) 07:50, 12 September 2013 (UTC)[reply]

@Atlasowa: Snowolf had best illustrated my POV on the discussion; DUI is simply an advanced and interactive alternative (without opt-in/out) to X!'s excellent tool. --Ricordisamoa 08:42, 12 September 2013 (UTC)[reply]
@Ricordisamoa: Do you know this discussion? -- smial (talk) 07:51, 12 September 2013 (UTC)[reply]
@Smial: Yes, I know it, and it's indeed named "X!'s Edit Counter", not "Ricordisamoa's Deep User Inspector"; the mantainer of the tool agreed the community to have a say on that tool, not on every similar tool hosted on Wikimedia Labs. --Ricordisamoa 08:31, 12 September 2013 (UTC)[reply]
Apparently your tool has the same approach as X!s counter. As the community in its majority in the mentioned request has disagreed to a counter that processes user data without user's agreement, your tool is not consistant to this majority voting. This is understood as an offensive act against the intention of that voting act and the community. -- smial (talk) 11:45, 12 September 2013 (UTC)[reply]
Hi Ricordisamoa, thank you for your tool, the visualization of the data is great and beautiful. However as you know the processing and publication of large amounts of (public) data on a specific user is considered inappropriate by a (large, specific) part of the community. Do you think it would be possible to add an opt-in option and give local communities the chance to decide if they want to enable the opt-in method? Thanks Sitic (talk) 13:05, 12 September 2013 (UTC)[reply]
Hi Ricordisamoa, I kindly ask you to add an opt-in mechanism for such kind of tools. I know that all data are public but to show aggregated data to everyone is not very privacy friendly. Thanks for your understanding. Raymond (talk) 13:28, 12 September 2013 (UTC)[reply]
+1 to NNW, Sitic and Raymond. --Don-kun (talk) 15:26, 12 September 2013 (UTC)[reply]
+1 --J. Patrick Fischer (talk) 17:46, 12 September 2013 (UTC)[reply]
+1.--Aschmidt (talk) 23:50, 12 September 2013 (UTC)[reply]
Hello Ricordisamoa. Thanks for creating this tool. I'd just like to give a bit of positive feedback. Using this tool helped me learn a couple things about myself as an editor I didn't know beforehand, like the fact that I apparently edit the most on Monday (I know, makes no sense). I'm personally against an opt-in, and that's all I'll say about that, so thanks very much for taking the time to develop this tool! TCN7JM 23:56, 12 September 2013 (UTC)[reply]
Hello Ricordisamoa. I also want to thank you for this tool that gives me the opportunity to find out more about the way others are working in the wikipedia. In this way it shows me when my edit-war-opponent normally is editing and I can send this data to his boss since I know where he is working. Also it brings me a very valuable argument in a discussion to tell everyone that the opponent it only working for about 15% in articles and with more than 50% in discussion pages - he is a troll, don't you mind? Very interesting for me: He is working on lots of articles in the Essen area in Germany so maybe I can found out more about where he lives and how many children he has. ... for myself it doesn't matter if you are able to see my data - but do you really wish to be that opponent I described living in a kind of Brave New World? -- Achim Raschka (talk) 12:31, 13 September 2013 (UTC)[reply]
  • Personally, I think this tool is great. We made data about user contributions and page histories transparent to protect Wikipedia, and preserve its reputation. In short, this information is public precisely so that we can use tools like this learn to about who is editing what, and your tool helps us do this even better. The fact that Special:Contribs and page histories make it hard to learn lots about who edited and when is not a feature, it's a defect. The first I did here was to punch in my own username, and learned some fascinating and useful things I didn't know about my own edits, and I'm not the least bit uncomfortable with others knowing that information too. Steven Walling • talk 23:41, 19 September 2013 (UTC)[reply]
Sorry Stephen to correct you, but userdata in Wikimedia-platforms like Wikipedia has never been dedicated to the special purpose, that "this information is public precisely so that we can use tools like this learn to about who is editing what". Userdata is only open due to a structural sideeffect of Mediawiki (we use a database to record all actions in detail only as this logging is necessary to be on the safe side in licensing issues), it went to be a playground for big-data-freaks only later. Denis Barthel (talk) 07:58, 22 September 2013 (UTC)[reply]

Count me as one of the ones who loves the tool. If I could change one thing about it, though, I'd say it should specify if a user is blocked or not. Maybe it assumes you already know. But I love everything else, and I used it on myself and was able to find some edits I forgot about. My favorite page is the map. Interesting name by the way, both the full name and the acronym. Soap (talk) 03:52, 5 October 2013 (UTC)[reply]

In case it is going to happen that Ricordisamoa is forced to shut down this tool, I will register a domain and host at my Home Server. I am so happy that such a free solution exists; as I could imagine there are also paid user-analysis-tools for ad-companies and other dirty purposes; and be sure that neither the NSA nor any other secret service needs DUI.

If you really want to protect privacy, you are not going to shut down this tool but a) Strip user data from database dumps b) limit the user contribution anonymous users are able to fetch through the API. That would be a proper solution. Anything else is just harming ourselves while others services can happily continue aggregating and evaluating user data and even offer them for sale. -- Rillke (talk) 21:39, 14 October 2013 (UTC)[reply]

@Soap: user's block information has been inserted in change 0d30333. You can test it out even now with any blocked user. Thanks for the suggestion! --Ricordisamoa 21:55, 2 November 2013 (UTC)[reply]
Thank you : ) Soap (talk) 23:02, 7 November 2013 (UTC)[reply]

DUI-time for development[edit]

Hello, can you estimate, how long the development of this tool has taken? Imho the maximum of transparency necessarily leads to an easy analysis. Thank you. --Tavok (talk) 12:52, 12 September 2013 (UTC)[reply]

@Tavok: Well, several months ago I created a basic client-side edit counter with static charts. But it was experimental, and I never published it, while I continued to use X!'s tool. ...Until I came annoyed about keeping the opt-in, decided to develop my tool further, and got the job done in few days. --Ricordisamoa 13:01, 12 September 2013 (UTC)[reply]

DUI: Negative deleted edits[edit]

Hi, I was just using DUI for my own (commons) account and was slightly confused by these numbers:

Live edits: 6,550
Deleted edits: -130
Total edits (including deleted): 6,420

How is it possible to have negative deleted edits? Am I misinterpreting the numbers? Thanks. Julian Herzog (talk) 18:39, 4 October 2013 (UTC)[reply]

It is a known bug: please refer to [1]. Thanks, --Ricordisamoa 14:14, 7 October 2013 (UTC)[reply]
Ah, thanks. Julian Herzog (talk) 21:05, 7 October 2013 (UTC)[reply]

Feedback su DUI[edit]

Ciao! Forse sono cose che già sai:

  1. La mia utenza risulta Currently blocked by undefined with an expiry time of undefined because "undefined". M'è venuto un colpo, ho pensato "finalmente ce l'hanno fatta!" :D
  2. Accanto alla torta ci sono i dati numerici, ma il testo si interrompe e non si legge tutto: es., Discussioni utente: 6281 (8........
  3. nella tab "advanced", il numero di edit finisce sopra la striscia colorata (quella degli edit per ns) se gli edit sono più di 999.
  4. restando alle strisce colorate (riprese da vecchi editcounter) imho andrebbero ristrette in altezza (così uno può vedere più mesi in un'unica schermata) e ampliati in larghezza (così uno distingue meglio i ns in cui detiene gli zerovirgola di edit). Per come è organizzato adesso, c'è tanto bianco che non dice niente e molta informazione compressa in spazi indistinguibili.
  5. rights: (sempre la mia utenza) lunedì 26 luglio 2010 16:13:33: became sysop and removed rollbacker; mercoledì 21 dicembre 2011 10:44:58: became autopatrolled; manca "removed sysop", no? Come, uno si dimette e non me lo riconosci? :D
  6. tag: cosa significa questa tab?
  7. map: bella! Forse varrebbe la pena rimpicciolire le coord da 1 edit rispetto a quelle da 5, da 5 rispetto a da 11, per dire.

Tutto molto bello e stiloso (nel senso migliore del termine)!! --Pequod76(talk) 20:14, 16 November 2013 (UTC)[reply]

  1. Problema grave, cercherò di risolverlo al più presto!
  2. Errore del layout, che tra breve sarà "responsivo";
  3. piccolo bug;
  4. spiega meglio la tua idea;
  5. i burocrati non possono rimuovere il flag di amministratore, il log che cerchi è probabilmente questo, e al momento DUI controlla esclusivamente i registri locali;
  6. i tag sono le "etichette" assegnate alle modifiche dal software MediaWiki, come "modifica da mobile" oppure "vandalismo"; il grafico mostra appunto le etichette in percentuale sul totale delle modifiche, soprattutto per identificare quelle improprie;
  7. gli indicatori hanno dimensioni proporzionali al numero di modifiche alla voce, ma con dimensioni minime in modo da poter essere sempre distinte.
Grazie per la tua opinione! --Ricordisamoa 01:34, 22 November 2013 (UTC)[reply]
Ciao! Rispetto al punto 4, le bande colorate sono tozze. Non so come dire, sono troppo grosse nord-sud (in altezza) e poco est-ovest (in larghezza) - questo spiega? Poiché i colori relativi ai ns sono esplicitati est-ovest, sarebbe bene diminuire la dimensione nord-sud e aumentare quella est-ovest. Questo determina due cose: a) si occupa meno spazio nord-sud: più mesi sono visibili; b) si leggono con maggiore chiarezza i dati, soprattutto quelli relativi a ns poco editati (gli zero virgola si vedono solo "premiando" est-ovest con un po' più di spazio). Tutto chiaro? :) Per il resto, grazie per le spiegazioni! --Pequod76(talk) 11:24, 23 November 2013 (UTC)[reply]
Per il primo bug: risolto, semplicemente avevo controllato che il messaggio funzionasse con gli utenti bloccati ma non che non funzionasse per quelli "liberi"! --Ricordisamoa 20:04, 23 November 2013 (UTC)[reply]
Ottimo. :) Immagino che Currently blocked by undefined with an expiry time of undefined because "undefined" in sostanza significasse "libero", no? :D --Pequod76(talk) 17:24, 25 November 2013 (UTC)[reply]
Esatto, proprio perché il controllo di valori undefined in JavaScript è problematico... --Ricordisamoa 03:20, 26 November 2013 (UTC)[reply]

Tool di evidenziazione rime[edit]

Ti ho risposto nel bar di wikisource. Sono affascinato dallo script, anche se te ne propongo un uso alternativo (quello di usarlo solo in pagine speciali di "analisi testuale"). Ma vorrei ingaggiarti, visto la tua competenza, per sottoporti un altro problema: quello della costruzione dinamica di dizionari ortografici specifici per opera, come strumento per aiutare l'utente in rilettura. Il problema è molto complesso, ma qualcosa mi dice che tu potresti affrontarlo. Purtroppo i dicionari esistenti ci servono poco, perchè noi trattiamo anche testi con ortografie desuete o poetiche che NON devono essere considerate errori.

Come avrai capito, sono molto più interessato agli strumenti per lavorare che agli strumenti che arricchiscono e abbelliscono il testo a fine lavoro.... è una visione del tutto personale, non farti scoraggiare dal mio punto di vista, altri wikisourciani sono invece entusiasti della cura dell'aspetto finale grafico. --Alex brollo (talk) 16:17, 27 November 2013 (UTC)[reply]

@Alex brollo: ti ho risposto anch'io nel bar di Wikisource. E sono interessato all'idea dei dizionari, approfondisci. --Ricordisamoa 23:45, 27 November 2013 (UTC)[reply]
Lo farò.... su Distributed Proofreaders (progetto totalmente diverso dal nostro di rilettura, estremamente gerarchico a livelli di competenza rigidissimi) hanno un ottimo dizionario basato su javascript. Il nostro dovrebbe essere diverso, in base alla filosofia, giusta o sbagliata che sia "tutti fanno un po' di tutto". Là, per formattare bisogna essere abilitati, e lo si è solo "passando un esame" piuttosto difficile! Facci un giro se ti va. --Alex brollo (talk) 14:45, 28 November 2013 (UTC)[reply]
@Alex brollo: perché allora non usate tutti Distributed Proofreaders? --Ricordisamoa 22:54, 6 December 2013 (UTC)[reply]
(rispondo in ritardo per mancata notifica... dimenticavo di attivarla): siamo in wikisource, tocca usare quello che passa il convento; la filosofia del progetto è comunque molto diversa. --Alex brollo (talk) 08:27, 15 December 2013 (UTC)[reply]

Canvas[edit]

Se sei d'accordo, io aprirei, su it.source, tre sottopagine del tuo nome utente:

  • Utente:RicordiSamoa/CanvasLab, pagina vuota che sarà riempita via javascript;
  • Utente:RicordiSamoa/Canvas.js, script "stabili" che riempiono CanvasLab;
  • Utente:RicordiSamoa/CanvasAlfa.js, script "sperimentali" per pasticciare.

L'idea è: tu accedi come/quando vuoi con i tuoi permessi di utente; io pure, con i permessi di sysop, ma (prometto) solo sulla pagina Alfa.

Pian piano, potremmo aggiungere le funzioni per l'acchiappo di un'immagine jpg, il suo riversamento nel canvas, la sua manipolazione (croppaggio-filtraggio-analisi immagine), la sua ri-trasformazione in un file grafico e infine il caricamento su Commons via javascript. Che ne dici? --Alex brollo (talk) 08:24, 15 December 2013 (UTC)[reply]

Intanto sono andato un po' avanti; adesso ho it:s:Utente:Alex brollo/CanvasLab dove con un paio di click carico qualsiasi immagine e la copio dentro un canvas. Script per ora in it:s:Utente:Alex brollo/CanvasLab.js --Alex brollo (talk) 19:27, 15 December 2013 (UTC)[reply]

Forse trovato il supporto per il dizionario[edit]

Da mesi (anni) sto cercando un modo di salvare elenchi di parole tratti dati testi, dopo tentativi pionieristici di molto tempo fa. Di certo non vanno bene pagine o sottopagine (per il fatto di essere "storicizzate" e quindi inadatte a continue piccole variazioni, tanto più che sarebbero "grosse": una cosa che urta la mia "ecologia web". Ovviamente la strada dei cookie, con i suoi 4k ridicoli, non porta da nessuna parte (ma un pochino ho battuto anche quella). Adesso ho scoperto l'oggetto window.localStorage; lo conosci senz'altro. 5 Mby locali, persistenti, sito-specifici. In più, un po' di maneggiamento di jQuery mi fa intravedere che gli elenchi di parole sono molto più facili da acchiappare dall'html che dal wikitesto, dove sono spezzettati e mescolati a testo che nulla c'entra....

Provo a costruire un "accumulatore di lemmi" opera-specifico, vediamo cosa viene fuori e vediamo che velocità operativa raggiunge. Un vecchio script mini-parser per isolare i lemmi di un testo dai caratteri di punteggiatura ce l'ho. Si tratta solo di imbastire un dizionario e creare uno scriptino per aggiungere alle parole esistenti quelle nuove... se tutto va bene è cosa di mezz'ora. --Alex brollo (talk) 22:19, 17 December 2013 (UTC)[reply]

Il vecchio script va in pensione: basta una banale testo.replace(/[\.\ \,\;\:\-\_\"\n\t\)\(\/0123456789\}\{\[\]\*\?\%\!\>\<]+/g,",").split(",") e la lista grezza dei lemmi, depurata da cifre e punteggiatura, viene fuori in un attimo. --Alex brollo (talk) 10:28, 18 December 2013 (UTC)[reply]
@Alex brollo: perché allora non
testo.split(/[\.\ \,\;\:\-\_\"\n\t\)\(\/\d\}\{\[\]\*\?\%\!\>\<]+/g)
? --Ricordisamoa 13:33, 18 December 2013 (UTC)[reply]
PS: a proposito di localStorage, puoi usare mw:ResourceLoader/Default modules#jquery.jStorage per compatibilità. --Ricordisamoa 13:41, 18 December 2013 (UTC)[reply]
Grazie; sono estremamente grossolano sia in regex che in jQuery.... ma sono una spugna che assorbe rapidamente i suggerimenti :-)
Avevo adocchiato in localStorage il campo jStorage ma non sapevo a cosa servisse e me ne sono tenuto a rispettosa distanza --Alex brollo (talk) 15:56, 18 December 2013 (UTC)[reply]
Ecco la funzione parserNew, restituisce la lista ordinata, minuscolizzata e uniquizzata delle parole della pagina corrente (in view):
function parserNew() {
   var lista=$("#mw-content-text").text().toLocaleLowerCase().split(/[\.\ \,\;\:\-\_\"\n\t\)\(\/\d\}\{\[\]\*\?\%\!\>\<\=\↑]+/g);
   var ll=[]; 
   $.each(lista, function(idx,val) {if ($.inArray(val,ll)==-1 && val!="") ll.push(val);});
   return ll.sort();
}

--Alex brollo (talk) 15:56, 18 December 2013 (UTC)[reply]

@Alex brollo: jStorage usa localStorage quando possibile, altrimenti i cookie. È preferibile al localStorage standard qualora sia necessario supportare anche browser vecchi (pur con qualche limitazione). Quali sono le applicazioni pratiche dell'"accumulatore di lemmi"? --Ricordisamoa 16:58, 18 December 2013 (UTC)[reply]
Un dizionario opera-specifico è uno strumento formidabile per verificare i testi in fase di rilettura, con potenzialità di correzione automatica di scannos compresa la conversione di lettere (tipo cauallo->cavallo nei testi seicenteschi, oppure, più banalmente, perché->perchè nei testi anche piuttosto recenti, o più->piú nei testi curati da Carducci). Nei testi antichi sarebbe una vera pacchia; nei testi moderni, un aiuto utile. L'intero range delle applicazioni possibili lo scopriremo solo vivendo... di certo, non si sente mai la mancanca di quello che non si immagina che ci possa essere ;-)
Un faticosissimo, pionieristico tentativo l'ho già fatto anni fa via bot, ma era uno strumento faticoso e comunque "per un utente solo". --Alex brollo (talk) 14:42, 20 December 2013 (UTC)[reply]

Tool suggestion[edit]

Hi! I suspect that a number of users may be interested in opt-out feature for your DUI tool. Please see here and anything you like to read above the section I linked. --Gryllida (talk) 02:18, 28 December 2013 (UTC)[reply]

Replied, thanks. --Ricordisamoa 03:06, 29 December 2013 (UTC)[reply]

DUI[edit]

Hi Ricordisamoa, the dates are available for everyone, but anyway an opt-in/-out option would be preferable, particularly with regard to the Map and the Punchcard – this detailed movement profile could exert influence on the activity of some users, indeed it could provoke quiet a few people to leave off the Wikipedia. But this is not the purport of this message. Yesterday I created some new articles with coordinates, but the Map doesn't show any of them. The largest circle shows an article where I contributed 5 edits (w:de:Himalaya), but the articles with 10–25 Edits (w:de:Bering-Gletscher, w:de:Larsen Islands, w:de:Brady-Gletscher) are not shown. There are some more articles with coordinates, which aren't taken into consideration. I thought it might be good to know. Regards --Anıl Öztaş (talk) 08:04, 9 January 2014 (UTC)[reply]

DUI result cut[edit]

I've finished to deploy your Lua module on Wikiquote and now I wish to see my edit count on your DUI. However the "User talk" numbers in French are cut by the right white margin. JackPotte (talk) 19:25, 16 February 2014 (UTC)[reply]

@JackPotte: DUI has critical layout issues (see discussions above). I will work on a full redesign soon. Thanks, --Ricordisamoa 03:37, 17 February 2014 (UTC)[reply]

Messaggio sulla wp occitano[edit]

Ciao, Ho veduto il messaggio sulla taverna non occitanofòna della wp occitana. Non ho capito così aspetta da noi: azione tecnica, cambio nelle pagine che utilizzano questo modello. We need more information. Thanks in advance. --Jfblanc (talk) 07:41, 19 February 2014 (UTC) (oc:wp sysop)[reply]

Please visit this page if you wish to contribute to a centralized discussion about a Wikimedia genealogy project. Thank you! --Another Believer (talk) 21:46, 26 February 2014 (UTC)[reply]

DUI issues with Firefox browser[edit]

Hi, your DUI tool is awesome! Keep up the good work! Nevertheless, it has some issues with the Firefox browser: the page seems to have stopped refreshing after the warning... Any explanations? Best regards, --Jagwar grrr... 19:41, 3 March 2014 (UTC)[reply]

@Jagwar: have you tried toollabs:dewkin? If you're still experiencing issues with it, please report the user name and project you're trying to inspect, and the error messages shown in the browser console (if any). Also, keeping the browser up-to-date could help. --Ricordisamoa 05:00, 9 June 2014 (UTC)[reply]

Upcoming IdeaLab Events: IEG Proposal Clinics[edit]

Idea Lab
Idea Lab
Idea Lab
Idea Lab

Hello, Ricordisamoa! We've added Events to IdeaLab, and you're invited :)

Upcoming events focus on turning ideas into Individual Engagement Grant proposals before the March 31 deadline. Need help or have questions about IEG? Join us at a Hangout:

  • Thursday, 13 March 2014, 1600 UTC
  • Wednesday, 19 March 2014, 1700 UTC
  • Saturday, 29 March 2014, 1700 UTC

Hope to see you there!

This message was delivered automatically to IEG and IdeaLab participants. To unsubscribe from any future IEG reminders, remove your name from this list

Non mi pare la proposta sia sufficientemente definita e non capisco nemmeno perché sia in Meta (vedi discussione), inoltre non c'è ancora un solo favorevole per alcuna delle opzioni, quindi non me la sento. --Nemo 19:27, 15 March 2014 (UTC)[reply]

ricordisamoa/dui/, doesn't seem to actually exist.[edit]

When calling the uri you ger the message "The URI you have requested, http://tools.wmflabs.org/ricordisamoa/dui/, doesn't seem to actually exist."

Is that temporary? Did it move to somewhere else? 84.137.60.46 08:58, 17 March 2014 (UTC)[reply]

This is due to wikitech:Tool Labs/Migration to eqiad. I'm still in search for a way to port the old .htaccess configuration. Anyway, I've set up a temporary mirror at http://ricordisamoa.tk/dui/. Enjoy! --Ricordisamoa 15:46, 17 March 2014 (UTC)[reply]
issue #6, now fixed. --Ricordisamoa 15:47, 5 June 2014 (UTC)[reply]

Hackathon di Zurigo[edit]

Ciao ricordisamoa, ti interesserebbe andare alla Hackathon di Zurigo? `http://www.mediawiki.org/wiki/Zürich_Hackathon_2014 Info qui]. C'è poco tempo, ma se ti interessa, registrati entro domani e poi parliamone. (Aubrey sloggato, dovresti avere la mia mail).

@Aubrey: lascia perdere, sarà per una prossima occasione (nell'UE, si spera!) --Ricordisamoa 00:58, 24 April 2014 (UTC)[reply]

Aprire richiesta su Bugzilla[edit]

Ciao Ricordisamoa, relativamente a:

s:it:Wikisource:Bar#Barra_laterale_.22Altri_progetti.22_con_link_automatizzati_da_Wikidata

Mi sembra che il consenso ci sia.

Puoi aprire tu la richieste su bugzilla? Non sono molto pratico con bugzilla e se potessi farlo tu mi faresti un grosso piacere.

--Accurimbono (talk) 08:10, 16 April 2014 (UTC)[reply]

@Accurimbono: fatto --Ricordisamoa 10:54, 16 April 2014 (UTC)[reply]
@Ricordisamoa: Grazie! --Accurimbono (talk) 07:21, 17 April 2014 (UTC)[reply]

DUI error[edit]

Hi Ricordisamoa, it seems that your DUI-tool currently doesn't show more than last 500 edits in tab "advanced". Also in "Punchcard". In "overview" all edits except last 500 are counted as "deleted". Best Regards, --Holder (talk) 04:27, 1 May 2014 (UTC)[reply]

@Holder: issue #8, now fixed. --Ricordisamoa 23:25, 4 June 2014 (UTC)[reply]
Thanks. --Holder (talk) 11:09, 7 June 2014 (UTC)[reply]

Edit-count[edit]

Volevo tanto ringraziarti, tardi, per l'uso che sto facendo del tuo edit-count. E' sempre il più accattivante ed il più intuitivo e sono contenta che ora funzioni di nuovo. Ma qui di cosa vi occupate? Grazie ancora.--Amaunet (talk) 23:16, 3 June 2014 (UTC) P.S. Ricordo Samoa anche io.[reply]

@Amaunet: deduco che provieni da it.wiki; per farsi un'idea di Meta, la Pagina principale è un'ottima sintesi; per approfondire, Meta:About/it. --Ricordisamoa 23:57, 4 June 2014 (UTC)[reply]
solo oggi mi sono accorta della tua risposta, imperdonabile! Leggerò la pagina e se posso contribuire in qualche modo lo farò. Il tempo non mi manca ;) intanto saluti. --Amaunet (talk) 14:40, 25 February 2015 (UTC)[reply]

Requests for comment/Superprotection[edit]

Please consider merging your RfC into the slightly older Requests for comment/Superprotect rights. Thanks, Microchip08 (talk) 17:37, 10 August 2014 (UTC)[reply]

@Microchip08: Done --Ricordisamoa 17:41, 10 August 2014 (UTC)[reply]

Great minds think alike, or some such thing[edit]

Requests for comment/Superprotection v Requests for comment/Superprotect rights. I saw your page only briefly, and you had included some useful background. A log link. Could you add that to the background section, and edit anything else there that you think needs amending. John Vandenberg (talk) 17:50, 10 August 2014 (UTC)[reply]

@John Vandenberg: Done – see Special:Diff/9478271 and Special:Diff/9478294. --Ricordisamoa 19:30, 10 August 2014 (UTC)[reply]

Please consider not translating Tech News in protest[edit]

Hi Ricordisamoa, I have just noticed that you've been working on the translation of Tech News this weekend.

I wanted to ask you to consider refraining from translating such pages to avoid supporting the recent actions of the Wikimedia Foundation. On Sunday, they have implemented a change that gives them an unprecedented, unilateral and unlimited power to protect certain pages on Wikimedia wikis in a manner that makes it impossible for all volunteers — including locally elected administrators — to edit them.

The change was secretly forced through without any community consultation, and the Foundation have used this new feature to actively fight the volunteer community of the German Wikipedia.

Your volunteer translations directly sustain such actions of the Foundation. Your work helps them save time and effort that they would otherwise have to invest in recruiting, training and managing new employees, and saves them money they would otherwise have to spend on professional translations.

The recent actions of the Wikimedia Foundation make it very clear that they no longer respect the wishes of the volunteer community, and that they no longer consider us an equal partner. The least we can do to voice our dismay at those actions, and to support our colleagues on the German Wikipedia, is to stop investing our precious time as volunteers on directly helping the Wikimedia Foundation. We can instead translate pages which help all wiki users.

Please take a minute to consider withdrawing your help for the Foundation in protest against their disrespectful treatment of the volunteer community of the German Wikipedia.

Thank you for your time and your consideration! odder (talk) 22:01, 12 August 2014 (UTC)[reply]

Wikipedia Ottoman Turkish 4[edit]

Hello. Could you pleace vote on Requests for new languages/Wikipedia Ottoman Turkish 4.--Uishaki (talk) 03:11, 30 December 2014 (UTC)[reply]

CommonsHelper[edit]

Hi. I'm trying to use CommonsHelper here on Meta to move appropriate files to Commons. For example <http://tools.wmflabs.org/commonshelper/?interface=no&image=1er_Encuentro_de_Wikipedistas_Bolivianos_afiche.jpg&lang=meta&project=wikimedia>. It never works, despite having authorized the aplication to work under OAuth. It always gives me an Error:Null message. Since you seem authorized to commit on Magnus tools, can you please have a look at this when you have a minute? The error log is the following:

Querying CommonSense ...done.
Querying image data ...done.
Retrieving image description ...done.
ERROR: null

Thank you for your help. Best regards. -- M\A 20:45, 22 January 2015 (UTC)[reply]

@MarcoAurelio: I inspected the source of the page showing the error, and a slightly modified version of the JavaScript code gave me "The file you submitted was empty" as error message. Investigating further, it appears that CommonsHelper is trying to upload the file from an incorrectly built URL, http://upload.wikimedia.org/wikimedia/meta/f/f2/1er_Encuentro_de_Wikipedistas_Bolivianos_afiche.jpg. The URL building function should have been fixed with this commit by User:Nemo bis. CommonsHelper might use an out-of-date version of that, but as I wrote I cannot find the code so it's all up to Magnus as always. PS: I have no commit access, I just filed some pull requests :-) --Ricordisamoa 07:02, 23 January 2015 (UTC)[reply]
Hi, and many thanks for your detailed answer. We hope that the patch by Nemo can resolve this issue :-) Best regards, -- M\A 14:05, 23 January 2015 (UTC)[reply]
Fixed. Turns out that the wiki is at "meta.wikiMedia", but the file path is "meta.wikiPedia". WTF? --Magnus Manske (talk) 13:53, 25 January 2015 (UTC)[reply]
Thanks Magnus! But why doesn't CommonsHelper use the same code as your other tools? Nemo's patch is very nice and avoids site-specific code. --Ricordisamoa 15:29, 25 January 2015 (UTC)[reply]

Thank you![edit]

Script-Schnark-popuprefs-2

For this!! This is great. And much needed. Schnark has generously announced to shower you with bugreports :-)) There were several earlier discussions since 2012 etc. Have a look at de:Benutzer:Schnark/js/popuprefs too. Thank you so much for taking this on! --Atlasowa (talk) 16:38, 10 February 2015 (UTC)[reply]

@Atlasowa: Thanks for the feedback! Please note that a different implementation by Prtksxna is also under review. I've added an incomplete list of the current gadgets/scripts to phab:T67114, which is also the appropriate place for suggestions. --Ricordisamoa 09:57, 12 February 2015 (UTC)[reply]
You missed he:Mediawiki:Gadget-CiteTooltip.js, in use since 2012, for context see: (end of) Wikipedia:Gadget/proposals/Archive_4#Reference_Tooltips.
I think the "icons for reference type" is useless clutter. Nobody needs those icons, they will be wrong a lot of the time (newspaper as web etc.), and will needlessly cause bugs. All that they will accomplish is: they will delay the feature for another year.
I won't contribute to phab because it demands my email address. --Atlasowa (talk) 12:48, 12 February 2015 (UTC)[reply]
T71474 VisualEditor: Reference & cite tooltips should show content snippets, instead of generic labels --Atlasowa (talk) 14:00, 12 February 2015 (UTC)[reply]

DEWKIN times[edit]

If the time displayed on the "punchcard" tab are in UTC, then the labels should also be in UTC, not in am/pm form. Thanks. — The preceding unsigned comment was added by 206.248.131.55 (talk)

"UTC" in the Deep Wiki Inspector refers to the UTC timezone, not the time format (I don't even think a UTC time format exists), which is borrowed from GitHub and does not carry timezone information by itself. For example, a generic time of 17:00 can be represented as "5p", regardless of the timezone. DEWKIN is always UTC, so "5p" means "17:00 UTC", which is a particular time. I'm sorry for having taken so much to reply, and I hope to have solved your doubts. Regards, --Ricordisamoa 20:32, 28 June 2015 (UTC)[reply]

Structured Wikiquote[edit]

Hi! I'm a supporter of Structured Wikiquote; almost since I began to use current Wikiquote I realized that it should be structured and wikitext is not the best option.

I think the way to promote the project is making some progress on our own, to show the potential. I'm thinking running some servers: one reduced copy of English Wikiquote, one of Spanish Wikiquote, one of Wikidata and a server which will be the new front end of the project.

The creation of a special page to show the quotes whithin certain criteria (quotes from author W, quotes about X, quotes in work Y, quotes from character Z, etc.) it would be a great advance. This page must have a AJAX interface (killer feature to show the potential of the project) to edit, modify and delete the quotes, and their info; also it should be able to do the same without JavaScript (GET/POST actions).

Also, it would be useful some parser functions, like {{#quote|author=Q937}} to transclude the quote into the old projects. They will be able to choose bitween continue with wikitext+wikidata, transclude wikidata, or redirect to main multilanguage site.

As you can see, it's a lot of work. And I need time to my real job :P, so I think I will start at middle of May. But I don't know if is a task I could alone. We will see.

@Eloy: Thank you for supporting the project! I look forward to hacking on Wikibase in the next weeks and setting up a mockup with some real quotes. I suggest that we (interested people) design a proper data model before starting any concrete implementation. Later, as I wrote in Structured Wikiquote#Roadmap, a test instance could be created (e.g. at beta.wmflabs.org) for developers and testers alike. --Ricordisamoa 21:50, 4 April 2015 (UTC)[reply]

Please fill out our Inspire campaign survey[edit]

Thank you for participating in the Wikimedia Inspire campaign during March 2015!

Please take our short survey and share your experience during the campaign.



Many thanks,

Jmorgan (WMF) (talk), on behalf of the IdeaLab team.

23:34, 13 April 2015 (UTC)

This message was delivered automatically to Inspire campaign participants. To unsubscribe from any future IdeaLab reminders, remove your name from this list

Structured Wikiquote[edit]

C'è un'osservazione che mi aspettavo di trovare e che non vedo nella bozza. Riguarda il fatto che a mio avviso i migliori candidati alla migrazione, oltre ovviamente chi vuole sperimentare come avvenuto con wikidata, in questo caso non sono le wiki "piccole" in sè ma sono le wiki medio-piccole che hanno alla data di inizio sperimentato un uso massiccio del C.T. e/o una forte similitudine o semplicità linguistica. Questo include con ogni probabilità le wiki che già adesso sperimentano una "doppia versione" (le due no/nn), le lingue artificiali (esperanto), le lingue "ombrello" per aree multiculturali (indonesiano, malese), le lingue che hanno ceppi comuni molto forti e si differenziano solo per ragioni politiche (ceco/slovacco, serbo/croato).

Intendo dire che basandosi su criteri lingusitici si può ottenere una transizione molto più efficace. Si piantano dei ceppi solidi con forte interrelazione e che quindi hanno tutto l'interesse a migrare subito, che poi possono fungere comunque da "punto di partenza" per altree lingue medio-piccole a loro più simili (nei casi citati le altre lingue scandinave, le altre lingue slave, le altre lingue maleo-polinesiache)

In una seconda fase procederei sì a tappeto con concludere le lingue minori che fanno numero con minore sforzo ma questo soprattutto perché queste includono quelle di cui il parlante medio ha una forte conoscenza di una lingua principale (minoranze linguistiche: catalano, basco, sardo, frisone), perché di fatto anticipano l'ingresso come know-how di lingue nazionali maggiori.

A quel punto una minima base di partenza anche per le lingue principali si è comunque creata, esiste un'infrastruttura che ha mostrato di funzionare e quindi anche per le wikiquote più autonome e scettiche il rapporto costi/benefici inizia a essere diverso.

Questo specchietto varrebbe per qualsiasi migrazione di piattaforme "con testo scritto", non solo per wikiquote. Mi rendo conto comunque che wikiquote ha il vantaggio di avere un chiaro "item", ma in teoria l'item è pezzo di un testo che nella sua interessa se possibile a livello di copyrigth sarebbe comunque degno di essere archiviato a livello multilinguistico (Wikisource).

La chiaccherata del più e del meno finisce qua.--Alexmar983 (talk) 10:33, 22 April 2015 (UTC)[reply]

Global CSS/JS migration[edit]

Hello Ricordisamoa. You have global scripts and styles in User:Ricordisamoa/global.js and User:Ricordisamoa/global.css, which you import using your local CSS/JS pages. Since August 2014, your global.js and global.css pages are loaded automatically on all wikis. Although you requested cleanup via GlobalCssJs, there are still several pages left like wikivoyage:User:Ricordisamoa/common.css and als:User:Ricordisamoa/common.js. Do you want me to fix this by removing the imports from your local pages using Synchbot (without changing any other content)? —Pathoschild 01:58, 07 July 2015 (UTC)

@Pathoschild: My common.js on als, da, id and min can be safely deleted. Among the other ones, some are empty and mainly left for historical reasons; the rest are still useful and should not be changed. --Ricordisamoa 06:18, 8 July 2015 (UTC)[reply]
Done! You can see the list of changes on your archive page. —Pathoschild 03:50, 25 July 2015 (UTC)
@Pathoschild: Thank you! --Ricordisamoa 22:56, 25 July 2015 (UTC)[reply]

Question about DEep WiKi INspector[edit]

Hello Ricordisamoa! Quick question about DEep WiKi INspector – is there any particular reason that it doesn't "count" Reviewer in "User rights"? Just curious... Thanks! IJBall (talk) 21:29, 1 August 2015 (UTC)[reply]

Hi IJBall, thank you for reporting this issue. Actually, because of gerrit:183315 (whose announcement I guiltily missed), the tool was not reporting user rights changes at all. It should be fixed now. Thanks again! --Ricordisamoa 04:53, 2 August 2015 (UTC)[reply]
FWIW, I'm still not seeing the "Reviewer" right on mine. I also tested User:Hawkeye7 (someone with a number of user rights) just to be sure, and it's not displaying any [user] rights there, either – just "0". Just thought you should know... IJBall (talk) 18:44, 2 August 2015 (UTC)[reply]
Odd. Hawkeye7 (talk) 05:41, 5 August 2015 (UTC)[reply]
@IJBall and Hawkeye7: Hawkeye7@enwiki shows 5 user group changes to me. Sorry for not having mentioned that you may have to bypass your browser's cache to use the most recent version of the tool. --Ricordisamoa 18:55, 8 August 2015 (UTC)[reply]
Very interesting... But, several days later now, yes, it works! Thanks again, Ricordisamoa! IJBall (talk) 08:05, 12 August 2015 (UTC)[reply]

Your story[edit]

Hi Ricordisamoa, I hear your thoughts will be valuable here. :) — The preceding unsigned comment was added by MGalloway (WMF) (talk)

@MGalloway (WMF): Done --Ricordisamoa 23:52, 11 August 2015 (UTC)[reply]

Di passaggio...?[edit]

Ti ho intravisto su mul.source; io ci sto in vacanza.... :-) --Alex brollo (talk) 21:27, 15 August 2015 (UTC)[reply]

@Alex brollo: Può darsi che nasca qualcosa :-) Letta l'email? --Ricordisamoa 17:16, 16 August 2015 (UTC)[reply]

legacyscripts[edit]

Given phabricator:T75810 and your gerrit:217987, would it still be useful to go through all Wikimedia wikis and list all gadgets which have legacyscripts true? How to present and what to do with such a list? --Nemo 17:50, 18 August 2015 (UTC)[reply]

@Nemo bis: I guess most of them are very old and should be overhauled properly; some of the newest ones may work without changes, their authors not even knowing what ResourceLoader is; but many of them may as well be local copies of common snippets — then the Force™ should suffice. --Ricordisamoa 12:37, 23 August 2015 (UTC)[reply]

Question about DEep WiKi INspector[edit]

Hello Ricordisamoa. What is the purpose of the page "map"? --84.118.62.168 19:48, 17 September 2015 (UTC)[reply]

The "map" tab shows the location of the subjects of articles and files edited by the inspected user, if provided to the GeoData extension, i.e. via the #coordinates parser function. --Ricordisamoa 20:46, 17 September 2015 (UTC)[reply]

What future IdeaLab campaigns would you like to see?[edit]

Hi there,

I’m Jethro, and I’m seeking your help in deciding topics for new IdeaLab campaigns that could be run starting next year. These campaigns aim to bring in proposals and solutions from communities that address a need or problem in Wikimedia projects. I'm interested in hearing your preferences and ideas for campaign topics!

Here’s how to participate:

Take care,

I JethroBT (WMF), Community Resources, Wikimedia Foundation. 03:33, 5 December 2015 (UTC)[reply]

Notice of removal of global bot status from one or various accounts of yours[edit]

Hello PAGENAME}}. You are being contacted as owner of one or more accounts flagged with global bot status. This is to inform you that pursuant §1.1.4 of the global bot policy as amended by this RFC one or various of the global bots which you operate are inactive in the terms laid out by the global bot policy. As such, global bot status from those account(s) have been removed. This message is being left on Meta-Wiki and on your homewiki. We thank you for your work as global bot operator. If you have any questions or concerns, you can raise them at the Stewards' Noticeboard on Meta-Wiki. Best regards. —MarcoAurelio ~~~
— This message has been automatically delivered by on behalf of MarcoAurelio.

Future IdeaLab Campaigns results[edit]

Last December, I invited you to help determine future ideaLab campaigns by submitting and voting on different possible topics. I'm happy to announce the results of your participation, and encourage you to review them and our next steps for implementing those campaigns this year. Thank you to everyone who volunteered time to participate and submit ideas.

With great thanks,

I JethroBT (WMF), Community Resources, Wikimedia Foundation. 23:55, 26 January 2016 (UTC)[reply]

Global bot[edit]

This message is being left on your talk page at Meta-Wiki and those of your home wiki(s). Sorry for the duplicates.

Dear global bot operator: Some days ago you received a message in which you were informed that one or various accounts you hold lost a global bot flag because of inactivity. Due to a mistake, messages informing about this were not sent before removal took place as policy mandates. As such, if you think your bot will be active again on global bot duties, you can request the restoration of the global bot flag on the stewards' noticeboard at Meta-Wiki within the next two (2) weeks after this message has been posted. Please note that this removal was purely procedural based on inactivity. If you have any questions, you can reach me on my talk page at Meta-Wiki. Please accept my apologies in advance for this. Best regards. -- MediaWiki message delivery (talk) on behalf of MarcoAurelio at 18:11, 2 February 2016 (UTC)[reply]

Should FuzzyBot remove all potentially outdated translations?[edit]

Hello, thanks for adding multiple new translations in your language here at Meta-Wiki in recent years. Please join the discussion with your opinion: Should FuzzyBot automatically remove all potentially outdated translations?. Nemo (talk) 12:00, 1 March 2016 (UTC)[reply]

Open Call for Individual Engagement Grants[edit]

Greetings! The Individual Engagement Grants (IEG) program is accepting proposals until April 12th to fund new tools, research, outreach efforts, and other experiments that enhance the work of Wikimedia volunteers. Whether you need a small or large amount of funds (up to $30,000 USD), IEGs can support you and your team’s project development time in addition to project expenses such as materials, travel, and rental space.

With thanks, I JethroBT (WMF), Community Resources 15:57, 31 March 2016 (UTC)[reply]

DEWKIN[edit]

In DEWKIN, my live edits is "401" ,my deleted edits is "-15" and my total edits (including deleted) is "386".
I wonder why my deleted edits has a minus sign. This makes my total edits decrease.

In two other analysis tools, my live edits is "401", my deleted edits is "5" and my total edits (including deleted) is "406".

I wonder how they are different.
( but my total edits in pie chart in all analysis tools above is "401" )
Please check this for me. Thank you. --P03781p (talk) 10:22, 3 May 2016 (UTC)[reply]

Hi P03781p, unfortunately that's a known issue. I have created https://github.com/ricordisamoa/dewkin/issues/5 to track it. --Ricordisamoa 16:11, 8 May 2016 (UTC)[reply]

2016 Community Wishlist Survey[edit]

Hi,

You’re getting this message because you participated in the 2015 Community Wishlist Survey and we want to make sure you don't miss it this year – or at least can make the conscious choice to ignore if it you want to. The 2015 survey decided what the Community Tech team should work on during 2016. It was also the focus of Wikimedia hackathons and work by other developers. You can see the status of wishes from the 2015 wishlist at 2015 Community Wishlist Survey/Results.

The 2016 Community Wishlist Survey is now open for wishes. You can create proposals until November 20. You will be able to vote on which wishes you think are best or most important between November 28 and December 12. /Johan (WMF) (talk) via MediaWiki message delivery (talk) 11:17, 14 November 2016 (UTC)[reply]

Thanks for your participation during the Inspire Campaign focused on outreach to outside knowledge networks from February 2017. I'm interested in hearing your experience during the campaign, so if you're able, I invite you to complete this brief survey to describe how you contributed to the campaign and how you felt about participating. I want to improve how campaigns are run, so let me know if there's something that could be done better for next time.

Please feel free to let me know on my talk page if you have any questions about the campaign or the survey. Thanks! I JethroBT (WMF) (talk) 18:34, 31 March 2017 (UTC)[reply]

(Opt-out instructions)

Survey link error fixed[edit]

Hi there, there was a error with the Inspire survey link that caused the survey to be shown as expired, but has now been fixed. The link in the above message should now bring you to the survey. Apologies, I JethroBT (WMF) 19:20, 31 March 2017 (UTC)[reply]

DEep WiKi INspector: coordinates information[edit]

Hello,

Thanks for nice tool.

This is to let you know that some users are mislead by the interface into believing that the dots represent the geolocation of the editor's IPs when editing, which can lead to wasted time on SPI; see this for instance: see this wall of text; search keyword DEWKIN.

This is an easy mistake to make. I think this could trivially be avoided by some minor changes in the UI's label: "coordinates information" is vague, and could be replaced by something more univocal. Though making it short may take some thinking. "Locations edited" is not very good, but the best I can come up with right now. "Interests map" might be nice, but of course the current version of the tool only maps geographical interests.

<off topic>It would be at least 200% cooler if there were more abstract maps for Maths, Biology, Music and other, more abstract interests, but of course that would be a tremendous undertaking to formulate what that would even look like.</off topic>


Cheers Gamall Wednesday Ida (talk) 11:58, 7 July 2017 (UTC)[reply]

@Gamall Wednesday Ida: I am sorry for those who may have been misled by the map for so long... It has now got a caption that should hopefully make things clearer. You may have to clear your browser's cache to see it. Let me know if it isn't enough. --Ricordisamoa 19:45, 9 July 2017 (UTC)[reply]
Hello. I see the caption "The map shows locations associated with pages in the Main and File namespaces edited by the user. The area of each circle is proportional to the number of edits the user made to the corresponding page.", which, to my mind, is clear enough. Thanks for the quick reaction, and have a nice day. Gamall Wednesday Ida (talk) 20:05, 9 July 2017 (UTC)[reply]

dewkin: punch card[edit]

Hi, this thing is simply great! I wonder, how can I see such a thing not for one user, but, say, active users in ukwiki for he last month. Is it possible? It feels like something community building, like: "hey folks, we are similar, we all like to edit at 3 am on Saturday" --Ата (talk) 21:13, 26 September 2017 (UTC)[reply]

@Ата: Thank you for the feedback. I agree it would be interesting to compare different users' punch cards. How do you think it should look like (e.g. stacked/overlapping circles)? In the meantime I'll try to devise the implementation --Ricordisamoa 23:25, 27 September 2017 (UTC)[reply]

What is happening to this proposal with no demo?--Jusjih (talk) 05:11, 23 April 2018 (UTC)[reply]

Script Revert[edit]

Ricordo una volta avevi tra le tue creazioni uno script per il revert fatto veramente bene. Su it.wiki la pagina non è più accessibile e su wikidata ho trovato uno script ma non funziona. Mi sono perso qualcosa? perché il tuo era l'unico script che funzionava per i revert e sinceramente crosswiki mi servirebbe uno script funzionante per i revert veloci.--Wim b / [ t ] 23:28, 9 July 2018 (UTC)[reply]

@Wim b: Quale pagina su it.wiki non è più accessibile? Se intendi d:User:Ricordisamoa/Rollback.js, è bastata una piccola modifica a renderlo nuovamente funzionante. Stai attento però, gli edit appaiono molto simili ai rollback veri e propri, se non possiedi le relative autorizzazioni potresti essere redarguito 😓 --Ricordisamoa 22:13, 12 July 2018 (UTC)[reply]
Ricordisamoa eh, infatti adesso vedo il link. Una sola domanda: so che il tuo orgoglio te lo impedisce e ti capisco perché ho sempre ritenuto che sei un genio col JS, ma se aggiungi una cosa tipo "[[d:User:Ricordisamoa/Rollback.js|tramite script]]" alla fine, o "[[d:User:Ricordisamoa/Rollback.js|Script]]:" all'inizio, così si vede che è diverso e nessuno può dire nulla? Perché a differenza di roba tipo il revert di "Twinkle" il tuo funziona e visto che Twinkle è consigliato tra gli strumenti per lo SWMT… magarii trova il modo di accontentare tutti :p.
PS: Sì, dicevo proprio quello, ma una volta mi apre fosse anche su it.Wikipedia o almeno io avevo il link di quello. --Wim b / [ t ] 22:21, 12 July 2018 (UTC)[reply]
Ecco, una cosa tipo questa, un "Reverted n edit by user (talk). (using tuoScript)" così funziona bene, non si confonde con i revert "veri" e pace fatta per tutti. So che è una mutilazione per te perché il "bello" era proprio quello, ma se non può essere usato è pure peggio, no?! Io lo vedrei bene un po' castrato nell'aspetto e un po' potenziato nelle funzioni per essere usato bene cross-wiki, senza paura della crocefissione. --Wim b / [ t ] 00:02, 13 July 2018 (UTC)[reply]
@Wim b: Porti tu la croce? Avvistato lo script in una edit war con un vero rollbacker 😱 (notare etichetta "Annulla" invece di "Rollback"). Per non guastare il mio "esercizio di imitazione" che ne dici di un fork? Non ricordo metodi soddisfacenti per rendere gli script configurabili, ed eventuali modifiche all'originale non dovrebbero comunque risultare di difficile integrazione. --Ricordisamoa 07:54, 19 August 2018 (UTC)[reply]
@Ricordisamoa: Cosa intendi per «porti tu la croce»? io ho copiato lo script, attribuzione compresa, e me lo sono messo nel Global.js aggiungendo "[ SCRIPT ]" davanti al campo oggetto, così imita quanto basta ma allo stesso tempo anche un cieco può vedere che non è la funzione originale.--Wim b / [ t ] 17:22, 19 August 2018 (UTC)[reply]
@Wim b: Intendo ciò che hai inteso con «crocefissione» a causa di un uso scorretto dello script (benché operato da qualcun altro). Sentiti libero di diffondere il tuo fork nello SWMT anche segnalando eventuali difetti. --Ricordisamoa 13:36, 20 August 2018 (UTC)[reply]
una cosa che ho notato è che annulla le modifiche dell’ultimo utente e lo fa bene, però non “capisce” quando un altro utente ti anticipa, di fatto facendoti ripristinare il vandalismo. Per ora l’unico difetto che ho trovato è questo sul conflitto di edizione, se fosse semplice rimaritare sarebbe un bel passo avanti, sennò basta starci un po’ attenti e passare dalla cronologia come faccio io prima di chiudere il tab. Poi magari un giorno che sei in ena di risolvere problemi ne ho da sottoportene uno io per Wikibooks, diciamo che sono arrivato all’80% della soluzione da solo, ho solo un problema di “scaricamento”. —Wim b / [ t ] 14:21, 20 August 2018 (UTC)[reply]

2 chiarimenti su Lua[edit]

Ciao, al solito voglio sempre fare il passo più lungo della gamba, oggi ho due dilemmi con Lua:

  1. so che è possibile, ma mi sfugge il modo in cui farlo: in pratica su wikibooks ci sono 2 sommari, uno verticale e uno orizzontale, con gli stessi parametri, per quello verticale ho scritto questo e in qualche modo funziona. Visto per l'appunto che i parametri sono gli stessi volevo dividere in 3 funzioni, una che fa il lavoro sporco (recupera parametri, if, categorizza, ecc) e gli altri due che fanno apparire rispettivamente la tabella verticale o orizzontale, in modo da scrivere ad esempio {{#invoke:Sommario|verticale}} o {{#invoke:Sommario|orizzontale}} e far apparire l'orientamento giusto (al punto in cui sono arrivato facendo prove in pratica i valori non passavano da una funzione all'altra, perché mi dava sempre l'errore "parametro ... nil".
  2. su wikt invece ho scritto il modulo Vedi anche per far apparire il box apposito. Volevo prendere 2 piccioni con una fava e usarlo anche per le sezioni, rimpicciolendolo quindi, ho abilitato quindi il parametro "sect" che quando assume il valore "y" restituisce il box piccolo. E funziona, non fosse che anche la "y" mi finisce tra i link mostrati (vd. wikt:Wikizionario:Sandbox). La domanda sarebbe: è possibile distinguere in gruppi i parametri nominali da quelli generici col numeretto e prenderli in considerazione separatamente?

Spero sia una cos semplice, e se avrai voglia di risolverlo, anche da capire cosicché la prossima volta io mi limiti a copiare invece che chiedere. Purtroppo sei il mio risolviproblemi di fiducia, forse in una vita passata eri jack lo squartatore… --Wim b / [ t ] 17:37, 2 September 2018 (UTC)[reply]

@Wim b:
  1. Hai una pagina di prova che mostra l'errore? Altrimenti non capisco
  2. Una modifica minima come questa non gestisce tutti i parametri nominali ma forse è sufficiente?
--Ricordisamoa 17:40, 4 September 2018 (UTC)[reply]
  1. Ora, la pagina di errore non c'è perché alla fine non ho salvato nulla visto che mi dava errore. In pratica vorrei solo condividere i parametri tra la funzione "Verticale" (che è quella scritta qui e quella "Orizzontale" che non esiste perché non sono stato capace di condivedere questi benedetti parametri. Mi basterebbe che i parametri fossero gestiti da una funzione e le due tabelle da altre due funzioni distinte. Sennò duplico il codice che recupera gli argomenti e festa finita.
  2. eccheccavolo, almeno non sminuirla così, fai un po' di scene tipo "è una modifica tecnicissima da manuale esperto", ci sono stato dietro 3 ore e te me la sminuisci con "modifica minima" :) :p. (btw: se mi capitasse per il futuro, c'è anche un modo per escludere tutti i parametri nominali?) --Wim b / [ t ] 17:59, 4 September 2018 (UTC)[reply]
@Wim b:
  1. Proprio non vuoi aiutarmi eh? XD Ho implementato "Orizzontale" in Modulo:Wim b/Sommario cercando di condividere più codice possibile ma declino qualsiasi responsabilità sul risultato...
  2. Modificando quelle parti potresti scrivere
    for i, j in pairs(args) do
    	if type(i) == 'number' then
    		if mw.text.trim(j) == '' then
    			error ('[[Template:Vedi|Template Vedi]]: È stato specificato un parametro vuoto')
    		end
    		table.insert(lemmi, string.format('[[%s]]', mw.text.trim(j)))
    	end
    end
    
--Ricordisamoa 23:00, 4 September 2018 (UTC)[reply]
Il risultato sembra essere quello giusto, ma tanto non è che io sarei riuscito a tirarci fuori chissà cosa :) --Wim b / [ t ] 12:02, 5 September 2018 (UTC)[reply]
Comunque riguardo allo script del revert, avevo fatto una modifica, avevo sostituito il controllo su "sysop/rollbacker", con il controllo se ci fosse o meno il link, avevo messo:
if($('.mw-rollback-link').length > 0  ) {
	return;// user is rollbacker, no need for these buttons
 }
Perché in alcuni progetti avevano nomi diversi o il diritto era garantito un po' a tutti, come su en.books, che ti veniva dato dopo tot modifiche e con il discorso di palesare il fatto che si stesse trattando di uno script, non ho mai avuto lamentele di sorta--Wim b / [ t ] 17:45, 8 September 2018 (UTC)[reply]

Sono già passati 2 mesi…[edit]

… e non ho ancora avuto un'idea irrealizzabile per le mie (scarse) capacità. Il problema di oggi è: dovrei fare uno script per scrivere una ricetta su wikibooks, nell'altro computer ho il codice per aggiungere gli ingredienti e i passaggi, ho lo script per scrivere materialmente la pagina, ho il codice per creare una pagina speciale dal nulla, ma siccome le cose semplici non piacciono a nessuno, mi serviva il codice per aggiungere le varie categoria tramite (magari) un checkbox. Il problema qual'è?! che con le API ho dovuto mollare perché partendo da una categoria, non mi dava (o non sono stato in grado io) tutte le sotto-categoria fino all'ultima, allora ho provato con "CategoryTree", ho scritto <categorytree mode="categories">Ricette</categorytree> in una pagina e poi ho provato in console col codice

var IsCat = $('.CategoryTreeLabelCategory')
var IsHandler = $('.CategoryTreeBullet')

//IsCat.attr('havecb', 'havecb')

IsCat.attr('havecb', 'havecb').prepend('<input type="checkbox" name="Categoria" value="'+$(this).text()+'" id="Cat" style="">')

$('.CategoryTreeToggle').on("click", function() {

IsCat.each( function() {
if ( $(IsCat).attr('havecb') == 'havecb' ) {
    // do this
} else {
IsCat.attr('havecb', 'havecb')
$(this).prepend('<input type="checkbox" name="Categoria" value="'+$(this).text()+'" id="Cat" style="">')
}
		   })
})

E in effetti al primo giro mi funzionava, però poi ogni volta che premevo la freccetta blu per aprire la categoria, mi caricava la lista delle sottocategorie e il CB non lo appiccicava. Alla fine mi servirebbe che le categorie immediatamente sotto "Ricette" fossero titoli e le altre sotto-sotto-ecc. selezionabili con un CB, in pratica mi servirebbe che selezionando X CB alla fine la ricetta venga inserita in quelle categorie. Non so se sono riuscito a spiegarmi. C'è secondo te un modo per recuperare automaticamente queste categorie cosicché se domani ne venisse aggiunta una, non debba mettere mano allo script? Qualsiasi modo, perché visto che le ricette vengono inserite spesso e categorizzate mai, sarebbe stato secondo me un modo per avere la botte piena e la moglie ubriaca. Grazie in anticipo, anche solo se non mi manderai apertamente a quel paese… :p --Wim b 17:59, 21 November 2018 (UTC)[reply]

@Wim b: Ho identificato alcuni problemi quali:
  1. il primo this non funziona come credi, ti consiglio di documentarti su questo peculiare aspetto di JavaScript;
  2. una volta memorizzato in IsCat il risultato di $('.CategoryTreeLabelCategory'), esso non include automaticamente i nuovi elementi;
  3. similmente, il click viene registrato solo sulle freccette già presenti all'atto della chiamata $('.CategoryTreeToggle');
  4. la variabile IsCat si riferisce all'insieme degli elementi corrispondenti a ciascuna categoria, pertanto il suo metodo attr restituirà il valore dell'attributo appartenente al primo elemento quando usato nel primo modo $(IsCat).attr('havecb') ma imposterà il valore dell'attributo per tutti gli elementi nel secondo modo IsCat.attr('havecb', 'havecb');
  5. l'elenco delle sottocategorie potrebbe non essere ancora caricato quanto ti viene notificato l'evento click sulla relativa freccetta.
Secondariamente, inoltre:
  • è sconsigliabile creare elementi a partire da codice HTML contenente valori arbitrari come $(this).text();
  • l'attributo id è pensato per essere univoco nell'intera pagina, usato in quel modo risulta fuorviante.
Facile risolvere il problema 2 riselezionando gli elementi ogni volta, il 3 usando event delegation:
function addCheckboxes() {
	$( '.CategoryTreeLabelCategory' ).each( function () {
		if ( $( this ).attr( 'havecb' ) === 'havecb' ) {
			// do this
		} else {
			$( this ).attr( 'havecb', 'havecb' ).prepend(
				$( '<input type="checkbox" name="Categoria">' ).val( $( this ).text() )
			);
		}
	} );
}
$( '.CategoryTreeTag' ).on( 'click', '.CategoryTreeToggle', addCheckboxes );
addCheckboxes();
Tuttavia, il problema 5 obbliga a cliccare più volte sulle freccette per far apparire le caselle di spunta. O preferiresti un MutationObserver?
L'esercizio di oggi è: usa categorymembers e continue per liberarti da CategoryTree, o almeno provaci. --Ricordisamoa 10:15, 22 November 2018 (UTC)[reply]
So benissimo che il codice scritto non era dei migliori, ma non essendo riuscito a far scaricare quello che volevo tramite api, mi sono dovuto arrangiare con quello che avevo, :(. Ora vedrò di capirci qualcosa in quello che hai scritto sopra.
PS: hai ragione per gli ID, era il codice provvisorio per fare le prove, che oltretutto non avrei potuto usare dopo. Comunque secondo te è una cosa semplice o è complicata (per quanto hai visto su le mie capacità)? Sennò faccio la la lista a mano con “ul” e “li”… :D—-Wim b 12:13, 22 November 2018 (UTC)[reply]
@Wim b: Puoi usare promise e ricorsione. --Ricordisamoa 14:44, 22 November 2018 (UTC)[reply]
… credo che aggiungerò la lista a mano :)--Wim b 14:59, 28 November 2018 (UTC)[reply]
@Wim b: Preferiresti una lista già popolata con tutte le sottocategorie oppure una "dinamica" con freccette in stile CategoryTree? --Ricordisamoa 17:48, 28 November 2018 (UTC)[reply]
Non credo sia un problema l'una o l'altra, certo quella con le freccette tipo CategoryTree, sopratutto se come quest'ultima si presenta chiusa di default e poi cliccabile dopo, sarà certamente meno ingombrante, ma alla fine non vedo grosse differenze tra l'una e l'altra scelta. --Wim b 17:53, 28 November 2018 (UTC)[reply]
@Wim b: Ho una bozza che potrebbe interessarti:
var api = new mw.Api();

function getSubCategories( title, cont, pages ) {
	return api.get( $.extend( {
		action: 'query',
		generator: 'categorymembers',
		gcmtitle: title,
		gcmtype: 'subcat',
		gcmlimit: 'max',
		prop: 'categoryinfo|categories',
		clcategories: title,
		clprop: 'sortkey'
	}, cont ) ).then( function ( data ) {
		pages = $.extend( true, {}, pages || {}, data.query.pages );

		if ( data.continue !== undefined ) {
			return getSubCategories( title, data.continue, pages );
		}

		return $.map( pages, function ( page ) {
			return page;
		} ).sort( function ( a, b ) {
			if ( a.categories[ 0 ].sortkey > b.categories[ 0 ].sortkey ) {
				return 1;
			}
			if ( a.categories[ 0 ].sortkey < b.categories[ 0 ].sortkey ) {
				return -1;
			}
			return 0;
		} );
	} );
}

function doneFilter( pages ) {
	return pages.map( function ( page ) {
		var $li = $( '<li>' ).append(
			$( '<label>' )
			.text( new mw.Title( page.title ).getMainText() )
			.prepend(
				$( '<input>' ).attr( { type: 'checkbox', name: 'Categoria' } )
			)
		);

		if ( page.categoryinfo.subcats > 0 ) {
			$( '<button>' )
			.append(
				$( '<span>' ).text( '►' ),
				$( '<span>' ).text( '▼' ).hide()
			)
			.one( 'click', function () {
				var $ul = makeList( page.title ).appendTo( $li );
				$( this ).children().toggle();

				$( this ).on( 'click', function () {
					$ul.toggle();
					$( this ).children().toggle();
				} );
			} )
			.prependTo( $li );
		}

		return $li;
	} );
}

function failFilter() {
	return $( '<li>' ).text( 'errore' );
}

function makeList( title ) {
	var $ul = $( '<ul>' ).css( 'list-style', 'none' ).append(
		$( '<li>' ).text( 'caricamento in corso...' )
	);

	getSubCategories( title, {} )
	.then( doneFilter, failFilter )
	.always( function ( $listContents ) {
		$ul.empty().append( $listContents );
	} );

	return $ul;
}

makeList( 'Categoria:Ricette' ).appendTo( mw.util.$content );
categoryinfo consente di sapere subito se una categoria ne contiene altre. Se è sufficiente ordinare le categorie per titolo invece che per sort key si può semplificare con:
function getSubCategories( title, cont, pages ) {
	return api.get( $.extend( {
		action: 'query',
		formatversion: 2,
		generator: 'categorymembers',
		gcmtitle: title,
		gcmtype: 'subcat',
		gcmlimit: 'max',
		prop: 'categoryinfo'
	}, cont ) ).then( function ( data ) {
		pages = data.query.pages.concat( pages || [] );

		if ( data.continue !== undefined ) {
			return getSubCategories( title, data.continue, pages );
		}

		return pages.sort( function ( a, b ) {
			return a.title.localeCompare( b.title );
		} );
	} );
}
--Ricordisamoa 22:19, 2 December 2018 (UTC)[reply]
Cavolo, perfetto. Ora ho il resto del codice sul computer desktop ed ho perso il mouse -.- appena lo trovo implemento e adatto, grazie mille. Una sola domanda, c'è un modo per evitare che le categorie direttamente sotto a "Categoria:Ricette" abbiamo in CB vicino e che, al limite, vangano trasformati in titoli. Non è obbligatorio, se basta modificare una riga bene, altrimenti ci arriverò per vie traverse, o non ci arriverò proprio (non voglio abusare della tua gentilezza, perché sennò poi quando avrò un'altra idea superiore alle mie capacità, farai finta di nulla xD :p) --Wim b 13:08, 3 December 2018 (UTC)[reply]
@Wim b: Se ho capito qualcosa come questo fa al caso tuo:
function doneFilter( level, cbLevel, pages ) {
	return pages.map( function ( page ) {
		var $li = $( '<li>' ).append(
			$( '<label>' )
			.text( new mw.Title( page.title ).getMainText() )
			.prepend(
				level >= cbLevel ?
				$( '<input>' ).attr( { type: 'checkbox', name: 'Categoria' } ) :
				[]
			)
		);

		if ( page.categoryinfo.subcats > 0 ) {
			$( '<button>' )
			.append(
				$( '<span>' ).text( '►' ),
				$( '<span>' ).text( '▼' ).hide()
			)
			.one( 'click', function () {
				var $ul = makeList( page.title, level + 1, cbLevel ).appendTo( $li );
				$( this ).children().toggle();

				$( this ).on( 'click', function () {
					$ul.toggle();
					$( this ).children().toggle();
				} );
			} )
			.prependTo( $li );
		}

		return $li;
	} );
}

function makeList( title, level, cbLevel ) {
	var $ul = $( '<ul>' ).css( 'list-style', 'none' ).append(
		$( '<li>' ).text( 'caricamento in corso...' )
	);

	getSubCategories( title, {} )
	.then(
		doneFilter.bind(
			null,
			level !== undefined ? level : 0,
			cbLevel !== undefined ? cbLevel : 1
		),
		failFilter
	)
	.always( function ( $listContents ) {
		$ul.empty().append( $listContents );
	} );

	return $ul;
}
Applicati, è per il tuo bene 😛 --Ricordisamoa 19:30, 3 December 2018 (UTC)[reply]
Mi sto applicando… ho già scritto la funzione per duplicare i campi, sono alle prese con i plurali in un elenco di select, quindi devo fare qualcosa anche per quello, ma per ora sto andando avanti. Diciamo che lo scheletro è pressoché fatto, un paio di cosette qua e là, e una volta messa la prima versione, mi metto a scrivere la funzione per tradurre, come ho fatto per le forme flesse su wikt (che ti invito a provare negli accessori per darmi soddisfazione :p) --Wim b 19:38, 3 December 2018 (UTC)[reply]
Sennò poi dici che no mi impegno :)… b:it:Utente:Wim b/Ricetta.js, ho scritto un po' di roba e risolto alcuni problemi, ce n'è uno che mi ha bloccato parecchio, ma se non ne vengo a capo, modificherò tutto. In pratica ho 2 caselle di testo, un menù a discesa un checkbox (che disattiva il menù a discesa e attiva una terza casella di testo), se riesco a ordinare tutti i parametri e fargli gestire gli ID incrementali bene, sennò prendo e trasformo tutto in un'unica casella di testo, anche se non mi piace come soluzione e forse l'unica. --Wim b 16:26, 22 January 2019 (UTC)[reply]
@Wim b: Sono proprio necessari gli id? Potresti usarne molti di meno, gestendo i campi con jQuery per es. mediante .children(), .find() ecc. o semplicemente accumulando gli elementi in array. Se non riesci, ti prego di esporre il problema specifico invece di desistere. --Ricordisamoa 10:05, 25 January 2019 (UTC)[reply]

resa[edit]

È inutilmente complicata, pensavo di avere il codice e di sfruttare quello che feci a suo tempo per un altro progetto e in effetti funzionerebbe anche, ma laggiù lo gestivo con ".serialize()()" mentre qui non posso, ho provato a semplificare il codice lasciando solo un input per scrivere solo testo e il codice che mi funziona in console, non mi funziona nello script perché non mi trova le variabili che sono certo aver riportato correttamente, senza typo. A questo punto non credo valga la candela, mi dispiace averti fatto perdere tempo con il codice qui sopra per le categorie, vedrò di riutilizzarlo per qualcos'altro.. Grazie e scusa di nuovo. --Wim b 15:26, 25 January 2019 (UTC)[reply]

@Wim b: Eh no, adesso spiega bene il problema. A rendere il mio tempo sprecato è la resa, non la perseveranza! --Ricordisamoa 16:06, 25 January 2019 (UTC)[reply]
In pratica l'idea iniziale sarebbe stata mettere per ogni riga di ingredienti: una casella per l'ingrediente, una per la quantità, un menù a discesa per l'unità di misura e un checkbox che se spuntato disabilitava il menù a discesa ed abilitava un'altra casella per scegliere un'unità di misura arbitraria. Tutto sommato funzionava, avevo anche scritto il codice per reperire tutti i parametri
var fields = $( "#IngredientiNuovi :input" ).serializeArray();
    $( "#results" ).empty();
    jQuery.each( fields, function( i, field ) {
      $( "#results" ).append( field.value + " " );
    });

. In console mi funzionava, però mi recuperava i parametri così:

0 {name: "NuovoIngrediente00", value: "ing1"}
{name: "NuovaQuantita00", value: "Qant1"}, {name: "Quantita00", value: "ml"}, {name: "Altro00", value: ""}, {name: "NuovoIngrediente01", value: "ing2"}, {name: "NuovaQuantita01", value: "Qant2"}, {name: "Quantita01", value: "cl"}, {name: "Altro01", value: ""}, {name: "NuovoIngrediente02", value: "ing3"}, {name: "NuovaQuantita02", value: "Qant3"}, {name: "Quantita02", value: "l"}, {name: "Altro02", value: ""}

o al massimo con $('#result').text() una sfilza di roba tutta in fila "ing1 Qant1 ml ing2 Qant2 cl ing3 Qant3 l" che è inutilizzabile per creare un elenco numerato. Ho capito che era troppo complicato, forse troppo per nulla, allora ho ripiegato in un'unica casellona dove scrivi tutto a mano tipo "500 grammi di zucchero di canna" e poi passavi all'ingrediente successivo premendo sul bottone "+" che aggiunge una nuova casella (quella famosa con ID incrementali). Avevo scritto una funzione che, al solito, in console funziona poi quando la vado ad usare con un bottone, mi dice che la variabile non esiste (questa sotto è per recuperare i passaggi, ma vale lo stesso discorso perché la casellona riprendeva il codice di quest'ultimi, almeno risolvendo un problema ne avrei risolti 2):

resPass = $('input.Passaggio').map(function(_, el) {
        return $(el).val();
    }).get().join(';\n# ');
var resPass = '# '+resPass+'.';

// Elenca tutte le categorie da aggiungere
resCat = $('input[name=Categoria]:checked').map(function(_, el) {
        return $(el).val();
    }).get().join('|');
var resCat = '{{Categorie della ricetta|'+resCat+'}}';

	});

racchiusa in $( "input[name=submit]" ).click(function( event ) {…}) per essere sicuri che le variabili le avrebbe prese solo quando premevo il bottone, e quindi che (si spera) fossero state scritte), ecco, le variabili "resPass" e "resCat" non esistono secondo lui, nonostante che se prendo il codice e lo copio in console mi funziona tutto come dovrebbe. Il problema che mi ferma è il fatto che non possiamo sapere a prescindere quanti ingredienti e passaggi saranno necessari, quindi anche il sistema che ho usato per wikt:it:MediaWiki:Gadget-FormeFlesse2.js non funziona, idem se creassi un template che mi fa da struttura e poi passassi tutti i parametri con "serialize" in modo che ogni "&" mi diventi un "|" e quindi un parametro. Se esistesse un modo per far accettare ad un template un numero di parametri compreso tra 1 e 50 senza impazzire con gli if ecc, con serialize sarebbe anche veloce come soluzione, in un mio script personale funzionò bene. --Wim b 22:27, 25 January 2019 (UTC)[reply]

@Wim b: Quello che hai visto nella console è il risultato di $( "#IngredientiNuovi :input" ).serializeArray(), utilizzabile con un piccolo adattamento quale
var values = Object.create( null );
$( '#IngredientiNuovi :input' ).serializeArray().forEach( function ( input ) {
	values[ input.name ] = input.value;
} );
var resIngr = $( '#IngredientiNuovi > *' ).map( function ( i ) {
	var id = ( i < 50 ? '0' : '' ) + i,
		ing = [],
		qua = values[ 'NuovaQuantita' + id ];
	if ( qua ) {
		ing.push( qua );
	}
	ing.push(
		values[ ( 'AltraUnita' + id in values ? 'Altro' : 'Quantita' ) + id ],
		'di',
		values[ 'NuovoIngrediente' + id ]
	);
	return ing.join( ' ' );
} ).get().join( ';\n# ' );
resIngr = '# ' + resIngr + '.';
ma questo è solo uno dei possibili metodi e forse non il migliore. Come ulteriore spunto, anche tramite il fieldset puoi accedere ai campi in esso contenuti. Poi: in che senso le variabili non esistono? Non riscontro errori simili. Per quanto riguarda il numero arbitrario di parametri, i moduli Lua/Scribunto dovrebbero essere fatti apposta. --Ricordisamoa 14:40, 29 January 2019 (UTC)[reply]
ora non ho accesso al computer fisso in cui ho tutto il codice che ho provato, ma in pratica come lo avevo scritto io almeno, quando premevo il bottone mi diceva che quelle tre variabili non esistevano, avoglia di provare a spostare sopra, in cima, fuori dal “Ready” del bottone, ecc, mi diceva sempre che non esistevano. Comunque se con Lua posso fargli accettare una serie di parametri come “ingredienteN” dove “N” è un numero da 1a 50, senza fare il papiro dell’elenco di tali numeri, potrei provare a intraprendere tale strada e poi incastrarci in qualche

modo il codice che recupera le categorie…—Wim b 16:09, 29 January 2019 (UTC)[reply]

Vedendo questa pagina, mi verrebbe da dire "come sono stato bravo", ma non è vero… Per adesso è spartano al massimo ma fa quel che deve fare. Devo solo aggiungere due - tre campi ma dovrebbe essere semlice (stavolta veramente, sono 2 caselle semplici (nome della ricetta e per quante persone è) e una textarea per i consigli. Grazie ancora per l'aiuto, in qesti giorni (forse oggi stesso) proseguo e lo raffino. --Wim b 08:58, 5 February 2019 (UTC)[reply]
Però al solito, in antprima funziona e poi dal Gadget no… Come lo script per le forme flesse di Wikt, copio il codice per il link nel portlet da altrisicrt in cui appare, in anteprima tutto ok, poi quando lo vado a copiare nel gadget non lo vedo… Ma l'anteprima con gli strumenti per gli sviluppatori del browser, che ha in più dei gadget? perché lo script delle ricette funziona in anteprima e non se lo avvio da MW? perché se copio un codice da una parte lo vedo e dall'altra no? :S --Wim b 10:29, 5 February 2019 (UTC)[reply]
Come non detto, sono riuscito a risolvere, era il problema di una virgola di troppo e di mediawiki.util che necessitava di essere caricato per far apparire i link. Per adesso funziona lo script, va logicamente migliorato e perfezionato, ma già adesso mi pare che quel minimo che fa lo faccia discretamente. Grazie ancora per l'aiuto fondamentale. --Wim b 21:02, 8 February 2019 (UTC)[reply]

Toolforge tools you maintain need attention[edit]

https://tools.wmflabs.org/trusty-tools/u/ricordisamoa lists tools you maintain which need to be manually migrated from the legacy Ubuntu Trusty job grid to the new Debian Stretch job grid. Emails notifying you of this have been bouncing, so updating the email address associated with your Developer account would also be appreciated. --BDavis (WMF) (talk) 00:45, 18 March 2019 (UTC)[reply]

@BDavis (WMF): Thanks for the reminder. I've migrated what I could and shut down the useless ones. expose-data and octodata, if still in need of a fix, will be better handled by the other maintainers. The email issue is known as I'm yet to settle on a new address. Do not hesitate to ping me back in case I missed something --Ricordisamoa 23:15, 23 March 2019 (UTC)[reply]

Toolforge project wikidata-slicer[edit]

Hi, I found you listed as the maintainer for the tool Wikidata Slicer. What does that tool do? The name sounds interesting, but visiting the tool page gives a 500 Internal Server Error. Bennofs (talk) 09:46, 20 May 2019 (UTC)[reply]

@Bennofs: Thanks for showing your interest. The tool is (was?) meant for editing several Wikidata items at once especially in uncommon cases (e.g. conflicts, items needing to be split etc.). A half-working test version is available at toolforge:wikidata-slicer/demo while gerrit:241296 hosts the source code as currently deployed. I have been veeery slowly trying to get it into a usable state but haven't been following Wikidata news closely. Do you believe there can still be a niche for it that other editors don't serve well enough? --Ricordisamoa 08:15, 4 June 2019 (UTC)[reply]

Global templates[edit]

Hi!

I see that you are listed as one of the people who proposed Global-Wiki. It was closed as "consensus", but it's far from being actually implemented.

I am now trying to reboot this work. I wrote a similar proposal: mw:Global templates is the introduction, there are more details in mw:Global templates/Proposed specification, short version, and even more details in mw:Global templates/Draft spec.

This proposal is a little smaller in scope than Global-Wiki, but I have reasons to think that in this format it has a better chance of actually getting implemented.

I'd love to hear what do you think about it. If you support it, please sign at mw:Global templates/Discuss.

Thank you! --Amir E. Aharoni (talk) 13:39, 2 December 2019 (UTC)[reply]

Why did you let your own bot malfunction?[edit]

It's called User:The Mini PEKKA, its talk is User talk:The Mini PEKKA, its contribs are Special:Contributions/The Mini PEKKA, and its deleted contribs are Special:DeletedContributions/The Mini PEKKA! You have to keep your bots in check!

Un grazie e un libro sulla conoscenza libera per te[edit]

Wikimedia Italia
Wikimedia Italia

Gentile Ricordisamoa,

oggi ti scrivo a nome dell'associazione Wikimedia Italia per ringraziarti del tempo che hai dedicato ai progetti Wikimedia.

Come piccolo omaggio avremmo piacere di spedirti una copia (tutta in carta riciclata) del libro di Carlo Piana, Open source, software libero e altre libertà. Fornisci un recapito per ricevere una copia del libro.

Pochi giorni fa il mondo ha festeggiato la giornata dell'amore per il software libero, ma ogni giorno è buono per ricordare le garanzie delle licenze libere e le centinaia di migliaia di persone che si sono unite per costruire questo bene comune della conoscenza. Speriamo che questo libro ti sia utile per apprezzare quanto hai fatto e per trasmettere la passione della conoscenza libera a una persona a te vicina.

Se desideri una copia ma non puoi fornirci un indirizzo a cui spedirla, contatta la segreteria Wikimedia Italia e troviamo una soluzione insieme.

Grazie ancora e a presto,

Lorenzo Losa (msg) 15:15, 18 February 2020 (UTC)[reply]

Questionnaire invitation (a new tool to be developed, to verify media data)[edit]

Hi there, I'm developing a tool to assist users in verifying (structured) data of media on commons.

To understand the community's needs, I would like to invite you to participate in this questionnaire: https://docs.google.com/forms/d/e/1FAIpQLScbNdJdQYN1yBvEeKne48eWDU6SBsdlUfNBAmZyvUEBkCR1Gg/viewform?usp=sf_link. It should take ~2 minutes.

Thanks a lot. :D

(You received this message as you seems to have experience with structured data on Wikimedia projects.)

-- Gabrielchl (talk) 23:56, 20 May 2020 (UTC)[reply]

Pull request[edit]

Best regards. —Eihel (talk) 13:20, 7 July 2020 (UTC)[reply]

Merci :) I merged the patch-1 branch since it had a slightly better commit message than master's. --Ricordisamoa 16:23, 18 July 2020 (UTC)[reply]
Hello Ricordisamoa,
Please, it's nothing. It will help "francophones". But I have already seen your email from your Git. Let me reply here, since this is WM. Thank you for giving me the credit for the translation, but it's mostly about your work. To answer your question: don't hesitate if you want to ping me for "fr", but I could only add a file to my account (no authorization on your part for this folder). So, I will continue to notify you here about files made on my Git. Cordially. —Eihel (talk) 16:36, 18 July 2020 (UTC)[reply]

Inactive bot account[edit]

Hi. At mw:Project:Requests/User rights/Removal of inactive bot rights (2) there is a proposal to remove the bot rights of inactive bots. Since you appear to be the operator of one of the bots in question, I wanted to draw your attention to the discussion. Please let us know if the rights are still needed (or if they aren't). Thanks, --DannyS712 (talk) 02:47, 29 July 2020 (UTC)[reply]

@DannyS712: Answered. Thank you --Ricordisamoa 20:18, 30 July 2020 (UTC)[reply]

Help with logo design[edit]

Hi,Ricordisamoa,

I saw the credit for your design of the Xtools logo, and liked it, so I wonder if you would enjoy a logo design challenge for a English Wikipedia Talk page template? The English Wikipedia project "Wiki Education" has a collapse template with an ugly logo, that is used on article Talk pages when there are too many course assignment notifications of past "Wiki Edu" courses in the Talk page header. The logo is a plain black square with small white writing; it makes me think of funerals, and not a Wikipedia education project. The assignment notifications it contains, record past contributions by Wiki Ed students, but after a while, they take up too much vertical space, so we collapse them; see the example on this page, and click '[show]'. The course assignment template itself has its own logo, which is not bad; a little "graduation cap", representing the student. Now, we just need to find a better logo for the other template.

If this sounds like something you would be interested in, I have some ideas of what kind of logo might be interesting for the collapse header, instead of that ugly, black square, which I could share if you wish. Does this sound like something you'd enjoy working on? If not, do you have an idea of a couple of users who I might approach with this question? Puoi rispondere in italiano, si vuoi. Scrivere in italiano e piu dificile per me, ma capisco piutosto bene. Grazie di avanti (<-- is that how you say, "thanks in advance"?) (Please ping.) Mathglot (talk) 20:05, 25 August 2020 (UTC)[reply]

DEep WiKi INspector[edit]

The punch card violates de:WP:ANON. It gives detailed insights into the personal time usage. While this data is already known, it is personalized. Arccording to my knowledge it is part of ANON, to decide independenty, how and where very personal data is disclosed, such as a weekly schedule of "Wikipedia working hours", which may also reveal identity. Habitator terrae (talk) 16:34, 31 January 2021 (UTC)[reply]

I agree. Your tool is dangerous. At the very least, it should permit an opt-out for every user. Better, an opt-in for every user who has no problems with this detailed analysis of personalized data.--Mautpreller (talk) 21:47, 31 January 2021 (UTC)[reply]
Dear Ricordisamoa, your tool gives interesting information, but I would also like to ask you to do it like https://xtools.wmflabs.org/ec/de.wikipedia/Aspiriniks?uselang=de does and only have some basic data about all users and only detailed information about those who have actively done an opt-in (see for example https://de.wikipedia.org/wiki/Benutzer:Aspiriniks/EditCounterOptIn.js ), at least for the punch card and the map. I personally would opt in, but please think about users who live in semi- or non-democratic states and write about their home area: The combination of both punch card and map can help identify a user and cause him severe troubles. You may say in such states governments could use similar tools on their own. In theory maybe, but practically states seem to be unable to use computer technology, as you can see concerning school lessons via video conference, which still doesn't work in Germany and elsowhere (except Scandinavia) even now after 9 months :-) Many thanks, best regards, Aspiriniks (talk) 08:58, 2 February 2021 (UTC)[reply]

Dear Ricordisamoa, yes a very intersting tool indeed. But I think it is also illegal in the European Union under en:General Data Protection Regulation, it:Regolamento generale sulla protezione dei dati. At the very least, you should implement an opt-in for it, as others have suggested. Best Dietzel65 (talk) 15:23, 2 February 2021 (UTC)[reply]