|
You should use only WCF. I am using WCF (.NET 4.0) with net.tcp protocol because it provides both: security (SSL)and maximum speed!
Raul Iloc
|
|
|
|
|
The problem with MSMQ is that the payload size is limited to 4 MB
We created a actually a framework that can transport jobs to multiple machines using :
1. MSMQ (only as an event trigger)
2. WCF + MS SQL (for managing the job distribution transaction based )
3. and a TCP component for async transport of the payload.
4. A base class that you inherit in each (windows service) application you build to process a job. This class gets and returns the payload to the WCF which stores or retrieve the data from the Database.
On which server a job has to be processed and what process should handle the job is controlled by a simple xml flowlist. This flowlist can be requested from a WCF service.
|
|
|
|
|
A very interesting solution. I'm well under the four meg limit, but have a future proofing exposure.
Ger
|
|
|
|
|
|
Hi there,
im making reportage website and i want that the editor/reporter will have the ability to edit his reportage with "rich text editor" i kinda found my rich text editor.My question is how does it works snd how do i set it on my website i use asp.net...:/
every help will be aprreciated
|
|
|
|
|
your post is not clear, please add details to your message.
|
|
|
|
|
Where I can find tutorials/samples/blogs/whatever which MVVM, Entity Framework and TDD are working together?
Here, there are a lots of articles about those topics but I would like to see examples with all in one project. The UI technology does not matter, it can be in WPF or Silverlight.
Thanks.
(Sorry for my poor English )
|
|
|
|
|
I have an IT-architectural problem and probably not enough experience to take an objective and with criteria decision. The problem is the following:
I have an ASP.net web monitoring application which gathers, processes and shows information to connected users near to real time. This information has also to be processed by an AI-based expert system. At this point, JBoss Drools was selected as the most adequate engine to deal with this task. The selected version of this expert system engine is the Java version while the body of the main application works over C# (to select the C# Drools version is not a feasible option). Then, I should find the best way to connect both parts of the application.
1. The first option is to connect both processes through web services. This is, to deploy as a Java Web Service an interface of the Java part of the application in order to add elements to the knowledge memory of the expert system, and retrieve the "results" (alarms or warnings). Something like to publish a method as:
public newAlarmsOrWarnings addFacts(factsToAddToTheKnowledgeBase fa, factsToRetrieveFromTheKnowledgeBase fr);
which should be called by the main C# /ASP.NET process.
2. To maintain a record of changes in the database and regularly (e.g. every 5 seconds) poll this table looking for updates. The problem is that this way I will have two separate accesses from two very independent sources to the database, which is not a pleasant situation so the application will be maintained and expanded in the future and it implies more work, higher chance of problems, etc.
3. Other "mix" solutions.
Any suggestion will be very welcome; thanks in advance.
PD: English is not my native language so please take it into account when you discover any typing error.
|
|
|
|
|
Web Services are really a great route for this kind of thing.
You could also look into ProtoBuf[^] if you really care about latency (XML can add a few nanoseconds here and there).
Finally, IKVM[^] lets you run Java code directly on the .Net framework (you might want to look at ikvmc[^] specifically).
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb]
Jonathan C Dickinson (C# Software Engineer)
|
|
|
|
|
I have installed adobe indesign cs6 trial and i cant find the toolbar. can anyone help?
I have tried pressing tab and also removing the indesign defaults file
can anyone help?
|
|
|
|
|
I would raise this on the Adobe support site. While I appreciate that this forum is called Design and Architecture, it's actually about application design, not UI design tools.
|
|
|
|
|
There is a huge hybrid battle ship that sail, load cargo, carry ammunition, commandos, & sometimes go down the water like a submarine, and some time camouflager itself based on the surroundings. It does a lot of things, & equally has a lot of properties like, color, size, Housing capacity, firing capabilities. etc.
Now, on the ship, there's only one place where I can mount ammunition.
I have a set of ammunition. Anti-aircraft guns, fire shells, Launch missiles, etc etc. but all these are "mutually exclusive".
If I would like to mount the ship with Anti-aircraft guns, all other ammo go unusable. I can dynamically swap between available ammo.
class BattleShip
{
propert A,B ,.....Z;
void MountAndFire(Ammo ammo_in)
{
int ammo_in.Fire(numberofrounds:30);
float ammo_in.Fire(direction:120, distance:200);
int ammo_in.Fire(Numberofcluster:600, direction:120, Distance:200);
}
};
How do you have a generic design to address this? I thought of having a Ammo Interface, and have a Fire() call,
But the parameter for the fire call differ for all the ammo. So I cant' say:
interface IAmmo
{
virtual int Fire();
}
Missile: IAmmo
{
int Fire()
{
}
}
The simple ordinary way is to check:
void MountAndFire(object ammo_in)
{
if(ammo_in.GetType==typeof(Antiaircraftgun)
{
AntiAirCraftGun aag = (AntiAirCraftGun) ammo_in;
aag.Fire(30);
}
if(ammo_in.GetType==typeof(Missile)
{
Missle missile = (Missile) ammo_in;
missile.Fire(120,200);
}
}
You have a better idea for this?
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
You have to know what sort of weapon it is, to know what parameters to provide. The only other option I can see is a class that contains all the possible params, on the basis that you're saying 'I don't know what you're going to shoot, but if it's a missile do this, if its the anti aircraft gun, do this, etc. Given that they all do different things, and are good in different circumstances, I don't see how it's useful to NOT know what you're about to pull the trigger on.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: I don't see how it's useful to NOT know what you're about to pull the trigger on.
The ship is on the screen. On the right bottom you display 4 ammo options for the player. Anything he chooses, would be the ammo for the ship for the next 30 seconds. So you get the picture? We know exactly on what we are pulling the trigger. The Ship just has to be dynamic enough to mount anything on and start the fire.
PS: I misfired twice on the wrong button, instead of quote, I pressed Post Message!
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
OK, well, I guess that means the player knows what settings they are setting, right ? So the only ( ugly ) way is to have all those methods, and just assume your code will only call the one that sets settings for the currently selected weapon.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
VuNic wrote: I have a set of ammunition. Anti-aircraft guns, fire shells, Launch missiles,
etc etc. but all these are "mutually exclusive". If I would like to
mount the ship with Anti-aircraft guns, all other ammo go unusable. I can
dynamically swap between available ammo.
Those are contradictory.
I suspect that last one is what you actually want.
So you have
1. Collection of ammunitions types
2. A pointer that specifies the active type.
1 can be implemented either as multiple classes or a single class with an attribute that specifies type.
The ship, at any time, can have a collection that has zero or more types available. However it might also be convenient to fix the collection size and just let the ammunication counts go to zero to indicate 'none'. Or have a flag that indicates something like 'not yet available'. The later allows it to collected but not usable until some game action occurs.
|
|
|
|
|
Who fires? Is it the battleship, or the ammo that triggers? Anyway, I'd still resort to inheritance, as been said before;
class BattleShip
{
void MountAndFire(AmmoBase ammo_in)
{
Fire(new FireArgsMissile { direction = 120, distance = 200 });
}
int Fire(FireArgs a)
{
return a.Fire();
}
}
public class FireArgs
{
public int Fire()
{
return 0;
}
}
public class FireArgsMissile : FireArgs
{
public int direction { get; set; }
public int distance { get; set; }
}
public abstract class AmmoBase
{
public abstract int Fire(FireArgs a);
}
public class Missile : AmmoBase
{
public override int Fire(FireArgs a)
{
return 0;
}
}
|
|
|
|
|
It seems to me that you want to:
- mount ammo into a slot/inventory
- fire a weapon that can only fire if there is the right ammo in the slot/inventory
... so what about something like this:
interface IShip : IName
{
IEnumerator<IGun> GunEnumerator
{
get;
}
IGun ActiveGun
{
get;
}
void ActivateGun(IGun gun);
IAmmoInventory AmmoInventory
{
get;
}
}
interface IGun : IName
{
bool Aim(Vector3 directionLocal);
bool Fire();
}
interface IAmmoInventory
{
IEnumerator<IAmmo> AmmoEnumerator
{
get;
}
void SelectAmmo(IAmmo ammo);
IAmmo SelectedAmmo
{
get;
}
bool Add(IAmmo ammo);
bool Remove(IAmmo ammo);
}
interface IAmmo : IName
{
int Damage
{
get;
}
int Count
{
get;
}
}
interface IName
{
string Name
{
get;
}
}
The Aim() part is pretty naive... but I hope you get the idea.
If IGun could be mounted on something that is not a ship, you could make interfaces like IGunOwner and IAmmoOwner that could be inherited by both IShip and IDeathStar
Kind Regards,
Keld Ølykke
|
|
|
|
|
I am working on a project about data mining. my company has given me 6 million dummy customer info of twitter. I was assigned to find out the similarity between any two users. can anyone could give me some ideas how to deal with the large community data? Thanks in advance
Problem : I use the tweets & hashtag info(hashtags are those words highlighted by user) as the two criteria to measure the similarity between two different users. Since the large number of users, and especially there may be millions of hastags & tweets of each user. Can anyone tell me a good way to fast calculate the similarity between two users? I have tried to use FT-IDF to calculate the similarity between two different users, but it seems infeasible. can anyone have a very super algorithm or good ideas which could make me fast find all the similarities between users?
For example:
user A's hashtag = {cat, bull, cow, chicken, duck}
user B's hashtag ={cat, chicken, cloth}
user C's hashtag = {lenovo, Hp, Sony}
clearly, C has no relation with A, so it is not necessary to calculate the similarity to waste time, we may filter out all those unrelated user first before calculate the similarity. in fact, more than 90% of the total users are unrelated with a particular user. How to use hashtag as criteria to fast find those potential similar user group of A? is this a good idea? or we just directly calculate the relative similarity between A and all other users? what algorithm would be the fastest and customized algorithm for the problem?
|
|
|
|
|
Is your company going to give your salary to anyone here for solving this? It's your job after all, not ours.
|
|
|
|
|
No, I am a University student, and I did not get any salary. I am just want to discuss with some coding Pro and those smart guy. I will be very appreciated if someone could give me some ideas. I think the forum is to discuss programming question, we could help each other and enhance our programming skills. I hope those capable coding Pro give me some hints. Thanks.
|
|
|
|
|
You should eliminate trivial words like 'a', 'and', etc.
And then research matching algorithms, I would start with the following google string.
algorithms for set matching -string
|
|
|
|
|
yes, definitely have to use String and array to process the data. However, I don't know how exactly to do it. The idea is not clear yet. Thanks very much for your reply.
|
|
|
|
|
Well - you could try find the similarities or "document distance" of and between the Twitter users by matching their tweets against each other - kind of like the way one search for plagiarism, perhaps that might work. You could start by out by searching the tweets of a particular Twitter user - using some sort of application. If I am not mistaken - I believe Twitter does have something like this available - furthermore, comparisons between and of the groups against each other can be carried out, therefore that way we can get a comparison of the similarity or "document distance" of Twitter users.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:34am.
|
|
|
|
|
Thanks very much for your suggestion. I will try to do some research about document distance. To process so huge amount of data like this, normal way is definitely infeasible, have to find a good idea on how to implement it. The project's focus is the idea, the coding should be very simple, but if the idea is very lousy, the whole project will become useless. I am very appreciated for your suggestion.
|
|
|
|