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)

demo_article

使用 msty.app 和 Knowledge Stacks 建立個人知識庫系統 說明 嘗試利用local llm自動從文字檔轉成影音檔 利用AI自動對文件檔產生影音檔案 - YouTube 引言 在資訊爆炸的時代,我們每天接收大量的資訊,但如何有效地管理...