Recent Posts by Andrew Stacey
posted almost 13 years ago
Andrew Stacey
118 posts
|
I notice that Frederic has now closed this and says that the correct way to handle them is with |
posted 13 years ago
Andrew Stacey
118 posts
|
Seems that I can so I have. |
posted 13 years ago
Andrew Stacey
118 posts
|
When there are
So presumably in line 31 of
then there’s some HTML escaping going on that shouldn’t be. |
posted 13 years ago
Andrew Stacey
118 posts
|
(My word, but that’s a complicated form. “What did you do?” I looked at a MathML web page. “What happened?” It didn’t look right. “What should have happened?” It should have looked right.) |
posted 13 years ago
Andrew Stacey
118 posts
|
Errr … the |
posted 13 years ago
Andrew Stacey
118 posts
|
This looks like a bug in how Firefox renders MathML, but I thought I’d check with you first. How do and look to you? To me, the first has the hat offset to the right. I presume that it shouldn’t be so. |
posted 13 years ago
Andrew Stacey
118 posts
|
Ah, I’d better fix that first one then. I’ll keep the second in mind for next time this happens and choose my dates more precisely. |
posted 13 years ago
Andrew Stacey
118 posts
|
Just noticed that you got hit by the same spammer. I think that instiki.org also got hit, but then it’s hard to tell with that site anymore. Seems as though this spammer has gone for every instiki installation under the sun! |
posted 13 years ago
Andrew Stacey
118 posts
|
The azimuth project just got a massive spam hit, 317 pages in total. To deal with that, I ended up working on the database level. What I did was to try to simulate “rollbacks”: copy the data from the last decent copy and paste it as a new row in the “revisions” table. That seemed the safest approach. But it did get me thinking about the database and specifically the “revisions” table. Two questions:
|
posted 13 years ago
Andrew Stacey
118 posts
|
Okay, I’ll take a look at that. Is it obvious which file to add it to, or should I create a new file and add it to the page template? |
posted 13 years ago
Andrew Stacey
118 posts
|
This isn’t nLab-specific, but it’s neither a bug nor a feature requestion: more of a “How do I?”. There’s an effect that I’d like to put on a page (or a family of pages). It’s achievable in CSS using some fancy pseudo-classes, but some browsers don’t support it (notably mobile browsers) so I was pondering a javascript solution. Essentially, it would just modify some CSS properties of certain elements (selected by class) when a link was clicked upon. The details aren’t particularly important. What I want to know is whether or not there is an easy way to add a bit of javascript to a page. I suppose it could be added to all pages, but then it would be better if it were only all pages in a particular web. Something a bit like the stylesheet tweaks, but for javascript. |
posted 13 years ago
Andrew Stacey
118 posts
|
The optional argument syntax for extensible arrows doesn’t swallow spaces correctly. If I type |
posted 13 years ago
Andrew Stacey
118 posts
|
Thanks! That’s great. On another topic, is there any progress on cache bugs? With the file uploading, then it doesn’t work at all. When I upload a file to a page then that page doesn’t get expired. We’re also seeing it with renaming pages on the nLab. We’re trying to keep a record of it in case it’s of use to you: http://www.math.ntnu.no/~stacey/Mathforge/nForum/comments.php?DiscussionID=3168 |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
I just updated my course installation to the latest one, did the
There’s no reason why Instiki can’t create that directory, but I’m a bit at a loss as to why it is trying to do so. I restarted the web server and got the same error. |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
New one for you. This one’s possibly the most obscure yet! The wiki doesn’t like ampersands in file names; that is, in the
(and a whole load more “in XYZ”s - I presume that the whole trace isn’t necessary) |
posted 13 years ago
Andrew Stacey
118 posts
|
This is probably related to that last one. Is the black square inserted at the end of a proof also done by javascript? If so, that might be worth thinking about whether or not it makes the same assumption. In particular, if a proof ends with a bit of displayed maths then the square gets inserted into the containing div which is centred. This looks a little odd. |
posted 13 years ago
Andrew Stacey
118 posts
|
Back on the CSS thing. I’m going to experiment with taking it out on my course wiki (safer than on the nLab). Since it’s in the main instiki file I guess I have to take it out system-wide (though I could put it back on a per-web basis, I guess). What’s the safest way to do that given that this is a file in the VCS? Should I comment out the line, or delete it? (I want to avoid - as much as possible - breaking things when I do a |
posted 13 years ago
Andrew Stacey
118 posts
|
What are you using to show the source? My default is Firebug, though I also use the “View Source Chart” addon. Here’s what Firebug says it sees:
In particular, note that the second theorem label is a child of the If I just do the naive “View Source” then this is what I see:
So you’re right and wrong. What I’m seeing on the page is not an artefact of Maruku. Since the source sent by Instiki is correct, my guess is that it is Javascript that is converting the |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
Here’s a maruku bug; I guess I’m noting it as much for when (if!) you change engines as for hoping that it’ll get fixed now. In a theorem or proof environment, the conversion of the I’ve been trying to post an example here, but failing miserably. Even the correct syntax doesn’t seem to be working. So I’ve stuck an example at the top of the Sandbox in the nLab: http://ncatlab.org/nlab/show/Sandbox (I originally noticed this on my course wiki.) |
posted 13 years ago
Andrew Stacey
118 posts
|
I was on 759. I’ll upgrade today. I was also probably doing something more complicated than I described, only I can’t remember all the steps, since I was moving content from one page to another and renaming them. I thought I’d described the important ones, but there may have been something that I’d missed. I’ll try to be more observant of my own behaviour in case it occurs again! |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
Looking at the log, what I see is the following:
At that point, I get lots of
Seconds later, I go back to the tab with the original page in it and click “reload” to get:
In other words, the cached version is there. (Edit: “A load of content” is a substantial amount.) |
posted 13 years ago
Andrew Stacey
118 posts
|
Once again: thank you very much! |
posted 13 years ago
Andrew Stacey
118 posts
|
Talking about cache bugs (nlab thread), I think I just came up against another incarnation of The Dreaded Cache Bug of Bexhill on Sea. I was reorganising pages on my course wiki. I had a page that used to be a single page and now I wanted to split it into several. The stuff on that page was to go on one of the sub-pages, so I renamed that page. But I wanted to use the original page name as the main page. So I removed the automatically inserted redirect. Then I saved the page. The original page was still in the cache. As I wanted to create that page anyway, I manually entered the “new/page name” URL and that worked (“edit/page name” did not). |
posted 13 years ago
Andrew Stacey
118 posts
|
Forum: itex2MML – Topic: Feature Requests Here’s an anti-feature request. itex2MML should never implement
|
posted 13 years ago
Andrew Stacey
118 posts
|
(Repost from the other discussion as this looks bug-like to me.) Okay, let’s try this here. Compare and contrast: How it ought to look: With a Now with a bit of grouping to help. Somehow, the |
posted 13 years ago
Andrew Stacey
118 posts
|
No, no! Thank you. Let’s see if this makes Urs a little happier! |
posted 13 years ago
Andrew Stacey
118 posts
|
Given the number of links that Urs has on some of the nLab pages then I think this might well be a case for optimisation. If the page name doesn’t change, surely then you don’t have to expire any of the pages that refer to it? So it’s not a “don’t have to expire twice”, it’s a “don’t have to expire once”, isn’t it? Or am I missing something. |
posted 13 years ago
Andrew Stacey
118 posts
|
On occasion an expiration takes longer than 0.2ms, and when the number is in the thousands then the likelihood of that happening increases considerably, so is an overestimate. The largest number that I see in my slightly refined test is about 6000. That takes about 3s normally. In this log run, I had one taking 7s with 1400 expirations. What are the rules for which pages need fragments expiring when a page is saved? I’m getting a heck of a lot of expired fragments in the logs. Looking a little further then the above figures are underestimates because they don’t take into account the fact that the logs might be split over several files, or be separated by the logs for other requests. I have one log file consisting of 16876 lines. 15581 of them are ‘Expired fragment’s. There appear to be quite a lot of duplicates as well: In that lot, then |
posted 13 years ago
Andrew Stacey
118 posts
|
Okay, so I just did a crude time count. I do have some lists totalling in the order of seconds. I get one at 20s, three at 10s, and about 30 over 1s. (Usual caveats that I can’t tell that all of these are from the same request. They occur concurrently in the logs.) |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
Just saw the following in the logs:
|