码迷,mamicode.com
首页 >  
搜索关键字:ruby debian    ( 7102个结果)
basename/dirname 获取文件名/路径
http://ruby-doc.org/core-2.1.2/File.html#method-c-dirname(1)basename(file_name [, suffix] ) → base_nameReturns the last component of the filename give...
分类:其他好文   时间:2014-08-28 17:58:25    阅读次数:202
Python的包管理工具Pip
接触了Ruby,发现它有个包管理工具RubyGem非常好用,而且有非常完备的文档系统http://rdoc.info发现Python下也有相同的工具,包含easy_install和Pip。只是,我没有细看easy_install的方法,这就简单的介绍一下Pip的安装与使用:准备:$ curl -O ...
分类:编程语言   时间:2014-08-28 13:15:09    阅读次数:206
CentOS单独编译安装PHP gd库扩展
网站的第二台服务器跑的的环境主要是Python/Ruby,有时也需要简单跑跑PHP脚本,所以也安装了PHP,环境是Nginx+php-fpm,PHP是源码编译安装的,所以是最小化安装,甚至连mysqli扩展都没有。今天需要用到GD库,才发现没GD库环境,所以需要安装这个扩展。对付单个扩展,单独编译动...
分类:Web程序   时间:2014-08-28 11:22:14    阅读次数:252
ruby学习--block
1 #当前块 2 class Block 3 def a_method 4 return yield if block_given? 5 'no block' 6 end 7 end 8 obj=Block.new 9 puts "#{obj.a_m...
分类:其他好文   时间:2014-08-27 20:18:28    阅读次数:194
协程初探
文章出处:http://blog.csdn.net/lanphaday/archive/2010/03/19/5397038.aspx 协程,又称微线程和纤程等,据说源于 Simula 和 Modula-2 语言(我没有深究,有错请指正),现代编程语言基本上都有支持,比方 Lua、ruby 和最新的...
分类:其他好文   时间:2014-08-27 20:10:48    阅读次数:176
ruby学习--varaible
1 #全局变量2 $global_variable=103 class Class14 def print_global()5 puts "Global variable in Class1 is #{$global_variable}"6 end7 end8 cla...
分类:其他好文   时间:2014-08-27 20:08:28    阅读次数:197
debian yuan
debhttp://yunwei3/debian/squeezemainnon-freecontribdebhttp://yunwei3/debian/squeeze-proposed-updatesmainnon-freecontribdebhttp://yunwei3/debian-security/squeeze/updatesmainnon-freecontribdebhttp://yunwei3/debian-backports/squeeze-backportsmaindeb-srchttp://..
分类:其他好文   时间:2014-08-27 18:56:09    阅读次数:211
linux(debian)系统django配远程连接sqlserver数据库
费了将近一天时间,终于解决,记下来留给需要的人 需要安装的: python-odbc : https://github.com/mkleehammer/pyodbc 下载后install django-pyodbc : https://pypi.python.org/pypi/django-pyodbc 下载后install unixODBC:http://www.unixodb...
分类:数据库   时间:2014-08-27 18:45:58    阅读次数:434
CocoaPods安装与简单使用
1.MAC安装Ruby环境 1> 安装RVM 控制台命令:$curl –L https://get.rvm.io | bash –s stable$source ~/.rvm/scripts/rvm$rvm –v (查看版本,检查是否安装正确)2> 用rvm安装ruby环境$rvm install ...
分类:其他好文   时间:2014-08-27 18:23:48    阅读次数:217
Build a Custom Android Kernel Guide
1、package to install in ubuntu or Debian$ sudo apt-get install -ybuild-essential kernel-package libncurses5-dev bzip22、Prepare Kernel Source and excut...
分类:移动开发   时间:2014-08-27 16:20:00    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!