Are you over 18 and want to see adult content?
More Annotations

urajp.eu - This website is for sale! - Music Resources and Information.
Are you over 18 and want to see adult content?

Cosplay Cafe - Hentai Stigma - Stream - Watch Hentai Online
Are you over 18 and want to see adult content?

Girls - Privatclubs - Online Erotikführer SexRelax.de
Are you over 18 and want to see adult content?

The magic button — Make Everything OK
Are you over 18 and want to see adult content?

SHARP SH4316MFIX - mundotecnico.info - La web del Técnico Reparador
Are you over 18 and want to see adult content?

CLIPS — Goddess Valora
Are you over 18 and want to see adult content?

Sexcity.ge site ranking history
Are you over 18 and want to see adult content?

Ramada Plaza Manoir du Casino Hôtel Gatineau
Are you over 18 and want to see adult content?
Favourite Annotations

Apartments in Baton Rouge For Rent - Ole London Towne
Are you over 18 and want to see adult content?

MIRA BOLIVIA - Sitios del departamento de SANTA CRUZ. Belleza y Moda, Bienes raÃces, Buscadores
Are you over 18 and want to see adult content?

TIMWETECH - Digital enablers of mobile operators
Are you over 18 and want to see adult content?

blog del padre Fortea
Are you over 18 and want to see adult content?

Church Banners from Christian Banners for Praise and Worship
Are you over 18 and want to see adult content?

Arredamento zona giorno- cucine e living - Veneta Cucine
Are you over 18 and want to see adult content?

