2013年6月29日 星期六

How to: Mac下資料夾對於有些資料夾呈現灰色無法存取(Greyed out)的解決方法

##2016/10/26

自己今天又遇到這個問題,只好把筆記在發出來看一次

也可以使用chflags 來更改file lock的問題,不過我測試還是無效,等之後有時間在來多做些測試

 chflags -R nouchg /path/

 

#2013/06/28

最近買了thunderbolt的外接硬碟準備備份我散落在各地的小硬碟,之前大部分都是在windows上面進行的備份,然後卻發現有一些資料夾都變成

灰色無法讀取,但奇怪的是在terminal下面卻又可以存取,甚至在windows上面也可以讀取,檢查過權限問題,但還是無解,唯一發現的怪現象,

是那些資料夾的日期都是奇怪的日期,例如1970年或1984年這兩個日期,查了一下原因可能是因為在finder進行拷貝時,由於發生某些非預期的錯誤,

所以finder認為檔案還沒備份完成,所以才顯示灰色無法讀取,

下列是最簡單的解決方法,把檔案設定新的日期

#SetFile -d 06/28/2013 資料夾名稱

2013年6月28日 星期五

How to disable ubuntu 10.04螢幕保護程式與電腦休閒模式

從askubuntu 轉來的http://askubuntu.com/questions/67355/how-do-i-completely-turn-off-screensaver-and-power-management

 

Disable the GNOME Settings Deamon's power plugin from the command line:

gsettings set org.gnome.settings-daemon.plugins.power active false 

Alternatively, using dconf-editor from the dconf-tools package:

enter image description here

For the screensaver:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false 

Or again via dconf-editor:

enter image description here

shareimprove this answer
 
2 
This does not work. I have an HDMI monitor, and it still turns off after a few minutes. All screensaver and power settings seem to be completely ignored. – Cerin Feb 2 at 23:51

2013年6月26日 星期三

Apple 產品維修進度查詢網站

2017/06/01: 今天因為觸控螢幕會自己亂跳,所以送修我的iphone 6 plus要Studio A , 發現他的序號無法在apple 上面查詢,

而且Apple 查詢維修查詢網址也已經變更如下了

 

 

新的網址:

https://checkrepair.apple.com/tw/zh

https://getsupport.apple.com

網站位址:My Support Profile



由於在近兩個月內,我的Mac 產品接連送修,每次送修幾乎都要5-7個工作天 枯等廠商電話的感覺實在不怎麼好 不過後來發現其實還是可以從上列的連結去查詢進度

目前產品送修紀錄
1.2011 late MBP: 電源供應器無法供電->換新
              主機板更換*2
2.2011 late MBA:
              電源共應器線頭脫落->換新

2013年6月18日 星期二

How can I use the /home directory

Error:
#mkdir test: Operation not supported

##
To get the /home directory back. Edit /etc/auto_master and remove or comment out the line that starts with "/home". Then reboot.

Java Web Start(即 JNLP)應用程式必須使用開發人員識別碼憑證簽署

自 OS X v10.8.4 開始,從 Internet 下載的 Java Web Start(即 JNLP)應用程式必須使用開發人員識別碼憑證簽署。Gatekeeper 會檢查下載的 Java Web Start 應用程式是否有簽章,若未經適當簽署,就會封鎖這類應用程式,使其無法啟動。

2013年6月17日 星期一

how to install Java on Ubuntu 10.04

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update
 sudo apt-get install oracle-java7-installer

2013年6月14日 星期五

2011 later MBP + AMD 6750 512 mb 顯卡升級到Mac OS 10.8.4後一直當機問題

至從前幾天把MBP升級到10.8.4後,發現常常當機,特別是只要跑到吃顯卡的遊戲就當機,後來找了顯卡硬體測試軟體 cinbench想說來測試一下,發現問題還真的很嚴重,幾乎每測必當機,下面是我的kernal painic 檔案,可以從你的應用軟體中,工具->叫出"系統監視程式"找看看有沒有你當機時間點,檔名含有kernal panic的檔案,內容格式如下,然後找到下面的關鍵字,System uptime in nanoseconds: 1026462746290

就是會使用些很大時間,接下來的哪一兩個程式應該就是有問題的,以我的例子而言,是一個叫做key4remap4macbook,請看下面付的檔案,被標記橙紅色的部份,我把它移除後,重新開機就一切正常了,或者你也可以在terminal 直接使用下列的密令,查看是否有非apple的keytext在開機時會被load進系統

