锘??xml version="1.0" encoding="utf-8" standalone="yes"?>C++鍗氬-alantop's blog http://www.kffa.tw/alantop/閲忓寲瓒嬪娍浜槗zh-cnWed, 22 May 2019 21:27:51 GMTWed, 22 May 2019 21:27:51 GMT60C++娴佽搴撳拰妗嗘灦闆嗗悎http://www.kffa.tw/alantop/archive/2019/02/10/216235.htmlAlanTopAlanTopSun, 10 Feb 2019 06:44:00 GMThttp://www.kffa.tw/alantop/archive/2019/02/10/216235.htmlhttp://www.kffa.tw/alantop/comments/216235.htmlhttp://www.kffa.tw/alantop/archive/2019/02/10/216235.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216235.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216235.htmlhttps://www.toutiao.com/i6655869330388943371/

AlanTop 2019-02-10 14:44 鍙戣璇勮
]]>
windows 10 鏃犳硶浠?803鑷姩鍗囩骇鍒?809鐨勮鍐虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2019/01/31/216229.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 31 Jan 2019 03:22:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2019/01/31/216229.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216229.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2019/01/31/216229.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216229.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216229.html</trackback:ping><description><![CDATA[     鎽樿: windows 10 鏃犳硶浠?803鑷姩鍗囩骇鍒?809鐨勮鍐虫柟妗?  <a href='http://www.kffa.tw/alantop/archive/2019/01/31/216229.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/216229.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2019-01-31 11:22 <a href="http://www.kffa.tw/alantop/archive/2019/01/31/216229.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>python3 鑾?#37721;?#32429;?#28000;?#28103;伅 鍔犲瘑 娉?#37712;?#37716;熻兘http://www.kffa.tw/alantop/archive/2019/01/06/216170.htmlAlanTopAlanTopSun, 06 Jan 2019 04:51:00 GMThttp://www.kffa.tw/alantop/archive/2019/01/06/216170.htmlhttp://www.kffa.tw/alantop/comments/216170.htmlhttp://www.kffa.tw/alantop/archive/2019/01/06/216170.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216170.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216170.html
import os, sys
import wmi
import hashlib
import base64
c = wmi.WMI()
#澶勭?#21975;櫒
def printCPU():
    tmpdict = {}
    tmpdict["CpuCores"] = 0
    for cpu in c.Win32_Processor():     
        tmpdict["cpuid"] = cpu.ProcessorId.strip()
        tmpdict["CpuType"] = cpu.Name
        tmpdict['systemName'] = cpu.SystemName
        try:
            tmpdict["CpuCores"] = cpu.NumberOfCores
        except:
            tmpdict["CpuCores"] += 1
        tmpdict["CpuClock"] = cpu.MaxClockSpeed 
        tmpdict['DataWidth'] = cpu.DataWidth
    print (tmpdict)
    return  tmpdict
#涓绘澘
def printMain_board():
    boards = []
    # print len(c.Win32_BaseBoard()):
    for board_id in c.Win32_BaseBoard():
        tmpmsg = {}
        tmpmsg['UUID'] = board_id.qualifiers['UUID'][1:-1]   #涓绘澘UUID,鏈?#37928;?#28051;绘澘杩欓儴鍒?#28103;伅鍙?#37714;?#28051;?#32460;哄?#38171;ffffff-ffffff杩欐牱鐨?/div>
        tmpmsg['SerialNumber'] = board_id.SerialNumber                #涓绘澘搴忓垪鍙?/div>
        tmpmsg['Manufacturer'] = board_id.Manufacturer       #涓绘澘鐢?#27996;?#37725;佺墝鍘傚
        tmpmsg['Product'] = board_id.Product                 #涓绘澘鍨嬪彿
        boards.append(tmpmsg)
    print (boards)
    return boards
#BIOS
def printBIOS():
    bioss = []
    for bios_id in c.Win32_BIOS():
        tmpmsg = {}
        tmpmsg['BiosCharacteristics'] = bios_id.BiosCharacteristics   #BIOS鐗瑰?#20346;爜
        tmpmsg['version'] = bios_id.Version                           #BIOS鐗?#37832;?/div>
        tmpmsg['Manufacturer'] = bios_id.Manufacturer.strip()                 #BIOS鍥?#28000;?#37922;?#27996;?#37720;傚
        tmpmsg['ReleaseDate'] = bios_id.ReleaseDate                   #BIOS閲婃斁鏃?#37832;?/div>
        tmpmsg['SMBIOSBIOSVersion'] = bios_id.SMBIOSBIOSVersion       #绯荤粺绠悊瑙勮寖鐗?#37832;?/div>
        bioss.append(tmpmsg)
    print (bioss)
    return bioss
#纭洏
def printDisk():
    disks = []
    for disk in c.Win32_DiskDrive():
        # print disk.__dict__
        tmpmsg = {}
        tmpmsg['SerialNumber'] = disk.SerialNumber.strip()
        tmpmsg['DeviceID'] = disk.DeviceID
        tmpmsg['Caption'] = disk.Caption
        tmpmsg['Size'] = disk.Size
        tmpmsg['UUID'] = disk.qualifiers['UUID'][1:-1]
        disks.append(tmpmsg)
    for d in disks:
        print (d)
    return disks
#鐢垫睜淇伅锛?#37721;?#37832;夌瑪璁?#37832;?#37813;嶄細鏈夌?#22443;睜閫夐
def printBattery():
    isBatterys = False
    for b in c.Win32_Battery():
        isBatterys = True
    return isBatterys
#缃?#37719;mac鍦板潃锛?/div>
def printMacAddress():
    macs = []
    for n in  c.Win32_NetworkAdapter():
        mactmp = n.MACAddress
        if mactmp and len(mactmp.strip()) > 5:
            tmpmsg = {}
            tmpmsg['MACAddress'] = n.MACAddress
            tmpmsg['Name'] = n.Name
            tmpmsg['DeviceID'] = n.DeviceID
            tmpmsg['AdapterType'] = n.AdapterType
            tmpmsg['Speed'] = n.Speed
            macs.append(tmpmsg)
    print (macs)
    return macs
if __name__ == '__main__':
   
    hd1=printCPU()
    
    hd3=printMain_board()
    #printBIOS()
    #printDisk()
    hd2=printMacAddress()
    print(type(hd1))
    print(type(hd2))
    print(type(hd3))
    print(hd1['cpuid'],hd1['systemName'],hd2[0]['MACAddress'],hd3[0]['UUID'],hd3[0]['SerialNumber'])
    sum = hd1['cpuid'] + hd1['systemName'] + hd2[0]['MACAddress'] + hd3[0]['UUID']+ hd3[0]['SerialNumber']
    shastr = sum.encode('gbk')
    sha = hashlib.sha1(shastr).hexdigest()
    if (sha == 'b696fcbb46e27a09458019942dd10856b0023fea'):
        print('reg user')
    else:
        print('no reg user')
        
    print(sha)
    #print(sum)
    #print(type(sum))
    s1 = base64.encodestring(shastr)
    print(s1)
    #s2 = base64.decodestring(s1)
    #print(s1,s2)
    #print (printBattery())


AlanTop 2019-01-06 12:51 鍙戣璇勮
]]>pycharm 2018.3 涓?#28051;?#37911;?#23049;?#37712;岀爜http://www.kffa.tw/alantop/archive/2018/12/30/216155.htmlAlanTopAlanTopSun, 30 Dec 2018 03:58:00 GMThttp://www.kffa.tw/alantop/archive/2018/12/30/216155.htmlhttp://www.kffa.tw/alantop/comments/216155.htmlhttp://www.kffa.tw/alantop/archive/2018/12/30/216155.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216155.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216155.html1.淇敼hosts
0.0.0.0 account.jetbrains.com
2.杞?#28000;?#28051;?#26440;撳叆濡?#28051;?#23049;?#37712;岀爜锛?#23049;?#37712;?#37827;?#37832;?#37714;?019.05锛?br />K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiRFBOIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiR08iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkNMIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUEMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSU1UiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifV0sImhhc2giOiI4OTA4Mjg5LzAiLCJncmFjZVBlcmlvZERheXMiOjAsImF1dG9Qcm9sb25nYXRlZCI6ZmFsc2UsImlzQXV0b1Byb2xvbmdhdGVkIjpmYWxzZX0=-Owt3/+LdCpedvF0eQ8635yYt0+ZLtCfIHOKzSrx5hBtbKGYRPFDrdgQAK6lJjexl2emLBcUq729K1+ukY9Js0nx1NH09l9Rw4c7k9wUksLl6RWx7Hcdcma1AHolfSp79NynSMZzQQLFohNyjD+dXfXM5GYd2OTHya0zYjTNMmAJuuRsapJMP9F1z7UTpMpLMxS/JaCWdyX6qIs+funJdPF7bjzYAQBvtbz+6SANBgN36gG1B2xHhccTn6WE8vagwwSNuM70egpahcTktoHxI7uS1JGN9gKAr6nbp+8DbFz3a2wd+XoF3nSJb/d2f/6zJR8yJF8AOyb30kwg3zf5cWw==-MIIEPjCCAiagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBMB4XDTE1MTEwMjA4MjE0OFoXDTE4MTEwMTA4MjE0OFowETEPMA0GA1UEAwwGcHJvZDN5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxcQkq+zdxlR2mmRYBPzGbUNdMN6OaXiXzxIWtMEkrJMO/5oUfQJbLLuMSMK0QHFmaI37WShyxZcfRCidwXjot4zmNBKnlyHodDij/78TmVqFl8nOeD5+07B8VEaIu7c3E1N+e1doC6wht4I4+IEmtsPAdoaj5WCQVQbrI8KeT8M9VcBIWX7fD0fhexfg3ZRt0xqwMcXGNp3DdJHiO0rCdU+Itv7EmtnSVq9jBG1usMSFvMowR25mju2JcPFp1+I4ZI+FqgR8gyG8oiNDyNEoAbsR3lOpI7grUYSvkB/xVy/VoklPCK2h0f0GJxFjnye8NT1PAywoyl7RmiAVRE/EKwIDAQABo4GZMIGWMAkGA1UdEwQCMAAwHQYDVR0OBBYEFGEpG9oZGcfLMGNBkY7SgHiMGgTcMEgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQC9WZuYgQedSuOc5TOUSrRigMw4/+wuC5EtZBfvdl4HT/8vzMW/oUlIP4YCvA0XKyBaCJ2iX+ZCDKoPfiYXiaSiH+HxAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==


