Thanks to everyone who attended my MVC 2 presentation at NOVA Code Camp. The code samples and PowerPoint can be downloaded here: Top 10 Ways MVC 2 Will Boost Your Productivity.
I had an awesome time at the NYC Code Camp last weekend and as promised here is the demo code and presentation that I used: http://s3.amazonaws.com/devstuff/EF4DemoNYC.zip A special thanks to the organizers, you guys did an awesome job! I can't wait for the next one.
Please help me to find design patterns for following situations.
Situation 1: how can a smart robot use Wi-Fi?
Situation 2: How can a Smart robot automatically go to rechargeable unit while there is no remote signal?
Situation 3: Voice recognition component (If homeowner itself at home and motion detection is off then how can Smart Robot voice…
As I mentioned in my last post, ACS features a number of ways to transition between
protocol and token types. One not so widely known transition is between passive sign
ins (browser) and active service consumers. Let’s see how this works.
We all know the usual WS-Federation handshake via passive redirect. But ACS also allows
driving the sign in…
Hello!
I'm quite new to programming design patterns and life cycles and I was wondering, what should come first, code review or testing, regarding that those are done by separate people?
From the one side, why bother reviewing code if nobody checked if it even works?
From the other, some errors can be found early, if you do the review before…
For access to the Oracle demo systems please visit OPN and talk to your Partner Expert
Demo Highlights
This demo showcases various features of Oracle B2B like
Comprehensive document management and trading partner management
Extensive B2B protocol support
Secure and reliable message exchange
B2B batching feature
…
I'm thinking to use EAV for some of the stuff in one of the projects, but all questions about it in stackoverflow end up to answers calling EAV an anti pattern.
But I'm wondering, if is it that wrong in all cases?
Let's say shop product entity, it has common features, like name, description, image, price, etc., that take part in logic…
I use geany as editor. It has a functions list sorted alphabetically and I would like to have the actual functions in the source code sorted in that way.
Is there any program to do that?
I use a text editor and the commandline for my Java development. I use Artistic Style to format my Java code. I'm looking for a tool that can be run from the commandline that can format JSP pages as well as XML config files such as those used by Spring.
I have a couple c++ utilities that I would like to port over to dot net. I was wondering if there are tools for porting a c++ application to c#?
I imagine that any automated tool would make a mess of any code, so perhaps, I should also be asking if this is a good idea or not?
Say you have a bunch of nested loops.
public void testMethod() {
for(int i = 0; i<1203; i++){
//some computation
for(int k=2; k<123; k++){
//some computation
for(int j=2; j<12312; j++){
//some computation
for(int…
I was searching recently for a code formatter for T-Sql
and I came accross this nice little utility that I wanted to share: http://www.wangz.net/cgi-bin/pp/gsqlparser/sqlpp/sqlformat.tpl
I've been dealing with a lot of legacy code latley and
there is nothing I find more infuriating than unformatted code. This tool seems…
I have a new client that has asked me to do a redesign of their website, an ASP.NET Webforms application that was developed by another consultant. It seemed straight-forward (it never is) but I took a look at the code to make sure I knew what I was in for.
This application was not written well. At all. It is extremely vulnerable to…
I want to create two applications that will have a lot of common functionality. Basically, one system is a more advanced version of the other system. Let's call them Simple and Advanced. The Advanced system will add to, extend, alter and sometimes replace the functionality of the Simple system. For instance, the Advanced system will…
I have a legacy C code on my hands, and I am given the task to filter dead/unused symbols and paths from it. Over the time there were many insertions and deletions, causing lots of unused symbols. I have identified many dead variables which were only being written to once or twice, but were never being read from.
Both…
In .NET 4 Code Access Security (CAS) is deprecated. Whenever you call a method that implicitly uses it, it fails with a NotSupportedException, that can be resolved with a configuration switch that makes it fall back to the old behavior.
We have a common library that's used in both .NET 3.5 and .NET 4, so we need to be…
in .NET 4 Code Access Security (CAS) is deprecated. Whenever you call a method that implicitly uses it, it fails with a NotSupportedException, that can be resolved with a configuration switch that makes it fall back to the old behavior.
We have a common library that's used in both .NET 3.5 and .NET 4, so we need to be…
In Google Code Jam 2009, Round 1B, there is a problem called Decision Tree that lent itself to rather creative solutions.
Post your shortest solution; I'll update the Accepted Answer to the current shortest entry on a semi-frequent basis, assuming you didn't just create a new language just to solve this problem. :-P
…
Here's my (code golf) challenge:
Take two arrays of bytes and determine if the second array is a substring of the first. If it is, output the index at which the contents of the second array appear in the first. If you do not find the second array in the first, then output -1.
Example Input:
{ 63, 101, 245, 215, 0 } {…
Please provide scenarios/conditions those fail during deserialization when a class & serialized object have same serialVersionUID?
I'm looking scenarios like following
1) If a data type of an instance variable is changed then deserialization will fail
Could you please provide all such scenarios. I couldn't find…
I'm writing an XML text editor that provides 2 view options for the same XML text, one indented (virtually), the other left-justified. The motivation for the left-justified view is to help users 'see' the whitespace characters they're using for indentation of plain-text or XPath code without interference from…
I haven't been able to find a lot of the old, open source mud source codes. I find the way they did things very applicable to text-based/browser based games, and I'd love to be able to skim through parts of 'em for inspiration.
For instance, we have this huge list of muds and the relationships between them,…
Every now and then I've come across scenarios where I need to update a lot of packages all in the same way. The usual scenario revolves around a group of packages all having been built off the same package template, and something needs to updated to keep up with new requirements, a new logging standard for…
If I wanted to help a customer understand the degree of technical debt in his application, what would be the best metric to use? I've stumbled across Erik Doernenburg's code toxicity, and also Sonar's technical debt plugin, but was wondering what others exist.
Ideally, I'd like to say "system A has a…