- 【47】3求1+2+3+...+n
西风胡杨的
剑指offer基类派生类
【47】3求1+2+3+…+n时间限制:1秒空间限制:32768K题目描述求1+2+3+…+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。牛客网题目练级点击这里VS2010代码:/方法三:静态函数指针#includeusingnamespacestd;typedefint(*fun)(int);intTerminator(i
- neo4j LOAD CSV用python导入数据方法
毛毛蹭蹭
pythonneo4j机器学习
neo4j的Cypher可以使用LOADCSV导入数据,但是文件过大会导致OOM,可以提前分割数据,也可以用程序分割好,让Cypher读#导入节点[]为要替换的文本LOADCSVWITHHEADERSFROM'[http地址或文件名,放入服务器的import中]'ASlineFIELDTERMINATOR'[csv分割线]'CREATE(n:[节点类名]{[节点属性名]:line.[列名],[节点
- 【Ubuntu 22.04】解决Ubuntu 22.04终端行距过大的问题
啵啵啵啵哲
ubuntulinux
在Ubuntu22.04中,许多用户都遇到了终端行距过大的问题,不论是使用GNOME终端还是Terminator,都存在这个困扰。这个问题导致显示的内容的行距很大,比如执行neofetch命令时,UbuntuLOGO被拉长。经过查询,发现这是由于vte3组件引起的,对应的issue可在此链接找到:issue。然而开发者并未提供修复该组件的方案。解决方法我们可以通过调整语言环境来解决这个问题。以下是
- AI创作经典科幻《终结者7》电影宣传片
AI电影院
AI电影终结者AI电影AI绘图
AI创作经典科幻《终结者7》电影宣传片ThefutureisthreatenedastheT-1000risesfromtheashesofSkynet.TheTerminator'slegacycontinuesinanewageofmachinesandmayhem.Thewaragainstthemachineswageson,astheresistancefightsforsurvival
- Linux Terminator工具: 保存窗口布局 & 执行默认启动指令
First Snowflakes
Tools编辑器
HowdoIgetTerminatortostartupwithmycustomlayout?-AskUbuntu
- 端口一览表 cmd netstat
iteye_20301
数据库运维shell
15=NETSTATPORT21=BladeRunner,DolyTrojan,Fore,FTPtrojan,InvisibleFTP,Larva,ebEx,WinCrash22=SSHPORT23=TinyTelnetServer25=ShtrilitzStealth,Terminator,WinPC,WinSpy,Kuang20.17A-0.30,Antigen,EmailPasswordSe
- 1.4 ROS集成开发环境搭建Terminator&VScode(自学二刷笔记)
Galaxy_1229
机器人c++python笔记
重要参考:课程链接:https://www.bilibili.com/video/BV1Ci4y1L7ZZ讲义链接:Introduction·Autolabor-ROS机器人入门课程《ROS理论与实践》零基础教程1.4ROS集成开发环境搭建和大多数开发环境一样,理论上,在ROS中,只需要记事本就可以编写基本的ROS程序,但是工欲善其事必先利其器,为了提高开发效率,可以先安装集成开发工具和使用方便的
- 主要关于运算符和表达式
学嵌入式好快乐
c语言linuxarmarm开发
1.计算机的思维(高内聚低耦合)---------培养清晰的运算思维准备数据(定义清晰‘类型’的变量)--------处理数据(分别整理所需数据,公式)-----------输出结果流程图:start(开始-----Data(准备数据)-----Process(处理数据)----Terminator(输出结果)编译时的问题:错误---语法错误;警告---语法不合适运行时的问题:逻辑问题---调整思
- 基于c++ boost库实现进程管理
weixin_43773499
c++boostlinuxc++ubuntu
基于c++boost库实现进程管理1.前言基于c++boost库与Terminator终端,实现启动进程、进程运行状态监听、自动重启进程、杀死进程、设置进程环境变量等基础功能。2.原理启动、杀死进程基于boost::process组件实现。非阻塞监听进程基于boost::asio、boost::process组件实现。设置进程环境变量基于boost::this_process、boost::pro
- ubuntu设置右键打开terminator、code
Jiqiang_z
开发工具ubuntulinux运维
前言:这里介绍一种直接右键打开本地目录下的terminator和vscode的方法。一:右键打开terminator1.安装terminatorsudoaptinstallterminator2.安装nautilus-actionsfilemanager-actionssudoapt-getinstallnautilus-actionsfilemanager-actions3.运行filemana
- Terminator 命令行终端
weixin_110
linuxlinux
安装sudoadd-apt-repositoryppa:gnome-terminator/ppa-ysudoaptupdatesudoaptinstallterminator设置为默认gsettingssetorg.gnome.desktop.default-applications.terminalexec/usr/bin/terminatorgsettingssetorg.gnome.desk
- ubuntu安装超级终端(实现分屏功能)
君莫笑lucky
ubuntulinux运维
1.安装sudoaptinstallterminator2.添加到收藏夹显示应用程序—>搜索terminator—>右击选择添加到收藏夹3.Terminator常用快捷键第一部分:关于在同一个标签内的操作Alt+Up//移动到上面的终端Alt+Down//移动到下面的终端Alt+Left//移动到左边的终端Alt+Right//移动到右边的终端Ctrl+Shift+O//水平分割终端Ctrl+Sh
- Terminator’s-gtk3使用技巧
瓶子里肥皂泡
我的博客linux
Terminator是一个基于GNOME终端的GTK应用程序,使用了VTE3(GTK3虚拟终端仿真器小部件)。它可以在同一窗口中提供多个终端会话¹。以下是一些常用的Terminator快捷键:Alt+Up:移动到上面的终端Alt+Down:移动到下面的终端Alt+Left:移动到左边的终端Alt+Right:移动到右边的终端Ctrl+Shift+O:水平分割终端Ctrl+Shift+E:垂直分割终
- 【工作日志】1月6日——LLVM
被制作时长两年半的个人练习生
编程语言c++LLVM编译
继续学习LLVM笔记。SSALLVM的新版本好像将phi替换成了select,有必要研究一下二者的区别。TransformsADCE查询一下controldependence和Terminator分别是什么意思。DenseMapSmallPtrSet,定义该类使用了模板,其中第一个参数表示Set中的元素类型,第二个参数表示Set的大小,使用下述代码创建了一个类型为BasicBlock,大小为16的
- terminator 配置
温小二的徐凤年
java数据库服务器
安装好后就配置,命令如下,如果没有就新建sudogedit~/.config/terminator/config内容如下[global_config]handle_size=-3title_transmit_fg_color="#000000"title_transmit_bg_color="#3e3838"inactive_color_offset=1.0enabled_plugins=Cust
- ubuntu terminator 非常好用的护眼配置
温小二的徐凤年
ubuntuterminator
安装sudoaptinstallterminator配置文件:sudogedit~/.config/terminator/config(如果没有就创建)配置如下:[global_config]handle_size=-3title_transmit_fg_color="#000000"title_transmit_bg_color="#3e3838"inactive_color_offset=1.
- ROS入门(三)——VSCode安装和运行(c/python)
Netceor
ROS入门VSCodeubunturos
所用的学习链接:【奥特学园】ROS机器人入门课程《ROS理论与实践》零基础教程P23-29【以上视频笔记见http://www.autolabor.com.cn/book/ROSTutorials/】一、安装多窗口终端在ROS中,需要频繁的使用到终端,且可能需要同时开启多个窗口,为了方便操作而下载:Terminator安装过程和使用方式详见Terminal终端终结者——安装和使用快捷键二、安装VS
- ROS学习笔记(七)---参数服务器
lyx4949
ROS学习ros
ROS学习笔记文章目录01.ROS学习笔记(一)—Linux安装VScode02.ROS学习笔记(二)—使用VScode开发ROS的Python程序(简例)03.ROS学习笔记(三)—好用的终端Terminator04.ROS学习笔记(四)—使用VScode启动launch文件运行多个节点05.ROS学习笔记(五)—话题发布06.ROS学习笔记(六)—服务通信机制1.参数服务器是什么参数服务器是R
- 重装linux怎么安装软件,重装linux系统时,安装软件的步骤记录
欧弟17600937855
重装linux怎么安装软件
安装系统安装好elementaryOS5.0juno//下载地址https://elementary.io安装软件下载浏览器:我安装的是opera浏览器//下载地址https://www.opera.com/zh-cn/computer/thanks?partner=www&par=id=46491%26location=421&gaprod=opera安装terminator终端sudoapti
- 安装evo导致ubuntu无法打开software-center、terminator的解法
Optimization
参考资料:[1]https://blog.csdn.net/junbujianwpl/article/details/51107345原因:即ubuntu下有多个版本python共存时,默认使用的Python版本还是保持原样,不能修改为最新的python版本。若修改为最新版本,原有依赖旧版本python的应用可能会找不到相应的包从而导致出错。解决方案:将python链接默认指向Python2.7版
- ROS开发(ubuntu)笔记·1
嘻·嘻
c++ubuntu
学习网址:Introduction·GitBook(autolabor.com.cn)b站:【奥特学园】ROS机器人入门课程《ROS理论与实践》零基础教程_哔哩哔哩_bilibili创建一个ROSWorkspace小笔记(Terminator)Launch文件ROS文件系统相关命令ROS计算图创建一个ROSWorkspace的简单方法:mkdir-p~/catkin_ws/src(在/home/自
- ROS集成开发环境的搭建
小孟不会嵌入式
rospythonc++嵌入式
目录一、安装终端二、安装VScode1、安装2、vscode集成ROS插件三、launch文件示例实现运行launch文件一、安装终端sudoaptinstallterminatorTerminator常用快捷键Alt+Up//移动到上面的终端Alt+Down//移动到下面的终端Alt+Left//移动到左边的终端Alt+Right//移动到右边的终端Ctrl+Shift+O//水平分割终端Ctr
- git之eclipse configure upstream for push and pull是什么时候意思
iszengmh
参考链接(如有侵权立即删除)Gitbranchupstream——tterminator正文建立本地分支与远程分支的映射关系(或者为跟踪关系track)。这样使用gitpull或者gitpush时就不必每次都要指定从远程的哪个分支拉取合并和推送到远程的哪个分支了。
- swift-基础
彭同学她同桌
swiftssh服务器
print区别print(1,2,3,separator:"-",terminator:"\n")//表示用-来分割//1-2-3//terminator表示用\n作为终止符vara="a",b="b"print(a+b)//abprint("\(a)前面是a变量\(b)后面是b变量")变量varname="Bob"type(of:x)//获取x的类型name.description//Bob返回
- Linux系统环境配置指南
编程流觞
linuxubuntu
目录一、系统1)Linux2)ROS二、软件1)Sogou2)Google3)VScode4)RoboWareStudio5)Typora三、配置1)ntpdate2)zsh3)Terminator$安装配置Linux系统=疯狂碰壁//整过的人都懂几十次了也算有些经验了,正好笔者要重新安装配置一次,这里就同时做一下记录总结。网上教程比较多,笔者仅进行整理,未引用出处的地方,还请海涵~一、系统1)L
- Linux终端与交互式Bash
红色小小螃蟹
linuxbash运维
常用的Linux终端GNOMETerminal:GNOME桌面环境下的默认终端程序,支持多个选项卡和配置。Konsole:KDE桌面环境下的默认终端程序,提供了丰富的功能和选项。Terminator:开源的终端程序,支持多个可调整大小和布局的终端。lxterminal(LXDE标配):是LXDE桌面环境下的默认终端程序.LXTerminal相对其他终端程序比较简单和灵活,依赖少,轻量级.lxter
- Terminator终端
计算机CV民工
ROSros
Terminator终端terminator快捷键sudoaptinstallterminator使用ctrl+alt+t开启终端terminator快捷键EOW都是ctrl+shift结合alt+方向键,为切换焦点e分屏失效的解决方案(原因是快捷键占有问题)ibus-setup将表情符号注释就行了可以左右分屏了
- C++ Prime Plus 笔记
独孤小hi
笔记收录c++
2020/09/12P1-P36C++源文件必须使用正确后缀,这种信息将告知编译器,如果UNIX编译器显示“badmagicnumber”则表明后缀不正确UNXI下编译多个源码文件时,编译器不会删除目标代码文件(.o)C++对大小写敏感C++使用分号作为终止符(terminator),是语句的结束标记,是语句的组成部分,不能省略形参agrument,实参parameter在C语言中,省略返回类型相
- 安装终端 ·Terminator
非常颜色
Linux操作系统物联网ubuntulinux运维
安装终端在ROS中,需要频繁的使用到终端,且可能需要同时开启多个窗口,推荐一款较为好用的终端:**Terminator。**效果如下:1.安装sudoaptinstallterminator2.添加到收藏夹显示应用程序—>搜索terminator—>右击选择添加到收藏夹3.Terminator常用快捷键第一部份:关于在同一个标签内的操作Alt+Up//移动到上面的终端Alt+Down//移动到下面
- ubuntu apt-get update 错误
uurr
不知从何时起,ubuntu更新总是报错,一直没理会,直到软件中心不能下载应用,故这里不说原因,只写简明的解决方法,不同的报错信息不同,不可原班照抄,我的系统是ubuntu18.04对应的错误如下:错误:16http://ppa.launchpad.net/gnome-terminator/ppa/ubuntubionicRelease404NotFound[IP:91.189.95.8380]错误
- Java开发中,spring mvc 的线程怎么调用?
小麦麦子
springmvc
今天逛知乎,看到最近很多人都在问spring mvc 的线程http://www.maiziedu.com/course/java/ 的启动问题,觉得挺有意思的,那哥们儿问的也听仔细,下面的回答也很详尽,分享出来,希望遇对遇到类似问题的Java开发程序猿有所帮助。
问题:
在用spring mvc架构的网站上,设一线程在虚拟机启动时运行,线程里有一全局
- maven依赖范围
bitcarter
maven
1.test 测试的时候才会依赖,编译和打包不依赖,如junit不被打包
2.compile 只有编译和打包时才会依赖
3.provided 编译和测试的时候依赖,打包不依赖,如:tomcat的一些公用jar包
4.runtime 运行时依赖,编译不依赖
5.默认compile
依赖范围compile是支持传递的,test不支持传递
1.传递的意思是项目A,引用
- Jaxb org.xml.sax.saxparseexception : premature end of file
darrenzhu
xmlprematureJAXB
如果在使用JAXB把xml文件unmarshal成vo(XSD自动生成的vo)时碰到如下错误:
org.xml.sax.saxparseexception : premature end of file
很有可能时你直接读取文件为inputstream,然后将inputstream作为构建unmarshal需要的source参数。InputSource inputSource = new In
- CSS Specificity
周凡杨
html权重Specificitycss
有时候对于页面元素设置了样式,可为什么页面的显示没有匹配上呢? because specificity
CSS 的选择符是有权重的,当不同的选择符的样式设置有冲突时,浏览器会采用权重高的选择符设置的样式。
规则:
HTML标签的权重是1
Class 的权重是10
Id 的权重是100
- java与servlet
g21121
servlet
servlet 搞java web开发的人一定不会陌生,而且大家还会时常用到它。
下面是java官方网站上对servlet的介绍: java官网对于servlet的解释 写道
Java Servlet Technology Overview Servlets are the Java platform technology of choice for extending and enha
- eclipse中安装maven插件
510888780
eclipsemaven
1.首先去官网下载 Maven:
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.2.3-bin.tar.gz
下载完成之后将其解压,
我将解压后的文件夹:apache-maven-3.2.3,
并将它放在 D:\tools目录下,
即 maven 最终的路径是:D:\tools\apache-mave
- jpa@OneToOne关联关系
布衣凌宇
jpa
Nruser里的pruserid关联到Pruser的主键id,实现对一个表的增删改,另一个表的数据随之增删改。
Nruser实体类
//*****************************************************************
@Entity
@Table(name="nruser")
@DynamicInsert @Dynam
- 我的spring学习笔记11-Spring中关于声明式事务的配置
aijuans
spring事务配置
这两天学到事务管理这一块,结合到之前的terasoluna框架,觉得书本上讲的还是简单阿。我就把我从书本上学到的再结合实际的项目以及网上看到的一些内容,对声明式事务管理做个整理吧。我看得Spring in Action第二版中只提到了用TransactionProxyFactoryBean和<tx:advice/>,定义注释驱动这三种,我承认后两种的内容很好,很强大。但是实际的项目当中
- java 动态代理简单实现
antlove
javahandlerproxydynamicservice
dynamicproxy.service.HelloService
package dynamicproxy.service;
public interface HelloService {
public void sayHello();
}
dynamicproxy.service.impl.HelloServiceImpl
package dynamicp
- JDBC连接数据库
百合不是茶
JDBC编程JAVA操作oracle数据库
如果我们要想连接oracle公司的数据库,就要首先下载oralce公司的驱动程序,将这个驱动程序的jar包导入到我们工程中;
JDBC链接数据库的代码和固定写法;
1,加载oracle数据库的驱动;
&nb
- 单例模式中的多线程分析
bijian1013
javathread多线程java多线程
谈到单例模式,我们立马会想到饿汉式和懒汉式加载,所谓饿汉式就是在创建类时就创建好了实例,懒汉式在获取实例时才去创建实例,即延迟加载。
饿汉式:
package com.bijian.study;
public class Singleton {
private Singleton() {
}
// 注意这是private 只供内部调用
private static
- javascript读取和修改原型特别需要注意原型的读写不具有对等性
bijian1013
JavaScriptprototype
对于从原型对象继承而来的成员,其读和写具有内在的不对等性。比如有一个对象A,假设它的原型对象是B,B的原型对象是null。如果我们需要读取A对象的name属性值,那么JS会优先在A中查找,如果找到了name属性那么就返回;如果A中没有name属性,那么就到原型B中查找name,如果找到了就返回;如果原型B中也没有
- 【持久化框架MyBatis3六】MyBatis3集成第三方DataSource
bit1129
dataSource
MyBatis内置了数据源的支持,如:
<environments default="development">
<environment id="development">
<transactionManager type="JDBC" />
<data
- 我程序中用到的urldecode和base64decode,MD5
bitcarter
cMD5base64decodeurldecode
这里是base64decode和urldecode,Md5在附件中。因为我是在后台所以需要解码:
string Base64Decode(const char* Data,int DataByte,int& OutByte)
{
//解码表
const char DecodeTable[] =
{
0, 0, 0, 0, 0, 0
- 腾讯资深运维专家周小军:QQ与微信架构的惊天秘密
ronin47
社交领域一直是互联网创业的大热门,从PC到移动端,从OICQ、MSN到QQ。到了移动互联网时代,社交领域应用开始彻底爆发,直奔黄金期。腾讯在过去几年里,社交平台更是火到爆,QQ和微信坐拥几亿的粉丝,QQ空间和朋友圈各种刷屏,写心得,晒照片,秀视频,那么谁来为企鹅保驾护航呢?支撑QQ和微信海量数据背后的架构又有哪些惊天内幕呢?本期大讲堂的内容来自今年2月份ChinaUnix对腾讯社交网络运营服务中心
- java-69-旋转数组的最小元素。把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个排好序的数组的一个旋转,输出旋转数组的最小元素
bylijinnan
java
public class MinOfShiftedArray {
/**
* Q69 旋转数组的最小元素
* 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个排好序的数组的一个旋转,输出旋转数组的最小元素。
* 例如数组{3, 4, 5, 1, 2}为{1, 2, 3, 4, 5}的一个旋转,该数组的最小值为1。
*/
publ
- 看博客,应该是有方向的
Cb123456
反省看博客
看博客,应该是有方向的:
我现在就复习以前的,在补补以前不会的,现在还不会的,同时完善完善项目,也看看别人的博客.
我刚突然想到的:
1.应该看计算机组成原理,数据结构,一些算法,还有关于android,java的。
2.对于我,也快大四了,看一些职业规划的,以及一些学习的经验,看看别人的工作总结的.
为什么要写
- [开源与商业]做开源项目的人生活上一定要朴素,尽量减少对官方和商业体系的依赖
comsci
开源项目
为什么这样说呢? 因为科学和技术的发展有时候需要一个平缓和长期的积累过程,但是行政和商业体系本身充满各种不稳定性和不确定性,如果你希望长期从事某个科研项目,但是却又必须依赖于某种行政和商业体系,那其中的过程必定充满各种风险。。。
所以,为避免这种不确定性风险,我
- 一个 sql优化 ([精华] 一个查询优化的分析调整全过程!很值得一看 )
cwqcwqmax9
sql
见 http://www.itpub.net/forum.php?mod=viewthread&tid=239011
Web翻页优化实例
提交时间: 2004-6-18 15:37:49 回复 发消息
环境:
Linux ve
- Hibernat and Ibatis
dashuaifu
Hibernateibatis
Hibernate VS iBATIS 简介 Hibernate 是当前最流行的O/R mapping框架,当前版本是3.05。它出身于sf.net,现在已经成为Jboss的一部分了 iBATIS 是另外一种优秀的O/R mapping框架,当前版本是2.0。目前属于apache的一个子项目了。 相对Hibernate“O/R”而言,iBATIS 是一种“Sql Mappi
- 备份MYSQL脚本
dcj3sjt126com
mysql
#!/bin/sh
# this shell to backup mysql
#
[email protected] (QQ:1413161683 DuChengJiu)
_dbDir=/var/lib/mysql/
_today=`date +%w`
_bakDir=/usr/backup/$_today
[ ! -d $_bakDir ] && mkdir -p
- iOS第三方开源库的吐槽和备忘
dcj3sjt126com
ios
转自
ibireme的博客 做iOS开发总会接触到一些第三方库,这里整理一下,做一些吐槽。 目前比较活跃的社区仍旧是Github,除此以外也有一些不错的库散落在Google Code、SourceForge等地方。由于Github社区太过主流,这里主要介绍一下Github里面流行的iOS库。 首先整理了一份
Github上排名靠
- html wlwmanifest.xml
eoems
htmlxml
所谓优化wp_head()就是把从wp_head中移除不需要元素,同时也可以加快速度。
步骤:
加入到function.php
remove_action('wp_head', 'wp_generator');
//wp-generator移除wordpress的版本号,本身blog的版本号没什么意义,但是如果让恶意玩家看到,可能会用官网公布的漏洞攻击blog
remov
- 浅谈Java定时器发展
hacksin
java并发timer定时器
java在jdk1.3中推出了定时器类Timer,而后在jdk1.5后由Dou Lea从新开发出了支持多线程的ScheduleThreadPoolExecutor,从后者的表现来看,可以考虑完全替代Timer了。
Timer与ScheduleThreadPoolExecutor对比:
1.
Timer始于jdk1.3,其原理是利用一个TimerTask数组当作队列
- 移动端页面侧边导航滑入效果
ini
jqueryWebhtml5cssjavascirpt
效果体验:http://hovertree.com/texiao/mobile/2.htm可以使用移动设备浏览器查看效果。效果使用到jquery-2.1.4.min.js,该版本的jQuery库是用于支持HTML5的浏览器上,不再兼容IE8以前的浏览器,现在移动端浏览器一般都支持HTML5,所以使用该jQuery没问题。HTML文件代码:
<!DOCTYPE html>
<h
- AspectJ+Javasist记录日志
kane_xie
aspectjjavasist
在项目中碰到这样一个需求,对一个服务类的每一个方法,在方法开始和结束的时候分别记录一条日志,内容包括方法名,参数名+参数值以及方法执行的时间。
@Override
public String get(String key) {
// long start = System.currentTimeMillis();
// System.out.println("Be
- redis学习笔记
MJC410621
redisNoSQL
1)nosql数据库主要由以下特点:非关系型的、分布式的、开源的、水平可扩展的。
1,处理超大量的数据
2,运行在便宜的PC服务器集群上,
3,击碎了性能瓶颈。
1)对数据高并发读写。
2)对海量数据的高效率存储和访问。
3)对数据的高扩展性和高可用性。
redis支持的类型:
Sring 类型
set name lijie
get name lijie
set na
- 使用redis实现分布式锁
qifeifei
在多节点的系统中,如何实现分布式锁机制,其中用redis来实现是很好的方法之一,我们先来看一下jedis包中,有个类名BinaryJedis,它有个方法如下:
public Long setnx(final byte[] key, final byte[] value) {
checkIsInMulti();
client.setnx(key, value);
ret
- BI并非万能,中层业务管理报表要另辟蹊径
张老师的菜
大数据BI商业智能信息化
BI是商业智能的缩写,是可以帮助企业做出明智的业务经营决策的工具,其数据来源于各个业务系统,如ERP、CRM、SCM、进销存、HER、OA等。
BI系统不同于传统的管理信息系统,他号称是一个整体应用的解决方案,是融入管理思想的强大系统:有着系统整体的设计思想,支持对所有
- 安装rvm后出现rvm not a function 或者ruby -v后提示没安装ruby的问题
wudixiaotie
function
1.在~/.bashrc最后加入
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
2.重新启动terminal输入:
rvm use ruby-2.2.1 --default
把当前安装的ruby版本设为默