Home
Wade Ruby
Cancel

Whichtochoose,rubymotion,swiftorobjectc?

refer to: http://blog.motioninmotion.tv/is-rubymotion-suitable-for-client-work/ In RubyWeekly I saw a link to a discussion on Reddit that was getting some good attention, and it was titled "Is Ru...

Node中的contextscope(node Webkitcontext)

node 中,每段js 都会有自己的 context  . 这点理解起来跟ruby, raw html/js很不一样。 看看官方的说法: (https://github.com/rogerwang/node-webkit/wiki/Differences-of-JavaScript-contexts If the require() method (of Node.js mo...

Copyallfilesfromgemfoldertorailsfolder

$ cd <gem_folder> $ cp -r app config lib <rails_folder> 不过这个方法不够好,因为 script 目录下的文件容易被覆盖 ( local.yml, routes.rb 等) ,最好的办法还是让这个 gem 单独写个rake 任务,(例如: rake your_gem:override )  ( the b...

Rubymotion的坑:不稳定(isrubymotionstillnotsostable?)

refer to:  https://groups.google.com/forum/#!topic/rubymotion/x6-9c__IHH0, and http://www.mikekreuzer.com/2013/12/game-over-rubymotion.html and http://joshsymonds.com/blog/2013/06/26/why-im-...

候选人的选择:应届生v.s.社招生(refresh Graduatev.s.candidatewithxyearsexp)

我们组一直在招人。 理想的情况是:有着工作经验,勤奋好学,吃苦耐劳的精英。 但是随着面试的跟进,看法变了:一般看好应届生。 社招生平庸的太多。 1. 比较性格 (面对各种带有压力的提问,都可以很好的做回答。)我在非技术层面会问两个问题:  (1) 优酷的工作压力很大,很辛苦,很多人在加班,你对这个问题怎么看?  几乎所有应届生都说: “可以加班,年轻的时候就应该吃苦”。 ...

Rubyv.s.object C

refer to: http://www.adamjonas.com/blog/objective-c-for-rubyists/ 看看代码就知道了: # 为某个BUTTON设置文字: # Object C: API: - (void)setTitle:(NSString *)title forState:(UIControlState)state # 实际用法: [myButton s...

使用top命令时按模式查看命令(patternsfornamewhenusingtopcommand)

$ top -d 1 -p `pgrep -d, ruby` 上面的命令只查看当前系统中 的'ruby' 进程。

开发rubymotion必备工具——2(must Havelibrariesforrubymotion Part2)

refer to: http://blog.arkency.com/2014/07/one-ruby-to-rule-them-all/ Must-have-one SugarCube - even better syntax for RubyMotion BubbleWrap - a lot of utilities for managing most common pl...

Greplace详解(vimplugingreplaceintroduction)

greplace 是VIM程序员必备技能,可以帮我们批量查询和替换。 例如,查找当前 目录下的所有rb文件中的 'prefix' : # notice the "." before "-R' :Gsearch -F 'prefix' . -R --include=*rb 2 # Modify the contents of this buffer and then 3 # ...

Thin+rackup+yml的启动方式(thin+config.ru+thin.yml)

对于ruby-cas, 我们目前使用的方式是  thin + config.ru :  ( currently , we are using ruby-cas (rack) + thin ) 当前的启动方式是: (已经存在的config.ru 文件如下 )  ( current start command is as below: ) $ bundle ex...

开发rubymotion必备工具(must Havelibrariesforrubymotion)

refer to: http://stackoverflow.com/questions/24333751/what-are-must-have-libraries-for-rubymotion Things most people use: Bubblewrap motion-cocoapods afmotion (if you need networking ) motion-ho...

Delayed_job+god组合使用(usingdelayed_jobwithgod)

项目中用到了delayed_job 这个神器。  缺点是它有时候自己遇到 mysql_connection_error 就会关掉。  ( my project heavily used delayed_job, and we found it will stop if met some error or exceptions. and I want to restart ...

把ios的可读性发挥到极致——rubymotion Sugarcube

refer to: https://github.com/rubymotion/sugarcube ruby 这个语言就是把可读性发挥到了极致。  而 有追求的程序员都是追求极致的,所以又有了  active-support.  在 rubymotion中,大家延续了这样的风格:  sugarcube.  # 原始代码: UIApplic...

Bulkinsertdeleteinrails34(rails34中的批量删除)

批量删除: (bulk delete)  # if a plan has 100K target_urls: (如果一个plan 有 100K 个 target_urls ) # never use: (绝对不要这样做) #@plan.target_urls.clear # you should use: TargetUrl.delete_all(:plan_id =...

优先使用接口,还是优先复制代码?(coupling?v.s.copying)

今天遇到个问题:  ( today I met a problem: --- exactly, yesterday.) 有两个子系统: A , B。  我希望在A中使用B的一个既有的功能。 B中的这个功能,以接口的形式提供。  ( I have 2 systems: A and B. I want A has a function that B already ...

Rubymotion在运行时的过程分析:2.objectcinterface(rubymotionatrun Time:objectcinterface)

Object C 定义方法的例子: # define instance method @class Foo - (id)foo; @end # class method: @class Foo + (id)foo; @end Object C 定义一个方法:sharedInstanceWithObject:andObject @class Test + (id)sharedI...

Rails3.0压缩javascript和css(compresscssjsinrails3.0 )

压缩 javascript 和 css  参考 (refer to ): http://stackoverflow.com/questions/7112218/how-to-install-a-plugin-in-rails-3-getting-a-commands-is-not-a-module-typeerro/23507780#23507780 1. 编辑 Rakefil...

Rubymotion在运行时的过程分析:1.message(rubymotionatrun Time:message)

refer to: http://www.rubymotion.com/developer-center/guides/runtime/#_ios_and_os_x ruby 和 object c 都是受了smalltalk的极大影响。在语言构成上的也比较类型: 所有的类都是继承一个基本的类. single inheritance 等。 rubymotion 是使用了  obje...

Fromrails3torails4,set_table_name,set_primary_keyisdeprecated

RAILS3的两个方法在RAILS4 中用不了:  set_table_name, set_primary_key.  we should use #table_name = instead of #set_table_name.    otherwise you will get undefined method `set_primary_key...

Rubymotion极速入门(rubymotionguide)

想在 ios开发中用ruby  ?  很简单。用rubymotion. refer to: http://www.rubymotion.com/developer-center/guides/getting-started 1. 安装 xcode, 安装 command line tools 2. 安装 rubymotion (下载zip 文件,输入 注册码,安装) 3...