I have a many-to-many relationship between photos and tags: A photo can have multiple tags and several photos can share the same tags.
I have a loop that scans the photos in a directory and then adds them to NHibernate. Some tags are added to the photos during that process, e.g. a 2009-tag when the photo is taken in 2009.
The Tag cla...
I'm working on a MVC based web app on LAMP that needs some records to be modified only under the approval of a "superior" user. (The normal user can submit changes but they get applied only after this approval)
There are is only a table in which this would have to take place, say "events":
EVENTS
- id
- name VARCHAR
- start_date DAT...
Hi. I'm looking for a REA library in C#.
The code in Pavel Hruby's book Model-Driven Desing Using Business Patterns has the makings of a good REA library, but it's incomplete.
http://www.reatechnology.com/book.html
...
Hello -
I need to retrieve latitude & longitude information from cellphones carried by delivery trucks. I've found a few examples of how this can be done here:
http://msdn.microsoft.com/en-us/magazine/2009.01.wm6gps.aspx
http://www.codeproject.com/KB/mobile/DeepCast.aspx
Is it possible to retrieve cell phone location information from a...
Hi,
in a portal landscape i have different systems (portal server, app server). No there are tables on each system which control right management for users. (portal groups & users - app server users and groups etc.). The syncing is managed by one App which controlls all interaktion. (Data is redundant but not the same - totally diffrent...
I'm working on a payment services platform that will allow calling clients to perform common operations on credit cards, e.g. authorizations, payments, voids, etc.
I've been looking aroung for ways to model this particular domain but I could not find anything. I would be particularly interested in any analysis-like patterns for modeling...
I'm looking into adding some flexibility to a class that I've created which establishes a connection to a remote host and then performs an exchange of information (a handshake). The current implementation provides a Connect function which establishes the connection and then blocks waiting on a ManualResetEvent untill the two parties have...
Someone asked What is a Wrapper? and it got me thinking - where would I point a new developer in search of some foundational description of useful patterns?
The GoF book has long been a foundational part of the canon for OO programming, and all of us at one time or another have benefited from the descriptions of common patterns there.
...
The possible answers are either "never" or "it depends".
Personally, I would say, it depends.
Following usage would make a collection appear (to me) to be a flyweight:
public final static List<Integer> SOME_LIST =
Collections.unmodifiableList(
new LinkedList<Integer>(){ // scope begins
{
add(1);
add(2);
...
we want to implement business logic based on records in a table. We have two choices.
One way is to create an enum in code for each record in the table and in code compare the enum with the read record to decide what logic comes next. A drawback with this system is that if the key changes in the table(for example in autonumber field...
I'm running the flex compiler (mxmlc) from ant inside eclipse for some of our builds (they are meant to run on our continuous integration server as well, that is why I don't build using flex builder itself) -- the patterns of mxmlc are not recognized by the eclipse-console, so I cannot click on them.
The patterns is like this:
<absolut...
Hi,
I've working on Interfaces and Class and Structs types and I really wanna learn advanced yet simple patterns to understand those types correctly and use them efficiently.
Is there any you know ?
...
I've recently become quite interested in identifying patterns for software scalability testing. Due to the variable nature of different software solutions, it seems to like there are as many good solutions to the problem of scalability testing software as there are to designing and implementing software. To me, that means that we can p...
Im making a simple wallpaper changer. It works when changing the wallpaper but i cant change the pattern of the wallpaper. I tried something like this but it doesnt work :S
SystemParametersInfo(SPI_SETDESKPATTERN, 0, "Center",
SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);
Can some1 please show me the proper way of setting the wallpaper...
What is a use case for using a dynamic proxy?
How do they relate to bytecode generation and reflection?
Any recommended reading?
...
I am developing a transactional application in .NET and would like to get some input on how to properly encapsulate database access so that:
I don't have connection strings all
over the place
Multiple calls to the same stored
procedure from different functions
or WORSE, multiple stored
procedures that are different by a
single column
...
I am writing a utility that reflects on two object graphs and returns a value to indicate whether the graphs are identical or not. It got me thinking, is there a generally accepted pattern for writing a recursion algorithm that returns a value from some where in the recursion?
My solution would probably use a ref parameter and look som...
i just graduated from a polytechnic where i was taught quite basic programming (at least in my opinion, like VB Calculators and such)
so now in my current job, i feel that that's not enuf. i am wondering from my basic foundation how can i build up my skills? i am picking up C# 3.0 (4.0 seems to be out soon) WPF, LINQ
the issue that i f...
Hi there,
I have a byte array and wish to find the first occurance (if any) of a specific byte.
Can you guys help me with a nice, elegant and efficient way to do it?
/// Summary
/// Finds the first occurance of a specific byte in a byte array.
/// If not found, returns -1.
public int GetFirstOccurance(byte byteToFind, byte[] byteArra...
What work, if any, has been done to automatically determine the most important data within an html document? As an example, think of your standard news/blog/magazine-style website, containing navigation (with submenu's possibly), ads, comments, and the prize - our article/blog/news-body.
How would you determine what information on a new...