895
[no title]
Your language isn't broken, it's doing floating point math. Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree of inaccuracy. That's why, more often than not, .1 + .2 != .3.
float  arithmetic 
8 weeks ago
Using CancellationTokens in ASP.NET Core MVC controllers
In this post I'll show how you can use a CancellationToken in your ASP.NET Core action method to stop execution when a user cancels a request from their browser. This can be useful if you have long running requests that you don't want to continue using up resources when a user clicks "stop" or "refresh" in their browser.
aspnet  mvc  cancellation 
8 weeks ago
Pro Tip: using static Microsoft.AspNetCore.Http.StatusCodes
// Perfect ♥
using static Microsoft.AspNetCore.Http.StatusCodes;
// ...
context.Response.StatusCode = Status412PreconditionFailed;
dotnet  http 
9 weeks ago
Authenticating to Office 365 APIs with a certificate
This blog post is meant to serve as one place to get all the info you need for setting up certificate authentication. This scenario is important when you, for example, want to use the SharePoint Online REST API with application permissions because it does not support authentication with a client secret. Microsoft Graph API does support it, but if you already need to authenticate to some other API with a certificate, you might as well use the certificate for Graph as well. You can also use these exact same steps to setup authentication for a custom API that uses Azure AD to authenticate its users.
azure  aad  authentication 
10 weeks ago
Webfont – Create and manage custom SVG icon fonts | Webfont app for Mac
Streamline the process of creating and maintaining custom SVG icon fonts. Create a shared library of icons, invite your team and export your font in minutes.
font  icon 
november 2019
Solution-wide Nuget package version handling with MsBuild 15+ | StrathWeb
Last year I blogged about a way to handle NuGet package versions at the solution level for .NET SDK-based csproj project files (so those using <PackageReference /> entries to define their NuGet dependencies).

That approach worked reasonably well, but was entirely custom – as it simply relied on defining reusable MsBuild properties to handled the versions, which created a bit of overhead.

With MsBuild 15 and newer, you can actually do it in a much more elegant way. Let’s have a look.
nuget 
november 2019
Talk: Let's Talk HTTP in .NET Core - Steve Gordon
This session will focus on some of the improvements which have been released in .NET Core and ASP.NET Core 2.1, 2.2 and 3.0, such as IHttpClientFactory and the new, more performant socket-based handler. Steve will identify some HTTP anti-patterns and common mistakes and demonstrate how we can refactor existing code to use the new HttpClientFactory features.
dotnet  http 
november 2019
Alpha Compositing
Transparency may not seem particularly exciting. The GIF image format which allowed some pixels to show through the background was published over 30 years ago. Almost every graphic design application released in the last two decades has supported the creation of semi-transparent content. The novelty of these concepts is long gone.

With this article I’m hoping to show you that transparency in digital imaging is actually much more interesting than it seems – there is a lot of invisible depth and beauty in something that we often take for granted.
drawing  graphics 
october 2019
Entity Framework Core: ROW_NUMBER Support
There are some use cases that force me to use raw T-SQL instead of using LINQ. One of them is the need for ROW_NUMBER. But not anymore...

One again, due to great work of Entity Framework (EF) team we are able to add more capabilities to EF quite easily. At the moment there are (at least) 2 approaches, the first one is by implementing a custom IMethodCallTranslator the other one is by using the method HasDbFunction.
efcore 
october 2019
Windows 10 Start Menu Troubleshooter will fix problems automatically
Includes a link on Softpedia with the "Start Menu Troubleshooter" that must be run as administrator to fix issues. For me, the search menu would not open at all. After running the troubleshooter, the problem was fixed and the search menu works.
windows 
september 2019
Backup up your Raspberry Pi SD Card on OS X
Also includes "Restoring your Raspberry Pi Backup on OS X"
raspberrypi  backup  macos 
september 2019
Microsoft.VisualStudio.Threading
The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
dotnet  async 
september 2019
ASP.NET Core CORS configuration made simple
When a front-end application (think javascript) tries to access your ASP.NET Core API, if your API is hosted at a different "origin" then you'll see the dreaded "CORS" error.

