Hunting Down and Killing Ransomware Read more →
Category: code
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 →
Change username in wordpress
Login to your account on your server Access your database(s) via phpMyAdmin Click on your database name Choose wp_users Find User & Click Edit http://wpmu.org/how-to-change-your-wordpress-username/ Read more →
Text enums with the Entity Framework / Code First in C#
One of the projects I am working on requires enumerated values be text and not numeric. maritalStatus = ‘Single’ instead of maritalStatus = 1 Below is an example. All of the code is generated using TextTemplates. The enums are referenced in the POCOs like so: [XmlElement(ElementName=”maritalStatus”)] public MaritalStatus maritalStatus { get; set; } //Enum values are flattened in the xml… Read more →
backing up wordpress
Ignore the original post as it doesn’t seem to work on a Windows host. BackupWordPress works fine … http://wordpress.org/extend/plugins/backupwordpress/ backing up wordpress Backing up your WordPress install / Adding a WordPress Backup plugin Using the left side menu, hover over plugins, then click add new. Using the search function, search for “WordPress SQL Backup“ You should now see your… Read more →
Execution List
A simple way to build up a list of methods that will all be called at a specific point I use this for 2 things: to schedule tests on the data to be run just before a commit to the database, e.g. to assess data integrity to make updates to repsonse data after a commit to the database, e.g. to… Read more →