上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
ip转换为真实地址(详细到市) Read More
posted @ 2013-10-25 11:14 梦醒心晴 Views(103) Comments(0) Diggs(0)
1.错误摘要 HTTP 错误 404.3 - Not Found 由于扩展配置问题而无法提供您请求的页面原因:由于刚安装的iis没有注册对应版本的.net导致错误,在vs提供的命令行中输入aspnet_regiis-i2.今天使用花生壳,总算是明白以前为啥总是连接不到对应的域名了,原来是需要在服务器的路由器上配置端口映射,才能连接到。开启iis,将网站的端口设置和花生壳的配置映射端口保持一致 Read More
posted @ 2013-10-24 14:28 梦醒心晴 Views(343) Comments(0) Diggs(0)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace Holyman.Core.CardId { public sealed class CardId { private static Hashtable areaInfo = new Hashtable(); private static void IdentityCard() { } static Ca... Read More
posted @ 2013-10-23 17:17 梦醒心晴 Views(2316) Comments(7) Diggs(1)
using System;using System.Collections.Generic;using System.Web;using System.Text;using System.Net;using System.Text.RegularExpressions;namespace Web{ public class GoogleTranslate { private string UrlTemplate = "http://translate.google.com.hk/"; //google翻译URL模板... Read More
posted @ 2013-08-27 08:27 梦醒心晴 Views(431) Comments(0) Diggs(0)
总结一下,在JavaWeb中针对各种情况处理中文乱码的方法。 首先我们看下,一个请求响应的流程 浏览器------------------>Servlet容器--------------->显示页面 编码 使用容器的URIEncoding转码 解码举例:Tomcat作为Servlet容器,Tomcat的默认的URIEncoding是“iso8859-1“,可在server.xml配置文件中指定编码类型 1.JSP中显示乱码 解决方法:在JSP中第一行加上 即可解决。 2.Servlet中显示乱码 解决方法:在Servlet中加上response.setContentType(&qu Read More
posted @ 2013-08-03 16:02 梦醒心晴 Views(295) Comments(0) Diggs(0)
public static String Html2Text(String inputString) { String htmlStr = inputString; // 含html标签的字符串 String textStr = ""; Pattern p_script; Matcher m_script; Pattern p_style; Matcher m_style; Pattern p_html; Matcher m_html; Pattern p_html1;... Read More
posted @ 2013-07-27 11:56 梦醒心晴 Views(643) Comments(0) Diggs(0)
安装完sqlserver2008时报了几个错,但是好歹装上了,但是我想使用sa用户登录,给我出现了这么一个错标题: 连接到服务器------------------------------无法连接到 PC-ADMIN\SQLEXPRESS。------------------------------其他信息:已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, error: 0 - 管道的另一端上无任何进程。) (Microsoft SQL Server,错误: 233)有关帮助信息,请单击: http://go.microsoft.com/fwlink Read More
posted @ 2013-07-21 09:55 梦醒心晴 Views(369) Comments(0) Diggs(0)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;using System.Text.RegularExpressions;namespace 文件内容搜索{ public partial class Form1 : Form { publ... Read More
posted @ 2013-07-20 09:48 梦醒心晴 Views(348) Comments(0) Diggs(0)
通过手机进行远程关机主要流程1.申请一个博客园账号,找到“我的博客园”页面,拷贝url2.手机发送“随笔” 内容是“关机”3.程序每隔五分钟检测一下url上有没有当前的关机命令4.执行关机命令using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.IO;using System.IO.Compression;using System.Text.RegularExpressions;using System.Diagnostics Read More
posted @ 2013-07-15 17:20 梦醒心晴 Views(5520) Comments(41) Diggs(10)
移动到顶部固定不变 空div 空div 空div Read More
posted @ 2013-07-03 10:27 梦醒心晴 Views(2161) Comments(0) Diggs(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页