I take a winter brake, so I suspend posts and comments to this blog for a moment. Resume will be January 7, 2012.
I wish you a Merry Christmas and a Happy New Year.
Thursday, December 22, 2011
Monday, December 19, 2011
Tips: Which are you using java command, JDK's or JRE's?
Labels:
Java
This is an easy tips. Which are you using java command, JDK's or JRE's? How do you recognize it? Let's type the command below:
> java -server -version java version "1.7.0_02" Java(TM) SE Runtime Environment (build 1.7.0_02-b13) Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)If succeed, that is JDK's , and if not, that is JRE's.
Friday, December 16, 2011
Qt 4.8.0 and QtCreator 2.4.0 have been released
Labels:
Qt
In a few days, Qt Framework 4.8.0 and QtCreator 2.4.0 have been released. Since this release, Lighthouse project is finally integrated.
Tuesday, December 13, 2011
BigMath
Labels:
Ruby
Since Ruby 1.9.3, bigdecimal library has powered up. Especially, BigMath module is so.
But, unfortunately, bigdecimal library now does not support complex calculations:
irb(main):001:0> require 'bigdecimal/math' => true irb(main):002:0> prec = 10 => 10 irb(main):003:0> (-BigMath::PI(prec)).to_s => "-0.3141592653589793238462643388813853786957412E1" irb(main):004:0> BigMath::exp(-BigMath::PI(prec), prec).to_s => "0.4321391826E-1"
But, unfortunately, bigdecimal library now does not support complex calculations:
irb(main):005:0> BigMath::exp(Complex(0, -BigMath::PI(prec)), prec) ArgumentError: Complex can't be coerced into BigDecimal from (irb):5:in `exp' from (irb):5 from c:/ruby-1.9.3/bin/irb:12:in `<main>'
Saturday, December 10, 2011
Mono 2.10.7 for Mac has been released
Labels:
Mono
A few days ago, Mono Framework 2.10.7 has been released only for Mac OS X. this release includes fixes for gtk related bug - e.g. Multi-byte characters are garbled on MonoDevelop. So that, since 2.10.7, we just install and use Mono and MonoDevelop without multi-byte font settings like phosphorescence: Modify the default font of Mono after 2.10.3.
Thursday, December 8, 2011
Ignore case partially
It's easy to ignore case of whole word in regular expression. But How do we do ignore case partially? For example, matching with AbcD, abcD, Abcd and abcd, but not matching ABCD, aBCd and so forth.
In the Japanese edition of "Regular Expressions Cookbook", there are two approaches.
In the Japanese edition of "Regular Expressions Cookbook", there are two approaches.
mode toggle "i"
In the page #28, surround the word to ignore between (?i) and (?-i):/(?i)a(?-i)bc(?i)d(?-i)/
group with modifier "i"
In the page #76, use modifier "i" for the word to ignore:/(?i:a)bc(?i:d)/
Monday, December 5, 2011
Start reading Regular Expressions Cookbook
I have started reading the Japanese edition of "Regular Expressions Cookbook".
The cover of English edition is below:
In earlier page, I encountered (?i) that I never knew until reading the Recipe 2.1 on this book.
The cover of English edition is below:
In earlier page, I encountered (?i) that I never knew until reading the Recipe 2.1 on this book.
Friday, December 2, 2011
Screenshot of Snippper
Labels:
openSUSE
Subscribe to:
Posts (Atom)