• C # backend processing session expiration jump landing page


    1. Inherit the controller and override onactionexecuting protected override void OnActionExecuting(ActionExecutingContext filterContext) { //User does not exist,Test code //if (CurrentContext.CurrentUser == null) //{ // var currUser = new UserIdentity // { // Id = new Guid(“40F7ACB1-5BBF-46CC-A47D-A42EBFDD470D”),//Name = “Administrator”, // IsAdmin = true // }; // HttpContext.Session.Add(“CurrentUser”, currUser); // return; //} var theme = Request.QueryString[“theme”]; if […]

  • Mysql database authorization (III)


    In the first part:https://www.cnblogs.com/zhaoyunxiang/p/15357057.html, describes the authorization of MySQL UDF. In the second part:https://www.cnblogs.com/zhaoyunxiang/p/15357630.html, describes the MOF authorization of MySQL. The last one is about the startup authorization of MySQL database, The core condition of this kind of authorization is that the current identity is administrator, and webshell is also administrator. Otherwise, the authorization is […]

  • 2. Basic DOS commands


    How to open CMD window Start + system + command prompt Press Win + R and enter CMD to open the console (recommended) Under any folder, hold down the shift key + right-click to open the command line window here Add CMD path in front of the address bar of the resource manager Run as […]

  • Random access to memory is also slower than sequential access, which will give you an in-depth understanding of the memory IO process


    We all know that memory access is very fast at ordinary times. Today, let’s give full play to the spirit of thorough inquiry and think about two problems Question 1:What is the memory access latency? Will you make a rough estimate?For example, the author’s memory moduleSpeedThe display is 1066MHz. Can you calculate that the memory […]

  • Solve the problem that sublime under Ubuntu cannot input Chinese


    System environment System:Ubuntu 16.04Youqilin (should be the majority)linuxAll systems (Trial)Input method: Little Penguin input methodfcitx Textedition:Sublime Text 3 Build 3114 terms of settlement 1. Save the following code to sublime imfix C (located in ~ directory) #include <gtk/gtkimcontext.h> void gtk_im_context_set_client_window (GtkIMContext *context, GdkWindow *window) { GtkIMContextClass *klass; g_return_if_fail (GTK_IS_IM_CONTEXT (context)); klass = GTK_IM_CONTEXT_GET_CLASS (context); […]

  • Use of laravel policy


    Laravel provides a simpler way to handle user authorization actions. Similar to user authentication, there are two main ways to realize user authorization: Gates and policies. I will mainly explain the use of policies here. fileThere are detailed instructions above. I only make a simple note here according to my own use process. Example: I’m […]

  • [Beiya server data recovery] data recovery of file system consistency error caused by Lun mapping error


    Server data recovery environment:Server: Sun optical storage system;Six 300g hard disks form raid6, which is divided into several LUNs and maps to servers of different services;The server operating system is sun Solaris. Fault:For new business applications, you need to add a server. The server administrator maps one Lun to a new server when the original […]

  • Run WSL for windows 10 dock container as


    preface Since the internal test, the first official version of windows 10 2020 (V2004) has been polished for a year. No accident, it will be fully pushed on May 28. Seeing this news, I can’t wait to update the software “cleanliness Mania” and pay attention to it every dayitellyou。 On May 12, the latest update […]

  • Construction of mongodb Windows Environment


    Install mongodb Download:https://www.mongodb.com/download-center#enterprise install Create folder: enter the installation pathC:\Program Files\MongoDB\Server\3.4\bin, createdataFolder, enterdataFolders, creatingdbFolders andlogFolder, inlogCreate under folderMongoDB.logfile Start mongodb as windows service: start as Administratorcmd, CD toBin directory cd C:\Program Files\MongoDB\Server\3.4\bin, execute the commandmongod –dbpath “C:\Program Files\MongoDB\Server\3.4\bin\data\db” –logpath “C:\Program Files\MongoDB\Server\3.4\bin\data\log\MongoDB.log” –install –serviceName “MongoDB”. this command creates a file namedMongoDBWindows system services start-upMongoDBServices:net start mongodb […]

  • Win10 starts the mongodb tutorial (win10 enters in administrator mode and it’s important)


    Win10 starts mongodb: http://blog.csdn.net/yy211zhu/article/details/53393928 Win10 enters in administrator mode and its important: http://jingyan.baidu.com/article/ceb9fb10b53ab88cac2ba05b.html Thanks for the online tutorial~~~

  • Automatic deployment of windows service + openssh + SVN on Jenkins


    1、 Introduction I have written two articles about using Jenkins to do the introduction of automated deployment, no matter what the enterprise is using now Net framework or Net core, no matter whether the enterprise is using git or SVN. In fact, these two articles are generally enough to deliver 80% of the business in […]