Skip to main content

Posts

Showing posts from March, 2019

Displaying your realtime Blood Glucose from NightScout on an AdaFruit PyPortal

AdaFruit makes an adorable tiny little Circuit Python IoT device called the PyPortal that's just about perfect for the kids - and me. It a little dakBoard , if you will - a tiny totally programmable display with Wi-Fi and  lots of possibilities and sensors. Even better, you can just plug it in over USB and edit the code.py file directly on the drive that will appear. When you save code.py the device soft reboots and runs your code. I've been using Visual Studio Code to program Circuit Python and it's become my most favorite IoT experience so far because it's just so easy. The "Developer's Inner Loop" of code, deploy, debug is so fast. As you may know, I use a Dexcom CGM (Continuous Glucose Meter) to manage my Type 1 Diabetes. I feed the data every 5 minutes into an instance of the Nightscout Open Source software hosted in Azure. That gives me a REST API to my own body. I use that REST API to make "glanceable displays" where I - or my family...

F7 is the greatest PowerShell hotkey that no one uses any more. We must fix this.

Thousands of years ago your ancestors, and myself, were using DOS (or CMD) pressing F7 to get this amazing little ASCII box to pop up to pick commands they'd typed before. When I find myself in cmd.exe I use F7 a lot. Yes, I also speak *nix and Yes, Ctrl-R is amazing and lovely and you're awesome for knowing it and Yes, it works in PowerShell. Here's the tragedy. Ctrl-R for a reverse command search works in PowerShell because of a module called PSReadLine . PSReadLine is basically a part of PowerShell now and does dozens of countless little command line editing improvements. It also - not sure why and I'm still learning - unknowingly blocks the glorious F7 hotkey. If you remove PSReadLine (you can do this safely, it'll just apply to the current session) Remove-Module -Name PSReadLine Why, then you get F7 history with a magical ASCII box back in PowerShell. And as we all know, 4k 3D VR be damned, impress me with ASCII if you want a developer's heart . ...

Getting Started with .NET Core and Docker and the Microsoft Container Registry

It's super easy to get started with .NET Core and/or ASP.NET Core with Docker. If you have Docker installed you don't need to install anything to try out .NET Core, of course. To run a little .NET Core console app: docker run --rm mcr.microsoft.com/dotnet/core/samples:dotnetapp And the result: latest: Pulling from dotnet/core/samples Hello from .NET Core! ...SNIP... **Environment** Platform: .NET Core OS: Linux 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 To run a quick little ASP.NET Core website just: docker run -it --rm -p 8000:80 --name aspnetcore_sample mcr.microsoft.com/dotnet/core/samples:aspnetapp And here it is running on localhost:8000 You can also host ASP.NET Core Images with Docker over HTTPS to with this image, or run ASP.NET Core apps in Windows Containers . Note that Microsoft teams are now publishing container images to the MCR (Microsoft Container Registry) so they can use the Azure CDN and pull faster when they are closer to you glo...

Python Web Scraping Tutorial

In this tutorial, we are going to talk about web scraping using python. Firstly, we have to discuss about what is web scraping technique? Whenever we need the data (it can be text, images, links and videos) from web to our database. Lets discuss where we should need the web scraping in real world. Nowadays, we have so many competitors in each and every field for surpassing them we need their data from the website or Blogs to know about products, customers and their facilities. And Some Admin of Particular website, blogs and youtube channel want the reviews of their customers in database and want to update with this In, this condition they use web scraping There are many other areas where we need web scraping, we discussed two points for precise this article for readers. Prerequisites: You just have basic knowledge of python nothing else so, get ready for learning web scraping. Which technology we should use to achieve web scraping? We can do this with JavaScript and python bu...

Tips for Secure Programming and Coding

While security has always been a concern for individuals and companies online, today this is more true now than ever. Hacks and data breaches are skyrocketing and hundreds of millions of people are being compromised every year. While this happens to big businesses, it can also happen to small entities or even individuals as well. As a result, it is more important to ensure the code you or your company is writing remains secure. While it is impossible to avoid every potential attack, hack or data breach, you can try your best to prepare. While things such as testing frequently and using passwords can help, they are far from the only ways to secure your code. With that in mind, this article is going to look at a few tips for secure programming and coding. Utilize Log Management Whether you have programmed an app or a piece of software, it is important to monitor it going forward after the initial coding is done. Without any sort of monitoring, you may not be any the wiser if someone...

OpenVPN vs PPTP vs L2TP – VPN Protocols Comparison

You realize that you need a VPN. The decision that you have to make is if you want to set up a VPN or if you want to use a VPN provider. If you go the provider route, the provider may ask you to choose the protocol you want. Or if you set up a VPN, you need to know which protocol you will use. In this article we are going to take a look at some of the more popular protocol standards to help you get an idea of which one you should consider using. Image Source PPTP This is a popular standard for VPN connections. It’s going to be difficult for you to find a VPN provider that does not offer PPTP connections. PPTP is Point-To-Point Tunneling Protocol . This VPN protocol first came on the scene back in 1995, although its development dates back more than a decade before it’s public release. PPTP was designed based on the previous PPP standard. The PPP standard did not have a safe tunneling feature. When it was first introduced, PPTP was a Windows system protocol. However, it quickly beca...

How to stream PC games from Windows 10 to your Xbox One for free

I've been really enjoying my Xbox lately (when the family is asleep) as well as some fun Retrogaming on the original consoles. Back in 2015 I showed how you can stream from your Xbox to any PC using the Xbox app from the Windows Store . You can pair your Xbox controller with any PC you've got around (either with the $20 Xbox Wireless Adapter or just with a micro-USB cable you likely have lying around). In fact, I often walk on the treadmill while streaming games from the Xbox to my little Surface Pro 3 . Then, a year later I did the inverse. I played PC games on my big screen using a SteamLink (although they've been discontinued, they are out there and they work great.) This little box lets you play PC games remotely on your large screens. I have a big PC in my office and I wanted to use the big TV in the living room. The game runs on the PC but the video/audio and controls are all remoted to the Xbox. Plus, SteamLink only works with the Steam app running and is opti...