[Wikitech-l] GSoC '14 Query

2014-02-26 Thread Narendra Nath Joshi
Hi all,
This is a query regarding GSoC '14. I'm proficient in Hindi and English. I
also am a hobbyist web developer and am quite familiar with
HTML/CSS/JavaScript. I wanted to know about the projects I can do as a part
of translation for GSoC 2014. Where do I start?

Thanks in advance.
Regards,
Narendra Nath Joshi
Bangalore, IN
+91 8050 434 665
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] GSoC '14 Query

2014-02-26 Thread Andre Klapper
Hi,

On Wed, 2014-02-26 at 18:41 +0530, Narendra Nath Joshi wrote:
 Hi all,
 This is a query regarding GSoC '14. I'm proficient in Hindi and English. I
 also am a hobbyist web developer and am quite familiar with
 HTML/CSS/JavaScript. I wanted to know about the projects I can do as a part
 of translation for GSoC 2014. Where do I start?

Thanks for your interest! Please take a look at
https://www.mediawiki.org/wiki/Google_Summer_of_Code_2014 
Don't hesitate to ask if something is unclear.

Cheers,
andre
-- 
Andre Klapper | Wikimedia Bugwrangler
http://blogs.gnome.org/aklapper/


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

[Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Petr Bena
There is StartTimestamp property used in edit api, which should
contain the time, when you started editing the page. This timestamp
needs to be in same timezone as wiki is.

How do you get current wiki time, so that you can either calculate the
timezone or use the time? For example:

1) Get current wiki time and store it
2) Edit the page
3) Use previously retrieved ts as StartTimestamp

How can I query the mediawiki in order to get the current time from
server's point of view

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

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Jeremy Baron
On Feb 26, 2014 9:14 AM, Petr Bena benap...@gmail.com wrote:
 How do you get current wiki time, so that you can either calculate the
 timezone or use the time?

How about using basetimestamp instead?

https://en.wikipedia.org/w/api.php says:
 basetimestamp - Timestamp of the base revision (obtained through
prop=revisionsrvprop=timestamp). Used to detect edit conflicts; leave
unset to ignore conflicts

 starttimestamp - Timestamp when you obtained the edit token. Used to
detect edit conflicts; leave unset to ignore conflicts

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

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Petr Bena
I am already doing that but I need to resolve conflict in new page.

There is no talk page for a user. I am sending a warning to this user.
If some other user with faster internet write that talk page faster
than me, I will overwrite it effectively deleting his message (because
there is no base revision for non-existent page).

In fact it's even worse. I am using new section for the warning and in
this scenario, result is that we both send the warning of same level
in same moment for 2 different edits. Which produces
https://bugzilla.wikimedia.org/show_bug.cgi?id=61933

On Wed, Feb 26, 2014 at 3:48 PM, Jeremy Baron jer...@tuxmachine.com wrote:
 On Feb 26, 2014 9:14 AM, Petr Bena benap...@gmail.com wrote:
 How do you get current wiki time, so that you can either calculate the
 timezone or use the time?

 How about using basetimestamp instead?

 https://en.wikipedia.org/w/api.php says:
 basetimestamp - Timestamp of the base revision (obtained through
 prop=revisionsrvprop=timestamp). Used to detect edit conflicts; leave
 unset to ignore conflicts

 starttimestamp - Timestamp when you obtained the edit token. Used to
 detect edit conflicts; leave unset to ignore conflicts

 -Jeremy
 ___
 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] How to retrieve current wiki time

2014-02-26 Thread Niklas Laxström
There is also param 'createonly' - Don't edit the page if it exists already
  -Niklas

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

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Brad Jorsch (Anomie)
The starttimestamp is returned when you query prop=infointoken=edit.

Note the returned timestamp should always be in UTC, formatted in ISO 8601
format (e.g. 2014-02-26T15:01:37Z).