#kextstat -kl | awk ' !/apple/ { print $6 } '

kextstat | awk ' !/app/ {print $6} '
Name
org.virtualbox.kext.VBoxDrv
com.driver.LogJoystick
at.obdev.nke.LittleSnitch
com.Cycling74.driver.Soundflower
org.virtualbox.kext.VBoxUSB
org.virtualbox.kext.VBoxNetFlt
org.virtualbox.kext.VBoxNetAdp
com.logitech.driver.LogiGamingMouseFilter
com.logitech.driver.LogiWheelDriver

 

 

Thu Jun 13 15:46:18 2013
panic(cpu 4 caller 0xffffff803029e53b): "TLB invalidation IPI timeout: " "CPU(s) failed to respond to interrupts, unresponsive CPU bitmap: 0x42, NMIPI acks: orig: 0x0, now: 0x0"@/SourceCache/xnu/xnu-2050.24.15/osfmk/x86_64/pmap.c:2337
Backtrace (CPU 4), Frame : Return Address
0xffffff8232a0b2a0 : 0xffffff803021d626
0xffffff8232a0b310 : 0xffffff803029e53b
0xffffff8232a0b390 : 0xffffff80302a2d50
0xffffff8232a0b450 : 0Machine-check capabilities 0x0000000000000c09:
family: 6 model: 42 stepping: 7 microcode: 26
Intel(R) Core(TM) i7-2675QM CPU @ 2.20GHz
9 error-reporting banks
threshold-based error status present
extended corrected memory error handling present
Processor 0: machine-check status 0x0000000000000005:
restart IP valid
machine-check in progress
MCA error-reporting registers:
IA32_MC0_STATUS(0x401): 0x0000000000000000 invalid
IA32_MC1_STATUS(0x405): 0x0980000000000000 invalid
IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
IA32_MC3_STATUS(0x40d): 0xbe00000000800400 valid
MCA error code: 0x0400
Model specific error code: 0x0080
Other information: 0x00000000
Threshold-based status: Undefined
Status bits:
Processor context corrupt
ADDR register valid
MISC register valid
Error enabled
Uncorrected error
IA32_MC3_ADDR(0x40e): 0x00003f7fb12751b5
IA32_MC3_MISC(0x40f): 0x000000000003ffff
IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
IA32_MC5_STATUS(0x415): 0x0020000000000000 invalid
IA32_MC6_STATUS(0x419): 0x0020000000000000 invalid
IA32_MC7_STATUS(0x41d): 0x0020000000000000 invalid
IA32_MC8_STATUS(0x421): 0x0020000000000000 invalid
Processor 1: no machine-check status reported
Processor 2: no valid machine-check state
Processor 3: no valid machine-check state
Processor 4: no valid machine-check state
Processor 5: no valid machine-check state
Processor 6: no machine-check status reported
Processor 7: machine-check status 0x0000000000000005:
restart IP valid
machine-check in progress
MCA error-reporting registers:
IA32_MC0_STATUS(0x401): 0x0000000000000000 invalid
IA32_MC1_STATUS(0x405): 0x0980000000000000 invalid
IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
IA32_MC3_STATUS(0x40d): 0xbe00000000800400 valid
MCA error code: 0x0400
Model specific error code: 0x0080
Other information: 0x00000000
Threshold-based status: Undefined
Status bits:
Processor context corrupt
ADDR register valid
MISC register valid
Error enabled
Uncorrected error
IA32_MC3_ADDR(0x40e): 0x00003f7fb191fae7
IA32_MC3_MISC(0x40f): 0x000000000003ffff
IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
IA32_MC5_STATUS(0x415): 0x0020000000000000 invalid
IA32_MC6_STATUS(0x419): 0x0020000000000000 invalid
IA32_MC7_STATUS(0x41d): 0x0020000000000000 invalid
Package 0 logged:
IA32_MC8_STATUS(0x421): 0x0020000000000000 invalid
Backtrace (CPU 4), Frame : Return Address
0xffffff81f6b1de90 : 0xffffff803021d86b
0xffffff81f6b1dec0 : 0xffffff803021d5ad
0xffffff81f6b1df30 : 0xffffff80302b8ec9
0xffffff81f6b1e0a0 : 0xffffff80302cea4f
0xffffff8232a0aeb0 : 0xffffff803022926a
0xffffff8232a0aed0 : 0xffffff8030228120
0xffffff8232a0afe0 : 0xffffff8030229376
0xffffff8232a0b050 : 0xffffff80302bcb28
0xffffff8232a0b260 : 0xffffff80302bc713
0xffffff8232a0b2a0 : 0xffffff803021d626
0xffffff8232a0b310 : 0xffffff803029e53b
0xffffff8232a0b390 : 0xffffff80302a2d50
0xffffff8232a0b450 : 0xffffff80302a3585
0xffffff8232a0b4a0 : 0xffffff803026720c
0xffffff8232a0b590 : 0xffffff803026b0e0
0xffffff8232a0b5c0 : 0xffffff8030265bdf
0xffffff8232a0b5f0 : 0xffffff803022484e
0xffffff8232a0b610 : 0xffffff8030622e1d
0xffffff8232a0b630 : 0xffffff7fb085fe9d
0xffffff8232a0b660 : 0xffffff7fb0862557
0xffffff8232a0b6b0 : 0xffffff7fb0860052
0xffffff8232a0b6f0 : 0xffffff7fb0860b16
0xffffff8232a0b8b0 : 0xffffff7fb085cbec
0xffffff8232a0ba70 : 0xffffff803068b59e
0xffffff8232a0bab0 : 0xffffff80302eb822
0xffffff8232a0bb50 : 0xffffff80302eae44
0xffffff8232a0bc10 : 0xffffff8030305732
0xffffff8232a0bd90 : 0xffffff80302fe0fc
0xffffff8232a0bf50 : 0xffffff80305e16aa
0xffffff8232a0bfb0 : 0xffffff80302ce9c3
Kernel Extensions in backtrace:
com.apple.security.sandbox(220.3)[B66761E0-9412-3C2E-AA8F-17D15E7A3E3D]@0xffffff7fb0859000->0xffffff7fb0869fff
dependency: com.apple.kext.AppleMatch(1.0.0d1)[327C619E-5CC2-311F-8B0C-F9D508BFD5B0]@0xffffff7fb0855000

