yoursite\wp-admin Read more →
Month: February 2013
Deserialize this / Deserialize inside of the instance
Type type = this.GetType(); PropertyInfo[] properties = type.GetProperties(); reader.Read(); while (reader.Read()) { PropertyInfo property = properties.GetPropertyByXmlElement(reader.Name); if (property != null) { property.SetValue(this, reader.ReadElementContentAs(property.PropertyType, null)); } } this is the extension method `GetPropertyByXmlElement(string)` public static PropertyInfo GetPropertyByXmlElement(this PropertyInfo[] properties, string name) { XmlElementAttribute attr = new XmlElementAttribute(name); PropertyInfo property = ( from p in properties where p.GetCustomAttributes().Any(a => a.Equals(attr)) select p)… Read more →
Test ORACLE directory permissions
declare file_handle utl_file.file_type; begin file_handle := utl_file.FOpen(‘DIRECTORY_NAME’, ‘test.txt’, ‘w’); utl_file.put_line(file_handle, ‘test’); utl_file.FFlush(file_handle); utl_file.FClose(file_handle); end; Read more →
Connecting to Data in Telerik Reporting with the ObjectDataSource Component
Connecting to Data in Telerik Reporting with the ObjectDataSource Component Read more →
My 3 Favorite Connection String Tips
My 3 Favorite Connection String Tips Read more →
Protect your Queryable API with the validation feature in ASP.NET Web API OData
Protect your Queryable API with the validation feature in ASP.NET Web API OData Read more →
http://www.piotrwalat.net/consuming-asp-net-web-api-services-in-a-windows-8-c-xaml-app/ Read more →
Hunting Down and Killing Ransomware
Hunting Down and Killing Ransomware Read more →
JBGE
Just Barely Good Enough Read more →
MVC
simple ajax controller (for countries etc) ajax (these are research notes) consuming WebApi with MVC consuming WebApi with MVC Dynamic content in MVC/Razor the following contains xml entries to get past razor runtime compilation errors of namespace not found: @Html.LabelFor(model => model.path.Value, “Path”) @Html.DropDownList(“Path”, new List { new SelectListItem { Text = TypeSafeEnum.a.Value, Value = TypeSafeEnum.a.Value }, new SelectListItem {… Read more →