How to Set Up Kubernetes on an Ubuntu VPS

Do you want to learn how to set up Kubernetes on Ubuntu? Keep reading this article! Kubernetes is a powerful open-source platform for automatic scaling, deployment, and management of containerized systems. It’s a robust application that groups containers into logic units making it easy to discover and manage them across multiple clusters of hosts. Kubernetes has many pieces […]

Thread Safe Concurrent Collection in C#

Concurrent Collection The .NET Framework 4 brought the System.Collections.Concurrent namespace. This has several collection classes that are thread-safe and scalable. These collections are called concurrent collections because they can be accessed by multiple threads at a time. The following are the concurrent collection in C# − Sr.No Type & Description 1 BlockingCollection<T> Bounding and blocking functionality for any […]

Entity Framework, ToList vs AsEnumerable vs AsQueryable

ToList() Execute the query immediately AsEnumerable() lazy (execute the query later) Parameter: Func<TSource, bool> Load EVERY record into application memory, and then handle/filter them. (e.g. Where/Take/Skip, it will select * from table1, into the memory, then select the first X elements) (In this case, what it did: Linq-to-SQL + Linq-to-Object) AsQueryable() lazy (execute the query later) Parameter: Expression<Func<TSource, bool>> Convert Expression into […]

How To Downgrade A Package In Arch Linux

Add this app $ sudo pacman -S downgrade Select the package you are targeting $ sudo downgrade [PACKAGE, …] [– [PACMAN OPTIONS]] Example $ sudo downgrade opera Available packages: 1) opera-37.0.2178.43-1-x86_64.pkg.tar.xz (local) 2) opera-37.0.2178.43-1-x86_64.pkg.tar.xz (remote) 3) opera-37.0.2178.32-1-x86_64.pkg.tar.xz (remote) 4) opera-36.0.2130.65-2-x86_64.pkg.tar.xz (remote) 5) opera-36.0.2130.65-1-x86_64.pkg.tar.xz (remote) 6) opera-36.0.2130.46-2-x86_64.pkg.tar.xz (remote) 7) opera-36.0.2130.46-1-x86_64.pkg.tar.xz (remote) 8) opera-36.0.2130.32-2-x86_64.pkg.tar.xz (remote) 9) opera-36.0.2130.32-1-x86_64.pkg.tar.xz (remote) 10) opera-35.0.2066.92-1-x86_64.pkg.tar.xz […]