BSD process name corresponding to current thread: DumpGPURestart

Mac OS version:
12E55

Kernel version:
Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64
Kernel UUID: 896CB1E3-AB79-3DF1-B595-549DFFDF3D36
Kernel slide: 0x0000000030000000
Kernel text base: 0xffffff8030200000
System model name: MacBookPro8,2 (Mac-94245A3940C91C80)

System uptime in nanoseconds: 1026462746290
last loaded kext at 16871739012: org.pqrs.driver.KeyRemap4MacBook 8.3.0 (addr 0xffffff7fb2708000, size 233472)
last unloaded kext at 159075444252: com.apple.driver.AppleUSBUHCI 5.2.5 (addr 0xffffff7fb0d1a000, size 65536)
loaded kexts:

org.pqrs.driver.KeyRemap4MacBook 8.3.0
com.parallels.kext.prl_vnic 7.0 15107.796624
com.parallels.kext.prl_netbridge 7.0 15107.796624
com.parallels.kext.prl_hid_hook 7.0 15107.796624
com.parallels.kext.prl_hypervisor 7.0 15107.796624
com.parallels.kext.prl_usb_connect 7.0 15107.796624
com.avatron.AVExFramebuffer 1.7
com.Cycling74.driver.Soundflower 1.5.2
com.musiclab.driver.kumidi 1.0.0
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.avatron.AVExVideo 1.7
com.squirrels.airparrot.framebuffer 3
com.Logitech.Unifying.HID Driver 1.2.0
com.Logitech.Control Center.HID Driver 3.6.0
at.obdev.nke.LittleSnitch 3878
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AGPM 100.12.87
com.apple.driver.IOBluetoothSCOAudioDriver 4.1.4f2
com.apple.driver.IOBluetoothA2DPAudioDriver 4.1.4f2
com.apple.iokit.IOBluetoothSerialManager 4.1.4f2
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AudioAUUC 1.60
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleHDA 2.3.7fc4
com.apple.kext.AMDFramebuffer 8.1.2
com.apple.driver.AppleMikeyDriver 2.3.7fc4
com.apple.driver.AppleIntelHD3000Graphics 8.1.2
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.1.4f2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.AMDRadeonAccelerator 1.0.8
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.AppleSMCLMU 2.0.3d0
com.apple.driver.AppleMuxControl 3.4.5
com.apple.driver.ApplePolicyControl 3.4.5
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleMCCSControl 1.1.11
com.apple.driver.AppleIntelSNBGraphicsFB 8.1.2
com.apple.driver.SMCMotionSensor 3.0.3d1
com.apple.driver.AppleUSBTCButtons 237.1
com.apple.driver.AppleUSBTCKeyboard 237.1
com.apple.driver.AppleIRController 320.15
com.apple.driver.XsanFilter 4

