Monitor class in .NET might be the most often used “locking” mechanism in C#, mostly because the
lock keyword is making it so easy. One thing you might face is unknown number of locks you’re going to need and how to solve this. This is often called named locks or named
Monitors, because the lock is bound to some name (or similar value).
I’m sad. I’m sad because I bought myself a chair. It sounds probably confusing, why buying yourself a chair would make you sad. Stay with me.
At the moment, one of my explorations is how the system (Windows) handles more-than-number-of-CPUs threads (all ready to run) under full load (from these threads). And because I’m out of office, I access my workstation remotely (using TeamViewer, in case you’re wondering).
Almost exactly 5 years ago (yes, that’s 2013) I wrote about Custom encryption of field with Entity Framework. At that time, it was using few tricks to make it work and although it might have looked like magic first time you saw it, it was actually very easy. With Entity Framework Core nowadays we have far more options how the entity can look like and hence how the whole solution can be plugged together. Let’s revisit the topic.
I was teaching my Entity Framework Core course last two days and question about priority of attributes’ and configurations’ priority came. Let’s test it, shall we?
Příští týden se konají po roce opět konference ShowIT (Bratislava) a G2B•TechEd (Brno) a myslím, že ještě nějaké místo urvat můžete. Aby se ani jedno město necítilo ochuzené, budu mít na stejné přednášky na obou. Povíme si něco o Azure CosmosDB.
Azure CosmosDB je databáze s globálním škálováním a dostupností. Podporuje několik modelů ukládání a konzistence. Má garantovanou dobu odezvy bez ohledu na data. A to vše jako služba v Azure. Wow! Je to opravdu tak přímočaré? Nebo je nadšení třeba krotit? Vysvětlím vám, jak CosmosDB funguje, na co se dá použít a uvidíme jestli je nadšení podloženo daty (třeba i těmi uvnitř DB 😉).
One of the few things I was missing when tuples were introduced was some way to generically work with unknown tuples. Mostly to be able to identify tuples, instead of using plain
object and also work with items using index of some sort. Luckily, I was probably not the only one and starting .NET 4.7.1 new interesting interface –
ITuple – was added (also available in .NET Core 2.0).
Recently in my social bubble, mostly on Twitter, there has been a lot of talking about mentoring. Senior developers mentoring juniors and so on. Although I’m not, by any means, saying mentoring is bad and juniors should leave seniors alone, I’d like to also share my opinion. Shedding some light into this seemingly black-and-white problem.
New version 18.104.22.168 of ADO.NET provider for Firebird is ready for download. This is a regular bug-fix release.
As I’m sweeping the corners, the work is less glamorous (read: close to zero outside contributions) and every move is harder and harder. But despite all of that, I’m glad to move one step closer to the RTM version of Entity Framework Core 2.0 provider for Firebird and jump to the beta phase.
WUGy v Olomouci opět oživly a můžeme se tedy podívat společně na Entity Framework Core 2.0.
Entity Framework Core 2.0 byl představen nedávno společně s .NET Core 2 a ASP.NET Core 2. Co nového přináší? Jaké jsou změny oproti verzi 1.0 / 1.1? Má smysl verzi 2.0 používat? Jaké jsou pokročilejší features, jaká jsou její omezení… A co například použití s jinými databázemi než jen MS SQL Server?
Těším se na vás 12.12.2017 od 17:00 v Olomouci.
Although you can disable PDB files generation altogether, it’s good idea to have these. Debugging without PDB files later is so much harder, like if debugging isn’t hard enough already. One thing that might be bothering you, is the source files location that is stored in PDB files. You might want to change these paths – build servers often use random directory names or you might want to simply hide that the project directory on your hard drive has some weird name. 😃
In previous post I measured execution speed of static and instance methods. Here I’ll dig deeper and I’ll try to find where the difference comes from. Bear in mind, I don’t have a deep knowledge of processors, JIT or assembly. I’m just thinking out loud, poking and observing.
Couple days ago, fellow MVP and colleague @RobertHaken tweeted from frustration about a refactoring (in this case not a good refactoring) into static methods. And I immediately started thinking about scenario where the static method might have some tangible benefits compared to instance method. What a better way to improve method execution than speeding it up? Could this be the case?
As the usage of
await seeps more and more into general C# code, I’m finding some small “leaks” that make me sad sometimes. This one is pretty simple. Looks like that every time somebody uses
XxxAsync method, he or she also awaits it. Makes sense, or does it?
New version 22.214.171.124 of ADO.NET provider for Firebird is ready for download. Although I’m focusing mainly on version 6 of FirebirdClient now, immediate fixes and small improvements are still landing in 5.x version(s). This is a collection of these.
The Multisensor 6 from Aeotec is a nice little device. I have three of these in my house at the moment (and I’m sure I’m not done yet 😉). Being data geek I always calibrate the temperature (and humidity) sensor to match my own “calibration” devices (ESP-8266 with Si-7021). The steps described in official documentation are correct, but because I use OpenZWave (in Domoticz) I had to do some specific steps to make it work.
If you read the documentation etc. for Azure CDN, it often expects that you’re going to use it on parts of your website and rest will be served directly from the original location. But if you have completely static (and currently running) website, like for example this blog, which is using the Azure CDN actually, you need to take a few specific steps to start using Azure CDN in such setup and without downtime.
Stejně jako .NET, Microsoft a techonologie kolem mají výbornou Gopas TechEd konferenci, má i Java svět svoji – JavaDays. Letos se uskuteční 13. – 14. listopadu a já jsem si připravil několik přednášek, které vás doufám zaujmou. Především kolem tématu databází, které je mi velmi blízké.