该文被密码保护。 阅读全文
posted @ 2013-03-24 19:14 leamiko 阅读(2) 评论(0) 推荐(0)
摘要: 我是ubuntu新手,最近看论坛帖子经常看到“终端”这个词,有点儿疑惑。1.在ubuntu下有个terminal程序(ctrl+alt+t)可以调出来;可以在里面运行程序,据说是基于shell的。2.我们还可以用ctrl+alt+F1/F2/F3/F4/F5/F6调出来另外一些终端,这些终端全是黑屏的,和上面的那个terminal貌似不一样。我的问题是:a. 1和2里的“终端”有区别吗?b. 2里面ctrl+alt+F7很特殊,它会回到图形界面来,而且在这个图形界面里可以看到ctrl+alt+T的那个终端。 ctrl+alt+F7和ctrl+alt+F1~F6一样也算终端吗?不胜感激额。 -- 阅读全文
posted @ 2013-03-24 19:12 leamiko 阅读(213) 评论(0) 推荐(0)
摘要: SSH分客户端openssh-client和openssh-server如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-serversudo apt-get install openssh-server然后确认sshserver是否启动了:ps -e |grep ssh如果看到sshd那说明ssh-server已经启动了。如果没有则可以这样启动:sudo /etc/init.d/ssh startssh-serv 阅读全文
posted @ 2013-03-24 19:11 leamiko 阅读(176) 评论(0) 推荐(0)
摘要: /* jQuery XXS Pub/Sub * @tdecs * Dual licensed under the MIT and GPL licenses */ (function ($, o) { o = $({}); $.subscribe = function(e, h) { o.on.call(o, e, h); }; $.unsubscribe = function(e, h) { o.off.call(o, e, h); }; $.publish = function(e, h) { o.trigger.call(o, e, h); }; }... 阅读全文
posted @ 2013-03-22 22:27 leamiko 阅读(134) 评论(0) 推荐(0)
摘要: View Code var Base = Backbone.View.extend({ initialize: function () { this._hello = "hello world!!"; console.log('Base::initialize'); }, events: { 'click .j-inherit-click': 'inheritClick', ... 阅读全文
posted @ 2013-03-12 13:03 leamiko 阅读(276) 评论(0) 推荐(0)
摘要: function removeByValue(arr, val) { for(var i=0; i<arr.length; i++) { if(arr[i] == val) { arr.splice(i, 1); break; } } return arr;}function removeByValue2(arr, val) { var tmpArr = []; for (var i = 0; i < arr.length; i++) { if (arr[i] !== val) ... 阅读全文
posted @ 2013-03-08 10:11 leamiko 阅读(324) 评论(0) 推荐(0)
摘要: https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txtswitchySharpautoproxy 阅读全文
posted @ 2013-03-07 10:19 leamiko 阅读(182) 评论(0) 推荐(0)
摘要: https://github.com/powmedia/backbone-deep-modelhttps://github.com/powmedia/backbone-formshttp://stackoverflow.com/questions/9135250/backbone-js-complex-modelvar Tag = Backbone.Model.extend({ defaults: { name: '' }, validate: function(atts){ if(!atts.name || atts.name.length < ... 阅读全文
posted @ 2013-02-27 23:33 leamiko 阅读(262) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-02-24 11:28 leamiko 阅读(7) 评论(0) 推荐(0)
摘要: 此方法在xp、window7下具有效果。 假设你要提取的flash在ppt中: 1、新建一个word文档(后缀是.doc,而不是.docx) 2、将待提取的ppt中的flash文件复制到步骤1中所建的word文档中。建议一个flash文件一个文档。 3、新建一个excel文档,快捷键[ALT+f11]调用出【Microsoft Visual Basic for Application】窗口... 阅读全文
posted @ 2013-01-27 19:37 leamiko 阅读(7997) 评论(1) 推荐(0)
document.getElementById('MySignature') && document.getElementById('MySignature').style.display = "none"; document.getElementById('MySignature') && document.getElementById('blog_post_info').style.display = "none";