Diablo III (暗黑三)因為異常活動,帳號被鎖的處理步驟

由於暴雪,為了防止大家遊戲被盜用,所以設計了一連串擾名的方法,然防止大家帳號被盜,只要在不同的區域上網,或使用不同得電腦,甚至不同的作業系統上網,第一次登入遊戲都會被帳號鎖定,我個人大概就被鎖了十次以上,每次都不太記得要如何解鎖,都得在花點時間回想一下,這便簡單做個記錄,方便以後遇到在處理

1.登入遊戲時,顯示你的帳號已經因為異常活動被鎖,要你選擇回答問題,或從網頁上解鎖,我每次都不太記得我設定的問題是什麼,所以都是選擇網頁上解鎖,但這邊他解釋的不清不楚,例如請你直接開啟網頁,卻連到kr.battle.net,事實上應該到你註冊的email帳號信箱,取開啟通知信件

2.選擇從置密碼

2013年6月13日 星期四

Cinbench: 支援Mac下面的電腦效能測試軟體

下載位置:http://www.maxon.net/products/cinebench/overview.html

how to install java on ubuntu 10.04

Refer from :https://github.com/flexiondotorg/oab-java6#readme
cd ~/ wget https://github.com/flexiondotorg/oab-java6/raw/0.2.8/oab-java.sh -O oab-java.sh chmod +x oab-java.sh sudo ./oab-java.sh 

If you are behind a proxy you may need to run using:

sudo -i ./oab-java.sh 

If you want to see what this script is doing while it is running then execute the following from another shell:

tail -f ./oab-java.sh.log

1. Install python-software-properties

sudo apt-get install python-software-properties

Refer from:https://github.com/rraptorr/sun-java6

To create packages on your own:

  • apt-get install dpkg-dev
  • git clone git://github.com/rraptorr/sun-java6.git
  • cd sun-java6
  • download jdk-6u45-linux-i586.bin and jdk-6u45-linux-x64.bin fromhttp://www.oracle.com/technetwork/java/javase/downloads/index.html (yes, both, no matter which version you will run)
  • download jce_policy-6.zip from the same page under "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6"
  • on multiarch amd64 systems (Wheezy) one must add i386 architecture: dpkg --add-architecture i386 && apt-get update
  • dpkg-buildpackage -uc -us
  • install any missing packages that dpkg-buildpackage complains about and repeat

2013年6月10日 星期一

Ref: over-the-air instalation

 

Installing Apps Wirelessly
iOS 4 supports over-the-air installation of enterprise applications, allowing you to distribute in-house software to your users without having to use iTunes or iPhone Configuration Utility.
Requirements
■ A secure web server accessible by authenticated users ■ In-house iOS app in .ipa file format ■ An XML manifest file, described in this document ■ A network configuration that allows the device to access an iTunes server at Apple
Installing the app is simple. Users download the manifest file from your website to their iOS 4 device, which instructs the device to download and install the apps referenced in the manifest.
You can distribute the URL for downloading the manifest file via SMS, email, or by embedding it in another enterprise app you’ve created.
It's up to you to design and host the website used to distribute apps. You need to make sure that users are authenticated, perhaps using basic auth or directory-based authentication, and that the website is accessible via your intranet or the Internet. The app and manifest can be placed in a hidden directory, or in any other location that's readable using HTTP or HTTPS.
Preparing an Enterprise App for Wireless Distribution
To prepare your enterprise app for wireless distribution, you build an archived version in the form of a .ipa file, and a manifest file that enables wireless distribution and installation of the app.
In Xcode, you create an app archive using the “Build > Build and Archive” menu item. Then, in the Archived Applications source in Xcode's Organizer, select the app and click the “Share Application...” button. Then click the “Distribute for Enterprise...” button. You’ll be asked to provide information for the manifest file, whichXcodecreates.Seebelow,forinformationaboutthemanifestfile. Formoreinformationaboutbuilding and provisioning apps, see the iOS Dev Center.
Deploying Apps 7 2010-11-15 | © 2010 Apple Inc. All Rights Reserved.Item
Description
URL
The fully qualified HTTP or HTTPS URL of the app (.ipa) file.
display-image
A 57 x 57 pixel PNG image that is displayed during download and installation. Specify the image's fully qualified URL.
full-size-image
A 512 x 512 pixel PNG image that represents the app in iTunes.
bundle-identifier
Your app's bundle identifier, as specified in your Xcode project.
bundle-version
Your app's bundle version, as specified in your Xcode project.
title
The name of the app, which is displayed during download and installation.
8
CHAPTER 1
Distributing Enterprise Apps for iOS 4 Devices
About the Wireless Manifest
The manifest is a file in XML plist format. It's used by an iOS 4 device to find, download, and install apps from your web server. The manifest is created by Xcode, using information you provide when you share an archived app for enterprise distribution. See "Preparing an Enterprise App for Wireless Distribution" (page 7)
A sample manifest plist is included at the end of this document. The following fields are required:
Optional Keys
There are optional keys that you can use, which are described in the sample manifest plist. You can use the MD5 keys if your app file is large and you want to ensure download integrity beyond the error checking normally done during TCP communications.
Constructing your Website
Upload these items to an area of your website that your authenticated users can access: ■ The app (.ipa) file
■ The manifest (.plist) file
Your website design is up to you. It can be as simple as a single page that links to the manifest file. When users tap the web link, the manifest file is downloaded, which triggers the download and installation of the apps it describes.
Here is an example link:
<a href="itms-services://?action=download-manifest&url=http://example.com/ manifest.plist">Install App</a>
Don't add a web link to the archived app (.ipa). It's downloaded by the device when the manifest file is loaded. Although the protocol portion of the URL is itms-services, the iTunes Store is not involved in this process.
Setting Server MIME Types
It may be necessary to configure your webserver so that manifest and app file are transmitted correctly.
Deploying Apps
2010-11-15 | © 2010 Apple Inc. All Rights Reserved.
CHAPTER 1
Distributing Enterprise Apps for iOS 4 Devices
For Mac OS X Server, add the following MIME types to the MIME Types settings using Server Admin:
application/octet-stream ipa text/xml plist
For IIS, add the MIME type in the Properties page of the server using IIS Manager:
.ipa application/octet-stream .plist text/xml

Can't access spunk web at 8000 port

今天發現之前為了測試用途架設的splunk突然無法連線,本來也沒特別在意,以為是splunk daemon出問題,但重裝後,發現一樣連不到,檢查servie一些daemon也都顯示正常,後來才想起可能是iptables的原因,一把iptable stop就馬上可以連結,由於對iptables不是很熟,就直接抄襲系統預設都ssh port 直接copy把,splunk web 的default port 8000打開

##/etc/sysconfig/iptables

[root@splunk ~]# cat /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8000 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT

如何把自己的帳號加入sudo user 好讓自己的帳號可以使用sudo command

#!/usr/sbin/visudo

#!上面的command實際上會編輯/etc/sudoers這個檔案,

只要在user privilege specification上面,把自己的帳號加入 如下的位置即可

# User privilege specification
root ALL=(ALL:ALL) ALL
newuser ALL=(ALL:ALL) ALL

Paragon NTFS for Mac 10.02 似乎會造成系統當機

今日因為有需求,把原本NTFS格式的usb 外接硬碟轉移到新買的WD thunderbolt 外接硬碟,卻一直遇到當機問題,原本還沒想到是因為ntfs driver

support的問題,後來發現我如果使用parallels內的虛擬windows 8系統來做檔案備份,發現當機問題似乎解決了,不像之前只要開始備份,只要幾個小時內一定死當,本來還以為我剛送修回來的電腦又掛了,有得準備送修了

2013年6月7日 星期五

硬碟組態失敗問題

有時候當你嘗試去更改Raid設定,例如raid 0 ,  1, 5 切換時,如果管理軟體一直回報你管理失敗,可以檢查一下是否沒把硬碟先從系統管理介面推出的關係,

2013年6月4日 星期二

萊爾富虎嘯店 倒店之我觀

