摘要:如何查看mysql运行、访问记录等日志 1.首先确认你日志是否启用了mysql>show variables like 'log_bin';2.如果启用了,即ON那日志文件就在mysql的安装目录的data目录下3.怎样知道当前的日志mysql> show master status; 4.看二进制日志文件用mysqlbinlogshell>mysqlbinlog mail-b...
阅读全文
浙江省高等学校教师教育理论培训微信搜索“毛凌志岗前心得”小程序 |
|
11 2010 档案
摘要:如何查看mysql运行、访问记录等日志 1.首先确认你日志是否启用了mysql>show variables like 'log_bin';2.如果启用了,即ON那日志文件就在mysql的安装目录的data目录下3.怎样知道当前的日志mysql> show master status; 4.看二进制日志文件用mysqlbinlogshell>mysqlbinlog mail-b...
阅读全文
摘要:http://www.noupe.com/how-tos/10-ways-to-automatically-manually-backup-mysql-database.html
阅读全文
摘要:MySQL 时区设置作者: 我不是鱼(2008-12-29 12:02)分类:MySQL 标签:时区time_zoneMySQL 时区默认是服务器的时区。可以通过以下命令查看SQL代码mysql>showvariableslike'%time_zone%'; +------------------+--------+|Variable_name|Value| +---------------...
阅读全文
摘要:pi.roundgood way首页 新闻 论坛 问答 博客 招聘 更多 ▼专栏 文摘//-- 圈子 搜索您还未登录 ! 我的应用 登录 注册zarknight永久域名 http://zarknight.javaeye.commootools 1.11 中文参考文档(CHM和PDF格式 ... | mootools【一】- 起步篇2007-06-11Ruby中的数字【一】数字的表达形式 ====...
阅读全文
摘要:good examplejquery check全选/取消全选<HTML><HEAD><script type="text/javascript" src="jquery.js"></script><SCRIPT type="text/javascript">$(document).ready(function() {$("#checke...
阅读全文
摘要://$("input[name='payment'][cod='1']").click(function(){// console.debug("hahah");// $("input[name='shipping'][cod='1']").attr("checked",true);// });//$("input[name='payment'][cod='0']").click(funct...
阅读全文
摘要:http://railsapi.com/doc/rails-v3.0.1/
阅读全文
摘要:http://www.cnblogs.com/capricornus/archive/2010/02/05/1664446.html
阅读全文
摘要:高级搜索 × 选择分类范围: 全文 标签 爱问首页|知识人首页 | 首页 问题分类 问题排行榜 | 用户榜 | 专家团 | 更多>> 知识人 > 问题分类 > 商业经济 > 贸易 问题: 推荐 ┊ 关注 ┊ 评论 ┆ 举报 selena97[学妹] 请问外贸交易中什么是COD 付款方式?0分 标签:交易中 外贸 付款方式 付款回答:4 浏览:19494 提...
阅读全文
摘要:2010-6-29:新增银行简码:fdb101 富滇银行2010-5-24:新增银行简码:BJRCB 北京农村商业银行简码请大家注意大小写区别BOCB2C中国银行ICBCB2C 中国工商银行ICBCBTB 中国工商银行(B2B) CMB招商银行CCB中国建设银行CCBBTB 中国建设银行(B2B)ABC 中国农业银行ABCBTB 中国农业银行(B2B) SPDB上海浦东发展银行SPDBB2B 上海...
阅读全文
摘要:Mr.Think专注WEB前端技术,热爱PHP,崇尚简单生活的凡夫俗子.HomeCSS+XHTMLJavaScriptjQueryUE+SEO记录摄影关于RSS FeedjQuery数组处理详解(含实例演示)Posted by Mr.Think on 11/26/2010分类于@jQueryjQuery的数组处理,便捷,功能齐全. 最近的项目中用到的比较多,深感实用,一步到位的封装了很多原生js数...
阅读全文
摘要:#! /usr/bin/env python#coding=utf-8class A: def __init__(self): self.a=1 def aa(self): print self.aa=A()a.aa() 这个月写rails差点python的语法都忘了
阅读全文
摘要:登录 注册 豆瓣社区 豆瓣读书 豆瓣电影 豆瓣音乐 九点 豆瓣电台 首页 排行榜 分类浏览 作者 书评 购书单 去他的算法内功基础,对于程序员,实用主义才是王道 2010-09-25 19:08:38 来自: figure9Coders at Work的评论 5提示: 有关键情节透露 Coders at work 书评 很早就在Amazon上看到过这本有些技术八卦性质的书,不过...
阅读全文
摘要:ABOUT ME NEW TO RAILS 3 NEWBIE ON RAILS RSS ARCHIVE Rails & PHP Linux VPS速配指南 12/31/2009 VPS 主机类型: Linode 360 可到 linode.com 购买,360MB 物理内存,16GB 磁盘存储空间,200GB 月流量(输入输出总和) ,1个独立IP,月租 $19.95 (信用卡支付)。数...
阅读全文
摘要:http://www.ivankristianto.com/os/ubuntu/howto-install-apache-php-mysql-and-phpmyadmin-on-ubuntu/1027/ 15Ubuntu下安装PHP环境(Apache+MySQL)1. 直接打开终端输入下面命令自动下载安装运行环境sudo apt-get install apache2sudo apt-get in...
阅读全文
摘要:15Ubuntu下安装PHP环境(Apache+MySQL)1. 直接打开终端输入下面命令自动下载安装运行环境sudo apt-get install apache2sudo apt-get install mysql-serversudo apt-get install php5-commonsudo apt-get install php5-gdsudo apt-get install php...
阅读全文
摘要:MySQL随机函数的两种用法[rand()]rand,随机函数,MySQL,用法比如有一个需求,通过sql语句,返回-5至5的随机整数.如果这一个放在PHP中,则非常简单直接用<?phpprint rand(-5,5);?>在mysql中,rand函数只能有一个参数.//摘自手册RAND() RAND(N)返回一个随机浮点值v,范围在 0 到1 之间 (即, 其范围为 0 ≤v&...
阅读全文
摘要:acts-as-tree 增强版,不错https://github.com/xavier/acts-as-tree-with-dotted-ids
阅读全文
摘要:http://share.xiaonei.com/share/buttonshare.do?link=http://www.quwan.com/tuan/deals/deals.php?t_c=i_20101127_a_698313&title=%E6%8E%A8%E8%8D%90%E8%B6%A3%E5%9B%A2%E4%BB%8A%E6%97%A5%E5%9B%A2%E8%B4%AD&...
阅读全文
摘要:http://share.renren.com/share/buttonshare.do?link=http://lexus.cnblogs.com&title=推荐趣团今日团购&send_message=推荐趣团今日团购:14.9元!市场价39元充气U型护颈枕!+柔软舒适携带方便办公室小憩必备!
阅读全文
摘要:ctrl+shift+o split a new terminal
阅读全文
摘要:Rails WikiYou are here:Rails Wiki»»»Reserved Words You Can’t UseTranslations of this page?:endeelesfrheitjakoltptthtrzhTable of ContentsReserved Words You Can’t UseOther ...
阅读全文
摘要:问题答疑】关于支付宝出错的说明1、支付宝合同尚未生效,一般签约后需要在24小时左右才可以使用的,团购项目标题,出现特殊字符,例如书名号,冒号等 2、后台的支付配置不正确,主要原因是您在填写“商户ID号”或“交易安全校验码(key)”在复制时出现了空格,请重新核实填写,即可恢复正常使用
阅读全文
摘要:parsed_json = ActiveSupport::JSON.decode(cmt) logger.debug(parsed_json.class) parsed_json.each do |k,v| logger.debug(k) logger.debug(v) end
阅读全文
摘要:if num=~ /\d+/ buy_num=num.to_i else buy_num=1 end1down voteacceptYou forgot to include the class you were testing against:
阅读全文
摘要:Time.local(year) => timeTime.local(year, month) => timeTime.local(year, month, day) => timeTime.local(year, month, day, hour) => timeTime.local(year, month, day, hour, min) => timeTime....
阅读全文
摘要:首页新闻论坛问答博客招聘更多▼您还未登录 !我的应用登录注册徐构永久域名http://hooney.javaeye.comrails route|使用include中嵌Hash取出一个多层次的对象 ...2008-06-25ruby 日期关键字: ruby timeRuby代码difference=Time.now-timeseconds=difference%60difference=(diff...
阅读全文
摘要:吃了碗面,全身暖和了,好逸恶劳有一段时间了,该虐一下自己了,
阅读全文
摘要:rake -D timerake time:zones:localin application.rb #lexus added at 20101125 config.active_record.default_timezone = :local config.active_record.time_zone_aware_attributes = false config.time_zone = ...
阅读全文
摘要:Ruby语言在实际应用中可以帮助我们轻松的完成许多功能需求。其内置的大量方法是我们实现功能的前提。下面我们为大家介绍其中Ruby时间方法的相关方法。Ruby代码管理经验分享Ruby创建构造器技巧分享Ruby异常处理结构特点介绍Ruby数学表达式中各种应用解析几种常见Ruby on Rails内置方法介绍Ruby时间方法:puts20.seconds#=>20 puts20.minutes#=...
阅读全文
摘要:ruby学习笔记(8)-"静态方法的4种写法"与"单例方法的2种写法"01#静态方法的4种写法02classTest03defTest.StaticMethod104puts"Test.StaticMethod1"05end0607defself.StaticMethod208puts"Test.StaticMethod2"09end1011class<< Test12defStati...
阅读全文
摘要:当你将komodo新建的工程文件夹放在什么目录下,那么那个目录就是工程的根目录
阅读全文
摘要:大家每天都有一个好心情 :)rails cascade 级联删除[ruby]用一次忘记一次,记下来。:dependent - if set to :destroy all the associated objects are destroyed alongside this object by calling their destroy method. If set to :delete_all ...
阅读全文
摘要:on 是mysql中的关键字,使用做为字段,请`on`type是rails中的关键词,使用kind 来代替做为mysql字段
阅读全文
摘要:ruby-1.9.2-p0 > Time.now=> 2010-11-25 10:34:20 +0800date2010年 11月 25日 星期四 10:29:48 CST因为使用的是正8区时间所以两个的对比效果如果是utc时间,time.now会显示+0000
阅读全文
摘要:用户名: 密码: 登录 注册rails漫步追求,生活中不一而足的美丽,还有快乐; ...主页博客相册|个人档案 |好友查看文章acts_as_tree 插件应用2009-08-06 10:541.安装: 我在github上fork了这个插件,访问地址是:http://github.com/krongk/acts_as_tree/tree/master Give this clone URL t...
阅读全文
摘要:ModuleEnumerableIn: enum.c lib/set.rb lib/soap/property.rb ext/enumerator/enumerator.c The Enumerable mixin provides collection classes with several traversal and searching methods, and with the abil...
阅读全文
摘要:大概是断电,暴风 隔两天来一次,这个太频繁了
阅读全文
摘要:Java交流学习教室copyBookmarkhttp://space.itpub.net/14734416博客图片商品下载收藏影音圈子好友论坛留言空间管理您的位置:ITPUB个人空间»Java交流学习教室»日志汇聚你我之力......jquery 新建的元素事件绑定问题(上)上一篇/下一篇2008-10-20 21:40:00 / 个人分类:jQuery查看( 1565 )...
阅读全文
摘要:小小子Say you say me ,say we together~~首页哥学社围脖淘宝店唠呗小小子Links首页 > JS&HTML > jquery append()和appendTo()深入学习jquery append()和appendTo()深入学习2009年5月31日 simaopig跳到评论虽然之前写jQueryDOM操作——基于命令改变...
阅读全文
摘要:Ruby RoolsAn Open-source Pure Ruby Rules-EngineIndexLicenseQuickstartDownloadDocumentationExamplesGlossaryDevdocRdocSourceBugsTo-doActivityMailing listsUsers groupDev groupCreditsRubyforgeGeoBlikiOpen...
阅读全文
摘要:天天团购http://demo.meituancms.com/admin/index.phphttp://www.fanwe.com/以上有在线演示,还行最土的相关资讯做的不错,还有一个久动,两个都没看到在线演示,
阅读全文
摘要:锐锋网-手机回收,返现,折价买新手机 猜礼包-创意类,操作有点烦,一般 geekpark,没有模式 摆摆书架,不错 10元网 尚街 和移动互联网,lbs,sns相关的我都不看好,一般的团队没有机会 我觉得这几个月,我对赚钱模式,有新的理解 比以前不幼稚一些 今天看了电视说的一句话有道理 大干小风险,小干大风险 意思是一件事,如果缩手缩脚的干,别人可能超过你 如果卯足劲,迅速占领市场,反尔有有...
阅读全文
摘要:Saturday, November 20, 2010Power outage in FremontSunday, November 21, 20105:45am (EST):The last of the damaged hosts has been hot-swapped and the remaining Linodes should have boot jobs in their queu...
阅读全文
摘要:strip_links(html)Strips all link tags fromtextleaving just the link text.Examples[show source]strip_tags(html)Strips all HTML tags from thehtml, including comments. This uses the html-scanner tokenize...
阅读全文
摘要:Ragnarok StudioInnovative, Insightful, Intelligent, Intriguing Search for: SiteHotsApplesSafari+PluginsAboutMetaLog inEntries RSSComments RSSWordPress.orgCommentsNeo on Jail-broken 4Sunny on Jail-bro...
阅读全文
摘要:首页|注册|登录|用户群体|关于我们Rss FeedGuides.rubyonrails.org资讯导航敏捷开发最佳实践问题交流书籍资料职位招聘线下活动Ruby on Rails 敏捷开发最佳实践分享分享你的敏捷开发最佳实践,为rails社区的枝繁叶茂做出自己的贡献.按tags浏览rails3linuxgrailspassengeractionmailercapistranocontrollerp...
阅读全文
摘要:首页|注册|登录|用户群体|关于我们Rss FeedGuides.rubyonrails.org资讯导航敏捷开发最佳实践问题交流书籍资料职位招聘线下活动Ruby on Rails 敏捷开发最佳实践分享分享你的敏捷开发最佳实践,为rails社区的枝繁叶茂做出自己的贡献.按tags浏览rails3linuxgrailspassengeractionmailercapistranocontrollerp...
阅读全文
摘要:首页|注册|登录|用户群体|关于我们Rss FeedGuides.rubyonrails.org资讯导航敏捷开发最佳实践问题交流书籍资料职位招聘线下活动Ruby on Rails 敏捷开发最佳实践分享分享你的敏捷开发最佳实践,为rails社区的枝繁叶茂做出自己的贡献.按tags浏览rails3linuxgrailspassengeractionmailercapistranocontrollerp...
阅读全文
摘要:表单辅助方法(三)2009-06-29 16:36此文原文在http://guides.rubyonrails.org/form_helpers.html我根据自己的理解作的一些笔记。3 轻松构建 Select Boxes在HMTL里Select Boxes需要大量的标记,这些标记是可以动态生成的。HMTL里的Select Boxes:<select name="city_id" id="c...
阅读全文
摘要:之前我在15-1688的新闻系统中也无意间使用了kindeditor,今天在rails上也用上了这个编辑器小记于此感谢https://github.com/mlzboy/kindeditor在安装的时候有一些问题使用bundle install,指定git装不上去反尔是gem 'kindeditor'gem 'paperclip', :git => 'http://github.com/th...
阅读全文
摘要:之前我在15-1688的新闻系统中也无意间使用了kindeditor,今天在rails上也用上了这个编辑器小记于此感谢https://github.com/mlzboy/kindeditor在安装的时候有一些问题使用bundle install,指定git装不上去反尔是gem 'kindeditor'gem 'paperclip', :git => 'http://github.com/th...
阅读全文
摘要:之前我在15-1688的新闻系统中也无意间使用了kindeditor,今天在rails上也用上了这个编辑器小记于此感谢https://github.com/mlzboy/kindeditor在安装的时候有一些问题使用bundle install,指定git装不上去反尔是gem 'kindeditor'gem 'paperclip', :git => 'http://github.com/th...
阅读全文
摘要:分享到... 复制网址收藏夹新浪微博QQ空间邮件MSN人人网开心网百度搜藏谷歌Buzz搜狐白社会139说客淘江湖搜狐微博豆瓣查看更多(89) 这是什么工具? JiaThis 分享到各大网站 复制网址收藏夹邮件谷歌BuzzQQ空间百度搜藏新浪微博搜狐微博网易微博腾讯微博人人网开心网搜狐白社会淘江湖百度空间QQ校友优士网GMAIL邮箱Hotmail邮箱Yahoo! mail飞信51社区谷歌有道书签QQ...
阅读全文
摘要:互联网上的内容还是太初浅了,太多垃圾,电视的节目还是有质量和高端一些回家半年了,身体好多了,也不动不动就感冒了,还是家里养人啊,肚子见长,都已经不是常人身材了,有明显发福的迹象downthemall 这个插件不错,批量下载图片,这个月学习使用rails3,做网站差不多了,反正rails就是那么回事,我也没有觉得太多意思,代码没有py优雅是真的,rails毕竟是众多人的结晶,也就是倒了3还算有一些整...
阅读全文
摘要:互联网上的内容还是太初浅了,太多垃圾,电视的节目还是有质量和高端一些回家半年了,身体好多了,也不动不动就感冒了,还是家里养人啊,肚子见长,都已经不是常人身材了,有明显发福的迹象downthemall 这个插件不错,批量下载图片,这个月学习使用rails3,做网站差不多了,反正rails就是那么回事,我也没有觉得太多意思,代码没有py优雅是真的,rails毕竟是众多人的结晶,也就是倒了3还算有一些整...
阅读全文
摘要:[CPyUG] [招聘] 果壳网&科学松鼠会招聘高级Python工程师CPyUGXReplygasherotopython-cn`CPyU.show detailsNov 17 (5 days ago)高级Python开发工程师职位描述:1. 应用twistd框架开发与维护后端数据平台2. 应用django开发网站前台系统3. 基于内存数据库开发高性能的数据中间层4. 为已经在使用的开源项...
阅读全文
摘要:2010-10-08随机查询N条记录文章分类:数据库假定表名为:userSql代码 select*fromuserorderbyrand()limit1,50 order by rand() 表示将查询到的数据乱序排序(每执行一次乱序一次,理论上有限的次数内不会重复) limit 1,50表示从乱序结果集 中取出第1到50条数据, 这样可以达到每次查询出的50条数据都是随机的
阅读全文
摘要:Linux Distribution Chooser© 2005 - 2010, Daniel André Eikelanddisclaimer / front pageTake the test again This service is a one man operation, and it takes time and money to keep it available.If you f...
阅读全文
摘要:ubuntu下如何更改mysql数据存放路径六月 23rd, 2010 Posted in mysql | 375次浏览 制作:高进波 时间:2010-6-23很多时候,mysql的数据会非常大,数据默认放在/var/lib/mysql,由于/var所划分的空间不够大,所以我们需要将mysql数据存放路径修改一下,放到大分区里面,以便可以应付mysql数据增长。1.设置新的存放路径2.复制原有数据...
阅读全文
摘要:http://www.ibm.com/developerworks/cn/linux/l-cn-chroot/ 稳定压倒一切,重申 Ubuntu 10.04修复GRUB2 [日期:2010-08-26]来源:Linux社区 作者:Linux 在Ubuntu系统之后安装其他系统,会将Ubuntu的grub破坏掉,Ubuntu 10.04已经使用grub2了。我尝试用9.04的livecd去修复,一...
阅读全文
摘要:最近在mac 下 ubuntu下有两次出现硬盘只读的情况,重启之后不行了, 一次是在八月份,一次是在11月份,都让人胆战心惊,第一次没有备份代码,第二次我备份了,不过还是心有余悸, 我还是用u 9.10的光盘进行抢救的,而我的系统是u10.04, 原因不明 1.mac book对ubuntu系统的兼容性 2.我的硬盘快挂了 3.ubuntu 10.04系统不稳定
阅读全文
摘要:Ruby中的数组过滤 | 一个好用的服务器代理地址2009-08-04Ruby数组操作总结数组的创建 arr = Array.new num #创建num个元素的数组,所有数组元素为nil arr = Array.new num, elem #创建num个元素的数组,所有数组元素为elem arr = Array(m..n) #创建m..n元素为m到n的数组(包括n) m...n不包括n arr...
阅读全文
摘要:#coding:utf-8total_pages=11current_page=10a=(1..total_pages).to_a#<div class="page_box"><span><font>«首页</font></span><span><font>­上一页</f...
阅读全文
摘要:2010-01-18Ruby -- Hash方法汇总文章分类:Ruby编程一。给Hash添加默认值 :Ruby代码h={1,2,3,4}#=>{1=>2,3=>4}h.default=7h[1]#=>2h[3]#=>4h[4]#=>7h[5]#=>7二。给Hash添加key-value对:Ruby代码h={}#=>{}h.store("a",1)#=...
阅读全文
摘要:您还未登录 !我的应用登录注册论坛首页→Ruby编程版→ruby→Ruby和Python的语法差别全部rubyrails甘特图、网络图、日历图、项目管理中间件« 上一页1234下一页 »浏览 29248 次锁定老贴子主题:Ruby和Python的语法差别该帖已经被评为精华帖作者正文cookoo等级:性别:文章: 817积分: 1951来自: M...
阅读全文
摘要:Ruby有不少惯用法,这里略作一些介绍,也方便阅读他人代码:迭代一般写法:for i in (1..10)puts iend习惯写法:Java代码(1..10).each{|i|putsi}或1.upto(10){|i|putsi}#fromnjmzhang||=赋值一般写法:Java代码number=1ifnumber.nil?number=1unlessnumber习惯写法:Java代码num...
阅读全文
摘要:ruby学习系列--Hash类函数作者:赵献良来源:博客园发布时间:2008-08-28 12:06阅读:385 次原文链接[收藏]函数名称说明示例==判断两个Hash是否相等h1 = {"a" => 1, "c" => 2}h2 = { "a" => 1, "c" => 2, 7 => 35 }h1 == h2»false[ ]返回指定键值对应的对象h ...
阅读全文
摘要:[shanghaionrails] 招兵买马啦InboxXReplymartin.xus@gmail.comtoShanghaishow detailsNov 16 (1 day ago)地点:上海,南京要求嘛,这个东西千篇一律没啥意义,简单点:0:好学,好动,乐于分享/交流1:爱折腾,有追求,有想法,更有梦想以下参考加分项:2:工作3年以上的优先考虑3:工作的主要语言为 ruby/python,...
阅读全文
摘要:p, li { white-space: pre-wrap; }sudo /etc/init.d/vboxdrvsetupit will take about 3 mins ,what a long time~in recent month i took the battery of the macbook out use the battery adapter directly,many tim...
阅读全文
摘要:C# WEB开发基地博客园首页新闻新随笔联系管理订阅 随笔- 11 文章- 78 评论- 78javascript计算小数保留两位小数,多位小数的方法<SCRIPTLANGUAGE="JavaScript"><!--functionformatFloat(src,pos){returnMath.round(src*Math.pow(10,pos))/Math.pow(10,po...
阅读全文
摘要:两个都不是好鸟
阅读全文
摘要:您现在是在 : 最近的话题 » Using jQuery » Checking if certain Radiobutton is checkedChecking if certain Radiobutton is checked作者:dschinkel在 03-Feb-2010 03:46 PM.在Using jQueryI've got the following co...
阅读全文
摘要:Converting Strings to Numbers Table of ContentsQuestion: How do I convert strings to numbers in JavaScript?Answer: To convert a string to a number, use the JavaScript function parseFloat (for conversi...
阅读全文
摘要:Rails Tip: Precision and scale for decimalsFor when you need that little bit of extra accuracy, specifying precision and scale for a decimal column in your Ruby on Rails migration is pretty simple. Th...
阅读全文
摘要:WEDNESDAY, JUNE 23Ruby on Rails: Request Url<%= request.request_uri %> / <%= request.path%>- display current url without base urleg: /goldberg/auth/login<%= request.referer %>- displ...
阅读全文
摘要:except firebug & live http header, hope this will make ff quicker
阅读全文
摘要:sudo /etc/init.d/mysql startCould not connect to host 'localhost'.MySQL Error Nr. 2002Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'http://ubuntuforums.org/archive/in...
阅读全文
摘要:http://gjjl.cenn.cn/info/nid_40717.html http://www.williamlong.info/archives/2076.html
阅读全文
摘要:一来是省点钱,但确实也没省多少,二来本人属于离经不叛道,特例不独行这人, 看起来有感觉 上图
阅读全文
摘要:has_many :bugs, :through => :railsActive Record Query Interface 3.0126Posted bypratikon Friday, January 22I’ve been working on revamping the Active Record query interface for the last few wee...
阅读全文
摘要:010-02-26Rails 3中的Active Record的查询变化文章分类:Ruby编程202: Active Record Queries in Rails 3译者: 夜鸣猪(http://hlee.rubyeye.com/) 校对: 哇牛在上两集的Railscast里我们演示了如何配置Rails 3的配置环境和创建新的Rails 3应用程序。在这一集里我们将开始演示Rails 3的一些新...
阅读全文
摘要:Rails 3 ambiguous column names and multiple order scopesno comments yet, post one nowAfter updating a few apps to Rails 3 I came across some issues with the new scoping syntax.Ambiguous Column NamesIn...
阅读全文
摘要:http://edgerails.info/vhttp://asciicasts.com/episodes/215-advanced-queries-in-rails-3
阅读全文
摘要:Rails 3 ambiguous column names and multiple order scopesno comments yet, post one nowAfter updating a few apps to Rails 3 I came across some issues with the new scoping syntax.Ambiguous Column NamesIn...
阅读全文
摘要:---- `ecs_region`--INSERT INTO `ecs_region` (`region_id`, `parent_id`, `region_name`, `region_type`, `agency_id`) VALUES (1, 0, '中国', 0, 0),(2, 1, '北京', 1, 0),(3, 1, '安徽', 1, 0),(4, 1, '福建', 1, 0),(5,...
阅读全文
摘要:注册新用户NewUser.aspx :使用的是CreateUserWizard控件,基于MemberShip机制,在数据库MSPetShop4Services的表aspnet_Users中创建用户修改用户注册信息UserProfile.aspx:基于Profile技术,在数据库MSPetShop4Profile的表Profiles和Account中创建用户信息2. 异步消息处理技术运用于订单处理4...
阅读全文
摘要:http://www.blogguy.cn/show-728-1.htmlgoogle articlehttp://code.google.com/intl/zh-CN/apis/ajaxsearch/articles/firebug.html
阅读全文
摘要:http://www.blogguy.cn/show-728-1.html
阅读全文
摘要:2010-02-16Active Record Query Interface(in Rails3)文章分类:Ruby编程http://guides.rails.info/active_record_querying.html1 Retrieving Objects from the Database1.1 Retrieving a Single Object使用主键Model.find(prim...
阅读全文
摘要:2010-02-16Active Record Query Interface(in Rails3)文章分类:Ruby编程http://guides.rails.info/active_record_querying.html1 Retrieving Objects from the Database1.1 Retrieving a Single Object使用主键Model.find(prim...
阅读全文
摘要:http://www.quarkruby.com/2007/10/21/sessions-and-cookies-in-ruby-on-rails
阅读全文
摘要:http://asciicasts.com/episodes/202-active-record-queries-in-rails-3HomeOther languagesNewest episodeAll episodesAbout ASCIIcastsSearch:Tagsperformancecachingactive-recordactive-supportviewssecurityref...
阅读全文
摘要:<table><tr> <th>pic</th> <th>Id</th> <th>Name</th> <th>P1</th> <th>P2</th> <th>P3</th> <th>P4</th> <t...
阅读全文
摘要:http://lindsaar.net/2010/4/7/rails_3_session_secret_and_session_store
阅读全文
摘要:http://www.javaeye.com/wiki/rails_weekly/1814-rails-questions-weekly-6-security-guide-onehttp://andyhu1007.javaeye.com/blog/378622http://www.javaeye.com/wiki/rails_weekly/1814-rails-questions-weekly-6...
阅读全文
摘要:You have 1 new answer. See yourresponses.Stack Exchange54mlzboy28917|log out|chat|meta|about|faqStack OverflowQuestionsTagsUsersBadgesUnansweredAsk QuestionRails and JSON: a beginner's questionup vote...
阅读全文
摘要:time.strftime( string ) => stringFormatstimeaccording to the directives in the given format string. Any text not listed as a directive will be passed through to the output string.Format meaning:
阅读全文
摘要:http://thewebfellas.com/blog/2008/8/3/roll-your-own-pagination-links-with-will_paginate
阅读全文
摘要:http://tool.chinaz.com/Tools/JsFormat.aspx
阅读全文
摘要:http://guides.rubyonrails.org/action_mailer_basics.html
阅读全文
摘要:用Wget抓目录 2010年10月12日 作者: jean 留言 » 转载本站文章请注明,作者:jean本文连接http://www.zhangyiqun.net/1386.html 实例: <pre>wget -nd -r -l1 –no-parent http://media.pragprog.com/titles/rails3/code/depot_c/public/im...
阅读全文
摘要:http://z-vita.com/open/showsoftware.php?getID=99&CursubclassID=22
阅读全文
摘要:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://blackanger.blog.51cto.com/140924/355320--转载请注明出处Rails3里多了个Bundler工具。它是一个Library管理工具,它提供了好的工具来管理你rails3项目依赖的gems。$> bundle这个命令会列出bundler提供给你的...
阅读全文
摘要:http://zetetic.net/blog/2010/05/18/pretty-page-title-in-rails-3/
阅读全文
摘要:http://zetetic.net/blog/2010/05/18/pretty-page-title-in-rails-3/
阅读全文
摘要:2009-06-17Rails 中delete和destroy的用法区别简单讲,一句话,delete不会触发回调效率比较高Deletes the row with a primary key matching the id argument, using a SQL DELETE statement, and returns the number of rows deleted. Active R...
阅读全文
摘要:when you modified db schema you need restart railc console enviroment,for some effecitrails g model CommentShowsProduct --migration=false
阅读全文
摘要:The following methods trigger validations, and will save the object to the database only if the object is valid:createcreate!savesave!updateupdate_attributesupdate_attributes!The bang versions (e.g.sa...
阅读全文
摘要:Ruby迭代器each、map、collect、inject2010-02-20 15:01说明: each——连续访问集合的所有元素 collect—-从集合中获得各个元素传递给block,block返回的结果生成新的集合。 map——-同collect。 inject——遍历集合中的各个元素,将各个元素累积成...
阅读全文
摘要:http://api.jquery.com/closest/
阅读全文
摘要:Will PaginatePagination is just limiting the number of records displayed. Why should you let it get in your way while developing, then? This plugin makes magic happen. Did you ever want to be able to ...
阅读全文
摘要:Rails3中使用JQuery首先建立一个新项目,实际上有没有-J都无所谓1railsnewhelloworld -J然后,在项目的Gemfile中添加,1gem'jquery-rails'运行1bundle install再运行1rails generate jquery:install这时Prototype和相应JS就会被删除,而替换成JQuery的JS。如果你要使用JQuery UI的话在上...
阅读全文
摘要:http://agilewebdevelopment.com/
阅读全文
摘要:http://ilstar.blogbus.com/logs/73933681.htmlhttp://hlee.javaeye.com/blog/341123Creating a 100% ajax CRUD using rails 3 and unobtrusive javascripthttp://stjhimy.com/posts/7http://dev.nozav.org/rails_aj...
阅读全文
摘要:http://www.riverwatcher.com/web.html国内公司做国外的事http://net.tutsplus.com/tutorials/ruby/5-awesome-new-rails-3-features/5 Awesome New Rails 3 Features * Tutorials\ * Ruby5 Awesome New Rails 3 FeaturesJohn ...
阅读全文
摘要:rails g model AdSlot category_id:integer name:string location:string type:string memo:text -p不生成crud视图页面,生成migration及modelrails g paperclip material image_urlthe `type` seems a keyword of rails the it...
阅读全文
摘要:http://mlzboy.wdwd.comhttp://demo.dreamershop.com
阅读全文
摘要:<html><head><!-- include needed JS files--><script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script><%= javascript_includ...
阅读全文
摘要:javascript字符串替换所有要替换字符javascript字符串替换所有要替换字符javascript替换函数使用正则表达式//将字母i全部替换成5<script language="javascript">var txt = "sjfisjfisdjfijsidfjioalfjewofjjgs";alert(txt .replace(/i/g,"5"));</script...
阅读全文
摘要:https://github.com/jquery/jquery-tmpl
阅读全文
摘要:http://www.aaronrussell.co.uk/blog/check-if-an-element-exists-using-jquery/Monday, 15 September 2008How to check whether an element exists using jQueryWhen using jQuery (or any other JavaScript librar...
阅读全文
摘要:期待mergeHow to create and apply a patch with Subversionhttp://ariejan.net/2007/07/03/how-to-create-and-apply-a-patch-with-subversion/It’s been a while since I posted something new on the use of S...
阅读全文
摘要:methodhttp://apidock.com/ruby/Enumerable/each_with_index each_with_index Ruby latest stable (v1_8_7_72) - 0 notes - Class: Enumerable 1_8_6_287 (0) 1_8_7_72 (-38) What's this? Related methods Instanc...
阅读全文
摘要:http://gregmoreno.ca/rails-3-upgrade-part-2-routes/http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/
阅读全文
摘要:http://gregmoreno.ca/rails-3-upgrade-part-2-routes/
阅读全文
摘要:Rails Plugin: Paperclip Questionup vote5down votefavorite2How can I prevent the image tag that calls the associated image from displaying if no image is associated with the record?...gives me the text...
阅读全文
摘要:http://www.kuqin.com/rubycndocument/index.html Ruby数组操作的总结 学习Ruby过程中总结了一些Ruby中常用的数组操作。1、数组定义arr1=[]arr2=Array.newarr3=['1','2','3']2、输出printarr3,"\n"#123putsarr3[0]#1printarr3.join(",")#1,2...
阅读全文
摘要:http://www.kuqin.com/rubycndocument/index.html
阅读全文
摘要:技术感言,凡事不可太尽http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/
阅读全文
摘要:http://www.uploadify.com/documentation/
阅读全文
摘要:http://ruby-doc.org/
阅读全文
摘要:http://yc75.javaeye.com/blog/379929"100x100>".scan(/\d+/)=> ["100", "100"]
阅读全文
摘要:2009-08-04Ruby数组操作总结数组的创建 arr = Array.new num #创建num个元素的数组,所有数组元素为nil arr = Array.new num, elem #创建num个元素的数组,所有数组元素为elem arr = Array(m..n) #创建m..n元素为m到n的数组(包括n) m...n不包括n arr = (Array)[elem1, elem2,....
阅读全文
摘要:<%= form_for (@upload, :html => { :multipart => true }) do |f| %>wrong<%= form_for(@upload, :html => { :multipart => true }) do |f| %>right怎么不能差一个空格,不是说是ruby语法松散吗
阅读全文
摘要:http://rio.rubyforge.org/适合做后台管理菜单
阅读全文
摘要:http://yuan.javaeye.com/blog/604174好文http://trevorturk.com/2009/03/22/randomize-filename-in-paperclip/http://trevorturk.com/2008/12/11/easy-upload-via-url-with-paperclip/ rails console下利用paperclip处理远程...
阅读全文
摘要:rails g paperclip user avatar这样生成了一个migration file,下面这段是自动生成滴view sourceprint?01classAddAttachmentAvatarToUser< ActiveRecord::Migration02def self.up03add_column :users, :avatar_file_name, :string04...
阅读全文
摘要:http://deepliquid.com/content/Jcrop_Download.html
阅读全文
摘要:jquery-option-tree is a jquery plugin help you presentation &maintaina tree structure very easy with json data.you only need to build a nested json string on server-side.this is very easily with r...
阅读全文
摘要:Me No Blog Hella Ugly!April 10th, 20092 commentsWelcome to the 2000’s, self!I’m ever so excited to be blogging at a blog that not only understands code highlighting, but doesn’t loo...
阅读全文
摘要:Me No Blog Hella Ugly!April 10th, 20092 commentsWelcome to the 2000’s, self!I’m ever so excited to be blogging at a blog that not only understands code highlighting, but doesn’t loo...
阅读全文
摘要:Me No Blog Hella Ugly!April 10th, 20092 commentsWelcome to the 2000’s, self!I’m ever so excited to be blogging at a blog that not only understands code highlighting, but doesn’t loo...
阅读全文
摘要:http://stackoverflow.com/questions/3608287/installing-mysql2-gem-for-rails-3when you migrate from sqlite to mysqlyou need use rake db:schema:load to load schma to new dbrails destroy model GiftsProduc...
阅读全文
摘要:http://abeautifulsite.net/blog/2008/03/jquery-file-tree/有多咱语言,就是没有html我用的这个http://github.com/jzaefferer/jquery-treeview
阅读全文
摘要:ActiveRecord::ObserverObserver类会对外部的原始类内在生命周期内实现触发行为的“回调”做出反应。当一个“模型”类担负了不是它的核心职责的功能时,使用这种方式就会减少混乱。 从上面说明中可以看出,Observer类是对Callbacks类的一种变相的补充。补充的原因是因为有些“模型”为了迁就Callb...
阅读全文
摘要:rails g controller Product action1 action2The controller generator is expecting parameters in the form of generate controller ControllerName action1 action2. Let’s make a Greetings controller with an ...
阅读全文
摘要:http://www.netlingo.com/news/Top_1000_Google_Page_Rank_Sites.htm
阅读全文
摘要:http://www.ruten.com.tw/http://www.ruten.com
阅读全文
摘要:安装完Ubuntu 10.04后该做的几件事情版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息今天把实验室的一台台式机也装上了Lucid系统,在等待apt-get和代码编译的时间,正好把以前围脖上的一些笔记整理一下,方便以后再装lucid的时候查看。0. 必要的基本配置编辑/etc/sudoers,添加当前用户到sudoer组修改root口令添加完整的简体中文字符集支持:...
阅读全文
摘要:http://www.cutt.com/doc/report
阅读全文
|