Re: [Wikitech-l] Need example code in Javascript to login API

2016-10-26 Thread Bartosz Dziewoński
Firstly, I'm afraid that page might not be up to date; there have been 
some changes to modernize the login API recently, and that page was last 
updated in 2013. The canonical documentation is 
 (in English).


Secondly, login API is mostly intended for scripts running in the 
context of the wiki you want to log in to, not for scripts running on 
other pages or browser extensions. I'm not an expert on this, but I 
think you'll want to look into using OAuth: 
.


--
Bartosz Dziewoński

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Technical Design Intern Search | Job description

2016-10-26 Thread Cyken Zeraux
Typically I don't reply to emails concerning internal work, but I've always
found this:

   - Must be a current student or a recent graduate pursuing a degree in
   Computer Science, Information Systems, Computer Engineering, Electronics
   Engineering, Electrical Engineering or a closely related discipline

To be a killer to potential advocates that would have a far greater chance
of success in the position due to time, and direct knowledge of the
organization and software in question.

Anyways, hope to see another on the wikimedia crew.

On Wed, Oct 26, 2016 at 6:47 PM, Maria Cruz  wrote:

> Hello all,
>
> There is a new internship opportunity in the Community Engagement
> department for a Technical Design Intern. We are looking for a candidate
> who works and/or studies in the field of computer science and information
> systems, has experience in advanced wiki markup and design skills for web,
> and the ability to excel in a fast-paced, multitasking environment, among
> other qualifications.  Knowledge and or experience with Wikimedia Projects
> a plus!
>
> The Technical Design Intern will work closely with the Communications and
> Outreach Coordinator (that would be me!) on the Wikimedia Resource Center,
> the redesign of the Evaluation Portal on Meta Wikimedia, and migration and
> archiving of L&E portal pages from existing namespaces to new namespace,
> among other tasks. You can find the complete job description here:
> https://boards.greenhouse.io/wikimedia/jobs/488570#.WBE6X-ErKRs
>
> If you are interested, please apply. If you know someone who might fit this
> position, please forward the email to them!
>
> Cheers,
>
>
> *María Cruz * \\  Communications and Outreach Coordinator, L&E Team \\
> Wikimedia
> Foundation, Inc.
> mc...@wikimedia.org  |  Twitter:  @marianarra_
> 
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Latest search updates

2016-10-26 Thread Deborah Tankersley
After extensive testing over the last several months using a new search
query scoring method called BM25 (Best Matching) [1], we recently completed
a limited
​production ​
release to the following top languages: English, German, Spanish, Russian,
Portuguese, French, Italian, Polish, Dutch and Arabic. This new release is
replacing the older search method called tf-idf (term frequency-inverse
document frequency) [2].

We have
​additional
 testing to do [3,4] to figure out if BM25 will work in languages that
don’t use spaces in-between their words
​,​
i.e.: Japanese, Chinese, etc.

The Discovery team announces much of
​our​
 completed work in weekly status updates [5
​, 6​
], but some of the work isn’t actually obvious to anyone who uses our
search engine
​ - t​
hat is because it isn’t actually ‘live’ until a complete re-index of the
servers occur. We’ve created a recurring ticket in Phabricator [
​7​
] to keep track of the work that goes live
​ in production​
after a re-index, such as the one we’ve also just completed. A few
​ highlights​
of the
​recent ​
​re-index
 are implementing ascii-folding for the French language and
​fixing
 several
​ bugs​
for French ÿ, and Russian ’Е’ and 'Ё' when
​those characters are ​
entered in a search query.

Cheers from the Discovery Search Team!

[1] https://en.wikipedia.org/wiki/Okapi_BM25
[2] https://en.wikipedia.org/wiki/Tf%E2%80%93idf
[3] https://phabricator.wikimedia.org/T147495
[4] https://phabricator.wikimedia.org/T147501
​[5]
https://www.mediawiki.org/wiki/Wikimedia_Discovery#Updates​
[
​6​
] https://www.mediawiki.org/wiki/Discovery/Status_updates
[
​7​
] https://phabricator.wikimedia.org/T147505


--
deb tankersley
Product Manager, Discovery
irc: debt
Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] REMINDER: Wikimedia Developer Summit proposal submission deadline is in 5 days!

2016-10-26 Thread Srishti Sethi
Hello all,

Just a reminder that the deadline for the call for proposals for the Wikimedia
Developer Summit 2017
 is *next
Monday, October 31st, 2016*.

To submit your proposal, please visit
https://www.mediawiki.org/wiki/Wikimedia_Developer_Summit/Call_for_participation.


We look forward to reading your proposals!

Cheers,
Srishti

P.S. Ignore this message, if you have already submitted a proposal.

--
Srishti Sethi
Developer Advocate
Wikimedia Foundation

https://meta.wikimedia.org/wiki/User:SSethi_(WMF)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Technical Design Intern Search | Job description

2016-10-26 Thread Maria Cruz
Hello all,

There is a new internship opportunity in the Community Engagement
department for a Technical Design Intern. We are looking for a candidate
who works and/or studies in the field of computer science and information
systems, has experience in advanced wiki markup and design skills for web,
and the ability to excel in a fast-paced, multitasking environment, among
other qualifications.  Knowledge and or experience with Wikimedia Projects
a plus!

