Skip to main content

Posts

Showing posts from June, 2018

Detecting that a .NET Core app is running in a Docker Container and SkippableFacts in XUnit

I have moved my podcast site over to ASP.NET Core 2.1 and I've got it running in a Docker container. Take a moment a check out some of the blog posts, as I've been blogging as I've been learning. I've added Unit Tests as well as Selenium Tests that are also run with the XUnit Unit Test Runner. However, I don't want those Selenium Tests that automate Google Chrome to run within the context of Docker. I tried to add an Environment Variable within my Dockerfile like this: ENV INDOCKER=1 I figured I'd check for that variable and conditionally skip tests. Simple, right? Well, I decided to actually READ the Dockerfiles that my ASP.NET Core 2.1 app uses. Remember, Dockerfiles (and the resulting images) are layered, and with all things .NET, are Open Source.  Looking at my own layers and exploring the source on Github, I see I'm using: microsoft/dotnet:2.1-aspnetcore-runtime on Alpine - .NET Core and ASP.NET Core Within there I see they are setting ...

Using Flurl to easily build URLs and make testable HttpClient calls in .NET

I posted about using Refit along with ASP.NET Core 2.1's HttpClientFactory earlier this week . Several times when exploring this space (both on Twitter, googling around, and in my own blog comments) I come upon Flurl as in, "Fluent URL." Not only is that a killer name for an open source project, Flurl is very active, very complete, and very interesting. By the way, take a look at the https://flurl.io/ site for a great example of a good home page for a well-run open source library. Clear, crisp, unambiguous, with links on how to Get It, Learn It, and Contribute. Not to mention extensive docs . Kudos! Flurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library for .NET. You had me at buzzword-laden! Flurl embraces the .NET Standard and works on .NET Framework, .NET Core, Xamarin, and UWP - so, everywhere. To use just the Url Builder by installing Flurl . For the kitchen sink (recommended) you'll install Flurl...

3 Tips to Make Best UX Design for Your Business Website

In the online world, the saying “never judge a book by its cover” does not apply. The visual things you post online will make or break your online presence. It’s no longer possible to satisfy a basic website visitor just by adding few elements on your website. They want more, for instance: responsiveness, cool design, and user-friendly experience. As we are evolving with the new technology, things will get even trickier. What seems effective now in 10 years can be considered as a basic design, especially with the popularization of the VR and AR technology. In the business world, it is even more complicated to satisfy the target audience. Especially if you are in the B2B industry, constantly asking yourself how to monetize a website with such a limited amount of resources.  Fortunately, a good UX Design will solve all of your traffic issues. Optimal UX could be the reason behind the success of your company. If you are struggling to retain visitors, you may need a UX update. In or...

Is 200-125 CCNA Exam Worth Taking?

Cisco Certified Network Associate (CCNA) 200-125 exam is designed to test candidate’s understanding and skills in networking basics , LAN and WAN technologies, IPv4 and IPv6 technologies, services, security and management of infrastructure. This exam is taken by those who wish to be certified in CCNA routing and switching. Cisco certifications include entry, associate, professional and expert levels. CCNA routing and switching is an associate level exam that is preceded by CCENT, an entry level certification. What are the objectives of the CCNA 200-125 exam? The exam is meant to test a candidate’s skills in the following areas: Network Fundamentals 15% Routing Technologies 21% WAN Technologies 10% Infrastructure Services 10% Infrastructure Security 11% Infrastructure Management 10% Before registering for this exam, you are required to have some basic knowledge in networking mainly received from the CCENT level certification. CCNA 200-125 exam certification is a requirement ...

ASP.NET Core Architect David Fowler's hidden gems in 2.1

Open source ASP.NET Core 2.1 is out, and Architect David Fowler took to twitter to share some hidden gems that not everyone knows about. Sure, it's faster, builds faster, runs faster, but there's a number of details and fun advanced techniques that are worth a closer look at. .NET Generic Host ASP.NET Core introduced a new hosting model. .NET apps configure and launch a host . The host is responsible for app startup and lifetime management. The goal of the Generic Host is to decouple the HTTP pipeline from the Web Host API to enable a wider array of host scenarios. Messaging, background tasks, and other non-HTTP workloads based on the Generic Host benefit from cross-cutting capabilities, such as configuration, dependency injection (DI), and logging. This means that there's not just a WebHost anymore, there's a Generic Host for non-web-hosting scenarios. You get the same feeling as with ASP.NET Core and all the cool features like DI, logging, and config. The sam...

Python HashMap Implementation Using Dictionary

In this tutorial you’ll learn how to implement hashmap in python using dictionary. What is Hash Table or Hash Map? In short, Hash table is a data structure which stores data in an associative manner. In this table, our data is stored in a array format, where each data value have a unique key to represent the data. So in this way, access of data becomes very fast if we know the key of the desired data. So in Hash Table, insertion and search operations are very fast irrespective of the size of the data. How to Implement Hash Map in Python? Well if you’re looking for implementation of hash map in python then the answer is Dictionary. Python Dictionary is a built-in type that supports key-value pairs. Basically Dictionary is like a list but instead of an integer index it can be of any type. Another thing to note that a dictionary is un-ordered, it may not show the items in the order it was defined. So in this article we’ll learn about dictionaries and all the operations that we can...

5 Best Freelancing Sites in India

Here you will get to know about some best freelancing sites in India. In the 21 st century we do not really need to hard work in order to earn great, all we need is a great amount of talent with a magic of smart work. The freelancing sites are providing us with that essentially required magic. These sites let us work with our pace and ease without much commitments and long term agreements with the employers. The employees find these sites particularly “cool” and a great platform to unleash their talents and earn money without wasting much of their efforts. All of this comes together with a payment assurance. Also, what could be better even from the employer’s prospective? You are getting variety of talented individuals to choose from and multiple portfolios are just one click away. All you need to do is: click on one and get the complete information about the employee and then compare with as many other employees as you wish and finally select according to your job requirements. Th...