#5 楼 @shiren1118 是的
啥原理啊
浏览器 API
#2 楼 @chenfengi 要不你过来一起搞 https://github.com/ruby-china/ruby-china-for-ios 这个吧!
呼唤 @sunfmin
chenkins_count
, bookmarks_count
两个 int 型的字段belongs_to :user
改为 belongs_to :user, :counter_cache => true
User.all.select([:id,:first_name,:last_name,:checkins_count,:bookmarks_count]).order("bookmarks_count desc")
额,我最近也在写这个 你做到什么地步了?
pcre 没有安装
就在 Ruby China 这边上传就可以了呀
分辨率适配可以看看响应式 Web 设计
一直在不断尝试,但发现上面这些方法都不太管用了
#15 楼 @yedingding 在看电视,哈哈
用 mobile_fu 很轻松
来,这回别错过了
#3 楼 @guyanbiao 是的,你要自己用的时候,得换自己的 API 信息,这里里面的数据我会偶尔删除的
全选,然后按 = 号
还有我呢
应该是被这个脚本 Hack 了
$ cat ~/.rvm/scripts/cd
#!/usr/bin/env bash
# Source a .rvmrc file in a directory after changing to it, if it exists. To
# disable this feature, set rvm_project_rvmrc=0 in /etc/rvmrc or $HOME/.rvmrc
if (( ${rvm_project_rvmrc:-1} > 0 ))
then
__rvm_setup_cd()
{
# try to use smartcd function, fallback to builtin
typeset __cd_prefix __command
if typeset -f smartcd >/dev/null 2>/dev/null
then __cd_prefix="smartcd"
else __cd_prefix="builtin"
fi
__rvm_after_cd()
{
typeset rvm_hook
rvm_hook="after_cd"
if [[ -n "${rvm_scripts_path:-}" || -n "${rvm_path:-}" ]]
then source "${rvm_scripts_path:-$rvm_path/scripts}/hook"
fi
}
__rvm_setup_cd_function()
{
typeset __cd_prefix __command
__cd_prefix=$1
__command=$2
eval "
${__command}(){
if ${__cd_prefix} ${__command} \"\$@\"
then
[[ -n \"\${rvm_current_rvmrc:-""}\" && \"\$*\" == \".\" ]] && rvm_current_rvmrc=\"\" || true
__rvm_do_with_env_before
__rvm_project_rvmrc
__rvm_after_cd
__rvm_do_with_env_after
return 0
else
return \$?
fi
}"
}
if [[ -n "${ZSH_VERSION:-}" ]]
then
autoload is-at-least
if is-at-least 4.3.4 >/dev/null 2>&1; then
# On zsh, use chpwd_functions
export -a chpwd_functions
chpwd_functions=( "${chpwd_functions[@]}" __rvm_do_with_env_before __rvm_project_rvmrc __rvm_after_cd __rvm_do_with_env_after )
else
for __command in cd popd pushd
do __rvm_setup_cd_function "${__cd_prefix}" "${__command}"
done
fi
else
for __command in cd popd pushd
do __rvm_setup_cd_function "${__cd_prefix}" "${__command}"
done
fi
}
__rvm_setup_cd
# This functionality is opt-in by setting rvm_cd_complete_flag=1 in ~/.rvmrc
# Generic bash cd completion seems to work great for most, so this is only
# for those that have some issues with that.
if (( ${rvm_cd_complete_flag:-0} == 1 ))
then
# If $CDPATH is set, bash should tab-complete based on directories in those paths,
# but with the cd function above, the built-in tab-complete ignores $CDPATH. This
# function returns that functionality.
_rvm_cd_complete ()
{
typeset directory current matches item index sep
sep="${IFS}"
export IFS
IFS=$'\n'
COMPREPLY=()
current="${COMP_WORDS[COMP_CWORD]}"
if [[ -n "$CDPATH" && ${current:0:1} != "/" ]] ; then
index=0
# The change to IFS above means that the \tr below should replace ':'
# with a newline rather than a space. A space would be ignored, breaking
# TAB completion based on CDPATH again
for directory in $(printf "%b" "$CDPATH" | \tr -s ':' '\n') ; do
for item in $( compgen -d "$directory/$current" ) ; do
COMPREPLY[index++]=${item#$directory/}
done
done
else
COMPREPLY=( $(compgen -d ${current}) )
fi
IFS="${sep}";
}
complete -o bashdefault -o default -o filenames -o dirnames -o nospace -F _rvm_cd_complete cd
fi
fi
哎,Django 的错误信息就是这个样 另外没觉得有什么提升,只是排版换了而已
API
TextMate 就能搞定,不必用在线的 还有 Mou 也不错的
你系统的问题
而 fast-aes 的话,Github 上面有说明的
This is a lightweight, fast implementation of AES
Aes 加密 Ruby 原生库里面就有的