萊爾富虎嘯店,原本是萊爾富的旗艦店,生意一直不錯,還常常幫忙訓練新進人員,就像一個績優公司,公司策略經營一直屬於績優股,但最近他收起來了,原因就在附近開了一家7-11,生意就慢慢變差了,公司把麵包店收了,做起cost down動作,而非其他積極作為,似乎不想也無能力跟7-11對抗,一直到現在整家店都關了,一家沒犯大錯誤的公司,只因為沒積極面對大環境的變化,整個公司就收起來了,裡面實在是充滿商場的現實與許多值的警惕的事項

多伺服器管理實用工具軟體介紹

1.多重開機(multiple boot)

 a.YUMI

 

2.遠端桌面管理工具:Remote admin tool:  RDP

a. RDCMan: 微軟出的remote desktop connection manager

b.CoRD: Mac 版的RDP工具

 

3.Terminal 工具

a.Xshell

How to resolve Vmware ESXi 無法增加虛擬硬碟大小的問題

vmware Thick provision size grey out issue:

   Please make sure the belong item before you continue to manual remove all snapshot

1.make sure there no vmware tool install is in progress

2.Have tried to delete all snapshots in snapshot manager, but always hung on 95% or 99 %

 

 

[Resolve]

1.enable Esxi ssh console

2.logon to ssh console

3.restart all service to manual cancel remove vmware snapshot progress

  services.sh restart

4.Follow the vmware kb to manually delete snapshot

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002310

a.Run this command to get a list of virtual machines and the VMID for each virtual machine:

# vim-cmd vmsvc/getallvms

b.To verify if the snapshot exists, run this command and check the Snapshot Name, Snapshot Created On, and Snapshot State:

  1. # vim-cmd vmsvc/snapshot.get [VMID]

    The output appears similar to:

    Get Snapshot: |-ROOT --Snapshot Name : Test --Snapshot Desciption : --Snapshot Created On : 7/27/2011 13:49:55 --Snapshot State : powered on
c.if vmware id is 5 ,use belong command to remove it manually
 # vim-cmd vmsvc/snapshot.removeall [VMID]
 # vim-cmd vmsvc/snapshot.removeall 5

 

[Additional]

if the problem still exists, please try to shrink a thin vmdk first and use vm convert to import again.

Encountered "RuntimeError: autoconf error" when installing fabric

Error message

########

configure: error: in `/tmp/easy_install-iuhrqf/pycrypto-2.6':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Traceback (most recent call last):

 

 

解法:安裝gcc 跟python-devel即可

1. yum install gcc python-devel

2013年6月3日 星期一

Ubuntu 10.04: "can't shift that many"

##今天嘗試把自己使用多年的SCRIPT 移到ubuntu 10.04使用時卻遇到如標題的錯誤 "can't shift that many", 後來發現原因竟然是簡單到因為ubuntu預設的/bin/sh是symbolic link 到/bin/dash,而非/bin/bash

#!/bin/sh
if [ "$1" == "" ]; then
    echo "Usage: ./lookfor.sh [file Path]  -mday  search_string"
    echo "Usage: ./ ./lookfor.sh /opt/  -100 UCNB_PHOTOSEARCHE"
    exit 1
else

    temp=/tmp/lookfor$$

    trap 'rm -f $temp;exit' 0 1 2 15
    find $1 -mtime $2 -print > $temp
    shift; shift
    for word
        do grep -i "$word" `cat $temp` /dev/null
    done

fi

2013年6月2日 星期日

想不懂為何很多股東或經理人申報轉讓股票都是300張

最近突然發現很多大股東申報轉讓股票很喜歡用300這個數字,我本來以為是因為要讓贈與總額在

免稅額111萬以下,不過算一算好像不是如此,不知道到底有和特別的考量

2013年6月1日 星期六

透過ldap 在AD 2012上create user

最近因為工作的需要,需要有大量的AD 帳號做測試,就想說透過python ldap模組,直接create帳號,這邊記錄一下在這中間遇到的一些問題與注意事項,以幫助自己以後需要

1)錯誤訊息

2)使用來連接ldap的帳號,需有administrator的權限,方可以建立使用者

3)

如何下載Facebook 相簿跟影片

影片:透過chrome plug-in : Video Downloader for Facebook<sup>TM</sup> 相簿: 透過chrome plug-in : Tampermonkey 搭配script : Facebo...