- サービスの停止
インスコフォルダのmanager-windows.exeで、MySQL以外を停止する。
- データベース名、ユーザ名、パスワードを調べる
{インスコフォルダ}\apps\redmine\htdocs\config\database.yml production: adapter: mysql2 database: bitnami_redmine host: 127.0.0.1 username: bitnami ← ユーザ名 password: XXXXXXXX ← パスワード encoding: utf8
- データベースのバックアップ
インスコフォルダのuse_redmine.batでコマンドプロンプトを使う。
$ mysqldump -u bitnami -pXXXXXXXX bitnami_redmine > d:\redmine_backup
- 添付ファイルのバックアップ
{インストフォルダ}\apps\redmine\htdocs\filesをコピーする。
- サービスのアンインスコ
MySQLを停止してから、serviceinstall.batを実行する。
- 念のため、現在のインスコフォルダをリネームしておく
- 新しいバージョンのインスコ
- サービスを止める
インスコフォルダのmanager-windows.exeで、MySQL以外を停止する。
- データベースのリストア
$ mysql -u bitnami -pXXXXXXXX bitnami_redmine < d:\redmine_backup
※再インスコしたらパスワードが変わっているので、手順2で確認すること!
- 添付ファイルのリストア
手順4のフォルダを書き戻すだけ。
- サービスの起動
すべてのサービスを起動する。
2014年3月14日金曜日
windowsでRedmine (bitnami) バックアップとリストア
bitnami Redmienが2.5.0にバージョンアップしたので、実験用マシンをアップデートした。
2014年2月15日土曜日
Visual Studio Expressで、StyleCopを使う [改良版]
前回の方法だと、毎回StyleCopが走ってうざい。
とくに、実装中やデバッグ中のコードスタイルを指摘されるとキレそうになる。
だいいち、ワーニングとか見づらいし。
なので、Releaseビルド時のみチェックを走らせるようにした。
これで、デバッグ中はスッキリするようになった。
とくに、実装中やデバッグ中のコードスタイルを指摘されるとキレそうになる。
だいいち、ワーニングとか見づらいし。
なので、Releaseビルド時のみチェックを走らせるようにした。
<Import Condition="Exists('$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets') and '$(Configuration)' != 'Debug'"
Project="$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets" />
これで、デバッグ中はスッキリするようになった。
2014年2月5日水曜日
Visual Studio Expressで、StyleCopを使う
ソリューションエクスプローラで、プロジェクトをアンロードすると、右クリックメニューでプロジェクトファイルを編集できる。
こんなんを用意して、スニペットに登録すると楽だよ
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Condition="Exists('$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets')"
Project="$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
こんなんを用意して、スニペットに登録すると楽だよ
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>ExpressでStyleCop</Title>
<Author>Jun</Author>
<Description>Ver4.7系に限定!あらかじめStyleCopのインスコが必要です。</Description>
<SnippetTypes>
<SnippetType>SurroundsWith</SnippetType>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Code Language="XML">
<![CDATA[<Import Condition="Exists('$$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets')"
Project="$$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets"/>
]]>
</Code>
</Snippet>
</CodeSnippet>
2014年1月26日日曜日
PostSharp Expressは使えるか2
お試しビルドしようと思ったら、アクチ方法がわからない
と思ったら、visual studio expressでは、使えなかった(ノω・、)・・・
Is it possible to use PostSharp 3 with Visual Studio Express?
早くProfessional Editionに戻りたいよぉ
と思ったら、visual studio expressでは、使えなかった(ノω・、)・・・
Is it possible to use PostSharp 3 with Visual Studio Express?
早くProfessional Editionに戻りたいよぉ
2014年1月25日土曜日
PostSharp Expressは使えるか1
とりあえず機能一覧を並べてみた。例によってgoogle先生の翻訳だが。
(http://www.postsharp.net/purchase)
ライセンスは、商用利用可能、再配布可能、仕様期限なし、なので問題ない。
E: Express (Free) 使える機能を青文字にした
P: Professional (€329)
U: Ultimate (€589)
CORE ASPECT FRAMEWOR
(http://www.postsharp.net/purchase)
ライセンスは、商用利用可能、再配布可能、仕様期限なし、なので問題ない。
E: Express (Free) 使える機能を青文字にした
P: Professional (€329)
U: Ultimate (€589)
CORE ASPECT FRAMEWOR
- (E/P/U) Exception Handling
Catch exceptions before they get passed to the client code with OnExceptionAspect.
これらはOnExceptionAspectとクライアントコードに渡される前に、例外をキャッチ。 - (E/P/U) Method Interception
Intercept method executions and execute your own logic.
インターセプト法の実行と独自のロジックを実行します。 - (E/P/U) Method Decorator
Add instructions before and after method execution.
メソッドの実行前と後の命令を追加します。 - (E/P/U) Property & Field Interception
Automate code execution when a field or a property is get or set.
フィールドまたはプロパティを取得または設定されている場合は、コードの実行を自動化する。 - (E/P/U) Build-Time Validation
Ensure that your aspect is being used where expected.
予想される所で、あなたのアスペクトが使われていることを確認してください。 - (E/P/U) Attribute Multicasting
Apply aspects to large codebases declaratively using custom attributes.
宣言的にカスタム属性を使用して大規模なコードベースにアスペクトを適用します。
- (P/U) Support for Async and Iterator Methods
Add aspects to async methods and automatic iterators. Intercept OnYield and OnResume semantics.
非同期メソッドおよび自動イテレータにアスペクトを追加します。 OnYieldとOnResumeセマンティクスを傍受。 - (P/U) Aspect Inheritance
Add aspects to a class/interface or abstract/virtual/interface method, and have the aspect automatically applied to implementations.
クラス/インタフェースまたは抽象/仮想/インターフェイスメソッドにアスペクトを追加し、アスペクトは、自動的な実装に適用されている - (P/U) Event Interception
Override Add, Remove and Raise methods in events with the EventInterceptionAspect.
取り外し、EventInterceptionAspectでイベントのメソッドを上げ、追加オーバーライドします。 - (P/U) Composite Aspects
Develop aspects composed of several primitive transformations and use advanced concepts such as pointcuts and advices.
いくつかの原始的な変換で構成されるアスペクトを開発し、このようなポイントカットやアドバイスなどの高度な概念を使用しています。 - (P/U) Dynamic Aspect Providers
Add aspects to large codebases programmatically using LINQ and System.Reflection.
プログラムでLINQとするSystem.Reflectionを使用して大規模なコードベースにアスペクトを追加します。 - (P/U) Aspect Optimizer
Have PostSharp analyze your aspects and just generate instructions that are necessary to support the features the aspects actually use.
PostSharpはあなたのアスペクトを分析し、アスペクトは、実際に使用する機能をサポートするために必要な命令を生成している。
- (E/P/U) Detailed Tracing
Add logging to your codebase and keep it in sync, automatically, with support for NLog, Log4Net, and Enterprise Library. (E:50 methods per project)
あなたのコードベースへのロギングを追加し、NLOG、log4netの、およびエンタープライズライブラリのサポートにより、自動で同期に保管してください。
- (E/P/U) INotifyPropertyChanged
Implement the right property change notifications at the right time, automatically.
自動的に、適切なタイミングで適切なプロパティ変更通知を実装します。
(E:10 classes per project) - (U) Code Contracts
Add precondition checking to your codebase using custom attributes.
カスタム属性を使用して、コードベースにチェックする前提条件を追加します。
- (U) Thread Dispatching
Simplify dispatching execution back and forth between background and foreground threads.
前後に、背景と前景のスレッド間の実行をディスパッチ簡素化します。 - (U) Exclusive Threading Model
Prohibit multiple threads from concurrently accessing an object. Throws an exception instead of allowing data corruption.
同時にオブジェクトにアクセスする複数のスレッドを禁止。代わりに、データの破損を許可するので例外をスローします。 - (U) Reader/Writer Synchronized Threading Model
Safely share objects between several threads and declare lock level semantically, using custom attributes.
安全に複数のスレッド間でオブジェクトを共有し、カスタム属性を使用して、意味的にロック·レベルを宣言します。 - (U) Actor Threading Model
Use Erlang-like actor-based multithreading in C# 5.0.
C#5.0にErlangのようなアクターベースのマルチスレッドを使用しています。 - (U) Deadlock Detection
Simplify the diagnosis of deadlocks in your project and never allow your application to freeze without an error message.
プロジェクト内のデッドロックの診断を簡素化し、アプリケーションがエラーメッセージなしで凍結することができませんでした。
- (U) Extended Reflection API
Get what System.Reflection does not give to you: programmatically browse used-using, parent-child, or member-type relationships at high speed using PostSharp's internal indexes.
するSystem.Reflectionがあなたに何を与えていない情報:プログラム的に閲覧し使用 - 使用して、親子で、あるいは高速でのメンバー型の関係はPostSharpの内部インデックスを使用。 - (U) Syntax Tree Decompiler
Decompile methods to Abstract Syntax Trees and perform finer analysis.
抽象構文木にメソッドをコンパイルし、より細かい分析を行う。 - (U) Built-In Architecture Constraints
Have a finer control over visibility of types and members.
型とメンバの可視性をより細かく制御できます。 - (U) Custom Architecture Constraints
Enforce your own design rules.
独自の設計ルールを適用します。
- (E/P/U) .NET Framework
Build applications targetting .NET Framework 2.0, 3.5, 4.0, or 4.5. - (P/U) Silverlight
Build applications targetting Silverlight 4.0 or 5.0. - (P/U) Windows Phone
Build applications targetting Windows Phone 7.5 or 8.0. - (P/U) Windows Store
Build applications targetting Windows Store 8 or 8.1. - (P/U) Portable Class Libraries
Build portable class libraries 4.0, 4.5 or 4.6.
- (P/U) Code Editor Enhancements
Immediately see which aspects are applied to the code you're editing thanks to code adornments and enhanced tooltips.
すぐに側面は、コードの装飾品や強化されたツールチップのおかげで、編集しているコードに適用されているかを確認。 - (P/U) Aspect Browser
See all aspects present in your solution and which declarations have been affected.
あなたのソリューションとその宣言が影響を受けている中に存在するすべての側面を見る。 - (P/U) File and Line Number of Error Messages
Simply double-click on an error message to get to the relevant line of source code.
単純に、ソースコードの該当する行を取得するエラーメッセージをダブルクリックします。
- (E/P/U) Commercial Use
Use PostSharp for development of production/commercial software.
生産/商用ソフトウェアの開発のためPostSharpを使用してください。 - (E/P/U) Royalty-Free Redistribution of Runtimes
Distribute PostSharp.dll and runtime libraries that need to run on end-user devices.
PostSharp.dllとエンドユーザデバイス上で実行する必要がランタイムライブラリを配布します。 - (E/P/U) Perpetual License
No time bomb. If you can use a specific version of PostSharp one day,
you can use it every day.
いいえ時限爆弾ません。あなたは1日PostSharpの特定のバージョンを使用できる場合は、 あなたは毎日それを使用することができます。
- (P/U) 1 Year of Free Updates
Get bug fixes and major releases during the duration of the subscription.
サブスクリプション期間中のバグ修正とメジャーリリースを入手してください。 - (P/U) Premium Support
Have your issues addressed with priority, use phone and desktop sharing (limited number of premium support cases available).
あなたの問題は、優先使用の携帯電話やデスクトップの共有(利用可能なプレミアムサポートケースの数が限ら)で対処してきた。
2013年11月28日木曜日
2013年11月26日火曜日
jenkins氏をwindowsに招待する (v1.540限定情報)
と思ったら、公式サイトのWindows版が動かない。
8.1でもXPでも7でも動かない。
ファイヤーウォールをOFFにしても動かない。
インストール直後にIEが起動し、http://localhost:8080にアクセスするのだが、応答がない。
かなり退廃的だが、ひとつ前のバージョンなら動くようだ。
普通にインストーラからインストールして、ひとつまえ(v1.539)のjenkins.warを上書きするだけ。(thx情報提供ysさん)
2013/11/25 ver 1.541も動かない・・・
2014/03/18 動くようになっていました。
8.1でもXPでも7でも動かない。
ファイヤーウォールをOFFにしても動かない。
インストール直後にIEが起動し、http://localhost:8080にアクセスするのだが、応答がない。
かなり退廃的だが、ひとつ前のバージョンなら動くようだ。
普通にインストーラからインストールして、ひとつまえ(v1.539)のjenkins.warを上書きするだけ。(thx情報提供ysさん)
2013/11/25 ver 1.541も動かない・・・
2014/03/18 動くようになっていました。
登録:
投稿 (Atom)