`
magnesium
  • 浏览: 29323 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1.window->preferences->Gerenal->Content Types 下的jsp,xml等 2.window->preferences->web->下的所有文件
This implementation is a well-performing and concurrent implementation valid in all versions of Java. The original implementation from Bill Pugh (see links below), based on the earlier work of Steve Quirk, has been modified to reduce the scope of LazyHolder.something  to private and to make the field ...
SELECT 表名 = CASE WHEN A.COLORDER=1 THEN D.NAME ELSE ' ' END, 表說明 = CASE WHEN A.COLORDER=1 THEN ISNULL(F.VALUE, ' ') ELSE ' ' END, 欄位序號 = A.COLORDER, 欄位名 = A.NAME, 標識 = CASE WHEN COLUMNPROPERTY( ...
第一种: Ror代码    1. class FooController < ApplicationController     2.     protect_from_forgery :except => :index     3.      4.    # you can disable csrf protection on controller-by-controller basis:     5.     skip_before_filter :verify_authenticity_token     6. end  第二种: 修改配置文件config ...
今天在跟着《Agile Web Development with Rails》上面的例子在做的时候,在新添加一 个contrller的时候出现 “No route matches”错误。 上网查了下,解决方法如下: 修改项目目录的 configuration/routes.rb 文件 添加 map.connect '', :controller => "index", :action => "index" 然后刷新页面就可以了。
IDE:netbeans 6.8 rais:2.3.5 在netbeans6.8下新建model会出现以下错误: /usr/lib/ruby/gems/1.9.1/gems/actionmailer-2.3.2/lib/action_mailer/vendor/tmail-1.2.3/tmail/utils.rb:117:in `<module:TextUtils>': invalid multibyte character (ArgumentError)         from /usr/lib/ruby/gems/1.9.1/gems/actionmailer-2.3. ...
今天用rails命令自动生成了一个ror的demo,启动服务器后运行也正常,但是添加了一个 controller后就出现“no such file to load -- sqlite3“的错误。然后上网查了查,发 现原来Rails在升级到2.0.2之后使用sqlite3作为默认的数据库。打开database.yml一看果 然如此。需要修改3个地方的默认数据库名,用户名和密码。发觉有点麻烦,索性全部删掉,改 用 rails -d mysql demo 命令又建了一个。再打开database.yml一看,数据库名是改成 mysql了,但是指向的数据库是不存在的,用户名和密码也是root的, ...
首先下载完consolas字体后执行: sudo mkdir -p /usr/share/fonts/consolas 然后,改变权限: sudo chmod 777 /usr/share/fonts/consolas 复制文件 sudo cp consolas.ttf /usr/share/fonts/consolas/ 安装: cd /usr/share/fonts/consolas/ sudo mkfontscale sudo mkfontdir sudo fc-cache -fv 安装完成,然后就可以在netbeans的option中的fonts&colors中,langua ...
参考肉饼的文章:http://robbin.iteye.com/blog/43228 一、安装 Ruby 解析器 ruby的源代码可以从Ruby官方网站下载: http://www.ruby-lang.org/en/downloads/ 下载源代码包到本地Linux主机,然后解压缩,进入该目录,进行配置,编译和安装: tar x ...
终端下运行: sudo gedit /etc/fonts/conf.d/49-sansserif.conf 修改这个文件的倒数第四行为 <string>sans serif</string> 保存
首先安装windows 7 网上教程很多,在此不熬述。 这里主要写一下怎么样硬盘安装 Ubuntu 9.10。 OS安装情况:C盘:windows 7 ,E盘:Ubuntu 9.10 参考:http://socrates.blog.51cto.com/1142652/256304 1、  在Windows7下安装EasyBCD1.7.2.exe软件 2、  运行此软件添加grub启动项 3、  解压ubuntu-9.10-desktop-i386.iso或者使用WinRAR或虚拟光驱打开镜像文件提取casper目录下的vmlinuz、initrd.lz,然后将这两个文件放在 ...
Ubuntu Tweak 是Ubuntu 下快速设置和优化工具,帮新手迅速解决问题,帮老手节约时间。安装过程如下: 首先导入 Ubuntu Tweak 的 PPA 密匙 sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com FE85409EEAB40ECCB65740816AF0E1940624A220 编辑 /etc/apt/sources.list 文件 sudo gedit /etc/apt/sources.list 在打开的文件的末尾加入下列两行 deb http://ppa.launchpad.net/tua ...
一.骨头源 deb http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ karmic-proposed ...
一.Beginning Agility 1.Work for Outcome 2.Quick Fixes Become Quicksand 3.Criticize Ideas,Not People 4.Damnthe Torpedoes,Go Ahead 二.Feeding Agility 5.Keep Up with Change 6.Invest in Your Team 7.Know When to Un learn 8.Question Until You Understand 9.Feel the Rhythm (我觉得软件开发的节奏是很重要的。但是敏捷有迭代 ...

[转]太监传说

话说小谷子家里不穷,兄弟姐妹也都过得不错。可他偏偏想要到宫里,大家都想,这小谷子是个有抱负的娃啊! 那段时间宫里并没像现在这样戒备森严,小谷子也没费什么吹灰之力就混进了宫里。小谷子暗自庆幸,这要比考个 ...
Global site tag (gtag.js) - Google Analytics