トップ «前の日記(2013-01-17) 最新 次の日記(2013-01-19)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|04|

2013-01-18 :-(

_ 午前

0550 起床

0830 検討

_ 午後

1300 検討

1710 退勤

_

1900 mikutter

2130 飯。鯖みりん

2230 読書

_ [mikutte]Windows 7 64bit で mikutter 応答しなかった

手順はここのとおり mikutter on Windows (64bit) - lindbooth - makebooth

  • mikutter 0.2.1.1119
  • rubyinstaller Ruby 1.9.3-p374
  • All-in-one bundle 2.22
  • GTK+ 2.22.1

手順どおりに作業し

rubyw C:\mikutter\mikutter.rb

などと起動して oauth して PIN 番号を入力までしたが応答なし。

なんか怒られているけど関係あるかなあ。

>ruby C:\home\public\mikutter\mikutter.rb
which: no notify-send in (/cygdrive/c/Ruby193/lib/ruby/gems/1.9.1/gems/gtk2-1.1.9-x86-mingw32/vendor/local/bin:/cygdrive
/c/Ruby193/lib/ruby/gems/1.9.1/gems/gdk_pixbuf2-1.1.9-x86-mingw32/vendor/local/bin:/cygdrive/c/Ruby193/lib/ruby/gems/1.9
.1/gems/pango-1.1.9-x86-mingw32/vendor/local/bin:/cygdrive/c/Ruby193/lib/ruby/gems/1.9.1/gems/cairo-1.12.3-x86-mingw32/v
endor/local/bin:/cygdrive/c/Ruby193/lib/ruby/gems/1.9.1/gems/cairo-1.12.3-x86-mingw32/vendor/local/lib:/cygdrive/c/Ruby1
93/lib/ruby/gems/1.9.1/gems/atk-1.1.9-x86-mingw32/vendor/local/bin:/cygdrive/c/Ruby193/lib/ruby/gems/1.9.1/gems/glib2-1.
1.9-x86-mingw32/vendor/local/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Progra
m Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Wi
ndows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/apache-maven/bin:/cygdrive/c/Program
 Files (x86)/Common Files/Roxio Shared/DLLShared:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program
 Files (x86)/doxygen/bin:/cygdrive/c/Program Files (x86)/Graphviz 2.28/bin:/cygdrive/c/Program Files (x86)/gdipp:/cygdri
ve/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/c/Ruby193/bin:/cygdrive/c/Program Files (x86)/Nmap:/cygdrive/c/Pro
gram Files/Java/jdk1.6.0_21/bin:/usr/bin)
C:/home/public/mikutter/core/plugin/gtk/gtk.rb: line 60
   Pango-WARNING **:couldn't load font "メイリオ Not-Rotated 9", falling back to "Sans Not-Rotated 9", expect ugly outpu
t.
C:/home/public/mikutter/core/plugin/gtk/gtk.rb: line 60
   Pango-WARNING **:failed to choose a font, expect ugly output. engine-type='PangoRenderWin32', script='common'
C:/home/public/mikutter/core/plugin/gtk/gtk.rb: line 60
   Pango-WARNING **:couldn't load font "メイリオ 9", falling back to "Sans 9", expect ugly output.
gui_pane_join_window :default, :default
C:/home/public/mikutter/mikutter.rb: line 58
   Gdk-WARNING **:gdkdrawable-win32.c:2013 drawable is not a pixmap or window
C:/home/public/mikutter/mikutter.rb: line 58
   Gdk-WARNING **:gdkdrawable-win32.c:2013 drawable is not a pixmap or window
C:/home/public/mikutter/core/plugin/gtk/gtk.rb: line 377
   Gtk-CRITICAL **:gtk_window_set_focus: assertion `gtk_widget_get_can_focus (focus)' failed
C:/home/public/mikutter/core/plugin/gtk/gtk.rb: line 377
   Gtk-CRITICAL **:gtk_window_set_focus: assertion `gtk_widget_get_can_focus (focus)' failed

_ [シェルスクリプト][NetBSD]${0%/*}

src/distrib/sets/sets.subr を眺めていたらコメントがあった。

rundir="$(dirname "$0")" # ${0%/*} isn't good enough when there's no "/"

へえ?

試す

こういうスクリプトを準備

echo $(dirname "$0")
echo ${0%/*}

実行

% sh ./scriptname0.sh
.
.
% sh scriptname0.sh
.
scriptname0.sh

/ が含まれない場合によろしくないと。