日本中文字幕电影在线观看,综合日韩在线,久久在线免费http://www.aygfsteel.com/rapin/2011,做開心的程序員zh-cnSun, 04 May 2025 02:56:59 GMTSun, 04 May 2025 02:56:59 GMT60困擾許久的win10網(wǎng)絡(luò)問題http://www.aygfsteel.com/rapin/archive/2015/11/12/428163.htmlrapinrapinThu, 12 Nov 2015 02:34:00 GMThttp://www.aygfsteel.com/rapin/archive/2015/11/12/428163.htmlhttp://www.aygfsteel.com/rapin/comments/428163.htmlhttp://www.aygfsteel.com/rapin/archive/2015/11/12/428163.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/428163.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/428163.html自從前段時(shí)間升級(jí)了win10,網(wǎng)絡(luò)經(jīng)常連接不上,困擾許久今天終于找到原因,真是爽。

先描述一下過程,之前一直沒升win10因需要重裝的軟件較多。后來在家里一臺(tái)臺(tái)式機(jī)升級(jí)后發(fā)現(xiàn)軟件不需要重裝,而且使用了一段時(shí)間覺得還行。沒什么兼容問題。

然后就把筆記本也升級(jí)了,結(jié)果發(fā)現(xiàn)升級(jí)后網(wǎng)絡(luò)經(jīng)常連不上。找了很多方法什么重置網(wǎng)絡(luò)設(shè)置,修改注冊(cè)表什么的,都不管用。

慢慢地發(fā)現(xiàn)規(guī)律,第一次訪問網(wǎng)頁(yè)或者局域網(wǎng)里其他電腦的時(shí)候無法訪問或者等半天沒反應(yīng),刷新第二次就可以。

用ping命令 一開始沒注意到  ping 任何地址第一條都是 192.168.56.1   然后才是真正的地址。

今天才想起56.1是我裝的虛擬機(jī)的地址。  

網(wǎng)卡地

原來升級(jí)win10前  真正上網(wǎng)的網(wǎng)卡是在前面,升級(jí)win10的時(shí)候   網(wǎng)卡重裝了一次,跑到了虛擬機(jī)后面。
導(dǎo)致每次先通過虛擬機(jī)網(wǎng)卡,不通再轉(zhuǎn)本地連接。

把虛擬機(jī)網(wǎng)卡禁用后解決問題。

這個(gè)怎么設(shè)置優(yōu)先權(quán)還沒找到怎么解決。

網(wǎng)上說的高級(jí)設(shè)置里設(shè)置,似乎不起效果


================================================================================
2015-11-25更新

偶然看到一篇文章可以不禁用來解決問題。

http://jingyan.baidu.com/article/eae07827a109be1fec5485b0.html
 

rapin 2015-11-12 10:34 發(fā)表評(píng)論
]]>
JAVA自帶DOM包操作XMLhttp://www.aygfsteel.com/rapin/archive/2015/07/09/426119.htmlrapinrapinThu, 09 Jul 2015 03:43:00 GMThttp://www.aygfsteel.com/rapin/archive/2015/07/09/426119.htmlhttp://www.aygfsteel.com/rapin/comments/426119.htmlhttp://www.aygfsteel.com/rapin/archive/2015/07/09/426119.html#Feedback1http://www.aygfsteel.com/rapin/comments/commentRss/426119.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/426119.html使用JAVA自帶dom包(org.w3c.dom)時(shí),想寫入doctype
<!DOCTYPE alert PUBLIC "SYSTEM" "TEST.dtd">




百度不可靠,搜半天沒找到,google下就OK了

TransformerFactory transformerFactory 
= TransformerFactory.newInstance();
Transformer transformer 
= transformerFactory.newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT, 
"yes");
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, 
"no");
transformer.setOutputProperty(OutputKeys.METHOD, 
"xml");
DOMImplementation domImpl 
= document.getImplementation();
DocumentType doctype 
= domImpl.createDocumentType("doctype",
"SYSTEM",
"TEST.dtd");
transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, doctype.getPublicId());
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, doctype.getSystemId());
DOMSource source 
= new DOMSource(document);
StreamResult result 
= new StreamResult(new File(database));
transformer.transform(source, result);








