I have a case where I have to load multiple Javascript bundles containing React components for server-side rendering based on a configuration in an environment variable. The bundles can be loaded from the filesystem, of over http(s). …


Azure provides next to Windows Web Apps also Linux based Web Apps. Windows web apps are based on multiple IIS Web Sites on a single VM. Linux Web Apps are underneath Linux containers instantiated from a Docker image.

See General availability of App Service on Linux and Web App for…


Sometimes you get a question and you think “why don’t you ask Google first…”. If you want to point this out “in a subtle way” use http://lmgtfy.com/.


I’m working in a development team with multiple developers and in our web.config we have a SQLServer connection string defined as:

<add name=”Jobs” connectionString=”Server=.\SQLEXPRESS; Database=Jobs; Integrated Security=SSPI;” />

I needed to install SQLServer 2016 for another project, and now I ended up with an instance name .\SQL2016. When I change…


There are times that you have YouTube urls in your data set but can only display an mp4 video. I had this case in an amp-story where amp-youtube is not supported but only amp-video is supported. The service uses the AJAX endpoint used internally by YouTube’s iframe embed API. The format is as follows: https://www.youtube.com/get_video_info?video_id={videoId}. See the Reverse-engineering YouTube blog post for great background information on this endpoint. As far as I know you need to do the call just before you use the mp4 url, because the url can expire.

Call it like:

http://localhost:9000/youtube2mp4?url=https://www.youtube.com/watch?v=5aZI-jukT5E

(url-encode the value of the url parameter when using it from code)

Result:

{"success":true,"url":"https://r5---sn-32o-5hne.googlevideo.com/videoplayback?lmt=1522557608746618&dur=466.697&ipbits=0&expire=1527910040&initcwndbps=1100000&requiressl=yes&pcm2cms=yes&mime=video%2Fmp4&signature=D6F0BB6E86293934A65741E6452864BAB756C9A4.02771C1D34F1845BABC82D4E9B52A8F5CA32B3DA&ratebypass=yes&ip=77.168.214.19&ms=au%2Crdu&mv=m&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&mt=1527888338&id=o-AIaYX1oUu2olQ6sdkkxdokgtnHjcoFmorMjREHIsrSbn&mn=sn-32o-5hne%2Csn-5hne6nsk&mm=31%2C29&c=WEB&source=youtube&pl=25&fvip=5&key=yt6&itag=22&ei=OLoRW83RBrLbgAf9yb3ABA"}

When the call fails it will return an error as follows:

{"success":false,error:"Url parameter missing"}


Azure has a great command-line interface to manage all things Azure called Azure Cloud Shell. In this cloud shell you have the command az to do all kind of command-line interactions on Azure. …


The best hardware for running Windows 10 is… a MacBook Pro! But I must say that I was a bit disappointed that I could not run Docker for Windows right away. I’m running Windows 10 using Boot Camp, and virtualization was disabled (start Task Manager, select the Performance tab, see the “Virtualization” at the bottom right). After a long search I stumbled upon the blog post HACK: Force VT-x to be always on when booting to Windows on your MacBook that described the installation and configuration of a boot loader that solved the problem!


Doing a lot with NodeJs lately to start web services, and sometimes when I restart my node service it says that the IP port I want to start on is already in use. There is still a node instance running, but I can’t find it… until now!

Open a Command Prompt with administrator permissions and execute: netstat -a -b -o, look at the process id (PID) that uses the port you need, for example 2612.

Kill that process using: TaskKill /PID 2612 /F.

Done.


I had a very old Git branch (NewBranch) where I did some new development. In the meantime, the branch I originally branched from (OriginalBranch) was so different that I only wanted to copy out the changed files into a zip file. I found some funky Git one-liner commands that work…

Serge van den Oever

Technology Consultant @ Macaw in the Netherlands. Interested in front-end web development: ReactJS, Storybook, TypeScript, Hypernova, PWA, AMP, Atomic Design,…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store