-
learn LINQ in 5 minutes
Translating SQL to LINQ can prove difficult for new and experienced C# developers. This post contains common SQL queries written in LINQ. I hope it’ll serve as a reference when writing LINQ queries. I’ll use a MS SQL database and Entity Framework for my examples. However, these examples can be extracted to other ORMs and…
-
Ideal size of swap partition in linux
There are no rules of thumb regarding the size of the swap partition, although some ancient ones (like swap=2xRAM) still are seen sometimes in the wild. Ubuntu, like any other Linux distro, will run just fine even without a swap partition, unless you run out of RAM. It depends solely on your usage of the…
-
LINQ vs Lambda vs loop – A performance test
I was wondering about the benefits of using Linq over Lambda or vice versa for data filtering. I knew that the for loop was the fastest. But I was really interested to know whether lambda expression had any advantage over traditional LINQ syntax. For my understanding, both LINQ and lambda were same. Lambdas are the…
-
Pass Data from View to Partial View using session without using model
One of the place I had to pass a value from a view to a partial view but I was not supposed to alter the model. Hence. I went back to the roots and used session to pass the value between the views. Whats important here is that, as it is a session value, you can…
-
Don’t be a low hanging fruit for the hackers and script kiddies in your neighborhood. Part 1
In today’s Wi-Fi router security tip, I want to show you how to change the name of your wireless network, and why this might be important. If we look at the wireless networks around us, we may see linksys listed. That is the default wireless network name, also known as the SSID, of the network.…
You must be logged in to post a comment.