AlanTop 2018-12-30 11:58 鍙戣璇勮
]]>notepad++ 涓婚閫夋嫨http://www.kffa.tw/alantop/archive/2018/12/27/216150.htmlAlanTopAlanTopThu, 27 Dec 2018 08:47:00 GMThttp://www.kffa.tw/alantop/archive/2018/12/27/216150.htmlhttp://www.kffa.tw/alantop/comments/216150.htmlhttp://www.kffa.tw/alantop/archive/2018/12/27/216150.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216150.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216150.html閫夋嫨涓婚锛歄bsidian锛?span style="color: #333333; font-family: Arial, "Microsoft YaHei", "\\5FAE杞?#38342;?#27035;?quot;, "\\5B8B浣?quot;, "Malgun Gothic", Meiryo, sans-serif; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; background-color: #ffffff;">榛戞洔yao鐭?/span>锛?#38171;?br />閫夋嫨瀛?#28003;?#37837;峰紡锛欳onsolas锛?br />瀛?#28003;撳?#30380;锛?2
浣?#37922;?#37711;眬瀛?#28003;?#38171;?br />浣?#37922;?#37711;眬瀛?#28003;撳?#30380;銆?img src ="http://www.kffa.tw/alantop/aggbug/216150.html" width = "1" height = "1" />

