Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Thursday, April 22, 2010

/dev/vmmon error

When I start VMwarePlayer 2, error occur could not find /dev/vmmon.
In google, many people say "use vmware-config.pl", But mostly they do it as same as casting spell.
Also my VMware has not that perl file.
Maybe depend on user that boot VMwarePlayer and load module list.(need more debug myself)
Anyway,load vmmon.ko then ok.
1.check where is my vmmon.ko
# vmplayer
then it show vmmon.ko path.
2.load it
# sudo insmod _that_path_vmmon.ko
3.run VMwarePlayer

Thursday, February 4, 2010

Death Agony!!!

Sometime I use many PC for automation integration testing.
But it is difficult to manage which one down by error.
So when some PC down,the PC death agony! by skype.
This code will death agony and vomit log.

# death_agony.rb
#! ruby -Ku
require 'rubygems'
require 'win32ole'
require 'kconv'

$KCODE = 'UTF8'
@MACHINE = ARGV[0]
@GOD = ARGV[1]

@oCom=WIN32OLE.new('AutoItX3.Control')
@oSkype=WIN32OLE.new('Skype4COM.skype')
raise "Please start skype" @oSkype.Client.IsRunning != true

death_agnoy = IO.read('errIO.txt')
@oSkype.SendMessage(@GOD, "Death Agony from #{@MACHINE} at #{Time.now}\n" + death_agony)
sleep(3)

@oUser = @oSkype.User(@GOD)
@oCall = @oSkype.PlaceCall(@oUser.Handle)
@oCall.Status

