Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Tei
Is my impression that this is a problem where a PHP implementation could be better. Who cares if is slow? the result can be cache forever?, is something you will run only once, and the heavyweight work (draw) will be made by C compiled code like the GD library?. you need speed in stuff that run in

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Bryan Tong Minh
On Tue, Mar 23, 2010 at 9:06 AM, Damon Wang wrote: > Hello everyone, > > I'm interested in porting texvc to Python, and I was hoping this list > here might help me hash out the plan. Please let me know if I should > take my questions elsewhere. > If I understand correctly, you want to write a scr

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Aryeh Gregor
On Tue, Mar 23, 2010 at 6:28 PM, Conrad Irwin wrote: > Many LaTeX installations can be made read/write/execute anything by > default. What does that mean? LaTeX can invoke external programs? Using what commands? Is this functionality actually enabled in practice in stock LaTeX installs? _

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Conrad Irwin
On 03/24/2010 02:00 PM, Aryeh Gregor wrote: > On Tue, Mar 23, 2010 at 6:28 PM, Conrad Irwin > wrote: >> Many LaTeX installations can be made read/write/execute anything by >> default. > > What does that mean? LaTeX can invoke external programs? Using what > commands? Is this functionality act

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Daniel Schwen
> Even if it were not possible to break out of restricted write18, there > will exist installations with write18 enabled, and I can't imagine > people remembering to check. Depending on the flavour of LaTeX in use it If people won't remember, surely either the MediaWiki installer or the extension

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Aryeh Gregor
On Wed, Mar 24, 2010 at 10:43 AM, Conrad Irwin wrote: > Yes, \openout, \write, \closeout, \openin, \read, \closein. The infamous > one is \write18, 18 is a special file descriptor that just executes > shell commands, you can also use \openin={|}. > > People have noticed this problem, so some distr

[Wikitech-l] Common.css not working

2010-03-24 Thread Makelesi Kora-Gonelevu
Hi im trying to hide the [view source] tab from annonymous users to my wiki. i pasted the following code in the MediaWiki:Common.css page but nothing happens. Any suggestions would be greatly appreciated. ___ Wikitech-l mailing list Wikitech-l@lists.wik

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Huib Laurens
Hi, I think you forgot to add the code. Best, Huib 2010/3/24, Makelesi Kora-Gonelevu : > Hi im trying to hide the [view source] tab from annonymous users to my wiki. > > i pasted the following code in the MediaWiki:Common.css page but nothing > happens. > > Any suggestions would be greatly appre

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Makelesi Kora-Gonelevu
Hi sorry here it is: isAnon() ) { ?> #ca-viewsource { display: none !important; } But nothing happens. I can still see the [view source] tab even when im an anonymous user. On Thu, Mar 25, 2010 at 11:54 AM, Huib Laurens wrote: > Hi, > > I think you forgot to add the c

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Q
On 3/24/2010 6:13 PM, Makelesi Kora-Gonelevu wrote: > Hi sorry here it is: > > > isAnon() ) { ?> > > #ca-viewsource { display: none !important; } > > [[MediaWiki:Common.css]] is for CSS only, you can't put PHP code in it and expect it to be interpreted. __

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Roan Kattouw
2010/3/25 Makelesi Kora-Gonelevu : >        #ca-viewsource { display: none !important; } You should only add this line and remove all the others. Roan Kattouw (Catrope) ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.o

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Chad
On Wed, Mar 24, 2010 at 7:41 PM, Roan Kattouw wrote: > 2010/3/25 Makelesi Kora-Gonelevu : >>        #ca-viewsource { display: none !important; } > You should only add this line and remove all the others. > > Roan Kattouw (Catrope) > > ___ > Wikitech-l ma

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Happy-melon
"Makelesi Kora-Gonelevu" wrote in message news:8f623ff1003241613r4bb92efcnbb3c19cc015ee...@mail.gmail.com... > Hi sorry here it is: > > > isAnon() ) { ?> > >#ca-viewsource { display: none !important; } > > > But nothing happens. I can still see the [view source] tab even

Re: [Wikitech-l] GSoC project advice: port texvc to Python?

2010-03-24 Thread Platonides
Aryeh Gregor wrote: > As long as the worst that could happen on a large majority of > installations is DoS, I don't think we should be afraid to rewrite the > code just because *maybe* it would be less secure. We should > obviously check over the new code carefully, but I wouldn't say it's > any m

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Makelesi Kora-Gonelevu
ok i will try to put the code in my skin.php file instead. On Thu, Mar 25, 2010 at 12:46 PM, Happy-melon wrote: > > "Makelesi Kora-Gonelevu" wrote in message > news:8f623ff1003241613r4bb92efcnbb3c19cc015ee...@mail.gmail.com... > > Hi sorry here it is: > > > > > > isAnon() ) { ?> > > > >

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread John Doe
Modifing commons.js should do it. I don't know JavaScript or I would give you the exact code On Wednesday, March 24, 2010, Makelesi Kora-Gonelevu wrote: > ok i will try to put the code in my skin.php file instead. > > > On Thu, Mar 25, 2010 at 12:46 PM, Happy-melon wrote: > >> >> "Makelesi Kora-

[Wikitech-l] strip trailing whitespace with a hook?

2010-03-24 Thread Jack Bates
Can I use a hook to strip trailing whitespace from the ends of lines when a page is saved? In other words, between an author editing a page and the edited wiki text getting stored in the database, I want to strip trailing whitespace from the ends of lines Can I do it with a hook? ___

Re: [Wikitech-l] strip trailing whitespace with a hook?

2010-03-24 Thread Dmitriy Sintsov
* Jack Bates [Wed, 24 Mar 2010 20:10:03 -0700]: > Can I use a hook to strip trailing whitespace from the ends of lines > when a page is saved? > > In other words, between an author editing a page and the edited wiki > text getting stored in the database, I want to strip trailing whitespace > from

[Wikitech-l] ExternalAuth design

2010-03-24 Thread Ryan Lane
I'd like to discuss the proposed change to the authentication plugin system (http://www.mediawiki.org/wiki/ExternalAuth). As proposed, I don't see how I'll be able to keep most of the functionality in the LDAP extension. I don't disagree that policy and implementation shouldn't be mixed, but core

Re: [Wikitech-l] Common.css not working

2010-03-24 Thread Jean-Marc van Leerdam
Hi, On 24 March 2010 23:34, Makelesi Kora-Gonelevu wrote: > Hi im trying to hide the [view source] tab from annonymous users to my wiki. > Regardless of whether you succeed in hiding the 'view source' tab, how will you counter URL manipulation by the user? AFAIK anyone can change the URL to ..