摘要: Ruby 读写文件 Posted on 2006-08-23 20:58 Jackei 阅读(3329) 评论(8) 编辑 收藏 今天被人投诉说 blog 多日未更新,影响了阅读情绪,偶赶紧开动起来 ^_^ # Part one aFile = File.new("C:\\1.txt","w") aFile.puts "the 1" aFile.puts "the 2" aFile.close ...阅读全文
朗志工作室(Langzhi Studio)江浙沪一带找工作中,欢迎联系 |
公告 |
02 2011 档案摘要: Ruby 读写文件 Posted on 2006-08-23 20:58 Jackei 阅读(3329) 评论(8) 编辑 收藏 今天被人投诉说 blog 多日未更新,影响了阅读情绪,偶赶紧开动起来 ^_^ # Part one aFile = File.new("C:\\1.txt","w") aFile.puts "the 1" aFile.puts "the 2" aFile.close ...阅读全文
摘要: 如果是新的机器,需要添加公钥到github上ssh-keygengit clone git@github.com:mlzboy/geilibuy-blog.git wordpresscd ~/wordpress/public从远程下载一份数据库的配置文件到本地scp mlzboy@boy38girl.com:/home/mlzboy/wordpress/shared/wp-config.php ....阅读全文
摘要: 如果是新的机器,需要添加公钥到github上ssh-keygengit clone git@github.com:mlzboy/geilibuy-blog.git阅读全文
摘要: http://www.taobao.com/help/wangwang/wangwang_0628_12.php阅读全文
摘要: http://hi.baidu.com/bubu_99/blog/item/1589a50d0d2f96e837d122e8.html阅读全文
摘要: http://www.infoq.com/cn/news/2011/02/regular-expressions-unicode阅读全文
摘要: http://sendgrid.com/pricing.htmlhttp://mailchimp.com/pricing/阅读全文
摘要: http://sendgrid.com/pricing.html阅读全文
摘要: http://www.net.cn/static/ba/ 提示:域名成功15天后才能打印证书。域名自助管理系统http://diy2011.hichina.com/cgi-bin/login阅读全文
摘要: http://www.net.cn/static/ba/ 提示:域名成功15天后才能打印证书。阅读全文
摘要: post by 雨天等晴 / 2010-9-23 15:49 Thursday 修改git提交信息到编辑器为vi [linux操作] git commit -m 默认使用nano.在 .git/config 的 [core] 段中加上 editor=vi,便可修改成vi,SVN的没试过,应该也可以。如果只是想临时使用vi的话,可以使用 export EDITOR=vi。git branch来查看...阅读全文
摘要: windows7下的virtualbox中安装ubuntu后如何挂载共享文件夹 现在重启电脑:sudo shutdown -r now 分页: 1 / 1 [ 8 篇帖子 ] 打印预览 上一个主题 | 下一个主题 作者 内容 1楼 羽化仙 文章标题 : windows7下的virtualbox中安装ubuntu后如何挂载共享文件夹发表于 : 2011-01-13 17:16 注册: 2011-0...阅读全文
摘要: 给力百货(www.geilibuy.com)定位于日用小百货的量贩平台,依托义乌小百货集聚的货源及物流的优势,打造价格、物流的洼地。和之前的义乌小额批发网是一脉相承的。 技术选型 django or rails3 之前在开发15-1688时,曾有过介绍,使用的是nginx+python+bottle+solr的组合,后端使用的爬虫使用也是使用exilir+代码生成器的模式生成python脚本来采取...阅读全文
摘要: 讯捷的信号不错,不过只有windows驱动,应该是能找到,反正光盘里是没有腾达功能强,有linux ,mac驱动,信号不好,两个都有天线,阅读全文
摘要: 更改源sudo gedit /etc/apt/sources.listdeb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiversedeb ...阅读全文
摘要: 更改源sudo gedit /etc/apt/sources.listdeb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiversedeb ...阅读全文
摘要: ubuntu 10.04 中文设置 六 19 奶牛 Ubuntu 1,464 viewsGo to comment 用ubuntu 10.04的live CD安装完系统之后会发现,中文支持相当不完整,很多地方都是中英文混合的,下面奶牛就来说说怎么进行中文设置来让系统彻底汉化。 首先,打开system下的administration 下的language support,在language选择ch...阅读全文
摘要: CorelDRAW12中文版的!有sn的!那里能下载的到?谢谢大家了 悬赏分:0 | 解决时间:2006-6-2 16:12 | 提问者:gulamaloveyou 最佳答案 下载地址:
<a href="http://www.syku.net/down/soft/5117.htm" target="_blank">http://www.syku.net/down/soft/5117.htm</...阅读全文
摘要: CorelDRAW12中文版的!有sn的!那里能下载的到?谢谢大家了 悬赏分:0 | 解决时间:2006-6-2 16:12 | 提问者:gulamaloveyou 最佳答案阅读全文
摘要: http://baike.baidu.com/view/348859.htm阅读全文
摘要: 我觉得virtualbox真是一个不错的产品,或是基于xen kvm的不错,只是这个被用户所认知,做二次开发可能还行,但是依久还是需要很大的功力, 我不清楚阿里云到底是什么,但是我觉得virtualbox不错,国人可以做一个linode一样的,依赖于这个平台阅读全文
摘要: http://www.vmbest.com/school/2-virtualbox-school/316-virtualbox 复制vdi http://blog.sina.com.cn/s/blog_591a2c940100aree.html 在VirtualBox的快速修复界面里,可以随时生成当前状态的备份。当生成了备份之后,会在Snapshots目录下创建一个新的VDI文件,之后对当前状态所...阅读全文
摘要: 办事不牢靠 不信人信合同 非当面不信 万网事件 盛付通事件 销售的话不能信 更加谨慎待人 多学着点阅读全文
摘要: http://www.net.cn/service/ziliao/ywwd/hyid/200602/357.html阅读全文
摘要: http://www.centos.org/docs/2/rhl-gsg-en-7.2/s1-creating-account.html在root账户下useradd mlzboypasswd mlzboy可以重新生成密码还是进入root权限编辑sudo vi /etc/sudoermlzboy ALL=(ALL) ALL这一行加到root ALL=(ALL) ALL的下面然后:wq!以上参考h...阅读全文
摘要: http://centos.ustc.edu.cn/centos/5.5/isos/i386/阅读全文
摘要: http://www.verycd.com/topics/114069/centos 5.0http://www.verycd.com/topics/122933/http://www.verycd.com/topics/122933/redhat5.0http://www.verycd.com/topics/152039/http://www.verycd.com/topics/152039/h...阅读全文
摘要: 不如建行另外买手机要买两个一样款的,这样丢了一个还有一个替,因为后面再过几个月就会没货,手机的更新换代绝对的快,三个月肯定全是新品了,这里边的流程,我觉得比较软件工程复杂得太多太多了,好事要成双,以后买东西都要买双份,我有点明白这个道理了阅读全文
摘要: 经营性网站备案管理办法 第一章 总则 第一条 为了进一步规范经营性网站备案行为,保护经营性网站所有者的合法权益,促进互联网经营活动的健康发展,根据《中华人民共和国公司法》、《中华人民共和国企业法人登记管理条例》、《互联网信息服务管理办法》等有关法律、法规的规定,制定本办法。 第二条 本办法所称经营性网站,是指企业和个体工商户为实现通过互联网发布信息、广告、设立电子信箱、开展商务活动以及向他人提供实...阅读全文
摘要: http://help.github.com/removing-sensitive-data/照着做似乎没有用http://yihui.name/cn/2010/12/animation-update-1-1-5/再看了上面这个链接就可以了http://blog.enjoyrails.com/2008/12/31/git%E4%B8%80%E5%88%86%E9%92%9F%E6%95%99%E7...阅读全文
摘要: http://help.github.com/removing-sensitive-data/http://blog.enjoyrails.com/2008/12/31/git%E4%B8%80%E5%88%86%E9%92%9F%E6%95%99%E7%A8%8B/阅读全文
摘要: http://www.w3help.org/zh-cn/causes/BW5007阅读全文
摘要: cursor:pointer 与 cursor:handAuthor: guoshuang这个是标准“手”形样式这个“手”形只有IE可以看到这是小雨手册翻译自msdn的相关内容可是 pointer 才是css2 的标准属性,压根就没有hand 这个东西。http://www.zvon.org/xxl/CSS2Refer...阅读全文
摘要: 第 16 章 总结:Rails本地化(windows环境) 上一页下一页 第 16 章 总结:Rails本地化(windows环境) 在开发RoR的时候,本地化是一个问题,大多数介绍文章使用UTF-8来解决本地化的问题,这里提供另外一种解决途径来解决,比UTF-8设置简单(并没有考虑使用AJAX的情况): 为Rails app设置编码方式:这里把charset设置为gbk编码方式,我们知道每次re...阅读全文
摘要: str.capitalize! → str or nilModifiesstrby converting the first character to uppercase and the remainder to lowercase. Returnsnilif no changes are made. Note: case conversion is effective only...阅读全文
摘要: gb2312编码页面post到utf-8页面乱码解决方案 2010年08月17日 星期二 16:34 说实话,要是所有网站都采用统一编码,根本就不会出现这样或那样的编码问题,不过现在的问题是既然已经存在了n种编码了,总得想办法解决吧。由于目前国内 gb2312、utf-8的编码网站较多(big5等忽略不计),当想gb2312从页面提交表单至utf-8时,问题就来了。解决方案:在gb2312页面的f...阅读全文
摘要: ERROR 1045 (28000): Access denied for userMySQL中出现连接错误: ERROR 1045 (28000): Access denied for user----------------------------------------------------------------------------------1.添加用户shell>m...阅读全文
摘要: 64 位ubuntu 安装 32位兼容包刚看了一下,wordpress才11个表太神奇了,这么复杂的系统,amazing参考以下文章http://dueam.org/2010/09/ubuntu-server-%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AElnmp%E5%B9%B6%E5%AE%89%E8%A3%85wordpress/(主要)sudo ...阅读全文
摘要: http://www.ibm.com/developerworks/cn/aix/library/au-rsyncfamily/?S_TACT=105AGX52&S_CMP=tec-csdn http://hi.baidu.com/ghxandsky/blog/item/2ad28477b336b108b051b9f3.html http://hi.baidu.com/ljx_ub...阅读全文
摘要: d5653,d5663都是动车去往金华方向,时间不同 要找寻一个模式,是需要时间和精力,发现各种不同的情况 才有感知变化的可能阅读全文
摘要: mlzboy@15-1688:~$ md5sum ruby-1.9.2-p136.tar.bz252958d35d1b437f5d9d225690de94c13 ruby-1.9.2-p136.tar.bz2阅读全文
摘要: 由于引入了memcahced作为session及缓存的实现,因此下面着重介绍如何安装memcached重点参考http://www.cnblogs.com/lexus/archive/2011/02/09/1950379.html本文由上文整理而来sudoapt-get install libevent-devwgethttp://memcached.googlecode.com/files/me...阅读全文
摘要: sudo adduser <用户名>按提示输入更改初始root账户密码ubuntu修改初始root密码2007-01-24 20:33$sudopasswdroot就是这么简单前提是你进行更改的这个账户是管理员账户将新加用户加入suoder组sudo adduser mlzboy admin备份源sudo cp sources.list sources.list.bak...阅读全文
摘要: Memcached的图形化监控2009/04/26 05:40 P.M. 今天在看NinGoo的博客时发现的好东西,在这记下。 查看Memcached的状态可以使用命令或者个memcache-tool,但都不方便。因此就有了php写的web版的监控. 网站:http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcph...阅读全文
摘要: http://grosser.it/2009/10/21/sslhttps-for-passenger-in-development-on-ubuntu-jaunty/ http://grosser.it/2010/05/02/lucid-lynx-a-fresh-install-with-ruby-rails-passenger-etc/ 这遍文章介绍的是一篇大众型的新系统安装ror相关的应用软...阅读全文
摘要: http://allenshao.javaeye.com/blog/677519阅读全文
摘要: 下面两篇文章,讲了,memcached和passenger一起使用的问题,很重要http://info.michael-simons.eu/2009/03/23/phusion-passenger-and-memcache-client-revisited/http://www.productionhacks.com/2010/04/15/memcached-and-passenger-conne...阅读全文
摘要: http://www.cowboycoded.com/2010/07/07/setting-up-rails-3-on-rackspace-cloud-servers/阅读全文
摘要: http://www.yangzhiping.com/tech/ubuntu-ree-nginx-passenger-rails3.blog.html阅读全文
摘要: http://ywencn.javaeye.com/blog/609666 http://blog.xdite.net/?p=1029阅读全文
摘要: http://www.162cm.com/archives/1156.html阅读全文
摘要: http://hotsunshine.javaeye.com/blog/899222 redis setup http://snippets.aktagon.com/snippets/320-How-to-install-and-use-Redis-with-Ruby Redis是什么? 这里是redis的主页:http://code.google.com/p/redis/。它是一个key-val...阅读全文
摘要: Style: Background Foreground Link Color Link Visited Size: Width:More ▼ Open ModeOverlay OriginalReplace Original FontArialTahomaVerdanaGeorgiaSegoeTimesBookComicCourierTrebuchetPalatinoLucida Tex...阅读全文
摘要: redis-store/http://stackoverflow.com/questions/4221735/rails-and-caching-is-it-easy-to-switch-between-memcache-and-redishttp://stackoverflow.com/questions/4188620/redis-and-memcache-or-just-redishttp:...阅读全文
摘要: http://blog.xdite.net/?p=1029rails使用memcache缓存session收藏前提条件:安装了memcache server以及rails的客户端memcache-client修改environment.rb:找到config.action_controller.session_store = :active_record_store改为config.action_...阅读全文
摘要: http://www.thewojogroup.com/2008/09/remember-mes-with-rails/Remember Me’s with Railsby Brett Wejrowski on September 26th, 2008I recently had a need for a login system that needed a ‘remember me’ func...阅读全文
摘要: Copy a Disk Image Over SSHPublished: August 13, 2009 byPhil ParadisIf you'd like to copy a Linode's disk image to a system that resides on a different network, you can easily do so using SSH and a Fin...阅读全文
摘要: methodbeginning_of_dayRuby on Rails latest stable(v2.3.8) -0 notes- Class:ActiveSupport::CoreExtensions::Date::Calculationsv1.0.0v1.1.0v1.1.1v1.1.6v1.2.0v1.2.62.0.02.0.12.0.32.1.02.2.12.3.22.3.8v3.0.0...阅读全文
|