Thursday, May 28, 2015

for missing taskbar in windows

for example after installing software ->

open task manager->start explorer

Thursday, May 21, 2015

mapping fake routes in MVC

routes.MapRoute(
               "Boris",
               "Boris/Show",
               new
               {
                   controller = "Herby",
                   action = "Index"
               }
           );

if your'e lazy and have simple "and"s separated by "or"s

then neat "and"s and or"s work like parentheses

select * from

(
select 1 a , 'hi there' b , 102 c
union
select 2 a , 'hi there' b , 103 c
union
select 10 a , 'hi there' b , 103 c
union
select 9 a , 'hi there' b , 103 c
union
select 8 a , 'by there' b , 103 c
union
select 7 a , 'by there' b , 103 c
union
select 6 a , 'by there' b , 10 c

) as main
where b = 'by there'
and a=6
or a > 1
and a < 4
and b = 'hi there'
or a = 10

and b = 'hi there'

Simple MVC Filter

public class TestFilter : ActionFilterAttribute
    {
       public override void   OnActionExecuted(ActionExecutedContext filterContext)
        {
            base.OnActionExecuted(filterContext);
            System.IO.File.AppendAllText(@"c:\log.txt", string.Format("{0}\r\n", filterContext.RequestContext.HttpContext.Request.Url.ToString()));

        }
    }


In global.asax:



  protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);

            GlobalFilters.Filters.Add(new TestFilter());

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

        }

is your app

skinnable?

Wednesday, May 13, 2015