`
tom_cjp
  • 浏览: 42286 次
  • 性别: Icon_minigender_1
  • 来自: 温州
文章分类
社区版块
存档分类
最新评论
文章列表
问题描述: 在xp[sp2]下面,运行程序(这里使用魔兽争霸),点击局域网或战网后,程序马上自动退出,并弹出窗口 This application has encountered critical error: FATAL ERROR! Prpgram: E:\魔兽\war3.exe Exception: 0xC000005(ACCESS_VIOLATION)at 001B:6F4D35D9 This instrction at'0x6F4D35D9'referenced memory at '0x00000A8' the memory could not be ...
0. 安装 jdk sudo apt-get install sun-java6-jdk 1. 安装 Eclipse http://www.eclipse.org/downloads/ (我选择的是 Eclipse Classic 4.2, 182 MB) 2. 安装 ADT(是用eclipse开发android程序的必要插件) 运行Eclipse,菜单 "Help" | "Install New Software",在Work with处填入 Android - http://dl-ssl.google.com/Android/eclipse/ 然 ...
1. 问题定位 error: hook declined to update refs/heads/master ! [remote rejected] master -> master (hook declined) 2. 修复方法 登陆到源码服务器 找到description文件, 删除或修改内容。 注: description文件在路径(git/repository/相应项目名.git/)里 3. 在客户端再push一下, 来测试是否修复成功 参考文章 http://stackoverflow.com/questions/200213/project-d ...
测试: html5的语音输入功能 支持: webkit核心的浏览器 Demo: <input type="text" x-webkit-speech lang="zh-CN" />
问题描述: 升级后启动非常慢,进度条那里先走好几个来回,然后是大约一分多钟的waiting for network configuration,接着又是一分钟的waiting up 60 seconds more for network configuration, 最后显示 booting system without full network configuration, 才能进入登录界面 1. 切换到终端 使用组合键: Alt + Ctrl + F4 ps: (Ubuntu 的图形界面对应的是 F7. 其余的F1-6 都是终端) 2. 切换到root sudo -i  3. 闭上一 ...
发现 ruby源码包的ext文件夹下有很多 扩展包, 在源码安装不大顺利时,可以进入相应的应用目录 比如安装中出现: 一. openssl support for ruby 1.9.3 not found 1. 进入 源码里相应扩展包目录 cd ruby-1.9.3-p0/ext/openssl/ 2.重新编译安装这个部件, 这样就OK啦 ruby extconf.rb make sudo make install 二. gem install rails -> zlib failed 1. 同样引用上面的2步, 只是操作的目录换成了/ext/zlib/. 关键词: z ...
场景: 禁止鼠标点击触发2次ajax请求。 而采取在ajax开始前,禁用按钮, 完成后再启用。 选手介绍: 1.onLoading: Triggered when the underlying XHR object is being setup, and its connection opened. 2.onCreate:  when the Ajax.Request object is initialized. This is after the parameters and the URL have been processed, but before first using the ...
环境: 1. 运行 rake db:migrate 碰到错误 superclass mismatch for class 2. migrate的类名和lib下文件的类名 冲突 解决: 重命名 migrate 此类问题有一部分原因是类名二次加载引起
ActiveSupport::JSON.decode(json) ActiveSupport::JSON.encode(hash)
事件: 使用locomotive项目时, Gemfile里引用了rails 3.0.8 和haml, 引发了"cannot modify safebuffer in place"错误. 原因: haml碰到不稳定的rails版本 解决方案: 1. 降低rails 版本到3.0.7
解决的问题定位: 1. 环境 xp 和ubuntu的双系统,其中ubuntu为wubi安装 2. 想进入ubuntu系统, 却只能到grub提示符 3. 在xp下进入ubuntu文件系统发现 G:\ubuntu\disks目录消失或不能打开(我的ubuntu安装在G盘, 所以以下提到的G盘,均指ubuntu安装盘符) 4. 进入xp中有volumn label 乱码提示 解决流程: 1. xp开始-运行-输入命令"chkdsk /f G:", 运行后xp会修复ubuntu文件,并移动文件到G盘下的found.000文件夹中. 2. 打开工具-文件夹选项, 通过不勾选&quo ...
1. 安装apache2 sudo apt-get install apache2 2. 在浏览器里验证apache2安装成功, 看到 It works,如果服务没开启可以使用sudo service apache2 restart http://localhost 3. 然后安装gitweb sudo apt-get install gitweb 运行命令后,会自动创建 /var/www/gitweb /etc/gitweb.conf # 配置文件 目录/usr/share/gitweb下的3个文件 git-favicon.png, git-logo.png, gitweb.css 注意: ...
In rails 2.1.0 will raise TypeError: can't convert nil into String strip_tags("<img alt=\" I:\\") Have been solved https://github.com/rails/rails/commit/2002e5877efa40b336b70b707670e734c6389958
1. Install sudo gem install rspec sudo gem install rspec-rails 2. Create rails project (ep. blog) rails blog cd blog 3. Generate rspec dirs ruby script/generate rspec 4. Generate rspec MVC files (ep. post) model: ruby script/generate rspec_mode Post title:string co ...
Ruby Version Manager (RVM) install RVM bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) load rvm into shell session [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" install ruby (docs 生成文档,head 最新版本) rvm install ruby-1.8 ...
Global site tag (gtag.js) - Google Analytics