Skip to main content

Posts

Showing posts from February, 2018

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...

Android Studio Keyboard Shortcuts for Windows/Linux/Mac

Here you will get android studio keyboard shortcuts for windows, linux and mac os that I have taken from official android developers website. Knowing keyboard shortcuts makes our work little bit faster while using an application, specially when you are an android developer. Below is the android studio cheat sheet that shows all useful shortcuts. List of Android Studio Keyboard Shortcuts – Click Here to Download the Cheat Sheet – How to Change Shortcuts? You can change android studio shortcuts by simply visiting File > Settings (for Mac visit Android Studio > Preferences ) and then got to Keymap tab. Source:   https://developer.android.com/studio/intro/keyboard-shortcuts.html The post Android Studio Keyboard Shortcuts for Windows/Linux/Mac appeared first on The Crazy Programmer . from The Crazy Programmer https://www.thecrazyprogrammer.com/2018/02/android-studio-keyboard-shortcuts.html

Python = vs ==

Hello everyone, in this tutorial you’ll see what’s the difference between = and == in python. Most of new programmers get confused with them. Python = vs == = (assignment operator) Well, in simple words, ‘=’   is an assignment operator which is used to assign a value (on right side) to a variable (on left side). Example: var_name = 10 here var_name is a variable name and 10 is the value to be assigned, we’re using ‘=’ to assign it. Example Programs: #example 1 n = 10 print("n = ", n) Output : n = 10 #example 2 n1 = 10 n2 = 20 sum = n1 + n2 print("sum = ", sum) Output: sum = 30 As in above program, we can also write an expression on the right side of  ‘=’ . the result of that expression will be assigned to the variable on left side. #example 3 n1,n2 = 10,20 print("n1 = " , n1) print("n2 = " , n2) Output: n1 = 10 n2 = 20 In python, we can also assign more than one value at once using commas. #example 4 n = input("plea...

Difference between Cookies and Cache

Here you will learn about difference between cookies and cache i.e. cookies vs cache. Both are downloaded to your computer but they have different purposes. Cookies are download to record your previous activities on a particular website. On other hand Cache are used to store the web-pages in memory so when user visits that webpage again then webpage can be loaded from the memory instead of downloading files from web-server again. Difference between Cookies and Cache   Cookies                                Cache 1. What is Small files downloaded to your computer to track your previous  activity. Files downloaded to your computer memory to store the current version of the webpage so  next time browser doesn’t need to download all the files again from the internet when we visit that webpage again. 2. Advan...

Introduction to Data Mining

Here you will get introduction to data mining. We are back again in front of you with another successive Machine Learning blogpost. So far we have covered many interrelated topics pertaining to ML and today we think should start with another such interdisciplinary subject Data Mining or more appropriately Knowledge Mining . We must tell you that Data Mining does not only play a vital role in the field of ML but also sets its foot in the ever growing technological domain. Data is considered as the backbone of any industry and so is the Data Mining. Availability of right kind of data at the right moment acts like magic for business and can boost it by providing crucial information and demographics about the consumer. What is Data Mining? Let’s make this simpler for you to understand the terminology even better. Think of it in this way, when gold is mined from rocks and sands it is referred to as gold mining not sand or rock mining, right? Exactly in the same way when we dig deeper...