Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jan Limpens

@Jan Limpens
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A service to process scheduled tasks
    J Jan Limpens

    Have a look at NServiceBus or Rhino Service Bus. They do exactly what you want.

    C# database question discussion csharp wcf

  • asp.net messageboard/discussionlist
    J Jan Limpens

    No offense intended, please. I could imagine it's a cat biting it's tail. Or, to stretch another (german) metaphor, pigeons go where other pigeons are, meaning, at a place where most of the conversation runs at a basic level 1) one does not ask a more difficult question because 90% of the readers will have very basic knowledge and one cannot expect many good answers 2) you don't learn anything by reading the existent content. So you just don't go there.

    The Lounge csharp asp-net question

  • asp.net messageboard/discussionlist
    J Jan Limpens

    hi, i just posted to the cp asp.net board, but when I browsed through the anterior messages, I found that most of the posts are treating extremely basic questions. Anyone know of a good and active asp.net group (etc...) with a more advanced level? -- jan

    The Lounge csharp asp-net question

  • Memory Usage
    J Jan Limpens

    Hi, I developed an asp.net based eCommerce Website for a client of mine and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up interactivity. The service suffers from a lot of restarts since discountasp enforces a 100mb per worker thread limit, when you top it, the service gets restarted. When there is a lot of traffic on the site, this happens almost every other minute and users see an unwelcoming "service unavailable" quite often. Now I already tried to strip down memory usage, by eliminating almost all session objects, by using datareaders instead of datasets and by by employing a very disconnected, database based "state" architecture, but I still cannot keep MB usage under 100mb. So I am about to tell my client that he will need to move to a host, that does not have such a strict memory policy, maybe a virtual host on a machine with few users. But to double check things: how does memory usage on your sites look like? Could you check in Taskmanager, what asp net uses when you view a single site, and the tell me, together with some info about the site's complexity? I would be very glad, to have some numbers, that could tell me, if it's really me, or if the host just is not thought for heavier usage. Jan

    ASP.NET csharp asp-net database algorithms architecture

  • ORM tool needed
    J Jan Limpens

    I have used Gentle.net in a few project (an am using it right now) and have been very impressed with its features. http://www.mertner.com/confluence/display/Gentle/Home Plus you can use it together with mygeneration and you will get most of your code generated. Mind if you get the pre release 2.0 version from cvs you should stick to another design paradigm which, by my knowledge, so far was not converted to a mygeneration template. 2.0 is cool because it uses generics and is streamlined in many ways, but I have not used it yet in production. Jan

    The Lounge tools question

  • CheckboxList in FormView with multiple selections via Databinding - HOW??
    J Jan Limpens

    Hi, I have got the following problem, maybe one of you guys already ran into it and knows the answer: I have a Formview bound to a ObjectDataSource for my class [Product]. It contains a Checkboxlist, bound to another ObjectDataSource which gets its Items from my class' [Category] SelectAll() method. Now every [Product] instance belongs to n categories (Product holds an IList with [Category] instances), and I need to bind them to the CheckboxList's Checked state. Unfortunately via DataBinding I can only access the SelectedValue (or SelectedIndex) field, which allows only for a single value and can select only one field. I cannot reach the CheckBoxList via code because evey control within a FormView seems to be completely out of reach. There aren't any visible instances (there is no protected CheckBoxList CheckBoxListCategories anywhere). So I am completely lost. I hope somebody can help me out of here :~ :sigh: -- Jan

    ASP.NET help question

  • Binding Business Objects to Controls (or not)
    J Jan Limpens

    Neither in A or B the businesslayer has any knowledge of it's representation (in my examples)

    C# question csharp css wpf wcf

  • Binding Business Objects to Controls (or not)
    J Jan Limpens

    Hello, I have a more ore or less complicated business object, that looks similar to this: has some properties (id, pubdate...) and a list of s each has a language, a title and a description Entry also has a list of s each , has a List of s with language, title and description To edit the objects properties I created a similar structure of controls has some Textboxes, a Tabstrip, holdig Tabs corresponding to s, again holding some Textboxes, and a list of s with their s. The question is, should the control A) know of the business object it represents? Should I instantiate EntryControl like this? Entry e = Entry.GetEntry("abc"); EntryControl ec = new EntryControl(e); and "inside" of EntryControl my Properties would be public string Id { get { return entry.Id; } set { entry Id = value; TextBoxId.Text = value; } } and have problems, once the user edits the fields, a call to Id, would still yield the object's value and not the textbox' new text value. But I'd have the advantage (still in Entry) that I could much better encapsulate the child controls creation and logic. public EntryControl(Entry entry) { VersionControl versionControl = new VersionControl(); versionControl.Versions = entry.Versions // now I can encapsulate // everything onwards in // VersionControl } or B) should my Controls be completely agnostic containers of agnostic sub controls (as the generic .net controls are) Instead: class EntryControl { private Textbox textBoxId, textBoxPubDate; public string Id { get {return textBoxId.Text; } set {textBoxId.Text = value; } } public VersionControl VersionControl; } class Client { void DoSomething() { Entry e = Entry.GetEntry("abc"); EntryControl ec = new EntryControl(); ec.Id = e.Id; ec.VersionControl = new VersionControl(); foreach(Version v in e.Versions) { VersionTab tab = new VersionTab(); // will be difficult to // reconstruct e later. What // if the user inserts a new version // in the middle...? tab.Title = v.Title; ec.VersionControl.Tabs.Add(tab); } // ... } } What is your opinion? What

    C# question csharp css wpf wcf

  • inserting xml nodes based upon an expression
    J Jan Limpens

    Probably, looking up the schema is a good idea and I am not at all against it. The problem is, that mingling xpath with schema to create missing nodes via dom is something extremely complicated. I wouldn't even know where to start. That's why I thought, that XUpdate would help me there, as it is an developed language for more or less this purpose. At least I am thinking it is. I just looked it up a few days ago and haven't found anything better since. But I have no idea, if XUpdate does not have any pitfalls I am not aware of, if the implementation, I found, is ok and most importantly, if there isn't some other, more straight forward way. As for explaining my somewhat confusing (I admit) text: I wrote a provider that allows me to update and delete nodes via xpath. That's something quite easy. Now I needed to insert nodes as well and as the xpath was something I already had in my classes, I tried to implement the insert as well via xpath. I failed at that and I am pretty sure that xpath just is not the right expression for the job. Even though others at cp have tried something quite similar: http://www.codeproject.com/csharp/xpathstore.asp So my examples have to be read with that bias: to use an xpath as an more or less equivalent to an sql insert statement.

    I query: /foo/bar[action='4']/element Now, this node does not exist, so it should be created (and it's predecessor bar with the attribute action=4). foo exists, so nothing needs to be done for it. Same aplies for /foo/bar[4]/element, just the attribute has to come from somewhere else (I can provide for this). /foo/bar[5]/element should fail (because there is no element bar[4] for it to be inserted after)

    Thanks for sharing your thoughts! Jan

    XML / XSL xml question csharp php performance

  • inserting xml nodes based upon an expression
    J Jan Limpens

    this should be better, now

    XML / XSL xml question csharp php performance

  • inserting xml nodes based upon an expression
    J Jan Limpens

    Imagine the following xml: xxx yyy zzz I query: /foo/bar[action='1']/element I get "xxx" and I can update it. Good. I query: /foo/bar[action='4']/element Now, this node does not exist, so it should be created (and it's predecessor bar with the attribute action=4). foo exists, so nothing needs to be done for it. Same aplies for /foo/bar[4]/element, just the attribute has to come from somewhere else (I can provide for this). /foo/bar[5]/element should fail This is not for a special xml file, but a generic solution, so it does not depend on any certain structure... Does this make things a bit clearer? -- modified at 16:53 Thursday 21st September, 2006

    XML / XSL xml question csharp php performance

  • inserting xml nodes based upon an expression
    J Jan Limpens

    Hi folks, I bind textboxes to nodes of an XmlDocument and refer to these nodes via an xpath statement. Updating existing content is really easy this way. My problems arise, when I try my xpath statement does not find the node in question and subsequentially I want to create it. Say, my xpath is "/def:Version/def:Entry[lang('en')]/Title" and the second element does not exist. At first I thought, I'd split my path into pieces, ininerate it backwards, reach the first existing node and then recreate the requested structure. This could work with very easy queries, but something like "def:Entry[lang('en')]" already would require my program to "understand" that it needs to create a from the xPath lang() function. I would end up writing a strange kind of xpath parser. And the idea isn't so good either, because I'd have to make my xpath super verbose, so that no elements (attributes!) are left out (and therefore could be created at need), which doubtlessly would decrease performance. I stumbled across a xupdate implementation at http://www.openvue.net/projects.php?menu=4 It's nunit testcases don't work 100% so I would have to invest some more time into this. That's why I wanted to ask you guys, what do you think: Xupdate is the way to go for me, or do you have any other good ideas? Thanks in advance, Jan

    XML / XSL xml question csharp php performance

  • Beer does a body good!
    J Jan Limpens

    Weiye Chen wrote:

    a new drink out of coffee + beer.

    that would be (some brands of) stout beer. found everywhere in the uk ;)

    The Lounge com question

  • Orson Welles in São Paulo
    J Jan Limpens

    Well, I've been to the centre of Sampa today, not the safest place to be, and everything was very quiet. Shops were mainly open and traffic was as good as usually only on sundays. Still people were on the streets and I saw some policmen joking around, too. Seemed there were some undercover negociations and things calmed down. Still, this whole situation is a shame for the country but fits very well to it's ubiquous corruption. Jan

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups