Posts

Showing posts from September, 2013

android phonegap developer log

1.add one ad in phonegap in android FrameLayout.LayoutParams params = new FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT); params .gravity = Gravity.BOTTOM; LinearLayout layout = super.root; layout.addView( new AdView( this , AdSize.BANNER, AdMob_Ad_Unit), params ); see here: PhoneGap-Android-Native-AdMob 2.add one splashscreen in phonegap when java onCreate super.setIntegerProperty( "splashscreen" , R.drawable.splash); super.loadUrl( "file:///android_asset/www/index.html" , 10000); when javascript hide splashscreen: if (navigator.splashscreen) navigator.splashscreen.hide(); see here: Splashscreen 3.java startActivity in phonegap Intent intent = new Intent(); intent.setClassName(packageName, className); startActivity(intent); check has app: public static Boolean hasApp(String packageName, String className) { Boolean f = false ; try { ...

microsoft system center 2012 sp1 – used experience 3 vmm template

Image
1.todo 添加、修改、删除套餐模板(参数为cpu,内存,硬盘等) Add, modify, delete package template (parameter cpu, memory, hard drives, etc.) 2.appnix New-SCApplicationProfile The New-SCApplicationProfile cmdlet creates an application profile. Application profiles define the applications that will be installed during virtual machine deployment and servicing. Add-SCOperatingSystem     The Add-SCOperatingSystem cmdlet adds an operating system to an application profile object. Setting the operating system for an application profile determines which operating systems the profile is compatibile with. If no operating system is set, by default the profile is compatible with all operating systems. Copy-SCVirtualHardDisk The Copy-SCVirtualHarkDisk cmdlet copies a VMware virtual hard disk file (a .vmdk file) to a Windows-based virtual hard disk file (a .vhd file) and converts the virtual hard disk for use in a System Center Virtual Machine Manager (VMM) environment. The disk's contents are preserved...

microsoft system center 2012 sp1 – used experience 3 vmm template

Image
1.todo 添加、修改、删除套餐模板(参数为cpu,内存,硬盘等) Add, modify, delete package template (parameter cpu, memory, hard drives, etc.) 2.appnix New-SCApplicationProfile The New-SCApplicationProfile cmdlet creates an application profile. Application profiles define the applications that will be installed during virtual machine deployment and servicing. Add-SCOperatingSystem     The Add-SCOperatingSystem cmdlet adds an operating system to an application profile object. Setting the operating system for an application profile determines which operating systems the profile is compatibile with. If no operating system is set, by default the profile is compatible with all operating systems. Copy-SCVirtualHardDisk The Copy-SCVirtualHarkDisk cmdlet copies a VMware virtual hard disk file (a .vmdk file) to a Windows-based virtual hard disk file (a .vhd file) and converts the virtual hard disk for use in a System Center Virtual Machine Manager (VMM) environment. The disk's contents are preserved...

microsoft system center 2012 sp1 – used experience 3 vmm template

1.todo 添加、修改、删除套餐模板(参数为cpu,内存,硬盘等) Add, modify, delete package template (parameter cpu, memory, hard drives, etc.) 2.appnix New-SCApplicationProfile The New-SCApplicationProfile cmdlet creates an application profile. Application profiles define the applications that will be installed during virtual machine deployment and servicing. Add-SCOperatingSystem     The Add-SCOperatingSystem cmdlet adds an operating system to an application profile object. Setting the operating system for an application profile determines which operating systems the profile is compatibile with. If no operating system is set, by default the profile is compatible with all operating systems. Copy-SCVirtualHardDisk The Copy-SCVirtualHarkDisk cmdlet copies a VMware virtual hard disk file (a .vmdk file) to a Windows-based virtual hard disk file (a .vhd file) and converts the virtual hard disk for use in a System Center Virtual Machine Manager (VMM) environment. The disk's contents are preserved ...

microsoft system center 2012 sp1 – used experience 3 vmm template

1.todo 添加、修改、删除套餐模板(参数为cpu,内存,硬盘等) Add, modify, delete package template (parameter cpu, memory, hard drives, etc.) 2.appnix New-SCApplicationProfile The New-SCApplicationProfile cmdlet creates an application profile. Application profiles define the applications that will be installed during virtual machine deployment and servicing. Add-SCOperatingSystem     The Add-SCOperatingSystem cmdlet adds an operating system to an application profile object. Setting the operating system for an application profile determines which operating systems the profile is compatibile with. If no operating system is set, by default the profile is compatible with all operating systems. Copy-SCVirtualHardDisk The Copy-SCVirtualHarkDisk cmdlet copies a VMware virtual hard disk file (a .vmdk file) to a Windows-based virtual hard disk file (a .vhd file) and converts the virtual hard disk for use in a System Center Virtual Machine Manager (VMM) environment. The disk's contents are preserved ...

microsoft system center 2012 sp1 – used experience 2 vmm powershell

1.todo program with vmm powershell 2.analyze vmm powershell: wmic process where caption= "powershell.exe" get caption,commandline /value output: Caption=powershell.exe CommandLine= "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoExit -Command $ep = Get-ExecutionPolicy; if ( $ep -eq ([Microsoft.PowerShell.Executio nPolicy]::Restricted) ) { Set-ExecutionPolicy RemoteSigned -Scope Process -Force } "Import-Module 'D:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\Bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1'; cd $ho me; $host.UI.RawUI.WindowTitle = 'Windows PowerShell - Virtual Machine Manager'; $vmmserver_VAR=Get-SCVMMServer localhost -UserRoleName '管理员';" desktop powershell: power shell: wmic process where caption= "powershell.exe" get cap tion,commandline /value output: Caption=powershell.exe CommandLine= "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powersh...

microsoft system center 2012 sp1 – used experience 2 vmm operator

Image
1.run powershell in vmm start vmm,then click powershell,like this: 2.create VMHost This step can create one "scvmm" instance in bellow result image: 2.1 create one account $Creds = Get-Credential // here need type your current system account and password $RunAsAccount = New-SCRunAsAccount -Name "RunAsAcct01" -Credential $Creds // your can see: New-SCRunAsAccount 2.2 create one vmhome $RunAsAccount = Get-SCRunAsAccount -Name "RunAsAcct01" Add-SCVMHost "SCVMM.cloud.com" -Description "This is a new host" -RemoteConnectEnabled $True -RemoteConnectPort 5900 -Credential $RunAsAccount 3. create one vm virtual machine This step can create one "VM01" instance in bellow result image: 3.1 prepare VirtualHardDisk bellow is drafts,i leave for langch one then,code bollow in powershell of vmm console: $VHD = Get-SCVirtualHardDisk -Name "empty-small.vhd" $VMTemplate = Get-SCVMTemplate | where {$_.Name -eq "VMTemplat...

microsoft system center 2012 sp1 – used experience 1 appendix

Image
  Appendix 1.download System Center 2012 Service Pack 1 – Orchestrator – Evaluation (VHD) < http://www.microsoft.com/en-us/download/details.aspx?id=36426 > 2.Architecture 3.Deploy VMM   machine name:SCVMM.cloud.com ip:192.168.100.37 account:administrator domain:cloud.com   install software:VMM of system center, hyper-v

=B7=D6=B3=C9=D5=CB=B5=A5

------=_Part_1707_22336774.1379424489669 Content-Type: text/html;charset=GB2312 Content-Transfer-Encoding: quoted-printable =B7=D6=B3=C9=D5=CB=B5=A5 body{font-size:12px;text-align:center;} #wrap img{border:none;} #wrap a{color:#094faa;text-decoration:none;} #wrap *{padding:0;margin:0;} #wrap i{font-style:normal;} #wrap .left{float:left;width:402px;} #wrap .right{float:left;width:185px;padding-top:93px;} #wrap .right a{margin-bottom:21px;display: block;} #wrap .left dl{padding:119px 0 0 41px;} #wrap .left h3{background:url(http://u5.mm-img.com/rs/res/publish/settlemen= t/images/h3bg.jpg) no-repeat;color:#0a4a85;font-size:12px;height:25px;paddi= ng:22px 0 14px 43px;margin-top: 12px;} #wrap .left dt{padding-bottom:13px;} #wrap .left dt i{font-size:14px;font-weight:bold;color:#004395;} #wrap .left dd{line-height:20px;width:305px;text-indent:24px;} #wrap .left dd i{font-weight:bold;font-size:14px;color:#fe0000;} #wrap{width:598px;border:1px solid #e0e0e0;background:url(http://u5.mm-img.= co...

New version of pkrssv2 in the Android Market

Image
Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello lian deliang, You've just released the 2.06 version of your "pkrssv2" app on the official Android Market. You've uploaded the 2.05 version to AndroidPIT. Please upload the latest version to AndroidPIT, so that AndroidPIT users can also install the latest version of your app. Just click on "Upload upgrade" on your developer page for the "pkrssv2" app. Access your developer page here: http://w...

Download our new AndroidPIT app now

Image
Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Download our new AndroidPIT app now Good news! As of right now, the brand new AndroidPIT App version 2.0 is ready to install. It won't just offer a completely new design, but also many improvements from the old version. Try it out yourself! Download now: You are receiving this e-mail b...