Run Ngrok on Your Own Server Using Self-Signed SSL Certificate

Using ngrok is a great way to quickly demo/show your development to other people or for other purposes that you can think of by creating a tunnel from your local computer to the internet and the best part is it is free, you don’t even need to sign up to use its service although signing up will provide you with additional features and you can even pay for even more additional features available for paid user. You can read more about the features from ngrok official website: https://ngrok.com. ...

September 13, 2014 · svenbit

Disable OneDrive in Windows 8.1

By default Microsoft’s OneDrive (Formerly SkyDrive) is now built into Windows 8.1 and Windows 8.1 RT, hence whether you are using it or not it will automatically loaded during start up and the shortcut to your OneDrive folder will be displayed in the Explorer’s Navigation Pane. And since it is now integrated into Windows 8.1 there is no way to uninstall OneDrive, which is rather annoying as I’m not using OneDrive for my cloud storage. However, thankfully you can easily disable OneDrive in Windows 8.1. ...

August 12, 2014 · svenbit

Using SqlParameter with SQL’s IN Clause in C#

Using SqlParameter in SqlCommand is a great way to pass variable into SQL statement and prevent SQL Injection, it is rather simple to implement as well, basically all you need to do is to declare the parameter name in your SQL statement or stored procedure and make sure that you add the parameter with the specified parameter name into the SQL command parameters. Here’s an example of basic implementation of SqlParameter: ...

August 8, 2014 · svenbit

Kuuro #3

DeviantArt: Kuuro #3 - Random Doodle

August 7, 2014 · svenbit

Initialize New Anonymous Type on VB.NET

This code snippet will shows you an example on how to initialize a new anonymous type and define the properties while at it as a function parameter in Visual Basic .NET. The example used is based on Flurl library by tmenier, and URL builder for .NET check it out at the Project’s GitHub Page, it’s pretty neat. Dim url = "http://www.some-api.com".AppendPathSegment("endpoint").SetQueryParams(New With { Key .api_key = ConfigurationManager.AppSettings("SomeApiKey"), Key .max_results = 20, Key .q = "Don't worry, I'll get encoded!" }) Alternatively you can omit the Key keyword if you are not planning to compare the Anonymous type for equality and planning to change the value of the property, like so: ...

July 31, 2014 · svenbit