rapin 2015-07-09 11:43 發(fā)表評(píng)論
]]>
Android,HTTP請(qǐng)求中文亂碼http://www.aygfsteel.com/rapin/archive/2012/07/12/382880.htmlrapinrapinThu, 12 Jul 2012 07:07:00 GMThttp://www.aygfsteel.com/rapin/archive/2012/07/12/382880.htmlhttp://www.aygfsteel.com/rapin/comments/382880.htmlhttp://www.aygfsteel.com/rapin/archive/2012/07/12/382880.html#Feedback1http://www.aygfsteel.com/rapin/comments/commentRss/382880.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/382880.html// 編碼參數(shù)
            List<NameValuePair> formparams = new ArrayList<NameValuePair>(); // 請(qǐng)求參數(shù)
            for (NameValuePair p : params) {
                formparams.add(p);
            }
            UrlEncodedFormEntity entity = new UrlEncodedFormEntity(formparams,HTTP.UTF_8);
            // 創(chuàng)建POST請(qǐng)求
            HttpPost request = new HttpPost(url);
            request.setEntity(entity); Android發(fā)送HTTP請(qǐng)求,android默認(rèn)編碼已是utf-8。 
問題描述:
如上代碼中已經(jīng)設(shè)置了請(qǐng)求為UTF-8,服務(wù)器中編碼也是全部UTF-8,可是服務(wù)器獲取中文還是出現(xiàn)亂碼。
由于服務(wù)器端并非自己開發(fā),無法看到服務(wù)器是如何運(yùn)行的,只知道編碼是UTF-8。
同樣的服務(wù)器,IPHONE客戶端發(fā)送中文無亂碼。

問題解決:
嘗試打印Andorid,IPHONE的HTTP頭。
發(fā)現(xiàn)其中的content-type 不一樣。
Andorid :content-type:application/x-www-form-urlencoded; 
IPHONE:content-type:application/x-www-form-urlencoded; charset=utf-8

于是嘗試在請(qǐng)求的時(shí)候加個(gè)頭
request.setHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); 

然后問題解決。




rapin 2012-07-12 15:07 發(fā)表評(píng)論
]]>
IBM TDS 權(quán)限問題 LDAP: error code 50http://www.aygfsteel.com/rapin/archive/2010/07/06/325379.htmlrapinrapinTue, 06 Jul 2010 08:57:00 GMThttp://www.aygfsteel.com/rapin/archive/2010/07/06/325379.htmlhttp://www.aygfsteel.com/rapin/comments/325379.htmlhttp://www.aygfsteel.com/rapin/archive/2010/07/06/325379.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/325379.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/325379.htmlTivoli Directory Server6.2(以下簡(jiǎn)稱TDS)

使用普通用戶的賬號(hào)(非:管理員)密碼進(jìn)入LDAP后,要修改密碼。
就是簡(jiǎn)單的modifyAttributes操作userPassword屬性。
提示如下錯(cuò)誤:
javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name

大概知道是TDS中訪問控制(ACL)的配置問題
折騰半天終于弄明白了這其中的意思,這些寫下來給有緣者幫助。

ACL配置大概意思就是
對(duì)指定的目錄,限制性的開放權(quán)限給用戶,或者組。

下面通過操作來說下我的理解:

默認(rèn)普通用戶條目是能查看所有條目,不允許編輯任何條目,包括密碼
期望實(shí)現(xiàn)配置:普通用戶可以修改密碼條目,不能查看條目信息。

進(jìn)入Tivoli Directory Server Web 管理工具,進(jìn)入服務(wù)器后。
目錄管理-->管理?xiàng)l目  
選中要配置的條目,在選擇操作中選擇《編輯ACL...》,點(diǎn)擊執(zhí)行 進(jìn)入到編輯界面

有效的 ACL:其作用的ACL配置(默認(rèn)有一條cn=anybody的可讀的配置,當(dāng)配置新的后,會(huì)覆蓋它)
有效的所有者:其作用的所有者,會(huì)有一條管理員的主題DN
未過濾的 ACL:一般新建ACL在此處新建,傳播選項(xiàng)的意思就是,是否作用于選中條目的子目錄。這里我們?cè)谶@個(gè)頁(yè)面點(diǎn)擊  添加 ,注意選上傳播。進(jìn)入到編輯頁(yè)面后,在主題DN輸入  cn=Authenticated    。主題DN指的是   要限制的用戶或者用戶
cn=Authenticated是偽DN,指所有通過驗(yàn)證的用戶。其他偽DN還有:cn=anybody(任何用戶,包括匿名),cn=this(當(dāng)前選擇的條目)。

主題角色:我選的是角色,按TDS文檔cn=Authenticated 應(yīng)該是組,可是選了那個(gè)建不了,求解.
下面
屬性:因?yàn)槭且试S修改密碼,因此選擇userPassword點(diǎn)擊 定義下面列表出現(xiàn)后   讀寫選擇授權(quán)。
然后點(diǎn)擊確定返回到未過濾的 ACL的頁(yè)面 注意 在此頁(yè)面再點(diǎn)擊一次確定。我就經(jīng)常忘了在這頁(yè)面點(diǎn)確定,然后沒保存 

