Freelance Software Developer

microsoft azure

Azure Portal: Hmmm... Looks like something went wrong

Azure Por­tal some­times fails to load. It hap­pened to me sev­eral times. It was al­ways caused by ex­ceed­ing the quota of HTML5 Lo­cal Stor­age. The so­lu­tion is as sim­ple as clear­ing the stor­age and nav­i­gate to por­tal again. Mi­crosoft Edge con­tains hid­den De­vel­oper Tools which helps with tasks like this. You can also delete en­tire brows­ing his­tory but it will af­fect all web­sites, not just Azure Por­tal. Read more ›


How to redirect to HTTPS in ASP.NET MVC application correctly

Up­grad­ing browsers vis­it­ing your web­site to se­cure con­nec­tion is a best prac­tice and it is easy to do. I have de­cided to share my im­ple­men­ta­tion be­cause I had seen many par­tial or in­se­cure im­ple­men­ta­tions. Cor­rect im­ple­men­ta­tion sat­is­fies both back­ward com­pat­i­bil­ity and se­cu­rity re­quire­ments of var­i­ous web browsers. This ar­ti­cle covers what you need to know be­fore you start to redi­rect your users to HTTPS pro­to­col. Read more ›


Q# – Introduction to quantum computing

Mi­crosoft has re­leased a new .NET lan­guage called Q# along with Mi­crosoft Quan­tum De­vel­op­ment Kit. It con­tains a full state quan­tum sim­u­la­tor. Mi­crosoft want to pave the path to quan­tum com­put­ing in dat­a­cen­ters able to ex­e­cute pow­er­ful quan­tum al­gorithms. A quan­tum com­puter is fun­da­men­tally dif­fer­ent than a clas­si­cal bi­nary com­puter. A new era of com­put­ing may be closer than you may think. Read more ›

dot net

How to enable response compression in ASP.NET Core 2 with gzip and Brotli encoding

In­ter­net traf­fic can be com­pressed to save net­work band­width us­age. While im­ages and web fonts are al­ready com­pressed, text files are stored on the server in hu­man read­able form. HTTP.sys server and Kestrel cur­rently don't have built-in com­pres­sion sup­port. By de­fault, only static files are com­pressed with gzip. What if you want com­press more? Read more ›


A few notes on Sonar

A val­ida­tor is a great tool that checks your site for in­vis­i­ble de­fects. There are many of them but the Sonar is dif­fer­ent than all others. It is the only test­ing tool which wants to val­i­date web­sites com­plexly, is open source and com­mu­nity driven and has a browser in­te­gra­tion. Why fron­tend de­vel­op­ers need a com­plex test­ing tool? Why the in­de­pen­dence from any big soft­ware ven­dor is im­por­tant? And fi­nally – does Sonar have some po­ten­tial and is it a use­ful tool now? Well, I have col­lected some sig­nif­i­cant notes to its qual­ity. Read more ›


Čím se řídí vývoj Microsoft Edge?

Mi­crosoft je v oblasti vývoje svého we­bového proh­lížeče velice otevřený. V současné době je tým, který se věnuje jeho vývoji, výrazně vetší, než tomu bylo v před­chozích něko­lika letech. Díky od­s­tranění starého kódu pro kom­pat­i­bil­itu s weby z doby ka­menné a jeho ponechání svému osudu v IE je im­ple­men­tace nových stan­dardů v moderním proh­lížeči výrazně rych­le­jší, než tomu bylo v min­u­losti. Zbývá jen sdělit Mi­crosoftu na co by se měl v jeho vývoji zaměřit. Celý článek ›

service fabric

Memory leaks symptoms & causes in Service Fabric reliable services

Mem­ory leaks are hard to de­tect and can cause se­ri­ous prob­lems. While a sin­gle job task run­n­ing for few sec­onds doesn’t have to care about them, the ser­vice run­n­ing 24 hours a day must be care­fully tuned to suc­cess­fully ful­fill its job. More­over, mem­ory leaks don’t have to be de­tected straight away, they usu­ally ap­pear as an­other ex­cep­tion point­ing you to find­ing prob­lems in dif­fer­ent area. Let’s look at one ex­am­ple of a mem­ory leak and how it shown up. Read more ›

service fabric

Keep your service running forever by designing an instant shutdown

Over a year of de­sign­ing and mov­ing sev­eral ser­vices from Azure Cloud Ser­vice to Ser­vice Fab­ric taught me few things which are im­por­tant to keep in mind dur­ing cre­at­ing or refac­tor­ing mi­croser­vices hosted in Ser­vice Fab­ric en­vi­ron­ment. Don’t for­get that Ser­vice Fab­ric pat­terns are tight to .NET, which has gone throw a mas­sive paradigm shift. You must be up-to-date at least with asyn­chronous pro­gram­ming to be able to code solid ser­vices. Read more ›


Edge bude dostupný i pro iOS a Android

We­bový proh­lížeč Mi­crosoft Edge se rozšíří z Win­dows na další op­er­ační sys­témy – iOS od Ap­plu a An­droid od Googlu. Od ukončení vývoje Win­dows Mo­bile totiž Edge nedá­val smysl ani na PC, pro­tože chy­běla syn­chro­nizace záložek, oblíbených položek a he­sel s mo­bil­ním tele­fonem. Mi­crosoft proto rozšiřuje uži­va­tel­skou pod­poru na ostatní mo­bilní op­er­ační sys­témy. Edge je na nich čistě jen věcí uži­va­tel­ského rozhraní, ne­jedná se o port Edge­HTML a Di­rectX. Celý článek ›

service fabric

Health monitoring of the Service Fabric app upgrade

De­ploy­ing an up­date of any ap­pli­ca­tion can be risky, be­cause new code may con­tain new bugs. Unit test­ing is an ad­vis­able method of re­duc­ing the risk. How­ever, some mech­a­nisms de­pend on work­load. Some work­loads can be sim­u­lated eas­ier than others. Ser­vice Fab­ric pro­vides health mon­i­tor­ing af­ter the new ap­pli­ca­tion ver­sion is de­ployed to the clus­ter. If the new ver­sion is not healthy the old ver­sion is rolled back au­to­mat­i­cally. Set­t­ing up the pro­tec­tion against fail­ures caused by up­grades is rel­a­tively easy. Read more ›

service fabric

How to secure Service Fabric cluster with an X.509 certificate

You prob­a­bly no­ticed that Ser­vice Fab­ric Ex­plorer is publicly ac­ces­si­ble and does not re­quire any user­name or pass­word. Ser­vice Fab­ric Ex­plorer al­lows mon­i­tor­ing and man­age­ment ac­tions like dis­abling nodes or ap­pli­ca­tion dele­tion. The clus­ter and its man­age­ment can be eas­ily se­cured with an X.509 self-signed cer­tifi­cate. Af­ter that the cer­tifi­cate is re­quired prior to ac­cess Ser­vice Fab­ric Ex­plorer or pub­lish­ing ap­pli­ca­tions to the clus­ter. Read more ›

service fabric

Azure Service Fabric & Scheduled Tasks

Sched­uled tasks have many names. In Win­dows, it is tra­di­tion­ally called Task Sched­uler. In Unix-like en­vi­ron­ments job sched­uler is called Cron dae­mon. Mi­crosoft Azure con­tains Azure Sched­uler and Azure Web Apps have We­b­Jobs. Ser­vice Fab­ric has its own mech­a­nism called Ac­tor Remin­der. This ar­ti­cle ex­plains how to im­ple­ment them. Mul­ti­ple jobs could be encap­su­lated in a sin­gle as­sem­bly. Read more ›