DannyDouglass

Stories kicked by DannyDouglass

Recursive Ruby Script to replace File/Directory Names & File Contents(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 3 months ago

Over this past weekend I began templating a project structure that we use at my day/evening/night job to allow developers to simply execute a script and provide a few parameters to initialize a new development project (including build script, fxcop analysis, unit testing, visual studio projects, etc.). I didn’t think this would take that long despite being relatively new to the Ruby world. Oddly enough, I had trouble finding similar examples on the interwebs – even StackOverflow didn’t have the answer! The horror, the horror! No matter, I’m a developer after all and should be, better be capable of handling this simple script. I decided to start simple and just use the directory global searching method to recursively get everything within my project template’s directory: read more...

add a comment |category: |Views: 5

tags: another

Regex Hero can now translate a regular expression into English(blog.regexhero.net)

submitted by BucketSoftBucketSoft(324) 1 year, 5 months ago

Regular expressions are one of those things that many programmers dabble with enough to understand the concept, but not enough to memorize the syntax. Code completion is a big step towards making things easier. Beyond that, sometimes an explanation written out in English is just what you need. read more...

3 comments |category: |Views: 700

tags: another

Microsoft Visual Studio - From Past to Present(www.ironshay.com)

submitted by shayfriedmanshayfriedman(1411) 1 year, 5 months ago

Recently I‘ve been working at a client site where they are using Visual Studio 2005 for their main project. I’ve gotta say that I was a bit surprised since I haven’t come across VS2005 for a few years… I immediately became nostalgic and decided to share. So I’m proud to present, Visual Studio – from past to present! read more...

1 comment |category: |Views: 613

tags: another

Slash your ASP.NET compile/load time without any hard work(blog.lavablast.com)

submitted by EtienneTremblayEtienneTremblay(5008) 1 year, 5 months ago

Tips & tricks to make your ASP.NET development more enjoyable (cut down compilation time / first load time). read more...

add a comment |category: |Views: 721

tags: another

Simplify Using Xml Data with AutoMapper and Linq-To-Xml(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 6 months ago

I recently ran into a scenario at work that required manually consuming several SOAP web services, which I’m sure you can imagine was rather monotonous. A co-worker (Seth Carney) and I tried a few different approaches, but we finally settled on a solution that simplified consumption of the xml and ultimately made the code more testable. That solution centered around leveraging AutoMapper, an open source object-object mapping tool, to create a link between the XElements returned in the SOAP messages and custom contracts we created – in a reusable manner. I put together a quick demo that shows how you could use the same approach to consume and display the Twitter Public Timeline (using the API’s Xml response type). read more...

add a comment |category: |Views: 76

tags: another

A Better Hg Command Line Interface: Console2 + PowerShell + Posh-Hg(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 6 months ago

Moving from Subversion to Mercurial was more than a change from a centralized version control system to a distributed solution. I also found myself moving away from the explorer integration provided by the Tortoise products to the command line for the execution of my hg commands. This approach is dramatically faster once you get used to the syntax, which really only takes a hot minute. Certain features in TortoiseHg still provide visual advantages that I find useful, such as the visual repository log. During an Agile.Net Bootcamp with Jimmy Bogard he showed us an collection of tools he utilizes to provide an improved Mercurial command line experience. The final product is a more descriptive prompt that displays branch information, as well as the number and types of changes made since your last commit… read more...

add a comment |category: |Views: 64

tags: another

Introducing 'Vingy' Add-in for VS2010 To search StackOverflow, Web etc(amazedsaint.blogspot.com)

submitted by amazedsaintamazedsaint(835) 1 year, 7 months ago

Vingy let you search the web (mainly sites like StackOverflow, CodeProject, MSDN etc) in a non intrusive way, with out leaving the IDE. Vingy is a simple, but effective add in for Visual Studio 2010 so that you can search the web in a non intrusive way, and can filter results based on sources. read more...

add a comment |category: |Views: 269

tags: another

8 Best open source alternative to NHibernate. (www.findbestopensource.com)

submitted by solidstonesolidstone(500) 1 year, 7 months ago

NHibernate is one of the best ORM library in .NET to build data access code faster. We identified best open source alternative to NHibernate. According to the requirement pick any library and build the data access layer in .NET. read more...

1 comment |category: |Views: 760

tags: another

ASP.NET MVC: Using asynchronous controller to call web services(weblogs.asp.net)

submitted by gpeipmangpeipman(3145) 1 year, 8 months ago

Lately I wrote about how to make a lot of asynchronous calls to web services during ASP.NET page processing. Now it’s time to make same thing work with ASP.NET MVC. This blog post shows you how to use asynchronous controllers and actions in ASP.NET MVC and also you will see more complex scenario where we need to gather results of different web service calls to one result set. read more...

add a comment |category: |Views: 291

tags: another

OpenID for ASP.NET MVC, A Quick Setup(andrewblogs.com)

submitted by beckelmwbeckelmw(2755) 1 year, 8 months ago

If you need to get your ASP.NET MVC website setup with some basic OpenID Authentication, I can help get you started. All you need is a DLL, a view, and two controller actions. read more...

add a comment |category: |Views: 228

tags: another

What’s Nu in the .NET World Part 2: Creating a Gem(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 9 months ago

If you are not familiar with the Nu project start by reading my first post in this series that gives an introduction to getting started with this promising tool. As a quick reference I’ll post a paragraph from the last post introducing Nu: “Nu is an open source tool built by Dru Sellers (and several others) that aims at bringing Gems, one of Ruby’s most revered features, to the .NET world. If you are not familiar with Gems I suggest you take a minute to read up on them. I would venture a bet that you are already familiar with at least one gem – Ruby on Rails. The following line of code is all that is required to install the Ruby on Rails gem (after installing the Ruby library of course)…” This post is focused on sharing my experience in creating my first gem for the Spark View Engine. I would be doing you a great disservice if I did not start by saying how easy it is to create a gem. Actually easy is the wrong phrase – crazy easy is more telling. Since I would never ask you to take my word for it, it must mean it is time to show some code. read more...

add a comment |category: |Views: 10

tags: another

What's Nu in the .NET World?(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 9 months ago

If you thought the word "Nu" in the title of this blog post was misspelled, you are in for a treat. And trust me, you are not the only one who made that grammatical assumption. Nu is an open source tool built by Dru Sellers that aims at bringing Gems, one of Ruby’s most revered features, to the .NET world. If you are not familiar with Gems I suggest you take a minute to read up on them. I would venture a bet that you are already familiar with at least one gem – Ruby on Rails. The following line of code is all that is required to install Ruby on Rails gem (after installing the Ruby library of course)... read more...

add a comment |category: |Views: 9

tags: another

HTML5 Support In Visual Studio 2010(www.raihaniqbal.net)

submitted by PrinceOfDhakaPrinceOfDhaka(390) 1 year, 9 months ago

I was trying to play around with HTML5 assuming that VS 2010 had shipped with HTML5 support but to my dismay it was not the case. Bummer! So I did a bit of homework and came up with an easy workaround. read more...

add a comment |category: |Views: 692

tags: another

Mercurial: Create Remote Repositories Using PowerShell(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 1 year, 9 months ago

One limitation when using http as a publishing mechanism is that you cannot create a repository remotely; no if, ands, or buts about it. Another twist was that our CM (Configuration Management) procedures dictate that our developers are not permitted to RDP into the Mercurial server. This left us trying to decide how to allow developers to create repositories remotely since our http communication channel does not allow remote repository creation. This post details an approach leveraging PowerShell as a solution to this problem. read more...

add a comment |category: |Views: 20

tags: another

Working with WCF: Pt. 3 – Connecting To Your Service With A Client(jamescbender.com)

submitted by JamesCBenderJamesCBender(749) 2 years, 1 month ago

As with almost everything in WCF, you have several options about how you want to consume your service before you even start to talk about things like transport or security. As expected there are benefits and draw backs to each of the approaches. We’ll take a look at two of them in the post. read more...

add a comment |category: |Views: 156

tags: another

Supporting multiple submit buttons on an ASP.NET MVC view(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 2 years, 6 months ago

A while ago, I was asked for advice on how to support multiple submit buttons in an ASP.NET MVC application, preferably without using any JavaScript. The idea was that a form could contain more than one submit button issuing a form post to a different controller action. The above situation can be solved in many ways, one a bit cleaner than the other. For example, one could post the form back to one action method and determine which method should be called from that action method. Good solution, however: not standardized within a project and just not that maintainable… A better solution in this case was to create an ActionNameSelectorAttribute. read more...

add a comment |category: |Views: 836

tags: another