AlanTop 2018-12-27 16:47 鍙戣璇勮
]]>
sublime text 3 璁?#32515;?/title><link>http://www.kffa.tw/alantop/archive/2018/12/26/216146.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 26 Dec 2018 10:19:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/26/216146.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216146.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/26/216146.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216146.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216146.html</trackback:ping><description><![CDATA[<div>{</div><div><span style="white-space:pre"> </span>"ignored_packages":</div><div><span style="white-space:pre"> </span>[</div><div><span style="white-space:pre"> </span>"Vintage"</div><div><span style="white-space:pre"> </span>],</div><div></div><div><span style="white-space:pre"> </span>"default_encoding": "UTF-8",</div><div><span style="white-space:pre"> </span>"font_size": 12.0,</div><div><span style="white-space:pre"> </span>"tab_size": 4,</div><div><span style="white-space:pre"> </span>"draw_white_space": "all",</div><div></div><div><span style="white-space:pre"> </span>"translate_tabs_to_spaces": true,</div><div></div><div><span style="white-space:pre"> </span>"expand_tabs_on_save": true</div><div>}</div><div></div><img src ="http://www.kffa.tw/alantop/aggbug/216146.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-26 18:19 <a href="http://www.kffa.tw/alantop/archive/2018/12/26/216146.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>nginx鐨勯厤缃?/title><link>http://www.kffa.tw/alantop/archive/2018/12/25/216139.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 25 Dec 2018 10:07:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/25/216139.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216139.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/25/216139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216139.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216139.html</trackback:ping><description><![CDATA[杩愯 start nginx<br />杩愯?#23677;畬 鍋滄 <span style="color: #008000; font-size: 12px; font-family: "Courier New"; white-space: pre-wrap;">nginx -s quit<br />绔?#37719;?#37707;滄 </span><span style="color: #008000; font-size: 12px; font-family: "Courier New"; white-space: pre-wrap;">nginx -</span><span style="font-size: 12px; font-family: "Courier New"; white-space: pre-wrap; line-height: 1.5 !important;">s stop<br /><br />淇敼 </span>\nginx\conf\nginx.conf<br />listen 80 榛樿绔?#37721;?br /><br />瀹夎鎴?#37832;?#37716;伐鍏?br /><br /> <a href="http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/1.18/winsw-1.18-bin.exe" rel="nofollow" target="_blank" style="box-sizing: border-box; outline: 0px; color: #6795b5; text-decoration-line: none; cursor: pointer; overflow-wrap: break-word; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: 16px; background-color: #ffffff;">http://repo.jenkins-ci.org/releases/com/sun/winsw/winsw/<br />涓婚</a> https://github.com/kohsuke/winsw<img src ="http://www.kffa.tw/alantop/aggbug/216139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-25 18:07 <a href="http://www.kffa.tw/alantop/archive/2018/12/25/216139.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>?#26499;鍗?#37721;屽?#22249;?#36328;瓥鐣?/title><link>http://www.kffa.tw/alantop/archive/2018/12/25/216138.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 25 Dec 2018 09:12:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/25/216138.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216138.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/25/216138.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216138.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216138.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/12/25/216138.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/216138.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-25 17:12 <a href="http://www.kffa.tw/alantop/archive/2018/12/25/216138.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>unity 濡?#28003;?#37823;嶄綔鎽勫儚鏈?/title><link>http://www.kffa.tw/alantop/archive/2018/12/19/216128.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 19 Dec 2018 06:18:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/19/216128.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216128.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/19/216128.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216128.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216128.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/12/19/216128.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/216128.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-19 14:18 <a href="http://www.kffa.tw/alantop/archive/2018/12/19/216128.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>瑙?#37712;nohup 杈撳嚭涓嶅甫python print鐨勮?#25779;嚭?#26870;棰?/title><link>http://www.kffa.tw/alantop/archive/2018/12/19/216127.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 19 Dec 2018 02:40:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/19/216127.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216127.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/19/216127.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216127.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216127.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/12/19/216127.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/216127.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-19 10:40 <a href="http://www.kffa.tw/alantop/archive/2018/12/19/216127.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>sublime text 3.1.1 娉?#37712;岀爜 ?#25328; ?#21412;缃pythonhttp://www.kffa.tw/alantop/archive/2018/12/13/216122.htmlAlanTopAlanTopThu, 13 Dec 2018 12:53:00 GMThttp://www.kffa.tw/alantop/archive/2018/12/13/216122.htmlhttp://www.kffa.tw/alantop/comments/216122.htmlhttp://www.kffa.tw/alantop/archive/2018/12/13/216122.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216122.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216122.html闃?#29831;?#37711;枃

