In case anyone else comes across a case where filenames include
non-alphanumeric characters like dashes and underscores, you'll notice they get stripped by default, which won't work very well with your style-sheets. I'd made the following three changes in my subclass of it, sacrificing readability a bit, but it's not like I ever look at selectors there anyway. (class) asSelector: aFilename ^('hex' , aFilename asByteArray asHexString) asSymbol. isFileSelector: aSymbol ^aSymbol startsWith: 'hex'. asFilename: aSelector ^(ByteArray fromHexString: (aSelector copyFrom: 4 to: aSelector size)) asString. Cheers, -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Mind you the whole class versus instance there seems a little arbitrary, we should just move it all one way it seems. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/10/16, Boris Popov <[hidden email]>:
> > > > Mind you the whole class versus instance there seems a little arbitrary, we > should just move it all one way it seems. That's right. One thing to keep in mind is that file library is not and never was supposed to be fully fledged or intended for production use. It's merely for cases where you would want to have the Scriptaculous examples work without an internet connection. Cheers Philippe > Cheers! > > -Boris > (Sent from a BlackBerry) > > > ----- Original Message ----- > From: Boris Popov > To: 'Seaside - general discussion' > <[hidden email]> > Sent: Tue Oct 16 11:19:22 2007 > Subject: WAFileLibrary and non-alphanumerics > > In case anyone else comes across a case where filenames include > non-alphanumeric characters like dashes and underscores, you'll notice they > get stripped by default, which won't work very well with your style-sheets. > I'd made the following three changes in my subclass of it, sacrificing > readability a bit, but it's not like I ever look at selectors there anyway. > > (class) asSelector: aFilename > ^('hex' , aFilename asByteArray asHexString) asSymbol. > > isFileSelector: aSymbol > ^aSymbol startsWith: 'hex'. > > asFilename: aSelector > ^(ByteArray fromHexString: (aSelector > copyFrom: 4 > to: aSelector size)) asString. > > Cheers, > > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > This email is intended only for the persons named in the message > header. Unless otherwise indicated, it contains information that is > private and confidential. If you have received it in error, please > notify the sender and delete the entire message including any > attachments. > > Thank you. > > > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
That most certainly depends on what "use" substitutes. In my case, I
just like to keep all external resources (gif/js/css/swf/xml) in the source; it just makes team development much easier. But I do use external editors during development, the stuff merely gets sucked into multiple subclasses each representing subdirectory and then get cached by the fronting server on a per-need basis from the basic responder in the image. The alternative to the last step is to dump them to a web server during deployment, which we used to do previously. -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Philippe Marschall > Sent: Tuesday, October 16, 2007 12:03 PM > To: Seaside - general discussion > Subject: Re: [Seaside] Re: WAFileLibrary and non-alphanumerics > > 2007/10/16, Boris Popov <[hidden email]>: > > > > > > > > Mind you the whole class versus instance there seems a little > we > > should just move it all one way it seems. > > That's right. One thing to keep in mind is that file library is not > and never was supposed to be fully fledged or intended for production > use. It's merely for cases where you would want to have the > Scriptaculous examples work without an internet connection. > > Cheers > Philippe > > > Cheers! > > > > -Boris > > (Sent from a BlackBerry) > > > > > > ----- Original Message ----- > > From: Boris Popov > > To: 'Seaside - general discussion' > > <[hidden email]> > > Sent: Tue Oct 16 11:19:22 2007 > > Subject: WAFileLibrary and non-alphanumerics > > > > In case anyone else comes across a case where filenames include > > non-alphanumeric characters like dashes and underscores, you'll > they > > get stripped by default, which won't work very well with your style- > sheets. > > I'd made the following three changes in my subclass of it, sacrificing > > readability a bit, but it's not like I ever look at selectors there > anyway. > > > > (class) asSelector: aFilename > > ^('hex' , aFilename asByteArray asHexString) asSymbol. > > > > isFileSelector: aSymbol > > ^aSymbol startsWith: 'hex'. > > > > asFilename: aSelector > > ^(ByteArray fromHexString: (aSelector > > copyFrom: 4 > > to: aSelector size)) > > > > Cheers, > > > > -Boris > > > > -- > > +1.604.689.0322 > > DeepCove Labs Ltd. > > 4th floor 595 Howe Street > > Vancouver, Canada V6C 2T5 > > http://tinyurl.com/r7uw4 > > > > [hidden email] > > > > CONFIDENTIALITY NOTICE > > > > This email is intended only for the persons named in the message > > header. Unless otherwise indicated, it contains information that is > > private and confidential. If you have received it in error, please > > notify the sender and delete the entire message including any > > attachments. > > > > Thank you. > > > > > > > > > > _______________________________________________ > > seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/10/16, Boris Popov <[hidden email]>:
> That most certainly depends on what "use" substitutes. In my case, I > just like to keep all external resources (gif/js/css/swf/xml) in the > source; it just makes team development much easier. But I do use > external editors during development, the stuff merely gets sucked into > multiple subclasses each representing subdirectory and then get cached > by the fronting server on a per-need basis from the basic responder in > the image. The alternative to the last step is to dump them to a web > server during deployment, which we used to do previously. So you use it as a hack because your Smalltalk SCM supports only Smalltalk? I must confess it is very temptating to use file library in this way. Is this a common pattern, do other people do this too? Cheers Philippe > -Boris > > -- > +1.604.689.0322 > DeepCove Labs Ltd. > 4th floor 595 Howe Street > Vancouver, Canada V6C 2T5 > http://tinyurl.com/r7uw4 > > [hidden email] > > CONFIDENTIALITY NOTICE > > This email is intended only for the persons named in the message > header. Unless otherwise indicated, it contains information that is > private and confidential. If you have received it in error, please > notify the sender and delete the entire message including any > attachments. > > Thank you. > > > -----Original Message----- > > From: [hidden email] [mailto:seaside- > > [hidden email]] On Behalf Of Philippe Marschall > > Sent: Tuesday, October 16, 2007 12:03 PM > > To: Seaside - general discussion > > Subject: Re: [Seaside] Re: WAFileLibrary and non-alphanumerics > > > > 2007/10/16, Boris Popov <[hidden email]>: > > > > > > > > > > > > Mind you the whole class versus instance there seems a little > arbitrary, > > we > > > should just move it all one way it seems. > > > > That's right. One thing to keep in mind is that file library is not > > and never was supposed to be fully fledged or intended for production > > use. It's merely for cases where you would want to have the > > Scriptaculous examples work without an internet connection. > > > > Cheers > > Philippe > > > > > Cheers! > > > > > > -Boris > > > (Sent from a BlackBerry) > > > > > > > > > ----- Original Message ----- > > > From: Boris Popov > > > To: 'Seaside - general discussion' > > > <[hidden email]> > > > Sent: Tue Oct 16 11:19:22 2007 > > > Subject: WAFileLibrary and non-alphanumerics > > > > > > In case anyone else comes across a case where filenames include > > > non-alphanumeric characters like dashes and underscores, you'll > notice > > they > > > get stripped by default, which won't work very well with your style- > > sheets. > > > I'd made the following three changes in my subclass of it, > sacrificing > > > readability a bit, but it's not like I ever look at selectors there > > anyway. > > > > > > (class) asSelector: aFilename > > > ^('hex' , aFilename asByteArray asHexString) asSymbol. > > > > > > isFileSelector: aSymbol > > > ^aSymbol startsWith: 'hex'. > > > > > > asFilename: aSelector > > > ^(ByteArray fromHexString: (aSelector > > > copyFrom: 4 > > > to: aSelector size)) > asString. > > > > > > Cheers, > > > > > > -Boris > > > > > > -- > > > +1.604.689.0322 > > > DeepCove Labs Ltd. > > > 4th floor 595 Howe Street > > > Vancouver, Canada V6C 2T5 > > > http://tinyurl.com/r7uw4 > > > > > > [hidden email] > > > > > > CONFIDENTIALITY NOTICE > > > > > > This email is intended only for the persons named in the message > > > header. Unless otherwise indicated, it contains information that is > > > private and confidential. If you have received it in error, please > > > notify the sender and delete the entire message including any > > > attachments. > > > > > > Thank you. > > > > > > > > > > > > > > > _______________________________________________ > > > seaside mailing list > > > [hidden email] > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > > > _______________________________________________ > > seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Well, supposedly it does by attaching files to packages, but I am
personally quite comfortable with this approach because I'm much more inclined to stick with classes, instances and messages myself than use some arbitrary SCM API, http://c2.com/xp/DoTheSimplestThingThatCouldPossiblyWork.html :) -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Philippe Marschall > Sent: Tuesday, October 16, 2007 12:34 PM > To: Seaside - general discussion > Subject: Re: [Seaside] Re: WAFileLibrary and non-alphanumerics > > 2007/10/16, Boris Popov <[hidden email]>: > > That most certainly depends on what "use" substitutes. In my case, I > > just like to keep all external resources (gif/js/css/swf/xml) in the > > source; it just makes team development much easier. But I do use > > external editors during development, the stuff merely gets sucked > > multiple subclasses each representing subdirectory and then get cached > > by the fronting server on a per-need basis from the basic responder in > > the image. The alternative to the last step is to dump them to a web > > server during deployment, which we used to do previously. > > So you use it as a hack because your Smalltalk SCM supports only > Smalltalk? I must confess it is very temptating to use file library in > this way. Is this a common pattern, do other people do this too? > > Cheers > Philippe > > > -Boris > > > > -- > > +1.604.689.0322 > > DeepCove Labs Ltd. > > 4th floor 595 Howe Street > > Vancouver, Canada V6C 2T5 > > http://tinyurl.com/r7uw4 > > > > [hidden email] > > > > CONFIDENTIALITY NOTICE > > > > This email is intended only for the persons named in the message > > header. Unless otherwise indicated, it contains information that is > > private and confidential. If you have received it in error, please > > notify the sender and delete the entire message including any > > attachments. > > > > Thank you. > > > > > -----Original Message----- > > > From: [hidden email] [mailto:seaside- > > > [hidden email]] On Behalf Of Philippe > > > Sent: Tuesday, October 16, 2007 12:03 PM > > > To: Seaside - general discussion > > > Subject: Re: [Seaside] Re: WAFileLibrary and non-alphanumerics > > > > > > 2007/10/16, Boris Popov <[hidden email]>: > > > > > > > > > > > > > > > > Mind you the whole class versus instance there seems a little > > arbitrary, > > > we > > > > should just move it all one way it seems. > > > > > > That's right. One thing to keep in mind is that file library is > > > and never was supposed to be fully fledged or intended for production > > > use. It's merely for cases where you would want to have the > > > Scriptaculous examples work without an internet connection. > > > > > > Cheers > > > Philippe > > > > > > > Cheers! > > > > > > > > -Boris > > > > (Sent from a BlackBerry) > > > > > > > > > > > > ----- Original Message ----- > > > > From: Boris Popov > > > > To: 'Seaside - general discussion' > > > > <[hidden email]> > > > > Sent: Tue Oct 16 11:19:22 2007 > > > > Subject: WAFileLibrary and non-alphanumerics > > > > > > > > In case anyone else comes across a case where filenames include > > > > non-alphanumeric characters like dashes and underscores, you'll > > notice > > > they > > > > get stripped by default, which won't work very well with your > > > sheets. > > > > I'd made the following three changes in my subclass of it, > > sacrificing > > > > readability a bit, but it's not like I ever look at selectors there > > > anyway. > > > > > > > > (class) asSelector: aFilename > > > > ^('hex' , aFilename asByteArray asHexString) asSymbol. > > > > > > > > isFileSelector: aSymbol > > > > ^aSymbol startsWith: 'hex'. > > > > > > > > asFilename: aSelector > > > > ^(ByteArray fromHexString: (aSelector > > > > copyFrom: 4 > > > > to: aSelector size)) > > asString. > > > > > > > > Cheers, > > > > > > > > -Boris > > > > > > > > -- > > > > +1.604.689.0322 > > > > DeepCove Labs Ltd. > > > > 4th floor 595 Howe Street > > > > Vancouver, Canada V6C 2T5 > > > > http://tinyurl.com/r7uw4 > > > > > > > > [hidden email] > > > > > > > > CONFIDENTIALITY NOTICE > > > > > > > > This email is intended only for the persons named in the > > > > header. Unless otherwise indicated, it contains information that is > > > > private and confidential. If you have received it in error, please > > > > notify the sender and delete the entire message including any > > > > attachments. > > > > > > > > Thank you. > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > seaside mailing list > > > > [hidden email] > > > > > > > > > > > > > > > _______________________________________________ > > > seaside mailing list > > > [hidden email] > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > > seaside mailing list > > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Philippe Marschall
On Oct 16, 2007, at 12:33 PM, Philippe Marschall wrote: > So you use it as a hack because your Smalltalk SCM supports only > Smalltalk? I must confess it is very temptating to use file library in > this way. Is this a common pattern, do other people do this too? I do essentially the same thing for OB-Web, though it's not based on Seaside. That's a slightly different case, I suppose, in that you really want CSS and Javascript the IDE to be served directly from the image; it's silly to require an external web server just to browse some classes. I've adapted Lukas' FTP server so they can be modified with an external text editor, which makes the whole thing very convenient. Yeah, it's a hack, but the end result is probably better than a "real" solution would be. Colin _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |