2006-01-01から1ヶ月間の記事一覧

Rails hosting in Japan?

RoR

Acording to Web Hosts that support Ruby on Rails: Hardfocus Media Full-service hosting in Japan. cPanel, Ruby on Rails, FastCGI, PHP, MySQL, etc. (Support in English). Hm, who are Hardfocus Media? Who is providing this service? And 1000 ye…

ActiveRecord goes :through

RoR

In Rails 1.1, the :has_many method has a couple of new parameters that allow us to effectively bridge an intermediate object...A basic bridging is as simple as adding a new :has_many method on the two main objects, adding a :through parame…

Launching Rails at the Speed of Lite

A relatively unknown webserver from LiteSpeed Technologies claims to be six times faster than Apache with a PHP interface that is 50% faster than mod_php...Litespeed webserver is available in 3 editions, the standard edition being free (fo…

How To Protect Your Rails Apps Against Cross Site Scripting Attacks

RoR

The issue of Cross Site Scripting (XSS) vulnerabilities in web applications has been getting a lot of attention lately due to hacks on high-profile sites such as LiveJournal...The attached file (html_escaper.rb) makes it easy to protect yo…

Mongrel HTTP Server 0.1.2

RoR

...The 0.1.2 release sports a nifty fresh all C URIClassifier that's a hell of a lot faster. This has made things very quick and could become the basis for an incredibly good caching mechanism in the future.... Warning: ...This release als…

Change the Xen scheduler

Q: I am experiencing a heavy slowdown of the entire dom0 and all other domUs if *one* domU gets under heavy load.Is there any way to tighten this domU by adjusting something like scheduling? A: You can use elevator=cfq as the command line …

Lighttpd 1.4.9 is buggy

Lots of people on the Rails ML reported that problem on different OSes - Linux, FreeBSD and OS X. Better stay with 1.4.8

Shovel

RoR

Shovel is a customized Switchtower deployment file to setup config files on TextDrive in order to make it easier to start running Rails with lighttpd. It could also be modified to work with other shared hosts who run lighttpd.

RailsCron 0.2

RoR

RailsCron is a way to execute background tasks using your Ruby on Rails environment. The RailsCron object is an ActiveRecord, so you can manipulate it in familiar ways. RailsCron SVN Repository

Reverse Proxying SSL Connections To Rails

RoR

We had the same problem. Needed apache for subversion and lighttpd for rails projects.See also: lighttpd, apache 2 and rails

Indexed Search Engine 0.1.3 Released

RoR

Indexed Search is a simple, pluggable engine for rails applications which can be used to enable full text indexed searches within an application.

Mongrel 0.1.1 -- A Fast Ruby Web Server

RoR

Mongrel is a web server that performs much better than WEBrick (1350 vs 175 req/sec) and only has one small C extension...It uses some Ruby 1.8.4 stuff and it uses a C extension for the HTTP parsing. The C is all ANSI so you should be OK..…

Camping, a Microframework

RoR

Camping is a web framework which consistently stays at less than 4kb of code...The idea here is to store a complete fledgling web application in a single file like many small CGIs. But to organize it as a Model-View-Controller application …

And again for templates

RoR

Markaby for Rails: why the lucky stiff and Tim Fletcher have released a pretty cool templating language for Rails called Markaby that looks like Builder, but assumes a few more things to make it even more succinct and targeted against HTML…

Testing C with Libtap

Libtap is a library for testing C code. It implements the Test Anything Protocol, which is emerging from Perl's established test framework.

p2p is the way to go

...The distribution of a file to a large number of hosts is a time consuming task, even if the size of the file is modest...Using cooperative methods where each client that already has downloaded the file serves another client, this time c…

Why to switch to Mac

Fun

From somebody's weblog: I switched to 12" 867mhz pbook 2.5 years ago and i don't regret it one bit. I am a certified Windows/PC technician and make a lot of money from those infected Windows machines. That's why i use a Mac. ROFL :)

Encoding in Rails

RoR

By default, Ruby has no encoding or character set support in its String class... ...Some of this behaviour can be fixed with the jcode library... $KCODE = 'UTF8' require 'jcode'...Another solution is the Unicode library by Yoshida Masato. …

Shocto

A shell, written in Ruby, for any *nix like OS that allows you to run commands on several hosts at once using SSH. You can create your own commands very easy. Saving the whole session in YAML file.

O'Reilly Ruby Blog

RoR

The O'Reilly Ruby group weblog covers all the latest in the world of the Ruby programming language with some of the languages leading programmers. From personalities, articles, developments, books, conferences, and exciting applications, O…

Subversion 1.3.0 released

Have already native Ruby bindings. Yahooooo! ...SWIG/ruby bindings: complete API coverage; automatic memory management; greatly expanded test suite...