Recent Posts
posted 13 years ago
admin
63 posts
|
|
posted 13 years ago
admin
63 posts
|
I suppose there is a marginally higher probability that a ‘merge’ will succeed with some lines commented-out, instead of deleted. But I expect that it’s a small effect; hardly worth obsessing-over. |
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
distler
123 posts
|
Ah. I see. |
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
distler
123 posts
|
Sorry. Maruku’s HTML output looks perfectly OK (ie, as expected) in your example(s). (View the XHTML source, and tell me what you think is wrong with it.) What you are complaining about is that the CSS doesn’t produce the desired appearance of the output. Since you’ve been mucking about with the CSS of the Theorem Environment, why don’t you muck about some more and get it to format your example correctly. |
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
distler
123 posts
|
Are you using the current revision of Instiki? ‘Cuz that’s not the behaviour I see, when I follow the steps above. |
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
distler
123 posts
|
I’m not so sure I understand.
All instances of “Foo” were successfully removed from the Cache. What am I missing? |
posted 13 years ago
admin
63 posts
edited 13 years ago |
It’s a matter of the precedence rules that you expect not being respected by itex2MML
is set with an
the precedence of the ”
which is set with an
gives you what you were expecting. I think this is confusing. Probably, you were expecting Update:Let’s see: Yup. itex2MML 1.4.8 works as you’d expect. |
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
distler
123 posts
|
It’s the number of inbound links that matters, but yeah.
You do, for a newly-created page… but not, I agree, for a revision of an existing page. I was, somewhat crudely, not distinguishing between those cases. It occurs to me that I can use an |
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
distler
123 posts
|
That would be a consequence of
The first is further-complicated by the facility for renaming pages. That means we need to expire all the pages that refer to the old page and all the pages that refer to the new page. I guess that could be optimized better for the case where the page doesn’t change names, as we don’t have to expire the same pages twice. I think the current procedure was motivated by complaints (from y’all) that, in some circumstances, pages were not being expired when they should. |
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
distler
123 posts
edited 13 years ago |
On my machine, each Expired fragment takes 0.1-0.2 ms. So to get 10-20 s, you’re talking about expiring fragments?! Wow! That’s impressive. |
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:
|
posted 13 years ago
admin
63 posts
|
The “Expired fragment” log-entries all have times (in ms) attached to them, so you would be in a better position than I to tell how long they took to execute. But, yes, when you ask for new features (like |
posted 13 years ago
Andrew Stacey
118 posts
edited 13 years ago |
Urs is complaining about slow times again … Looking at the logs, I see a heck of a log of “Expired fragment”s. Do these add to a page’s rendering time? Or does the cache sweeper act non-synchronously (or whatever it’s called)? For example, in the logs I see 815 lines saying “Expired fragment:” and the request that it seems to be a part of (can’t be totally sure due to several processes running simultaneously) takes about 6s to render. A more systematic search of the logs shows it’s not guaranteed, but often the case that the following request is slow - and the times when it isn’t could be due to it being a parallel process (would need a more sophisticated search). |
posted 13 years ago
distler
123 posts
|
I’m a little baffled. It should work. Sometimes it does (saving the file triggers the cache sweeper); sometimes it doesn’t. I can’t see what the difference is. Will have to investigate further … |
posted 13 years ago
Andrew Stacey
118 posts
|
I’m on the latest version (758) on my course wiki and this still didn’t work (I thought that it did work just recently, though, did you undo something?). I uploaded a few files, then reloaded the page, and it had the greyed-out-with-question-mark look again. |
posted 13 years ago
Andrew Stacey
118 posts
|
Forum: Heterotic Beast – Topic: Bugs This place just remembered who I am. So that seems to be working now. |