dev
-
heroku cheat sheet quick start
#note requires java 8. add the ppa repo for oracle and install this if you dont have it already. check your local with: java -version #create auth token for subsequent commands heroku login #from within a local git cloned app… Continue reading
-
directory info get files show directories C# .Net
There is sometimes a misunderstanding between a “file” and a “folder” in filesystems. In C# .Net the following is often used to list all “files” in a folder. However, even though you can specify to search containing subdirectories, the above… Continue reading
-
android app cannot connect to internet
To allow your custom app to connect to the internet, add the following in your AndroidManifest.xml file right before (outside) the application tag. Continue reading
-
Android Launch Browser from App to handle external URLs
Upon googling for this one, I found some good relevant links on stack overflow as well as the android webview documentation, but no singular solution that tied everything together. First, I created a custom WebViewClient class. Note that this is… Continue reading
-
Get Current Directory in Objective-C
Since Mac OS X is a unix based system, you can always use “getcwd” from the standard C library, but in general if you want to stick within the context of Objective-C/Cocoa, see the examples below. Here’s one snippet you… Continue reading
-
HTTP Post in C# .Net
Why re-invent the wheel? 😉 See below for a few quick examples from the minds over at csharp-online and codeproject. Note: Any snippets may have been condensed from their original sources for brevity. See references for original articles. All examples… Continue reading
-
URL Encode in .Net
C#: (ASP .Net) C#: (Client/Server Environment) References MSDN, WebUtility Classhttp://msdn.microsoft.com/en-us/library/system.net.webutility.aspx MSDN, Uri Classhttp://msdn.microsoft.com/en-us/library/system.uri.escapeuristring.aspx MSDN blogs, http://blogs.msdn.com/b/yangxind/archive/2006/11/09/don-t-use-net-system-uri-unescapedatastring-in-url-decoding.aspx Continue reading
-
Quick .Net Encryption Reference
The code below represents a very basic .NET encryption class which has been tested and should work in your application – simply plug and play. 🙂 Contains two static methods that can be called without needing to instantiate the class.… Continue reading
-
Get Current URL in Javascript
JS (JQuery): JS (standard): Continue reading
-
JQuery Grid Themes
Useful links to JQuery grids utilizing (mostly) standard UI themes and/or very little code. Google! http://jquery-ui.googlecode.com/svn/branches/labs/grid/tests/static/grid/default.html Datatables.Net: http://www.datatables.net/styling/themes/smoothness Ke-Cai: http://www.ke-cai.net/2010/01/theme-your-table-with-jquery-ui.html Trirand: http://www.trirand.com/blog/jqgrid/jqgrid.html Stackoverflow: http://stackoverflow.com/questions/2613632/jquery-ui-themes-and-html-tables Continue reading