hello.js

var please = require('share');
console.log('thank you');

NEW !!!

Saturday, 5 January, 2019 UTC

3 simple tips for handling environment variables in JavaScript

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


Thursday, 15 March, 2018 UTC

Generate a time-based one-time password (TOTP) in Postman

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


Wednesday, 7 June, 2017 UTC

Run Angular cli, React cli, Aurelia or Vue cli build in VSTS

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


Thursday, 9 March, 2017 UTC

Using letter Pi(π) in JavaScript

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


Tuesday, 7 March, 2017 UTC

Discover what is inside webpack bundle

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


Monday, 23 January, 2017 UTC

VS 2017 + new csproj = useful or useless?

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


Thursday, 12 January, 2017 UTC

Do I need a lawyer to develop software?

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


Tuesday, 3 January, 2017 UTC

Piotr Stapp in 2016

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


Monday, 2 January, 2017 UTC

TOP in 2016 - some stats

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


Thursday, 3 November, 2016 UTC

NPM versus Yarn - the epic fight for speed in Continuous Integration

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


Sunday, 30 October, 2016 UTC

Ghost blog with SSL on azure - the correct way

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


Tuesday, 25 October, 2016 UTC

Project.json made my life easier and it is not a joke

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


Wednesday, 3 August, 2016 UTC

How to split monolith solution - part 3 - compilation tiers

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


Wednesday, 16 March, 2016 UTC

Why HTML form with AJAX submit gives 404?

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


Tuesday, 2 February, 2016 UTC

How to remove JavaScript console.log - pros&cons

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


Monday, 25 January, 2016 UTC

New features in jQuery 3.0

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


Friday, 15 January, 2016 UTC

New Year's resolution: try new front-end JavaScript frameworks

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


Wednesday, 13 January, 2016 UTC

Private npm registry with fallback to global registry

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


Tuesday, 12 January, 2016 UTC

Disable JavaScript console on production

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


Monday, 4 January, 2016 UTC

Clean code - regular expressions

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


Friday, 18 December, 2015 UTC

Floating versions in Nuget

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


Saturday, 5 December, 2015 UTC

Repeatable way to setup Your PC

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


Wednesday, 28 October, 2015 UTC

Setup vagrant with Azure - step by step guide

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


Tuesday, 6 October, 2015 UTC

Fighting with corporate proxy and modern tools like git, npm, bower (SSL problems)

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