AlanTop 2018-12-13 20:53 鍙戣璇勮
]]>
gvim ?#21412;缃python杩愯?#23680;?/title><link>http://www.kffa.tw/alantop/archive/2018/12/08/216111.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 08 Dec 2018 07:04:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/12/08/216111.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216111.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/12/08/216111.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216111.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216111.html</trackback:ping><description><![CDATA[ "?#21412;缃python瑙?#38322;?#37731;? autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\" autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m autocmd BufRead *.py nmap <F5> :!python %<CR> autocmd BufRead *.py nmap <F6> :make<CR> autocmd BufRead *.py copen "濡傛?#28356;?#30191;y?#26499;浠?#38171;?#37714;?#37722;?#37827;?#37813;撳紑缂?#29831;?#28103;伅绐?#37721;? 灏?#28051;?#38344;嫹璐?#37714;?C:\Program Files (x86)\Vim\_vimrc 鐨?#37832;鍚?#28051;琛?img src ="http://www.kffa.tw/alantop/aggbug/216111.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-12-08 15:04 <a href="http://www.kffa.tw/alantop/archive/2018/12/08/216111.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>notepad++ ?#21412;缃go璇言 http://www.kffa.tw/alantop/archive/2018/12/08/216110.htmlAlanTopAlanTopSat, 08 Dec 2018 04:07:00 GMThttp://www.kffa.tw/alantop/archive/2018/12/08/216110.htmlhttp://www.kffa.tw/alantop/comments/216110.htmlhttp://www.kffa.tw/alantop/archive/2018/12/08/216110.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216110.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216110.html

AlanTop 2018-12-08 12:07 鍙戣璇勮
]]>
python3 鍒囨崲鍒版寚瀹氱洰?#32141;鎵?#29723;岀?#23338;簭http://www.kffa.tw/alantop/archive/2018/12/02/216105.htmlAlanTopAlanTopSun, 02 Dec 2018 13:12:00 GMThttp://www.kffa.tw/alantop/archive/2018/12/02/216105.htmlhttp://www.kffa.tw/alantop/comments/216105.htmlhttp://www.kffa.tw/alantop/archive/2018/12/02/216105.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216105.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216105.html
os.chdir('d:\\alantop_dir')
os.system('python alantop_dir_demo.py')

AlanTop 2018-12-02 21:12 鍙戣璇勮
]]>
python3浣?#37922;chrome娴?#29785;?#37731;?#37813;撳紑?#23514;瀹?#32515;戦http://www.kffa.tw/alantop/archive/2018/11/25/216079.htmlAlanTopAlanTopSun, 25 Nov 2018 10:20:00 GMThttp://www.kffa.tw/alantop/archive/2018/11/25/216079.htmlhttp://www.kffa.tw/alantop/comments/216079.htmlhttp://www.kffa.tw/alantop/archive/2018/11/25/216079.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216079.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216079.htmlimport webbrowser 
chromePath = r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chromePath))
webbrowser.get('chrome').open('https://www.baidu.com',new=1,autoraise=True)


AlanTop 2018-11-25 18:20 鍙戣璇勮
]]>notepad ++ ?#21412;缃?python ?#25328;杩愯?#23680;洰?#32141;http://www.kffa.tw/alantop/archive/2018/11/24/216077.htmlAlanTopAlanTopSat, 24 Nov 2018 04:18:00 GMThttp://www.kffa.tw/alantop/archive/2018/11/24/216077.htmlhttp://www.kffa.tw/alantop/comments/216077.htmlhttp://www.kffa.tw/alantop/archive/2018/11/24/216077.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/216077.htmlhttp://www.kffa.tw/alantop/services/trackbacks/216077.htmlcmd /k cd /d "$(CURRENT_DIRECTORY)" &  python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT

