Tuesday, May 29, 2012

libffi-3.0.11 had been released

About 2 month ago, libffi had been updated to 3.0.11. On MinGW, the DLL file built from libffi source is changed from libffi-5.dll to libffi-6.dll. So that we should rebuild not only libffi-3.0.11 but also any programs using libffi - e.g. Ruby -.

Saturday, May 26, 2012

Github for windows does not use our own MinGW

(continued from phosphorescence: Github for windows is close to (or crawls to) you)

As you see, You can use Github for windows not only for managing your Github repository but also for managing your local repository.

Github for windows can customize preferences.
But, there are no options about msysGit. In other words, while you have already your own msysGit, Github for windows installs completely another msysGit.

Thursday, May 24, 2012

Github for windows is close to (or crawls to) you

The end is near. I hear a noise at the door,
as of some immense slippery body lumbering against it.
It shall not find me. God, that hand! The window! The window!

(from Wikiquote)

Github for windows is close to (or crawls to) you - Windows users. A few days ago, Github for windows has been released. For more information, please read this article:

This application is - in other words - just a msysGit with MetroUI.

Monday, May 21, 2012

JRuby 1.7.0 preview 1

We can try and report bugs of JRuby 1.7.0 preview 1.

A few days ago, JRuby 1.7.0 preview 1 has been tagged on github. Before you try it, you must build JRuby 1.7.0 preview 1 from source with Ant.
> unzip jruby-jruby-1.7.0.preview1-0-g00c8c98.zip
> cd jruby-jruby-00c8c98/
> ant
Let's chekc the version.
> ./bin/jruby --version
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-20 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_04) [darwin-x86_64-java]
As you see, since JRuby 1.7.0, default version of Ruby becomes 1.9.3 (without --1.9 option).

Friday, May 18, 2012

Difference between Struck and OpenStruct

Ruby has two structure classes - Struct and OpenStruct.


This is the normal struct.
  • Generated struct is dealt as constant.
  • Accessor methods are not dynamic.
[1] pry(main)> Foo = Struct.new('Foo', :bar, :baz)
=> Struct::Foo
[2] pry(main)> foo = Foo.new(1, 2)
=> #<struct Struct::Foo bar=1, baz=2>
[3] pry(main)> foo.bar = 3
=> 3
[4] pry(main)> foo
=> #<struct Struct::Foo bar=3, baz=2>
[5] pry(main)> foo.qux = 4
NoMethodError: undefined method `qux=' for #<struct Struct::Foo bar=3, baz=2>
from (pry):5:in `<main>'


This is dynamic struct.
  • Generated struct is dealt as variable.
  • Accessor methods are dynamic.
[1] pry(main)> require 'ostruct'
=> false
[2] pry(main)> foo = OpenStruct.new(bar:1,baz:2)
=> #<OpenStruct bar=1, baz=2>
[3] pry(main)> foo.bar = 3
=> 3
[4] pry(main)> foo
=> #<OpenStruct bar=3, baz=2>
[5] pry(main)> foo.qux = 4
=> 4
[6] pry(main)> foo
=> #<OpenStruct bar=3, baz=2, qux=4>

Tuesday, May 15, 2012

PostgreSQL Magazine has been launched

About 1 week ago, PostgreSQL Magazine has been launched and #1 has been issued. This is the nice e-book magazine, and I want to convert to PostgreSQL from MySQL and its any forks.

Saturday, May 12, 2012

QtCreator never supports MinGW anymore (and Qt maybe too.)

3 days ago, QtCreator 2.5.0 has been released. But, this release contains sad news. Since 2.5, QtCreator never supports MinGW anymore. And IMO, Qt runtime maybe follow, because current download page of Qt runtime still contains MinGW runtime binary, but does not contain any links to MinGW zip exited.

Thursday, May 10, 2012

Java7u4 enables G1GC without UnlockExperimentalVMOptions

(via http://www.infoq.com/news/2012/05/java7u4)

A week ago, Java7u4 has been released. The most notable change is we can enable G1GC without UnlockExperimentalVMOptions.
> java -XX:+UseG1GC Another args...
> java $JAVA_OPTS Another args...

Monday, May 7, 2012

Start reading "Programming Microsoft ASP.NET MVC, Second Edition"

I have started reading the Japanese edition of "Programming Microsoft® ASP.NET MVC, Second Edition".

The cover of English edition is below:

But, Japanese edition contains the great appendix - about ASP.NET MVC 4.