July 2002 Archives |
July 31, 2002
Cristopher Oliver came up a while ago (in an email dated May 20) with an idea of how to share the JavaScript bytecodes among various users, yet keep the variables space separate: I looked into this briefly and I think the following approach might work: precompile scripts using Context.compileReader() to Script objects instead of using Context.evaluateReader(). The compiled Script object is immutable and can be shared between threads. You can then evaluate the script on 'thrScope' via Script.exec(context, thrScope). This requires that all the script files that need to be read have to be aggregated as one single large file. I'm using a SequenceInputStream to do this, which works fine except for the fact that file location is lost. This means that error reporting is pretty much useless. What I want to do is create a specialized class which is able to keep track of source files and their line numbers. The JavaScript error reporting will then be able to use this object to report the correct location. Posted by ovidiu at 02:44 PM
|
The idea is to describe the RSS feeds you're interested in using a simple XML file format. The XSLT stylesheet is then used to process this file, obtain the RSS feeds from the remote sites, and translate them to HTML. This is a pull model, the program needs to be run at regular intervals to pull the RSS feeds and generate the HTML file, which could then be incorporated in the Weblog. A crontab entry should do the job. I plan to integrate this with MovableType by having the generated file be a template file instead of a plain HTML file, which could then be imported in another template to assemble a larger page. I still need to figure out all the details. I'll post the XSLT stylesheet and a sample description file as they become more stable. Once this foundation is in place, a MovableType user interface can be easily added. The UI will simply generate the XML description file, which could be used to generate the rest of the bits. I'll probably need some help doing this portion, as I'm very new to MovableType and I don't think I'll have the time to build this. Posted by ovidiu at 12:45 AM
|
July 30, 2002
Posted by ovidiu at 12:05 AM
|
July 29, 2002
I've managed to figure out how to add links to the categories each news item is posted in. I also added links to the defined categories. I found Mark Pilgrim's 30 days to a more accessible Weblog Weblog document a really good source for how to improve your site for better accessibility. One thing I still need to add is a simple search capability. I tried MT-Search, but I couldn't figure out how to integrate it nicely with the same look and feel as the rest of my Weblog site. Another thing I'd like to have is the ability to periodically publish RSS feeds from other people's Weblog and news sites. I need to find or write an RSS translator to HTML. This should be a fairly trivial task using Java and XSLT. Integration with the rest of MovableType would be the only problem, but I think that a simple crontab entry to automatically fetch RSS items and an HTTP GET request to MT to regenerate the Weblog should both solve the problem. I need to start a TODO list on my Weblog: the number of things I want to implement starts growing. Posted by ovidiu at 11:39 PM
|
I installed the BetterHTMLExport plugin in iPhoto, which allows you to customize the look of your pages. Next step is to write the templates to look the way I want them to. I then need to find or write a small plugin which allows the generated HTML to be published on a Web site of my choice, and not on mac.com, which is going away anyways. It's a shame the BetterHTMLExport plugin doesn't come with the source code, I need to reverse engineer the plugin API myself. I've used class-dump to do the initial investigation of the plugin API. Another thing I'd like to be able to do in addition to publishing the pictures on the Web, is to save them on a CD. I did find a plugin on the Web that does it, but it requires an external program, Toast Titanium to be able to do it (the program itself is ~$90). I think burning the CD can be done easily with the help of the MacOS X included hdiutil, a command line program for burning CDs. Posted by ovidiu at 02:29 PM
|
|
Cool stuff
Search
More from me
Picture gallery
![]()
Topics
Anteater (2)
Apple (44) Arduino (6) BeagleBone (1) Cars (5) Cocoon (26) Cool gadgets (14) Emacs (24) Google (15) Hardware (9) Java (31) JavaScript (2) Linux (12) Music (4) Open Source (22) People (2) Photo (23) Politics (1) Random (39) Travel (4) Web services (3) Weblogs (30) Work (1) XSLT (12)
Archives
October 2015
January 2015 January 2014 May 2013 June 2011 December 2010 September 2010 August 2010 June 2010 June 2009 May 2009 April 2009 February 2008 November 2007 July 2007 June 2007 May 2007 April 2007 October 2006 August 2006 June 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 July 2005 June 2005 April 2005 March 2005 February 2005 October 2004 September 2004 August 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 June 2002
People
Admin
|