多媒體資料壓縮常用的方法,常與Huffman code並用
例如一個字串
aaabbcccccdddeee=>2ab2c5d3e3
RLE就是將一連串的資料改以兩部分來顯示,前面是symbol,後面是重複次數, run length), 實務上使用
會出現一次的字元長度無需紀錄
2020年12月21日 星期一
RLE(Run-length encoding)
2020年12月18日 星期五
Google Chrome Helper (Renderer) caused High CPU usage - Troubleshooting PartII
- first, use Activity Monitor to see the process id
- use ps command to get the full parameter command, for example the process id is 2575
ps -eaf |grep 2575
501 2575 977 0 9:35AM ?? 13:41.86 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/87.0.4280.88/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer) --type=renderer --field-trial-handle=1718379636,11371335434017450687,8516321483698338535,131072 --lang=en-US --num-raster-threads=4 --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --renderer-client-id=32 --no-v8-untrusted-code-mitigations --shared-files --seatbelt-client=443 - take the example, we see there is --enable-zero-copy parameter
- we can continue to check chrome settting.
chrome://flags/
3.Disable "Enable Render Level Data Use Optimization
2020年12月17日 星期四
Google Chrome Helper (Renderer) 在Mac OS 佔用過高的CPU問題
最近筆電風扇狂轉,發現幾乎都是Google Chrome造成的,剛好最近很熱門的一個議題chrome is back 裡面提到的問題有兩個
1. 一個是chrome會自動更新,之前還曾經因為自動幫所有使用者更新,早成沒開啟SIP的系統無法開機,如果要關閉,可以考慮把/Library/LaunchAgents/裡面兩個含有keystone 關鍵字的daemon 關閉,就是額外增加一個Disabled
com.google.keystone.agent.plist
com.google.keystone.xpcservice.plist
2.佔用太多cpu問題,在chrome search bar上輸入
chrome://settings/content/unsandboxedPlugins
然後把原本 Ask when a site wants to use a plugin to access your coputer (recommned) 這選項關閉
即可把問題解決,缺點就是之後可能一些影片就不會在自動播放
2020年12月11日 星期五
ACK: 一個好用的檔案搜尋工具
用法:
ack option [搜尋文字] [文件或目錄]
範例
-i | —ignore-case | 忽略大小寫 | |
---|---|---|---|
-v | —invert-match | 反轉比對,列出不含選擇字詞 | |
-A | —after-context | 跟grep 用法想法,顯示比對到字詞的後幾行 | |
-B | —before-context | 跟grep 用法想法,顯示比對到字詞的前幾行 | |
—type | 限制搜尋的特定type,可以搭配 --help-types | ||
2020年12月7日 星期一
談『階級複製』
最近看者很多政二代,星二代,富二代一連串的浮出檯面創業出道,以前對這問題其實沒想太多,也沒太感嘆,但隨者年紀越大,會發現這階級複製根本也不是近代才出現,回頭去看我自己世代
出頭天的人其實本身也是富二代,甚至很多明星也是星二代,這類問題不是今日才出現,而是一直存在的事實,然後回頭想一想,對於自己小孩的教育,到底要如何,才能讓他們突破這個難以打破的階級複製包袱,我原本對小孩的要求
自學的能力:
安排時間的能力:
- 對於緊急的事情,要仔細思考再動手,避免犯錯
- 對於不急的事情,得趕快去做,不要拖延
2020年12月4日 星期五
2020年9月29日 星期二
2020年9月28日 星期一
Pokemongo 搜尋語法
其他:名字(name),別名(Nickname),屬性(Pokemon type),區域(Region)
#合眾:列出合眾區域的寶可夢
圖鑑編號:
#直接用數字:03, 280
# +寶可夢:列出所有寶可夢家族 +皮卡丘:列出皮丘,皮卡丘,雷丘
寶可夢屬性查詢:
#加上要查詢的屬性cp, hp: cp 03
#查詢區間 cp(combat power) 03-50
cp -235. (cp <235)
cp 235- ( cp > 235)
hp(health points) 120
#距離(distance)。 距離1000- (距離 > 1000公里)
#阿羅拉:列出阿羅拉寶可夢
#0-4*: 顯示隊長評價
#4* 4星評價, iv 100
#3*. 3星評價
#只限蛋:只限制能從蛋孵化出來的寶可夢
#孵化:會顯示所有能從蛋孵化出的寶可夢,但不代表顯示出來的寶可夢一定從蛋孵化
#亮晶晶:顯示亮晶晶寶可夢
#傳說的寶可夢:
#幻:列出幻之寶可夢
#淨化:列出所有淨化的寶可夢
#暗影:列出所有暗影寶可夢
#異色:列出所有色違的寶可夢
#特殊:列出所有特殊活動的寶可夢,例如戴帽子的皮卡丘
#交換:列出交換而來的寶可夢
技能(Move) &技能屬性(Move type): 前面+@會列出 所有擁有此技能的寶可夢
#@地震:列出所有擁有地震技能的寶可夢,打團戰時,組隊最適合用的指令
#@冰:列出所有屬於冰屬性技能的寶可夢
#@1,@2,@3 + 技能: @1:列出一般技能,@2列出特殊技能,@3所有技能
#@1哈欠:列出一般技能為哈欠的寶可夢
進化相關:
#進化
#道具
#Mega-Evolvable 超級進化
搜尋特定狀態的寶可夢
#日數:日數0: (24小時內捕捉的寶可夢)
日數1:(24-48小時捕捉的)
#夥伴等級:夥伴0-5
#夥伴0:未設定過夥伴
#夥伴5:正港好夥伴
#進化:可進化的寶可夢
#防禦者:在道館上的寶可夢
#道具:需要道具進化的寶可夢
#未登錄:輸入未登錄能搜尋可以透過進化增加圖鑑內容寶可夢的寶可夢
#如果想找可以立刻進化的寶可夢請搜尋「進化&未登錄」。
#交換進化:能搜尋可以透過交換不需要使用糖果就可以進化寶可夢。
#天氣優勢:輸入@天氣,會顯示招式中有受天氣獎勵加成的寶可夢
#年:搜尋特殊年份的寶可夢 年2016 : 2016年捕捉到的
進階:
#複數條件搜尋請使用&, |
# & : and
# | : or
# ! : 排除的
# 最小值: - 加在後面 , cp300-
#多條件搜尋:
#使用[,],[:]或[;]來搜尋符合任一條件的寶可夢
2020年9月22日 星期二
How to get a posix path on mac
you can use PWD command as variable
for example list absolute path of file in ./scripts
ls -d "$PWD"/scripts/*
2020年9月9日 星期三
How to generate iso image on Mac
- Use disk utilty to generate cdr file format
- disk format: select DVD/CD master
- It will geneate a file extension .cdr
hdiutil makehybrid -iso -joliet -o destination.iso source.cdr
hdiutil convert source.cdr -format UDTO -o destination.iso
How to Format Read-only USB Drive successful
Use "Diskpart" command
on windows dos prompt
DiskPpart
## list disk
Diskpart > list disk
## select disk in
Diskpart > select disk. [1,2..]
## attributes disk
Diskpart > attribute disk
## modify Read-only state from yes to "no
Diskpart > attributes disk clear readonly
2020年9月1日 星期二
uber go : automaxprocs
今天早上看到同事分享說採用automaxprocs,RPS提升了20%,然後google了一下,automaxprocs主要就是正確的幫忙調適docker內可用的cpu數量
例如
#kubectl get pod testpod -n default -o=jsonpath='{.spec.containers[0].resources}'
#map[limits:map[cpu:500m memory:128Mi] requests:map[cpu:100m memory:128Mi]]%
一般在container go routine會遇到的問題就在於container 中會拿到host node上面的cpu 核心數, 這就會導致golang 服務預設會拿host node上面的cpu核心數來調適 runtime.GOMAXPROCS(), 導致P數量元(註一)大於可用的CPU核心數,所以效能就會受影響
automaxprocs 能夠辯視真正的核心數,合理的設置go processor避免這個問題
lscpu |head -n 10
[ec2-user@ip-10-102-140-123 ~]$ lscpu |head -n 10
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
仔細觀看automaxprocs 的source code就可以發現
automaxprocs/automaxprocs.go
核心函數就是maxprocs.Set() 他會正確的從cgroup種獲取設置的cpu quota然後轉換合適的GOMAXPROCS , iruntime.CPUQuotaToGOMAXPROCS()
parse 的位置 /proc/$pid/cgroup
package automaxprocs // import "go.uber.org/automaxprocs"
import (
"log"
"go.uber.org/automaxprocs/maxprocs"
)
func init() {
maxprocs.Set(maxprocs.Logger(log.Printf))
}
註一:
GO scheduler中
* G:goroutine
* P : Processor(Logical)
* M : machine
2020年8月31日 星期一
How to manager multiple version terraform on Mac
- Use tfenv
# brew install tfenv - use tfenv to install terraform
# tfenv list
# tfenv install 0.13.1
# tfenv use 0.13.1 (as default)
2020年8月27日 星期四
詭異的Google blogger 異常流量
今天在研究部落格流量跟文章數到底有沒有關係,因為8月以來我有刻意多寫部落格,雖然知道部落格根本沒人看,但也知道都會有一些網路爬蟲會自動爬部落格造成一些少少的流量,然後今天一看統計資料竟然在5/12當日有一天5600的流量,但我回頭看,整個五月份根本沒寫任何一篇文章,不知道為什麼流量會暴增,但更奇怪的是,對比Google AdSense五月份根本沒爆衝的流量,所以這可能是單純google blogger的bug 所以內部系統轉換造成的異常流量
有錢人的小孩成功機率比較高嗎?
一早進公司在網路上看新聞,就跑出這個新聞,突然發現其實創業那需要什麼專業,似乎只要有錢就可以了,也難怪常常看到某某富二代,富三代又創立了什麼公司,其實這答案說對也對,說不對也對,因為這比的是允許失敗的次數,有錢人創業失敗了,可能可以繼續第二次,第三次失敗,然後從錯誤中學習,或者說等待機會,但一般人可能連走出創業這條路就是要考慮甚多,包袱慎大,所以有機會實在應該讓自己小孩多參與創業的訓練,或者至少幫他們在觀念上多補足
Nono送「一間百萬公司」 淡出雞排⋯幫朱海君圓副業夢
2020年8月26日 星期三
Packer 101
What is packer?
A:Packer is a free and open source tool for creating golden image for multiple platform from a single source configuration.
Packer works works on json files
What are on Packer json ?
1.builder(required): Builders are components of packer to create machine image
* type
* iso_url (required)
* iso_checksum (required)
* iso_checksum_type (required)
* ssh_username (optional)
* shutdown_command (optional)
* vm_name (optional)
* guest_os_type (optional)
* disk_size (optional)
* http_directory (optional)
* boot_wait (optional)
* boot_command (optional)
* floppy_file (optional)
there are several type of buildfer
builder | 說明 |
---|---|
amazon-ebs | is able to create Amazon AMIs backed by EBS volumes for use in EC2 |
docker | { |
"builders": [{ |
|
"type": |
|
"docker", |
|
"image": |
|
"alpine", |
|
"export_path": |
|
"alpine-basic.tar" |
|
}] |
|
} |
- varaibles (option): such as AWS access and secret key
"variables": {
3.provisioners (options)
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "us-east-1"
},
4.pos-processors(options)
* type
* override
* virtualbox
* output
Packer commands
查看 example.json 結構
packer inspect example.json
驗證 example.json 語法
packer validate example.json
產生 vm image
packer build example.json
2020年8月24日 星期一
2020年8月22日 星期六
黃金思考圈 (WHY — HOW — WHAT)
主要是提起所謂的Golden Circle, 跟大腦的結構其實是息息相關的,一個人或組織做事要成功,應該是由內往外推動,先讓人們認知到Why: 為何你要這樣做,然後推廣到How: 你要如何做,最後就自然而然變成結果What
一個簡單的觀念,但能推動持續保持的組織卻很少,我目前的部門也是在這種類似的風氣下成立,但不到半年,CEO似乎就忘了初衷,又推到結果導向,而忘了為什麼當初要成立這個組織
2020年8月19日 星期三
How to list epic and related tasks in confluence using Jira issue
Ans: Use macro "Jira issues/Filter" and use search keywords "Epic Link" = XXXXX
2020年8月13日 星期四
在iPad上看code
使用Textastic 跟 Working Copy 兩個配合,可以很簡單的在Textatic上開啟repository 上的code
Use Drag and Drop on iPad to Open a Repository
- 在iPad上使用分割視窗,同時開啟Textastic 跟working copy
- 直接把working copy上的repo 拖拉到Textastic上即可
2020年8月12日 星期三
C名題精選百則1-1: 最長平台
找出最長平台
1,2,2,3,3,3,4,5,5,6
把陣列中最長的平台找出
class Solution:
def findPlate(self,list):
"""
:type nums: List[int]
:rtype: int
"""
#length=len(list)
sorted_list=sorted(list)
length=1
for i in range(len(sorted_list)):
if(sorted_list[i]==sorted_list[i-length]):
length=length+1
return sorted_list[length]
nums=[1,2,2,3,3,3,4,5,5,6]
result=Solution().findPlate(nums)
print(result)
交通部推出遊買集APP
https://tw.news.yahoo.com/報復花公帑2-開發普通app只需300萬-交通部-umaji-初代就花7900萬-220000393.html
第一代二○一七年九月上架,就花了七千九百萬元;第二代二○一九年十一月上架,花了六千九百萬元,前後共花了近一億五千萬元
雖然沒用過,但開發費用這麼高一定要做個紀錄研究一下。其實這個跟之前我抱怨過的每個部會都在出app然後,做類似振興券的功能,都各出個的app然後收個別的個資,其實不太適合,政府本來就有民眾的個資,單純為了驗證資料或說登記,就要讓民眾個資爆漏在網路上的危險,所謂的勞民傷財就是這樣
What is meta data
From wiki page,
Metadata is "data that provide information about other data"
Include some different types:
- Descriptive metadata
- Structural metadata
- Administrative metadata
- Reference metadata
- Statistical metadata
# MacOS error code
## MacOS error Troubleshooting skill
- If error code was relative security, can use security command to see the detail
#can use following command to get the detail
$security error -67062 - How to find some useful tools were belong to which packages
brew search --desc [tool]. (--desc: search in description)
- How to modify resolution of external monitor when it clamis "out of range"
- In System Preferences=>Display
- switch to Arrangement tab
- click "option" key, you will see the right corner wording change from "Gather Windows" to "Detect Displays"
Now you will be able to change the resolution
Mac error code list
error -67062 security exception
error -32768 svTempDisable: Temporarily disable card but run primary init.
error -32640 svDisabled: Reserve range -32640 to -32768 for Apple temp disables.
error -32615 fontNotOutlineErr: bitmap font passed to routine that does outlines only
error -23048 outOfMemory: Not enough memory is available to issue the needed DNR query or to build the DNR cache.
error -23047 dnrErr: The domain name server has returned an error.
error -23046 noAnsErr: None of the known name servers are responding.
error -23045 authNameErr: The domain name does not exist.
error -23044 noNameServer: No name server can be found for the specified name string.
error -23043 noResultProc: No result procedure is passed to the address translation call when the resolver must be used to find the address.
error -23042 cacheFault: The name specified cannot be found in the cache. The domain name resolver will now query the domain name server and return the answer in the callback procedure.
error -23041 nameSyntaxErr: The <> field had a syntax error. The address was given in dot notation (that is, W.X.Y.Z) and did not conform to the syntax for an IP address.
error -23037 ipRouteErr: No gateway available to manage routing of packets to off-network destinations.
error -23036 ipNoFragMemErr: Insufficient internal driver buffers available to fragment this packet on send.
error -23035 icmpEchoTimeoutErr: The icmp echo packet was not responded to in the indicated timeout period.
error -23033 ipDestDeadErr: The destination host is not responding to address resolution requests.
error -23032 ipDontFragErr: The pack is too large to send without fragmenting and the Don't Fragment flag is set.
error -23017 duplicateSocket: A stream is already open using the local UDP port or a TCP connection already exists between the local IP address and TCP port, and the specified remote IP address and TCP port.
error -23016 commandTimeout: The specified command action was not completed in the specified time period.
error -23015 openFailed: The connection came halfway up and then failed.
error -23014 invalidWDS: The WDS pointer was 0 (nil).
error -23014 invalidRDS: The RDS refers to receive buffers not owned by the user.
error -23013 invalidBufPtr: The receive buffer area pointer is 0 (nil).
error -23012 connectionTerminated: The TCP connection was broken; the reason will be given a terminate ASR.
error -23011 streamAlreadyOpen: An open stream is already using the receive buffer area.
error -23010 invalidStreamPtr: The specified TCP or UDP stream is not open.
error -23009 insufficientResources: 64 TCP or UDP streams are already open.
error -23008 connectionDoesntExist: The TCP stream has no open connection.
error -23007 connectionExists: The TCP or UDP stream already has an open connection.
error -23006 invalidLength: The total amount of data described by the WDS was either 0 or greater than 65,535 bytes.
error -23005 connectionClosing: A TCPClose command was already issued so there is no more data to send on this connection.
error -23004 ipBadAddr: Error in getting an address from a server or the address is already in use by another machine.
error -23003 ipLoadErr: Not enough room in the application heap (Macintosh 512K enhanced only)
error -23002 ipNoCnfgErr: A configuration resource is missing.
error -23001 ipBadCnfgErr: The manually set address is configured improperly.
error -23000 ipBadLapErr: Unable to initialize the local network handler.
error -20002 invalidIndexErr: The recordIndex parameter is not valid.
error -20001 recordDataTooBigErr: The record data is bigger than buffer size (1024 bytes).
error -20000 unknownInsertModeErr: There is no such an insert mode.
error -13005 pmRecvEndErr: during receive pmgr did not finish hs configured for this connection
error -13004 pmRecvStartErr: during receive pmgr did not start hs
error -13003 pmSendEndErr: during send pmgr did not finish hs
error -13002 pmSendStartErr: during send pmgr did not start hs
error -13001 pmReplyTOErr: Timed out waiting for reply
error -13000 pmBusyErr: Power Mgr never ready to start handshake
error -11005 pictureDataErr: the picture data was invalid
error -11004 colorsRequestedErr: the number of colors requested was illegal
error -11003 cantLoadPickMethodErr: unable to load the custom pick proc
error -11002 pictInfoVerbErr: the passed verb was invalid
error -11001 pictInfoIDErr: the internal consistancy check for the PictInfoID is wrong
error -11000 pictInfoVersionErr: wrong version of the PictInfo structure
error -10115 telBadSampleRate: incompatible sample rate
error -10114 telBadSWErr: Software not installed properly
error -10113 telDetAlreadyOn: detection is already turned on
error -10112 telAutoAnsNotOn: autoAnswer in not turned on
error -10111 telValidateFailed: telValidate failed
error -10110 telBadProcID: invalid procID
error -10109 telDeviceNotFound: device not found
error -10108 telBadCodeResource: code resource not found
error -10107 telInitFailed: initialization failed
error -10106 telNoCommFolder: CommunicationsExtensions Ä not found
error -10103 telUnknownErr: unable to set config
error -10102 telNoSuchTool: unable to find tool with name specified
error -10101 telNoTools: unable to find any telephone tools
error -10091 telBadFunction: bad msgCode specified
error -10090 telPBErr: parameter block error bad format
error -10082 telCANotDeflectable: CA not "deflectable"
error -10081 telCANotRejectable: CA not "rejectable"
error -10080 telCANotAcceptable: CA not "acceptable"
error -10072 telTermNotOpen: terminal not opened via TELOpenTerm
error -10071 telStillNeeded: terminal driver still needed by someone else
error -10070 telAlreadyOpen: terminal already open
error -10064 telNoCallbackRef: no call back reference was specified but is required
error -10063 telDisplayModeNotSupp: display mode not supported by tool
error -10062 telBadDisplayMode: bad display mode specified
error -10061 telFwdTypeNotSupp: forward type not supported by tool
error -10060 telDNTypeNotSupp: DN type not supported by tool
error -10059 telBadRate: bad rate specified
error -10058 telBadBearerType: bad bearerType specified
error -10057 telBadSelect: unable to select or deselect DN
error -10056 telBadParkID: bad park id specified
error -10055 telBadPickupGroupID: bad pickup group ID specified
error -10054 telBadFwdType: bad fwdType specified
error -10053 telBadFeatureID: bad feature ID specified
error -10052 telBadIntercomID: bad intercom ID specified
error -10051 telBadPageID: bad page ID specified
error -10050 telBadDNType: DN type invalid
error -10047 telConfLimitExceeded: attempt to exceed switch conference limits
error -10046 telCBErr: call back feature not set previously
error -10045 telTransferRej: transfer request rejected
error -10044 telTransferErr: transfer not prepared
error -10043 telConfRej: conference request was rejected
error -10042 telConfErr: conference was not prepared
error -10041 telConfNoLimit: no limit was specified but required
error -10040 telConfLimitErr: limit specified is too high for this configuration
error -10033 telFeatNotSupp: feature program call not supported by this tool
error -10032 telFeatActive: feature already active
error -10031 telFeatNotAvail: feature subscribed but not available
error -10030 telFeatNotSub: feature not subscribed
error -10024 telDNDTypeNotSupp: DND type is not supported by this tool
error -10023 telBadDNDType: bad DND type specified
error -10022 telIntExtNotSupp: internal external type not supported by this tool
error -10021 telBadIntExt: bad internal external error
error -10020 telStateNotSupp: device state not supported by tool
error -10019 telBadStateErr: bad device state specified
error -10018 telIndexNotSupp: index not supported by this tool
error -10017 telBadIndex: bad index specified
error -10016 errAELocalOnly or telAPattNotSupp: alerting pattern not supported by tool
error -10015 errAECantUndo or telBadAPattErr: bad alerting pattern specified
error -10014 errAENotASingleObject or telVTypeNotSupp: volume type not supported by this tool
error -10013 errAENoUserSelection or telBadVTypeErr: bad volume type error
error -10012 errAENoSuchTransaction or telBadLevelErr: bad volume level setting
error -10011 errAEInTransaction or telHTypeNotSupp: hook type not supported by this tool
error -10010 errAECantHandleClass or telBadHTypeErr: bad hook type specified
error -10009 errAECantSupplyType
error -10008 errAENotAnElement or telNoOpenErr: unable to open terminal
error -10007 errAEIndexTooLarge or telNoMemErr: no memory to allocate handle
error -10006 errAEWriteDenied or telCAUnavail: a CA is not available
error -10005 errAEReadDenied or telBadProcErr: bad msgProc specified
error -10004 errAEPrivilegeError or telBadHandErr: bad handle specified
error -10003 errAENotModifiable or telBadCAErr: TELCAHandle not found or invalid
error -10002 errAEBadKeyForm or telBadDNErr: TELDNHandle not found or invalid
error -10001 errAETypeError or telBadTermErr: invalid TELHandle or handle not found
error -10000 errAEEventFailed
error -9999 cannotMoveAttachedController
error -9998 controllerHasFixedHeight
error -9997 cannotSetWidthOfAttachedController
error -9996 controllerBoundsNotExact
error -9995 editingNotAllowed
error -9994 badControllerHeight
error -9408 deviceCantMeetRequest
error -9407 seqGrabInfoNotAvailable
error -9406 badSGChannel
error -9405 couldntGetRequiredComponent
error -9404 notEnoughDiskSpaceToGrab
error -9403 notEnoughMemoryToGrab
error -9402 cantDoThatInCurrentMode
error -9401 grabTimeComplete
error -9400 noDeviceForChannel
error -8976 codecNothingToBlitErr
error -8975 codecCantQueueErr
error -8974 codecCantWhenErr
error -8973 codecOpenErr
error -8972 codecConditionErr
error -8971 codecExtensionNotFoundErr
error -8970 codecDataVersErr
error -8969 codecBadDataErr
error -8968 codecWouldOffscreenErr
error -8967 codecAbortErr
error -8966 codecSpoolErr
error -8965 codecImageBufErr
error -8964 codecScreenBufErr
error -8963 codecSizeErr
error -8962 codecUnimpErr
error -8961 noCodecErr
error -8960 codecErr
error -6231 kDMMainDisplayCannotMoveErr: Trying to move main display (or a display mirrored to it) or kDMNoDeviceTableclothErr: obsolete
error -6230 kDMDisplayAlreadyInstalledErr: Attempt to add an already installed display.
error -6229 kDMDisplayNotFoundErr: Could not find item (will someday remove). or kDMNotFoundErr: Could not find item.
error -6228 kDMDriverNotDisplayMgrAwareErr: Video Driver does not support display manager.
error -6227 kDMSWNotInitializedErr: Required software not initialized (eg windowmanager or display mgr).
error -6226 kSysSWTooOld: Missing critical pieces of System Software.
error -6225 kDMMirroringNotOn: Returned by all calls that need mirroring to be on to do their thing.
error -6224 kDMCantBlock: Mirroring is already on canÕt Block now (call DMUnMirror() first).
error -6223 kDMMirroringBlocked: DMBlockMirroring() has been called.
error -6222 kDMWrongNumberOfDisplays: Can only handle 2 displays for now.
error -6221 kDMMirroringOnAlready: Returned by all calls that need mirroring to be off to do their thing.
error -6220 kDMGenErr: Unexpected Error
error -5553 gestaltLocationErr: gestalt function ptr wasn't in sysheap
error -5552 gestaltDupSelectorErr: tried to add an entry that already existed
error -5551 gestaltUndefSelectorErr: undefined selector was passed to Gestalt
error -5550 gestaltUnknownErr: value returned if Gestalt doesn't know the answer
error -5502 envVersTooBig: Version bigger than call can handle
error -5501 envBadVers: Version non-positive
error -5500 envNotPresent: returned by glue.
error -5044 afpInsideTrashErr: the folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder
error -5043 afpInsideSharedErr: the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
error -5042 afpPwdExpiredErr: the password being used is too old: this requires the user to change the password before log-in can continue
error -5041 afpPwdTooShortErr: the password being set is too short: there is a minimum length that must be met or exceeded
error -5040 afpPwdSameErr: someone tried to change their password to the same password on a mantadory password change
error -5039 afpBadIDErr
error -5038 afpSameObjectErr
error -5037 afpCatalogChanged
error -5036 afpDiffVolErr
error -5035 afpIDExists
error -5034 afpIDNotFound
error -5033 afpContainsSharedErr: the folder being shared contains a shared folder
error -5032 afpObjectLocked: Object is MRDW inhibited
error -5031 afpVolLocked: Volume is Read-Only
error -5030 afpIconTypeError
error -5029 afpDirNotFound
error -5028 afpCantRename
error -5027 afpServerGoingDown
error -5026 afpTooManyFilesOpen
error -5025 afpObjectTypeErr
error -5024 afpCallNotSupported
error -5023 afpUserNotAuth
error -5022 afpSessClosed
error -5021 afpRangeOverlap
error -5020 afpRangeNotLocked
error -5019 afpParmErr
error -5018 afpObjectNotFound
error -5017 afpObjectExists
error -5016 afpNoServer
error -5015 afpNoMoreLocks
error -5014 afpMiscErr
error -5013 afpLockErr
error -5012 afpItemNotFound
error -5011 afpFlatVol
error -5010 afpFileBusy
error -5009 afpEofError
error -5008 afpDiskFull
error -5007 afpDirNotEmpty
error -5006 afpDenyConflict
error -5005 afpCantMove
error -5004 afpBitmapErr
error -5003 afpBadVersNum
error -5002 afpBadUAM
error -5001 afpAuthContinue
error -5000 afpAccessDenied
error -4009 noHelpForItem
error -4008 badProfileError
error -4007 colorSyncNotInstalled
error -4006 pickerCantLive
error -4005 cantLoadPackage
error -4004 cantCreatePickerWindow
error -4003 cantLoadPicker
error -4002 pickerResourceError
error -4001 requiredFlagsDontMatch
error -4000 invalidPickerType
error -3180 kOTCanceledErr: An outstanding call was canceled.
error -3179 kOTBadSyncErr: A call to Sync was made at non-SystemTask time.
error -3178 kOTProtocolErr: An unspecified protocol error occurred.
error -3177 kOTQFullErr: The maximum number of outstanding indications has been reached for the endpoint.
error -3176 kOTResAddressErr: The address to which this endpoint is bound differs from that of the endpoint that received the connection request; thus, this endpoint cannot accept this connection request.
error -3175 kOTResQLenErr: When this endpoint was bound (see Bind), the qlen parameter was greater than zero. But to accept a connection on an alternate end-point, such as this one, the endpoint must be bound with a qlen parameter equal to zero.
error -3174 kOTProviderMismatchErr: The endpoint that is to accept the connection is not the same kind of endpoint as this one.
error -3173 kOTIndOutErr: There are outstanding connection indications on the endpoint. All other connection indications must be handled either by rejecting them with SndDisconnect, or by accepting them with Accept.
error -3172 kOTAddressBusyErr: The requested address is in use, or this endpoint does not support multiple connections with the same local and remote addresses. This result code indicates that a connection already exists. As a return value for a Bind call, it may also indicate that no dynamic addresses are available for protocols or configuration methods that allow dynamic addressing.
error -3171 kOTBadQLenErr: The argument qlen when the endpoint was bound with Bind was zero.
error -3170 kOTBadNameErr: The endpoint name is invalid.
error -3169 kOTStructureTypeErr: An unsupported structure type was passed in the structType field. This error is also returned when the structType field is inconsistent with the endpoint type.
error -3168 kOTStateChangeErr: The endpoint is undergoing a transient state change. This error is returned when a function call is made while an endpoint is in the process of changing states.
error -3167 kOTNotSupportedErr: This action is not supported by this endpoint.
error -3166 kOTNoReleaseErr: No orderly release indication currently exists on this endpoint.
error -3165 kOTBadFlagErr: An invalid flag was specified.
error -3164 kOTNoUDErrErr: No unit data error indication currently exists on this endpoint.
error -3163 kOTNoDisconnectErr: No disconnect indication is available.
error -3162 kOTNoDataErr: This endpoint is in non-blocking mode, but no data is currently available. It is also returned by LookupName when no names are found.
error -3161 kOTFlowErr: The endpoint is in asynchronous mode, but the flow control mechanism prevents the endpoint from accepting any data at this time.
error -3160 kOTBufferOverflowErr: The number of bytes allocated to hold a result is greater than zero, but not sufficient to store the result.
error -3159 kOTBadDataErr: The amount of client data specified was not within the bounds allowed by the endpoint.
error -3158 kOTLookErr: An asynchronous event has occurred on this endpoint.
error -3156 kOTBadSequenceErr: An invalid sequence number was specified, or a NULL call pointer was specified when rejecting a connection request.
error -3155 kOTOutStateErr: The function was issued in the wrong sequence.
error -3154 kOTNoAddressErr: The endpoint could not allocate an address, or an address was required and not supplied by the client.
error -3153 kOTBadReferenceErr: The specified EndpointRef or TEndpoint* does not refer to a valid endpoint.
error -3152 kOTAccessErr: The user does not have permission to negotiate the specified address or options.
error -3151 kOTBadOptionErr: The specified protocol options were in an incorrect format or contained illegal information.
error -3150 kOTBadAddressErr: The specified protocol address was in an incorrect format or contained illegal information.
error -3109 sktClosedErr
error -3108 recNotFnd
error -3107 atpBadRsp
error -3106 atpLenErr
error -3105 readQErr
error -3104 extractErr
error -3103 ckSumErr
error -3102 noMPPErr
error -3101 buf2SmallErr
error -3032 noPrefAppErr
error -3031 badTranslationSpecErr
error -3030 noTranslationPathErr
error -3026 couldNotParseSourceFileErr: Source document does not contain source type
error -3025 invalidTranslationPathErr: Source type to destination type not a valid path
error -3003 componentDontRegister
error -3002 componentNotCaptured
error -3001 validInstancesExist
error -3000 invalidComponentID
error -2899 fragLastErrCode: ie: an application's main fragment had no entry point - or - an accerated resource had no entry point or it had a termination routine etc...
error -2824 fragInvalidFragmentUsage: fragment targeted for an unacceptable architecture
error -2823 fragArchError: no application found in cfrg (for Process Manager)
error -2822 fragAppNotFound: user intialization routine did not return noErr
error -2821 fragUserInitProcErr: fragment container corrupted (known format)
error -2820 fragCorruptErr: internal inconstistancy
error -2819 fragConstErr: error in initailization of this manager
error -2818 fragMgrInitErr: error connecting to library (error occured in sub prepare)
error -2817 fragLibConnErr: boot library has initialization routine
error -2816 fragInitRtnUsageErr: circularity detected in mandatory initialization order
error -2815 fragInitLoop: import library was too new and therefore incompatible
error -2814 fragImportTooNew: import library was too old and therefore incompatible
error -2813 fragImportTooOld: order error during user initialization function invocation
error -2812 fragObjectInitSeqErr: no more context idÕs
error -2811 fragNoContextIDs: out of memory in user's address space for loadable section
error -2810 fragNoAddrSpace: out of memory for interal bookkeeping
error -2809 fragNoMem: unused
error -2808 fragUnused1: loaded fragment had "hard" unresolved imports
error -2807 fragHadUnresolveds: fragment container format unknown
error -2806 fragFormatUnknown: registered name already in use
error -2805 fragDupRegLibName: library name not found in Frag registry
error -2804 fragLibNotFound: section was not found
error -2803 fragSectionNotFound: symbol was not found in connection
error -2802 fragSymbolNotFound: connecionID was not valid
error -2801 fragConnectionIDNotFound: contextID was not valid
error -2800 fragContextNotFound: CFM error codes
error -2780 errASInconsistentNames
error -2763 errASNoResultReturned
error -2762 errASParameterNotForEvent
error -2761 errASIllegalFormalParameter
error -2760 errASTerminologyNestingTooDeep
error -2721 errASCantCompareMoreThan32k
error -2720 errASCantConsiderAndIgnore
error -2526 mmInternalError: drag was not accepted by receiver
error -2519 tsmUnknownErr: unSupported interface type error
error -2518 tsmUnsupportedTypeErr: script has no imput method or is using old IM
error -2517 tsmScriptHasNoIMErr: returned by GetDefaultInputMethod
error -2516 tsmInputMethodIsOldErr: text service already opened for the document
error -2515 tsmComponentAlreadyOpenErr: text service is not open
error -2514 tsmTSNotOpenErr: the text service has no menu
error -2513 tsmTSHasNoMenuErr: not TSM aware because we are using input window
error -2512 tsmUseInputWindowErr: there are open documents
error -2511 tsmDocumentOpenErr: no text service found
error -2510 tsmTextServiceNotFoundErr: canÕt open the component
error -2509 tsmCantOpenComponentErr: no open text service
error -2508 tsmNoOpenTSErr: document is NOT active
error -2507 tsmDocNotActiveErr: document is still active
error -2506 tsmTSMDocBusyErr: invalid TSM documentation id
error -2505 tsmInvalidDocIDErr: app never registered error (not TSM aware)
error -2504 tsmNeverRegisteredErr: want to register again error
error -2503 tsmAlreadyRegisteredErr: not an application error
error -2502 tsmNotAnAppErr: component result no error
error -2501 tsmInputMethodNotFoundErr
error -2500 tsmUnsupScriptLanguageErr
error -2209 badCallOrderErr: Usually due to a status call being called prior to being setup first
error -2208 noDMAErr: CanÕt do DMA digitizing (i.e. can't go to requested dest
error -2207 badDepthErr: CanÕt digitize into this depth
error -2206 notExactSizeErr: CanÕt do exact size requested
error -2205 noMoreKeyColorsErr: all key indexes in use
error -2204 notExactMatrixErr: warning of bad matrix digitizer did its best
error -2203 matrixErr: bad matrix digitizer did nothing
error -2202 qtParamErr: bad input parameter (out of range etc)
error -2201 digiUnimpErr: feature unimplemented
error -2062 movieTextNotFoundErr
error -2059 samplesAlreadyInMediaErr
error -2058 auxiliaryExportDataUnavailable
error -2057 unsupportedAuxiliaryImportData
error -2056 soundSupportNotAvailableErr: QT for Windows error
error -2055 noSoundTrackInMovieErr: QT for Windows error
error -2054 noVideoTrackInMovieErr: QT for Windows error
error -2053 featureUnsupported
error -2052 couldNotUseAnExistingSample
error -2051 noDefaultDataRef
error -2050 badDataRefIndex
error -2049 invalidDataRefContainer
error -2048 noMovieFound
error -2047 dataNoDataRef
error -2046 endOfDataReached
error -2045 dataAlreadyClosed
error -2044 dataAlreadyOpenForWrite
error -2043 dataNotOpenForWrite
error -2042 dataNotOpenForRead
error -2041 invalidSampleDescription
error -2040 invalidChunkCache
error -2039 invalidSampleDescIndex
error -2038 invalidChunkNum
error -2037 invalidSampleNum
error -2036 invalidRect
error -2035 cantEnableTrack
error -2034 internalQuickTimeError
error -2033 badEditIndex
error -2032 timeNotInMedia
error -2031 timeNotInTrack
error -2030 trackNotInMovie
error -2029 trackIDNotFound
error -2028 badTrackIndex
error -2027 maxSizeToGrowTooSmall
error -2026 userDataItemNotFound
error -2025 staleEditState
error -2024 nonMatchingEditState
error -2023 invalidEditState
error -2022 cantCreateSingleForkFile: happens when file already exists
error -2021 wfFileNotFound
error -2020 movieToolboxUninitialized
error -2019 progressProcAborted
error -2018 mediaTypesDontMatch
error -2017 badEditList
error -2016 cantPutPublicMovieAtom
error -2015 invalidTime
error -2014 invalidDuration
error -2013 invalidHandler
error -2012 invalidDataRef
error -2011 invalidSampleTable
error -2010 invalidMovie
error -2009 invalidTrack
error -2008 invalidMedia
error -2007 noDataHandler
error -2006 noMediaHandler
error -2005 badComponentType
error -2004 cantOpenHandler
error -2003 cantFindHandler
error -2002 badPublicMovieAtom
error -2001 badImageDescription
error -2000 couldNotResolveDataRef
error -1857 dragNotAcceptedErr: handler not found
error -1856 handlerNotFoundErr: handler already exists
error -1855 duplicateHandlerErr: error while trying to get flavor data
error -1854 cantGetFlavorErr: flavor type already exists
error -1853 duplicateFlavorErr: unknown flavor type
error -1852 badDragFlavorErr: unknown drag item reference
error -1851 badDragItemErr: unknown drag reference
error -1850 badDragRefErr: Drag Manager error codes
error -1813 errEndOfBody
error -1812 errEndOfDocument
error -1811 errTopOfBody
error -1810 errTopOfDocument
error -1801 errOffsetIsOutsideOfView
error -1800 errOffsetInvalid
error -1762 errOSACantOpenComponent: Can't connect to scripting system with that ID
error -1761 errOSAComponentMismatch: Parameters are from 2 different components
error -1759 errOSADataFormatTooNew
error -1758 errOSADataFormatObsolete
error -1757 errOSANoSuchDialect
error -1756 errOSASourceNotAvailable
error -1754 errOSABadSelector
error -1753 errOSAScriptError
error -1752 errOSABadStorageType
error -1751 errOSAInvalidID
error -1750 errOSASystemError
error -1732 errAERecordingIsAlreadyOn: available only in version 1.0.1 or greater
error -1731 errAEUnknownObjectType: available only in version 1.0.1 or greater
error -1730 errAEEmptyListContainer: Attempt to pass empty list as container to accessor
error -1729 errAENegativeCount: CountProc returned negative value
error -1728 errAENoSuchObject: e.g.: specifier asked for the 3rd but there are only 2. Basically this indicates a run-time resolution error.
error -1727 errAENotAnObjSpec: Param to AEResolve not of type 'obj '
error -1726 errAEBadTestKey: Test is neither typeLogicalDescriptor nor typeCompDescriptor
error -1725 errAENoSuchLogical: Something other than AND OR or NOT
error -1723 errAEAccessorNotFound: Accessor proc matching wantClass and containerType or wildcards not found
error -1721 errAEWrongNumberArgs: Logical op kAENOT used with other than 1 term
error -1720 errAEImpossibleRange: A range like 3rd to 2nd or 1st to all.
error -1719 errAEIllegalIndex: index is out of range in a put operation
error -1718 errAEReplyNotArrived: the contents of the reply you are accessing have not arrived yet
error -1717 errAEHandlerNotFound: no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler
error -1716 errAEUnknownAddressType: the target address type is not known
error -1715 errAEParamMissed: a required parameter was not accessed
error -1714 errAENotASpecialFunction: there is no special function forwith this keyword
error -1713 errAENoUserInteraction: no user interaction is allowed
error -1712 errAETimeout: the AppleEvent timed out
error -1711 errAEWaitCanceled: in AESend the user cancelled out of wait loop for reply or receipt
error -1710 errAEUnknownSendMode: mode wasn't NoReply WaitReply or QueueReply or Interaction level is unknown
error -1709 errAEReplyNotValid: AEResetTimer was passed an invalid reply parameter
error -1708 errAEEventNotHandled: the AppleEvent was not handled by any handler
error -1707 errAENotAppleEvent: the event is not in AppleEvent format
error -1706 errAENewerVersion: need newer version of the AppleEvent manager
error -1705 errAEBadListItem: the specified list item does not exist
error -1704 errAENotAEDesc
error -1703 errAEWrongDataType
error -1702 errAECorruptData
error -1701 errAEDescNotFound
error -1700 errAECoercionFail: bad parameter data or unable to coerce the data supplied
error -1310 fsDataTooBigErr: file or volume is too big for system
error -1309 fileBoundsErr: file's EOF offset mark or size is too big
error -1308 notARemountErr: when _Mount allows only remounts and doesn't get one
error -1307 badFidErr: file id is dangling or doesn't match with the file number
error -1306 sameFileErr: can't exchange a file with itself
error -1305 desktopDamagedErr: desktop database files are corrupted
error -1304 catChangedErr: the catalog has been modified
error -1303 diffVolErr: files on different volumes
error -1302 notAFileErr: directory specified
error -1301 fidExists: file id already exists
error -1300 fidNotFound: no file thread exists.
error -1280 errRefNum: bad connection refNum
error -1279 errAborted: control call was aborted
error -1278 errState: bad connection state for this operation
error -1277 errOpening: open connection request failed
error -1276 errAttention: attention message too long
error -1275 errFwdReset: read terminated by forward reset
error -1274 errDSPQueueSize: DSP ReadWrite Queue Too small
error -1273 errOpenDenied: open connection request was denied
error -1105 reqAborted
error -1104 noDataArea
error -1103 noSendResp
error -1102 cbNotFound
error -1101 noRelErr
error -1100 badBuffNum
error -1099 badATPSkt
error -1098 tooManySkts
error -1097 tooManyReqs
error -1096 reqFailed
error -1075 aspNoAck: No ack on attention request (server err)
error -1074 aspTooMany: Too many clients (server error)
error -1073 aspSizeErr: Command block too big
error -1072 aspSessClosed: Session closed
error -1071 aspServerBusy: Server cannot open another session
error -1070 aspParamErr: Parameter error
error -1069 aspNoServers: No servers at that address
error -1068 aspNoMoreSess: No more sessions on server
error -1067 aspBufTooSmall: Buffer too small
error -1066 aspBadVersNum: Server cannot support this ASP version
error -1029 nbpNISErr: Error trying to open the NIS
error -1028 nbpNotFound: Name not found on remove
error -1027 nbpDuplicate: Duplicate name exists already
error -1026 nbpConfDiff: Name confirmed at different socket
error -1025 nbpNoConfirm
error -1024 nbpBuffOvr: Buffer overflow in LookupName
error -1000 noMaskFoundErr: Icon Utilties Error
error -932 guestNotAllowedErr: destination port requires authentication
error -931 badLocNameErr: location name malformed
error -930 badServiceMethodErr: illegal service type or not supported
error -928 noUserRecErr: Invalid user reference number
error -927 authFailErr: unable to authenticate user at destination
error -926 noInformErr: PPCStart failed because destination did not have inform pending
error -925 networkErr: An error has occured in the network not too likely
error -924 noUserRefErr: unable to create a new userRefNum
error -923 notLoggedInErr: The default userRefNum does not yet exist
error -922 noDefaultUserErr: user hasn't typed in owners name in Network Setup Control Pannel
error -919 badPortNameErr: PPCPortRec malformed
error -917 sessClosedErr: session was closed
error -916 portClosedErr: port was closed
error -915 noResponseErr: unable to contact destination
error -914 noToolboxNameErr: A system resource is missing not too likely
error -913 noMachineNameErr: user hasn't named his Macintosh in the Network Setup Control Panel
error -912 userRejectErr: Destination rejected the session request
error -911 noUserNameErr: user name unknown on destination machine
error -910 portNameExistsErr: port is already open (perhaps in another app)
error -909 badReqErr: bad parameter or invalid state for operation
error -908 noSessionErr: Invalid session reference number
error -907 sessTableErr: Out of session tables try again later
error -906 destPortErr: Port does not exist at destination
error -905 localOnlyErr: Network activity is currently disabled
error -904 noGlobalsErr: The system is hosed better re-boot
error -903 noPortErr: Unable to open port or bad portRefNum
error -902 nameTypeErr: Invalid or inappropriate locationKindSelector in locationName
error -900 notInitErr: PPCToolBox not initialized
error -863 hmCloseViewActive: Returned from HMRemoveBalloon if CloseView was active
error -862 hmNoBalloonUp: Returned from HMRemoveBalloon if no balloon was visible when call was made
error -861 hmOperationUnsupported: Returned from HMShowBalloon call if bad method passed to routine
error -859 hmUnknownHelpType: Returned if help msg record contained a bad type
error -858 hmWrongVersion: Returned if help mgr resource was the wrong version
error -857 hmSkippedBalloon: Returned from calls if helpmsg specified a skip balloon
error -855 hmHelpManagerNotInited: Returned from HMGetHelpMenuHandle if help menu not setup
error -854 hmSameAsLastBalloon: Returned from HMShowMenuBalloon if menu & item is same as last time
error -853 hmBalloonAborted: Returned if mouse was moving or mouse wasn't in window port rect
error -850 hmHelpDisabled: Show Balloons mode was off call to routine ignored
error -813 rcDBPackNotInited: incompatible versions
error -812 rcDBWrongVersion: no app handler for specified data type
error -811 rcDBNoHandler: tried to kill a bad pb
error -810 rcDBBadAsyncPB: ddev does not support async calls
error -809 rcDBAsyncNotSupp: bad ddev specified on DBInit
error -808 rcDBBadDDEV: bad session number for DBGetConnInfo
error -807 rcDBBadSessNum: Database access error codes
error -806 rcDBBadSessID
error -805 rcDBExec
error -804 rcDBBreak
error -803 rcDBBadType
error -802 rcDBError
error -801 rcDBValue
error -800 rcDBNull
error -626 noMMUErr: no MMU present
error -625 cannotDeferErr: unable to defer additional functions
error -624 interruptsMaskedErr: donÕt call with interrupts masked
error -623 notLockedErr: specified range of memory is not locked
error -622 cannotMakeContiguousErr: cannot make specified range contiguous
error -621 notHeldErr: specified range of memory is not held
error -620 notEnoughMemoryErr: insufficient physical memory
error -619 threadProtocolErr
error -618 threadNotFoundErr
error -617 threadTooManyReqsErr
error -610 noUserInteractionAllowed: no user interaction allowed
error -609 connectionInvalid
error -608 noOutstandingHLE
error -607 bufferIsSmall: error returns from Post and Accept
error -606 appIsDaemon: app is BG-only and launch flags disallow this
error -605 appMemFullErr: application SIZE not big enough for launch
error -604 hardwareConfigErr: hardware configuration not correct for call
error -603 protocolErr: app made module calls in improper order
error -602 appModeErr: memory mode is 32-bit but app not 32-bit clean
error -601 memFragErr: not enough room to launch app wspecial requirements
error -600 procNotFound: no eligible process with specified descriptor
error -502 hwParamErr: bad selector for _HWPriv
error -501 teScrapSizeErr: scrap item too big for text edit record
error -500 rgnTooBigErr
error -492 exUserBreak: user debugger break; execute debugger commands on stack
error -491 strUserBreak: user debugger break; display string on stack
error -490 userBreak: user debugger break
error -463 notThePublisherWrn: not the first registered publisher for that container
error -462 containerAlreadyOpenWrn: container already opened by this section
error -461 containerNotFoundWrn: could not find editionContainer at this time
error -460 multiplePublisherWrn: A Publisher is already registered for that container
error -454 badSubPartErr: can not use sub parts in this release
error -453 badEditionFileErr: edition file is corrupt
error -452 notRegisteredSectionErr: not a registered SectionRecord
error -451 badSectionErr: not a valid SectionRecord
error -450 editionMgrInitErr: edition manager not inited by this app
error -417 btKeyAttrErr: There is no such a key attribute.
error -416 btKeyLenErr: Maximum key length is too long or equal to zero.
error -415 btRecNotFnd: Record cannot be found.
error -414 btDupRecErr: Record already exists.
error -413 btNoSpace: Can't allocate disk space.
error -410 notBTree: The file is not a dictionary.
error -400 gcrOnMFMErr: gcr format on high density media error
error -360 slotNumErr: invalid slot # error
error -351 smRecNotFnd: Record not found in the SRT.
error -350 smSRTOvrFlErr: SRT over flow.
error -349 smNoGoodOpens: No opens were successfull in the loop.
error -348 smOffsetErr: Offset was too big (temporary error
error -347 smByteLanesErr: NumByteLanes was determined to be zero.
error -346 smBadsPtrErr: Bad pointer was passed to sCalcsPointer
error -345 smsGetDrvrErr: Error occurred during _sGetDriver.
error -344 smNoMoresRsrcs: No more sResources
error -343 smDisDrvrNamErr: Error occured during _sDisDrvrName.
error -342 smGetDrvrNamErr: Error occured during _sGetDrvrName.
error -341 smCkStatusErr: Status of slot fail.
error -340 smBlkMoveErr: _BlockMove error
error -339 smNewPErr: _NewPtr error
error -338 smSelOOBErr: Selector out of bounds error
error -337 smSlotOOBErr: Slot out of bounds error
error -336 smNilsBlockErr: Nil sBlock error (Dont allocate and try to use a nil sBlock)
error -335 smsPointerNil: LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
error -334 smCPUErr: Code revision is wrong
error -333 smCodeRevErr: Code revision is wrong
error -332 smReservedErr: Reserved field not zero
error -331 smBadsList: Bad sList: Id1 < Id2 < Id3 ...format is not followed.
error -330 smBadRefId: Reference Id not found in List
error -320 smBusErrTO: BusError time out.
error -319 smBadBoardId: BoardId was wrong; re-init the PRAM record.
error -318 smNoJmpTbl: SDM jump table could not be created. or smReservedSlot: slot is reserved VM should not use this address space.
error -317 smInitTblVErr: An error occured while trying to initialize the Slot Resource Table.
error -316 smInitStatVErr: The InitStatusV field was negative after primary or secondary init.
error -315 smNoBoardId: No Board Id.
error -314 smGetPRErr: Error occured during _sGetPRAMRec (See SIMStatus).
error -313 smNoBoardSRsrc: No Board sResource.
error -312 smDisposePErr: _DisposePointer error
error -311 smFHBlkDispErr: Error occured during _sDisposePtr (Dispose of FHeader block).
error -310 smFHBlockRdErr: Error occured during _sGetFHeader.
error -309 smBLFieldBad: ByteLanes field was bad.
error -308 smUnExBusErr: Unexpected BusError
error -307 smResrvErr: Fatal reserved error. Resreved field <> 0.
error -306 smNosInfoArray: No sInfoArray. Memory Mgr error.
error -305 smDisabledSlot: This slot is disabled (-305 use to be smLWTstBad)
error -304 smNoDir: Directory offset is Nil
error -303 smRevisionErr: Wrong revison level
error -302 smFormatErr: FHeader Format is not Apple's
error -301 smCRCFail: CRC check failed for declaration data
error -300 smEmptySlot: No card in slot
error -299 nmTypErr: wrong queue type
error -293 smPriInitErr: Error; Cards could not be initialized.
error -292 smPRAMInitErr: Error; Slot Resource Table could not be initialized.
error -291 smSRTInitErr: Error; Slot Resource Table could not be initialized.
error -290 smSDMInitErr: Error; SDM could not be initialized.
error -261 midiInvalidCmdErr: command not supported for port type
error -260 midiDupIDErr: duplicate client ID
error -259 midiNameLenErr: name supplied is longer than 31 characters
error -258 midiWriteErr: MIDIWritePacket couldn't write to all connected ports
error -257 midiNoConErr: no connection exists between specified ports
error -256 midiVConnectRmvd: pending virtual connection removed
error -255 midiVConnectMade: pending virtual connection resolved
error -254 midiVConnectErr: pending virtual connection created
error -253 midiTooManyConsErr: too many connections made
error -252 midiTooManyPortsErr: too many ports already installed in the system
error -251 midiNoPortErr: no port with that ID found
error -250 midiNoClientErr: no client with that ID found
error -247 badInputText
error -246 badDictFormat
error -245 incompatibleVoice
error -244 voiceNotFound
error -243 bufTooSmall
error -242 synthNotReady
error -241 synthOpenFailed
error -240 noSynthFound
error -232 siUnknownQuality: invalid quality selector (returned by driver)
error -231 siUnknownInfoType: invalid info type selector (returned by driver)
error -230 siInputDeviceErr: input device hardware failure
error -229 siBadRefNum: invalid input device reference number
error -228 siBadDeviceName: input device could not be opened
error -227 siDeviceBusyErr: input device already in use
error -226 siInvalidSampleSize: invalid sample size
error -225 siInvalidSampleRate: invalid sample rate
error -224 siHardDriveTooSlow: hard drive too slow to record to disk
error -223 siInvalidCompression: invalid compression type
error -222 siNoBufferSpecified: returned by synchronous SPBRecord if nil buffer passed
error -221 siBadSoundInDevice: invalid index passed to SoundInGetIndexedDevice
error -220 siNoSoundInHardware: no Sound Input hardware
error -212 noMoreRealTime: not enough CPU cycles left to add another task
error -211 channelNotBusy
error -210 buffersTooSmall: can not operate in the memory allowed
error -209 channelBusy: the Channel is being used for a PFD already
error -208 badFileFormat: was not type AIFF or was of bad formatcorrupt
error -207 notEnoughBufferSpace: could not allocate enough memory
error -206 badFormat: Sound Manager Error Returns
error -205 badChannel: Sound Manager Error Returns
error -204 resProblem: Sound Manager Error Returns
error -203 queueFull: Sound Manager Error Returns
error -201 notEnoughHardwareErr: Sound Manager Error Returns
error -200 noHardwareErr: Sound Manager Error Returns
error -199 mapReadErr: map inconsistent with operation
error -198 resAttrErr: attribute inconsistent with operation
error -197 rmvRefFailed: RmveReference failed
error -196 rmvResFailed: RmveResource failed
error -195 addRefFailed: AddReference failed
error -194 addResFailed: AddResource failed
error -193 resFNotFound: Resource file not found
error -192 resNotFound: Resource not found
error -190 inputOutOfBounds: Offset of Count out of bounds
error -189 writingPastEnd: Writing past end of file
error -188 resourceInMemory: Resource already in memory
error -186 CantDecompress: resource bent ("the bends") - can't decompress a compressed resource
error -185 badExtResource: extended resource has a bad format.
error -157 cDepthErr: invalid pixel depth
error -156 cResErr: invalid resolution for MakeITable
error -155 cDevErr: invalid type of graphics device
error -154 cProtectErr: colorTable entry protection violation
error -153 cRangeErr: range error on colorTable request
error -152 cNoMemErr: failed to allocate memory for structure
error -151 cTempMemErr: failed to allocate memory for temporary structures
error -150 cMatchErr: Color2Index failed to find an index
error -149 insufficientStackErr or nsStackErr
error -148 pixMapTooDeepErr
error -147 rgnOverflowErr or rgnTooBigError
error -145 noMemForPictPlaybackErr
error -128 userCanceledErr
error -127 hMenuFindErr: could not find HMenu's parent in MenuKey
error -126 mBarNFnd: system error code for MBDF not found
error -125 updPixMemErr: insufficient memory to update a pixmap
error -124 volGoneErr: Server volume has been disconnected.
error -123 wrgVolTypErr: Wrong volume type error [operation not supported for MFS]
error -122 badMovErr: Move into offspring error
error -121 tmwdoErr: No free WDCB available
error -120 dirNFErr: Directory not found
error -117 memLockedErr: trying to move a locked block (MoveHHi)
error -116 memSCErr: Size Check failed
error -115 memBCErr: Block Check failed
error -114 memPCErr: Pointer Check failed
error -113 memAZErr: Address in zone check failed
error -112 memPurErr: trying to purge a locked or non-purgeable block
error -111 memWZErr: WhichZone failed (applied to free block)
error -110 memAdrErr: address was odd; or out of range
error -109 nilHandleErr: Master Pointer was NIL in HandleZone or other
error -108 iMemFullErr or memFullErr: Not enough room in heap zone
error -102 noTypeErr: No object of that type in scrap
error -100 noScrapErr: No scrap exists error
error -99 memROZWarn: soft error in ROZ or memROZError: hard error in ROZ or memROZErr: hard error in ROZ
error -98 portNotCf: driver Open error code (parameter RAM not configured for this connection)
error -97 portInUse: driver Open error code (port is in use)
error -96 portNotPwr: serial port not currently powered
error -95 excessCollsns: excessive collisions on write
error -94 lapProtErr: error in attachingdetaching protocol
error -93 noBridgeErr: no network bridge for non-local send
error -92 ddpLenErr: data length too big or eLenErr: ENET error codes
error -91 ddpSktErr: error in soket number or eMultiErr: Length error ddpLenErr
error -90 breakRecd: Break received (SCC)
error -89 rcvrErr: SCC receiver error (framing; parity; OR)
error -88 prInitErr: InitUtil found the parameter ram uninitialized
error -87 prWrErr: parameter ram written didn't read-verify
error -86 clkWrErr: time written did not verify
error -85 clkRdErr: unable to read same clock value twice
error -84 firstDskErr: IO System Errors or verErr: track failed to verify
error -83 fmt2Err: can't get enough sync
error -82 fmt1Err: can't find sector 0 after track format
error -81 sectNFErr: sector number never found on a track
error -80 seekErr: track number wrong on address mark
error -79 spdAdjErr: unable to correctly adjust disk speed
error -78 twoSideErr: tried to read 2nd side on a 1-sided drive
error -77 initIWMErr: unable to initialize IWM
error -76 tk0BadErr: track 0 detect doesn't change
error -75 cantStepErr: step handshake failed
error -74 wrUnderrun: write underrun occurred
error -73 badDBtSlp: bad data mark bit slip nibbles
error -72 badDCksum: bad data mark checksum
error -71 noDtaMkErr: couldn't find a data mark header
error -70 badBtSlpErr: bad addr mark bit slip nibbles
error -69 badCksmErr: addr mark checksum didn't check
error -68 dataVerErr: read verify compare failed
error -67 noAdrMkErr: couldn't find valid addr mark
error -66 fontSubErr: font substitution occured or noNybErr: couldn't find 5 nybbles in 200 tries
error -65 fontNotDeclared: font not declared or offLinErr: rw requested for an off-line drive
error -64 fontDecError: error during font declaration or lastDskErr: IO System Errors or noDriveErr: drive not installed
error -61 wrPermErr: write permissions error
error -60 badMDBErr: bad master directory block
error -59 fsRnErr: file system internal error:during rename the old entry was deleted but could not be restored.
error -58 extFSErr: volume in question belongs to an external fs
error -57 noMacDskErr: not a mac diskette (sig bytes are wrong)
error -56 nsDrvErr: no such drive (tried to mount a bad drive num)
error -55 volOnLinErr: drive volume already on-line at MountVol
error -54 permErr: permissions error (on file open)
error -53 volOffLinErr: volume not on line error (was Ejected)
error -52 gfpErr: get file position error
error -51 rfNumErr: refnum error
error -50 paramErr: error in user parameter list
error -49 opWrErr: file already open with with write permission
error -48 dupFNErr: duplicate filename (rename)
error -47 fBsyErr: File is busy (delete)
error -46 vLckdErr: volume is locked
error -45 fLckdErr: file is locked
error -44 wPrErr: diskette is write protected.
error -43 fnfErr: File not found
error -42 tmfoErr: too many files open
error -41 mFulErr: memory full (open) or file won't fit (load)
error -40 posErr: tried to position to before start of file (rw)
error -39 eofErr: End of file
error -38 fnOpnErr: File not open
error -37 bdNamErr: there may be no bad names in the final system!
error -36 ioErr: IO error (bummers)
error -35 nsvErr: no such volume
error -34 dskFulErr: disk full
error -33 dirFulErr: Directory full
error -30 dceExtErr: dce extension error
error -29 unitTblFullErr: unit table has no more entries
error -28 notOpenErr: Couldn't rdwrctlsts cause driver not opened
error -27 abortErr: IO call aborted by KillIO or iIOAbortErr: IO abort error (Printing Manager) or iIOAbort
error -26 dInstErr: DrvrInstall couldn't find driver in resources
error -25 dRemovErr: tried to remove an open driver
error -24 closErr: IO System Errors
error -23 openErr: IO System Errors
error -22 unitEmptyErr: IO System Errors
error -21 badUnitErr: IO System Errors
error -20 writErr: IO System Errors
error -19 readErr: IO System Errors
error -18 statusErr: IO System Errors
error -17 controlErr: IO System Errors
error -13 dsExtensionsDisabled: say ÒExtensions DisabledÓ
error -12 dsHD20Installed: say ÒHD20 StartupÓ
error -11 dsDisassemblerInstalled: say ÒDisassembler InstalledÓ
error -10 dsMacsBugInstalled: say ÒMacsBug InstalledÓ
error -8 seNoDB: no debugger installed to handle debugger command
error -5 SlpTypeErr: invalid queue element
error -4 unimpErr: unimplemented core routine
error -3 corErr: core routine number out of range
error -2 vTypErr: invalid queue element
error -1 qErr: queue element not found during deletion or telGenericError
error errAECorruptData errOSACorruptData
error dsCDEFNotFound CDEFNFnd
error dsWDEFNotFound WDEFNFnd
error noHardwareErr noHardware: obsolete spelling
error errAERecordingIsAlreadyOn errOSARecordingIsAlreadyOn
error notEnoughHardwareErr notEnoughHardware: obsolete spelling
error movieToolboxUninitialized noRecordOfApp: replica
error 1 evtNotEnb: event not enabled at PostEvent or siInitSDTblErr: slot int dispatch table could not be initialized. or dsBusError: bus error
error 2 siInitVBLQsErr: VBLqueues for all slots could not be initialized. or dsAddressErr: address error
error 3 siInitSPTblErr: slot priority table could not be initialized. or dsIllInstErr: illegal instruction error
error 4 dsZeroDivErr: zero divide error
error 5 dsChkErr: check trap error
error 6 dsOvflowErr: overflow trap error
error 7 dsPrivErr: privilege violation error
error 8 telNoTools: no telephone tools found in extension folder or dsTraceErr: trace mode error
error 9 dsLineAErr: line 1010 trap error
error 10 sdmJTInitErr: SDM Jump Table could not be initialized. or dsLineFErr: line 1111 trap error
error 11 sdmInitErr: SDM could not be initialized. or dsMiscErr: miscellaneous hardware exception error
error 12 sdmSRTInitErr: Slot Resource Table could not be initialized. or dsCoreErr: unimplemented core routine error
error 13 sdmPRAMInitErr: Slot PRAM could not be initialized. or dsIrqErr: uninstalled interrupt error
error 14 sdmPriInitErr: Cards could not be initialized. or dsIOCoreErr: IO Core Error
error 15 dsLoadErr: Segment Loader Error
error 16 dsFPErr: Floating point error
error 17 dsNoPackErr: package 0 not present
error 18 dsNoPk1: package 1 not present
error 19 dsNoPk2: package 2 not present
error 20 dsNoPk3: package 3 not present
error 21 dsNoPk4: package 4 not present
error 22 dsNoPk5: package 5 not present
error 23 dsNoPk6: package 6 not present
error 24 dsNoPk7: package 7 not present
error 25 dsMemFullErr: out of memory!
error 26 dsBadLaunch: can't launch file
error 27 dsFSErr: file system map has been trashed
error 28 dsStknHeap: stack has moved into application heap
error 30 dsReinsert: request user to reinsert off-line volume
error 31 dsNotThe1: not the disk I wanted
error 33 negZcbFreeErr: ZcbFree has gone negative
error 40 dsGreeting: welcome to Macintosh greeting
error 41 dsFinderErr: can't load the Finder error
error 42 shutDownAlert: handled like a shutdown error or dsBadStartupDisk: unable to mount boot volume (sad Mac only)
error 43 dsSystemFileErr: canÕt find System file to open (sad Mac only)
error 51 dsBadSlotInt: unserviceable slot interrupt
error 81 dsBadSANEOpcode: bad opcode given to SANE Pack4
error 83 dsBadPatchHeader: SetTrapAddress saw the Òcome-fromÓ header
error 84 menuPrgErr: happens when a menu is purged
error 85 dsMBarNFnd: Menu Manager Errors
error 86 dsHMenuFindErr: Menu Manager Errors
error 87 dsWDEFNotFound: could not load WDEF
error 88 dsCDEFNotFound: could not load CDEF
error 89 dsMDEFNotFound: could not load MDEF
error 90 dsNoFPU: an FPU instruction was executed and the machine doesnÕt have one
error 98 dsNoPatch: Can't patch for particular Model Mac
error 99 dsBadPatch: Can't load patch resource
error 101 dsParityErr: memory parity error
error 102 dsOldSystem: System is too old for this ROM
error 103 ds32BitMode: booting in 32-bit on a 24-bit sys
error 104 dsNeedToWriteBootBlocks: need to write new boot blocks
error 105 dsNotEnoughRAMToBoot: must have at least 1.5MB of RAM to boot 7.0
error 106 dsBufPtrTooLow: bufPtr moved too far during boot
error 1010 dsBadLibrary: DS Errors which are specific to the new runtime model introduced with PowerPC
error 1011 dsMixedModeFailure: Bad shared library
error 20000 dsShutDownOrRestart: user choice between ShutDown and Restart
error 20001 dsSwitchOffOrRestart: user choice between switching off and Restart
error 20002 dsForcedQuit: allow the user to ExitToShell return if Cancel
error 20003 dsRemoveDisk: request user to remove disk from manual eject drive
error 20004 dsDirtyDisk: request user to return a manually-ejected dirty disk
error 20010 dsSCSIWarn: Portable SCSI adapter warning.
error 20109 dsShutDownOrResume: allow user to return to Finder or ShutDown
error 32767 dsSysErr: general system error
2020年8月7日 星期五
如何提高網站在微軟搜尋引擎Bing 上面的搜尋
- 主要可以從微軟的網站管理工具webmaster 去登錄你的網站 https://www.bing.com/toolbox/webmaster
- 通常會要你進行驗證,一般來說需要證明你對網站有控制權,所以驗證方式有下列三種
** 在網站下面放指定的檔案
** 在網站header 裡塞可以辨認的文字
** 在域名(DNS)上按照指示設定特定的別名(cname) - 驗證過後,就可以開始透過上傳你的網站地圖,如果不知道如何產生妳的網站地圖,可以透過下列的工具幫你產生,通常網站地圖,只是讓搜尋引擎知道如何去搜尋你網站的資料,並沒有什麼高深的技術在裡面
- https://www.labnol.org/blogger/sitemap/
2020年8月6日 星期四
民進黨奇怪的用人邏輯
讓我想到以前 前副總統呂秀蓮女士講過的一句話,李遠哲搞科學的,讓他去搞政治做行政院長,她學政治的,叫他去管國科會,總觀現在民進黨的用人邏輯,像極了白手起家的土炮執行長,純粹只想把自己人塞到特定位置上,根本不管能不能勝任,也因為這樣,吸引到的人才,都是這種無能卻有(野)心的人才
Apple市值逼近2兆美元 佔S&P 500指數權重破紀錄
猶記得兩年多前才突破1兆美元,想不到2兆元這麼快就接近,最恐怖的事
S&P 500 已經達到6.5% 占比,超越35年前IBM 所創的紀錄,這件事跟人們財富累積累似,第一桶金累積很困難,但第二桶就來得很快,真是一個錢滾錢的時代,大者恆大,富者越富
2020年8月5日 星期三
*_ 代表 可以在python被忽略的參數,屬於python idiom
*_ 代表 可以在python被忽略的參數,屬於python idiom
例如實務上遇到要把string用=分隔成兩個參數,但卻有可能遇到分割的數目不同,這時候就可以使用 *_ 變數 +[None] 來處理這類問題,避免遇到Error
key ,value, *_=string.split("=")+ [None]
# 今日头条 CEO 张一鸣 (抖音TikTok創辦人):面试了 2000 个年轻人,混得好的都有这 5 种特质
转载声明:本文转自微信公众号「互联网思维」,今日头条 CEO 张一鸣:面试了 2000 个年轻人,混得好的都有这 5 种特质。
正文
张一鸣算是 80 后中绝对的佼佼者。1983 年出生的张一鸣 ,在 2005 年从南开大学毕业后,至今参与创办了 5 家公司,2013 年,他先后入选《福布斯》“中国 30 位 30 岁以下的创业者”和《财富》“中国 40 位 40 岁以下的商业精英”,是目前国内互联网行业最受关注的青年领袖之一。2016 年 7 月 26 日,艾瑞发布 2016 中国独角兽企业估值榜单,今日头条以 92.3 亿美金的估值位列第 6.
张一鸣的成功中,他对人才的重视功不可没。张一鸣作为面试官,过去 10 年里,面试过小 2000 个年轻人,这些年轻人最初水平都差不多,但后来的发展差别非常大。张一鸣曾在“今日头条 Bootcamp”上对公司研发&产品部门应届毕业生发表了题为《Stay hungry, Stay young》的演讲,其中他分享了:
毕业多年后大家是怎么拉开差距的?
为何年轻人容易在毕业后很快就遇到了成长的天花板?
我是如何在毕业第 2 年就成了管理四五十人团队的主管?
这 10 年我遇到的优秀年轻人都有哪些特质?
张一鸣演讲整理
1. 为何毕业多年后,原本水平差不多的同学都拉开了差距?
大家好!各位都非常年轻,我今天来的时候挺有压力。因为我毕业快 11 年了,看到你们,真是觉得“长江后浪推前浪”。
我去年参加了武汉的校招,感觉新一代年轻人的素质确实都非常好。我昨天就在想,今天应该跟大家分享什么。想了想,先把题目拟出来,把乔布斯的“Stay hungry, Stay foolish”,改成“Stay hungry, Stay young”.
我想跟大家分享一下我自己毕业后的工作经历和体会。另外,我作为面试官,过去 10 年里,可能面试过小 2000 个年轻人。有的和我在一家公司,有的去了别家公司,他们发展差别其实非常大。从算法层面上讲,我们把这叫做“正例”和“负例”。我想分享一下:为什么“正例”和“负例”发展差别这么大?
什么是“Stay hungry, Stay young”?“Stay hungry”,大家都知道,就是好奇心、求知若渴、上进心。但为什么要说“Stay young”?
我觉得年轻人有很多优点:做事不设条条框框,没有太多自我要维护,经常能打破常规,非常努力、不妥协、不圆滑世故。
10 年过去了,有的年轻人,依然保持着这些很好的特质。我觉得这就算“Stay young”.
“Stay young”的人基本没有到天花板,一直保持着自我的成长。相反,很多人毕业后提高了技能,但到一个天花板后,就不再成长了。
2. 我先分享我的个人经历:我是如何在毕业第 2 年就成了管理四五十人团队的主管?
2005 年,我从南开大学毕业,加入了一家公司叫酷讯。我是最早期加入的员工之一,一开始只是一个普通工程师,但在工作第 2 年,我在公司管了四五十个人的团队,负责所有后端技术,同时也负责很多产品相关的工作。
有人问我:为什么你在第一份工作就成长很快?是不是你在那个公司表现特别突出?
其实不是。当时公司招聘标准也很高。跟我同期入职的,我记得就有两个清华计算机系的博士。
那我是不是技术最好?是不是最有经验?我发现都不是。后来我想了想,当时自己有哪些特质。
我工作时,不分哪些是我该做的、哪些不是我该做的。我做完自己的工作后,对于大部分同事的问题,只要我能帮助解决,我都去做。当时,Code Base中大部分代码我都看过了。新人入职时,只要我有时间,我都给他讲解一遍。通过讲解,我自己也能得到成长。还有一个特点,工作前两年,我基本上每天都是十二点一点回家,回家以后也编程到挺晚。确实是因为有兴趣,而不是公司有要求。所以我很快从负责一个抽取爬虫的模块,到负责整个后端系统,开始带一个小组,后来带一个小部门,再后来带一个大部门。
我做事从不设边界。当时我负责技术,但遇到产品上有问题,也会积极地参与讨论、想产品的方案。很多人说这个不是我该做的事情。但我想说:你的责任心,你希望把事情做好的动力,会驱动你做更多事情,让你得到很大的锻炼。我当时是工程师,但参与产品的经历,对我后来转型做产品有很大帮助。我参与商业的部分,对我现在的工作也有很大帮助。记得在07年底,我跟公司的销售总监一起去见客户。这段经历让我知道:怎样的销售才是好的销售。当我组建头条招人时,这些可供参考的案例,让我在这个领域不会一无所知。
以上就是我刚毕业时的特点。
3. 经过 10 年观察,我遇到的优秀的年轻人都有这 5 大特质!
后来,我陆续加入到各种创业团队。在这个过程中,我跟很多毕业生共处过,现在还和他们很多人保持联系。跟大家分享一下,我看到的一些好和不好的情况。总结一下,这些优秀年轻人有哪些特质呢?
第一,有好奇心,能够主动学习新事物、新知识和新技能。今天不太谦虚,我把自己当做正例,然后再说一个负例。我有个前同事,理论基础挺好,但每次都是把自己的工作做完就下班了。他在这家公司呆了一年多,但对网上的新技术、新工具都不去了解。所以他非常依赖别人。当他想要实现一个功能,他就需要有人帮他做后半部分,因为他自己只能做前半部分——如果是有好奇心的人,前端、后端、算法都去掌握、至少有所了解的话,那么很多调试分析,自己一个人就可以做。
第二,对不确定性保持乐观。比方说头条最开始时,我跟大家讲:我们要做1亿的日启动次数。(当然,现在不止 1 亿了,我们现在的日启动次数已经差不多 5 亿。)很多人觉得,你这家小公司怎么可能做得到呢?大公司才能做得好。所以他就不敢努力去尝试。只有乐观的人会相信,会愿意去尝试。其实我加入酷讯时也是这样。那家公司当时想做下一代搜索引擎(最后也没有做成,只做了旅游的垂直搜索)。我不知道其他人怎么想的,我自己觉得很兴奋。我确实没有把握,也不知道怎么做,但当时就去学,就去看所有这些相关东西。我觉得最后也许不一定做成,或者没有完全做到,但这个过程也会很有帮助——只要你对事情的不确定性保持乐观,你会更愿意去尝试。
第三,不甘于平庸。我们在座各位,在同学中已经非常优秀了。但我想说,其实走向社会后,应该再设定更高的标准。我见到很多大学期间的同学、一起共事的同事中,有很多非常不错的人才,技术、成绩都比我好。但 10 年过去,很多人没有达到我的预期:我觉得他应该能做得很好,但他却没有做到。
很多人毕业后,目标设定就不高了。我回顾了一下,发现有同事加入银行IT部门:有的是毕业后就加入,有的是工作一段时间后加入。为什么我把这个跟“不甘于平庸”挂在一起呢?因为他们很多人加入,是为了快点解决北京户口,或者当时有些机构有分房补助,可以购买经济适用房。
后来我就在想一个问题,如果自己不甘于平庸,希望做得非常好的话,其实不会为这些东西担心:是否有北京户口,是否能买上一套经济适用房?
如果一个人一毕业,就把目标定在这儿:在北京市五环内买一个小两居、小三居,把精力都花在这上面,那么工作就会受到很大影响。他的行为会发生变化,不愿意冒风险。
比如我见到以前的朋友,他业余做一些兼职,获取一些收入。那些兼职其实没有什么技术含量,而且对本职工作有影响,既影响他的职业发展,也影响他的精神状态。我问他为什么,他说,哎,快点出钱付个首付。我觉得他看起来是赚了,其实是亏的。
不甘于平庸很重要。我说不平庸,并不是专门指薪酬要很高或者技术很好,而是你对自己的标准一定要高。也许你前两年变化得慢,但10年后再看,肯定会非常不一样。
第四,不傲娇,要能延迟满足感。我在这里举个反例:两个我印象比较深刻的年轻人,素质、技术都蛮不错,也都挺有特点。我当时是他们的主管,发现他们在工作中deliver的情况始终不好。他们觉得其他同事比他们做得差,其实不是:他们确实可以算作在当时招的同事里面 TOP 20%,但误以为自己是 TOP 1%。所以很多基础一点的工作,比如要做一个调试工具,他就不愿意做,或者需要跟同事配合的工作,他就配合得不好。
本来都是资质非常好的人才,人非常聪明、动手能力也强,但没有控制好自己的傲娇情绪。我觉得这和“不甘于平庸”不矛盾。“不甘于平庸”是你目标要设得很高,“不傲娇”是你对现状要踏实。
这 2000 个样本当中,我见到很多我原来觉得很好的,其实没有我想象中的发展好,我原来觉得不好的,其实超出我的预期。这里我也举个例子:
当时我们有个做产品的同事,也是应届生招进来,当时大家都觉得他不算特别聪明,就让他做一些比较辅助的工作,统计一下数据啊做一下用户反弹啊之类。但现在,他已经是一个十亿美金公司的副总裁。
后来我想想,他的特点就是肯去做,负责任,从来不推诿,只要他有机会承担的事情,他总尽可能地做好。每次也不算做得特别好,但我们总是给他反馈。他去了那家公司后,从一个用户量不到 10 万的边缘频道负责起来,把这个频道越做越好。由于这是一个边缘频道,没有配备完整的团队,所以他一个人承担了很多职责,也得到了很多锻炼。
第五,对重要的事情有判断力。选什么专业、选什么公司、选什么职业、选什么发展路径,自己要有判断力,不要被短期选择而左右。上面一些例子,也都涵盖了这一点。比如当时很多人愿意去外企,不愿意去新兴的公司。06、07 年,很多师弟、师妹问我职业选择,我都建议他们去百度,不要去 IBM、微软。但实际上,很多人都是出于短期考虑:外企可能名气大、薪酬高一点。
虽然这个道理,大家都听过很多遍。刚毕业时薪酬差三五千块,真的可以忽略不计。短期薪酬差别并不重要。但实际上,能摆脱这个、能有判断力的人,也不是特别多。
这些就是我想跟大家分享的。谢谢!
张一鸣 10 年感悟
1. 不断为公司招揽牛逼人才是创始人最重要的任务之一,他曾为了挖角工程师亲自勾搭两个月
张一鸣在拿到创业邦年度创业人物称号发表演讲时说:除了吃饭、睡觉,就是招人。
作为一个创业公司的创始人,我花最多的时间一直在招聘上。我夜归很晚的时候大部分原因是去见候选人,有时候甚至从下午聊到凌晨。我相信并不是每一个 CEO 都是好 HR,但是我自己在努力做一个认真诚恳的HR。
今日头条早期没有什么资源,张一鸣曾为了挖一位微软前资深工程师,像调查记者一样了解对方。
张一鸣不断打电话,打听他的信息。初步了解情况以后,张一鸣想尽办法加上对方的微博微信。他会偶尔点赞、评论互动,提升自己好感度。“前期信息收集越仔细,他越会觉得你对他的工作、公司环境乃至他那个部门的特点都如此了解,这样你和他的对话就能产生共鸣,他对你的信任度会提高。”
好几天的调查、两个月的沟通,交成朋友再开始介绍自己的公司。最终,他在一家咖啡馆成功邀请这位工程师加盟今日头条。
“每次要做之前我都觉得挺累的,但是招到人了又会很兴奋。”张一鸣说。
2. 舍得为人才和发展花钱,把公司搬到帝都中心、发住房补贴,让员工远离郊区
张一鸣说:年轻人工作生活应该住在市中心,哪怕房子小一点,在市区有更多的活动和交流,下班之后也不需要浪费大好时光和宝贵经理挤地铁。年纪轻轻不要着急在郊区,尤其房山、沙河、天通苑之类的远郊定居,买了房网其实也建议搬到市区来。
张一鸣做了两点:一是把公司搬倒了帝都中心知春路;二是给每个员工每月 1500 元的住房补贴,今日头条每年在这方面的补助高达 3000 万元。
“就近居住和加不加班没关系,节省的时间用于健身读书看电影也很好。”张一鸣称。
3. 自省是创业路上的导师:适度、可管理的沮丧让我保持清醒
我很早以前就意识到,公司规模扩大了,CEO 角色也很容易就会陷入到一个不利的局面里——公司周围很少有人能够给自己提有效的要求和批评。
这时候创业者的自知、自制力和反省能力就变得尤为重要,能从轻微的意见和异常中发现自己的问题并修正,就是一种慎独。
这种氛围下,创业者很容易会滋生出不自觉的满足感,这种满足感会像病毒一样影响、侵入我们的深入思考能力,这个时候引入适度、可管理的沮丧,反而能让人保持清醒。
4. 创业过程中做决策要三思而后行,三思的迭代要快
这是张一鸣创业路上体会最深的感悟之一:创业路上会有很多不确定性,让我们决策时纠结犹豫,说好听一点就是“三思”。
三思没有问题,是人之常情,作为一个不那么激进的创业者,我也常有这种状态。但用产品经理的话来讲,三思后的迭代速度必须快。这也是一种创业必须要有的心态。
随着公司规模的扩大,我越来越倾向于把公司当做一个产品来看待:产品迭代要快,公司迭代也要快,毕竟这个社会给你的时间窗口其实是有限的。
把公司当做产品,提前设想好各个环节的迭代度,努力去做后你会发现,整个公司的迭代速度也会大大提升。
2020年7月22日 星期三
政府花太多時間在搞各式各樣的振興券了
最近一推類振興券,除了擾民話,個資外洩也一個問題,明明政府手上就一推民眾資料,最帶頭要
個部分隨便弄個app 或 網站,然後就要民眾上網填個資,我猜這些app 或網站也都是外包給隨
便的公司弄的,也沒在管資料放在哪,到處亂撒補助,如果真的要給補助,為什麼不能就到時候
報稅給個額外的扣抵額,拿發票抵稅之類的,而且看現在各種票券,也不是所有店家都參與,參
與的也常常會搞些小動作,讓花錢的人跟賺錢的人都不開心,而且每個部會都在搞這種沒實質生
產意義的東西,真搞不懂這著政府到底還有沒有醒者的人,對未來越來越沒信心了
2020年7月21日 星期二
How to see what are the services running in Max OS
sudo launchctl list
ps -ef |grep /Library/StartupItems
2020年7月7日 星期二
2020年6月9日 星期二
No module named "Crypto"
解決方法就是使用新版本的pycrypt ==> pycryptodome 替代
pip uninstall crypto pycryptodome
pip install pycryptodome
2020年3月30日 星期一
2020年2月7日 星期五
Security testing in DevOps
traditional security can't fit in DevOps. Because the major traditional security control
rely on "Separation of Duty", it is conflict with DevOps "take full responsibility".
Security must Change or Die in DevOps.
Emerging patterns for security in a DevOps world
Traditional Security
|
DevSecOps
|
Embrace secrecy
|
Create Feedback Loops
|
Just Pass Audit!
|
Compliance adds Value
|
Enforce Stability
|
Create Chaos
|
Build a wall
|
Zero Trust Network
|
Slow Validation
|
Fast and Non-blocking
|
Certainly Testing
|
Adversity Testing
|
Test when Done
|
Shift Left
|
Process Driven
|
The Paved Road
|
如何下載Facebook 相簿跟影片
影片:透過chrome plug-in : Video Downloader for Facebook<sup>TM</sup> 相簿: 透過chrome plug-in : Tampermonkey 搭配script : Facebo...
-
Hard limit: 一般指不管任何狀況下,使用者都不被允許超出使用限制量 Soft limit: 則是允許使用者在一定時間範圍內,可以使用超過使用限制量,之後才會作處理(甚至根本不處理),在軟體功能上,常常會有所謂的paper license 或paper lim...
-
1.從網路上下載文鼎注音字形 201601111329270 2.開啟字體簿 F4 —>其他—>字體簿 3.安裝新的字體 4.開啟word,把要轉換的中文,選好後,選 AR stdKaiZuinn Md 即可
-
前情提要: 2011 mbp 顯卡問題,之前Apple 有召修方案,但目前已經不在召修名單,這個問題是設計上的問題,即使你送給外面的廠商維修,隔了一陣子還是會在故障,我個人的2011 late MBP 筆電已經因為顯卡問題,更換過三次主機板,但目前一樣又出現問題,癥狀就是開機會...