design

Add/remove items to/from an HTML select list using jQuery

Could somebody recommend some of the best strategies they've used to populate items in an HTML select list on the client side? I'm using an ASP.NET MVC application and making use of jQuery. The select list in question is simply a collection of strings which will need to be saved with the model. I'd rather not have a server call for ev...

MVC Model Design

I am having issues to understand MVC model structure.I have 3 tables connected by Foreign keys. Users,UsersInCommittee,Committees .Tables can be though of as below. User: UserId FirstName Last Name Committees: CommitteeId Name UsersIncommitee: Id UserID CommitteeID ExpirationDate I need to create a Users create , edit , list page so...

Advantages/disadvantages to user registration and login methods

Take the following three user registration/login methods (or add your own): with OpenID with Email Address + Password (not OpenID) with Username + Password What are the advantages and disadvantages to each for a general internet audience (i.e., not a super tech-savvy audience of Stack Overflow)? ...

Learning simple programming conventions

Where can I learn more about simple programming conventions and design patterns? When I say simple I mean which is the preferred way of writing the following equivalent functions: function() { if (condition) { # condition wraps the entire function } } or function() { if (!condition) { return; } # rest of the funct...

Why aren't static methods considered good OO practice?

I'm reading Programming Scala. At the beginning of chapter 4, the author comments that Java supports static methods, which are "not-so-pure OO concepts." Why is this so? ...

Lazy loading from SQLite.

I have some 4500 entries in my database. What is the best way to show them in a ListView. Should I load them all in one stretch when the application initializes or should I use lazy loading? The list will also be searchable and filterable. Could you also point me to some nice articles that would gimme a better idea. Please do give me sug...

How can I implement an Orkut-like user facility to change site colors and style ?

I would like to implement a facility like Orkut offers where user is able to configure the colors and style for the site, and the changed styles will be used for the user. I would like the user to be able to enter the color combinations for the site background, top navigation, and left navigation. Can some one please let me know what a...

Is there any iPhone/iPad UI toolkit such as BWToolkit for Mac apps?

Just wondering if is there any user interface toolkit for iPhone or iPad such as BWToolkit for creating nice interface for apps. Cheers ...

How to address this RMI Extensive Usage scenario?

Dear Experts, I am working on a distributed animation of moving BALLS with RMI. 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. registering objects: public MyMultiRemoteBallServer() { try { RMIball[0] = new R...

How can I create my own UITabBar?

Hi all, Further to this question here, I'm really interested in creating my own UITabBar, and 'rolling my own'. Im really curious as to how this is done, especially in an app such as the Twitter app. How can I do this? Can anyone point to any good resources on how to subclass this? Should I do it programmatically, or in a XIB? Edit: I...

BIRT: How do I include a JAR in the report?

In the BIRT book "Integrating and Extending BIRT" (2nd edition, p. 296), I've found this little piece of text: BIRT searches locations for external classes in the order shown in the following list: [...] JAR files that are included in the report design. How do I include a JAR file in the report design? ...

Question about my logic for Rhythm game/Iphone Cocos2d

Ok I am a complete newbie at game design and have a question. Ive been working on a rhythm game for the iphone for the past few months now. The game runs well and is getting closer to being finished, however, being my first major project I feel like the underlying way I am doing it is very flawed. We are shooting for 60 fps and it run...

Best Practices? Wait until receive or raise an event on receive

Hi stackoverflow, First of all, I wanted to thank the community. You've been of great support lately ! Usually i don't even need to ask the questions because they're already there. Now i have an issue that's not directly related to code but programming itself. I'm working with a FTDI Chip and C# programming a communication protocol in ...

When is it beneficial to have multiple Play applications instead of one monolithic one?

I've settled on the Play framework for the rewrite of our intranet portal. Our portal contains a lot of loosely related stuff so I'm looking for advice on if or how to break it into multiple Play applications. What are the consequences of making it multiple applications? Is single sign-on still possible? How is access control affecte...

CSS sprites and gradients

Is it possible to put multiple repeating gradients on a single sprite master image? I've got about 5 1px X 400 px gradients that could be combined to reduce the page requests. It's pretty much my last place to go for reducing object requests. I haven't seen any techniques for this while searching. My own experimentation hasn't had good r...

XML and XSLT to generate CSS ?

I want to provide user facility to change the CSS. First think clicked is that storing CSS as XML will help me read CSS and understand. Second is that using XSLT i will be able to generate the CSS (am i right ? will that be useful) Lastly when user changed the CSS XML file can be updated and then it can be used. Now this is at very r...

DAL Datamapper persisting fat objects

Hi there, I'm in the process of rewriting our application. We are building DataMappers to work in our DAL. My question relates to the situation where I have a complex object from the BLL that get's passed to the DataMapper to be persisted. Let's say this object has a lot's of properties including lists of other objects. i.e... pub...

Best software to design web pages considering using java mvc technologies such as spring mvc, struts or something similar?

Every people talk about adobe dreamweaver... But if im developing java based web apps, It would be a good choice? ...

Is it possible to change the color of the notification bar?

The iPhone gives the app the ability to change the notification bar's color so you can have it match your app's design without having to hide it completely. Is there a way to change the notification bar color in Android? I'm looking to have it force black with white text to be less visually present while using the app, but still there....

Avoid multiple loop in Observer code

I have a class AllListener to encapsulate multiple Listeners as follows. The problem is I have to write a loop in each event method(onStart(), onEnd()). It's quite normal way in observer pattern code, but it's bad smell. Any better way to write loop once? Thank you! class AllListener{ List<Listener> listeners; void onStart(){ ...