design

Growing into JavaScript as an integral part of the front-end vs. 'DHTML'

More of a general question here. At the moment a lot of the projects I work on utilize server-side views to render the user interface, and spruce it up with some JavaScript here and there. That is all fine and dandy for smaller projects, but lately it seems like the .js files are growing rather large in size, and the stacks upon stacks ...

User targeting algorithm

I have an application that visitors come and go. I m working with a data provider that gives me information about users such as their gender, age, location, and information about their personalities etc. Now, i d like to target these users with appropriate content. In short, I have content and users with their personality information...

Can we use both Stateless and Stateful session beans in a J2EE application ?

Is it good way to use both Stateless and Stateful session beans for the different modules if the requirement demands ? ...

Can C++ be used with a top-down programming strategy?

I've heard that some languages are better suited for a top-down approach to solving problems, while others are intended more for use with a bottom-up technique. Is C++ one of these languages? And if so, which style best suits C++ programming? ...

Android - How to scan for Wlan values several times in one process?

Hi! I'm writing an app where at one point I have to scan for Wlan values(ssid, rss, mac) several times at once (I need to make the mean value of several rss values I received during the scans). This happens when the user presses a button. After the button having been pressed, the scanning process starts, takes 10 scans, calculates the me...

How to design an API for operating on remote objects with java RMI

I have a remote object exposed through RMI, which I use to perform several things on a resource that the object holds. Right now I have method for each operation I need to perform. Example: public interface IRobotController { public int walk(int meters); public void dance(int seconds); } public interface RMIRobotController imp...

Functional Design and Technical Design Documents for a Web Application

Hi All, I am going to work on a Web Application which I have to start with Gathering the Business Requirements up on which I need to develop Functional and Technical Documents. I have not developed Functional and Technical design documents on my own, could you let me know how to start and what are the things I need to take in to conside...

Work around for being unable to make function templates virtual?

Hi, I have an abstract class vertex which represents an n-tuple. The element of the vertex can be of any type: ie, the vertice's components could be of type int, int, float or something. Because the vertex can have an arbitrary number of dimensions, I was thinking of making the class have a component setter like so: class vertex { ...

How to handle "Type" field in DB and app?

It is necessary to implement a logging, messages are planned to store in DB in a "log" table. Among other fields each message will have a "status" field: 0 - successful, 1 - wrong data, 2 - wrong user, 3 - whatever, 4 - etc... The straightforward idea is to store the "Status" field as "int" column in the same table... To push data in ta...

Recommendations for Webbased Archive

Requirements for archival type software 1. Data/Image/possibly video.... upload/search/retrevial/edit from web. 2. Easily implemented user defined Custom Fields 3. Easy backup. 4. Low cost ... either opensource or very low cost I am a very novice programmer. My primary goal is to manage a collection and publish it to the web. Options ...

Observer design pattern and C# event delegate model

It seems that the observer design pattern is in built in C# through its event delegate model. Is there any reason where I may have to implement it in the classical way? regards 123Developer ...

Guidelines for designing forward compatible communication protocols?

I'm working on a communication protocol between embedded devices. The protocol will definitely need new commands and fields in the future. What do I need to do to make sure I'm not painting myself into a corner? ...

Is To Manually Assign An Entity's IDs A Good Idea?

We're developing a system to replace an old application from our clients. Actually there are many entities (like merchants, salesmen, products, etc) that must have a manual assigned ID -so they can be integrated with other existing systems. i.e. accounting. We think the best solution is simply allow the user to assign the entities IDs ...

Shared Object Library with Persistence

Hello Everyone, I have a quick question that I am hoping is fairly simple to answer. I am attempting to develop a shared Employee object library for my company. The idea is to create a centralized database that contains information about our employees (Reporting Hierarchy, Office Locations, General Info, etc) and then create an shared o...

How to Store lots of text in Core Data

This is a design questions, so multiple ideas will be fine. In my iPhone app, I keep track of Multiple players' life, which can increase and decrease over time. After the game is done, I want to be able to show them their life throughout the game, so they can see how they did. Now, this will also be stored in Core Data, so they can lo...

Design guidelines for Enumeration

In one of the financial Winform projects , the application code will have to work with values such as currencies. In the object model that represents business entities , there are fields that need to hold currency values such as USD , EUR , etc. The set of values for this field will most probably be limited to one of the standard currenc...

A well designed C++ opensource project for newbies

Possible Duplicates: C++ OpenSource project for beginner programmer? Open Source C++ projects for beginners Hi guys, I'm a C++ beginner, I have been reading C++ Primer recently. While I'm getting a basic understanding of the syntax, I want to find a small, but well designed opensource C++ project, in which I can learn some d...

How to set form object property globally in .net winforms?.

i am using .net win forms i need to set some common properties globally to my win forms like css in web application ex form background color=red button width =100 Text box width=200 font family=arial how to do this? ...

Does doctrine allow 2 models to use the same table

I have an abstract class User and 2 classes which inherit from it, namely BEUser and FEUser. Information about all users (FEUser and BEUser) is stored in a single table. Does Doctrine allows this kind of mapping? Any examples? Also if doctrine supports it which object does the table class return (FEUser or BEUser)? Thank You ...

How to import entities and its dependent objects via excel

We have a simple data model reflecting the following... User contains many @OneToMany addresses User contains many @OneToMany phones User contains many @OneToMany emails User belongs to a @Organization via @ManyToOne We would like the customers to capture all user information in a excel / csv sheet and provide it to our upload tool. ...