Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
Delimiter Split
Source: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4126a010-6885-4eb0-b79c-c798c90edb85/how-to-split-comma-delimited-string
Get City/State/Country From IP
I have a lot of possible options on this page, as I find time I’ll clean this page up a bit to make it more user friendly. C# Free, Fast JavaScript Free, Fast Microsoft SQL Using GeoPlugin.net XML Option [raw] All Values geoPlugin: geoplugin_request: 208.67.222.222geoplugin_status: 200geoplugin_credit: Some of the returned…
Create / Delete SQLite Database Indexes
Source: Billy047 @ http://www.basic4ppc.com/android/forum/threads/dbutils-android-databases-are-now-simple.8475/page-2
Create SQLite Database With Auto Increment
Source: Billy047 @ http://www.basic4ppc.com/android/forum/threads/dbutils-android-databases-are-now-simple.8475/page-2
Restrict Access to Internal IP
Many times we have sites that are public but have pages that should only be viewed by internal users. Ideally the settings would be configured on the server level in IIS but if not possible for some reason this may help. One key thing to note is this code will…
Get IP From Hostname
Create a new project Add a TextBox and name it “txtHostname” Add another TextBox and name it “txtIP” Add a button and name it “btnResolve” and give it appropriate text like “Resolve IP” Double click on the button to auto generate the button action code and insert code as shown…