On Wed, Feb 26, 2014 at 9:51 AM, Petr Bena benap...@gmail.com wrote:

 I am already doing that but I need to resolve conflict in new page.

 There is no talk page for a user. I am sending a warning to this user.
 If some other user with faster internet write that talk page faster
 than me, I will overwrite it effectively deleting his message (because
 there is no base revision for non-existent page).

 In fact it's even worse. I am using new section for the warning and in
 this scenario, result is that we both send the warning of same level
 in same moment for 2 different edits. Which produces
 https://bugzilla.wikimedia.org/show_bug.cgi?id=61933

 On Wed, Feb 26, 2014 at 3:48 PM, Jeremy Baron jer...@tuxmachine.com
 wrote:
  On Feb 26, 2014 9:14 AM, Petr Bena benap...@gmail.com wrote:
  How do you get current wiki time, so that you can either calculate the
  timezone or use the time?
 
  How about using basetimestamp instead?
 
  https://en.wikipedia.org/w/api.php says:
  basetimestamp - Timestamp of the base revision (obtained through
  prop=revisionsrvprop=timestamp). Used to detect edit conflicts; leave
  unset to ignore conflicts
 
  starttimestamp - Timestamp when you obtained the edit token. Used to
  detect edit conflicts; leave unset to ignore conflicts
 
  -Jeremy
  ___
  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




-- 
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Jeremy Baron
On Feb 26, 2014 10:09 AM, Brad Jorsch (Anomie) bjor...@wikimedia.org
wrote:
 Note the returned timestamp should always be in UTC, formatted in ISO 8601
 format (e.g. 2014-02-26T15:01:37Z).

Speaking of timestamp format, examples in api.php seem wrong for
basetimestamp.

The examples use entirely numeric timestamp like you get when paging
through [[special:log]] (in browser not API) The format returned by
prop=revisionsrvprop=timestamp does match the format you described.

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

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Petr Bena
HA

That is very useful and it kind of makes the start useless.
Combination of base and createonly seems to fit all scenarios to me

On Wed, Feb 26, 2014 at 4:06 PM, Niklas Laxström
niklas.laxst...@gmail.com wrote:
 There is also param 'createonly' - Don't edit the page if it exists already
   -Niklas

 ___
 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] TitleValue reloaded

2014-02-26 Thread Daniel Kinzler
I have just pushed a new version of the TitleValue patch to Gerrit:
https://gerrit.wikimedia.org/r/106517.

I have also updated the RDF to reflect the latest changes:
https://www.mediawiki.org/wiki/Requests_for_comment/TitleValue.

Please have a look. I have tried to address several issues with the previous
proposal, and reduce the complexity of the proposal. I have also tried to adjust
the service interfaces to make migration easier.

Any feedback would be very welcome!

-- daniel

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

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Brad Jorsch (Anomie)
On Wed, Feb 26, 2014 at 10:24 AM, Jeremy Baron jer...@tuxmachine.comwrote:

 Speaking of timestamp format, examples in api.php seem wrong for
 basetimestamp.

 The examples use entirely numeric timestamp like you get when paging
 through [[special:log]] (in browser not API) The format returned by
 prop=revisionsrvprop=timestamp does match the format you described.


Those should work too, as should any other format recognized by
MWTimestamp::setTimestamp().[1] But feel free to submit patches to update
the api.php documentation.


 [1]:
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/8c9c245f2ff506de275a5cabdcfdd5977a12963e/includes%2FMWTimestamp.php#L76


-- 
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] How to retrieve current wiki time

2014-02-26 Thread Brad Jorsch (Anomie)
On Wed, Feb 26, 2014 at 10:40 AM, Petr Bena benap...@gmail.com wrote:

 HA

 That [createonly param] is very useful and it kind of makes the start
 useless.
 Combination of base and createonly seems to fit all scenarios to me


starttimestamp should also handle the case where the page was created and
deleted in between when you originally checked and when you actually submit
the edit. Best would be to correctly use all three.


-- 
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Reporting a bug with the creation of pdf Files with equations

2014-02-26 Thread C. Scott Ananian
On Mon, Feb 24, 2014 at 1:06 AM, Antoine Musso hashar+...@free.fr wrote:

 span class=text-decoration:overline;q/span

 I guess the PDF generator does not support that CSS :-/


Is it possible to rewrite the templates to use the proper unicode
characters instead?  That would make a bunch of things happier (including
the new PDF renderer).
 --scott

