Asynchronous Database Access in Ruby - igvita.com (5)
share
digg
by
Ilya Grigorik (22)
on
igvita.com (22)
1 day, 6 hours
ago
permalink
These past few weeks have brought forward a few interesting developments in the Ruby database access layer. First, the guys at espace announced Neverblock: a Ruby 1.9 library which makes heavy use Fibers and non-blocking IO (RubyInside and InfoQ have the scoop). And shortly thereafter we saw the announcement of MySQLPlus (also a direct result of work around Neverblock): An enhanced MySQL database driver. With support for async operations and threaded database access. Nice! Asynchronous ...
The Open-Closed Principle for Languages with Open Classes (3)
share
digg
by
Dean Wampler (4)
on
Object Mentor Blog (27)
1 day, 7 hours
ago
permalink
We’ve been having a discussion inside Object Mentor World Design Headquarters about the meaning of the OCP for dynamic languages, like Ruby, with open classes. For example, in Ruby it’s normal to define a class or module, e.g., # foo.rb class Foo def method1 *args ... end end and later re-open the class and add (or redefine) methods, # foo2.rb class Foo def method2 *args ... end end Users of Foo see all the methods, ...
Whatever you write today will become legacy (1)
share
digg
by
Federico (4)
on
PHP::Impact ( [str blog] ) (6)
1 day, 21 hours
ago
permalink
Whatever you write today will become legacy. Legacy code is often written by people who thought they got it nailed, and later realize that the application is legacy. Not because of the application itself, but because of changes in themselves. “What the hell was I thinking?” Code is always the same, it’s your perception of it that changes. Code goes from “Best Code Ever” to “Legacy”. You are in the “Best Code Ever” phase now, ...
Zen of Python - uwagi (1)
share
digg
by
Jarosław Zabiełło (2)
on
Jarosław Zabiełło - BLOG (2)
5 days, 3 hours
ago
permalink
Filozofię języka Python najlepiej oddaje tzw. Zen of Python. Jest ono dostępne w jęz. angielskim z poziomu interpretera. >>> import this Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren’t special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In ...
Dangerous Gems (8)
share
digg
by
Tim Bray (9)
on
ongoing (42)
5 days, 19 hours
ago
permalink
Maybe I’m just being paranoid here, but I’m starting to get a little worried that RubyGems could be a nasty attack vector, given certain combinations of malice and stupidity. Six months ago, the Ape project picked up some collaborators with way more Ruby-savvy than I have, and in short order they moved it to RubyForge and made it into a Gem. Which means that anyone who uses RubyGems, i.e. every Ruby developer in the world, ...
Silverlight Dynamic Languages SDK 0.3 (1)
share
digg
by
noreply@blogger.com (Jimmy Schementi) (2)
on
jimmy.thinking (2)
6 days, 16 hours
ago
permalink
I've finally updated the Silverlight Dynamic Languages SDK with the newest DLR, IronRuby, IronPython, and JScript binaries and sources! Download the SDK! This release works with Silverlight 2 Beta 2. For more information on what is in the SDK, check out the previous release's post or the initial MIX'08 release's post. As usual, report any issues on the Issue Tracker, and feel free to ask any questions on the Discussions tab. Version 0.3.0 One noticeable ...
Object-Oriented File Manipulation (1)
share
digg
by
Adam Wiggins (8)
on
Adam @ Heroku (8)
6 days, 23 hours
ago
permalink
The file manipulation routines in Ruby's stdlib are a bit of a mess. Operations are scattered among different classes - File, Dir, and FileUtils. Methods often aren't where you expect them - like File.directory? but not Dir.directory?. But worst of all, they aren't object-oriented. You'd want to make calls like f.size or f.directory?, but instead you're stuck with File.stat(f).size and File.directory?(f). Pow is a library that attempts to clean up this mess. The file portions ...
NeverBlock, MySQL and MySQLPlus (3)
share
digg
by
oldmoe (4)
on
oldmoe (4)
6 days, 23 hours
ago
permalink
I have great news for MySQL users. A very nice side effect has emerged from the development of the NeverBlock support for MySQL. I am glad to announce the release of a new MySQL driver for Ruby applications. It builds on top of the original Ruby MySQL driver but it comes with two notable additions:Asynchronous query processing support Threaded access supportThanks to help from Roger Pack and Aman Gupta we were able to put the ...
Tutorial: Getting Started With SketchUp Plugins (2)
share
digg
by
Jim Foltz (4)
on
SketchUp Plugins (4)
1 week
ago
permalink
I have made a short, inter-active tutorial demonstrating some basic techniques for writing SketchUp plugins in Ruby. It covers the workflow of editing, saving and loading a script using a simple example.The tutorial does not cover learning the Ruby language, nor the SketchUp-Ruby API. View the Tutorial and let me know what you think.Tutorial Resources:Ruby Language (Download Ruby)Ruby DocumentationRuby EditorsSketchUp-Ruby API BlogSketchUp-Ruby API Class Reference
Interviewed on Alt.NET Podcast (1)
share
digg
by
Michael (229)
on
The Prokrammer (0)
1 week
ago
permalink
I had the pleasure of being interviewed along side Aaron Junod on the Alt.NET Podcast to discuss IronRuby. Michael Moore was a wonderful host and did an amazing job editing the conversation down to something tight. It was an exciting opportunity to talk about IronRuby specifically and Ruby in general. Hopefully it will help spark even more interest in it. On a personal note, I’m interested in any feedback you might have, from the technical ...
Juggernaut (1)
share
digg
by
bloid (48)
on
DZone: latest front page (207)
1 week
ago
permalink
The Juggernaut plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect is collaborative cms and wikis.
Flash Message Conductor (5)
share
digg
by
Robby Russell (19)
on
Robby on Rails (19)
1 week
ago
permalink
Do you find yourself copying and pasting the same code from Rails application-to-application as new projects start? Our team has a handful of projects in development right now and we notice that some of these reusable components tend to get out of sync when we bounce between projects. So, we’re making an effort to spot these and are creating a handful of plugins so that we can keep them updated between projects. (I’m sure that ...
JRuby 1.1.4 Released (1)
share
digg
by
Brennan Spies (4)
on
Ajaxonomy - The Study of Ajax and Other Interesting Web Technologies (10)
1 week
ago
permalink
The JRuby project, an implementation of the Ruby language on the JVM, has released version 1.1.4. Though a minor (maintenance) release, the new version introduces a number of improvements, including: A substantially re-written Ruby-Java integration layer. Big improvements in performance: about 2-20x. Reduction of garbage collection cycles (efficient memory usage). Experimental support for Ruby 1.9 (via the --1/9 flag) Started support for the win32 API Ported Rubinius' FFI subsystem for integrating with C libraries Addition ...
Logic-Junction: RubyEnd (1)
share
digg
by
Yukihiro -matz- Matsumoto (2)
on
Matzにっき (2)
1 week
ago
permalink
Logic-Junction: RubyEndStGITのパッチセットを眺めてたら 去年のRubyKaigiで発表されたRubyのパーサーを拡張して "end" の対応付けをチェックするパッチを、1.9対応にしたものを発見した。 -wがついている時にインデントが揃っていないことを警告するパッチ。 特に害はないのでコミットしようかしら? ツッコミを入れる
RubyOnda Widget (1)
share
digg
on
Bruno Miranda's Notebook (1)
1 week
ago
permalink
RubyOnda is a ruby news website in portuguese built by myself and Roberto. Today Felipe Mesquita built a nice little widget for those interested in showcasing the latest community news posted to RubyOnda on their own site. The code to insert the widget is: < script src="http://rubyonda.com/widget-embedded.js" type="text/javascript"> Here is what it looks like:
Ruby Security quick guide (9)
share
digg
by
Ola Bini (28)
on
Ola Bini: Programming Language Synchronicity (24)
1 week, 1 day
ago
permalink
I’ve looked around a bit and it seems that there is no real good guide to security programming in Ruby. Neither is there any book available (although Maik Schmidts book Enterprise Recipes with Ruby and Rails will be the best reference once it arrives). The aim for this blog entry will be to note a few things you often would like to do, and how you can do it with Ruby. The focus will be ...
Continuous Integration - in a Box (1)
share
digg
by
Julian (4)
on
The Build Doctor (0)
1 week, 1 day
ago
permalink
Chad Wooley just announced "CI in a box" - a wrapper script that gets CruiseControl.rb bootstrapped and running. Cinabox joins a stable of ready-to-run CI systems:Buildix which comes with the original CruiseControlCI Factory which sets up CruiseControl.NETAll split down the various Java, .NET and Ruby factions. I wonder if there's a Hudson based system in the works ...Link
Goo - Ruby Gem文档浏览器 (3)
share
digg
by
Robin Lu (11)
on
石锅拌饭 (11)
1 week, 1 day
ago
permalink
一般查看ruby gem 文档都会开一个gem server ,但多少有些不便,每次都要运行一个gem server 不说,浏览器本身也身兼数职,又要测试,又要收mail,又要停车,又要看文档,切换起来越来越不方便。索性写了一个ruby gem 文档浏览器 - Goo . 另一只龙。 主要功能就是查看gem 文档。除了查看文档,查看gem的代码也是了解gem必不可少的过程,所以也集成了在Finder和TextMate里打开gem的功能。虽然我在shell里也加了自动匹配打开gem的脚本,不过看着文档,一点就看到代码,还是比在Terminal和Safari之间切来切去要方便一些。 功能不多,源代码也非常之少,LOC只有两百多行,从决定动手到写完花了不到两天的时间。Cocao/Object-C也是开发效率相当高的组合了。源码分享在github。 支持Mac OS X 10.5,或许rubygems的版本也需要>1.2.0。目前版本0.2,可以到这里下载。 © Robin Lu for 石锅拌饭, 2008. | 本文链接 | 快来留言 | Add to del.icio.us Post tags: freeware, gem, hack, mac, ruby
Tab Sweep — Technology (3)
share
digg
on
ongoing (42)
1 week, 1 day
ago
permalink
I’d kind of gotten out of the habit of doing tab sweeps, largely because my Twitter feed is such a seductive place to drop interesting links. But as of now there are around 30 tabs open on my browser, each representing something I thought was important enough to think about and maybe write about. Some are over a month old. Some of them have been well-covered elsewhere. All I assert is that after I read ...