另說下
所有者:指的是這個(gè)條目的所有者,添加




rapin 2010-07-06 16:57 發(fā)表評(píng)論
]]>
聯(lián)想Y450裝XP無法關(guān)機(jī)的解決方法http://www.aygfsteel.com/rapin/archive/2010/06/12/323470.htmlrapinrapinSat, 12 Jun 2010 12:33:00 GMThttp://www.aygfsteel.com/rapin/archive/2010/06/12/323470.htmlhttp://www.aygfsteel.com/rapin/comments/323470.htmlhttp://www.aygfsteel.com/rapin/archive/2010/06/12/323470.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/323470.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/323470.html 下面有另一個(gè)辦法:

安裝攝像頭驅(qū)動(dòng)無法關(guān)機(jī)解決方法。
1. 修改設(shè)置,右鍵點(diǎn)擊“我的電腦”--"管理”--“設(shè)備管理器”;
2. 將通用串行總線控制器中多個(gè)USB Root Hub的“電源管理”選項(xiàng)中“允許計(jì)算機(jī)關(guān)閉這個(gè)設(shè)備以節(jié)約電源”前的√去掉問題解決




rapin 2010-06-12 20:33 發(fā)表評(píng)論
]]>
Adobe Acrobat 9注冊(cè)碼http://www.aygfsteel.com/rapin/archive/2010/03/23/316250.htmlrapinrapinTue, 23 Mar 2010 02:15:00 GMThttp://www.aygfsteel.com/rapin/archive/2010/03/23/316250.htmlhttp://www.aygfsteel.com/rapin/comments/316250.htmlhttp://www.aygfsteel.com/rapin/archive/2010/03/23/316250.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/316250.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/316250.html 1118-1003-2497-4698-2571-4985



rapin 2010-03-23 10:15 發(fā)表評(píng)論
]]>
操作active Directory,“安全”標(biāo)簽http://www.aygfsteel.com/rapin/archive/2009/12/25/307287.htmlrapinrapinFri, 25 Dec 2009 08:29:00 GMThttp://www.aygfsteel.com/rapin/archive/2009/12/25/307287.htmlhttp://www.aygfsteel.com/rapin/comments/307287.htmlhttp://www.aygfsteel.com/rapin/archive/2009/12/25/307287.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/307287.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/307287.html 大概意思就是,用程序去創(chuàng)建一個(gè)計(jì)算機(jī)后,要給某個(gè)用戶權(quán)限,允許這個(gè)用戶把這個(gè)計(jì)算機(jī)加入到域。
可以用命令來實(shí)現(xiàn)的話也可以。
高手們快快現(xiàn)身,幫幫小弟吧~~~


























----------------------------------------------------------------------------------------------
結(jié)果沒有實(shí)現(xiàn)
過程大概如下:
使用dsacls命令 例如給與test345用戶把計(jì)算機(jī)<cn=test345,ou=計(jì)算機(jī),ou=模具公司,ou=深圳市,dc=test,dc=ad>加入域的命令如下:
dsacls cn=test345,ou=計(jì)算機(jī),ou=模具公司,ou=深圳市,dc=test,dc=ad /G test345@test.ad:GA

每次創(chuàng)建一個(gè)計(jì)算機(jī)的時(shí)候執(zhí)行命令。前提條件是需要安裝dsacls工具,安裝文件在windows2003安裝盤的SUPPORT/TOOLS/SUPTOOLS.MSI
沒有實(shí)現(xiàn)的原因是實(shí)現(xiàn)不了遠(yuǎn)程執(zhí)行這個(gè)命令。

按照msdn上說的:
----------------------------------------------------
DsAcls 使用以下語(yǔ)法:
FAILED TO TRANSLATE SENTENCE
您可以使用以下參數(shù): Dsacls.exe
  • 對(duì)象 : 這是到目錄服務(wù)對(duì)象基于它來顯示或更改 ACL 路徑。 此路徑必須是可分辨名稱 (也稱為 RFC 1779 或 x.500 格式)。 例如:
    CN = Com = 軟件, OU = 工程, DC = Microsoft, DC = 某人, OU
    要指定服務(wù)器, 添加 \\Servername\ 對(duì)象之前。 例如:
    \\MyServer\CN=Someone,OU=Software,OU=Engineering,DC=Microsoft,DC=Com
----------------------------------------
添加了服務(wù)器后,
dsacls \\test.ad\cn=test345,ou=計(jì)算機(jī),ou=模具公司,ou=深圳市,dc=test,dc=ad /G test345@test.ad:GA
執(zhí)行提示密碼不行。
希望知道原因的朋友,聯(lián)系下小弟,了結(jié)這痛。