-- 
(http://cscott.net)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Preview of the proposal for MediaWiki Homepage

2014-02-26 Thread Quim Gil
Three technical questions about

https://www.mediawiki.org/wiki/MediaWiki/Homepage_redesign/Preview

Are there ways to show the banner and features to new visitors while
hiding them to regular visitors?
https://www.mediawiki.org/wiki/Talk:MediaWiki/Homepage_redesign/Preview#What_can_you_see_without_scrolling


You can't define width:95% to a gallery, can't you.
https://www.mediawiki.org/wiki/Talk:MediaWiki/Homepage_redesign/Preview#Gallery


div vs table
https://www.mediawiki.org/wiki/Talk:MediaWiki/Homepage_redesign/Preview#Table_or_div

Please reply in the wiki page. Thank you!

-- 
Quim Gil
Technical Contributor Coordinator @ Wikimedia Foundation
http://www.mediawiki.org/wiki/User:Qgil

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

Re: [Wikitech-l] WikiConference USA May 30-June 1, scholarships available

2014-02-26 Thread Sumana Harihareswara
Reminder: the deadline to ask for funding help to get to Wiki Conference
USA is in 2 days (Feb 28).

-Sumana Harihareswara

On Thu, Jan 30, 2014 at 1:42 PM, Sumana Harihareswara suma...@wikimedia.org
 wrote:

 You can now submit tutorial or talk proposals for WikiConference USA, and
 you can register and ask for a scholarship for your travel expenses (more
 information below and at http://wikiconferenceusa.org/wiki/Scholarships). If 
 it'll be hard for you to get to the Zurich or London hackathons this
 year, consider meeting up at WikiConference USA.

 Sumana Harihareswara
 Engineering Community Manager
 Wikimedia Foundation


 Date: Tue, 28 Jan 2014 16:56:55 -0500
 From: Pharos pharosofalexand...@gmail.com
 To: wikimediaannounc...@lists.wikimedia.org
 Subject: [Wikimedia Announcements] WikiConference USA Announcement
 Message-ID:
 
 cajcrdm5+hquzyayerjd_4sf4zj2oktq8pmyr78lj23dzykj...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 I am very pleased to announce that Wikimedia NYC and Wikimedia DC are
 working in collaboration to host the first national Wikimedia conference in
 the United States!

 Here are the details for the conference:

 Dates: Friday, May 30, 2014 - Sunday, June 1, 2014
 Location: New York Law School (185 West Broadway, New York, NY 10013)
 Website: http://wikiconferenceusa.org
 Email: wiki...@wikimedianyc.org
 Registration: http://wikiconusa.eventbrite.org/

 For more information, please review our official press release below! We
 hope you will join us and help us spread the word!


 https://commons.wikimedia.org/wiki/File:WikiCon_USA_2014_Press_Release_v1.pdf

 Thanks,
 Richard (User:Pharos)
 Wikimedia NYC


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

Re: [Wikitech-l] Password Hash

2014-02-26 Thread Jeroen De Dauw
Hey,

I just stumbled across this wrapper [0] for the password functions
introduced in PHP 5.5. Figured this stuff is also relevant in the
discussion.

[0] https://github.com/ircmaxell/password_compat
[1] http://de1.php.net/password

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Primerpedia updated

2014-02-26 Thread Waldir Pimenta
Hi all!

Some of you might remember my previous
anouncementhttp://www.gossamer-threads.com/lists/wiki/wikitech/321799of
the Primerpedia proof of concept for the Concise
Wikipedia https://meta.wikimedia.org/wiki/Concise_Wikipedia proposal on
meta. After a long while, I finally implemented a basic search
functionality and some other fixes, so it should now be a minimally usable
tool. Give it a try! http://waldir.github.io/primerpedia/

--Waldir

ps - please fill issues or pull requests to the github repo (linked in the
footer of the site)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Preview of the proposal for MediaWiki Homepage

2014-02-26 Thread Brian Wolff
On 2/26/14, Quim Gil q...@wikimedia.org wrote:

 Are there ways to show the banner and features to new visitors while
 hiding them to regular visitors?
 https://www.mediawiki.org/wiki/Talk:MediaWiki/Homepage_redesign/Preview#What_can_you_see_without_scrolling

You would have to go a bit into the js side of things to do that.

I'm not sure that's a good idea though. In my experience (on a wiki
that used flagged revs), if the newbies see one thing, and regular
users see another, what ends up happening is no one notices when the
newbie oriented page is broken as the newbies don't know how to report
issues (or even recognize something is an issue), which is bad because
its the newbies where it is most important to make a good first
impression.

--bawolff

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