jf26028

Stories submitted by friends of jf26028

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

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, 7 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

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

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

Use Google's Closure Compiler in C#(madskristensen.net)

submitted by madskristensenmadskristensen(8565) 2 years, 6 months ago

A very simple and small C# class for utilizing the Google Closure Compiler API for minifying JavaScript. read more...

add a comment |category: |Views: 432

tags: another

Kooboo is a web CMS built based on ASP.NET MVC framework(kooboo.codeplex.com)

submitted by azastawskiazastawski(160) 2 years, 9 months ago

This CMS is off to a good start. ASP.Net MVC, Yahoo UI, DotLucene. Very interesting. The download package kooboo.zip contains an ASP.NET MVC website with a Visual Studio .sln solution file in it. You can download and unzip it, and then open the solution with your Visual Studio to use it. A complete installation guide is available at: http://www.kooboo.com/docdetail/Kooboo_installation_guide read more...

add a comment |category: |Views: 214

tags: another

Checklist for high quality websites part 2(blog.madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 3 years, 3 months ago

The second part of the checklist is about server side code and security read more...

add a comment |category: |Views: 412

tags: another

Checklist for high quality websites(blog.madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 3 years, 4 months ago

A checklist for things to do that will highten the quality of any website. read more...

add a comment |category: |Views: 543

tags: another

Localize text in JavaScript files in ASP.NET(blog.madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 3 years, 9 months ago

Shows a very simple and powerful way of serving .js files with the right localized text strings. read more...

add a comment |category: |Views: 481

tags: another

Status 500 errors when doing HTTP requests(blog.madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 3 years, 9 months ago

How to construct HTTP requests that works with both HTTP compression and various mandatory headers. read more...

add a comment |category: |Views: 12

tags: another

Get country from a browser in ASP.NET(blog.madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 3 years, 9 months ago

A simple and pretty accurate method of retrieving a visitor's country and language from the browser. read more...

1 comment |category: |Views: 672

tags: another

Flickr Gallery for BlogEngine.NET 1.4 Released!(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 3 years, 10 months ago

My apologies for the delay, but I have (finally) put together the release of my Flickr Gallery for BlogEngine.NET, or any other website for that matter. BlogEngine.NET users should understand this is not a typical "extension" where you drop a .cs file into the App_Code directory. It is a stand-alone section that can be dropped into your BlogEngine.NET instance. You can see an example implementation live on my blog at http://DannyDouglass.com/Photos/. read more...

add a comment |category: |Views: 194

tags: another

BlogEngine.NET 1.4 released(dotnetblogengine.net)

submitted by madskristensenmadskristensen(8565) 3 years, 10 months ago

BlogEngine.NET comes with many new exciting features and possibilities for developers. It has taken some time, but now version 1.4 is finally available for download. read more...

add a comment |category: |Views: 5

tags: another

Flickr Gallery for BlogEngine.NET!(dannydouglass.com)

submitted by DannyDouglassDannyDouglass(1260) 3 years, 11 months ago

I have finally followed through with the promise to offer a Flickr-integrated photo gallery that can be easily installed with BlogEngine.NET. If you have spent any time following my blog you know that I have dabbled with a variety of other media extensions (see SlideShow Extension). My previous attempt at a photo gallery required far too much manual work to be usable (hence why it never was updated after the initial release). That is no longer an issue since all you need to do is copy a few files, set a few configuration values, and presto - instant Flickr Gallery on your website/blog! read more...

1 comment |category: |Views: 155

tags: another