Use this tool to make your ASP.NET Core API and front-end app play nice.
cors  dotnet 
august 2019
Debugging .NET Apps with Time Travel Debugging (TTD)
When you are debugging an application, there are many tools and techniques you can use, like logs, memory dumps and Event Tracing for Windows (ETW). In this post, we will talk about Time Travel Debugging, a tool used by Microsoft Support and product teams and more advanced users, but I encourage everyone to try this approach when diagnosing hard to find bugs.
dotnet  debug 
august 2019
Testing EF Core in Memory using SQLite
The idea of this post is to use SQLite as the database. SQLite also have an option to run fully in-memory (e.g. without writing data on disk). This way, you use a relational database but in memory, which is great for unit testing.
dotnet  efcore  sqlite 
august 2019
Your Graphviz, UMLGraph or PlantUML for your README
a simple way of describing graphs and include it easily in your web for free, blog, markdown page, github, and any location where remote images can be showed. Gravizo uses Graphviz to render graphs. It supports DOT, PlantUML, UMLGraph syntax and SVG in JSON format. It will include other formats in the future. No javascript, no plugins needed so you can include in any document.
graphviz 
august 2019
Helping Your Users Reset TCC Privacy Policy Decisions
Taking a cue from iOS, Mac OS X 10.8 “Mountain Lion” introduced new systems to help users manage access requests to potentially sensitive and private personal information. When an app required access to a user’s Contacts, for instance, a consent prompt appeared on screen asking the user to allow or disallow this access.
macos  tcc 
july 2019
Modern Login Items
You may have used a Mac application before that launches at login (Dropbox, 1Password, and other apps do this). Launching at login allows the users to immediately begin using an application instead of having to manually launch it. This can be particularly useful if you have a menu bar application that launches without a Dock icon to get in the way.

Login Items have previously been a way for OS X apps to provide this service to users, but is not compatible with the sandbox requirements of the Mac App Store. Fortunately, there is a much more modern way to handle this, and I’ll walk you through setting it up in your own projects.
macos  cocoa 
june 2019
Lorenzo Alberton - Articles - Database identifiers, quoting and case sensitivity
Exploring database delimited identifiers and case sensitivity: the effect of quoting table and field names in the various DBMS.
database 
april 2019
.NET Standard Target Chooser
So, you have a general-purpose library and want to target netstandard? This site will help you!

Just select your desired platform support, and this tool will generate the target frameworks you need to paste into your csproj file.
dotnet  dotnet-standard  from twitter_favs
march 2019
Throttling your API in ASP.NET
Can someone DOS attack your API and bring down your webservice? Could I hit your API at 100 requests a second and bring down your server? Or can you throttle your users like this?
aspnet  throttle 
february 2019
Programming Fonts
Test drive over 50 free programming fonts
fonts 
february 2019
My Abandonware
DOWNLOAD ABANDONWARES, FROM 1978 TO 2018

Get ready for a deep dive into PC retrogaming, more than 14100 games are available and waiting to be played again. Discover rare 80s games and immerse yourself into classics from the 90s. Get your dose of nostalgia and old school gaming right now!

