Friday, July 29, 2011

Units of measure libraries for ruby

alchemist and vanunits, these are two ruby libraries to manipulate "Units of measure". Most impressive character of both is these can write "Units of measure" codes in rubyish method chain style.

alchemist

Pros

  • Light

cons

  • Cannot calculate devision of units
  • Not ready for String#inspect to show units

vanunits

Pros

  • Can calculate devision of units
  • Ready for String#inspect to show units

cons

  • Too heavy, oftenly deep stack error occurs

Tuesday, July 26, 2011

Retrospective of my LT

Slide (fixed)

YetAnotherMVC3vsRails3.pdf

Survey

  • Comparing whole cultures when developing with each framework, not framework itself only.
  • Comparing de-facto and out-of-the-box libraries and tools with full-stack structure, if each framework consists in loosely coupled.
  • Ruby and C#, Both my languages.

Where I fixed

incorrect:LINQ to SQL
correct:LINQ to Entities

Sample codes

https://github.com/dw3w4at/Mvc3Depot

Abstract

Sample web application by ASP.NET MVC3
It's originated from AWDwR 4th's Depot application (without Tests, Mails and I18Ns).

Appendix

There is no "carts" table (containing just only p-key and timestamps) in Rails' sample version.
Because, C# has System.Guid class and SQL Server has the column type for GUID.
So that this sample has no need for preparing "carts" table to pretend p-key as GUID like Rails' sample version.

Saturday, July 23, 2011

update summaries of RubyKaigi 2011

I update summaries that I attend of RubyKaigi 2011.

phosphorescence: The 1st day of RubyKaigi 2011 (Morning)
phosphorescence: The 1st day of RubyKaigi 2011 (Afternoon)
phosphorescence: The 2nd day of RubyKaigi 2011 (Morning)
phosphorescence: The 2nd day of RubyKaigi 2011 (afternoon)
phosphorescence: The last day of RubyKaigi 2011

I say again thanks to all staffs, speakers and attendees.

Congrats, kernel 3.0 is out!

The 3.0 kernel is out

If you want to try kernel 3.0 on your openSUSE, use repository below at your own risk.
http://download.opensuse.org/repositories/Kernel:/HEAD/standard/

And there are no available ones in stable repository and in Tumbleweed repository at now.
(continue to phosphorescence: Kernel 3.0 is coming in openSUSE tumbleweed)

Thursday, July 21, 2011

Ruby 1.9.2 p290 and Ruby DevKit 4.5.2 have been released

A few days ago, Ruby 1.9.2 p290 and Ruby DevKit 4.5.2 have been released. If you are Windows user, You are able to choice installing from source with DevKit or installing with RubyInstaller.

Monday, July 18, 2011

The last day of RubyKaigi 2011

Today is the 3rd day of RubyKaigi 2011 and THE LAST DAY of the RubyKaigi.
In this day, I attended these sessions:

Sunday, July 17, 2011

The 2nd day of RubyKaigi 2011 (afternoon)

In this afternoon, I attended these sessions:

The 2nd day of RubyKaigi 2011 (Morning)

Today is the 2nd day of RubyKaigi 2011.
In this morning, I attended these sessions:

Saturday, July 16, 2011

The 1st day of RubyKaigi 2011 (Afternoon)

In this afternoon, I attended these sessions:

The 1st day of RubyKaigi 2011 (Morning)

The 1st day of RubyKaigi 2011 was held at here.

Google Maps
In this morning, I attended these sessions:

Wednesday, July 13, 2011

ViewBag is not living in redirected action

ViewBag - a place holder between action and view - is living in one response. In other words, ViewBag is not living in redirected action despite the fact Rails' flash go living. Then, what should we use? It is TempData

Monday, July 11, 2011

Mono 2.12 is coming soon

There are a draft of release note for Mono 2.12. This release will make improvement both for SGen and for C# compiler.

Friday, July 8, 2011

Java7 launch event in Tokyo

In yesterday, Java7 launch event was held at Aoyama, Tokyo. the program is like below:
  1. Opening
  2. Summary of Java7 & Java8
  3. HotRockit / New licenses for Java
  4. NetBeans 7.0 / Project Coin
  5. InvokeDynamic
  6. Fork/Join Framework -> Lambda
  7. More new I/O
  8. Lightning talks
I had two thoughts from this event.
  • Both G1GC and InvokeDynamic are great technologies. It's good news for LLs (like JRuby) on JVM.
  • But, new Java7 features for Java language are imperfect because there are lack of lambda. Those features will become perfect since Java8.
And most funniest talk is about "JRuby and invokedynamic".

Wednesday, July 6, 2011

Updated MySQL Connector/Net

Current MySQL Connector/Net is 6.3.7, and this version can do code first in limited condition. This post expresses the instruction of code first with MariaDB.

Monday, July 4, 2011

mysql2 runs successfully again

after the version 0.2.11 or 0.3.6, mysql2 runs successfully again.

And I introduce the way to run rails 3.0.9 with mysql2 0.2.11 on MariaDB 5.2.7 in Windows.

  1. Install the MariaDB on Windows into C:/MariaDB
  2. Install ruby 1.9.x with Ruby DevKit 4.5.1
  3. Install rails 3.0.9
  4. Install mysql2 0.2.11
    > gem install mysql2 --version=0.2.11 --platform=ruby -- --with-mysql-include=C:/MariaDB/include --with-mysql-lib=C:/MariaDB/lib
  5. Do rails ways
    > rails -d mysql sample
    > cd sample
    > rails g scaffold person first_name:string last_name:string
    > rails s
That's all.

Friday, July 1, 2011

Semiotics of Programming

Now I'm reading "Semiotics of Programming".
The book deals with semiotics. And at the same time, the book also deals with the difference of paradigm between object-oriented programming and functional programming. This book is a interesting academic book, and is also a good introduction for who wants to learn this difference of paradigm.