design

WPF - where can I find some window layout ideas/examples and resource files that will make my application look better

I enjoy working with WPF but I need a little more of "designer's touch" to my applications. I have been unable to find a good resource for WPF layout examples and color schemes along with the corresponding resource files.Are there any good resources out there to help developers make their applications really "pop". ...

Law of Demeter violation proves useful. Am I missing something?

I have some code like this in my application. It writes out some XML:- public void doStuff( Business b, XMLElement x) { Foo f = b.getFoo(); // Code doing stuff with f // b is not mentioned again. } As I understand it, the Law of Dementer would say this is bad. "Code Complete" says this is increasing coupling. This method s...

Persistent URLs with a jQuery Slider

Hello, I've created a simple jQuery slider for my website, and I was wondering if it's possible to assign a URL for each pane. For example /index.html#about will slide to the about tab by default. Many thanks for your help and responses. ...

I need some critique about lib design

OK. I have this lib for my internal project (function() { var window = this, undefined; //guaranteed undefined var h3 = window.h3 = function (user) { return window.h3 = new h3.prototype.init(user); }; h3.prototype = { init: function(user) { this.timestamp = +new Date; this.user = use...

AS3 Object Oriented GUI Design

I'm trying to make a small Flash game that has a GUI, which is basically a menu where players can select certain items, sort of like the Tower Defense games. Would it be a good idea to make the GUI a singleton? Because obviously there can only be 1 instance of the GUI class. Is there a better way? ...

Linux Daemon written in Java location

I'm currently writing a Java daemon. I'm writing a script that will have the standard daemon commands (start, stop, restart, status) and I'm trying to decide on where things should go when installing the daemon. My current idea is: PID File: /var/run/myapp.pid Daemon Script: /etc/init.d/myapp Java App (.jar): /usr/bin/myapp Logs: /var/l...

Organizing logs with log4j

Hey all, I'm currently working on a Linux daemon written in Java. What is the common naming scheme for logs? Right now I'm thinking of doing something like: DEBUG = /var/log/myapp.debug INFO = /var/log/myapp.info WARN = /var/log/myapp.warn ERROR = /var/log/myapp.err FATAL = /var/log/myapp.err Does anyone have any opinions / suggestio...

Best way to indicate "draggability" in a web app (or in general)?

Are there any visual cues that you know of that indicate an item's "draggability"? The obvious ones: "<marque>Click here to drag!</marque>" that icon thing and (which I plan to implement) the closed-hand-cursor-onmouseover <-- not this exact one Thanks for you help! Edit: Thank you all for your help. I definitely am in favor of...

How to structure files / dependencies in Visual C++ project

This is more of a design question than a C++ question. I'm working on a Texas Hold'Em poker game in C++. So far, I have a HandChecker module written that is responsible for determining a player's best hand given his hole cards and the community cards. I decided to move this out into a separate HandChecker project. HandChecker depends on...

What do you use as WPF alternative for Win32 Delphi?

If you are sticking with Delphi for Win32, what do you use as GUI framework, in order to approach the versatility and performance of the WPF framework on .NET? There are some alternatives out there, such as DXScene, but it appears to have a problem with font clarity. Graphics32 and AGG are excellent low-level libraries, but lack a high-...

What's the basic concept behind rails' act_as ?

I can't seem to find the answer to this, I somewhat see what it does through implementation, but don't grok the sense of it.. ...

How to design small web forms in html page

When i design our web-form then i see then my web-form is very small then my web page Because my form have only two field (two text-box two label) How i design it. then he look Beautiful. ...

Designing a virtual machine with JIT

Hello, I'm developing a scripting language that compiles for its own virtual machine, a simple one that has instructions to work with some kind of data like points, vectors, floats and so on.. the memory cell is represented in this way: struct memory_cell { u32 id; u8 type; union { u8 b; /* boolean */ double f...

How should I organize the code for my software package?

I want to reorganize my C++ code project, which contains of hundreds of source files. I want to split everything into 4 libraries, taking care to avoid cyclic dependencies: (a) src/core (b) src/util (c) src/create (d) src/process Basically, core implements the basic data structures and util implements some basic utility functions to ...

Does a reference work with human behavior/perception patterns exist?

In all current and future projects I pledged to concentrate all the ground work around interaction design. I'm aware of Alan Cooper's work, and it's excellent, but what I'm looking for is a reference work with observed human behavior when confronted with certain visual elements and usage scenarios. Some kind of "user psychology for dev...

How would you design a Calendar app similar to outlook (Interview Question)

Calendar should have functions like, User should be able to set an appointment based on time and date. Calendar will warn user if a conflicted appointment occur. Please describe what Classes, data structure and design pattern you will use. ...

Implementing a dynamic sidebar in zend without calling an extra action

Currently trying to come up with a "best practice" for a ZF site that is both elegant and efficient. What I am trying to do is just generate data for a sidebar. In a couple of related questions and on other sources, the approach taken was to call another action from the sidebar part of your layout, or to add the sidebar action to an act...

Printing c# forms with DeckWorkspace

I'm having a bit of trouble printing some of the forms in our Smart Client Software Factory application. We've got a master form, which has a header showing some critical information, and underneath a list box and a DeckWorkspace. The list contains a set of categories, and when one is selected, a separate form is loaded into the DeckWor...

A better design? Same object, different possible states

Hello, I have a very simple application which consists of an ASP.NET front end site, with a WCF Windows Service doing the heavy lifting back-end logic. The user has one simple page where he selects some parameters and pushes a 'submit' button. The page calls the WCF service and passes it the parameters. The service instantiated an inst...

Can anybody suggest me a book on embedded system design?

Please suggest me a book on embedded system design which covers advance design of embedded sofware design of hardware to build efficient system I know, its difficult to learn all the things from books still do suggest me some books. ...