AlanTop 2018-11-24 12:18 鍙戣璇勮
]]>
EX-B150M-V3 涓绘澘瀹夎win7澶?#29840;?#37928;勮鍐虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2018/09/17/215937.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Mon, 17 Sep 2018 12:05:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/09/17/215937.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215937.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/09/17/215937.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215937.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215937.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/09/17/215937.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215937.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-09-17 20:05 <a href="http://www.kffa.tw/alantop/archive/2018/09/17/215937.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings鐨勮鍐虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2018/09/07/215911.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 07 Sep 2018 06:18:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/09/07/215911.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215911.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/09/07/215911.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215911.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215911.html</trackback:ping><description><![CDATA[<div>?#22189;鐜?#26473;?#28051;?#37819;愮define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings锛屽涓嬪?#21229;悊鍗?#37721;?#37510;?/div><div></div><div></div><div>#define _WINSOCK_DEPRECATED_NO_WARNINGS 1</div><div>杩?#28051;?#28729;氫箟鍦stdafx.h鐨勭涓琛?/div><div></div><img src ="http://www.kffa.tw/alantop/aggbug/215911.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-09-07 14:18 <a href="http://www.kffa.tw/alantop/archive/2018/09/07/215911.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>c++ 濡?#28003;?#38014;?#37721;?#35120;撳墠鏃堕棿http://www.kffa.tw/alantop/archive/2018/09/06/215909.htmlAlanTopAlanTopThu, 06 Sep 2018 07:30:00 GMThttp://www.kffa.tw/alantop/archive/2018/09/06/215909.htmlhttp://www.kffa.tw/alantop/comments/215909.htmlhttp://www.kffa.tw/alantop/archive/2018/09/06/215909.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215909.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215909.htmlvoid GetCurrentTime()
{
        struct tm t;   //tm缁撴?#21228;寚?#25313;
        time_t now;  //澹版槑time_t绫?#37736;嬪閲?/span>
        time(&now);      //鑾?#37721;?#32495;荤粺鏃?#37832;熷拰鏃堕棿
        localtime_s(&t, &now);   //鑾?#37721;?#35120;撳湴鏃?#37832;熷拰鏃堕棿

        char szResult[20] = "\0";
        sprintf_s(szResult, 20, "%.4d-%.2d-%.2d %.2d:%.2d:%.2d", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min,t.tm_sec); //浜?#37922;?123"
        
        cout << szResult << endl;
}


AlanTop 2018-09-06 15:30 鍙戣璇勮
]]>c++浠?#37837;?#28598;村拰鏍囧熬鎻?#37721;?#37825;版嵁http://www.kffa.tw/alantop/archive/2018/09/03/215900.htmlAlanTopAlanTopMon, 03 Sep 2018 08:04:00 GMThttp://www.kffa.tw/alantop/archive/2018/09/03/215900.htmlhttp://www.kffa.tw/alantop/comments/215900.htmlhttp://www.kffa.tw/alantop/archive/2018/09/03/215900.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215900.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215900.html
鎻?#37721;?#37722;?#37832;?#37733;?#28729;?#28699;楃涓?#37510;?br /><state>鍥?#28729;?lt;/state> 


      string result;
        if (Extract(line, result, "<state>", "</state>"))
            cout << result << endl;

bool Extract(string src, string &result, const char * szStart, const char *szEnd)
{
    int strlength = strlen(szStart);

    string::size_type start = src.find(szStart);


    if (start != string::npos)
    {
        string::size_type end = src.find(szEnd);
        if (end != string::npos)
        {
            result = src.substr(start + strlength, end - start - strlength);
            return true;
        }
        else
            return false;
    }
    else
        return false;

}


AlanTop 2018-09-03 16:04 鍙戣璇勮
]]>Kubernetes鏉冨?#20345;寚鍗楃2鐗??#25328; Docker鎶鏈?#37711;?#38338;?#28051;?#28729;?#37812;?#32471;?鐗?涓?#37832;?#28729;?#37731;?#37928;勪功涓嬭浇鍦板潃http://www.kffa.tw/alantop/archive/2018/09/01/215896.htmlAlanTopAlanTopSat, 01 Sep 2018 03:52:00 GMThttp://www.kffa.tw/alantop/archive/2018/09/01/215896.htmlhttp://www.kffa.tw/alantop/comments/215896.htmlhttp://www.kffa.tw/alantop/archive/2018/09/01/215896.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215896.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215896.html闃?#29831;?#37711;枃

