`
yNoooo
  • 浏览: 40455 次
  • 性别: Icon_minigender_2
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
用vim编写源代码,用gcc编译连结程序几乎已成为LINUX下程序设计的标准开发模式了,(当然emacs也是非常出色和流行的),本文教你如何在Windows下做到同样的事情。 gcc和vim都有支持不同平台的版本,win32也当然不例外。此外,配合不同的库像WINAPI、GTK+等可开发出GUI程序。 安装GCC   gcc的官方主页(http://gcc.gnu.org)上好像有for win32的版本,但MinGW、CYGWin、Dev-C++、DJGPP等都集成了GCC win32版,以下以MinGW(Minimalist GNU For Windows)为例:到Sourceforge( ...
有将近三个月没有用rails,结果怎么启动都忘记了,看来还是做笔记比较重要 . 1.因为原来的代码已经存在,且mysql重装了,首先要怎么把那些数据库还原. 其中遇到了mysql安装后就是连接不上的问题.问题提示:  host is not allowed to connect to this mysql server 可能是我把一些服务项目关闭了,结果没有实现,后来再重新开起来就可以了. 2. 用migrate后出现multiple migrations with the same number 4 ,看了半天后来知道是migrate里面有两个表名前面 都是4_create_table,产 ...
最近很流行代码搜索,对开发人员确实帮助不少,这里做个汇总,如果有其他比较好的,可以推荐下~推荐标准:快速、支持语言较全、Ajax支持1、gotAPI [ http://start.gotapi.com/ ]支持包括HTML, CSS, CSS2, Javascript, ActionScript,Google code, XML, XSL,XPath, XSD, PHP, Ruby, Python,Perl, AS, ColdFusion, C, C++, MySQL,PostgreSQL, oracle,Java在内的编程语言。使用Ajax的输入框技术,实时下拉列表提示和快速定位~确实很方便, ...
Rails框架网络服务的基本概念: http://manuals.rubyonrails.com/read/chapter/67 Rails框架Action Web Service API: http://rails.rubyonrails.com/files/vendor/rails/actionwebservice/README.html 网络服务实例: http://www.mindspring.com/~eric_rollins/rails/DwarvesOnRails.html
1.iconv命令的用法。 Usage: iconv [--binary] [-c] [-s] [-f fromcode] [-t tocode] [file ...] or:    iconv -l 2。使用iconv -l 列出所有的编码 3。使用iconv, 下面是把iso8859-1编码转换到GBK编码的例子 require 'iconv' conv = Iconv.new("GBK", "ISO-8859-1") result = conv.iconv("hello") result << conv.icon ...
我用render_to_string取得view的数据,并保存到文件里, 但是打开文件里面的中文却显示成unicode的样子,用了CGI的unescapeHTML,escapeHTML,escape,unescape,escapeElement,反正不知道是哪个就全部都试了一次,不知道是怎么回事,文件里面的就是没有变化,还是unicode的内容,各位请给点意见吧
1。jquery下载 http://docs.jquery.com/Downloading_jQuery 2。简单使用 <html> <head> <script type="text/javascript" src="path/to/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("a" ...
1.javascript中的加密解密函数 以 Escape 加密/ UnEscape 解密 例子 : 请把你需要加密的内容粘贴在这里! 加密后 %u8BF7%u628A%u4F60%u9700%u89+81%u52A0%u5BC6%u7684%u5185%u5BB9%u7C98%u8D34%u5728%u8FD9%u91CC%uFF01 为什么要用encodeURIComponent()代替escape() 2.encodeURI 方法 将文本字符串编码为一个有效的统一资源标识符 (URI)。 encodeURI(URIString) 必选的 URIString 参数代表一个已编码的 ...
        javascript函数大全               javascript函数速查         JavaScript 对象与数组参考大全               JavaScript 的网站         怎样取页面元素               最常用的10个javascript自 ...
http://birdgu.iteye.com/blog/36970
在lib\tasks里面添加a.rake desc "Create blank directories if they don't already exist" task(:create_directories) do     #这个例子可以创建文件   # The folders I need to create   shared_folders = ["icons","images","groups"]     for folder in shared_folders         # Check to ...
在用到select 的时候总是用得很不顺 在select中onchange ,其实是调用js,但是想用到ajax的调用,即用onchang ,更新页面中某个标签的内容,在网上找到下面的内容。 ruby 代码   <p>     <b>Country</b><br />     <%= f.select (:country_id, Country.find_all.collect {|c| [ c.name, c.id ] },       { :include_blank => true },  ...
redcloth使用textile语法  http://textile.thresholdstate.com/ 用法:require ‘redcloth’ html = ”strong text and emphasized text” r = RedCloth.new(html) r.to_html 至于redcloth段落缩进用的是前面加空格吧  <blockquote _moz_dirty=""><div align="left" _moz_dirty="">目前我还没有适用<br _moz_di ...
从http://rubyforge.org/frs/?group_id=12&release_id=12242 安装里面的exe文件 打开readme.html按照里面的install说明安装 有问题看这里http://rmagick.rubyforge.org/install-faq.html#win ruby里面的应用 http://rmagick.rubyforge.org/ ruby 验证码 http://www.iteye.com/topic/40766 ruby的安装 http://www.iteye.com/topic/90176
Prerequisites The Ruby DBI module includes the code that implements the general DBI layer, as well as a set of DBD-level drivers. Many of these drivers require that you have additional software installed. For example, the database driver for MySQL is written in Ruby and provides a binding to the ...
Global site tag (gtag.js) - Google Analytics