On My abandonware you can download all the old video games from 1978 to 2018 for free! You can play Pacman, Arkanoid, Tetris, Galaxian, Alter Ego, or Blackthorne, Civilization, Sim City, Prince of Persia, Xenon 2, King's quest, Ultima, Kyrandia, The Incredible Machine, Another World, Test drive, Flashback, Lemmings!
game  retro 
february 2019
Dependency Injection
Comparison of .NET dependency injection containers
dotnet  dependency-injection 
february 2019
doPDF
doPDF is a free PDF printer that does what the name suggests, creates PDF files. Once installed it will allow you to convert any type of printable documents to PDF files. doPDF installs itself as a virtual PDF printer driver so after a successful installation will appear in your Printers and Faxes list and also in the list of All Programs.
pdf  windows  free 
january 2019
EventSource User’s Guide
EventSource is the central class that allows a developer to create strongly typed events to be captured by event tracing for Windows (ETW).
dotnet  ETW 
january 2019
[Guide][Testing] Kodi 18.0 Leia beta versions for Raspbian Stretch!
How to install Kodi 18 on Raspbian and restore to version 17.
raspberrypi  kodi 
december 2018
Andrew Lock | .NET Escapades | [Configuration]
Blog posts about configuration in ASP.NET Core by Andrew Lock
aspnet  configuration 
november 2018
O&O RegEditor
Freeware for editing the Windows Registry
windows  registry  regedit 
november 2018
Killing an oracle session to remove a lock
I always have to search around for the right commands in order to remove table locks in Oracle. Thought I'd post and hopefully will remember I can look her for it in the future. Below seems to work at least in 8/9i.
oracle  database  lock 
october 2018
Full Emoji List
This chart provides a list of the Unicode emoji characters and sequences, with images from different vendors, CLDR name, date, source, and keywords. The ordering of the emoji and the annotations are based on Unicode CLDR data. Emoji sequences have more than one code point in the Code column.
emoji  unicode  reference 
october 2018
Migrating tasks from old csproj to new csproj format
How to use xdt transform with the new csproj format
csproj  xdt  transform 
august 2018
Build Your Own MVVM Framework
You've heard a lot about Model-View-ViewModel (MVVM), but you've struggled to see how it can help you in your day-to-day work. Or, you're experienced at implementing MVVM, but looking for some ways to maximize your investment in this methodology. In this talk, we build a simple MVVM framework by iteratively identifying pain points in our UI development and eliminating them with simple solutions. You'll walk away with code, but more importantly with an understanding of how to apply some simple ideas to improve productivity with MVVM in your own projects.
mvvm  video 
august 2018
« earlier      
adblock adhoc aewp agile airport android api app apple applescript appstore archive aslr asm aspnet async audio authentication authorization avatar azure azure-functions backup base32 bash benchmark beta binary bittorrent block blog bonjour book boot branch build button c certificate charles chart cinéma cli cocoa code codesign codesigning color colorpicker comparison compiler configuration console conversation cool coreanimation coredata counter country course coverflow cpp crack crash crashreporter creditcard cron crypto csharp csproj css cydia darwin data database debug debugger debugging debugserver dependency-injection depth design desktop development di diagram dictionary dictionnaire disassembler disk disposable distribution distro dmg dns doc documentation dotnet download doxygen drawing dsstore dtrace dvd dwarf dyld dylib ecommerce ef efcore elf email emoji emulation encoding english entity-framework executable extension favorites feed filesystem filter finder firmware flags flash font fonts format forum framework français free french fun game gcc gdb gdi+ git github google gradient graph graphics graphviz gui hack hacking hardware hash header help history howto html html5 http icon icons image installer interview inversion-of-control ioc ios ipfw iphone ipsw isync itunes jailbreak javascript jetable job json kernel keyboard keychain keynote kodi language launchd leopard library link linker linq linux lion lldb localization log logo mac mach mach-o macos mail manga map md5 metadata mingw mobile model monitor mouse movie mp4 mvvm mysql nat native netcore network networking nsmutablearray nuget objc objective-c occasion ocunit online opensource openssl osx p2p package packer pattern payment pdf pe performance php piracy pixel player plist plugin powerpoint preferences preprocessor printer productivity programming protection protocol proxy publish push python qt quicklook quicktime radio raspberrypi reference regex releasenotes remote repository resource reverse-engineering rn rss rtmp ruby safari sandbox schema screencast screenshot scroll sdk search security service shadow shell shellcode signature simbl sleep sms snippets snow-leopard snowleopard soap social software sound sourcecode spaces sparkle spotlight sqlite ssd ssl static statistics status stencil streaming strongname subtitle subversion sudo suisse svn swiss swizzle symbol technote template testing textmate time timemachine tls tool toolkit tools transaction translation tv tweet tweetie twitter uitableview unicode url usability usb validator vente version video vmware voiture vpn vuvuzela warnings web webkit win32 windows x86 x86_64 xcconfig xcode xml xpath xpc xsd zip

Copy this bookmark:



description:


tags: