howto

Howto: Taking photos in windows mobile without CameraCaptureDialog?

I want to create a windows mobile app (windows mobile 5.0 and above, using CompactFramework [in SharpDevelop]) to capture photos automatically, without user involvement (like it would be with CameraCaptureDialog). After going through google searches I found out a solution that should work (http://blogs.msdn.com/marcpe/archive/2006/03/03/...

How do you handle multiple (overlapping) projects in trac?

We are using trac and are really satisfied with it. However, out of the box, trac is best suited for single-project environments only. I'd be interested to hear about the various approaches people take to make it work with multiple projects nevertheless and their experiences with them. Are there any plugins to recommend? Any patches, twe...

How to learn "good software design/architecture"?

I just listened to a discussion about a project drifting away from the direction it's supposed to go. The problem was "bad software design". Components are not designed to be re-used; the software is hard to maintain, test, extense, and scales poorly. What did the programmers do wrong? Where/how to learn better techniques? Of course, ...

How do I delete all the records in a table that have corresponding records in another table

I have two tables A and B. I would like to delete all the records from table A that are returned in the following query: SELECT A.* FROM A , B WHERE A.id = B.a_id AND b.date < '2008-10-10' I have tried: DELETE A WHERE id in ( SELECT a_id FROM B WHERE date < '2008-10-10') but that only works if the inner select ac...

HOWTO - Set delegated Active Directory privileges

I've created a c# webservice that allows our front end support teams to view and update a few selected Active Directory values using system.directoryservices Fields that I want to update are [job] title, department, telephone and employeeid. I can use a service account with "delegates rights" to update [job] title, department, telephon...

Best guide to turn a PowerBook into a web server?

I "inherited" a PowerBook and want a place to host some of my pet Rails apps. What's the best step-by-step guide (or guides) to set this up? Feel free to write your own here, if you like, or write the steps with references. ...

Fluent Interfaces - Method Chaining

Method chaining is the only way i know to build fluent interfaces. Here's an example in C#: John = new JohnBuilder().AddSmartCode("c#").WithfluentInterface("Please").ButHow("Dunno"); Assert.IsNotNull(john); [Test] public void Should_Assign_Due_Date_With_7DayTermsVia_Invoice_Builder() { DateTime now = DateTime.Now; ...

Is it possible to add a method to a built-in type in Scala?

I would like to add a method to a built-in type (say Double), so that I can use an infix operator. Is that possible? ...

How to write a plugin for eclipse?

Hi, my question it's very easy, how I can write a plugin for eclipse? I've looked for documentation but unfortunately there is very little or it's poor, so can anyone recommend any articles? ...

Creating an extensive project to be sold

Howdy, I am going to start a C# project from scratch that will consist of several modules so it can be sold by modules of an existing PHP/ASP/MySQL/Oracle/MS SQL application that manages to show 3D objects and create 2D and 3D CAD files from a web app that the user can use to create all the stuff. My question is, to start from ground z...

Is there an equivalent of 'which' on windows?

I would like to find the full path to a program in Windows. Is there an equivalent to the UNIX command 'which'? On UNIX, which command prints the full path of the given command. ...

How do you develop an application to draw, edit and save UML models in Cocoa?

Will the individual UML diagram shapes be NSView subclasses or NSBezierPaths? How are the diagrams created and managed? ...

interview program example

There are several topics about what questions will be raised in an interview for a programming job, but none actually talk about a small problem that some companies want: an example program. My question is based on my last job application, where I've been asked to create a simple program and send it to them. Well, this raises several ...

Embedding an application inside another application

I'm sure some of you noticed that if you have Acrobat Reader ( or any other pdf viewer ) , and open a pdf in Firefox , you will see it embedded inside your tab . Is there any way to embed an application in a JFrame ? ...

How to programmatically recycle a dllhost.exe process in COM+?

How to programmatically recycle a dllhost.exe process in COM+? ...

How would you symbolise 'change' ?

Because of a space-issue I have to make 'single-character-links' for crud actions: In characters I would symbolise: 'delete' with character x 'add' with + … How would you symbolise 'change' ? ...

How to write a profiler?

Hi, i would to know how to write a profiler? What books and / or articles recommended? Can anyone help me please? Someone has already done something like this? ...

How to integrate the StringTemplate engine into the CherryPy web server

I love the StringTemplate engine, and I love the CherryPy web server, and I know that they can be integrated. Who has done it? How? EDIT: The TurboGears framework takes the CherryPy web server and bundles other related components such as a template engine, data access tools, JavaScript kit, etc. I am interested in MochiKit, demand C...

How to run the CherryPy web server in the Google App Engine

The CherryPy web server can supposedly be deployed in the Google App Engine. Who has done it, and what was the experience like? What special effort was required (configuration, etc.)? Would you recommend it to others? ...

Restricting a monad to a type class

In Haskell, is there a way to restrict a monad M a so that a satisfy a type class constraint? I am translating the probabilistic modeling example from F# to Haskell. However, in Haskell, I omitted support because it would change data Distribution a to data (Ord a) => Distribution a. With this change, I get the following error: ...proba...