Jghost

jeiao, In me the tiger sniffs the rose !

导航

04 2014 档案

ubuntu Screen 的比较详细的命令
摘要:Linux Screen Commands For Developers转自:http://fosshelp.blogspot.com/2014/02/linux-screen-commands-for-developers.html大神的blog1)List all screen sessions... 阅读全文

posted @ 2014-04-30 10:22 Jghost 阅读(1892) 评论(0) 推荐(0) 编辑

ubuntu 14.04 键盘快捷键显示
摘要:安装完ubuntu14.04后 第一次登陆,会弹出键盘快捷键的一个大体预览, 也没有一个关闭按钮, 没看完就自动消失了.让其重现的方法:按住 super键 ,也就是键盘上的 win键 .键盘快捷键的界面就又弹出来了 阅读全文

posted @ 2014-04-24 10:54 Jghost 阅读(741) 评论(0) 推荐(0) 编辑

horizon 修改local的logging 配置
摘要:再部署完horizon的开发环境后,首先要做的就是修改下logging的输出.我用的开发软件是pycharm, 所以,为了方便在 console里看到输出.需要在/home/geiao/repo/horizon/openstack_dashboard/local/local_settings.py文... 阅读全文

posted @ 2014-04-23 10:57 Jghost 阅读(393) 评论(0) 推荐(0) 编辑

转:dashboard的简明教程
摘要:在网上看到一篇不错的dashboard入门blog,在此就不在copy,贴地址:http://www.open-open.com/lib/view/open1389792987430.html可以了解界面的布局以及horizon的一些简单知识 阅读全文

posted @ 2014-04-22 16:46 Jghost 阅读(345) 评论(0) 推荐(0) 编辑

ubuntu 14.04下 horizon openstack_dashboard 的开发环境搭建
摘要:序:公司要在openstack的基础上,做开发做产品,网上资料也不是很多,很多都是在来回copy,在此做个blog,慢慢更新,推动自己进步.首先老话题:开发环境的搭建.一个纯净的ubuntu系统requirement:gitpython-pip1.首先是安装上面的必要app2.选择代码位置,我是新建... 阅读全文

posted @ 2014-04-22 15:25 Jghost 阅读(653) 评论(0) 推荐(0) 编辑

ubuntu 命令的快捷启动
摘要:目前我知道的有三种方式第一种,在配置文件 .bashrc 中 配置alias ,追加到文件末尾就行如下:alias tmout='tail -f /usr/local/oakcloud/tomcat/apache-tomcat-6.0.37/logs/catalina.out 'alias tmst... 阅读全文

posted @ 2014-04-22 09:39 Jghost 阅读(304) 评论(0) 推荐(0) 编辑

ubuntu 14.04 unity 管理工具 unity-tweak-tool
摘要:安装方式:sudo apt-get updatesudo apt-get install unity-tweak-tool用于更改字体,修改状态,disable 亚马逊的搜索等 功能.很好用 阅读全文

posted @ 2014-04-21 14:15 Jghost 阅读(500) 评论(0) 推荐(0) 编辑

DNS in ubuntu 12.04
摘要:http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ 阅读全文

posted @ 2014-04-17 09:54 Jghost 阅读(125) 评论(0) 推荐(0) 编辑

Openstack Horizon and Django Compare the Working of authentication (Login)
摘要:horizon的登陆流程 ,一直没看懂 后来看到了这篇blog 才恍然大悟~~~ 感叹对django的了解还不是很深啊~~~http://fosshelp.blogspot.com/2014/01/openstack-horizon-and-django-compare.htmlcopy:Working of authentication (Login) in django==============================================1)site-packages/django/contrib/auth/forms.pyfrom django.contrib.au 阅读全文

posted @ 2014-04-12 11:12 Jghost 阅读(708) 评论(0) 推荐(0) 编辑

pycharm 配置虚拟开发环境
摘要:默认系统已经安装pycharmvirtualenvvirtualenvwrapperpycharm 默认的运行环境是系统自带的python2.6+的开发环境,不是我们想要的虚拟开发环境.此时我们需要增加interpreter 在pycharm的setting里面,具体操作:File ----- Setting ------Project Interpreter -----python interpreters :上面有选择 已经创建好的,删除以及创建一个新的local是地址,就是你要将这个虚拟开发环境保存的地方 一般在用户目录即可.openstack horizon 源代码开发的时候, 虚拟环 阅读全文

posted @ 2014-04-11 12:57 Jghost 阅读(1484) 评论(0) 推荐(0) 编辑

python 遍历指定文件夹下的所有文件内容
摘要:最近公司代码需要做版权审查需要一些代码,足足60页的word文档,如果一个一个文件的copy代码 就真是out,最近在学习python,就写了个python的脚本,方便上面操作。__author__ = 'jghost'import osfor root,dirs,files in os.walk('your source'): print root #path for name in files: if name.endswith('.java'): dic = open('/home/jghost/filefilter.txt' 阅读全文

posted @ 2014-04-03 15:42 Jghost 阅读(778) 评论(0) 推荐(0) 编辑

python -- why defined '__new__' and '__init__' all in a class
摘要:在学习openstack源码的时候发现一个类里面有'__new__' 和'__init__'两个构造,不知道什么原因,在stackoverflow中找到了满意的解答:粘贴解答至此:You can define either or both of__new__and__init__.__new__must return an object -- which can be a new one (typically that task is delegated totype.__new__), an existing one (to implement singlet 阅读全文

posted @ 2014-04-02 16:00 Jghost 阅读(197) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示