Thank you SteveX.
Fast and simple overview of string formatting in c#.
SteveX Compiled » String Formatting in C#.
Windows 8 – Run everything as Administrator
If you dont need Metro apps to work enter this into powershell:
Run PowerShell as Administrator and paste the following to disable UAC:
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"
shutdown -r -t 0
If you want metro apps to work: (this doesnt seem to work for me):
If you entered my registry change to disable UAC, re-enable it with the following command:
PowerShell as Administrator (This requires a restart)
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "1"
#Default value is 1
shutdown -r -t 0
To enable automatic silent UAC elevation for administrators without breaking the Microsoft Store you should do the following instead.
PowerShell as Administrator (This takes effect immediately)
#The following is equal to the Security Policy “User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode” = “Elevate without prompting”
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value "0"
#Default value is 2
#The following is equal to the Security Policy “User Account Control: Allow UIAccess applications to prompt for elevation without using the secure dekstop” = “Enabled”
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableUIADesktopToggle" -Value "1"
#Default value is 0
Episerver Commerce 1.1 Dev Guide – Shopping Cart
Key files and controls
Overview of cart object
Accessing/adding cart items
Workflows/How totals are calculated
Cart persistence
Wishlist
The workflow updates a number of properties of the Cart to indicate various totals. These properties allow you to easily display the price for a line item, the discount amount, and the after-discount-price. These include
Cart.SubTotal is the total for the cart, after discounts are applied.
LineItem.ListPrice is the price before discount
LineItem.ExtendedPrice is the price for a lineitem, given the quantity of the item and applicable discounts.
LineItem.LineItemDiscountAmount is the total amount of discount for a LineItem.
JavaScript Tools of the Trade: JSBin – Tuts+ Code Tutorial
There are times when you simply want to throw some JavaScript code up and see how it works.
http://code.tutsplus.com/tutorials/javascript-tools-of-the-trade-jsbin–net-36843
Checklist: What NOT to do in ASP.NET – Scott Hanselman
string.js | JavascriptOO
string.js
string.js is a lightweight (< 4 kb minified and gzipped) JavaScript library for the browser or for Node.js that provides extra String methods.
SoapUI – How to Test a Web Service
Download SoapUI – tool for testing REST and SOAP API services.
http://sourceforge.net/projects/soapui/
Namespacing in Javascript
Why bother with namespaces in javascript?
– You get cleaner and more clear code.
It is more clear what “object” or “task” the function and variables belongs to.
Avoids global function conflicts, my function named Calculate() might conflict with another function inside some js file that has been loaded before my js file.
This is one way of doing it, which I personally prefer:
// CompareProducts Namespace: CompareProducts = {}; //A new function in that namespace: CompareProducts.AddCompareEntry = function () { // CODE INSIDE OF FUNCTION }); //A varible inside the namespace: CompareProducts.myTestVar = "test test"; //A call to the namespaced function: CompareProducts.AddCompareEntry(); //Get variable: alert(CompareProducts.myTestVar);
Another way is this (enclose in sub braces)
var yourNamespace = { foo: function() { }, bar: function() { } }; ... yourNamespace.foo();
Read even more about it here http://thanpol.as/javascript/development-using-namespaces/
jQuery plugin: Tablesorter 2.0
tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell. It has many useful features including:
Multi-column sorting
Parsers for sorting text, URIs, integers, currency, floats, IP addresses, dates (ISO, long and short formats), time. Add your own easily
Support secondary “hidden” sorting (e.g., maintain alphabetical sort when sorting on other criteria)
Extensibility via widget system
Cross-browser: IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+
Small code size
Visual Studio SQL Server Data Tools
Microsoft SQL Server Data Tools …
…provides an integrated environment for database developers to carry out all their database design work for any SQL Server platform (both on and off premise) within Visual Studio. Database developers can use the SQL Server Object Explorer in VS to easily create or edit database objects and data, or execute queries.
Developers will also appreciate the familiar VS tools we bring to database development, specifically; code navigation, IntelliSense, language support that parallels what is available for C# and VB, platform-specific validation, debugging and declarative editing in the TSQL Editor, as well as a visual Table Designer for both database projects and online database instances.