https://www.freetech4teachers.com/2018/08/250-google-tools-tutorials-for-teachers.html
Sunday, December 23, 2018
Thursday, September 20, 2018
Trace failed request on running website in IIS Express
Tracefailed request on running website in IIS Express
To temporarily by pass the issue, we can remove the provider WWW Server in application config as mentioned in this SO post
https://stackoverflow.com/questions/32874615/iis-7-5-tracing-area-is-not-recognized-http-error-500-0-internal-serv
C:\Users\UserName\Documents\IISExpress\config
Thursday, January 25, 2018
Basic git command to create a new branch revert changes in a branch
`git checkout staging`
`git pull`
`git checkout -b ES-205 #create a new branch`
`git push --set-upstream origin ES-205 #push the new branch`
`git checkout staging`
`git revert _____ # revert the commits you made on staging`
`git pull`
`git checkout -b ES-205 #create a new branch`
`git push --set-upstream origin ES-205 #push the new branch`
`git checkout staging`
`git revert _____ # revert the commits you made on staging`
Monday, December 4, 2017
Friday, November 10, 2017
JumpList in WPF application
Reference to JumpList in WPF application
https://blog.codeinside.eu/2015/11/30/working-with-jumplists-in-wpf-apps/
https://msdn.microsoft.com/en-us/library/ff770767.aspx
Creating JumpLists via XAML
Small warning: If you try this on Windows Vista, your app will just crash…
JumpLists are registred per application and the easiest way to create a (static) JumpList is via XAML in the App.xaml:
http://schemas.microsoft.com/winfx/2006/xaml/presentation
Creating JumpLists via Code
The “coding” JumpList API is a bit odd to use, but still easy to understand:
var jt = new JumpTask
{
ApplicationPath = "C:\\Windows\\notepad.exe",
Arguments = "readme.txt",
Title = "Recent Entry for Notepad",
CustomCategory = "Dummy"
};
JumpList.AddToRecentCategory(jt);
var jt2 = new JumpTask
{
ApplicationPath = "C:\\Windows\\notepad.exe",
Arguments = "readme.txt",
Title = "Code Entry for Notepad",
CustomCategory = "Dummy"
};
var currentJumplist = JumpList.GetJumpList(App.Current);
currentJumplist.JumpItems.Add(jt2);
currentJumplist.Apply();
The “Apply()” call is needed, otherwise the new JumpItem will not be added. As you can see, you can create new JumpList entries, add (and I think you could also remove items) from the default recent category. Besides JumpTasks there is JumpPath, which just contains a link.
In the XAML Part I also hooked up some events, so your application can get notified when a user pins something or removes something which you might want to handle.
Wednesday, November 1, 2017
Monday, August 21, 2017
MVC Sample to send current url while redirect to another page
public ActionResult MyNextAction()
{
return Redirect(Request.Referrer);
}
public ActionResult MyFirstAction()
{
return RedirectToAction("MyNextAction",
new { r = Request.Url.ToString() });
}
then:
public ActionResult MyNextAction()
{
return Redirect(Request.QueryString["r"]);
}
{
return Redirect(Request.Referrer);
}
public ActionResult MyFirstAction()
{
return RedirectToAction("MyNextAction",
new { r = Request.Url.ToString() });
}
then:
public ActionResult MyNextAction()
{
return Redirect(Request.QueryString["r"]);
}
Subscribe to:
Posts (Atom)