The Technical Design Intern will work closely with the Communications and
Outreach Coordinator (that would be me!) on the Wikimedia Resource Center,
the redesign of the Evaluation Portal on Meta Wikimedia, and migration and
archiving of L&E portal pages from existing namespaces to new namespace,
among other tasks. You can find the complete job description here:
https://boards.greenhouse.io/wikimedia/jobs/488570#.WBE6X-ErKRs

If you are interested, please apply. If you know someone who might fit this
position, please forward the email to them!

Cheers,


*María Cruz * \\  Communications and Outreach Coordinator, L&E Team \\
Wikimedia
Foundation, Inc.
mc...@wikimedia.org  |  Twitter:  @marianarra_

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Changing a default system message

2016-10-26 Thread Aran
Thanks a lot, that hook did the trick :-)


On 26/10/16 18:53, Krinkle wrote:
> If you want this to be part of site configuration or an extension, you can
> consider using the 'MessageCache::get' hook, which allows you to override
> which key will be retrieved. (For an individual site, I'd recommend
> changing the value through the MediaWiki namespace page for that interface
> message key.)
>
> We use this hook at Wikimedia to change the default for some localisation
> messages on all Wikimedia wikis at once - while still allowing individual
> sites to also override themselves via the MediaWiki-namespace.
>
> See the WikimediaMessages extension for an example:
>
> https://www.mediawiki.org/wiki/Manual:Hooks/MessageCache::get
>
> https://github.com/wikimedia/mediawiki-extensions-WikimediaMessages/blob/d742c363/WikimediaMessages.hooks.php#L22-L53
>
> This example may be more complicated than what you need, but it's a
> starting point from which you can simplify. here is a bit more
>
> -- Krinkle
>
>
>
>
> On Sat, Oct 22, 2016 at 7:12 PM, Aran  wrote:
>
>> Hi,
>>
>> I have an extension that change some of the default system messages for
>> example "talk" to "comment", but since upgrading to 1.27 these messages
>> no longer change. I've tried rebuildmessages.php and
>> rebuildLocalisationCache.php but nothing seems to allow me to override
>> these default messages any more. New messages that the extension
>> introduces can be changed no problem.
>>
>> Does anyone here know the proper procedure for doing this?
>>
>> Thanks,
>>
>> Aran
>>
>>
>> ___
>> Wikitech-l mailing list
>> Wikitech-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Changing a default system message

2016-10-26 Thread Krinkle
If you want this to be part of site configuration or an extension, you can
consider using the 'MessageCache::get' hook, which allows you to override
which key will be retrieved. (For an individual site, I'd recommend
changing the value through the MediaWiki namespace page for that interface
message key.)

We use this hook at Wikimedia to change the default for some localisation
messages on all Wikimedia wikis at once - while still allowing individual
sites to also override themselves via the MediaWiki-namespace.

See the WikimediaMessages extension for an example:

https://www.mediawiki.org/wiki/Manual:Hooks/MessageCache::get

https://github.com/wikimedia/mediawiki-extensions-WikimediaMessages/blob/d742c363/WikimediaMessages.hooks.php#L22-L53

This example may be more complicated than what you need, but it's a
starting point from which you can simplify. here is a bit more

-- Krinkle




On Sat, Oct 22, 2016 at 7:12 PM, Aran  wrote:

> Hi,
>
> I have an extension that change some of the default system messages for
> example "talk" to "comment", but since upgrading to 1.27 these messages
> no longer change. I've tried rebuildmessages.php and
> rebuildLocalisationCache.php but nothing seems to allow me to override
> these default messages any more. New messages that the extension
> introduces can be changed no problem.
>
> Does anyone here know the proper procedure for doing this?
>
> Thanks,
>
> Aran
>
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Labs and Wikitech outages Friday, 2016-10-28 at 15:00 UTC

2016-10-26 Thread Andrew Bogott
In order to address a security issue, we are patching and rebooting many 
physical Labs hosts.  The next round of this will begin at 15:00 UTC on 
Friday, which is 8:00AM San Francisco time.


Interruptions will include:

- A labs-wide network outage

- Wikitech downtime

- Horizon downtime

- Possible failures in new instance creation

None of the above should last more than a few minutes.  For the most 
part Labs instances will be unaware of the outages, and no action is 
required from users.


Apologies for any inconvenience caused!


-Andrew


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Need example code in Javascript to login API

2016-10-26 Thread Shrinivasan T
Hello all,

I am trying to develop a chrome extension to work with wikipedia.

Started exploring javascript for login api.

Got this example.

https://www.mediawiki.org/wiki/Example_login_code_in_JS_%28using_JQuery%29

Stored the code as test.html and opened in chrome.
Got the following error.

 No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed access.

How to solve this error?

https://www.mediawiki.org/wiki/Manual:CORS
The examples here are not helpful.

Please guide me on how to login to mediawiki via javascript?

Thanks.

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com

Get Free Tamil Ebooks for Android, iOS, Kindle, Computer :
http://FreeTamilEbooks.com

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l