Friday, April 27, 2012

Spring short vacation 2012

In Japan, last week of April and first week of May are short vacation weeks. Of course, I take a short vacation, so I suspend posts and comments to this blog for a moment. Resume will be May 7, 2012.

Tuesday, April 24, 2012

Arguments of set command on memcached telnet (2)

(continued from phosphorescence: Arguments of set command on memcached telnet (1))

3rd argument : expiration time

3rd argument(e.g. 0) is the expiration time. If you set zero to this argument, there is no expiration. If you set any positive numbers, value is deleted automatically after the seconds of expiration time.
set some_key 2 15 1
c
STORED
get some_key
VALUE some_key 2 1
c
END
After 15 seconds,
get some_key
END

4th argument : byte length

4th argument(e.g. 1) is the byte length of value.
set some_key 3 0 1
d
STORED
replace some_key 3 0 1
HeCLIENT_ERROR bad data chunk
llo World
ERROR
replace some_key 3 0 11
Hello World
STORED
get some_key
VALUE some_key 3 11
Hello World
END

Saturday, April 21, 2012

Ruby 1.9.3-p194 has been released, and mruby

In yesterday, Ruby 1.9.3 p194 has bean released.

And, mruby has opened its repository. This is the first release not only for embedded environment but also based on Ruby's ISO. Currently, mruby is a pre-trial version, but, I checked succeeding to compile with gcc/bison(Linux, MinGW) and to do "Hello World".

Thursday, April 19, 2012

Arguments of set command on memcached telnet (1)

On memcached telnet, set command has 4 arguments:
set some_key 0 0 1

Of course, 1st argument(e.g. some_key) is the key. But, what are rest of arguments?

Monday, April 16, 2012

AsiaBSDCon 2012

3 weeks ago, AsiaBSDCon 2012 was held.

大きな地図で見る
I attend these 4 workshops.

Friday, April 13, 2012

Deal memcached with telnet on windows

(1) Enable telnet client on Windows

If you are using Windows Vista/7/8, telnet client is disabled as default on these OSs. To enable, please check the page below and do those operations:
Install Telnet Client on Windows 7 or Windows Vista

Tuesday, April 10, 2012

OSS project is different from OSS license

OSS project is different from OSS license

Two things – the one is OSS license, the other is OSS project – are different. The most important difference is that "OSS license" is defined officially by Open Source Initiative (OSI).
On the other hand, "OSS project" is not defined by anybody at all. In other words, if your project applies either cathedral model or bazaar model (See also The Cathedral and the Bazaar), there are no relations about what is OSS license. And, while any OSS licenses describe "How to use software", these do not describe "What project makes software". For more details, please check these article by Phil Haack:

How about "responsibilities to respect the freedom of others"?

Many OSS Licenses have a paragraph about "responsibilities to respect the freedom of others". For instance, GPLv3 has this paragraph:
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
In other words, OSS license never limit our use in any reasons. But, IMHO, I guess this policy is only for OSS license, not for OSS project. My question is:

If OSS license is used for criminal purposes indirectly, OSS itself is not guilty. But if OSS project or its member deal criminal purposes directly, are those guilty or not?

Saturday, April 7, 2012

ASP.NET MVC becomes Bazaar model

About 2 weeks ago, ASP.NET MVC becomes Bazaar model.

ASP.NET MVC, Web API, Razor and Open Source
ASP.NET MVC Now Accepting Pull Requests

In other words,

  • ASP.NET MVC had started to accept pull request from outside
  • ASP.NET MVC changed its license from Ms-PL to Apache Licence

Thursday, April 5, 2012

MongoDB releases C# driver with supporting LINQ

A week ago, C# driver version 1.4 released. And since this version, MongoDB C# driver supports LINQ totally!

CSharp Driver LINQ Tutorial