rapin 2009-12-25 16:29 發(fā)表評(píng)論
]]>
windows7下的tomcat筆記http://www.aygfsteel.com/rapin/archive/2009/12/22/306947.htmlrapinrapinTue, 22 Dec 2009 14:01:00 GMThttp://www.aygfsteel.com/rapin/archive/2009/12/22/306947.htmlhttp://www.aygfsteel.com/rapin/comments/306947.htmlhttp://www.aygfsteel.com/rapin/archive/2009/12/22/306947.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/306947.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/306947.html原來的開發(fā)環(huán)境是windows xp
tomcat6.0
jdk1.6.0_03

是綠色環(huán)境。目錄如下:
D:\tomcat6.0\
D:\tomcat6.0\jdk1.6.0_03

D:\tomcat6.0\catalina.bat中加入了設(shè)置jdk環(huán)境變量

set CATALINA_HOME=D:\\tomcat6.0\\
set JAVA_HOME=%CATALINA_HOME%jdk1.6.0_03

然后直接運(yùn)行startup.bat就可以啟動(dòng)tomcat了。

最近嘗鮮把xp換成了windows7

運(yùn)行startup.bat時(shí)  出現(xiàn)“拒絕訪問”的錯(cuò)誤。
嘗試過用xp兼容方式運(yùn)行,管理員取得權(quán)限運(yùn)行 還是不行。

結(jié)果jdk換成1.6.0_17版本的就可以了。

建議不能正常運(yùn)行tomcat的朋友,把tomcat更新到6.0以上,jdk更新到1.6.0_17以上。應(yīng)該就可以了。

PS:其他開發(fā)軟件支持windows7的版本:
Oracle   10.2.0



rapin 2009-12-22 22:01 發(fā)表評(píng)論
]]>
sql 特定時(shí)間段的查詢http://www.aygfsteel.com/rapin/archive/2009/01/18/251772.htmlrapinrapinSun, 18 Jan 2009 06:12:00 GMThttp://www.aygfsteel.com/rapin/archive/2009/01/18/251772.htmlhttp://www.aygfsteel.com/rapin/comments/251772.htmlhttp://www.aygfsteel.com/rapin/archive/2009/01/18/251772.html#Feedback4http://www.aygfsteel.com/rapin/comments/commentRss/251772.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/251772.html
表名:A
時(shí)間字段:ddatetime(datetime類型)

查詢2003-2004年6月7日-7月8日數(shù)據(jù)。

1select * from A where (extract(year from ddatetime) between 2003 and 2004
2and (extract(month from ddatetime) between 6 and 7)
3and (extract(day from ddatetime) between 6 and 7)


extract只能取到日。小時(shí),或者到秒,需要to_char。

查詢2003-2004年6月7日-7月8日12時(shí)到20時(shí)數(shù)據(jù)。

 

1select * from A where (extract(year from ddatetime) between 2003 and 2004
2and (extract(month from ddatetime) between 6 and 7)
3and (extract(day from ddatetime) between 6 and 7and (to_char(ddatetime,'HH24'between 12 and 20)



以上查詢?cè)趏racle可運(yùn)行。



rapin 2009-01-18 14:12 發(fā)表評(píng)論
]]>
EXECL做的MVhttp://www.aygfsteel.com/rapin/archive/2008/10/28/237133.htmlrapinrapinTue, 28 Oct 2008 07:45:00 GMThttp://www.aygfsteel.com/rapin/archive/2008/10/28/237133.htmlhttp://www.aygfsteel.com/rapin/comments/237133.htmlhttp://www.aygfsteel.com/rapin/archive/2008/10/28/237133.html#Feedback0http://www.aygfsteel.com/rapin/comments/commentRss/237133.htmlhttp://www.aygfsteel.com/rapin/services/trackbacks/237133.html 居然是用EXECL完成的,沒想到execl如此強(qiáng)大.

這里是視頻:http://www.youtube.com/watch?v=h9_YkXHCkgA

下面是xls格式的文件
/Files/rapin/mv.rar


rapin 2008-10-28 15:45 發(fā)表評(píng)論
]]>
主站蜘蛛池模板: 车致| 松原市| 湟源县| 星座| 东兰县| 泾川县| 晋中市| 友谊县| 小金县| 吐鲁番市| 白城市| 南京市| 通江县| 衡山县| 明光市| 文安县| 马边| 班玛县| 昌宁县| 英山县| 亳州市| 思茅市| 朝阳市| 林芝县| 南通市| 尉犁县| 东海县| 崇仁县| 成都市| 广宗县| 潢川县| 彭阳县| 敖汉旗| 永泰县| 新兴县| 芦山县| 云阳县| 衢州市| 金门县| 嵊泗县| 邯郸市|