|
No, I didn't found anything yet
|
|
|
|
|
I was wondering, how would one begin developing an application that would actually update itself so to speak?
Would it download new code and then recompile itself? or simply get the updated files and load them (from the start) using reflection? Are there any other ways?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
|
|
|
|
|
Mustafa Ismail Mustafa wrote: using reflection?
Is "reflection" referring to .NET platform? If so have you looked at the MSDN material for Updating Applications?
|
|
|
|
|
hi all,
i'm going to be working on a web application project using asp.net 2.0 with the database backend as oracle.
i would not have any problem developing my web application with oracle database, since ODP's are available and i can probably learn Oracle along the way...
my problem is such that, how do i set up the architecture such that, the web applications (asp.net) are hosted in a windows server 2003 machine (iis 6.0) and the database server (Oracle 10g) would be on a SUSE linux machine.
my queries would be:
1- how do i let the web app (asp.net + iis 6.0) communicate /access the oracle database hosted in suse linux?
2- would a SOA approach work on this? where there would be a service in the Oracle machine to access requests from the web apps & vice versa?
3- i also have to consider that i'm provided with a 64mb bandwidth connections.
any inputs would be much appreciated.
thanks all,
praetorean
|
|
|
|
|
Hi!
I'm working on a similar way: WindowsAPP/ASP.NET versus Oracle Database. Answering to your first question I'm using Oraclenet 10g client to access to database. It's the most faster to acces. You can download from oracle website. If you don't find it ask me.
Answering to the second question, when you install an oracle database, is included a service called listener that get connection from the outside.
Refering to your third question 64mb connection is Ok.
If you want more information ask me.
I hope I help you.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
so i guess it's feasible on the architecture that i'm working on.
i'll take a peek on the oracle 10g client.. but i'm afraid, Oracle is a new thing for me... so, i may need some catching up
as for the listener service, would appreciate if i get set some more details on this.
my understanding would that, upon oracle installation on the linux machine; oracle also installs the said listener.
any applications wanting to access oracle on the linux machine would be going thru that listener?
could i ask for more details on this... or can you point me to references pertaining this?
64mb is the initial constraint, the web application will be serving around 1800 users simultaneously at worst... would that be an issue?
thanks again
|
|
|
|
|
|
hi il_masacratore,
thanks for the heads up, my apologies for my delayed reply...
referring to your earlier input "Refering to your third question 64mb connection is Ok."
i was mistaken... my bandwith connection would be limited to a 64kb connection...
would it still be ok?
thanks
|
|
|
|
|
This 64Kb are client download capacity or server offer 64kb to client?
Visit my blog at http://dotnetforeveryone.blogspot.com
|
|
|
|
|
i can't tell for exact just yet...
let's just say, it'll be either of the two...
how do they differ?
|
|
|
|
|
I supose that your Windows Server has a connection of 64Kb with Oracle server. I supose it will be enough. If in the future your web app works slowly, you know which is your first bottleneck to check.
Visit my blog at http://dotnetforeveryone.blogspot.com
|
|
|
|
|
Hi Everyone,
Thanks again for helping me so much. I have another silly design question.
Is there a good way to validate object data?
I know that lots of people use the front-end to validate their data, but I was hoping to also validate the object data, just in case the front end fails. Perhaps this is overkill, but I assume it's a pretty common task. I'd rather not do a million if/then's. It would be great if I could write the logic only once. Is there a design pattern that could facilitate this?
Thanks!
Chad
|
|
|
|
|
There are several methods for this. I created one using Extension methods in C#.
The basic idea would be to create a class that implements a static method to implement a generic object. This method should accept the object to validate and a set of rules to validate the object against. If the validation fails the method should throw an exception containing the reason why the validation failed (Preferrably a message configured on a rule that failed validation).
Implementation could look like this:
public static class ObjectValidator {
public static void Validate(object objectToValidate,ValidationRuleSet ruleSet) {
foreach(ValidationRule rule in ruleSet) {
if(!rule.Validate(objectToValidate)) {
throw new ValidationException(rule.ErrorMessage);
}
}
}
}
Of course you need to expand this to support validation of specific properties each with multiple rules to check required fields and validate the value of the field against some pattern for example.
There should be some standard components out there that can be quite a timesaver here. Last time I checked Microsoft had a validation application block in their enterprise library which should fit quite nicely.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
Take a look at Validation Application Block (http://msdn2.microsoft.com/en-us/library/bb410105.aspx[^]).
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
In my search for information on how to design validation, I did find this as well. The only problem is that I'm working with VS 2003. I don't think I can do the .NET 3.0 stuff with that. Can I? If I cannot do the 3.0 stuff, I'm torn, because it doesn't make any sense to re-work what's already been done with the Application Blocks. I'm already using the older application blocks for data access, logging, and exception logging.
|
|
|
|
|
I need to learn UML. cany any have some idea?
|
|
|
|
|
|
|
UML Distilled and Marin Fowler's web site.
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
Hi,
I was wondering what the formula is to CHECK banaccount numbers in different countries.
I know eg: for Belgium it's AccNrDIV97 = last 2 digits of the Bank accountnumber.
so we can say that 000-0000000-97 is valid for BE to use as bank account number DUMMY !!
I am looking for a DUMMY for Luxemburg (to be used in a mandatory field in a new prg we purchased) can anyone help me find the formula ?
Kind regards,
R.
|
|
|
|
|
Hi,
actually it is MOD97 not DIV97, and I don't know whether -00 or -97 is used when
the 10-digit account number is a multiple of 97.
if you have code that checks LU numbers, just enter some and observe which ones get
accepted/rejected:
assuming the format is ###-#######-##:
try 000-0000000-XX for XX=00 to 99
then 000-0000001-XX for XX=00 to 99
etc obviously skipping the less relevant cases.
Chances are it is very similar to the BE situation.
Alternatively, if you have a (small) collection of valid LU numbers
(as published by LU companies), it should be easy to discover the checkdigit algorithm.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
actually, even if it is the MOD 97 instead DIV 97, the account number 000-0000000-97 is correct, I'm sure about that, it's the dummy for BE that we use !
I can give you a Lux-(lets shorten this word) account number.
I'm curious to let you figure out what the checkdigit algorithm is ! (it's not just 12 char long but 20 char.
LU970030859538550000 or LU950019120377915000
if you need more just let me know (I can't give you any names with those)
have fun !
cya
|
|
|
|
|
Radegonda wrote: if you need more just let me know
I don't need anything; whoever wants to find the check system for LU numbers
will need more than two examples, I would guess some 20 or so.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello,
I'm doing some free-time programming with learning objective (in c#), and one of my "projects" led me to separate data taken from a text file.
Opening and retrieving data is no problem, I just put it into a ListArray<> of string element for now. But when I want to separate the data from that ListArray, the only solution I've come up with is as 'ugly' as this one:
(some code here)
foreach (string str in stream)
{
if (str.contains(some string))
{
do something
}
else
{
if (str.contains(some other string))
{
do other thing
}
else
{
(... even more if's)
}
}
}
I think there should be another way to do this, specially without so much "contains" operations that are time consuming.
Can you give me some directions on how to break such items apart?
I'm thinking this could also be used in other areas like socket communication.
This feels like a very dumb question to me, but if I don't ask, I'll never learn.
Thanks for any help you can give me.
|
|
|
|
|
Have you come up with any good ideas?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|