AlanTop 2018-09-01 11:52 鍙戣璇勮
]]>
undefined reference to `std::ios_base::Init::Init()'閿?#29831;?#37928;勮鍐虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2018/08/18/215855.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 17 Aug 2018 22:33:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/08/18/215855.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215855.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/08/18/215855.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215855.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215855.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/08/18/215855.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215855.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-08-18 06:33 <a href="http://www.kffa.tw/alantop/archive/2018/08/18/215855.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>qt涓嬭浇鍦板潃http://www.kffa.tw/alantop/archive/2018/08/16/215849.htmlAlanTopAlanTopThu, 16 Aug 2018 08:14:00 GMThttp://www.kffa.tw/alantop/archive/2018/08/16/215849.htmlhttp://www.kffa.tw/alantop/comments/215849.htmlhttp://www.kffa.tw/alantop/archive/2018/08/16/215849.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215849.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215849.html闃?#29831;?#37711;枃

AlanTop 2018-08-16 16:14 鍙戣璇勮
]]>
anaconda鏇存敼婧?#37719;囩骇锛?/title><link>http://www.kffa.tw/alantop/archive/2018/08/12/215841.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 12 Aug 2018 02:10:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/08/12/215841.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215841.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/08/12/215841.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215841.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215841.html</trackback:ping><description><![CDATA[     鎽樿: anaconda鏇存敼婧?#37719;囩骇  <a href='http://www.kffa.tw/alantop/archive/2018/08/12/215841.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215841.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-08-12 10:10 <a href="http://www.kffa.tw/alantop/archive/2018/08/12/215841.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Visual Studio 2017 锛坴s2017锛?#28729;夎纭?#28000;跺拰杞?#28000;?#29781;?#23033;?/title><link>http://www.kffa.tw/alantop/archive/2018/08/12/215840.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 12 Aug 2018 02:05:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/08/12/215840.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215840.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/08/12/215840.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215840.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215840.html</trackback:ping><description><![CDATA[     鎽樿: Visual Studio 2017 锛坴s2017锛?#28729;夎纭?#28000;跺拰杞?#28000;?#29781;?#23033;?nbsp; <a href='http://www.kffa.tw/alantop/archive/2018/08/12/215840.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215840.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-08-12 10:05 <a href="http://www.kffa.tw/alantop/archive/2018/08/12/215840.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>centos?#25328;debian鐨勬敮鎸?#37827;堕棿http://www.kffa.tw/alantop/archive/2018/08/12/215839.htmlAlanTopAlanTopSun, 12 Aug 2018 02:04:00 GMThttp://www.kffa.tw/alantop/archive/2018/08/12/215839.htmlhttp://www.kffa.tw/alantop/comments/215839.htmlhttp://www.kffa.tw/alantop/archive/2018/08/12/215839.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215839.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215839.htmlcentos 6 / RHEL 6 瀹屾暣鏇?#37826;?#38171;?016骞?#32471;?#27996;屽搴?#38171;?缁?#37814;?#37831;?#37826;?#38171;?020骞?1鏈?0鏃?#38171;?/div>
centos 7 / RHEL 7 瀹屾暣鏇?#37826;?#38171;?019骞?#32471;?#37733;?#28699;?#25652;?#38171;?缁?#37814;?#37831;?#37826;?#38171;?024骞?6鏈?0鏃?#38171;?/div>
Debian GNU/Linux 9 “Stretch”LTS鐗?#37832;??#25966;鎸?#37714;?2020 骞?6 鏈?/div>

AlanTop 2018-08-12 10:04 鍙戣璇勮
]]>鍗囩骇pip澶?#29840;?#29785;?#37712;虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2018/08/12/215838.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sun, 12 Aug 2018 01:55:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/08/12/215838.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215838.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/08/12/215838.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215838.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215838.html</trackback:ping><description><![CDATA[     鎽樿: anaconda 3鍗囩骇pip澶?#29840;?#29785;?#37712;虫柟妗?nbsp; <a href='http://www.kffa.tw/alantop/archive/2018/08/12/215838.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215838.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-08-12 09:55 <a href="http://www.kffa.tw/alantop/archive/2018/08/12/215838.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>vs2015 鎵撳紑msdn甯?#37716;?#23005;绘満鐨勮鍐虫柟妗?/title><link>http://www.kffa.tw/alantop/archive/2018/07/25/215804.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Wed, 25 Jul 2018 02:22:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/07/25/215804.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215804.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/07/25/215804.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215804.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215804.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/07/25/215804.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215804.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-07-25 10:22 <a href="http://www.kffa.tw/alantop/archive/2018/07/25/215804.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>鍩?#38322;?#37805;?#29999;傚煎畾鎶曟?#24878;爜http://www.kffa.tw/alantop/archive/2018/07/24/215801.htmlAlanTopAlanTopTue, 24 Jul 2018 12:06:00 GMThttp://www.kffa.tw/alantop/archive/2018/07/24/215801.htmlhttp://www.kffa.tw/alantop/comments/215801.htmlhttp://www.kffa.tw/alantop/archive/2018/07/24/215801.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215801.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215801.html鍩?#38322;戞?#29256;嵁鐨勬?#25779;彇
绗?#28051;绉嶆柟?#30838;锛?br /> 浣?#37922;?闆嗘悳瀹GooSeeker 鏁版嵁閲?#38342;?#26462;?#28000;?#38171;?#37827;犻?#33636;紪?#29212;锛?#38007;姩閲?#38342;嗘?#24878;?#24718;瑕?#23033;?#37928;CSV?#26499;浠?br />
鎵撳紑椤?#38344;?璁?#28729;?#37825;寸悊绠?璁?#32515;?#38322;?#38342;嗘?#22249; 璁?#32515;?#32513;濆?#29808;畾浣??#29297;嬫暣?#24714;
鐒?#37722;?璁?#32515;?#32520;婚鍖?璁?#32515;?#32520;婚?#22443;?#22247;織
瀛樿鍒?br /> ?#32017;濮?#38322;?#38342;?璁?#32515;?#32513;撴潫鏍囧織 閲?#28598;嶇?#25780;潫
涓婁紶閲?#38342;嗘?#29256;嵁 鍒?#28598;?#37812;?#37837;囧?#21755;sv鏍煎紡銆?br /> 鏁版嵁閲?#38342;嗘?#27409;?#23338;?#20636;湅




AlanTop 2018-07-24 20:06 鍙戣璇勮
]]>鎺?#37714;?#37721;扮?#23338;?#24539;?#24879;棌鏈?#38892;?#38171;?#28052;熼?#24879;?#24531;惎?#23017;鐨勬鍒?#37721;扮?#23338;簭http://www.kffa.tw/alantop/archive/2018/07/17/215789.htmlAlanTopAlanTopTue, 17 Jul 2018 14:22:00 GMThttp://www.kffa.tw/alantop/archive/2018/07/17/215789.htmlhttp://www.kffa.tw/alantop/comments/215789.htmlhttp://www.kffa.tw/alantop/archive/2018/07/17/215789.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215789.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215789.html
闅愯棌鏈?#38892;?#38171;?#37714;?#28051;哄涓嬪?#29363;锛岀涓涓?#37721;?#38171;?/div>
绗?#28051;姝? #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
鍚庤?#28729;屾暣涓鐐?#37928;?#38171;?/div>
#ifdef _ConsoleDisappear  
#pragma comment( linker, "/subsystem:/"windows/" /entry:/"wmainCRTStartup/"")   
#else  
#pragma comment( linker, "/subsystem:/"windows/" /entry:/"mainCRTStartup/"")  
#endif 
绗?#27996;屾锛Project---->Properties--->Linker--->Advanced--->Entery Point淇敼涓?mainCRTStartup"銆?/div>
绗?#28051;夋锛Project---->Properties--->Linker--->System-->Subsystem?#25980;鎴Windows锛?SUBSYSTEM:WINDOWS锛?/div>
闅愯?#24531;惎?#23017;绋嬪簭
void ExecDOSCMD(char * szCommand)
{
STARTUPINFO si;
memset(&si, 0, sizeof(STARTUPINFO));
//   杩?#32459;?#28103;伅     
PROCESS_INFORMATION   pi;
si.cb = sizeof(STARTUPINFO);
//   鍙栧?#26944;?#25779;墠杩?#32459;?#37928;凷tartupInfo,骞?#37837;规嵁褰撳墠杩?#32459;嬭繘琛?#28103;敼   
GetStartupInfo(&si);
si.wShowWindow = SW_SHOW;
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
char temp[4096] = "";//姝?#28598;?#28051;?#37716;cmd /k
strcat(temp, szCommand);
CreateProcess(NULL, (LPSTR)(LPCTSTR)(temp), NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi);
}
ExecDOSCMD("demo.exe -d \\\\.\\usbpcap6 -o log");


AlanTop 2018-07-17 22:22 鍙戣璇勮
]]>c璇言 鍐?#28699;樻鎵?#37819;?#37721;?#28699;楃涓?#37713;?#37825;?/title><link>http://www.kffa.tw/alantop/archive/2018/07/17/215788.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 17 Jul 2018 07:28:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/07/17/215788.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215788.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/07/17/215788.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215788.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215788.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/07/17/215788.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215788.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-07-17 15:28 <a href="http://www.kffa.tw/alantop/archive/2018/07/17/215788.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>notepad++ 浣?#37922;?.42 32浣?#37911;?#37832;?/title><link>http://www.kffa.tw/alantop/archive/2018/06/15/215730.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 15 Jun 2018 13:10:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/06/15/215730.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215730.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/06/15/215730.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215730.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215730.html</trackback:ping><description><![CDATA[1.杩?#28051;?#37911;?#37832;?#37832;夋彃浠?#32480;?#37918;嗗櫒銆?br />2.鏈?#37928;勬彃浠?#37721;敮鎸?2浣?#37928;勭増鏈?#37510;?img src ="http://www.kffa.tw/alantop/aggbug/215730.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-06-15 21:10 <a href="http://www.kffa.tw/alantop/archive/2018/06/15/215730.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>github鏃犳硶璁块棶鐨勮鍐虫柟?#30838;http://www.kffa.tw/alantop/archive/2018/06/10/215718.htmlAlanTopAlanTopSun, 10 Jun 2018 13:02:00 GMThttp://www.kffa.tw/alantop/archive/2018/06/10/215718.htmlhttp://www.kffa.tw/alantop/comments/215718.htmlhttp://www.kffa.tw/alantop/archive/2018/06/10/215718.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215718.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215718.html鍦hosts?#26499;浠?#28051;?#37716;?#37711;?#28051;嬪垪IP锛?#28103;?#28699;?#37719;?#37721;?#37922;?#37825;?/span>

#github
192.30.253.113 github.com
192.30.253.113 github.com
192.30.253.118 gist.github.com
192.30.253.119 gist.github.com


windows涓嬭矾寰?#28051;?#38171;?br />C:\Windows\System32\drivers\etc\hosts 
Linux涓嬭矾寰?#38171;?br />/etc/hosts



AlanTop 2018-06-10 21:02 鍙戣璇勮
]]>
usb hid鏈璇?#32513;?#37719;?#29825;?#29831;?#37828;??#29995;bus 浣?#37922;?#37825;欑http://www.kffa.tw/alantop/archive/2018/06/06/215706.htmlAlanTopAlanTopWed, 06 Jun 2018 07:25:00 GMThttp://www.kffa.tw/alantop/archive/2018/06/06/215706.htmlhttp://www.kffa.tw/alantop/comments/215706.htmlhttp://www.kffa.tw/alantop/archive/2018/06/06/215706.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215706.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215706.htmlhttps://wenku.baidu.com/view/d549967a4a35eefdc8d376eeaeaad1f3469311a6.html


AlanTop 2018-06-06 15:25 鍙戣璇勮
]]>hid璇?#37712;欑?#36720;緥http://www.kffa.tw/alantop/archive/2018/05/31/215696.htmlAlanTopAlanTopThu, 31 May 2018 11:27:00 GMThttp://www.kffa.tw/alantop/archive/2018/05/31/215696.htmlhttp://www.kffa.tw/alantop/comments/215696.htmlhttp://www.kffa.tw/alantop/archive/2018/05/31/215696.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215696.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215696.htmlhttps://github.com/signal11/hidapi/blob/master/windows/hid.c


AlanTop 2018-05-31 19:27 鍙戣璇勮
]]>centos 7.0 samba?#21412;缃枃浠?/title><link>http://www.kffa.tw/alantop/archive/2018/05/29/215688.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 29 May 2018 05:04:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/05/29/215688.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215688.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/05/29/215688.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215688.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215688.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://www.kffa.tw/alantop/archive/2018/05/29/215688.html'>闃?#29831;?#37711;枃</a><img src ="http://www.kffa.tw/alantop/aggbug/215688.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-05-29 13:04 <a href="http://www.kffa.tw/alantop/archive/2018/05/29/215688.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>python3 浠庢枃浠?#28051;悳绱?#37718;?#37722;?#28699;楃涓?#37928;勮http://www.kffa.tw/alantop/archive/2018/05/23/215675.htmlAlanTopAlanTopWed, 23 May 2018 07:11:00 GMThttp://www.kffa.tw/alantop/archive/2018/05/23/215675.htmlhttp://www.kffa.tw/alantop/comments/215675.htmlhttp://www.kffa.tw/alantop/archive/2018/05/23/215675.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215675.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215675.html
import codecs
FileName = r'c:\ls\1'
#KeyStr = input("the key string: ")
KeyStr = '<dd class="info"><span>鎵?#28051;?#29831;?#37721;?#38171;?
FoundFlag = False
#鐢utf-8鏍煎紡鎵撳紑?#26499;浠?/div>
FileObj = codecs.open(FileName, 'r', 'utf-8')
LineTemp = FileObj.readline()
while LineTemp:
   # print(LineTemp)
   # print(KeyStr)
   # zc = LineTemp.find(KeyStr)
    
    if LineTemp.find(KeyStr) > 0:
        FoundFlag = True
        print("*************************")         
        print("the line is: " + LineTemp, end='')
        print("*************************")
        LineTemp = FileObj.readline()
 #       break
    else:
        LineTemp = FileObj.readline()
FileObj.close()
if FoundFlag == False:
    print("Not found the string!")


AlanTop 2018-05-23 15:11 鍙戣璇勮
]]>python3 浠?#37722;?#37721;版縺娲?#37714;板墠鍙?鎴?#37733;?/title><link>http://www.kffa.tw/alantop/archive/2018/05/19/215657.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Sat, 19 May 2018 05:12:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2018/05/19/215657.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/215657.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2018/05/19/215657.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/215657.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/215657.html</trackback:ping><description><![CDATA[<div>濡傛?#28356;槸鏈灏忓寲?#32314;娲?#37714;板墠鍙?#38171;?#28051;?#37828;?#28051;?#38344;?#37928;?#28000;爜锛?#28051;?#38344;?#28000;爜浠?#37828;?#28000;?#37722;?#37721;版縺娲?#37714;板墠鍙?br />    wrHd=win32gui.FindWindow(u'#32770',u'TeamViewer')</div><div>    print(win32gui.SetForegroundWindow(wrHd))</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span></div><div>    from PIL import ImageGrab  </div><div>    bbox = (0, 0, 1160, 500)  </div><div>    im = ImageGrab.grab(bbox)  </div><div>    im.save('d:\\demo.png')  </div><img src ="http://www.kffa.tw/alantop/aggbug/215657.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2018-05-19 13:12 <a href="http://www.kffa.tw/alantop/archive/2018/05/19/215657.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>python3 妫娴嬭繘绋嬫槸鍚?#28699;?#37734;?http://www.kffa.tw/alantop/archive/2018/05/19/215656.htmlAlanTopAlanTopSat, 19 May 2018 04:06:00 GMThttp://www.kffa.tw/alantop/archive/2018/05/19/215656.htmlhttp://www.kffa.tw/alantop/comments/215656.htmlhttp://www.kffa.tw/alantop/archive/2018/05/19/215656.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215656.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215656.html
import win32com.client  
  
def check_exsit(process_name):  
    WMI = win32com.client.GetObject('winmgmts:')  
    processCodeCov = WMI.ExecQuery('select * from Win32_Process where Name="%s"' % process_name)  
    if len(processCodeCov) > 0:  
        print ('%s is exists' % process_name)  
    else:  
        print ('%s is not exists' % process_name)  
  
if __name__ == '__main__':  
    check_exsit('360se.exe')  


AlanTop 2018-05-19 12:06 鍙戣璇勮
]]>
notepad++ ?#21412;缃pythonhttp://www.kffa.tw/alantop/archive/2018/05/18/215655.htmlAlanTopAlanTopFri, 18 May 2018 12:41:00 GMThttp://www.kffa.tw/alantop/archive/2018/05/18/215655.htmlhttp://www.kffa.tw/alantop/comments/215655.htmlhttp://www.kffa.tw/alantop/archive/2018/05/18/215655.html#Feedback0http://www.kffa.tw/alantop/comments/commentRss/215655.htmlhttp://www.kffa.tw/alantop/services/trackbacks/215655.htmlcmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT  

璁?#32515;?#37722;嶇锛?#29825;?#32515;揩鎹锋柟?#32033; ctrl+shift+F5



AlanTop 2018-05-18 20:41 鍙戣璇勮
]]>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
3׬Ǯ
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>