Skip to main content

Posts

Showing posts from 2015

How to allow Jenkins installation access to your MS SQL Server

if you want to run integration tests against the database and your tests shall be automated with jenkins, then you will need to add the jenkins service (normally you will install jenkins as a windows service) as an sql database user. so how to find out how the user is called? open your jenkins installation and go to its system properties. you can either reach it via the URL http://<yourServerNameAndJenkinsURL>/systemInfo or you navigate to it through by clicking "manage jenkins" > "system information" there, scroll down. you will find 2 entries: USERDOMAIN and USERNAME (if your server is part of a domain of course). Example for this would be: CompanyDomain\ServerName$ now, add a new SQL User in sqlexpress by opening sql server managment studio, navigating to security/logins and say "new login..." by right click. use "windows authentication" and enter as the login name <ValueOfUserDomain>\<ValueOfUserName>. So

How to convert SVG files to PNGs using C#

How to convert SVG files to PNGs using C# or... how to convert vector images to normal images using C# with a good DPI that is better than the default of 96 DPI. SVG files seem to be becoming more and more relevant in the Web and also other applications are using them. However, I was surprised to find that its NOT that easy to get a PNG out of a SVG file. There are some tools out there, but they require python or the use of browsers... both not really perfect for my needs. And my needs were that I needed a GUI that I can give my non-programmer colleages and that would just run on a windows PC. When I was done I therefore figured out some of you out there might appreciate some help/info if you have similar problems: So I began to look if there are some C# libraries around and I stumbled upon several and two looked especially promising SVG Rendering Engine     https://svg.codeplex.com and SharpVectors - SVG# Reloaded     https://sharpvectors.codeplex.com / both al