> /opt/ruby-1.9.1/bin/irb
irb(main):001:0> RUBY_VERSION
=> "1.9.1"
irb(main):002:0> Encoding.constants.find_all{|const|Encoding.const_get(const).is_a?(Encoding)}
=> [:ASCII_8BIT, :Big5, :BIG5, :CP949, :Emacs_Mule, :EMACS_MULE, :EUC_JP, :EUC_KR, :EUC_TW, :GB18030, :GBK, :ISO_8859_1, :ISO_8859_2, :ISO_8859_3, :ISO_8859_4,:ISO_8859_5, :ISO_8859_6, :ISO_8859_7, :ISO_8859_8, :ISO_8859_9, :ISO_8859_10, :ISO_8859_11, :ISO_8859_13, :ISO_8859_14, :ISO_8859_15, :ISO_8859_16, :KOI8_R, :KOI8_U, :Shift_JIS, :SHIFT_JIS, :US_ASCII, :UTF_8, :UTF_16BE, :UTF_16LE, :UTF_32BE, :UTF_32LE, :Windows_1251, :WINDOWS_1251, :BINARY, :IBM437, :CP437, :IBM737, :CP737, :IBM775, :CP775, :CP850, :IBM850, :IBM852, :CP852, :IBM855, :CP855, :IBM857, :CP857, :IBM860, :CP860, :IBM861, :CP861, :IBM862, :CP862, :IBM863, :CP863,:IBM864, :CP864, :IBM865, :CP865, :IBM866, :CP866, :IBM869, :CP869, :Windows_1258, :WINDOWS_1258, :CP1258, :GB1988, :MacCentEuro, :MACCENTEURO, :MacCroatian, :MACCROATIAN, :MacCyrillic, :MACCYRILLIC, :MacGreek, :MACGREEK, :MacIceland, :MACICELAND, :MacRoman, :MACROMAN, :MacRomania, :MACROMANIA, :MacThai, :MACTHAI, :MacTurkish, :MACTURKISH, :MacUkraine, :MACUKRAINE, :CP950, :Stateless_ISO_2022_JP,:STATELESS_ISO_2022_JP, :EucJP, :EUCJP, :EucJP_ms, :EUCJP_MS, :EUC_JP_MS, :CP51932, :EucKR, :EUCKR, :EucTW, :EUCTW, :EUC_CN, :EucCN, :EUCCN, :GB12345, :CP936, :ISO_2022_JP, :ISO2022_JP, :ISO_2022_JP_2, :ISO2022_JP2, :ISO8859_1, :Windows_1252, :WINDOWS_1252, :CP1252, :ISO8859_2, :Windows_1250, :WINDOWS_1250, :CP1250, :ISO8859_3, :ISO8859_4, :ISO8859_5, :ISO8859_6, :Windows_1256, :WINDOWS_1256, :CP1256, :ISO8859_7, :Windows_1253, :WINDOWS_1253, :CP1253, :ISO8859_8, :Windows_1255, :WINDOWS_1255, :CP1255, :ISO8859_9, :Windows_1254, :WINDOWS_1254, :CP1254, :ISO8859_10, :ISO8859_11, :TIS_620, :Windows_874, :WINDOWS_874, :CP874, :ISO8859_13, :Windows_1257, :WINDOWS_1257, :CP1257, :ISO8859_14, :ISO8859_15, :ISO8859_16, :CP878, :SJIS, :Windows_31J, :WINDOWS_31J, :CP932, :CsWindows31J, :CSWINDOWS31J, :MacJapanese, :MACJAPANESE, :MacJapan, :MACJAPAN, :ASCII, :ANSI_X3_4_1968, :UTF_7, :CP65000, :CP65001, :UTF8_MAC, :UTF_8_MAC, :UCS_2BE, :UCS_4BE, :UCS_4LE, :CP1251]
Monday, October 12, 2009
Ruby 1.9 new features: All about encoding
Labels:
Ruby
The biggest change in Ruby 1.9 is the all about encoding. First, Encoding class had been created to deal encode information. If you see the all encodings in your Ruby environment, see the output of Encoding
Friday, October 9, 2009
New URLs of Qt Sample code on Chapter14
I still keep on studying about Qt with book: "C++ GUI Programming with Qt 4". I spent a long time to read this book until Chapter 14. So I found that Sample URLs of this chapter (no wonder) remains old.
I write its changes below:
I write its changes below:
| Before | After | |
|---|---|---|
| ftp://ftp.trolltech.com/mirrors | -> | ftp://ftp.qtsoftware.com/mirrors |
| ftp://ftp.trolltech.com/freebies/leafnode | -> | ftp://ftp.qtsoftware.com/freebies/leafnode |
| http://doc.trolltech.com/qq/index.html | -> | http://qt.nokia.com/doc/qq/index.html |
Tuesday, October 6, 2009
Qt 4.5.3 was released
In the first day of this month, Qt 4.5.3 was released. I download and install Qt 4.5.3 SDK (LGPL) from here.
#./qt-sdk-linux-x86_64-opensource-2009.04.binInstallation instructions of QtRuby are below:
>cmake \ > -DCMAKE_INSTALL_PREFIX=/opt/ruby-1.9.1 \ > -DRUBY_EXECUTABLE=/opt/ruby-1.9.1/bin/ruby \ > -DRUBY_LIBRARY=/opt/ruby-1.9.1/lib/libruby.so.1.9.1 \ > -DRUBY_INCLUDE_PATH=/opt/ruby-1.9.1/include/ruby-1.9.1 \ > -DQT_QMAKE_EXECUTABLE=/opt/qtsdk-2009.04/qt/bin/qmake \ > -DQT_MKSPECS_DIR=/opt/qtsdk-2009.04/qt/mkspecs \ > -Wno-dev \ > -DENABLE_SMOKE=on \ > -DENABLE_QTRUBY=on \ > -DENABLE_QTWEBKIT_SMOKE=on \ > -DENABLE_QTSCRIPT_SMOKE=on \ > -DENABLE_QTUITOOLS_SMOKE=on \ > -DENABLE_QTTEST_SMOKE=off \ > -DENABLE_PHONON_SMOKE=off \ > -DENABLE_QSCI_SMOKE=off \ > -DENABLE_QWT_SMOKE=off \ > -DENABLE_KDE_SMOKE=off \ > -DENABLE_KDEVPLATFORM_SMOKE=off \ > -DENABLE_KHTML_SMOKE=off \ > -DENABLE_KTEXTEDITOR_SMOKE=off \ > -DENABLE_SOLID_SMOKE=off \ > -DENABLE_PLASMA_SMOKE=off \ > -DENABLE_QTWEBKIT_RUBY=on \ > -DENABLE_QTUITOOLS_RUBY=on \ > -DENABLE_QTSCRIPT=on \ > -DENABLE_QTTEST=off \ > -DENABLE_PHONON_RUBY=off \ > -DENABLE_QSCINTILLA_RUBY=off \ > -DENABLE_QWT_RUBY=off \ > -DENABLE_SOPRANO_RUBY=off \ > -DENABLE_KDEVPLATFORM_RUBY=off \ > -DENABLE_KORUNDUM_RUBY=off \ > -DENABLE_KHTML_RUBY=off \ > -DENABLE_KTEXTEDITOR_RUBY=off \ > -DENABLE_SOLID_RUBY=off \ > -DENABLE_KROSSRUBY=off \ > -DENABLE_PLASMA_RUBY=off \ > -DENABLE_QIMAGEBLITZ_SMOKE=offThen check QtRuby commands.
>/opt/ruby-1.9.1/bin/rbrcc -version Ruby Resource Compiler for Qt version 4.5.3 >/opt/ruby-1.9.1/bin/rbuic4 -v Qt User Interface Compiler version 4.5.3 >/opt/ruby-1.9.1/bin/rbqtapi -v QtRuby 2.0.3 using Qt-4.5.3And QtCreator of this installer was also updated to 1.2.1.
Saturday, October 3, 2009
Ruby 1.9.2 release plans will be re-scheduled
Labels:
Ruby
In the 2nd day of RubyKaigi 2009, release plans of Ruby 1.9.2 had been announced. But 4 days ago, InfoQ's article reported its re-scheduling. See also release manager's post and meeting for announcing new release plan.
Thursday, October 1, 2009
cannot attend Qt Developer Days 2009
Labels:
Qt
Qt Developer Days 2009 will be held, in Germany after 2 weeks, in USA after 1 month. There are QtWebkit related session and hands-on, so I have wanted to go there. But I cannot attend both.
If this conference will be held in next year, please hold in Asia: of course, I hope it in Japan.
If this conference will be held in next year, please hold in Asia: of course, I hope it in Japan.
Subscribe to:
Posts (Atom)