«前の日(02-24) 最新 次の日(02-26)» 追記

ToDo:

  • 99 深呼吸して、おちけつ (~12/31 あと278日)
  • 98 毎日アウトプットを重きにおいた目標をたてる (~12/31 あと278日)
  • 97 買物は行動を変えるもの・ことに限る (~12/31 あと278日)
  • 96 合理的な行動はときに我慢を強いる(~12/31 あと278日)

ɥozɐʞıɥ


2004-02-25 絎?

_ ICU

>怨罔≧綽障

_ 紊 篌ぞ


2005-02-25 眠れん!

_ [Office] OpenOffice 1.1.4

インストール。

ビバ!160GB。まだDiskの10%位しか使っていない。

#USB Diskに10GB位のデータがあるのをなんとかせねば。

_ [.NET][XML] .NETで簡単XML

XMLづいています。


2006-02-25 ためておいたC#ネタ

_ [C#][.NET] C#/ASP.NETでExcelを動的に作成する方法。(ファイルダウンロード)

Excel2003以降が対象です。XMLに吐き出せば、オートメーション使わなくっても大丈夫っぽい。

XmlDocument doc = new XmlDocument();

XmlDeclaration decl = doc.CreateXmlDeclaration("1.0","Shift_JIS","");

doc.AppendChild(decl);

XmlProcessingInstruction process = doc.CreateProcessingInstruction("mso-application","progid=\"Excel.Sheet\"");

doc.AppendChild(process);

XmlElement workbook = doc.CreateElement("Workbook");

workbook.SetAttribute("xmlns","urn:schemas-microsoft-com:office:spreadsheet");

workbook.SetAttribute("xmlns:o","urn:schemas-microsoft-com:office:office");

workbook.SetAttribute("xmlns:x","urn:schemas-microsoft-com:office:excel");

workbook.SetAttribute("xmlns:ss","urn:schemas-microsoft-com:office:spreadsheet");

workbook.SetAttribute("xmlns:html","http://www.w3.org/TR/REC-html40");

XmlElement styles = doc.CreateElement("Styles");

XmlElement style = doc.CreateElement("Style");

style.SetAttribute("ID","urn:schemas-microsoft-com:office:spreadsheet","Default");

style.SetAttribute("Name","urn:schemas-microsoft-com:office:spreadsheet","Normal");

XmlElement alignment = doc.CreateElement("Alignment");

alignment.SetAttribute("Vertical","urn:schemas-microsoft-com:office:spreadsheet","Center");

style.AppendChild(alignment);

style.AppendChild(doc.CreateElement("Borders"));

XmlElement font = doc.CreateElement("Font");

font.SetAttribute("FontName","urn:schemas-microsoft-com:office:spreadsheet","MS ゴシック");

font.SetAttribute("CharSet","urn:schemas-microsoft-com:office:excel","128");

font.SetAttribute("Family","urn:schemas-microsoft-com:office:excel","Modern");

font.SetAttribute("Size","urn:schemas-microsoft-com:office:spreadsheet","11");

font.SetAttribute("Color","urn:schemas-microsoft-com:office:spreadsheet","#FF0000");

style.AppendChild(font);

style.AppendChild(doc.CreateElement("Interior"));

style.AppendChild(doc.CreateElement("NumberFormat"));

style.AppendChild(doc.CreateElement("Protection"));

styles.AppendChild(style);

style = doc.CreateElement("Style");

style.SetAttribute("ID","urn:schemas-microsoft-com:office:spreadsheet","s21");

XmlElement numberFormat = doc.CreateElement("NumberFormat");

numberFormat.SetAttribute("Format","urn:schemas-microsoft-com:office:spreadsheet","@");

style.AppendChild(numberFormat);

styles.AppendChild(style);

workbook.AppendChild(styles);

XmlElement worksheet = doc.CreateElement("Worksheet");

worksheet.SetAttribute("Name","urn:schemas-microsoft-com:office:spreadsheet","Sheet1");

XmlElement table = doc.CreateElement("Table");

table.SetAttribute("ExpandedColumnCount","urn:schemas-microsoft-com:office:spreadsheet","3");

table.SetAttribute("ExpandedRowCount","urn:schemas-microsoft-com:office:spreadsheet","2");

table.SetAttribute("FullColumns","urn:schemas-microsoft-com:office:excel","1");

table.SetAttribute("FullRows","urn:schemas-microsoft-com:office:excel","1");

table.SetAttribute("StyleID","urn:schemas-microsoft-com:office:spreadsheet","s21");

table.SetAttribute("DefaultColumnWidth","urn:schemas-microsoft-com:office:spreadsheet","54");

table.SetAttribute("DefaultRowHeight","urn:schemas-microsoft-com:office:spreadsheet","13.5");

for(int i = 0 ; i < 2 ; i++)

{

XmlElement row = doc.CreateElement("Row");

row.SetAttribute("ss:AutoFitHeight","0");

for(int j = 0; j < 3 ; j++)

{

XmlElement cell = doc.CreateElement("Cell");

XmlElement data = doc.CreateElement("Data");

data.SetAttribute("Type","urn:schemas-microsoft-com:office:spreadsheet","String");

data.InnerText = "日本語値";

cell.AppendChild(data);

row.AppendChild(cell);

}

table.AppendChild(row);

}

worksheet.AppendChild(table);

workbook.AppendChild(worksheet);

doc.AppendChild(workbook);

Response.Cache.SetCacheability(HttpCacheability.Private);

Response.ContentType="application/vnd.ms-excel";

string name = System.Web.HttpUtility.UrlEncode("ファイル名.xls");

Response.AddHeader("content-disposition","attachment;filename="+name);

doc.Save(Response.OutputStream);

Response.End();

因みにCSVとして吐き出すなら…

string str = "a,b,c\nd,e,f";

Response.Cache.SetCacheability(HttpCacheability.Private);

Response.ContentType="application/vnd.ms-excel";

string name = System.Web.HttpUtility.UrlEncode("ファイル名.csv");

Response.AddHeader("content-disposition","attachment;filename="+name);

using (MemoryStream ms = new MemoryStream())

{

using(StreamWriter sw = new StreamWriter(ms,System.Text.Encoding.GetEncoding("Shift_JIS")))

{

sw.Write(str);

sw.Close();

}

Response.BinaryWrite(ms.ToArray());

Response.End();

ms.Close();

}

本日のツッコミ(全3件) [ツッコミを入れる]

_ yjdetsa [http://www.zimbio.com/Loans/articles/0oGquJUjTaQ/EASY+ONLI..]

_ eyagawu [http://www.zimbio.com/Loans/articles/0oGquJUjTaQ/EASY+ONLI..]

_ mvfwqjp [http://www.zimbio.com/Loans/articles/_buwFW7mE4s/PAYDAY+LE..]


2007-02-25 今日も寒いっす

_ [生活] 最近の小学校では「知らない人に挨拶するな」と指導してるの?

悲しくなるような記事ですが、なーんでこーなったのだろーかねぇー。

地域社会や近所付合いが防犯の一翼を担っていた時代はもう...って感じかも。

_ [3D][Java] jrMan

JavaによるRenderManの実装。

興味だけが残っている状態だね>ヲレ。

_ [MISC] アメリカ人君からみた日本人の特徴

どーなんじゃろうか?>こめの国について少なくともヲレよりしっているカーコさん。

_ [Web] ステキなデスクトップ用壁紙配布サイトまとめ

仕事PCの壁紙は日々変えているので、こーいったまとめは嬉しいっす。

_ [Game][Flash] Silversphere

倉庫番みたいなゲーム。面白いデスヨ。

_ [blog] 歳時記

そりゃ恋では?それとも例の崖っぷち犬を思っているのでは?

_ [Web][TV] TBS 世界遺産の情報が Google Earth に

面白い企画だと思います。ただ、世界遺産あまり見てないんですよねぇ。

もう少し早い時間帯での放送キボンヌ。

良質なコンテンツがなかなか良い時間に流れないっす。

_ [生活] 海外でスマート(?)にチップを渡すための5つの方法

面白いですけど、貰ったほうはちょっとバラすのが大変で迷惑かも。

_ [MISC] 独自のプログラミング言語を作る

うーん、独自言語ですカー。そこまでっては思っているが、要素技術として勉強はしておきたい。

_ [CD][Music] Born to Run by Bruce Springsteen

_ [CD][Music] *NSYNC by *NSYNC

_ [Mac] The Unarchiver

Supported file formats include Zip, Tar-GZip, Tar-BZip2, Rar, 7-zip, LhA, StuffIt and many other more or less obscure formats

っつーことでMacに入れておこうと思う今日この頃。

本日のツッコミ(全2件) [ツッコミを入れる]

_ ささ [良くわからんが,何だか腫れてきた.巨乳になるかもしれん.]

_ ひかぞぉ [目指せグラビアアイドル!]


2008-02-25 今週は呑みウィーク

_ 本日

080225_200756
080225_200756 posted by (C)ひかぞぉ
渋谷呑み。流石に恥ずかしくって写真撮る時にサッと終わらせたので、ブレています。(_ _;


2009-02-25 1£が140円になって買い物意欲が萎え、体調が悪い

_ 体調

なんか激悪。復帰が早すぎたのか、無理しすぎたのか。

明日は病院へ行く予定。

_ [CD][Music] Most of the Animals by The Animals

_ [CD][Music] A Lonely Man by The Chi-Lites

_ [CD][Music] Raising Sand by Robert Plant & Alison Krauss

_ [CD][Music] Essential Earth Wind & Fire by EARTH, WIND & FIRE


2011-02-25 春一番

_ 春一番

1・2・3ダァーってどこ行ったんだ?

_ 花粉

キツかったです。

_ 上海

なーんにも準備してない。


2013-02-25 天ぷら

_ [][食事] 天ぷら

ちょー有名店で食べた。美味しかった。あまりの美味しさと雰囲気で写真を撮るのは憚られた。


2016-02-25 手術

_ 手術

前回手術と同じとの話でしたが、今回は尿道カテーテルも追加でした。

このカテーテルが一番ツラかった。

またも右手首から管をいれて今度は冠動脈までステントを2箇所入れて膨らませての手術でした。

麻酔はもちろんかかっているのですが身体の血管が膨らむのがわかります。その時はちょっと胸キュンで痛みます。

今回は時間もかかりましたのでカナーリ体力的にも辛い状態でした。これもう1回やるかと思うと凹みます。

_ [食事] 昼ごはん

入院昼ごはん
入院昼ごはん posted by (C)ひかぞぉ

左手点滴・右手手術痕で固定・カテーテル付けたままでのご飯です。これがキツいっす。寝てTV観て早くカテーテル外れないかなあとしか思っていませんでした。

_ [食事] 晩ごはん

カテーテルは外れましたが相変わらず左手点滴・右手固定なので左手のみでの食事でした。

入院晩御飯
入院晩御飯 posted by (C)ひかぞぉ


2017-02-25 めっちゃ疲れた1週間だった

_ 今週

Thai Innしてから1週間経ちました。今週はフラフラだった。

_ [買物][Game]仁王

鬼武者ダークソウルのいいとこどりなそうです。

_ [モフ太]朝散歩

モフ太さんぽ
モフ太さんぽ posted by (C)ひかぞぉ

寒いですね。


2018-02-25 打って変わって寒い

_ [モフ太]朝散歩

曇っていて寒かった

モフ太さんぽ
モフ太さんぽ posted by (C)ひかぞぉ

_ [買物][]死ぬことと見つけたり(上)

何かで読んでオススメだったので買ってみた。面白かった。このところ司馬遼太郎ばかりだったので違って面白さがあった

_ [CD][Music]Blue Magicby Blue Magic

Sweet Soulぢつと聴く寒い日。



2002|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|
«前の日(02-24) 最新 次の日(02-26)» 追記