トップ «前の日記(2013-10-30) 最新 次の日記(2013-11-01)» 編集

ヨタの日々

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-10-31 :-(

_ 午前

0530 起床

0830 出勤 && コード書いたり

_ 午後

1300 コード書いたり

_

1740 退勤

1900 eclipseほげ

2100 飯。回鍋肉 豚肉じゃなくて鶏肉

_ eclipse に既存の Android プロジェクトを import する

bk

既存プロジェクトが以下にあるとする。

C:\home\rin\work\Android\Hello

File - Import - Android - Existing Android Code Into Worskspace

を選択して Root Directory に

C:\home\rin\work\Android\Hello

を選択すると怒られる。

C:\home\rin\work\Android\Hello overlaps the location of another project: 'Hello'

正しいのはこう

File - Import - General - Existing Project into Worskspace

Select root directory に以下を入力

C:\home\rin\work\Android\Hello

おk

ref. Eclipse Issue: ".. overlaps the location of another project .. " - Fledglings' nook

_ [関数ポインタ][Command][デザインパターン][Java]Java で Command パターン?

関数ポインタが無いから interface を作るのが定石らしいんだけど、マジすか。クラスが量産されるん?

動作未確認

public interface Command
{
  String command(String msg);
}

public class CommandA implements Command
{
  public String command(String msg)
  {
    return "CommandA";
  }
}

public class CommandB implements Command
{
  public String command(String msg)
  {
    return "CommandB";
  }
}


public class CommandC implements Command
{
  public String command(String msg)
  {
    return "CommandC";
  }
}

public static void main(String[] args)
{
  ArrayList list = new ArrayList();
  list.add(new CommandA());
  list.add(new CommandB());
  list.add(new CommandC());

  for (int i = 0; i < list.size(); i++)
  {
    System.out.println(list.get(i));
  }
}

ref. たぶんら - Javaで関数ポインタ

_ [艦これ]艦これ

蒼龍さんを改造。

主人公を改造