Skip to main content

Posts

5 Best TV Series That Every Programmer Should Watch

If you got bored of writing code all day and night then this article will surely help you to refresh your mind. Here I am sharing some tv series that revolves around programming or hacking. If you are a programmer then you must watch them. In case I have missed any good show then mention in comment section. I will try to add it in the list. Also Read:  Top 10 Movies for Programmers 5 Best TV Series for Programmers 1. Mr. Robot This show is about a programmer who works as a cyber security engineer in a company during day and a vigilante hacker at night. 2. Silicon Valley The story revolves around a silicon valley engineer who struggles to build his company named Pied Piper. 3. Person of Interest This tv series is about a rich programmer who saves life with the help of surveillance AI that sends them information about the people involved in impending crimes. 4. Halt and Catch Fire Another awesome programmer show which is about persona...

Upgrading a 10 year old site to ASP.NET Core's Razor Pages using the URL Rewriting Middleware

My podcast has over 600 episodes (Every week for many years, you do the math! And subscribe!) website was written in ASP.NET Web Pages many years ago. "Web Pages" (horrible name) was it's own thing. It wasn't ASP.NET Web Forms, nor was it ASP.NET MVC. However, while open-source and cross-platform ASP.NET Core uses the "MVC" pattern, it includes an integrated architecture that supports pages created with the model-view-controller style, Web APIs that return JSON/whatever from controllers, and routing system that works across all of these. It also includes " Razor Pages ." On first blush, you'd think Razor Pages is "Web Pages" part two. I thought that, but it's not. It's an alternative model to MVC but it's built on MVC. Let me explain. My podcast site has a home page, a single episode page, and and archives page. It's pretty basic. Back in the day I felt an MVC-style site would just be overkill, so I did it in a p...

Advantages and Disadvantages of Artificial Intelligence

In this article you’ll see the advantages and disadvantages of artificial intelligence. Artificial intelligence is designing programs or machines that have ability to think, so machines can take decisions without interference of human. Giving thinking capacity to machines can arise several problems and advantages too. So let’s see them. Image Source Advantages of Artificial Intelligence Less Errors:  As decisions are taken on previously gathered information and certain algorithms, without the interference of humans, so errors are reduced and the chance of reaching accuracy with a greater degree of precision is a possibility. Faster Decisions: Using Artificial intelligence, decisions can be taken very fast. For example, we all have played Chess game in Windows. It is nearly impossible to beat CPU in hard mode because of the A.I. behind that game.  Because it took the best possible step in very short time according the algorithms used behind it. Daily Applications:...

az webapp new - An Azure CLI extension to create and deploy a .NET Core or nodejs site in one command

The Azure CLI 2.0 (Command line interface) is a clean little command line tool to query the Azure back-end APIs (which are JSON). It's easy to install and cross-platform: Install on Windows Install on macOS Install on Linux or Windows Subsystem for Linux (WSL) Install with apt on Debian or Ubuntu Install with yum on RHEL, Fedora, or CentOS Install with zypper on openSUSE or SLE Install from script Run in Docker container Once you got it installed, go "az login" and get authenticated. Also note that the most important switch (IMHO) is --output: usage: az [-h] [--output {json,tsv,table,jsonc}] [--verbose] [--debug] You can get json, tables (for humans), or tsv (tab separated values) for your awks and seds, and json (or the more condensed json-c). A nice first command after "az login" is "az configure" which will walk you through a bunch of questions interactively to set up defaults. Then I can "az noun verb" like "az web...

Python Operator Overloading

In this article, you’ll learn about python operator overloading with examples. We all know what are operators (+, -, <=). In python, operators work for built in classes, but some operator behaves differently with different types. For example ‘+’ operator can add two numbers and also can concatenate two strings. Program: a = 10 b = 20 print (a+b) Output: 30 a = "hello " b = "programmer" print(a+b) Output: “ hello programmer” So, using any operator to perform different operation that are not usually performed, is known as operator overloading. We can change the behavior of operators using operator overloading. Or we can also say that “assigning a different work to an operator is known as operator overloading”. To perform operator overloading, there are some magic methods provided by Python. Using these methods we can perform any operation we want on a operator. The operators that can be overloaded are as follows: Operators Methods + __add__(s...

One Email Rule - Have a separate Inbox and an Inbox CC to reduce email stress. Guaranteed.

I've mentioned this tip before but once more for the folks in the back. This email productivity tip is a game-changer for most information workers. We all struggled with email. Some of us just declare Email Bankruptcy every few months. Ctrl-A, delete, right? They'll send it again. Some of us make detailed and amazing Rube Goldbergian email rules and deliberately file things away into folders we will never open again . Some of us just decide that if an email scrolls off the screen, well, it's gone. Don't let the psychic weight of 50,000 unread emails give you headaches. Go ahead, declare email bankruptcy - you're already in debt - then try this one email rule. One Email Rule Email in your inbox is only for email where you are on the TO: line. All other emails (BCC'ed or CC'ed) should go into a folder called "Inbox - CC." That's it. I just got back from a week away. Look at my email there. 728 emails. Ugh. But just 8 were sent di...

Surface Book 2 Developer Impressions and the Magic of USB-C

I recently got a updated laptop for work, a 15" Surface Book 2 . It's quickly become my go-to machine, and I'm often finding myself using it more than my main desktop machine. I considered myself reasonably familiar with the Surface product line as I bought a Surface Pro 3 a few years back for myself (not a work machine), but I am genuinely impressed with this Surface Book 2 - and that surprised me. Here's a random list of a tips, tricks, things I didn't realize, and general feelings about the 15" Surface Book 2. 15" is a NICE size After years of "Ultrabooks" I missed an actual high-powered desktop replacement laptop. It's just 4.2 lbs and it doesn't feel unwieldy at all. There are TWO Surface Connect ports Legit had no idea. You can charge and dock the tablet part alone. There's a full sized SD card reader and a 3.5mm headphone jack Which sadly is more than I can say for my iPhone 8+. Having a 15" screen again makes m...