Apr 30, 2008

Mistake

I made a mistake.
I lost much money...

Apr 29, 2008

HotRuby

HotRuby - Ruby on JavaScript & Flash


def fib(n)
n <= 2 ? 1 : fib(n - 1) + fib(n - 2)
end

puts fib(10)

Apr 27, 2008

Shogi Game

I download a Shogi game in my cellular phone.
I can' t win.
I want to be good at Shogi.

Apr 26, 2008

FON

I take part in FON network.
I ordered a rooter.
It's time to use iPod touch Wi-Fi.

Apr 25, 2008

Moonlight

Moonlight - Mono



A page to track the various projects that make up the Mono-based implementation of Silverlight.


The goals are:


  • To run Silverlight applications on Linux.

  • To provide a Linux SDK to build Silverlight applications.

  • To reuse the Silverlight engine we have built for desktop applications.

To reuse the Silverlight engine we have built for desktop applications!!!!

I'm looking forward to the Release of Moonlight.

Apr 24, 2008

Dynamic Scaffolding on Rails 2.0

A sample code of dynamic scaffolding.

class SampleController < ApplicationController
scaffold :person
end


Dynamic scaffolding is removed in Raisl 2.0.
You need to install as a plugin.


% script/plugin install scaffolding
% script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/classic_pagination/
% script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/will_paginate/


You can use "script/generate scaffold" without the plugin.

Apr 23, 2008

I want to program.

I have not written program for 2 months.
I want to program.
But I have something to do.
I want to begin my own business.

Apr 22, 2008

Passenger (mod_ruby for Apache)

I tried Passenger (mod_ruby for Apache).
Overview — Phusion Passenger (a.k.a. mod_rails)

It's easy to install with RubyGems.
Radiant CMS is running on mod_ruby.
It's fast.

Apr 21, 2008

TOEIC

I want to try TOEIC, an English exam.
Japanese and Korean people love TOEIC.
Why?
I think TOEFUL is more popular in the world.

Apr 20, 2008

A Book About NLP

I bought a book writen about NLP.
It's writen in English.
Am I able to read it?
I challenge!

Apr 19, 2008

Why do I work?

Working for money isn't important for me.
Why do I work?
What do I do?
I wish that the world is peaceful and people are happy.

Apr 18, 2008

XOOPS

I installed XOOPS.
It's a most popular CMS in Japan.

Apr 17, 2008

Radiant CMS

I installed Radiant CMS used in Ruby official site.
I used MySQL for database.
It took a long time to install.
I'm tired.

Apr 16, 2008

Scheduling Management System

My schedule management system is iPod touch.
Unfortunately, iPhone isn't released in Japan.

Apr 15, 2008

CentOS

I installed CentOS for my server.

I mistook DNS configuration.
I wrote wrong IP address.

Be careful!

Apr 14, 2008

Social Entrepreneur

I'm interested in "Social Entrepreneur".

Apr 13, 2008

Server Setup.

I setup a server tomorrow.
I must be careful about security.

Apr 11, 2008

I'm going to begin Shogi.

I'm going to begin Shogi.
Shogi is a Japanese board game played by two players.
I think that it is similar to chess.

Apr 10, 2008

I fight.

I fight with the utmost energy.
Tomorrow's myself isn't the same as today's myself.

Apr 9, 2008

Mie is a cat.

Mie is a cat.
He and I share a room.

I was scratched by him.
He jump on my server.

Apr 8, 2008

I have got a EeePC.

I have got a EeePC.
I'm going to install eeeXbuntu that is localized to Japanese.
I want a 16GB SDHC memory card.

Apr 7, 2008

I'm learning Linux.

I'm learning Linux.
Which distribution do you like?
I'm going to use Ubuntu for desktop and CentOS for server.

Apr 6, 2008

I ordered EeePC.

I ordered EeePC.

Windows XP is pre-installed in Japanese Edition.
And 4GB SDHC memory card is added.

I'll install Ubuntu.

Apr 5, 2008

How to send mail via Yahoo!Mail by Ruby.

How to send mail via Yahoo!Mail by Ruby.
Yahoo!Mail use POP before SMTP.

A sample code.

require 'net/smtp'
require 'net/pop'
require 'time'

content = <<EOF
From: from@yahoo.co.jp
To: to@yahoo.co.jp
Subject: Hello!
Date: #{Time.now.rfc2822}

How are you.
EOF

Net::POP3.start('pop.mail.yahoo.co.jp', 110, 'Yahoo! ID', 'password') do |pop|
end

Net::SMTP.start('smtp.mail.yahoo.co.jp', 25, 'yahoo.co.jp', 'Yahoo! ID', 'password', :login) do |smtp|
smtp.send_message(content, 'from@yahoo.co.jp', 'to@gmail.com')
end

Apr 4, 2008

How to send mail via Gmail by Ruby.

How to send mail via Gmail by Ruby.
Gmail use TLS that isn't supported by Ruby 1.8.
You can use tlsmail.


# gem install tlsmail


A sample code.

require 'tlsmail'
require 'time'

content = <<EOF
From: from@gmail.com
To: to@gmail.com
Subject: Hello!
Date: #{Time.now.rfc2822}

How are you.
EOF

Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', 'from@gmail.com', 'password', :login) do |smtp|
smtp.send_message(content, 'from@gmail.com', 'to@gmail.com')
end

This code don't work in Ruby 1.8.3.

Apr 3, 2008

Check your IP address.

You can get your IP address.

http://tech.upper.jp/remote_addr/

This script use cgi.remote_addr in Ruby.

Apr 2, 2008

net/smtp of Ruby 1.9

It's possible to use SSL/TLS with net/smtp of Ruby 1.9.

Apr 1, 2008

"Grammar in Use Intermediate"

I decided to study grammar of English with "Grammar in Use Intermediate".
I expect progress of this blog.