Skip to main content

Posts

Showing posts from November, 2018

Changing the background image of the Visual Studio editor

I happened to be browsing on a discord server , which happens to be the now, go-to VOIP platform for gamers (but is also rapidly growing for other interest groups likewise) and saw this image: Woah, super cool! If you had any response like I had, you would be saying right now; how do I get that in my editor?! ClaudiaIDE If you go over to the Visual Studio Marketplace, you will find a tool named ClaudiaIDE  (I assume as some ode to a lady named Claudia). Download and install the tool (close Visual Studio before installing). Let's get ready to load some images, Claudia Please just be wary, this isn't an official tool by Microsoft. If any bugs or issues happen, please go and report them in the tool author's github . I am also not responsible for anything that might happen after you install this (but I feel this is generally safe to install or otherwise it wouldn't be on the Visual Studio Marketplace, right?) Configuration To configure ClaudiaID

[Fix] - ASUS PCE-AC68 adapter (no internet)

There seem to be a lot of problems with this adapter, even with such strong performance . Why so many issues? I'm not quite sure, but I needed to find a fix because I kept on losing wifi. The ASUS PCE-AC68 The fix Keeping it short - this is how I fixed the issue: Downloaded the driver for my OS from ASUS's support page -  https://www.asus.com/us/Networking/PCEAC68/HelpDesk_Download/ (in my case it was Windows 10 64-bit). Open Device Manager by holding the Windows key and pressing R, then typing "devmgmt.msc" and hitting Enter. (Don't worry, this isn't a scam . We are simply opening Window's Device Manager through the Microsoft Management Console snap-in .) Navigate to the yellow warning sign sitting under Network adapters and right click it. Select Update driver . Select Browse my computer for driver software  and choose the following path of the OS that you have installed on your computer. (The path for the driver on my computer was C

[Automatically] minifying .cshtml files in .NET Core

What gets me more excited than anything? Performance. Performance level 100 Its always exciting to me to perform at max efficiency , because why should you be performing any less? What's even better than efficiency than setting it and forgetting it ? Nothing. Fact of the matter is while you may not be caring about efficiency , you should - because your business does. Lack of efficiency costs dollars and time. You aren't off the hook even if you are doing programming as a hobby or are self-employed. We are going to explore how to minify your .cshtml files in a .NET Core web application, and why you should care to do so. Why you should care Do your reading ;   read this too . Time is a limited resource, and we are tending to be more impatient nowadays,  these people think so too. The bottom line is that if you want a chance for your web application to be successful, you can't skimp on quality and hope that you will be a success. Your applications need to

Productive Windows keyboard shortcuts

The further you get a long in your development career, the more and more you begin to make use of keyboard shortcuts. Time is precious , and more so as you take on more responsibility and have more projects you need to work on. How do you get faster? You code as fast as Sonic.. How did he get here so fast? But since you'll never code that fast, you instead have to be like the rest of us not-fast-like-Sonic humans and memorize some keyboard shortcuts. Here is a collection of shortcuts that I've found handy in day to day work. Copy and paste Absolutely necessary. ctrl + c (copy) and ctrl + v (paste). Create new folders On Windows, when you are in Explorer ( or File Explorer or Windows Explorer ), which you can open up with the Windows key + e, ctrl + shift + n creates a new folder in the current directory you are viewing. Creating that new folder on the fly Locking your PC Getting up from your desk? You can't just rely on your privacy screen ,

Deleting old files with Powershell

Practical Powershell. Today we will be using Powershell to help you with day-to-day tasks. We are going to explore how to create a Powershell script to delete old files on your hard drive. Like I have said before , I enjoy Powershell and like how it gives me more control over my computer, particularly how it makes mundane tasks a lot more simple [and fast] for me to do. The good news is that if you don't have a lot of experience with Powershell, it is quite easy to extend and build new features using the language. Powershell (not the official logo) Let's get started. Writing the script In order for us to delete all of the old files from our hard drive, we need to be able to somehow find all these old files. A better question to ask would be; "what qualifies a file as old?" For the purposes of this example, let's assume that any file that has not been modified in the past 3 years be marked as "old" and should be deleted. Great - now how do w

Do you choose inheritance or interfaces?

What's the right answer? The answer to every programming question Let's explore both options and when you might choose to prefer one or the other. Pay extra special attention and focus because this is a common job question and an answer you should fundamentally know if you want to become a better software developer! Why choose interfaces? Choose inheritance when your objects have a has-a or can-do relationship. What does this mean? A has-a relationship means the object implementing the interface "has a" object/thing that is the interface. Here is a concrete example of a has-a relationship: public interface IWheel { public void TurnRight ( ) ; public void TurnLeft ( ) ; } public class Boat : IWheel { public void TurnRight ( ) { // implementation } public void TurnLeft ( ) { // implementation } } A boat has a wheel, and is an example of using an interface with a has-a relatio