How to model a database when you have a different type of value(int, float, boolean, string etc.) of some property, and all possible types are not predefined? I think of a way that all values are strings in database and have some type attribute associated and then convert to that type in the application.. is there a better solution?
...
Hey guys,
I have designed the home page for my website. Now only specifing the with is remaining. After debating a lot, i decided to go with a fixed page layout. How do i do that? How do I put everything within 750px (or whatever you suggest)?
...
Dear Experts,
i am stuck in a situation, where i need to move balls in multi-user way, i m using RMI
in a distributed animation of moving BALLS .
My goal is to move multiple balls in a way, so that multiple clients observe the same movement/position of balls, i m using ball object which is remote object.
My problem is: i am calling t...
Hello
I'm currently making an IDE for the Java platform. This IDE for education purposes only.I'm working of the documentation and in the analysis phase.
Right now I'm at the stage of making the domain model for my project and I'm confused what to as to how the domain model figure would look like.
The IDE will feature
open/save
creat...
Hi,
What would be an ideal way of getting db schema designs from clients via the web?
Was thinking of having a textarea in a form and ask them to enter the field names, max length, and sample data.
E.g.
FirstName, 20, Joe
LastName, 20, John
Age, Integer, 25
Bio, Text, Bio info about Joe John ....
Or should I ask them to email or at...
Let's consider python (3.x) scripts:
main.py:
from test.team import team
from test.user import user
if __name__ == '__main__':
u = user()
t = team()
u.setTeam(t)
t.setLeader(u)
test/user.py:
from test.team import team
class user:
def setTeam(self, t):
if issubclass(t, team.__class__):
self.t...
Ok, I need to give some attributes to describe what MVC model means for a developer. And the only word that hits for the moment it's modularization (separation).
And the funny thing is that I need to give some adjectives, not nouns. :| Any help? :)
...
I have been working on this plugin system. I thought I passed design and started implementing. Now I wonder if I should revisit my design. my problem is the following:
Currently in my design I have:
An interface class FileNameLoader for loading the names of all the shared libraries my application needs to load. i.e. Load all files in ...
I've usually designed Flex applications myself but this time I'll need a designer to assist with skinning the application. I've worked with this designer for a while, and we could work well on an HTML/CSS environment. He can't code, he sends me sliced PSDs which I could convert to clean code. But I'm not sure how to have him assist me wi...
I've got 2 applications (lets call them AppA and AppB) communicating with each other.
AppA is sending objects to AppB.
There could be different objects and AppB does not support every object.
An object could be a Model (think of a game, where models are vehicles, houses, persons etc).
There could be different AppBs. Each supporting anoth...
Hi,
We are using StructureMap as our Dependency Injection (DI) framework while we are creating a layered library. Our goals are to:
Make it easy for us to Unit Test classes (and using mock classes instead of the real dependencies) while we develop and maintain the library.
Make it easy for the library user to:
Customize the library b...
I would like to clip a button to a custom shape which i am able to do with the following XAML. The clipping region though doesn't have a border. What if i want to have a red border with thickness 2? What are the properties to set?
<Button Content="Button" Height="79" Margin="22,10,17,10" Clip="M50.500008,20.499998 L70.090286,42.699997 L...
I had a talk with my professor today about the layout of the Chunklist data structure that we've been working on. Basically, it is a hybrid of a ordered circular linked list with each node containing an arraylist.
Since this is an ordered list, the add() method is pretty complicated, so I wrote a nested class to hold the helper methods...
Hello Design Gurus and architects,
We have a multi user product prototype in WPF which works fine as a prototype. Now we want to build the complete product.
In our product we have scenarios where 2 - 3 users might have to use same data. Say one us editing and the other user is viewing the continuos edits. And also whenever a user chan...
When speaking about attribute lists I mean a generic list which stores additional information for a class.
The simplest case:
A class has a std::map<std::string, std::string>. The first string names the attribute (like "Color"), the second string describes the value (like "Yellow").
In this example another class which uses these attribu...
In my program there is a complex calculation that requires the user to evaluate intermediate results. This works well in a command line application (which is what my code looks like now) because the interactive prompt halts the program execution until the user hits enter. The command line code looks something like this:
def calculate(...
I found questions here http://stackoverflow.com/questions/175532/return-null-or-throw-exception and http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object, but I think my case is quite different.
I'm writing an application that consists of a webservice and a client. The webservice is responsible to ac...
We are designing a C# product which involves multiple users accessing common piece of data.
In short something like google docs but not that complex. Is There any good example for architecture or design to follow, read, understand.
And adding to the complexity, user can belong to different geographical location. ( is distributed datab...
I have a large form that consists of all the input (text, checkbox, radio, etc...), I have them grouped together in a fieldset tag and a legend for each feildset. Each input has a label associated with it as well. My question is what is the best approach to display the information on one screen and take advantage of the horizontal real e...
Is there a component that presents the user a graphical design a layout like VS does? (Only graphical display functionality needed)
That is, he/she could place a label, Image or any 3rd party component that draws something (important!).
Thanks!
...