gimel_sh的博客
gimel_sh · 共 29 篇文章
git常用命令
远程仓库相关命令 检出仓库:$ git clone git://github.com/jquery/jquery.git 查看远程仓库:$ git remote -v 添加远程仓库:$ git remote add < 删除远程仓库:$ git remote rm 修改远程仓库:$ git remote set-url --push 拉取远程仓库:$ git pull 推送远程仓库:$ git push 2)分支(branch)操作相关命令 查看本地分支:$ git branch 查看远程分支:$ git branch -r 创建本地分支:$ git branch ----注意新分支创建后不…
2012-03-03 18:57 · git · 评论(0)
Web页面加载的ActiveX控件的模拟签名
makecert -sr LocalMachine -n "CN=MyCert" -$ commercial -ss MyCertStore -in MyCert -sv MyCert.pvk -a sha1 MyCert.cer cert2spc cert2spc MyCert.cer MyCert.spc pvk2pfx –pvk –pi –spc –pfx –po pvk2pfx –pvk MyCert.pvk –spc MyCert.spc –pfx MyCert.pfx signtool sign /f MyCert.pfx MyControl.cab
2012-02-17 12:46 · ActiveX · 评论(0)
javascript两个等于号与三个等于号
==先转换类型再比较,===先判断类型,如果不是同一类型直接为false。 ===表示恒等于,比较的两边要绝对的相同 alert(0 == ""); // true alert(0 == false); // true alert("" == false); // true alert(0 === ""); // false alert(0 === false); // false alert("" === false); // false
2012-02-14 13:52 · javascript · 评论(0)
Firefox plugin的生命周期
http://rintarou.dyndns.org/wp-content/uploads/2010/04/ditaa_plugin_life_cycle_80b848f0b61ce645dad1473308faa203.png
2012-02-13 12:51 · firefox · 评论(0)
ActiveX控件开发
主要参考:http://www.dotblogs.com.tw/regionbbs/archive/2010/11/15/developing.active.x.control.with.cs.part2.aspx
2012-02-12 12:06 · .NET · 评论(0)
Add permissions to add extra protocol handlers in Firefox
Type about:config into your location bar and hit enter. If you've never edited used about:config before, you'll see a warning. Click I'll be careful, I promise! This will bring you to the about:config window. In the filter field type gecko. Double click the first entry gecko.handlerService.allowReg…
2012-02-08 16:08 · firefox · 评论(0)
javascript-5种跳转页面的办法
<script language=”javascript” type=”text/javascript”> window.location.href=”login.jsp?backurl=”+window.location.href; </script> <script language=”javascript”> alert(”back”); window.history.back(-1); </script> <script language=”javascript”> window.navigate(”top.jsp”); </script> <script language=”Jav…
2012-02-08 11:19 · javascript · 评论(0)
java获取随机端口
ServerSocket s = new ServerSocket(0); System.out.println("listening on port: " + s.getLocalPort());
secureCRT下使用emacs注意
1.需要修改terminal->emulation->emacs 是的alt键有效 2.mapped keys勾选上backspace sends delete
2012-02-01 23:20 · emacs · 评论(0)
java集合类总结
1.Vector和HashTable是线程同步的(Synchronized)。性能上,ArrayList和HashMap分别比Vector和HashTable要好。 2.List、Set、Map是这个集合中最主要的三个接口。 List 和 Set继承自Collection接口。 Set不允许元素重复。HashSet和TreeSet是其两个主要的实现类。 List有序且允许元素重复。ArrayList、LinkedList和Vector是三个主要的实现类。 Map和COllection接口不同。Map是key对value的映射集合,其中key列就是一个集合。key不能重复,但是value可以重…
2012-02-01 15:57 · java · 评论(0)
java处理url加解密
1.加密 MessageDigest md = MessageDigest.getInstance("MD5"); byte[] byteKeyMd5 = md.digest(encryptKey.getBytes()); byte[] byteKey = new byte[24]; System.arraycopy(byteKeyMd5, 0, byteKey, 0, 16); System.arraycopy(byteKeyMd5, 0, byteKey, 16, 8); Key deskey = null; DESedeKeySpec spec = new DESedeKeySpec(…
2012-02-01 15:13 · java · 评论(0)
mysql查询所有表信息
1.显示所有的表信息 show tables; 2.显示某表中的所有字段信息 show full columns from 表名;
2012-02-01 12:09 · mysql · 评论(0)
emacs使用w3m上网
搞了半天,发现 Emacs-w3m of this version does not support Emacs 23; try the development version emacs23貌似不支持这个从ubuntu源里面下载的w3m饿。 对Emacs23.1版本,需要使用cvs版本,下载如下: cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m 下载完成后,将源码拷贝到/usr/local/src目录下, 然后进入emacs-w3m目录,进行如下操作: autoconf ./configure m…
emacs使用weibo
1)在.emacs中添加如下内容: ;;twitter (load-file "D:/work/emacs-23.3/plugin/xwl-twittering-mode/twittering-mode.el") (require 'twittering-mode) (setq twittering-use-master-password t) (setq twittering-allow-insecure-server-cert t) (setq twittering-oauth-use-ssl nil) (setq twittering-use-ssl nil) (twittering-…
2012-01-31 22:52 · emacs · 评论(0)