导航

上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 61 下一页

2012年10月22日

摘要: C:\Windows>TelnetMicrosoftTelnet>open10.103.1.425220xxx.com.cnMicrosoftESMTPMAILService,Version:6.0.3790.3959readyatFri,21Oct201112:50:04+0800EHLO250-xxx.com.cnHello[10.103.4.57]250-TURN250-SIZE250-ETRN250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-8bitmime250-BINARYMIME250-CHUNKING250-VRFY25 阅读全文

posted @ 2012-10-22 14:51 eastson 阅读(579) 评论(0) 推荐(0) 编辑

摘要: UTF-8以字节为编码单元,没有字节序的问题。UTF-16以两个字节为编码单元,在解释一个UTF-16文本前,首先要弄清楚每个编码单元的字节序。例如收到一个“奎”的Unicode编码是594E,“乙”的Unicode编码是4E59。如果我们收到UTF-16字节流“594E”,那么这是“奎”还是“乙”?Unicode规范中推荐的标记字节顺序的方法是BOM。BOM不是“BillOfMaterial”的BOM表,而是ByteOrderMark。在UCS编码中有一个叫做"ZEROWIDTHNO-BREAKSPACE"的字符,它的编码是FEFF。而FFFE在UCS中是不存在的字符,所 阅读全文

posted @ 2012-10-22 14:49 eastson 阅读(161) 评论(0) 推荐(0) 编辑

摘要: http://www.khngai.com/chinese/charmap/Whatmakethisworldextremelyinterestingisthevarietyofstandards.Nobodyseemstoagreetosettlewithaunifiedwayofdoingthings.Wecanseethisfromthelanguagesthatwespeak,thefoodweeat,thehousesthatwebuildandalotofotherexample.ThereareafewwaysofrepresentingChinesecharactersinco 阅读全文

posted @ 2012-10-22 14:47 eastson 阅读(395) 评论(0) 推荐(0) 编辑

摘要: 首先,您的拥有一个有泛域名解析的顶级域名,例如:domain.com其次,在httpd.conf中打开mod_rewrite之后,在httpd.conf的最后,添加以下内容:RewriteEngine onRewriteMap lowercase int:tolowerRewriteMap vhost txt:/usr/local/etc/apache/vhost.mapRewriteCond ${lowercase:%{SERVER_NAME}} ^(. )$RewriteCond ${vhost:%1} ^(/.*)$RewriteRule ^/(.*)$ %1/$1其中的/usr/loc 阅读全文

posted @ 2012-10-22 14:46 eastson 阅读(605) 评论(0) 推荐(0) 编辑

摘要: 公司最近计划搞一个报表服务器,用FineReport作为后台WebServer,浏览器作为客户端。公司的ERP是使用PowerBuilder9.0开发的,为了实现在ERP中集成FineReport,想到了在PowerBuilder中嵌入IE控件的处理方式。在网上搜到下面代码:Integer resultoleobject objExplorerobjExplorer = CREATE oleobjectresult = objExplorer.ConnectToNewObject( "InternetExplorer.Application")IF result = 0 T 阅读全文

posted @ 2012-10-22 14:44 eastson 阅读(1881) 评论(0) 推荐(0) 编辑

摘要: <IfModulemod_rewrite.c>RewriteEngineOn#商品详情RewriteRule^goods/([0-9]+)/?$index.php?app=goods&id=$1[L]RewriteRule^goods/([0-9]+)/([^/]+)/?$index.php?app=goods&id=$1&act=$2[L]RewriteRule^goods/([0-9]+)/([^/]+)/page_([^/]+)/?$index.php?app=goods&id=$1&act=$2&page=$3[L]Rewri 阅读全文

posted @ 2012-10-22 14:44 eastson 阅读(318) 评论(0) 推荐(0) 编辑

摘要: 准备工作1.新增一个Application应用,新增一个窗口。2.在窗口中新增一个OLE控件:MicrosoftWebBrowser,命名为old_1。3.新增一个TextBox网址输入控件,命名为sle_url,初始值为c:\temp\index.html。4.新增一个Button控件,命名为cb_go,clicked代码如下:ole_1.object.Navigate(sle_url.text)5.新增文件c:\temp\index.html,内容如下:<script language="javascript">function sayhello(msg){ 阅读全文

posted @ 2012-10-22 14:42 eastson 阅读(5015) 评论(0) 推荐(0) 编辑

2012年10月20日

摘要: 获取checkbox的值放到数组中,然后连接成字符串:var selectedItems = new Array();$("input[@name='itemSelect[]']:checked").each(function() {selectedItems.push($(this).val());});if (selectedItems .length == 0) alert("Please select item(s) to delete.");else $.ajax({ type: "POST", url: & 阅读全文

posted @ 2012-10-20 08:41 eastson 阅读(1089) 评论(0) 推荐(0) 编辑

摘要: 客户端代码:<div id="ajax-post"><a href='#'>Ajax post</a></div><script type="text/javascript">$('#ajax-post a').click(function() { var params = {}; $.ajax({ type: 'post', url: 'ajax.php', data: params, beforeSend: function() 阅读全文

posted @ 2012-10-20 08:16 eastson 阅读(350) 评论(0) 推荐(0) 编辑

2012年10月13日

摘要: 公司的ERP系统一直被邮件所烦。以前在ERP里面发送邮件,采用的是一个在网上找的DLL文件,没有源码。这个DLL文件采用的是SMTP方式,可以实现简单的邮件发送,更高级的功能就没有,比如副本,附件,以HTML方式发送等。最近有一些时间,抽空就把这个问题解决了一下。首先用Wireshark监控了一下这个DLL文件发送时的数据包,发现应该是用Delphi的Indy组件具体实现的。Indy组件刚好会用,就用Delphi+Indy开发了一个自己的DLL邮件发送功能,解决了公司一直困扰的问题。需要说明的是Delphi开发DLL供PowerBuilder调用过程中需要注意的一些问题:1.Delphi要使用 阅读全文

posted @ 2012-10-13 08:13 eastson 阅读(1017) 评论(0) 推荐(0) 编辑

上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 61 下一页