2007-01-01から1年間の記事一覧

OpenID in Edge Rails

So we got millions of people with an OpenID by virtue of their AIM account. Great. Now they just need a place or two to actually use it. -- DHH changeset 6245 -- Added simple OpenID authentication Rails plugin wrapper for ruby-openidSee al…

Backends failover tracking

Pretty useful piece of code: is_pid_alive(Pid) when is_pid(Pid) -> rpc:call(node(Pid), erlang, is_process_alive, [Pid]).Checking if some process is alive. But working only with Erlang processes. I cannot check the status of some general TC…

reverl - REVerse proxy in ERLang

Created the reverl project on Google Code. Reverl is reverse proxy, load balancer and HTTPS front-end for Web server(s), implemented in Erlang. Before to start the real coding, I needed a more general proxy(gateway) behaviour. What exactly…

Cookie Based Sessions in Current Rails

Seems Cookie Based Sessions are the New Default in Edge Rails: ...Cookie-based sessions are just faster to retrieve and process than hitting the file-system on every request. Plus, I would imagine they scale considerably better as they’re …

Common Concurrency Patterns

Cast (send msg) A ! B Event (get msg) receive A -> A end Call (RPC) A ! {self(), B}, receive {A, Reply} -> Reply end Callback receive {From, A} -> From ! F(A) endSome trickery follows ;).Here something cool - Parallel RPC: par_rpc([A, B, C…

Erlang Mantra

Origin: Making Reliable Distributed Systems in the Presence of Software Errors Everything is a process. Processes are strongly isolated. Process creation and destruction is a lightweight operation. Message passing is the only way for proce…

14th Ruby Kansai Workshop

Today (17-Feb-2007) was the 14th Ruby Kansai meeting in Kyoto. Some notes on Stikipad (and copy on my wiki). For bad luck both Stikipad and JunebugWiki cannot do trackbacks, so I'll use this diary to ping the event page. Interesting conver…

Japanese OpenID

I have already my OpenID.ne.jp registered ;)

Search Erlang-related information

Started Google Co-op powered Erlang-related Search Engine. Enjoy Update 09-Feb-2007: Also some tinyurl for the search machine

Software project management tool

...Devalot is a software project management tool. Think about it this way: take the best features from applications like Trac, Collaboa, and GForge, then sprinkle in a few features from Mephisto and Typo...

Interconnecting Erlang Nodes

I have an OpenVPN -based VPN. A put some notes on connecting Erlang nodes, running on the VPN machines on my wiki. Erlang is for geeks ;)

Keeping Rails running at Dreamhost Part 2

...I’ve finally gotten my 500 error rate down to 0 by making some minor changes to the signal handling code of dispatch.fcgi. If the dispatch.fcgi process is in the midst of handling a request I defer letting it be killed until the request…

erlang.org is down

The Open Source Erlang/OTP (http://www.erlang.org/) and the Commercial Support (http://www.erlang.se/) websites are down for several days. Fortunately there are two mirrors where you will find the downloads: Uppsala University, Sweden Soft…

Custom Ruby Search Engine

...I went to the Google CO-OP CSE website and created a new project named “The Ruby Kitchen Sink” and to this engine I added about 200 different ruby related blogs which I found from rubycorner.com and next I took a look at the top 100 dow…

Yaws-1.66 and "exec: 1: setuid_drv: not found"

Yaws-1.66 have a problems, compiling ot Ubuntu edgy. The problem and the solution. --- yaws-1.66.orig/configure.in 2006-06-07 22:07:31.000000000 +0200 +++ yaws-1.66/configure.in 2007-01-19 15:48:19.000000000 +0100 @@ -171,7 +171,7 @@ case …

Erl -noshell

Just a small shell wrapper to execute Erlang programs without starting the interactive shell. Saving time when working with sample code from the tutorials ;) #!/bin/bash # # Purpose: execute erlang program from the command line # side effe…

Started studing Erlang

From some time i'm trying to study Erlang. Mostly because of the elegant way it handling a huge numbers of threads. Some day I'm hoping to replace Pound with a distributed system of Erlang-based loadbalancers/reverse proxies. Good, but not…

Lingr API

...The Lingr API is a simple, HTTP-based REST protocol that enables anyone to interact with, extend, and mashup Lingr in whatever wacky way they want.... ...Using the Ruby Lingr API toolkit, a Ruby programmer can be up and talking to our A…

Fork JavaScript

Fork is a JavaScript library with Ajax, Events, DOM manipulation, etc. Fork is a general purpose library with a few bonus lines in the Ajax library specifically for use with Ruby on Rails however the library can be happily used outside of …

Basic Authentication for Camping

Small is smart ;) Another bright idea: Basic Authentication for Camping. No need from difficult admin controllers/methods. Good.

MicroRails

RoR

minimal = KISS = i like it :) Camping is a web framework which consistently stays at less than 4kb of code Mosquito is a simple test framework for why the lucky stiff's Camping web library. It provides simple hooks and a few assertions for…

6th Kansai Rails meeting in Kobe

After small timeout I found a time to put some notes for the last Rails meeting in Kobe. Sometimes StikiPad is down (specially when i need my notes ;) ), so like a work around will try to duplicate all notes on the self-hosted Junebug-powe…

Deploying Rails google group

From the About page: Discussions related to deploying applications built with Ruby on Rails.From the RoR ML: ...A few of us decided that it would be a good idea to expand on some of the deployment-related conversations in another mailing l…