"SeCreateTokenPrivilege"  --> "Create a token object" "SeAssignPrimaryTokenPrivilege"  --> "Replace a process-level token" "SeLockMemoryPrivilege"  --> "Lock pages in memory" "SeInc…
val = 9 def test(flag): if flag: val = 1 else: print("test") return val if __name__ == '__main__': ret = test(0) print(ret) 运行如下: linux@linux-desktop:~$ python3.3 test.py fuckTraceback (most recent call last): File "test.py", line 10,…
关于 local variable 'has' referenced before assignment 问题 今天在django开发时,访问页面总是出现错误提示“local variable 'has' referenced before assignment”,查了一下资料,好像是说无法访问这个变量,检查一下代码我的视图是这样写的: def MusicTable(request):    MUSICIANS = [          {'name': 'Django Reinhardt',…
Problem: Windows Task Scheduler Fails With Error Code 2147943785 Solution: This is usually due to a permissions issue. It’s due to the user that is running the scheduled task not having the Log On As Batch Job assignment. To fix it, have your Network…
多年前玩过一次windows service,觉得挺简单的. 这次工作要维护产品中的windows service,发现不是那么简单,vs附加调试器的窗体中无法找到windows service进程.刚开始怀疑服务的代码是不是有问题,结果做了一个demo,发现还是调试不了. 所以猜想跟win7有关系.与是在google中有can not debug windows service win7的关键字搜索,发现一个解决方案. http://stackoverflow.com/questions/10…
2.2 Installing MySQL on Unix/Linux Using Generic Binaries Oracle provides a set of binary distributions of MySQL. These include binary distributions in the form of compressed tar files (files with a .tar.gz extension) for a number of platforms, as we…
Setting up NTP on Windows It's very helpful that Meinberg have provided an installer for the highly-respected and high-accurate NTP software for Windows users - my thanks to them.  This Web page provides a quick guide to installing NTP on Windows XP,…
为了更好的同步 User Profile,在 SharePoint 2010 中首次引入了 FIM (ForeFront Identity Manager) 用于编辑 User Profile 的同期方式.在 SharePoint 2013 中,FIM 继承了 SharePoint 2010 的可以编辑同期的特点,并加入了一些 SharePoint GUI 上无法实现的功能.与 SharePoint 2010 & 2013 可以直接在界面上使用 SharePoint User Profile S…
在Create Task 窗口的General选项卡中,在Security options 里有几个单选项,分别是 Run only when user is logged on ,Run whether user is logged on or not. 当选择 Run whether user is logged on or not ,在保存时会提示:This task requires that the user account specified has Log on as batch…
Add the Log on as a service Right to an Account Updated: August 8, 2008 Applies To: Windows Server 2008 You can use this procedure to add the Log on as a service right to an account on your computer. Membership in the local Administrators group, or e…