Juliana Goes - Dicas de Beleza, Saúde e Lifestyle
Are you over 18 and want to see adult content?
Text
Toggle navigation
* Home
* Archive
* Contact
* Log in
SPRYDON
RICHARD HARDING'S SPOT ON THE WEB ASPNET WEB API 2.2 ODATAV4, SWAGGER, SWASHBUCKLE AND GLIMPSE __25. April 2017 __Richard ____(0)
Recording this here as I know I’ll hit this again on some otherproject…
I wanted to add Swagger api documentation to an existing OData v4 API, something I had done a couple of times before using the Swashbuckle and Swashbuckle.ODataprojects. But for
some reason this time it would not work - the json doc and the SwaggerUI were there but there was no content – the paths collection in the swagger doc was empty – I suspected it had something to do with the way Swashbuckle.OData was building the API descriptions but nothing looked odd in teh way I had configured the OData routes. In the end I cloned out the Swashbuckle.OData project and built locally so I could debug (this was further hampered by the project using Code Contracts – a good thing, but not currently supported in VS2017). I quickly traced the problem to an extension method: > internal static IEnumerable>
> return > FlattenRoutes(httpConfig.Routes).OfTypeX509 CERT FROM FILE
__21. April 2017 __Richard ____(1)
Adding this here so I can find it when it happens again! After a recent Windows 10 update (I’m in the insider fast ring so who knows what changed) I found that an ASP.Net MVC app no longer ran under IIS Express. As part of the app code it was creating an X509 Certificate by loading a pfx file from the file system > var signingCertPath = @"D:\FooCert.pfx";>
> var cred = new X509SigningCredentials(new > X509Certificate2(signingCertPath, "FooPassword", > X509KeyStorageFlags.MachineKeySet)); This was resulting in a Cryptographic exception being thrown with the message “Access Denied” and little else to go on. I suspected is was permissions on the machine key folder (eg C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys) but adding my account to that folder with full control made no difference however, removing the MachineKeySet flag allowed the cert to be loaded. I eventually resorted to using procmon (sysinternals procmon)
to see what was generating the access error – it turned out to be the C:\ProgramData\Microsoft\Crypto\Keys folder — adding my account with full control on that folder allowed the cert to load (still no idea why an update had changed this) DOTNET CORE TESTING LOCAL CLI TOOLS __25. February 2017 __Richard ____(0)
The new xml project file format csproj includes the facility to restore a package for use in the build process (see docs here)
it replaces the
When building a tool package that a project could use its not immediately obvious how to test the unpublished local version of thetool
Given an entry like
area eg
dotnet pack -o ../mynugetcache Then in the consuming project add a Nuget.Config file to add the local area as an addition feed eg__(0)
Recently while trying to update from RC3 of Visual Studio 2017 to RC4 I managed to get into a loop whereby the installer (which is a vast improvement) could not repair or uninstall VS2017 – even attempting to remove via the Control Panel – Programs and Features didn’t seem to work – each time I re-ran the installer to try and get the latest version it detected the existing broken install but was unable to repair or remove. I found the answer on the forums here - there is a tool InstallCleanup.exe which lives in C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout I needed to run it as administrator - the first attempt didn’t seem to work - it seems to fail silently if it doesn’t have sufficient privileges to remove packages and registry keys. Once I ran it I could start the installer and carry out a clean install of RC4 – since RC3 I’ve been using it as my main IDE and seems prettystable
CUSTOM ACTIVITY TO TAG SOURCES IN GIT FROM TFS __28. May 2014 __Richard ____(0)
THE PROBLEM
I want to be able to trace an assembly back to the source that was used to build it, the way I usually accomplish this is to have the continuous integration server set the assembly version (including file version) based on some auto incrementing build number and incorporate that same build number in a source control label. Then given an assembly I can use its version to pull the source that built it. However while there is a built in activity to label workspace files for the TFS Source control repository it doesn’t seem to support the Git repository option which seems like a strange omission. The TFS Community extensions don’t have anythingsuitable either
THE SOLUTION – CUSTOM ACTIVITY & LIBGIT2SHARP I took a look at the source of the built in activities that interact with Git – especially the InitializeEnvironment activity that clones the repository. They all use the libgit2sharp library to interact with the TFS git repository, so using the examples on project wikiI put together
a quick test to check I could apply and push a tag 1: using (var repo = new Repository(@"c:\repos\MyTestRepo")) 2: { 3: var tagName = "MyTagName"; 4: var tag = repo.ApplyTag(tagName); 5: var remote = repo.Network.Remotes; 6: var pushOptions = new PushOptions { Credentials = new DefaultCredentials() }; 7: repo.Network.Push(remote, string.Format("refs/tags/{0}:refs/tags/{0}", tagName, pushOptions)); 8: } That worked, so the next step was to build a custom activity that I could add to a build template - Martin Hinshelwood has a great blog post that helped me to get started with the custom activity and again referring to the source of the built in activities helped with extracting some of the arguments like source directory paths and buildnumbers.
Once you have your activity you need to get it deployed to the build agents, the process is to add the assembly and any dependencies (in this case the libgit2sharp.dll and the native binaries it uses) to a Git repository and configure the Custom Assemblies property of the build agents – this process is well documented on the Community TFS Extensions codeplex site.LOGGING
This of course did not work first time….so I needed to add some logging I copied the example shown in this forum post context.Track(new BuildInformationRecord{
Value = new BuildMessage{
Importance = BuildMessageImportance.High,Message = message
}
});
This threw up an odd situation - its possible for the call to Network.Push method to fail and not throw an exception – in my case it was because the service account that the TFS Build agent was running under did not have the necessary Write permission to create the tag – the PushOption object has an event handler to catch errors - use this to see these kinds of issues and log them to the diagnostics log for the build. I’ve put together a sample activity and the source is on my GitHub DEVELOPER DEVELOPER DEVELOPER SOUTH WEST 5 __21. May 2014 __Administrator ____(0)
Some notes from this weekends DDDSW and to mostly fill in the gaps from Nathan Gloyn’s write up.
Sessions I attended: SESSION 1: STEVE SANDERSON'S - ARCHITECTING LARGE SINGLE PAGE APPLICATIONS WITH KNOCKOUT.JS Lots of interesting background on the use of Typescript on the new Azure management portal – main takeaways Beware preloading large amounts of data and check for memory leaks New components feature in Knockout - https://github.com/knockout/knockout/issues/1273 Use of Yeoman Steve has a generator for a Knockout based web app - https://github.com/SteveSanderson/generator-ko this was worth a look at as it uses a number of JavaScript libraries I’d not come across including JsSignal for messaging and crossroadsfor routing
Good demo of the Karma test runner – like NCrunch forJavaScript tests
SESSION 2: MARC GRAVELL — REDIS CLUSTER— EVERYTHING YOU NEED TOKNOW
Nathan was in the same session – check out his write up Except to note that there are Nuget packages for including a Redis server in an ASP,Net app or you can use chocolaty to install SESSION 3: PHIL TRELFORD — F# EYE FOR THE C# GUY A very entertaining presentation by Phil with some great pointers on how to get started with F#, Phil’s approach is to start with writing tests in F# and then move on to writing the domain layer. He gave a compelling demonstration of how terse the F# code is compared to itsC# equivalent.
Worth taking a look at his version of SpecFlow – TickSpec Also for getting started he suggests taking a look at the F# Koans onGitHub
He also has a book coming out soon - F# Deep Dives SESSION 4: GARY SHORT — HADOOP AND BIG DATA FOR MICROSOFT DEVELOPERS Big Data is all the rage right? – Gary went on to explain what Data Science is really about and that size is not all that counts. A couple of good demos on how C# can be used to write Map Reduce implementations and make the hadoop command line easier to write! Plus a demo on using PowerView in Excel to connect to a hadoop file system to query results There are Microsoft authored packages on nuget MS Supported Hadoop on windows server SESSION 5: MAURO SERVIENTI —A GENTLE INTRODUCTION TO ANGULARJS This was a good contrast to Steve Sanderson's talk in the first session with further clarification of when Angular is a good fit, impact on page size etc Slides from the presentationMauro’s blog
CLOSING
All in all a great day and another year when I didn't win anything inthe raffle
WORKING WITH ACHARTENGINE AND XAMARAIN ANDROID __14. January 2014 __Richard ____(0)
I’m starting a new mobile project on android using Xamarin and needed a charting engine to display some data, there are a few existing component choices in the Xamarin component store one free one – bar chart but it (as the name suggests) only does bar charts and as far as I can tell can’t display multiple series at the same time. The other choices look great but cost real money and I needed to spike something without investing too much cash. A quick search for any open source options revealed a few options but none with any xamarin bindings as part of the existing code base leaving a final option of building a binding library myself. According to the docs creating a binding library should be a fairly simple process but they do hint at having to fix up issues by hand which is where I ended up with AChartEngine – I downloaded the 1.1.0 jar file, created a new bindling library project, added the jar and build At first it looked like I almost got away with it as I only had asingle error
C:\Users\richard\Documents\GitHub\AChartEngine.Xamarin\AChartEngine.Xamarin\obj\Debug\generated\src\Org.Achartengine.Tools.Pan.cs(29,29): Error CS0542: 'Pan': member names cannot be the same as their enclosing type (CS0542) (AChartEngine.Xamarin) So according to the docs I needed to do a bit of renaming using the metadata.xml file in the transforms folder so I added the following to the metadata mapping file to rename the event handlerRECENT TWEETS
Note: For Customization and Configuration, CheckOut Recent TweetsDocumentation
Copyright © 2020 Sprydon - Powered by BlogEngine.NET 2.9.0.0 - Design by FSDetails
Copyright © 2023 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0