-
[Ruby/Rails] java.lang.OutOfMemoryError: PermGen spac 错误
java.lang.OutOfMemoryError:PermGenspac异常java.lang.OutOfMemoryError:Javaheapspace解释:Heapsize设置JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存空间的设置.JVM在启动的时候会自动设置Heaps...
119
热度 -
[Ruby/Rails] Error解决:Property's synthesized getter follows Cocoa naming convention for returning 'owned'
Error解决:Property'ssynthesizedgetterfollowsCocoanamingconventionforreturning'owned'在项目中定义了以new开头的textField,结果报错:先看我的源码:#import<UIKit/UIK...
176
热度 -
[Ruby/Rails] 使用XCode6打开项目以后再用XCode5出现的有关问题fatal error: malformed or corrupted AST file: 'Unable to load module
使用XCode6打开项目以后再用XCode5出现的问题fatalerror:malformedorcorruptedASTfile:'Unabletoloadmodule使用不同版本的XCode出现的问题:fatalerror:malformedorcorruptedASTfile:'Una...
173
热度 -
[Ruby/Rails] 类的相互依赖以致StackOverflowError
类的相互依赖导致StackOverflowErrorpublicclassSchoolServiceImpl{ privatestaticSchoolServiceImplinstance=newSchoolServiceImpl(); privatestaticClassServiceImplcl...
142
热度 -
[Ruby/Rails] [Ruby]How to create singleton class
[Ruby]Howtocreatesingletonclass?Singletonisonedesignpatterninthesoftwareengineering.Rubyhasitsownspecialfeaturetodeclaresingletonclass.Iwilldemonstrat...
696
热度 -
[Ruby/Rails] ruby学习 - 循环
ruby学习--循环这篇文章主要介绍了Ruby简明教程之循环语句介绍,非常简洁的讲解,可以作为语法备忘,需要的朋友可以参考下循环结构在编程语言中是不可或缺的,所以Ruby中的循环也有其自定义的规则。而我们关注循环结构,要知道两个因素:1)循环的条件;2)循环执行的内容Ruby有一些方式来实现循环结构...
699
热度 -
[Ruby/Rails] ruby学习笔记二
ruby学习笔记2ruby学习笔记2?构造方法initializeRuby创建对象时通过Ruby.new方法,若传递参数实际上是传递给了initialize方法?classTest?definitialize(name,age,phone)??@name=name??@age=age??@phone...
137
热度 -
[Ruby/Rails] ruby学习笔记1-基础懂得
ruby学习笔记1---基础了解ruby学习笔记?1、命名约定a.局部变量、方法参数、方法名称都必须以小写字母或下划线开始。b.类名称、模块名称和常量名称都必须以大写字母开始。c.全局变量前缀$,类变量前缀@@,实例变量前缀@d.从初始字符之后开始,名称可以是字母、数字、下划线的任意组合([emai...
93
热度 -
[Ruby/Rails] 关于运行rails s时不小心用了ctrl+z怎么处理
关于运行railss时不小心用了ctrl+z怎么办?小弟新手。刚刚在linux中装载了rubyrails运行时不小心用了ctrl+z然后进程就不能运行了!别人教我杀进程!可是不会!有哪位大神可以教教小弟啊!感激不尽!------解决方案--------------------我知道的就只有杀进程了,...
87
热度 -
[Ruby/Rails] 使用milang报错:LookupError: unknown encoding: idna
使用milang出错:LookupError:unknownencoding:idna今天同事安装了milang,结果发现如下出错:Traceback(mostrecentcalllast):File"F:\vmid.py",line11,in<module>vmid...
83
热度 -
[Ruby/Rails] Error creating bean with name 'menuController' Injection of autowired dependency…
Errorcreatingbeanwithname'menuController':Injectionofautowireddependency……出现了一大串错误,Errorcreatingbeanwithname'userController':Injectionofautowi...
581
热度 -
[Ruby/Rails] hadoop 出现FATAL conf.Configuration: error parsing conf file,错误
hadoop出现FATALconf.Configuration:errorparsingconffile,异常FATALconf.Configuration:errorparsingconffile:com.sun.org.apache.xerces.internal.impl.io.Malform...
526
热度 -
[Ruby/Rails] error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (二)'
error:'Can'tconnecttolocalMySQLserverthroughsocket'/var/lib/mysql/mysql.sock'(2)'[[email protected]~]#/usr/bin/mysqladmin-uro...
175
热度 -
[Ruby/Rails] ruby学习笔记-循环结构
ruby学习笔记--循环结构一、循环结构1.????for…in语句:Ruby提供的for...in语句主要用于迭代数组和Hash对象中的元素,与其它语言的for语句有一定的差距,语法格式:???????forval??in??Array|Hash|Range[do]??????????????#c...
84
热度 -
[Ruby/Rails] ruby学习笔记-String
ruby学习笔记--String字符串(String)1.创建字符串???????在Ruby中可以使用单引号和双引号两种方法来创建一个字符串。但是使用这两种方式创建特殊字符串时,效果有很大区别。???????双引号创建字符串:Ruby会对字符串中的转义字符和特殊字符进行替换;???????单引号创建...
101
热度 -
[Ruby/Rails] rubygems.org guides 通译三(第一个gem)
rubygems.orgguides翻译三(第一个gem)目录:1.简介2.你的第一个gem3.载入跟多的文件4.加入扩展5.测试,测试,测试6.文档化你的code7.总结
277
热度 -
[Ruby/Rails] 日积月累:配置SDK路径异常(An error occurred while automatically activating bundle com.android.ide.eclipse.adt)
日积月累:配置SDK路径错误(Anerroroccurredwhileautomaticallyactivatingbundlecom.android.ide.eclipse.adt)在进行Android应用的开发过程中,有时候在配置SDK路径的时候(Windows->Preferences-...
213
热度 -
[Ruby/Rails] ubuntu下,创办ruby环境时出现 checking for Magick-config. no
ubuntu下,创建ruby环境时出现checkingforMagick-config...no解决:sudoapt-getinstalllibmagickcore-devlibmagickwand-dev
180
热度 -
[Ruby/Rails] insmod: error inserting 'hello.ko' -一 Invalid module format
insmod:errorinserting'hello.ko':-1Invalidmoduleformat在学习编写linux驱动程序的时候,一般都是从写一个helloworld的模块开始。但是在编译完成后,进行模块加载的时候,有时会出现如下错误:insmod:errorinsert...
331
热度 -
[Ruby/Rails] error brokencount 零 ubuntu 12.04
errorbrokencount0ubuntu12.04系统出现错误提示:errorbrokencount0ubuntu12.04。解决方案如下:1:sudoapt-get-f?install?通过执行这一步找到apt安装包中的错误依赖的包。我的提示信息如下:Readingpackagelists....
88
热度