Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Extract jpg or png images from a PDF

AddThis Social Bookmark Button
There are a lot of tools available online to extract images from a PDF, but most of them are shareware or trialware. If you need just a single image, you can right click it in Adobe acrobat reader and copy paste it into Microsofts paint, Paint.net or (overkill) Adobe Photoshop. But if you have a PDF with several pages and several images on each page, you’d like to have it automated. That’s when you start your search for a good free/low cost utility. Or, you can write your own! Much more fun guaranteed! Getting started It’s easier then you
might think. Start Visual Studio 11 and file –> new project (or ctrl + shift + n) I have selected .Net Framework 4, because not all pc’s which will use this utility have .Net 4.5 installed. The user interface of the utility My WinForm design looks like this: So the UI ‘flow’ is a top down, simple thing. When you fire up the utility, it only shows the top button which opens a openFileDialog and after hitting the OK button of that dialog, it makes the next button visible. That second button displays a folderBrowserDialog and after that OK button, it shows...(Read whole news on source site)

Beware the common infrastructure

AddThis Social Bookmark Button
One of the common problems that I run into when consulting with clients, or just whenever I am talking to developers in general is the notion of common infrastructure. “We are going to spend some time building a common infrastructure which we can then use on all of our applications.” I made that mistake myself with Rhino Commons, and again very recently with RaccoonBlog (look at the code, you see the Loci stuff, that is stuff that is used from another project). Why is that a problem? Well, for the simplest reason of all. Different projects have different needs. A
common infrastructure that tries to accommodate them all is going to be much more complex. Not only that, it is going to be much more brittle. If I am modifying it in the context of project A, can I really say that I didn’t break something for project B? Let us take a simple example, executing tasks. In RaccoonBlog, we need tasks merely to handle comments and email (long running background tasks). In another application, we need to do retries, and we need to get notifications if after N retries, the task have failed. In a third project, we need...(Read whole news on source site)

Mock C# DateTime.Now in NUnit tests using Moles

AddThis Social Bookmark Button
We needed to test code which uses the current date. To create unit tests it is desirerable to test with different dates. To do this we needed something to mock .net class DateTime. First thing that came to mind was to create our own interface to get the system time and implement different versions. But [...] Share on Facebook Retweet this

Manchester meeting take 1!

AddThis Social Bookmark Button
Last night we had our first Manchester meeting in the Hive in the centre of town. The meeting was well attended for a first one with over 35 people. The organisation and the upmarket venue and food put us in London to shame! Carlos Oliveira, Director of Shaping Cloud put the meeting on. Carlos is [...]

@home with Windows Azure Webcast: – Debugging and Troubleshooting in the Cloud - 4/5/2012 12:00pm EDT

AddThis Social Bookmark Button
Tomorrow (Thursday, 4/5/2012) at noon ET (9am PT) we have our fourth screencast in the @home series: Debugging and Troubleshooting in the Cloud! During the first week of March 2012, my teammates Brian Hitney, Jim O’Neil, and I announced the re-launch of the @home with Windows Azure project. On March 15, we hosted a kick-off webcast providing an overview of the project. This is the fourth in a series of five where we’ll dive into various aspects of Windows Azure.  In this fourth webcast, we’ll explore how you can debug, troubleshoot, and monitor your applications in Windows
Azure.  From the abstract page: In this fourth webcast episode, we talk about debugging your application. We look at debugging locally and how the emulator works for local development, and we talk about configuring diagnostic data to capture logs and performance counters. For the especially tricky troubleshooting issues, we discuss IntelliTrace, an advanced debugging tool, to gather more information about your application—essentially building a timeline of events that can be examined to quickly find the root of a problem. We also look at remote desktop options for troubleshooting. WATCH THE WEBCAST at 12:00pm EDT 4/5/2012 If you can’t make this one,...(Read whole news on source site)

Using T4 templates with the NHibernate Designer

AddThis Social Bookmark Button
The NHibernate Designer is a great way to design data models for use with the NHibernate object-relational mapper. But once you’ve captured your data model, you may be interested in generating other code from it — anything from data transfer objects (DTOs) right through to scaffolding for a simple admin site. In some cases you [...]

TFS 11 Power Tools Beta Released

AddThis Social Bookmark Button
A beta release of the TFS 11 Power Tools has been released.  This release can run side-by-side with the TFS 2010 Power Tools (with some caveats – see below). The features included with this release are: TFS 11 Power Tools Team Foundation Power Tool Command Line (tfpt.exe) Team Explorer Enhancements Windows Shell Extensions (*note: depending on which versions of the TFS Power Tools you install (e.g. TFS 2010 or TFS 11 Beta) the last one installed wins – i.e. you can’t have Windows Shell Extensions for
both versions) Process Template Editor Test Attachment Cleaner Best Practices Analyzer TFS PowerShell Commands Build Extensions – provides the ability to execute Ant or Maven 2 builds from Team Foundation Server 11 Beta and publish the results of the build along with any associated JUnit test results back to Team Foundation Server. MSSCCI (32-bit) & MSSCCI (64-bit) - enables integrated use of Team Foundation Version Control with products that do not support Team Explorer integration. There are a few known...(Read whole news on source site)

File I/O in Node

AddThis Social Bookmark Button

The fs module provides both synchronous and asynchronous ways of reading files. The readFile method reads the contents of the file asynchronously.
fs = require('fs');
fs.readFile(file, [encoding], [callback]);

where file is the name of the file to read, encoding is an optional parameter that specifies the type of encoding to read the file. Possible encodings are 'ascii', 'utf8', and 'base64'. If no encoding is provided, the default is utf8.callback is a function to call when the file has been read and the contents are ready - it is passed two arguments, error and data. If there is no error, error will be null and data will contain the file contents;
otherwise err contains the error message.
Similarly the writeFile method writes content to a file specified in the function. Read more
...(Read whole news on source site)

Home