摘要: Ubuntu下Eclipse代码编辑区编辑代码不顺畅的缘故:在eclipse与scim之间卡住了。下面是本人scim输入法的安装配置过程,根据个人经验,不一定能够完全解决所有人遇到的同样问题,仅供参考。1、安装scim智能拼音输入法sudo apt-get install scim-pinyin im-switch2、接着把系统默认的输入法设置为scimsudo im-switch -s scim结果设置失败,系统反馈:update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/scim'.3、然后以普通用 阅读全文
posted @ 2011-07-03 10:27 Credo Chen 阅读(1251) 评论(0) 推荐(0) 编辑
摘要: 解决方法:在终端或按alt+f2中输入:gconf-editor,点apps->gedit-2->preferences->encodings,修改auto_detected的值,增加GB2312,gbk,同时把这两者的位置提前到utf-8下面一行.注:用上述方法,只是保证在当前用户下是支持GB2312编码,若要设置为显示所有用户或root用户也支持的话,需要在终端里通过“sudo gconf-editor”来打开,设置方法同上。在运行 gedit 时,加参数也可以正常显示中文。命令:suto gedit --encoding=GBK filename 阅读全文
posted @ 2011-07-03 10:13 Credo Chen 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 一、下载谷歌拼音的源代码文件: sudo wget http://malu.googlecode.com/files/scim-googlepinyin.tar.gz二、解压源代码文件包: sudo tar zxvf scim-googlepinyin.tar.gz三、开始编译步骤(这一步最麻烦,需要操作几次命令)A 进入刚才解包的文件夹: cd scim-googlepinyin/B 检查需要的附加程序包: sudo ./1C 运行预处理: sudo ./autogen.shD 编译主文件: sudo makeE 编译安装文件: sudo make installF 关闭现在运行的SCIM输 阅读全文
posted @ 2011-07-03 09:16 Credo Chen 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: http://www.admin5.com/article/20080314/75984.shtml1 <?php 2 Header("Content-type: image/gif"); 3 /* 4 * 初始化 5 */ 6 $border = 0; //是否要边框 1要:0不要 7 $how = 4; //验证码位数 8 $w = $how*15; //图片宽度 9 $h = 20; //图片高度10 $fontsize = 5; //字体大小11 $alpha = "abcdefghijkmnopqrstuvwxyz"; //验证码内容1: 阅读全文
posted @ 2011-07-01 23:13 Credo Chen 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 还是这位仁兄写的好,转了!http://www.cnblogs.com/angelmtprocess/archive/2008/05/22/1204870.html代码如下:<?php/*网站验证码程序*运行环境:PHP5.0.18下调试通过*需要gd2图形库支持(PHP.INI中php_gd2.dll开启)*文件名:showimg.php*作者:17php.com*Date:2007.03*技术支持:www.17php.com*///随机生成一个4位数的数字验证码$num="";for($i=0;$i<4;$i++){$num.=rand(0,9);}//4位 阅读全文
posted @ 2011-07-01 22:45 Credo Chen 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 1 show.php 2 3 <?php 4 session_start(); 5 if($_POST[check]){ 6 7 if($_POST[check]==$_SESSION[check_pic]){ 8 echo "验证码正确".$_SESSION[check_pic]; 9 }10 else {11 echo "验证码错误".$_SESSION[check_pic];12 }13 }14 15 16 ?>17 <form action="" method="post">18 & 阅读全文
posted @ 2011-07-01 22:43 Credo Chen 阅读(886) 评论(0) 推荐(0) 编辑
摘要: http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.htmlDescription of Data ContentTypical Filename ExtensionsMIME type/subtypeText and Text-Related TypesHTML text data (RFC 1866)html htmtext/htmlPlain text: documents; program listingstxt c c++ pl cc htext/plainRichtext (obsolete - r 阅读全文
posted @ 2011-07-01 22:23 Credo Chen 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 <appSettings> 2 3 <add key="ffmpeg" value="ffmpeg/ffmpeg.exe"/> 4 <add key="mencoder" value="mencoder/mencoder.exe"/> 5 <add key="mplayer" value="mencoder/mplayer.exe"/> 6 7 <add key="upfile" value=&qu 阅读全文
posted @ 2011-06-18 19:27 Credo Chen 阅读(2137) 评论(1) 推荐(0) 编辑
摘要: 关于JSP中org.apache.jasper.JasperException:This absolute urihttp://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application 照着《精通JSP--Web开发技术与典型应用》敲了一段JSTL的代码。没想到报错了。为这个问题搞了一下午,坐得屁股疼…… 我的开发环境是Eclipse 3.2.0、Myeclipse 5.0、Tomcat 5.0.28(它用的是JRE1.4)和J 阅读全文
posted @ 2011-06-13 16:36 Credo Chen 阅读(6704) 评论(1) 推荐(0) 编辑
摘要: 转载自:http://blog.baigoocms.com/?p=1001 配置WEB.CONFIG复制XML代码保存代码2.创建模板页阅读代码编辑代码运行效果复制HTML代码保存代码生成时间:my_time作者: my_name替换的正文:my_body[ DllImport( "kernel32", EntryPoint="GetVersionEx" )]DllImportAttribute特性的公共字段如下: 1、CallingConvention 指示向非托管实现传递方法参数时所用的CallingConvention 值。 CallingConv 阅读全文
posted @ 2011-06-12 10:48 Credo Chen 阅读(237) 评论(0) 推荐(0) 编辑
无觅相关文章插件,快速提升流量