NetworkedBlogs.com (beta) is an extension of the Facebook app NetworkedBlogs.

Raecoo @ Nothing Impossible

You're new here, aren't you?

NetworkedBlogs allows you to stay up to date with blogs you love. Click the Follow button to follow updates from this blog.
 

Information

Blog Name: Raecoo @ Nothing Impossible
Url: http://www.raecoo.com
Language: Chinese
Topics: web 2.0, Ruby on Rails, Python
Description: Nothing Impossible
Popularity: 1 Followers

Blog Feed

开启Safari的Web调试工具
在终端内输入如下内容即可:$defaults write com.apple.Safari WebKitDeveloperExtras -bool true重启Safari, 样子和Chrome的几乎一样, 看赶来还不错.UPDATE: 强制以标签打开网页$defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
解决Passenger的Unexpected end-of- file detected异常
今天在启动一个项目时出现了如下错误信息:Passenger encountered the following error: The application spawner server exited unexpectedly: Unexpected end-of- file detected. Exception class: PhusionPassenger::Railz::ApplicationSpawner::Error 运行环境: Apache + Passenger(2.2.7) + REE 1.8.7解决方法: 安装项目依赖的gem包, 如仍有异常请尝试卸载并重新安装依赖gem.
Ruby收取Gmail邮件
Gmail的POP3需要用SSL方式才能访问, 今天写了段代码才发现,原来Ruby 1.8.6原生的POP3类库并不支持SSL, 换成1.8.7后就可以了, 看来应该把所有环境里的Ruby版本都进行一下升级了.#!/usr/bin/env ruby require 'net/pop' require 'rubygems' require 'tmail' begin timeout(30) { # set SSL for gmail Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE) # raise exception when ruby version < 1.8.7 Net::POP3.start("pop.gmail.com", 995, "full-email-address", "password") do |pop| unless pop.mails.empty? puts "-- size #{pop.mails.size}" pop.mails.each do |email| begin p
使用Ruby解析图片EXIF数据获取坐标信息
最近在做一个项目时需要将图片EXIF信息解析出来并获取相应GPS坐标信息,用于在Google Map中使用, 找到了一些Ruby解析EXIF信息的类库, 相比之下还是 exifr这个gem不错, 零依赖,直接ruby调用.1. 获取EXIF信息require 'rubygems' require 'exifr' obj = EXIFR::JPEG.new('geo.jpg') if obj.exif? puts "--- EXIF information ---".center(50) hash = obj.exif.to_hash hash.each_pair do |k, v| puts "-- #{k.to_s.rjust(20)} -> #{v}" end end运行上述代码后效果如下: --- EXIF information --- --
安装FFMpeg
FFMPEG是一个开放源代码的跨平台的流媒体解码程序, N多的软件都采用它做为解码核心, 貌似还有一个叫 FFMPEG耻辱名单的玩意, 是指一些个商业公司不遵守FFMPEG的发布协议. 但毕竟是开源产品没有过多的法律保护, 也只能靠自控解决.FFMPEG的依赖关系比较复杂, 同事曾经自行编译安装未遂, 而后找到一个RPM源, 直接升级安装即可, 不用再为依赖关系和漫长的make过程而头疼. 安装过程如下(CentOS):1. 创建yum升级源配置文件(/etc/yum.repos.d/dag.repo), 并添加如下内容.[dag] name=DAG RPM Repository baseurl=http://apt.sw.be/redhat/el$releas

Followers

This blog has 1 followers. Visit the blog page on Facebook to see who's following this blog.
Follow

Popular in:

Not enough data.
Calculated for blogs with 20+ followers.

Related Blogs

This site uses BitPixels previews
Questions? contact: networkedblogs@ninua.com
Copyright (C) 2008, Ninua, Inc.