Rich Text Editor for your Rails Applications

Posted by stoyan Wed, 26 Apr 2006 08:39:00 GMT

via Aidan Finn’s blog :

widgEditor is a small simple lightweight editor. It provided basic rich functions such as bold, italics, links, lists, images and headings. Rails integration:

  • Download widgEditor and uncompress
  • Copy the widgEditor.js file into …/public/javascripts folder
  • Copy the widgEditor.css file into …/public/stylesheets folder
  • Copy all the images from the widgEditor distribution …/public/images folder
  • Include the javascript and css files in your layout file
  • Give any text field you want to be an editor field a class of ”widgEditor”
Example:
<%= stylesheet_link_tag 'widgEditor' %>
<%= javascript_include_tag "widgEditor" %>
<%= text_area 'node', 'content', :cols => "50", 
    :rows=>"3", :class=>"widgEditor" %>

Posted in Programing, Ruby, Ajax | no comments

Park Place, an Amazon-S3 Clone in Ruby

Posted by stoyan Fri, 07 Apr 2006 16:25:00 GMT

Via RedHanded :

Park Place , a clone of Amazon’s S3 (Simple Storage Service.) It’s written entirely in Ruby, with heaps of help from the Camping 4k web framework. Oh, and no SOAP support to speak of.

gem install camping --source code.whytheluckystiff.net
gem install mongrel activerecord
svn co http://code.whytheluckystiff.net/svn/parkplace/trunk parkplace
cd parkplace/lib
ruby parkplace.rb

Great. Your own private S3. Now you can try all S3-based solutions for free.

Posted in Programing, Ruby, Ajax | no comments

Rubricks - Rails-based CMS

Posted by stoyan Fri, 31 Mar 2006 15:16:00 GMT

Rubricks is a new Ruby on Rails based CMS. The demo looks pretty good. For bad luck it’s crashing my Firefox browser everytime I tryed it :( Working with Safari.

The english site is still not fully functional (the registration at least working). If you decide to go with the japanese site , the registration is different for the both sites, so you cannot try both of them with one registration. Heavy Ajax usage – be sure your browser have JS enabled.

2006/04/02 Update: And another Rails-base CMS Eribium (the demo is also available)

Posted in Ajax, Ruby, Programing | no comments

Lua - the silent new web 2.0 player?

Posted by stoyan Tue, 28 Mar 2006 07:27:00 GMT

Everything started with a post, benchmarking cherrypy agains other similar web servers . Nothing special, we can see how good Mongrel is ;) What catched my attention was the lines about LuaWeb2:
[Mongrel]
...
Requests per second:    386.31 [#/sec] (mean)

[LuaWeb]
...
Requests per second:    927.04 [#/sec] (mean)

What the hack… In general I like Lua , because of the small size, easy to extend and embed, easy to learn. I made several simple application before, but never gone too deep in my Lua experiments. So what I found now was pretty amazing and surprized me. For me Lua seems pretty much ready for web 2.0 applications development :

  • LuaForge—community portal, very active – a lot of interesting applications
  • Kepler—Web development platform, runs under Windows, Linux, OSX and a number of other operating systems, allows the use of SQL, LDAP, XML, SOAP and other standards! LuaFilesystem, LuaSQL, LuaLDAP, CGILua…And see this: LuaJavaallow scripts written in Lua to manipulate components developed in Java, LuaJava also allows Java to implement an interface using Lua! Whaaaau…
  • CGILua currently supports CGI, FastCGI, mod_lua (for Apache), ISAPI (for Microsoft IIS), Servlets (for Tomcat), LunaticPython (for Zope) , Xavante (a Lua Web server that supports CGILua natively) as Launchers
  • Xavante—Lua HTTP 1.1 Web server that uses a modular architecture based on handlers

A little more googling give me also this:

-- from DB/TestModel.lua
DBModel:load( function() 
        Is( Book ) 
        Has( title ) 
        Has( price ) 
        HasOne( publisher ) 
        HasMany( authors ) 
end )

Looks familiar a ;)

It’s just a question of time somebody to combine this with some of the so many existing Ajax frameworks.

Posted in Programing, Ajax | no comments

COMET - the next stage of AJAX

Posted by stoyan Mon, 27 Mar 2006 02:54:00 GMT

The new player on the Web 2.0 scene? Ajax improved the UI, Comet seems more server-side oriented. Via a persistent HTTP connections it making the communication with the server “push-based” – the server, asynchroniously pushing data to the client side, based on some events. Better than Ajax for community-driven applications.

Bad according to some ppl, it can be just an Ajax pattern – HTTP Streaming . Still pretty long and informative discussion on Digg .

Posted in Ajax, Programing | no comments

Lightweight Web 2.0

Posted by stoyan Wed, 15 Mar 2006 06:17:00 GMT

Interesting lightweight combination will be:

Somebody already done it?

Posted in Programing, Ruby, Ajax | no comments

9th Rubykai in Osaka Notes

Posted by stoyan Mon, 13 Mar 2006 03:17:00 GMT

To test the new wiki , i put there my notes from the 9th Ruby meeting in Osaka previous week. Interesting: now I can easy move pages between wiki, when they are work in progress and the typo pages, when they are finished.

Posted in Programing, Ruby | no comments

One ring to lead them all...

Posted by stoyan Wed, 08 Mar 2006 13:13:00 GMT

It’s not about famous The Lord of the Rings movie. It’s about increasing the performance via using the unified tools. What I’m talking about:

  • My everyday usage programming language of choice is Ruby
  • My web applications are in Ruby: Ruby On Rails
  • I hope my GUI programming will be in Ruby: RubyCocoa
  • My automation tools are in Ruby: Rake (building), Capistrano (deployment)
  • My web templates are in Ruby: eRb

The same is true for my online tools (the markup I’m using for creating the content):

All this make me productive (I hope, better ask my boss ;) )

