Posts

Storing Objects in In-Memory Session in Asp.Net Core

Since you are here, you already know the challenges of not being able to use Session in the same way as was possible in the days of .Net Framework. Hence I will get straight to the point of how to do this - without trying to tell you why you shouldn't store object in the session, because if you have a use case for storing session, then you need to know how to do it right - and how not to do it as well. This article's approach should be taken as an interim while you are migrating your old apps from Asp.Net Framework to Asp.Net Core - with a long term plan to move away from session objects all together.  In case any of you need the code for this article, send an email to kalpesh@sarasennovations.com  I have now also implemented a framework for session less system, and migrated my systems to it, therefore the code takes a very different approach of storing the objects compared to the method i have shown in this article, I can conduct a short lecture for your team with approp

How to give correct file ownerships and permissions to secure your app server

Linux is such a powerful Operating System and the permissions it provides are powerful and simple and yet most widely misunderstood. I have gone through so many forums and one common observation was there is lack of understanding on how permissions work. Most people give standard answers like put 644 or some ignorant ones even suggest 777, not knowing the underlying architecture of the system at all. I thought it is time to put a blog that clearly outlines what are these permissions and how they really work behind the scenes. There are many who know the underlying principles - i invite all of them to share their feedback to help expand this blog and serve newcomers even better. This blog is not about how to set permissions or how to improve security. How part has been covered by many bloggers, hence we will not be discussing any commands. I am only going to focus on What permissions to give and Why. Let's start Most common scenario is there is a website or an applicat

Cryptocurrencies: A bubble that doesn’t burst, a volcano that didn’t disrupt anything, and a coin that can make few rich but can’t buy vegetables

Article by Kalpesh Popat, Thought Leader for Technology, Nature and Relations, Director @ SARAS ennovations When It All Started Bitcoin, the flag bearer of Cryptos, launched in Jan-2009, but my story unfolds several centuries ago. Let’s take a quick look back into our young carefree days when collecting coins of various countries was a passion. What interested me particularly were the coins of various Kings of India. Our country so rich in its culture was also rich in Kings and their century old coins made for a great collectible, each had their own version imprinted on some form of metal. Before the coins were introduced, barter system was the only means for a transaction. Since barter system was rigid as it forced us to have a transaction only when both parties had something useful for each other, coins (currency) became a great engine to fill the gaps in the barter system,  giving birth to a much flexible economy that was also easy to save, account and tax. Currencies, however also