From: Sergey C. <sem...@an...> - 2008-02-07 19:05:39
|
Sorry, I broke my setup trying to perfect compresstimeline.sh and never tested it afterwards. It works now. On Feb 7, 2008 2:37 AM, Markus Krötzsch <ma...@ai...> wrote: > On Mittwoch, 6. Februar 2008, Sergey Chernyshev wrote: > > Very strange - I updated SMW to the HEAD and timeline still works for me > > (although the code did change a bit): > > http://www.techpresentations.org/Conferences > > Actually, when I go there and do a SHIFT+CTRL+R, then the timeline does > not > work anymore, which is probably due to the fact that timeline-api.js [1] > is > not www-readable right now ;-) > > Markus > > [1] > > http://www.techpresentations.org/w/extensions/SemanticMediaWiki/skins/SimileTimeline/timeline-api.js > > > > > I wrote Unix shell script, Makefile and a patch to do the conversion on > the > > fly (uses ruby version of jsmin http://javascript.crockford.com/jsmin - > > feel free to replace with version in your preferred language): > > https://bugzilla.wikimedia.org/show_bug.cgi?id=12590#c2 > > > > It must be ungzipped into > extensions/SemanticMediaWiki/skins/SimileTimeline > > folder. > > > > make compress > > > > will do compression > > > > make uncompress > > > > will return the original state. > > > > BTW, check file permissions, it's possible that script creates files > with > > wrong permissions for your web server to use. > > > > Sergey > > > > On Feb 6, 2008 3:10 AM, Markus Krötzsch <ma...@ai...> > wrote: > > > On Freitag, 18. Januar 2008, Sergey Chernyshev wrote: > > > > Another possible issue - did you unpack CSS file next to .js file? > > > > It's a combined stylesheet that is used instead of 3 separate > > > > > > stylesheets > > > > > > > used by debug version of the code. > > > > > > > > On Jan 17, 2008 11:51 PM, Sergey Chernyshev < > > > > > > > > sem...@an...> wrote: > > > > > Hmm. That's strange. Did you try using unpacked version instead? > > > > > Can you see a timeline on this page: > > > > > http://www.techpresentations.org/Conferences ? > > > > > > Strange. That one works well. But if I copy the tarballed files into > my > > > local > > > SMW directory, I see a broken Timeline as described before. Maybe this > is > > > a > > > version conflict -- could you try to update your wiki to SMW1.0 (you > are > > > still running on RC1)? I might have changed minor things in the > timeline > > > code > > > some while back. I otherwise could not find differences in the > > > JavaScripts on > > > your site to the ones on mine. > > > > > > > > > Markus > > > > > > > > Sergey > > > > > > > > > > > > > > > > > > > > On Jan 15, 2008 9:51 AM, Markus Krötzsch < > ma...@ai...> > > > > > > > > > > wrote: > > > > > > On Freitag, 11. Januar 2008, Sergey Chernyshev wrote: > > > > > > > I've created a bug for Timeline code being too request-heavy: > > > > > > > http://bugzilla.wikimedia.org/show_bug.cgi?id=12590 > > > > > > > > > > > > > > And I also attached simple solution for it (combined and > minified > > > > > > > > > > > > version). > > > > > > > > > > > > > It reduces amount of requests from 23 to 4 and if server gzips > > > > > > static > > > > > > > > > > content, then timeline becomes just 25K of code combined (plus > > > > > > > the > > > > > > > > > > > > size of > > > > > > > > > > > > > requests, which dropped almost 6 times). > > > > > > > > > > > > > > It works fine on http://www.techpresentations.org/Main_Page(page > > > > > > > > > > > > loads > > > > > > > > > > > > > slowly, but for different reason - freaking DPL forcing page > with > > > > > > SMW > > > > > > > > > > queries to be recalculated every time page loads...). > > > > > > > > > > > > > > Let me know if it works for you and feel free to incorporate > it > > > > > > into > > > > > > > > > the > > > > > > > > > > > > > code. > > > > > > > > > > > > Actually, I just tried the code on a site and it did not work > :-( > > > > > > The > > > > > > > > > Timeline > > > > > > appeared as a translucent overlay of the whole page with various > > > > > > artefacts > > > > > > hanging around. I was not able to debug that further (at least > my > > > > > > JavaScript > > > > > > console showed no errors). > > > > > > > > > > > > Regards > > > > > > > > > > > > Markus > > > > > > > > > > > > -- > > > > > > Markus Krötzsch > > > > > > Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe > > > > > > phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 > > > > > > ma...@ai... www http://korrekt.org > > > > > > > > > > -- > > > > > Sergey Chernyshev > > > > > http://www.sergeychernyshev.com/ > > > > > > -- > > > Markus Krötzsch > > > Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe > > > phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 > > > ma...@ai... www http://korrekt.org > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Semediawiki-devel mailing list > > > Sem...@li... > > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > > > > -- > Markus Krötzsch > Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe > phone +49 (0)721 608 7362 fax +49 (0)721 608 5998 > ma...@ai... www http://korrekt.org > -- Sergey Chernyshev http://www.sergeychernyshev.com/ |