WittyFilter 机智的滤波器

Windows8/WindowsServer2012 问题汇总

1. IE内置管理员无法使用

Click Start>Run Type gpedit.msc and click “OK” The Group Policy Editor will open 找到“计算机配置”里面的“Windows设置”,打开“安全设置” -> “本地策略” -> “安全选项”,在右边查找一项策略:“用户帐户控制: 用于内置管理员账户的管理员批准模式”。启用这个策略。

2. Mac远程windows及windowsserver2012

Enable RDP security layer in Group Policy on the machine:

Verify that the firewall allows remote desktop connections with RDP (Port 3389) Click Start>Run Type gpedit.msc and click “OK” The Group Policy Editor will open In the left hand side bar, expand Computer Configuration>Administrative Templates>Windows Components>Remote Desktop Services>Remote Desktop Session Host Select “Security” Change “Require use of specific security layer for remote desktop (RDP) connection” to Enabled” and select “RDP” in the Options pane. Change “Require user authentication for remote connections by using Network Level Authentication” to “Disabled.” Close Group Policy Editor and reboot the machine for changes to take effect.

压力测试下的思维定势

上逻辑与思维方法课时,徐慈华老师说到,人在压力测试下容易产生思维定势,不易变通,并且举了一个例子。 他让一个同学起来回答一组问题,每道题目的思考时间只有10秒。题目如下:

假设有三种不同的容器ABC,每种容器的容量固定,为了量出一定要求容量的水,该如何使用这三个容器?

case 容器A 容器B 容器C 要求
1 21ml 127ml 3ml 100ml
2 33ml 89ml 3ml 50ml
3 23ml 49ml 3ml 20ml

三种情况逐一问答。第一种情况中容器A为21ml,容器B为127ml,容器C为3ml,为了量出100ml,在10秒的思考时间内容易想到:

\[127ml - 21ml - 3ml * 2 = 100ml\]

对于第二种情况,迫于时间压力,大部人分会先试一试第一种情况的方法,毕竟已经有成功的经验。通过试算,有:

\[89ml - 33ml - 3ml * 2 = 50ml\]

非常好,得到了两次正确的反馈,对于第三题的解决已经是胸有成竹了,几乎可以脱口而出:

\[49ml - 23ml - 3ml * 2 = 20ml\]

三道题在时间限制下顺利答完,这个过程中前一道题正确的解题方法对下一道题的心理暗示起到了很大的作用,但是也会带来思维定势的负面影响。 例如在第三问中,实际上只需要

\[23ml - 3ml = 20ml\]

这个解法显然更优于刚刚的方法。如果把三个问题的顺序进行调换,一开始就面对第三问,那答案就会很不一样。 因此,当我们处于压力测试时,固定的思维模式能节省不少时间,但若有能力静下心来抛开思维定势,往往会得到意想不到的收获。

获取当前Windows序列号

Code from http://pastebin.ubuntu.com/8803153/

Dim s
s = InputBox("当前Windows系统序列号为:", "Windows序列号", GetWindowsSN)
WScript.Quit


'取得当前Windows序列号函数

Function GetWindowsSN()
    Const HKEY_LOCAL_MACHINE = &H80000002
    strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
    strValueName = "DigitalProductId"
    strComputer = "."
    Dim iValues()
    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
    oReg.GetBinaryValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, iValues
    Dim arrDPID
    arrDPID = Array()
    For i = 52 To 66
        ReDim Preserve arrDPID( UBound(arrDPID) + 1 )
        arrDPID( UBound(arrDPID) ) = iValues(i)
    Next
    ' <--------------- Create an array to hold the valid characters for a microsoft Product Key -------------------------->
    Dim arrChars
    arrChars = Array("B", "C", "D", "F", "G", "H", "J", "K", "M", "P", "Q", "R", "T", "V", "W", "X", "Y", "2", "3", "4", "6", "7", "8", "9")

    ' <--------------- The clever bit !!! (Decrypt the base24 encoded binary data)-------------------------->
    For i = 24 To 0 Step -1
        k = 0
        For j = 14 To 0 Step -1
            k = k * 256 Xor arrDPID(j)
            arrDPID(j) = Int(k / 24)
            k = k Mod 24
        Next
        strProductKey = arrChars(k) & strProductKey
        ' <------- add the "-" between the groups of 5 Char -------->
        If i Mod 5 = 0 And i <> 0 Then strProductKey = "-" & strProductKey
    Next
    GetWindowsSN = strProductKey
End Function

Coursera musicianship & songwriting assignments

Musicianship Assignment 1

Study on relationship between chords, melodies and key the song is in. With the knowledge of harmony you can tell what the pleasing combination of musical sounds is. You will also understand the way in which musical chords are constructed.
Harmony is a longitudinal concept.

Ear training makes you able to identify the melodies or notes from the sounds around you. You can sing along with what you hear, or you can even play on instruments to replay the sounds.
As well ear training could help you identify the chord and harmony .

The distance between two notes. For example, C to E would be Maj 3rd, and G to D is known as Perfect 5th.
interval’s include melodic interval in transverse and harmonic interval in longitudinal.

Songwriting Assignment 1

Title: Best partners

Box 1:

I met you at the dance party last year, when you was singing on the stage, attracting me like a light in the crowd. I didn’t know you, so I wanna make friends with you.

Box 2:

We are best friends now and we perform together at the party tonight. You sing to the accompaniment of my guitar, and we make the perfect match in music. We are best partners on the stage. I want to know you more.

Box 3:

I wanna share a stage with you all the time, and we will make wonderful performances. We will be the best partners, not only on the stages, but in our whole life. I fall in love with you and I wanna be with you forever.


Subscribe via RSS
This blog is based on Lanyon, a reserved Jekyll theme that places the utmost gravity on content with a hidden drawer. Made by @mdo.