Posted in Programing, SysAdmin, Ruby | no comments

LightS5

Posted by stoyan Tue, 07 Mar 2006 02:29:00 GMT

For the Second Rails meeting in Osaka I needed to prepare some slides for my presentation. Usually there is no projector there, but we have network, so I thought it will be good everybody to access slides with their own browser. Before I used the great S5presents open-source web-based slideshow application. I even made some modifications to it.

For the current presentation I wanted to use one of the OpenBlockS boxes we have around. So I installed Debian 3.1 (document is in japanese) on it, added ruby and rubygems . The problem was, that the box come with only 64MB RAM, that’s why I needed a light versions for all software.

For the web server I wanted to use lighttpd or Mongrel . The latest require ruby-1.8.4 and also there was no lighttpd .deb in Sarge, so I dist-upgraded to Debian Etch.

Next was the problem with the database. s5presents using MySQL for database, but the box was to weak to handle it. As a result I rewrote the whole stuff to use SQLite3 . It fact it’s pretty cool – now I have my presentations in addition to the code added to the subversion repository. I can checkout and use them without need to do some database dump/restore.

For the slides s5presents using markdown by default, but I prefer Textile (warning: rebel inside). So I added Textile and RDoc support.

Finally I moved the whole installation to my notebook (hahahaha, work for nothing a ;) ), but the LightS5 code become pretty good, so I decided to continue working on it. The result:

(WARNING: be sure after checkout to create the db/s5.db if missing:
$ cd db
$ sqlite3 s5.db < s5.sqlite3
BEFORE using the application)

The Multiusers version is running online (Thanks to William for the great hosting he gave me for free ) and there is also Trac for bugs reports and requests .

Pretty hard job only for one rails meeting a ;)

Posted in Programing, Ruby | no comments

Ajax Scaffold Generator

Posted by stoyan Wed, 01 Mar 2006 05:10:00 GMT

Ajax Scaffold Generator (for Ruby on Rails) creates a scaffold page like the typical rails one, except adding, editing and deleting are all done inline. The generated scaffold is valid XHTML strict and fully styled right out of the box…

The demo and howto are also available. Be sure you have no JavaScript disabled in your browser (NoScript in Firefox)

Posted in Ruby, Programing, Ajax | no comments

Older posts: 1 2 3 4 ... 8

Powered
Ruby Blogs Directory
Performa
Box.net Refer