And catch exception in rake task(who don't use rake for testing?)

# rake.rb
# setup >(rake your_task pc=a_one_of_sacrifice p=where_to_agony) 1> errIO.txt
task :hell_grinder do
begin
ruby "death_test.rb "
rescue
p "ring ring ring..."
ruby "death_agony.rb " + ENV['pc'] + " " + ENV['p']
end
end

Then you can hear death agony from each sacrifice.
*Don't forget regsvr skype dll:here down load link
How to regist it.
> regsvr32 -that skype dll-
Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh........

Saturday, January 9, 2010

C++ and C setting for VIM

OmniCppComplete & C/C++ IDE


1.get src.


  • ctags

  • c.vim : C/C++ IDE

  • OmniCppComplete : C/C++ omni-completion with ctags database

  • 2.setup ctags


    # tar xzvf ctags-XXXX.tar.gz
    # cd ctags-xxxx
    # ./configure
    # make
    # make install
    when install,should be root or user has permission.

    3.setup vim plugin


    # mkdir ~/.vim
    # cd ~/.vim
    # unzip
    # unzip

    4.add .vimrc


    # vim ~/.vimrc
    ---add this below 2 lines---
    filetype plugin on
    set nocompatible

    5.activate OmniComplete


    # vim foo.cx
    :helptags ~/.vim/doc

    Then now able to do this functions.
    OmniComplete
    Adding file header
    Adding function/frame comment
    Including default code snippet
    Performing syntax check
    Reading documentation about a function
    Converting a code block to comment, and vice versa

    Classic Mac Os9 のスクリーン画像の変換

    Os9の過去のデザインデータをぱぱっと、キャプチャ撮って、集めておこうとしたところ、Classic Macのスクリーンキャプチャの画像ファイルってOS Xでも、もちろんwinでも、linuxでも、開けず、参ってしまった。

    PixelCat、これを発見。便利です。

    Yoshiki Kojimaさん、ありがとうございます。



    で、さらに、変換したのは、いいけど、大きさがバラバラなんで、一括変換する便利なものを発見。

    リサイズ超簡単!Pro、便利です。使い易いです。

    Kazuo Chibaさん、ありがとうございます。


    Sunday, November 29, 2009

    How to select ComboBox

    How to select ComboBox by AutoIt.exe from ruby
    Give parameter to select combobox exe.


    ### select_year_combobox.au3 ###
    WinActivate("Configuration")
    Global Const $CB_SETCURSEL = 0x14E
    $h_combobox = ControlGetHandle("Configuration", "", "[CLASS:WindowsForms10.COMBOBOX.app.0.378734a; INSTANCE:2]")
    $i_index = $CMDLINE[1]
    DllCall("user32.dll", "int", "SendMessage", "hwnd", $h_combobox, "int", $CB_SETCURSEL, "int", $i_index, "int", 0)


    ControlGetHandle("Configuration", "", "[CLASS:WindowsForms10.COMBOBOX.app.0.378734a; INSTANCE:2]")
    ControlGetHandle(<app title>, "", <select combobox instance>).
    <select combobox instance> is easy to know by AutoIt Window Info app.


    ### select_combobox.rb ###
    select_year_exe = File.expand_path(File.dirname(__FILE__) + "/select_year_combobox.exe")
    year = 1 # ex. index 1 = 2005
    system("#{select_year_exe} #{year}")


    >ruby select_combobox.rb # app will choose index 1 from combobox.
    >select_year_combobox.exe 1 # app will choose index 1 from combobox.

    Wednesday, November 11, 2009

    Skype mood to twitter by COM

    Skype mood to twitter.
    Skypeのムードをtwitterにpost。

    on windowsXP
    requirement

    Useage
    cmd.exe
    >gem install twitter4r
    >regsvr32 Skype4COM.dll <--when popup dialog,should 'OK'
    >ruby mooding.rb
    then every 5 sec. ruby check skype mood and updated at that time,post it to twitter.
    だいたい5秒おきに、skypeのムードが更新されたか確認して、されてれば、twitterにポストします。下記コードのみ。
    for stopping,止め方、Ctrl+C

    #! ruby -Ku
    require 'rubygems'
    require 'win32ole'
    require 'twitter'
    require 'kconv'

    $KCODE = 'UTF8'

    @oTwitter = Twitter::Client.new
    twit_id = ARGV[0]
    twit_pwd = ARGV[1]
    if @oTwitter.authenticate?(twit_id, twit_pwd) == true then
    p 'OK auth'
    else
    raise 'ID,Passwd or both is not collect'
    end

    @oSkype=WIN32OLE.new('Skype4COM.skype')
    mood = nil # Anyway 1st time twit mood
    loop do
    if @oSkype.Client.IsRunning != true then
    raise "Please start skype"
    else
    end

    if @oSkype.CurrentUserProfile.MoodText.toutf8 != mood then
    mood = @oSkype.CurrentUserProfile.MoodText.toutf8
    @oTwitter = Twitter::Client.new(:login => twit_id, :password => twit_pwd)
    @oTwitter.status(:post, mood)
    else
    sleep(5) # check mood update every almost 5sec.
    end
    end

    Saturday, October 10, 2009

    git-archive by 7zip

    git-archive by 7zip.


    いままで、tar.gzにしていたが、アーカイブのファイル数が爆発的に増えたところから他のマシンで解凍できない時があるので、7zもだんだんメジャーになっていると思うので、tar.gzから7zに変更。
    原因は、たぶん、gzipのオプションととにかく多いファイル、調査中。

    検証済み環境
    windowsXP msysgitでのgit archiveで7zip。


    # git archive --format=7z --prefix="some_dir"/ HEAD | "path_to_7z.exe" a src.7z


    ここを参考で便利なbashスクリプト、バージョンをtag付けしておけば便利!を7zip用にしたもの。

    #!/bin/sh
    stable="$1"
    last="$2"
    new="$3"
    git tag v$new"
    git archive --format=7z --prefix=Foo-$new/ v$new | "C:\Program Files\7-Zip\7z.exe" a ../Foo-$new.7z
    git diff v$stable v$new | "C:\Program Files\7-Zip\7z.exe" a ../patch-$new.7z
    git log --no-merges v$new ^v$last > ../ChangeLog-$new
    git shortlog --no-merges v$new ^v$last > ../ShortLog
    git diff --stat --summary -M v$last v$new > ../diffstat-$new

    Wednesday, September 30, 2009

    Sometime without dual monitor,some apps in that monitor.

    デュアルモニターに忘れてしまって、そっち側にいる消えてしまったアプリを元に戻す方法。
    Relocate forgotten application in dual monitor.


    アプリによりけりです、まずはグレートなアプリについて
    It is depend on application. At first show about Greatest Application.
  • The First Application

  • CAPTST28


    This is super capture tool.

    CAPTST28/Capt_st.INI

    ~some code~
    [Window]
    Splitter=87
    Xpos=170 # -> This is openig posion,ここを100ぐらいにすると帰ってきます。
    ~some code~

    もし、上下にモニターを拡張している人は、Yposになると思いますが、、、いるの?
  • Also The First Application

  • Cassava Editor


    This is super CSV editor

    Cassava/Cassava.ini

    ~some code~
    [Position]
    Mode=0
    Left=53 # -> This is openig posion,ここを100ぐらいにすると帰ってきます。
    Top=264
    ~some code~

    Thursday, September 24, 2009

    win32ole on ActivePerl 5.6

    When I use module::win32ole, I could not make win32ole instance.
    Solution.
  • Install AutoIT

  • or
    find AutoItX3.dll and

    cmd.exe
    >regsvr32 AutoItX3.dll

    Tuesday, August 18, 2009

    Brew Tool Suite Perl API

    How to apply original keymap.ini

    オリジナルのキーマップ iniファイルを作成しテストケースを作るにあたって。

    use enumでハマリました。

    --keymap.ini

    [KEYMAP]
    AVK_SELECT=112
    AVK_UP=134
    AVK_DOWN=135
    AVK_LEFT=88
    AVK_RIGHT=89
    AVK_SOFT1=34
    AVK_SOFT2=35
    AVK_SOFT3=36
    AVK_SOFT4=36
    AVK_SEND=69
    AVK_CLR=70

    だとしたら、
    --Testcase.pl

    .....
    use enum qw( AVK_ASTERISK=1000 AVK_NUMBER_SIGN AVK_SELECT AVK_UP AVK_DOWN AVK_LEFT AVK_RIGHT AVK_SEND AVK_CLR AVK_END);
    .....

    のように、enumで定義するときに、順序を合わせないと想定通りの挙動をしなかった。

    iniファイルの内容をnameでマッピングするのかと思っていたのが間違え立った模様。
    足掛け、3日ハマリマシタ。Brewのデベロッパー(正式なアカウントがないと入れない)サイトでもぜんぜんこういう情報がなく。サイトも重いし。アカウント作成すれば入れるフォーラム(無料のサイト)でもあまり情報なしで、perl普段から使ってる人には常識なのかもしれないですが、、、

    慣れていないperlコードだけだと、自動テストをまとめてコントロールするのが大変なんで、rakeでできないかなーと模索中。
    Autoitも使用するので、rubyで全部コントロールできると楽。

    だれか、Brew Tool Suite Perl APIでなく、RubyにてBTILをSwigした、Brew Tool Suite知ってますか?
    Does anyone know Brew Tool Suite Ruby API that swiged BITL for ruby?

    Tuesday, August 4, 2009

    O:TFSの復旧パターン1

    TFSの復旧パターン1:同一マシン、同一マシン名、まったく同一環境での復旧




    復旧前の準備、各サービスの停止


    スタート > 管理ツール > サービス >


    • Visual Studio Team Foundation Server Task Scheduler を停止

    • SharePoint Timer Serviceを停止

     

    スタート > 管理ツール > IIS マネージャ > 左ペインのアプリケーションプール <展開>



    • > Microsoft Team Foundation Server Application Pool を右クリック > [停止]


    • > ReportServer を右クリック > [停止]

     

    スタート > Reporting Services 構成 > TFSで使用しているインスタンス名であるか確認し(MSSQLSERVER)、接続

    > サーバの状態 > [インスタンスのプロパティ]にある[停止] をクリック

     

    復旧



    スタート > SQL Server MAnagement Studio > サーバの種類:データベースエンジンで接続 >

    • 復元するデータベースを右クリックし、[タスク] をポイントします。次に、[復元] をポイントし、[データベース] をクリックします。
    • [データベースの復元] ダイアログ ボックスが表示されます。
    • [復元用のソース] で [デバイスから] をクリックし、省略記号ボタン ([…]) をクリックします。
    • [バックアップの指定] ダイアログ ボックスで、バックアップ ファイルの場所を指定し、[OK] をクリックします。
    • 最初に完全バックアップを適用した後、トランザクション ログ バックアップを作成順に適用する必要があります。
    • [復元するバックアップ セットの選択] で、復元するバックアップ セットを指定します。
    • [ページの選択] ペインで、[オプション] をクリックし、[既存のデータベースを上書きする] チェック ボックスをオンにします。
    • [次のデータベース ファイルに復元] ボックスで、指定されているパスが現在のデータベースのパスと一致していることを確認します。
    • [復旧状態] で、適切な状態をクリックします。
    (ReportServerとReportServer TempDBは、RESTORE WITH RECOVERYを選択した。トランザクションログがないため)
    RESTORE WITH RECOVERYを選択したDB
    • ReportServer
    • ReportServerTempDB

    RESTORE WITH NORECOVERYを選択したDB
    • TfsBuild
    • TfsIntegration
    • TfsVersionControl
    • TFSWarehouse
    • TfsWorkItemTracking
    • TfsWorkItemTrackingAttachments
    • TfsActivityLogging

    WSS関係のDBはここでは復元しない。


    • [OK]をクリック

    ReportServerとReportServer TempDBは、上記の復旧のみであるが、ほかのDBは、上記の操作後、復旧中になる。
    再度、ReportServerとReportServer TempDB以外のDBを右クリックすると、復元項目にトランザクションログが追加される。


    • 復元するデータベースを右クリックし、[タスク] をポイントします。次に、[復元] をポイントし、[トランザクションログ] をクリックします。
    • [データベースの以前のバックアップから]でDB名が正しいことを確認
    • DB名-トランザクション ログ バックアップ にチェックが入っていることを確認
    • [ページの選択] ペインで、[オプション] をクリックし、[復旧状態]で RESTORE WITH RECOVERYを選択した。
    • [OK]をクリック

    上記をすべてのDBで行う。


    [復旧状態の簡単な説明]
          追加のトランザクション ログを適用しない場合は、[データベースを使用可能な状態にする] をクリックします。=>RESTORE WITH RECOVERYのこと。
          追加のトランザクション ログを適用する場合は、[データベースは操作不可能状態のまま] をクリックします。=>

    [OK] をクリックして、[データベースの復元] ダイアログ ボックスを閉じ、データベースを復元します。

    追加のトランザクション ログを適用する場合は、適用するログのバックアップ セットが作成された順序に従い、各セットに対してこの手順を実行します。完全バックアップ後に作成されたログ バックアップに対してこの手順を実行するようにしてください。

     

    Team Foundation アプリケーション層サーバのアクティブ化

    cmd.exeにて

    >cd ~ProgramFiles\Microsoft Visual Studio 2008 Team Foundation Server\Tools
    >TfsAdminUtil Activate WS2003STD



     チームプロジェクト Webサイトの復元


    スタート > 管理ツール > SharePoint 3.0 サーバの全体管理
    [サーバの全体管理] > [SharePoint Web アプリケーション構成の管理] > [ コンテンツデータベース] をクリック
    [コンテンツデータベースの管理] > [WSS_Content]をクリック
    [ コンテンツデータベース設定の管理] > [コンテンツデータベースの削除]にチェック、[OK]をクリック
    [コンテンツデータベースの追加] > [ データベースの情報] > [データベースサーバー設定の指定] をクリック
    [データベース名]:WSS_Content
    [データベース容量の設定]の
    [警告が~]:9000
    [このデータ~]:15000
    [OK]をクリック
    スタート > 管理ツール > サービス > SharePoint Timer Service を開始

    SQL Server Reporting Services および既定のレポートの復元およびテスト


    スタート > 管理ツール > IIS マネージャ > 左ペインのアプリケーションプール <展開>



    • > ReportServer を右クリック > [開始]

    スタート > Reporting Services 構成 > TFSで使用しているインスタンス名であるか確認し(MSSQLSERVER)、接続

    • > サーバの状態 > [インスタンスのプロパティ]にある[開始] をクリック
    • > 左のペインで [データベースのセットアップ]をクリック
    サーバ名(WS2003STD)、データベース名(ReportServer)が正しいことを確認し [接続]をクリック
    [SQL Server 接続ダイアログ] ダイアログ ボックスで、[OK] をクリックします。
    [適用]をクリック
    [SQL Server 接続ダイアログ] ダイアログ ボックスで、[OK] をクリックします。

    • > 左のペインで [暗号化キー]をクリック
    :パスワードにいつものを入力
    :キー ファイルに構築時に保存した、tfsrecover.snkを指定(ファイル名は保存されているもの)

    • > 左のペインで [初期化]をクリック
    古いTFSのデータ層サーバの名前に対応するインスタンスを選択し、[削除]をクリックして[OK]をクリック
    ※同一環境での復旧のため、インスタンスIDが変わらないので、削除ではなく初期化
    異なる環境の場合は、古いTFSのデータ層サーバの名前に対応するインスタンスを削除ここについては、要確認 -takanobu watanabe 6/8/09 5:47 PM 


    保険として、このインスタンスIDが表示されいる画面のキャプチャを取る。

    SQL Server Reporting Services での作業

    TFSのサーバのローカルでIEを立ち上げ、http://localhost/reportsに接続 > コンテンツ > TfsReportDS をクリック
    名前:TfsReportDS
    このデータソースを有効にするにチェック
    接続の種類:Microsoft SQL Server
    接続文字列:Data source=WS2003STD;initial
                  Catalog=TfsWarehouse
    接続に使用する認証:レポートサーバに保存され、セキュリティで保護された資格情報
    ユーザ名:WS2003STD\TFSSERVICE
    パスワード:いつもの
    データソースへの接続時にWindows資格情報として使用するにチェック
    [適用]をクリック

    ホーム > TfsOlapReportDS をクリック
    名前:TfsOlapReportDS
    このデータソースを有効にするにチェック
    接続の種類:Microsoft SQL Server
    接続文字列:Data source=WS2003STD;initial
                  Catalog=TfsWarehouse
    接続に使用する認証:レポートサーバに保存され、セキュリティで保護された資格情報
    ユーザ名:WS2003STD\TFSSERVICE
    パスワード:いつもの
    データソースへの接続時にWindows資格情報として使用するにチェック
    [適用]をクリック


    cmd.exeにて
    >cd ~ProgramFiles\Microsoft Visual Studio 2008 Team Foundation Server\Tools
    >SetupWarehouse.exe -o -s WS2003STD -d TfsWarehouse -c warehouseschema.xml -ra TFSREPORT -a TFSSERVICE -mturl http://WS2003STD:8080
    参考にしたドキュメント(MSDNのサイト)に間違えがある?、どうやっても上記のコマンドが通らない。

    >TfsAdminUtil ConfigureConnections /view
    返り値
    TfsAminUtil ConfigureConnections /view
    TfsAdminUtil - Team Foundation Admin Utility
    Copyright (C) Microsoft Corporation. All rights reserved.

    VSTS クライアント証明書は現在構成されていません。これはエラー条件ではありません。
    ATUri の現在の値               = http://WS2003STD:8080
    PublicATUri は現在設定されていません。これはエラー条件ではありません。
    SharepointUri の現在の値       = http://WS2003STD:80
    SharepointSitesUri の現在の値  = http://WS2003STD:80/Sites
    SharepointAdminUri の現在の値  = http://WS2003STD:17012/_vti_adm/admin.asmx
    SharepointUnc の現在の値       = \\WS2003STD\Sites
    ReportsUri の現在の値          = http://WS2003STD/Reports
    ReportServerUri の現在の値     = http://WS2003STD/ReportServer/ReportService.asmx

    上記の返り値を参考に値を入れる。
    NewReports : http://WS2003STD/Reports
    NewReportServer : http://WS2003STD/ReportServer/ReportService.asmx


    >TfsAdminUtil ConfigureConnections /ReportsUri:NewReports/ReportServerUri:NewReportServer

    返り値

    TfsAdminUtil - Team Foundation Admin Utility
    Copyright (C) Microsoft Corporation. All rights reserved.

    SQL レポートの URI は指定された値 http://ws2003std/Reports/ReportsServerUri:http
    ://WS2003STD/ReportServer/ReportService.asmx に正常に設定されました
    Windows SharePoint Services サイトまたは SQL Server Reporting Services サイトの
    URI (Uniform Resource Identifier) が変更されました。Team Foundation Server は、
    これらのサイトの少なくとも 1 つに依存しています。Team Foundation Server を正常に
    動作させるには、Windows SharePoint Services が実行されているコンピュータで TfsCo
    nfigWss コマンド ライン ユーティリティを実行する必要があります。



    >TfsConfigWss

    ダイアログで下記の項目を入力するところがあるので、下記の左記を入力する。

    Windows SharePoint Service : http://WS2003STD:80/sites

    Reporting Services レポートサイト : http://WS2003STD:80/Reports

    Reporting Services管理サイト : http://WS2003STD:80/ReportServer


    スタート > 管理ツール > IIS > Microsoft Team Foundation Server アプリケーション プール 開始

    スタート > 管理ツール > サービス > Visual Studio Team Foundation Server Task Scheduler Service 開始


    要確認未テスト、復旧したデータ状態なったいることをクライアントから確認できたが、データを入れたりしてみないと不安 -takanobu watanabe 6/8/09 7:49 PM 

    データの登録など、無事できた。 -takanobu watanabe 6/10/09 5:19 PM 














    Monday, August 3, 2009

    趣味のエディタ評価

    Emacs

    => light~heavy,comfortable when know many short-cuts.But no need do it all in Emacs.

    Vim

    => light,comfortable,better to know vim when working.

    Editra

    => sometime feel heavy,good editor.

    Geany

    => light,good editor.

    notepad++

    => light,good editor for windows

    Eclipse

    => Heavy,nice editor on super machine.

    Xcode

    => light,nice editor,But only mac

    My sets:
    *Geany for main job
    *Vim for git
    *Meld for git
    *Mutt for email
    *twidge for twit
    *FireFox for google apps
    need some calendar client? need some RSS reader?,Browser is enough for that.

    Wednesday, July 29, 2009

    急にウィンドウズサーバでサイトが見れなくなった。

    テスト中に、さっきまで、サイトにアクセスできていたのにも関わらず、急にサイトが見れなくなった。

    ■原因
    見れなくなる前に、サーバのデスクトップに共有フォルダをEveryoneに対し、フルコントロールを与えた。

    □解決策
    上記の共有フォルダを止め。IIS再起動し、もとに戻った。

    Monday, July 6, 2009

    Computers,cars and motorcycles.

    For example, when since 80's motorcycle or car is broken,,,

    • The coil was broken. => Want a coil => I want to buy only coil => There is only Assy, no choice. And should to get a combined order. => Will take a heavy flywheel and coil.
    • The car window open switch was a broeken. => I want to buy a switch => There is only Assy, no choice. And should to get a combined order. =>Will take all electrical system is on the inside of the door.
    • Ignition timing is wrong. => CDI problem. => Impossible repairs => Exchange.

    For example, when the old 60's motorcycle or car is broken,,,

    • The coil was broken. => Want a coil => Search => To replace the coil.
    • The car window open switch was a broeken.(Maybe no electric window open) => Adjust or replace the gear.
    • Ignition timing is wrong. => Something wrong with the governor. => Re-adjust or replace the timing capacitor.

    For example, Microsoft WindowsXP,,,

    • When Excel often down. => I do not know. => Excel send report, But MS does not send any reply to the report, even fell frequently. => Re-install it.Because paid soft,don't want waste.
    • When Blue back. => Not start. => I do not know. => MSN is going to the site, the comments that have rotation spots to hit similar problems. (Why MS does not support by phone?)
    • When IE8 has been updated by automatic(People usually think so). => Can not browse some site. => Can not be downgraded. => Probably reinstall windowsXP.

    For example, GNU/Linux,,,

    • When OpenOffice down. (Sometime A little heavy, But never down) => So what the hell(This is free). => Re-install.
    • When Kernel panic on wake. => Not start. => I do not know. => Ask for help from the community. Usually can find answer.
    • When FF 3.5 is an updated itself. (But does not update without expressly) => Can not browse the site occurs. (Not currently), some plug-in is unusable. => Give up pulg-in or downgraded.

    I am not saying Linux is old, Mostly Linux has the User. Microsoft has the Customer. It is your money that for supporting.
    Who make good software free ! Although Bill Gates is saying. But paying money without support. Who attention to pay ?
    Also, Now increaseing people leave for be freedom from Microsoft product net even pay.
    The Delight of old cars and motorcycles are feeling that old maker build that fine and strong with builder pride and enjoy my own repairs and the custom, because it is able to be attempted understanding the mechanism.
    This is open source in GNU/Linux. Able to read the source, you can try to understand. Analysis of electron injection program the ROM to try to tune in, here's Linux side. It was tuned to the ROM is replaced, this is a windows side and they want.
    CDI will be replaced as maker say the manufacturer has failed. When strange Governor, who will happily tell us how to do, of course able to understand it yourself too. Because you can open.
    There are some differences work and hobby. But we should have no stress.
    I want be surrounded by known and open things.

    Tuesday, June 16, 2009

    Expand VMware HardDisk

    Stuck in Team Foundation Server setup on VMware machine.
    When I batch Visual Studio 2005 Team Suite SP1,VM machine HD was full,could not extract that.
    Tools.
  • GPARTED-CLONEZILLA

  • Virtual Disk Development Kit 1.0.1 for Windows

  • 1.Expand physical(image) Hard disk.

    cmd.exe
    >vmware-vdiskmanager.exe -x GB .vmdk

    Need to set environment path to "C:\Program Files\VMware\VMware Virtual Disk Development Kit\bin" or drug "vmware-vdiskmanager.exe" on cmd window.
    2.Expand partition.
    Boot target VM machine from .iso.
    (when VM machine start F2 => go BIOS => Boot device setting)
    Easy GUI,but better chose lang = "EN" otherwise garble.(in my case)