Monday, February 12, 2007

How to run Zope from python shell

run usr/local/bin/python2.4

usr/local/bin is what the soft link in opt/zope_2.10/bin for python points to. The opt/zope_2.10 is listed in the control panel as the Python instance.

Friday, February 09, 2007

Example of how to write Atom 1.0 feed that handles escaped characters correctly.




http://groups.google.com/group/microsoft.public.dotnet.languages.csharp
LEFTBRACKETtitle type="text">microsoft.public.dotnet.languages.csharp Google GroupLEFTBRACKET/title>


LEFTBRACKETlink href="http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/feed/atom_v1_0_msgs.xml" rel="self" title="microsoft.public.dotnet.languages.csharp feed"/LEFTBRACKET
2007-02-09T15:17:39Z
Google Groups


Laura T. L...@NOWHERE.COM
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:17:39Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/64f2555f96a34a15

Re: The type initializer threw an exception

Did you notice this in your exception trace: <br> &quot; <br> - &lt;Exception ExceptionType=&quot;System.Argument&#173;NullException&quot; Message=&quot;The cache <br> storage cannot be null. Parameter name: cacheStorage&quot; <br> &quot; <br> &quot;bijay&quot; &lt;b...@discussions.microsoft.co&#173;m&gt; ha scritto nel messaggio




Stoitcho Goutsev (100) 1...@100.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:10:47Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/609e25318f6a4bb3

Re: PropertyGrid problem

Try to apply RefreshPropertiesAttribute attribute to your property. This will trigger refreshing of the property grid when its value changes.




John Duval JohnMDu...@gmail.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:11:48Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/70069e71e0d822f8

Re: Main() forced to handle exceptions

Hi tcomer, <br> I just ran your program and the exception *was* caught. Can you add <br> an exception handler to Main(), and write it out to the console or a <br> message box? My guess is that you're either getting a different <br> exception type (not FileNotFoundException), or you have some code in <br> the catch block of GetApplicationSettings which is also generating a




Laura T. L...@NOWHERE.COM
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:13:16Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/9ca422a31c0f8cd9

Re: Main() forced to handle exceptions

The documentation says that the Load method of XmlDocument class may throw <br> only XmlException, not FileNotFound exception or anything else. As you catch <br> only FileNotFound exception, your handler is not executed and the exception <br> will be blow as unhandled exception. <br> Are you sure you did see the FileNotFound exception?




> Adrian < n...@home.anywhere
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:11:42Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/c37afa4f877e40f0

Re: Library question

If have that reference in. <br> So that isn't the cause. <br> Adrian. <br> add




> Adrian < n...@home.anywhere
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T15:08:58Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/94719ed9acf4884e

Re: Library question

Not a silly question at all, <br> however &quot;using&quot; is there. <br> Adrian




DBC User dbcu...@gmail.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:58:34Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/370e431b48825e7d

File sync up question

Hi All, <br> I was going to write a program to sync up our webserver directory to a <br> network share directory. Before I do so, I would like to know is there <br> already a program available to do the same thing. Only requirement is, <br> I should able to provide where is the url to get files from and where <br> to put the files to and how often I am going to check.




bijay b...@discussions.microsoft.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:55:02Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/74c93a73f428e680

The type initializer threw an exception

We migrated our windows application from 1.1 to 2.0. The debug and Release <br> mode of the application work fine with some tweaking. But when the setup <br> project is migrated to 2.0 the installation gives the follwing error: <br> Message:The type initializer for <br> 'Microsoft.ApplicationBlocks.C&#173;ache.CacheService'




Dave KingOfTheBe...@community.nospam
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:53:59Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/9eafb3bc7f2b3cc4

Re: ContextMenuStrip and PreviewKeyDown

Thanks I'll take a look at it. <br> once <br> constructor: <br> <a target="_blank" rel=nofollow href="http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif">[link]</a> <br> rights.




Jay nos...
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:49:15Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/5096465676cb49eb

Re: convert string to double and count characters

Thanks Göran, that's very helpful. <br> Jay <br> Jay wrote: <br> You can use a regular expression to make sure that the format is <br> correct, and extract the interresting information. <br> You can use a pattern like this: <br> &quot;^load=([\-\d\.])([kM]) source=([\-\d\.](?:e\d+)?) <br> sink=([\d,])([kM])\s*(?:#.*)$&quot; <br> This will match anything outside the parantheses literarly, except the




tcomer tco...@gmail.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:50:03Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/694b88de6ded34e6

Main() forced to handle exceptions

Hello! I've run into a problem and I can't seem to understand &quot;why&quot; <br> the problem occurs. In my program: <br> using System; <br> using System.IO; <br> using System.Xml; <br> namespace MyNamespace <br> { <br> class MainApp <br> { <br> [STAThread] <br> public static void Main(String[] args) <br> { <br> // Using instantiation to allow Main to access a non-




jpuopolo jpuop...@hotmail.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:45:08Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/90bd5e87cb80d04b

Re: Library question

Adrian: <br> Maybe a silly question, but are you including a &quot;using&quot; directive? <br> jpuopolo




Jani Järvinen [MVP] j...@removethis.dystopia.fi
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:43:44Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/9fcbf2f345f321c5

Re: Library question

Hello Adrian, <br> all the three classes are defined in System.Windows.Forms namespace, so add <br> &quot;using System.Windows.Forms;&quot; to your C# code. <br> That should do it!




rossum rossu...@coldmail.com
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:38:05Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/00d5ba9c922add54

Re: IsHex() ??

On Fri, 09 Feb 2007 10:29:08 +0100, Tremendo &lt;nom...@hatespam.com&gt; <br> wrote: <br> bool System.Uri.IsHexDigit(char) would seem to be what you want. <br> rossum




Wilfried Mestdagh wilfr...@mestdagh.biz
microsoft.public.dotnet.languages.csharp@googlegroups.com

2007-02-09T14:35:36Z
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/528ee15abec539cb

scrolling form contents

Hi, <br> I have a form containing a menu strip where I add programatically items <br> on it, depending on a real time situation that can change. This is the <br> view to explain what I'm trying to tell: <br> <a target="_blank" rel=nofollow href="http://www.mestdagh.biz/test/1.gif">[link]</a> <br> But there can be more items so that it will not fit into the height of <br> the form. A possible solution is to scroll it (eventually with the top


Wednesday, February 07, 2007

How To Do Escaped Text In Atom





LEFTCARETlink href="https://www.blogger.com/atom/3024673" rel="service.post" title="Blogs of Note" type="application/atom+xml"/>
LEFTCARETlink href="https://www.blogger.com/atom/3024673" rel="service.feed" title="Blogs of Note" type="application/atom+xml"/>
LEFT CARETtitle mode="escaped" type="text/html">Blogs of NoteLEFTCARET/title>
LEFT CARETtagline mode="escaped" type="text/html"/>
LEFT CARETlink href="http://blogsofnote.blogspot.com" rel="alternate" title="Blogs of Note" type="text/html"/>
tag:blogger.com,1999:blog-3024673
2007-02-05T15:52:20Z
Blogger


This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the Blogger Help for more info.


true