Author Archives: buminda

About buminda

buminda.com

Encrypt-Decrypt ASP.NET Web.Config file

Though its not critical, its better to encrypt the passwords and connection strings. Encrypt : Path.to.net.framework.directory\aspnet_regiis.exe -pdf  “appSettings”   “path.to.web.config.directory” Path.to.net.framework.directory\aspnet_regiis.exe -pdf  “aconnectionStrings”   “path.to.web.config.directory” Replace “pdf” with “pef” for encryption. I had an AD connection credentials inside <system.web>. The way to … Continue reading

Posted in Uncategorized | Leave a comment

Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

Click this link to view the tutorial. Upgrade is at your own risk. For me some php applications stopped working ( eg. owncloud )  

Posted in Uncategorized | Leave a comment

Go Green, Go Solar

First step towards ‘Go Green‘ And here comes another step,        

Posted in Uncategorized | Tagged , , | Leave a comment

Extract XML data with SQL Server

I had FHIR resource (https://www.hl7.org/fhir/) saved as XML in a SQL server database. After bit of a struggle found the way to extract data from XML, eg Given below to extract the FHIR resource status, ;WITH XMLNAMESPACES (‘http://hl7.org/fhir&#8217; as X) … Continue reading

Posted in FHIR, Uncategorized, xmlns | Leave a comment

Smart TV with ownCloud

Whenever you want to watch a movie, its troublesome to copy that to a USB and plug into your smart TV. Specially if its several Gigabytes of data. A workaround is to created your OwnCloud server at home and copy … Continue reading

Posted in Uncategorized | Leave a comment

Zero carbon emission for one month

  My ride to office (and back home) captured in a phone camera. No parking fees, fines, fuel costs and 15 minutes exercise on the way to office.

Posted in Uncategorized | 1 Comment

Access .NET MVC model property in javascript

This looks to me very useful as it converts and entire server object in to a javascript accessible object. var yourComplexObject = @Html.Raw(Json.Encode(Model.YourComplexObject)); Add this inside <script> tags when loading the view.

Posted in Uncategorized | Leave a comment