Archive for April, 2007

2D to 3D Innovation from Fotowoosh

The most innovative imaging service I’ve seen since Riya and Photosynth. Fotowoosh, a real innovation, through Freewebs.

The service (currently in alpha) takes your regular 2D images and transfers them into 3D ones automatically.




I guess this makes freewebs a very good buyout candidate to <place_your_favorite_company_here>

via TechCrunch

Web 2.0 for Sale

I still can get a laugh seeing some applications. Web 2.0 Application for sale - helping you flip :)

http://web2.0forsale.com/

Multiple-Application Login

I’m trying to handle an integration between a humongous code-base Java application (doing basic stuff) with a new Rails application (talking about injecting Rails transparently). Handling login (multi-application logins) was my first obstacle, and after talking with Steven and Brenton, I came up with the following implementation:



require 'rubygems'
require 'hpricot'
require 'mechanize'

class WelcomeController < ApplicationController
...

  def login
    agent = WWW::Mechanize.new
    page = agent.get('http://example.com')
    login_form = page.form('loginForm')
    login_form.username = params['username']
    login_form.password = params['password']
    page = agent.submit(login_form, login_form.buttons.first)
    cookie = agent.cookies.first
    cookies["JSESSIONID"] = {:value => pet_cookie.value, :path => ‘/’, :domain => ‘example.com’}
  end

…

end

Of course this is just the basic stuff (no error handling, no response checking, no cookie review, …)

The idea is to use Mechanize to simulate the browser actions from within the controller, log-in to the second application, set up a first-application session cookie with the same name/value pair as that of the returned cookie from the first application. I’m not sure that this covers all the basis but it’s not a bad start. Muhammad has also mentioned the idea of having Rails session cookies written with the same name/value pair as those of the Java application.

Thoughts?