So you have a SPA application and you are proud of it. And suddenly a random developer comes and say: "In a test environment, we need a bit different URL/variable/routine/stupid thing/..." In big companies, the way to solve above is a piece ... more
I have a service with a one-time password, which I'm testing using the Postman app. Everything is fine except I have to use Google Authenticator/Microsoft Authenticator/Auth before every request which is quite annoying. But calculating time-based one-time ... more
Modern JavaScript frameworks come with dedicated command line interface (CLI). It applies for: Angular -> Angular CLI React -> react cli - not offical Vue.js -> vue cli Aurelia -> aurelia cli and much more It is great for developers because ... more
Today I was doing some math in JavaScript. I needed a simple calculation from degrees to radians. Of course, I didn't remember the formula. I copied it from Rapid Tables but I forgot to replace π char. Unexpectedly I received a normal error: Uncaught ... more
You start a new project using magic tools like yo , a built-in CLI (e.g. aurelia-cli , angular-cli , react-cli , vue-cli , omg-new-framework-cli ) or just a template from GitHub. Most of them have a webpack inside because this is a fancy module bundler ... more
Here we go again. New Visual Studio, new NET Core tools. This post is the second one about new Visual Studio 2017. Last week I wrote about Common code style in Visual Studio 2017. The question for today is simple: is VS2017 with new csproj useful or ... more
Can I guess your first through? Mine would be: Are you serious? I'm a software developer, I don't need a lawyer. Today, when a lot of code is available on GitHub, our programming is easier. We find a code; we use it and we are happy. But who checks the ... more
I have been busy in 2016. I did a lot for a community, my job and myself also. Moreover, I didn't realize what what I achieved until today. Speaking Last year I was speaking on: 1 grand finale of Daj się poznać 5 user groups including SysOps/DevOps Polska, ... more
Today some stats about my blog in 2016. Audience overview Just three numbers: 34380 users 43856 sessions 58357 pageviews I'm really amazed. Posts - Top 5 Clean code - regular expressions - 3.6% - Top post in January and February. First time I had more ... more
A few days ago, a new tool came from the Facebook team: Yarn package manager. The results published on the official Yarn web page are fantastic. But in my case, I'm using local NPM gallery. So some of the NPM problems don't exist for me. Still, the npm ... more
My blog is hosted on Azure Web Pages. A few months ago I decided to use SSL on it because I can get a free SSL certificate from "Let's Encrypt" website. Change URL in config Simple change URL in config.js generates the following error: Too ... more
Project.json is a celeb in .NET world. But its status is rather "famous for being famous", instead of usefulness. Probably you heard some time ago that it will replace csproj and a few months later that it won't. What is it still doing here? ... more
In the previous article I used a term "compilation tiers", but I didn't define it. But before the definition, I have to describe all the possibilities of the split. To make it easier let's assume that we split our big solution into two smaller ... more
Imagine you have a simple login HTML form on your /Login page. It looks like below: <form id="loginForm" method="POST"> <input id="textinput" type="text" placeholder="login"/> <br/> ... more
How to remove JavaScript console.log - pros&cons A few days ago I wrote a post: Disable JavaScript console on production. Shortly after that, I had a discussion with a friend about other ways to remove console.* statements. I felt that the conclusions ... more
We received a big present for the 10th anniversary of jQuery, jQuery 3.0 has reached beta status. Let’s take a look at what’s new in jQuery and how to use it. jQuery.Deferred Updated to be Promises/A+ Compatible Quoting https://promisesaplus.com/ A promise ... more
Quoting Wikipedia: Blue Monday is a name given to a day in January (typically the third Monday of the month) reported to be the most depressing day of the year. The concept was first publicised as part of a 2005 press release from holiday company Sky ... more
The requirement From time to time we need to use npm packages on following machines: Continuous Integration build agent with no access to internet (usually CI agent) with slow internet proxy Moreover as Windows developers we have Windows servers. Prerequisites ... more
I love to put a log of debugging information in my code. Especially in JavaScript part. It shows me a lot of stuff during my work and allows to diagnose what had happened. Moreover I can include tracing/measure/etc using time and profile functions. But ... more
Clean code is everything The most important thing I learn in 2015 is that clean code is everything. You can have bad performance or logical errors or even security issues. Without clean code you cannot fix anything above, because you don't understand ... more
Asp.NET 5 RC At least ASP.NET 5 is production ready. I know that current state is release candidate, but be honest it means that it is ready. Maybe some quick fixes will be need but who cares ;) This means that we can start thinking about migrating csproj ... more
Imagine Imagine following situations: My Windows is soo slow. I need to reinstall it or I bought a new PC, but I don't have time to setup it for 2 weeks or [put here your last reason of new Windows installation] It will take me sooooo long :(. Why it ... more
Setup Vagrant with Azure is not complicated, but require a lot of steps, especially if you never configure azure using command line Prerequisites First of all we need some tools: Vagrant (https://www.vagrantup.com/downloads.html) (at least 1.7.2) NodeJS ... more
IT Security and safety world Sometimes in big companies the goal of the IT Security department is to make environment more safe. Due to this security lockdown, a lot of modern development tools stop working. The most common error is caused by self signed ... more