Thursday, 5 December 2013
I’ve just got into the Microsoft Virtual Academy, and I have to say it has a wealth of up to date, excellent training videos.
Razor syntax escape characters…
Html anti forgery token..
ASP.NET MVC 4 Content Map
Script including - always use the longhand version for the <script></script> tag, otherwise your script file will not be downloading to the client browser
JSBin.com - http://jsbin.com/ a fantastic javscript, jquery, html and css online playground like jsfiddle.net and plnkr.co. The nice thing about this one though is that you can download the entire finished article file as a single html page.
What's coming in ASP.NET - www.asp.net/vnext
Signed nightly builds of asp.net vnext - https://aspnetwebstack.codeplex.com/
Getting started with web api - http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api
Web API 2 (video) - http://channel9.msdn.com/Events/Build/2013/3-504
Monday, 4 November 2013
- Get a replacement battery from Casio UK on 020 8450 9131 https://support.casio.co.uk/Telephone.aspx
- Follow steps here on how to replace it (be careful not to loose the spring). http://forums.watchuseek.com/f43/how-change-ctl1616-rechargeable-battery-41076.html
Wednesday, 23 October 2013
Looks like Microsoft make the task dead simple for you now…
Although if you get into the trouble I had with GPT bios issues, then use this trick instead…
Also for all you need to know about dual booting between various flavours of Windows see here
EaseUS Backup Free here (for system imaging backups)
MyDefrag defragger to move MBT here
Thursday, 17 October 2013
/// Disables browser caching.
public class NoCacheAttribute : ActionFilterAttribute
/// Called by the ASP.NET MVC framework before the action result executes.
/// The filter context.
public override void OnResultExecuting(ResultExecutingContext filterContext)
Tuesday, 15 October 2013
Public Module Module1
'Empty routine that just causes VS to flush its memory to disk
Private Sub AttachToProcess(ByVal ProcessName As String, Optional ByVal ScriptOnly As Boolean = False)
Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger
Dim trans As EnvDTE80.Transport = dbg2.Transports.Item("Default")
Dim dbgeng(2) As EnvDTE80.Engine
dbgeng(0) = trans.Engines.Item("Script")
If ScriptOnly Then
dbgeng(1) = trans.Engines.Item("Managed")
Dim proc2 As EnvDTE80.Process2 = dbg2.GetProcesses(trans, System.Environment.MachineName).Item(ProcessName)
Catch ex As System.Runtime.InteropServices.COMException
Select Case ex.ErrorCode
ShowMessage(ProcessName & " is not currently a running process")
ShowMessage("You are already attached to " & ProcessName)
ShowMessage("Unhandled error message from Attach to process macro")
Catch ex As System.Exception
MsgBox("Unhandled exception occurred: " & ex.Message)
Private Sub ShowMessage(ByVal message As String)
Call MsgBox(message, MsgBoxStyle.Exclamation, "Attach to process macro")
Wednesday, 9 October 2013
Today we found something very interesting with Team Foundation Server (TFS) source control folder workflow. A colleague of mine had deleted a source control folder from TFS source control, but as I hadn't got latest on the parent folder, I was not aware that he had done this.
I was then able to add a script to this deleted folder, check in my change, and this had the implicit effect of undeleting the folder that my colleague wanted removed.
One to watch out for in case you don't always do a full get latest from the route of your source control project.