Home
Wade Ruby
Cancel

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...

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...

Todo写个rails入门教程(railstutorial)

现有的网上教程都不太好啊。。。

总有语言想一统江湖(historyofcross Platformlanguages)

程序世界就好比一个江湖。  每个语言都是一个门派。 C/C++ 就是 少林派。 Java是武当派。 .NET是峨眉派。 还有PHP, RUBY, ERLANG, GO, NODEJS..。。python.... 每个门派的人,都希望自己的武功能到哪里都是老大。 程序世界也是如此。 做JAVA的人,希望IOS,BLACKBERRY 也用JAVA开发。 做C/C++的人,希望网页也用C...

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...

Eclispe系列(radrails,titanium,adt,aptana..)的快捷键shortcuts

快速打开文件: ctrl + shift + r ( vim : ctrl + t)快速打开之前的文件: ctrl + shift + e , ctrl + e ( vim: ctrl + e )快速切换窗口 : ctrl + f7查找: ctrl + h代码格式化: ctrl + shift + f跳到上一次的位置: alt + left跳到前一次的位置: ...

Mobileapp开发工具介绍——不仅仅只有android+ios(codinglanguagesbeyondandroidandios)

refer to:  1. http://altabel.wordpress.com/2013/04/01/what-mobile-framework-to-choose-phonegap-sencha-titanium-jquery-mobile, 2. Why I loved building Basecamp for iPhone in RubyMoti...

使用rspec的几个注意事项(tipsusingrspecinrails4)

1. 务必使用  $ rails generate rspec:install, 会生成 一个 spec_helper 和一个 rails_helper, 不要改动他们 2. 务必修改 rails帮你生成好的  rspec文件。  把第一行的 spec_helper 改成 rails_helper # require 'spec_helper' requi...

几个mobiledevelopment非常重要的技术(importantdevelopmenttools)

titanium : 多平台下统一开发的工具。 http://www.appcelerator.com/titanium/ rubymotion: 使用ruby开发 ios app + android app http://www.rubymotion.com/getting-started/ 想想我就想笑了:)  

Rubymotion的入门知识点

1。 有个 app_delegate. 作为程序入口 2. 在 app_delegate中,要有个rootview controller. 3. 每个 view controller, 都要继承 UIViewController.  看到 下面的代码,我想说:   1 class TapController < UIViewController 2 ...

关于前端开发一些利器。(sometoolsforjavascriptdevelopment)

Bower (http://bower.io/) : 帮我们下载某个JS插件的各种依赖包。 相当于 ruby中的 bundler. 省得我们为了安装某个JS 插件而手动下载各个第三方js 文件了。 而且可以达到最好的兼容性。 Grunt: (http://gruntjs.com/): JS中的自动化工具,帮我们一键完成各种操作 (运行单元测试, 清理临时文件, 生成压缩后的J...

Rails4中使用cache_action,cache_page

TODO: 尚未测试。。。不知道是否需要配置 nginx .... 如果是那样的话速度估计会很快。 refer to: https://github.com/rails/actionpack-page_caching cache_action一直是接口开发的神器, 但是在rails4 中用法略有不同。 1. in your Gemfile:   gem 'actionp...

Rails Rspec 在rails项目中增加rspec(addrspectorailsandtestlibfiles)

1. add to Gemfile: # Gemfile: gem 'rspec-rails', '~> 3.0.0' 然后运行: $ bundle exec rails generate rspec:install 记得要把生成的.rspec 文件做个修改,删掉 # .rspec file: --color # NO --warning, --require spec_hel...

拯救腐朽项目的步骤(stepstosaveafallenproject)

在搭建环境的过程中: 1. 没有文档。 不知道如何在本地搭建环境 目前: 所有的开发都是直接把代码'dui3'到生产服务器上。 在钢丝上敲代码。    要安装哪些lib, 哪些 dependency, 哪些数据库,都要写清楚。   比如:  项目A,依赖了3中DB: mysql, mongodb, redis.   2. 没有本地数...

使table可以排序(sorttableinrails)

TODO: 把它做成一个gem   1. 要有这段js: this.make_table_sortable = function(table_css_selector) { var base_index, entity_class, this_table; this_table = $(table_css_selector); base_i...

Rails Jquery中的callback(callbackinrails Jquery(ujs))

如下: (refer to : http://stackoverflow.com/questions/13224482/rails-confirm-modifier-callback ) <%= coffee_script_tag do %> $(document).on 'confirm:complete', (e, answer) -> if(an...

很奇怪的databaseconfigurationdoesnotspecifyadapter(由于多定义了多余的activerecord造成的)

I met this problem due to the 'multiple database support issue'. In my `app/model` folder, there is a file defined a redundant database connection: class CacheCleanerActiveRecord < ActiveRecord...

Rails部署时gemfile相关的内容(gemfilesrelatedstuffwhendeployingrailsapptoproduction)

1. 最好指定好具体的版本, .e.g:  (give the explicit version )  source 'http://ruby.taobao.org' gem 'rails', '4.0.0' gem 'uglifier', '2.4.0' gem 'coffee-rails', '4.0.1' 2. $ bundle package --all 3....

Rails4strongparameter Permitandrequire

新上手  rails4的同学可能不知道如何获取 request中的params. 其实很简单: rails 2,3:   my_name  =  params[:name] rails4 :  需要两行代码: params.permit(:name) my_name = params[:name] (切记,是需要用两行代码) ,这样的写法是错...

Rubyonrails是web开发王道啊亲!

22分钟从0 搭建环境, 写出一个假接口, 调通前端后端,再来16 分钟使用真实数据 + 润色。 换另外一个语言试试。。。。 精锐游击队一样干掉 战五渣 正规军