tag:blogger.com,1999:blog-41553737556610382292024-03-06T04:05:42.573+08:00不合邏輯只是不明因果Part of egg.Unknownnoreply@blogger.comBlogger219125tag:blogger.com,1999:blog-4155373755661038229.post-68001373114397284692024-01-31T23:17:00.006+08:002024-01-31T23:18:29.397+08:00換網址不換頁<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js"></script>
<script>hljs.highlightAll();</script>
<pre>
<code class="javascript">
history.pushState(state,title,url);
//state 設置該筆瀏覽歷程記錄所儲存的狀態物件 可為null
//title 設置該筆瀏覽頁面的title,部分瀏覽器不支援 可為null
//url 新的 URL 不一定需要為一個絕對的路徑;如果是相對路徑,會依據目前的URL來解析。
// 新的 URL 需要與目前 URL 的 origin 是一樣的; 否則,pushState() 會丟出一個錯誤的例外。
// 這個參數是選擇性的; 如果沒有被指定的話,他會設定為目前文件的 URL。 可為null
// 範例
history.pushState(state,title,'/click/me.html');
// 使用方式同上
history.replaceState();
</code>
</pre><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-72424772215710228782024-01-26T18:29:00.003+08:002024-01-29T19:06:51.685+08:00SSH 一直被掃 , 把IP進黑名單<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js"></script>
<script>hljs.highlightAll();</script>
tail -f /var/log/secure<br>
就會看到一堆在測帳密的LOG<br>
把這些擋掉吧<br><br>
*/1 * * * * sh /root/deny.sh<br><br>
<pre>
<code class="bash">
#! /bin/bash
cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}' > /usr/local/bin/black.txt
for i in `cat /usr/local/bin/black.txt`
do
IP=`echo $i |awk -F= '{print $1}'`
NUM=`echo $i|awk -F= '{print $2}'`
if [ $NUM -gt 5 ];then
grep $IP /etc/hosts.deny > /dev/null
if [ $? -gt 0 ];then
echo "sshd:$IP:deny" >> /etc/hosts.deny
fi
fi
done
</code>
</pre>
<br><br>
last:這個命令可用於查看我們系統的成功登錄、關機、重啟等情況;這個命令就是將/var/log/wtmp檔案格式化輸出。<br><br>
lastb:這個命令用於查看登錄失敗的情況;這個命令就是將/var/log/btmp檔案格式化輸出。<br><br>
lastlog:這個命令用於查看使用者上一次的登錄情況;這個命令就是將/var/log/lastlog檔案格式化輸出。<br><br>
who:這個命令使用者查看當前登錄系統的情況;這個命令就是將/var/log/utmp檔案格式化輸出。<br><br><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-51173141559543712832023-04-14T21:47:00.007+08:002023-04-14T21:47:45.887+08:00ping localhost時出現::1的解決方法<pre>
netsh int ipv6 set prefix ::ffff:0:0/96 40 1
netsh int ipv6 set prefix 2002::/16 30 2
netsh int ipv6 set prefix 2001::/32 20 3
netsh int ipv6 set prefix ::1/128 10 4
netsh int ipv6 set prefix ::/0 5 5
</pre><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-64697784127421970542022-02-03T06:01:00.009+08:002022-02-03T08:06:28.018+08:00CentOS 7 以太坊Ethereum環境建置 Geth<pre><span style="font-size: medium;">
更新
yum update -y && yum install git wget bzip2 vim gcc-c++ ntp epel-release nodejs -y
git 要更新至2.X版
安裝go-ethereum
# 在這裡要先安裝Golang,待會需要編譯用
wget https://studygolang.com/dl/golang/go1.11.5.linux-amd64.tar.gz
# 解壓縮golang
tar zxvf go1.11.5.linux-amd64.tar.gz
# 搬移go到local下
mv go /usr/local
# 配置GOROOT和PATH
echo "export GOROOT=/usr/local/go" >> /etc/profile
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
source /etc/profile
# 下載go-ethereum
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum
make all
# 完成後在path中入geth路徑
echo "export PATH=$PATH:/root/go-ethereum/build/bin" >> /etc/profile
source /etc/profile
安裝cmake:智能合約編譯solc需cmake編譯
下載cmake最新版本
cd && wget https://cmake.org/files/v3.14/cmake-3.14.5.tar.gz
解壓並編譯並安裝
tar -xzvf cmake-3.14.5.tar.gz
cd cmaker-3.14.5
./bootstrap --prefix=/usr/local
make && make install
網路時間同步
systemctl enable ntpd
systemctl start ntpd
防火牆port
firewall-cmd --zone=public --add-port=8545/tcp --permanent
firewall-cmd --zone=public --add-port=30303/tcp --permanent
firewall-cmd --reload
Ethereum 節點 - 30303
RPCapi - 8545
–permanent為永久設定,否則防火牆重新啟動時將會失效
建立創世區塊文件
在go-ethereum/build/bin目錄下建立創世區塊文件init.json檔,內容如下
{
"config": {
"chainId": 666,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"ethash": {}
},
"nonce": "0x0",
"timestamp": "0x5ddf8f3e",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x00002",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": { },
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
創世區塊初始化
請在ethereum/build/bin下操作
# 請注意,這是自行架設的私有鏈才需要初始化
# 公有鏈不需操作此步驟
geth --datadir "/data/eth/chain" init init.json
/data/eth/chain,建立資料位置可自行更換,建立前請先確保磁碟容量足夠,以及初始化文件名稱要和剛剛建立的必須一致
以太坊啟動
geth --http --http.api db,eth,net,web3,personal --datadir .\db --networkid 1997 console 2>> eth.log
端口:以太坊網絡監聽端口,默認指定為30303
http:開啟HTTP-RPC服務,可以進行智能合約的部署和測試
http.api:基於HTTP-RPC提供的API
http.addr:指定HTTP-RPC服務監聽地址,默認為localhost
http.port:HTTP-RPC服務監聽端口指定號,默認為8545
網絡ID:指定以太坊網絡的ID為代表公用網絡啟動ID,因此我們為密碼鏈創建密碼鏈,因此指定密碼鏈的起源。
控制台:啟動模式
eth.log:控制器,記錄日誌
如果有看到Welcome to the Geth JavaScript console!的字樣,私有鏈就算架設完成囉~
開啟第二個Console畫面
基本上啟動以太坊一定是Server端啟用,所以如果在其他電腦上也想進入Console畫面,就要Remote進去
# 本機連接節點
geth attach http://localhost:8545
# 遠端連接節點
geth attach http://remote_ip:8545
</pre><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-18954870974946923712022-01-06T19:53:00.000+08:002022-01-06T19:53:36.563+08:00[備忘]智能合約相關資源連結
目前在學solidity用到的幾個網站<br />
陸續再增加<br /><br />
<div>
線上智能合約IDE http://remix.ethereum.org/<br />
Openzeppelin合約精靈 https://docs.openzeppelin.com/contracts/4.x/wizard<br /><br />
Rinkeby Test Block Explorer https://rinkeby.etherscan.io<br />
Get Rinkeby Test Eth https://faucet.rinkeby.io/<br />
Get Rinkeby Test Eth https://faucets.chain.link/rinkeby<br />
Opensea TestNet https://testnets.opensea.io/<br /><br />
</div>
<div>
IPFS https://ipfs.io/ 在做NFT圖檔或JSON檔時可存放的區塊鏈空間<br />
上傳 https://anarkrypto.github.io/upload-files-to-ipfs-from-browser-panel/public/<br />
展示 https://ipfs.io/ipfs/{HASH}<br />
或(cloudflare限定只能看圖片)<br />
https://cloudflare-ipfs.com/ipfs/{HASH}
</div><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-68255637920097294492021-12-29T15:22:00.004+08:002021-12-29T15:22:31.241+08:00BSC TEST NET<p>BSC TEST NET</p><p>https://data-seed-prebsc-1-s1.binance.org:8545</p><p>97</p><p>BNB</p><p>https://explorer.binance.org/smart-testnet</p><p><br /></p><p>取測試幣 https://testnet.binance.org/faucet-smart</p><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-20752568945548338042020-08-12T18:39:00.004+08:002022-01-11T13:07:35.745+08:00[WINDOWS]刪除20天前的資料forfiles -p "D:\userDataDir" -d -20 -c "cmd /c IF @isdir == TRUE rd /S /Q @path"<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-65045246943228973502019-10-28T13:53:00.004+08:002019-10-28T13:53:41.483+08:00VirtualBox 調整CentOS VM硬碟大小配置"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd Core20-Comp-03-disk1.vdi --resize 25000<br />
<br />
接下來進入VM以root執行以下指令<br />
fdisk /dev/sda<br />
d<br />
2<br />
n<br />
p<br />
2<br />
ENTER<br />
ENTER<br />
w<br />
reboot<br />
pvresize /dev/sda2<br />
pvscan<br />
lvextend -l +100%FREE /dev/mapper/centos_core20--desktop--1-root<br />
xfs_growfs /dev/mapper/centos_core20--desktop--1-root<br />
df -h<br />
<div>
<br /></div>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-29588827725458844622018-12-12T16:58:00.002+08:002018-12-12T16:58:21.851+08:00xml2json<pre>function xml2json($fileContents) {
$fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
$fileContents = trim(str_replace('"', "'", $fileContents));
$simpleXml = simplexml_load_string($fileContents);
$json = json_encode($simpleXml,1);
return $json;
}
</pre>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-19426349478978750822017-12-05T23:15:00.002+08:002017-12-05T23:15:33.685+08:00Linode Centos7 / install Desktop and Vncserver***Desktop***<br />
yum -y update<br />
yum -y groupinstall "GNOME Desktop"<br />
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target<br />
yum -y install epel-release<br />
yum -y update<br />
yum clean all<br />
yum -y groupinstall "X Window system"<br />
yum -y groupinstall "MATE Desktop"<br />
systemctl set-default graphical.target<br />
<br />
#安裝 倉頡輸入法 套件<br />
#http://oldgrayduck.blogspot.tw/2016/12/centos7.html<br />
yum -y install ibus-table-chinese-cangjie<br />
<br />
<br />
***VNCSERVER***<br />
yum -y install tigervnc-server<br />
useradd se<br />
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service<br />
vi /etc/systemd/system/vncserver@:1.service<br />
#change <user> -> se</user><br />
<br />
firewall-cmd --permanent --zone=public --add-service vnc-server<br />
firewall-cmd --reload<br />
su se<br />
vncserver<br />
#set password<br />
su -<br />
systemctl daemon-reload<br />
systemctl enable vncserver@:1.service<br />
reboot<br />
systemctl start vncserver@:1.service<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-61109283861515378412016-08-03T14:12:00.003+08:002021-12-29T15:22:42.725+08:00[備忘]Chrome Clear History<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">chrome://history-frame/</code></pre>
In the Console Debugger/Viewer, copy & paste the following code:
<br />
<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><pre style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">function removeItems() {
removeButton = document.getElementById('remove-selected');
overlayWindow = document.getElementById('overlay');
//revision (07.28.15): Replaced the For Loop targeting the checkboxes, thanks to Denis Gorbachev via comments (02.19.15)
Array.prototype.forEach.call(document.querySelectorAll("input[type=checkbox]"), function(node) {node.checked = "checked"})
setTimeout(function () {
if (removeButton.getAttribute("disabled") !== null) {
removeButton.removeAttribute("disabled")
}
/* revision (08.20.14): no longer binding to that condition, button should no longer be disabled, so click! */
if ((overlayWindow.hasAttribute("hidden")) && (overlayWindow.getAttribute("hidden") !== false)) {
removeButton.click();
}
/* revision (08.20.14): new Interval, to check against the overlay DIV containing the confirmation "Remove" button */
/* Attempting to click the button while the DIV's "hidden" attribute is in effect will cause FAILED ASSERTION */
stopButton = setInterval(function () {
if (overlayWindow.hasAttribute("hidden")) {
if (overlayWindow.getAttribute("hidden") == "false") {
hidden = false
} else {
hidden = true
}
} else {
hidden = false
}
if (!hidden) {
document.getElementById("alertOverlayOk").click();
clearInterval(stopButton)
}
}, 250)
}, 250)
}
//revision (08.20.14): Lets build our buttons to control this so we no longer need the console
//stop button (08.20.14)
var stopButton = document.createElement('button');
stopButton.setAttribute('id', "stopButton");
stopButton.innerHTML = "Stop";
stopButton.style.background = "#800";
stopButton.style.color = "#fff";
stopButton.style.display = "none";
stopButton.onclick = function () {
clearInterval(window.clearAllFiltered);
document.getElementById("stopButton").style.display = "none";
document.getElementById("startButton").style.display = ""
};
//start button (08.20.14)
var startButton = document.createElement('button');
startButton.setAttribute('id', "startButton");
startButton.innerHTML = "Start";
startButton.style.background = "#090";
startButton.style.color = "#fff";
startButton.onclick = function () {
window.clearAllFiltered = setInterval(function () {
/* revision (07.28.15): Stop the Loop automatically if there are no more items to remove */
if(document.getElementById("results-header").innerText=="No search results found."){
document.getElementById("stopButton").click();
}
if (document.getElementById("loading-spinner").getAttribute("hidden") !== null) {
removeItems()
}
}, 250); //adjust Time Here (1500 [millisec] = 1.5sec)
document.getElementById("stopButton").style.display = "";
document.getElementById("startButton").style.display = "none"
};
/* revision (08.20.14): Now we add our buttons, and we're ready to go! */
editingControls = document.getElementById('editing-controls');
editingControls.appendChild(stopButton);
editingControls.appendChild(startButton);</code></pre>
</code></pre>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-21660422840402689672016-08-03T14:12:00.002+08:002016-08-03T14:13:15.724+08:00[備忘]Chrome Clear History<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">chrome://history-frame/</code></pre>
In the Console Debugger/Viewer, copy & paste the following code:
<br />
<pre style="background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><pre style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;">function removeItems() {
removeButton = document.getElementById('remove-selected');
overlayWindow = document.getElementById('overlay');
//revision (07.28.15): Replaced the For Loop targeting the checkboxes, thanks to Denis Gorbachev via comments (02.19.15)
Array.prototype.forEach.call(document.querySelectorAll("input[type=checkbox]"), function(node) {node.checked = "checked"})
setTimeout(function () {
if (removeButton.getAttribute("disabled") !== null) {
removeButton.removeAttribute("disabled")
}
/* revision (08.20.14): no longer binding to that condition, button should no longer be disabled, so click! */
if ((overlayWindow.hasAttribute("hidden")) && (overlayWindow.getAttribute("hidden") !== false)) {
removeButton.click();
}
/* revision (08.20.14): new Interval, to check against the overlay DIV containing the confirmation "Remove" button */
/* Attempting to click the button while the DIV's "hidden" attribute is in effect will cause FAILED ASSERTION */
stopButton = setInterval(function () {
if (overlayWindow.hasAttribute("hidden")) {
if (overlayWindow.getAttribute("hidden") == "false") {
hidden = false
} else {
hidden = true
}
} else {
hidden = false
}
if (!hidden) {
document.getElementById("alertOverlayOk").click();
clearInterval(stopButton)
}
}, 250)
}, 250)
}
//revision (08.20.14): Lets build our buttons to control this so we no longer need the console
//stop button (08.20.14)
var stopButton = document.createElement('button');
stopButton.setAttribute('id', "stopButton");
stopButton.innerHTML = "Stop";
stopButton.style.background = "#800";
stopButton.style.color = "#fff";
stopButton.style.display = "none";
stopButton.onclick = function () {
clearInterval(window.clearAllFiltered);
document.getElementById("stopButton").style.display = "none";
document.getElementById("startButton").style.display = ""
};
//start button (08.20.14)
var startButton = document.createElement('button');
startButton.setAttribute('id', "startButton");
startButton.innerHTML = "Start";
startButton.style.background = "#090";
startButton.style.color = "#fff";
startButton.onclick = function () {
window.clearAllFiltered = setInterval(function () {
/* revision (07.28.15): Stop the Loop automatically if there are no more items to remove */
if(document.getElementById("results-header").innerText=="No search results found."){
document.getElementById("stopButton").click();
}
if (document.getElementById("loading-spinner").getAttribute("hidden") !== null) {
removeItems()
}
}, 250); //adjust Time Here (1500 [millisec] = 1.5sec)
document.getElementById("stopButton").style.display = "";
document.getElementById("startButton").style.display = "none"
};
/* revision (08.20.14): Now we add our buttons, and we're ready to go! */
editingControls = document.getElementById('editing-controls');
editingControls.appendChild(stopButton);
editingControls.appendChild(startButton);</code></pre>
</code></pre>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-83306704190264079552016-07-11T11:34:00.003+08:002016-07-11T11:34:47.685+08:00IPTABLES DUMP / RESTORE<span style="background-color: white; color: #111111; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 27px;">Backup</span><br style="background-color: white; color: #111111; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 27px; margin: 0px; padding: 0px; word-wrap: break-word;" /><code style="background-color: #fafbfc; border: 1px solid rgb(222, 222, 222); clear: both; color: #666666; display: block; font-family: Consolas, Monaco, Menlo, Courier, Verdana, sans-serif; font-size: 16px; line-height: 1em; margin: 0px; overflow: auto; padding: 21px; word-wrap: normal;"># iptables-save > /root/iptables.bak</code><br style="background-color: white; color: #111111; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 27px; margin: 0px; padding: 0px; word-wrap: break-word;" /><span style="background-color: white; color: #111111; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 27px;">Restore</span><br style="background-color: white; color: #111111; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 16px; line-height: 27px; margin: 0px; padding: 0px; word-wrap: break-word;" /><code style="background-color: #fafbfc; border: 1px solid rgb(222, 222, 222); clear: both; color: #666666; display: block; font-family: Consolas, Monaco, Menlo, Courier, Verdana, sans-serif; font-size: 16px; line-height: 1em; margin: 0px; overflow: auto; padding: 21px; word-wrap: normal;"># iptables-restore < /root/iptables.bak</code><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-48549103074695357472016-07-01T18:30:00.000+08:002016-07-01T18:30:19.097+08:00Linux 解壓縮每次都忘...還是來備份一下<br />
<br />
.tar (僅打包,無壓縮)<br />
套件名稱:tar。<br />
打包:<br />
[ max@linux ~ ]<br />
$ tar cvf FileName.tar DirName<br />
解包:<br />
[ max@linux ~ ]<br />
$ tar xvf FileName.tar<br />
<br />
.gz<br />
套件名稱:gzip。<br />
壓縮<br />
[ max@linux ~ ]<br />
$ gzip FileName<br />
解壓縮 1:<br />
[ max@linux ~ ]<br />
$ gunzip FileName.gz<br />
解壓縮 2:<br />
[ max@linux ~ ]<br />
$ gzip -d FileName.gz<br />
<br />
<br />
.tar.gz<br />
套件名稱:gzip。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar zcvf FileName.tar.gz DirName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar zxvf FileName.tar.gz<br />
<br />
<br />
bz<br />
壓縮:unkown。<br />
解壓縮 1:<br />
[ max@linux ~ ]<br />
$ bzip2 -d FileName.bz<br />
解壓縮 2:<br />
[ max@linux ~ ]<br />
$ bunzip2 FileName.bz<br />
<br />
<br />
.tar.bz<br />
壓縮:unkown。<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar jxvf FileName.tar.bz<br />
<br />
<br />
.bz2<br />
套件名稱:bzip2。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ bzip2 -z FileName<br />
解壓縮 1:<br />
[ max@linux ~ ]<br />
$ bzip2 -d FileName.bz2<br />
解壓縮 2:<br />
[ max@linux ~ ]<br />
$ bunzip2 FileName.bz2<br />
<br />
<br />
.tar.bz2<br />
套件名稱:bzip2。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar jcvf FileName.tar.bz2 DirName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar jxvf FileName.tar.bz2<br />
<br />
<br />
.xz<br />
套件名稱:xz-utils。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ xz -z FileName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ xz -d FileName.xz<br />
<br />
<br />
.tar.xz<br />
套件名稱:xz-utils。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar Jcvf FileName.tar.xz DirName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar Jxvf FileName.tar.xz<br />
<br />
<br />
.Z<br />
壓縮:compress FileName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ uncompress FileName.Z<br />
<br />
<br />
.tar.Z<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar Zcvf FileName.tar.Z DirName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar Zxvf FileName.tar.Z<br />
<br />
<br />
.tgz<br />
套件名稱:gzip。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar zcvf FileName.tgz FileName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar zxvf FileName.tgz<br />
<br />
<br />
.tar.tgz<br />
套件名稱:gzip。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ tar zcvf FileName.tar.tgz FileName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ tar zxvf FileName.tar.tgz<br />
<br />
<br />
.7z<br />
套件名稱:p7zip-full。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ 7z a FileName.7z FileName<br />
使用密碼 (PASSWORD) 壓縮:<br />
[ max@linux ~ ]<br />
$ 7z a FileName.7z FileName -pPASSWORD<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ 7z x FileName.7z<br />
<br />
<br />
.zip<br />
套件名稱:zip。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ zip FileName.zip DirName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ unzip FileName.zip<br />
<br />
<br />
.rar<br />
套件名稱:rar, unrar。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ rar a FileName.rar DirName<br />
解壓縮 1:<br />
[ max@linux ~ ]<br />
$ rar e FileName.rar<br />
解壓縮 2:<br />
[ max@linux ~ ]<br />
$ unrar e FileName.rar<br />
解壓縮 3:在指定目錄內解壓縮。<br />
[ max@linux ~ ]<br />
$ rar x FileName.rar DirName<br />
<br />
<br />
.lha<br />
套件名稱:lha。<br />
壓縮:<br />
[ max@linux ~ ]<br />
$ lha -a FileName.lha FileName<br />
解壓縮:<br />
[ max@linux ~ ]<br />
$ lha -e FileName.lha<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-60449729170819860182016-07-01T18:28:00.003+08:002016-07-01T18:28:43.042+08:00Cloud9 sshfs mount script#!/bin/bash<br />
MD="xxxxx"`date +%Y%m%d_%H%M%S`<br />
echo /home/ubuntu/workspace/mount/$MD<br />
mkdir /home/ubuntu/workspace/mount<br />
mkdir /home/ubuntu/workspace/mount/$MD<br />
sshfs account@yourweb.com:/var/www/html /home/ubuntu/workspace/mount/$MD -p 22<br />
ln -sfn /home/ubuntu/workspace/mount/$MD /home/ubuntu/workspace/sshfs_folder<br />
<div>
<br /></div>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-59416956113353195522016-04-23T08:55:00.002+08:002016-04-23T08:55:46.332+08:00[備忘]怎麼會要記那麼多名詞呢?<table class="e-learning-table-2" style="color: #7d7d7d; font-size: 12px; line-height: 18px; margin-left: 33px; margin-top: 14px; width: 702px;"><tbody>
<tr><td class="tb-title-1" style="background-color: #7d7d7d; color: white; height: 21px; text-align: center; width: 106px;">專有名詞</td><td class="tb-title-2" style="background-color: #7d7d7d; color: white; text-align: center; width: 157px;">英文全名</td><td class="tb-title-3" style="background-color: #7d7d7d; color: white; text-align: center; width: 432px;">中文與解釋</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPC</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost Per Click</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每次點擊成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Bid</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">-</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">競價</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPA</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost per Action</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每次完成行動成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPL</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost per Leads</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每筆名單成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPS</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost per Sale</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每筆(次)銷售行為成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPV</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost per View</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每次觀看成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CPI</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Cost per Install</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">每安裝一個軟體的成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CTR</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Click though Rate</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">點擊率 = 廣告點擊次數 / 廣告曝光次數</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CVR</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Conversion Rate</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">廣告轉換率 = 轉換次數 / 廣告點擊次數</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">SEM</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Search Engine Marketing</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">搜尋引擎,通常只關鍵字廣告</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">PPC</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Pay per Click</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">泛指點擊付費的廣告</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">BT</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Behavior Tageting</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">行為定向,根據使用者類別與行為投放廣告</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">DR</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Direct Response</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">直接反映廣告</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">DOOH</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Digital Out Of Home</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">數位家外媒體</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Est.Performance</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Estimate Performance</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">預估成效</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">KPI</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Key Performance Indicator</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">關鍵續效指標</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">PV</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Page View</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">頁面瀏覽數</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">UV</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Unique Visitor</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">不重複訪客</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Visit</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">-</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">造訪次數</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Bounce Rate</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">-</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">跳出率,指只瀏覽一個網頁就離開網站的訪客百分比</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Exit Rate</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">-</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">離開率,訪客在網站上所有的瀏覽過程中,在某一頁結束瀏覽、離開網站的比例</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">LPO</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Landing Page Optimization</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">到達網頁的內容和設計,能讓網站內容更吸引目標客群,找到瀏覽的最適化頁面</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">UEO</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">User Experience Optimization</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">使用者經驗優化,指提升使用者瀏覽網站的良好經驗與感受</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">ROI</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Return on Investment</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">廣告投資報酬率,ROI=(廣告帶入毛利額-廣告成本) / 廣告成本</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">ROAS</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Return on Ad Spending</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">轉換率品質指標,用來衡量廣告活動對轉換率的影響</td></tr>
<tr><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">CQI</td><td class="tb-content" style="background-color: #e5e5e5; height: 21px; text-align: center;">Conversion Quality Index</td><td class="tb-content-left" style="background-color: #e5e5e5; padding-left: 5px;">CQI針對流量來源) = 對流量來源 X 所帶來之轉換率 / 對流量來源 X 所帶來造訪占全部造訪次數之百分比</td></tr>
</tbody></table>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-83491669193389015742014-12-07T15:41:00.001+08:002014-12-07T15:41:18.585+08:00[備忘]ASUS筆電,光碟開機<span style="color: #6a6a6a;">為了WIN8降WIN7</span><br />
<span style="color: #6a6a6a;">光碟開機就搞了一陣子..........ORZ</span><br />
<span style="color: #6a6a6a;"> </span><br />
<span style="color: #6a6a6a;">請先進入到BIOS。</span><br />
<span style="color: #6a6a6a;">切換到 "Boot"
選單內將 "Lunch CSM" 設定為 Enabled</span><br />
<span style="color: #6a6a6a;">切換到 "Security" 選單將 "Secure Boot Control"
設定為Disabled</span><br />
<span style="color: #6a6a6a;">最後按F10儲存設定並重新開機</span><br />
<span style="color: #6a6a6a;">開機時長按ESC鍵呼叫開機選單即可。 </span><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-71419326971599900832014-03-23T08:19:00.002+08:002014-03-23T08:19:58.728+08:00假設服貿沒有黑箱作業<span class="userContent" data-ft="{"tn":"K"}">身為工程師,直覺覺得這件事有BUG<br /> 但這個BUG怎麼可以那麼好用<br /> 於是大概找了些文章看看<br /> <br /> 臺灣地區與大陸地區人民關係條例<br /> <a href="http://goo.gl/zBvMl" rel="nofollow nofollow" target="_blank">http://goo.gl/zBvMl</a><br /> <br /> 行政命令應有法律明確具體的授權 <br /> <a href="http://goo.gl/RlV0zf" rel="nofollow nofollow" target="_blank">http://goo.gl/RlV0zf</a><br /> <span class="text_exposed_show"><br /> 兩岸服務貿易協議> 文本及附件<br /> <a href="http://goo.gl/lAuWnr" rel="nofollow nofollow" target="_blank">http://goo.gl/lAuWnr</a><br /> <br /> 從法律面觀點論服貿協議審查<br /> <a href="http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2F0zRQQl&h=5AQEsgCFN&enc=AZP_FLJkChYty8dxEZ6hwSwGNBqEPQXJXTWp9VS3poDPOEMKiiEQddlYWMWv8OHz7lL0wHQJ5mMhPXmkcpC5TTdxfS9Zjyl5UdpNA04i_Z7uZMe2F_rlE2bCho40gBXEtMomzuaHg0-Yvn08wCggDeO9&s=1" rel="nofollow nofollow" target="_blank">http://goo.gl/0zRQQl</a><br /> <br /> 服貿倒底有沒有黑箱作業?<br /> <a href="http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2F2A3TCJ&h=iAQGguvX5&enc=AZMISjS43sFrVgk1IaMLZks7GGOv8PzKPKrOcWqaPiqKhpuuyG6Xx6ssCNh-1f7wuYisa9F782Kb4mCzXUGBw4RL_gFqgug97ADnPHV8vnodOvcpjWx4C2tV6DEboMVF7zd9LaTLNiNepVNwxF9ORcoJ&s=1" rel="nofollow nofollow" target="_blank">http://goo.gl/2A3TCJ</a><br /> <br /> GOOGLE 服貿協議+兩岸關係條例+行政命令<br /> <a href="http://www.facebook.com/l.php?u=http%3A%2F%2Fgoo.gl%2FhRGB15&h=mAQHfyzvR&enc=AZPqELyHZAel-HMSntkLbopPmre7O4bEQgQq4mdphG80OHEzTbugSvNY_RI6kgFkt0nILLIyL6N5xGJx9n_dWbL6odsZB-igsnZinm-szuepFKjjiSHxpUZ-BW8SO4-FnTHSwuYuZgk9Rme8DQOZdQ6w&s=1" rel="nofollow nofollow" target="_blank">http://goo.gl/hRGB15</a><br /> <br /> 使用BUG的心得<br /> 先假設,服貿沒有黑箱作業<br /> 行政院可以用 行政命令+兩岸關係法簽服貿協議<br /> 只需要在立法院備查<br /> 那麼,兩岸所有的事務,都依此辦理就好了<br /> 立法院,"民選"的立委根本無法插手<br /> 超級好用的一套BUG.....能不用嗎?<br /> <br /> 嘖嘖嘖..已經不知道有多少條款用這BUG通過了??</span></span><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-63911569184494653312014-03-20T09:12:00.003+08:002014-03-20T09:52:42.949+08:00反黑箱服貿協議行前準備<span class="userContent">看到很多人都要去立院支持<br /> 也在問支持去立院要準備什麼<br /> 至少也準備個腦子</span><br />
<span class="userContent">別被問到了,什麼都不知道!!<br /> </span><br />
<span class="userContent"></span><br />
<span class="userContent"></span><br />
<span class="userContent"><br /> 1.為什麼立法院會黑箱作業執行?<br /> 近年來,政治手法愈來愈不顧</span><span class="userContent"><span class="userContent"><span class="text_exposed_show">人民</span></span>觀感,一切都是天賜良機<span class="text_exposed_show"></span></span><br />
<span class="userContent"><span class="text_exposed_show"> 所以黑箱已成了政治的常態,而人民只是選舉才存在的棋子<br /> <br /> 2.為什麼學運會產生?<br /> 比起民運,學運的能量更可怕</span></span><br />
<span class="userContent"><span class="text_exposed_show"> 接連的街頭活動,壓力的累積<br /> 正常能量釋放,過多的釋放則是國家的警訊<br /> <br /> 3.什麼是服貿協議?<br /> 逐條看完條文,請好好的思考<br /> 除了大家擔心的產業衝擊,也會帶來好處<br /> 3.1 如何準備面對服貿協議帶來的好處?<br /> 3.2 誰能準備好服筫協議帶來的好處?<br /> <br /> 別再看有預設立場的懶人包<br /> 三個中文PDF檔,動動自己的腦思考吧<br /> <a href="http://www.ecfa.org.tw/SerciveTradeAgreement1.aspx?pid=7&cid=26" rel="nofollow nofollow" target="_blank">http://www.ecfa.org.tw/SerciveTradeAgreement1.aspx?pid=7&cid=26</a></span></span><br />
<br />
<br />
<span class="userContent"><span class="text_exposed_show">PS. </span></span><br />
<span class="userContent"><span class="text_exposed_show">對了,剛好在附件一的第一個就是我的產業<br />至少也注意一下,以後自己在什麼位置<br />判斷一下跟自己目前產業的相關性 </span></span><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-45578093598398537182013-12-17T11:39:00.002+08:002013-12-17T11:39:17.092+08:00[筆記]Google Analytics TAG分析<pre id="line1"><span>
</span></pre>
<pre id="line1"><span> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
<span id="line171"></span> (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
<span id="line172"></span> m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
<span id="line173"></span> })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
<span id="line174"></span>
<span id="line175"></span> ga('create', 'XX-0000000-1', 'xxxx.com');
<span id="line176"></span> ga('send', 'pageview');</span></pre>
<pre id="line1"><span> </span></pre>
<pre id="line1"><span>//加這些 </span></pre>
<pre id="line1"><span><span id="line177"></span> ga('send', 'event', 'Tag', 'Php');
<span id="line178"></span> ga('send', 'event', 'Tag', 'Javascript');
<span id="line179"></span> ga('send', 'event', 'Author', 'Max');</span></pre>
<pre id="line1"><span> </span></pre>
<pre id="line1"><span>在報表面的行為>事件>熱門事件裡就可以看到Tag及Author的相關數字 </span></pre>
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-74644060593581443232013-08-12T01:45:00.000+08:002013-08-12T02:04:17.500+08:00你的競爭對手是誰?這句話被問了很多次<br />你開發出來的產品,競爭對手是誰?<br />如果是Yahoo、Google、Amazon...之類的大公司,你怎麼辦?<br />老實說如果把這件事當問題<br />實在是不能怎麼辦<br />只要是世界上存在的技術或門檻<br />都不算是真的能擋住任何有心的人<br />鋼鐵人第一集史塔克說五年內沒人能複製出來這技術<br />鋼鐵人第二集馬上被打腫臉了<br /><br />一直以來我沒有想過競爭對手這件事<br />因為我只想一直開發出好用的產品<br />而這產品卻一直沒能在市場上看到<br />如果其它公司能做的更好,那是很樂見的<br />至少我可以單純的當個END USER,不用自己開發XD<br /><br />如果是金主看了這段,應該是會很擔心吧!<br /><br />好吧!面對實在的問題『如果公司是競爭對手』<br />這些公司,有的是資源,但缺的是熱誠<br />缺熱誠?制度會殺了員工的熱誠,這就不多解釋<br />在大公司裡,通常一份好的產品<br />為了達到『專注完美近乎刻求』<br />從構思規劃到產品製作完成<br />通常都非常的曠日費時<br />所以當產品上市時<br />不是氣勢磅薄,就是過時無趣<br /><br />我的競爭對手給了我很多時間<br />花時間這事在大公司是一種極高的成本<br />偏偏大公司做產品又很花時間<br />對於個人而言剛剛好相反<br />我可以快速的開發,不斷測試產品<br />因為快速,可以不斷的轉換產品線<br />對不同產品修正,測試,上線反覆的做<br />開發的成本也低很多<br />這是大公司無法達到的成本計劃<br /><br />而大公司在你的產品發光發熱之前<br />通常不會去注意到你所開發的產品<br />當他注意到你產品時<br />那只剩一個問題需要擔心 --- 被收購<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-39422664900601647372013-07-25T02:53:00.000+08:002013-07-25T02:53:17.192+08:00水煮青蛙,呱呱呱這陣子很悶,新聞發生的一切都是『早聽聞或早知道】的事情<br>
早知道政治很黑、當兵的一切是作假<br>
這些事件不斷的重覆上演然後遺忘<br>
幾十年下來從憤怒到無力,這是一種水煮青蛙的無感<br>
竟然也習慣了這生活,甚至有些想法會覺得這很正常<br>
會寫這篇是給社會參與度很高、願意一直發聲的人士<br>
聲音是會傳到像我這類青蛙的耳裡,漸漸會有感覺的<br>
坦白說有感覺這件事對青蛙們未必是好的感覺<br>
因為從小就在鍋裡,不知道什麼叫做好<br>
也不知道怎麼脫困,我想就是悶在這裡吧!<br><br>
藉著寫網誌來深入思考一下<br>
如同扣頂常說的話一樣<br>
程式不會有錯,錯的都是人<br>
然而制度不會有錯,錯的都是人<br><br>
假設制度如果是即得利益者訂下的<br>
即得利益者都覺得這制度沒問題<br>
會覺得制度有問題,只因為你不是即得利益者<br>
而不是即得利益者的情況下,你就無法左右制度<br>
就算大家知道制度問題是出在即得利益者身上又如何?<br>
聽說選票能解決問題!?<br>
話說選舉制度也是即得利益者訂下的<br>
這又陷入了鬼打牆的循環<br><br>
公平正義是個理念,但離實現還有段距離<br>
如何將公平正義變成一個制度?<br>
是理想、夢想還是妄想?
<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-37359379514689092272013-05-07T11:40:00.002+08:002013-05-07T11:41:23.526+08:00[筆記] Windows SSH 掛載 LINUX可到http://dokan-dev.net/en/download<br>
1.安裝函示庫<br>
http://dokan-dev.net/wp-content/uploads/DokanInstall_0.6.0.exe<br>
2.執行 DokanSSHFS<br>
http://dokan-dev.net/wp-content/uploads/dokan-sshfs-0.6.0.zip<br><div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-31729700438113311502012-12-14T04:12:00.003+08:002012-12-20T20:42:56.481+08:00[筆記]Buffalo WZR-HP-G300NH2路由器型號 WZR-HP-G300NH2<br />韌體版本 DD-WRT v24SP2-MULTI (06/03/12) std - build 19154 <br /><br />原主機設在192.168.0.10<br />SSHD PORT有改192.168.0.10:6000<br />結果怎麼設定都沒辦法將SSH 6000 Forward到192.168.0.10<br />後來將6000改為SSH預設的22就一切正常了Ora<br />防火牆指令加<br />iptables -t nat -I PREROUTING -p tcp --dport 22 -j DNAT --to 192.168.0.10:22<br />iptables -I FORWARD -p tcp -d 192.168.0.10 --dport 22 -j ACCEPT<br /><br /><br />當設定好,又遇到另一個問題<br />這台機器竟不支援nat loopback<br />也就是我在內網,無法用網址查看192.168.0.10的頁面<br />也是防火牆指令<br />insmod ipt_mark<br />insmod xt_mark<br />iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001<br />iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE<br /><br />很囧......<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-4155373755661038229.post-59038251419984813752012-10-25T21:46:00.002+08:002014-06-29T18:05:17.725+08:00[Greasemonkey] Facebook emoticons ,Auto Pokes 表情符號,自動回戳戳樂Facebook除了聊天外,在回文也有表情符號可以用<br />
不過回文並沒有像聊天時那麼好的介面可以點圖出來<br />
所以...............懶人又來了<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_rfsMcJPhSZz_-pYsIi0opmdydWopV51XAU2fLVqVdRRsCkl5hCbRhkEE5wktc3PfPsX9whZur6qJqOV8yLQAVqoD_qLpv64ygUPsLhkhu0LejJJpbPRWqJ76H_4paORc3bvsDGFpnX43/s1600/facebookSmileys.jpg" imageanchor="1" target="_blank"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_rfsMcJPhSZz_-pYsIi0opmdydWopV51XAU2fLVqVdRRsCkl5hCbRhkEE5wktc3PfPsX9whZur6qJqOV8yLQAVqoD_qLpv64ygUPsLhkhu0LejJJpbPRWqJ76H_4paORc3bvsDGFpnX43/s320/facebookSmileys.jpg" height="142" width="320" /></a>
<br />
<br />
功能介紹<br />
<br />
1.回文時會出現表情符號快速點選<br />
2.如果你在戳戳樂的頁面一直掛著,就會自動回戳<br />
<br />
<br />
版本<br />
2014-06-29 V1.3 修正JQUERY套件改版問題 <br />
2013-01-02 V1.2 多了一個poop的圖示可用<img src="http://9sweb.com/greasemonkey/FacebookSmileys/poop.png" /><br />
2012-10-31 V1.1 被戳戳樂戳到很煩了嗎?5秒自動回戳<br />
2012-10-25 V1.0 回文表情符號<br />
<br />
安裝方法:<br />
這是一個在Firefox的套件<br />
目前只能在Firefox上用<br />
<br />
1.安裝<a href="http://moztw.org/" target="_blank">Firefox</a>(如果你已經有Firefox可以省略)<br />
<br />
2.在Firefox上安裝<a href="https://addons.mozilla.org/zh-tw/firefox/addon/greasemonkey/" target="_blank">Greasemonkey</a>套件(如果你已經有Greasemonkey可以省略)<br />
<br />
3.點 <a href="http://9sweb.com/greasemonkey/FacebookSmileys.user.js">這裡安裝腳本</a><br />
<br />
PS.<br />
只能在回文使用,在回文時,要先按空白或其它鍵,才會自動跳出來符號視窗哦。<br />
本程式有部份廣告插件,不影響正常使用,若不喜,請勿安裝。<br />
轉載不用告知,請附上原文網址即可<div class="blogger-post-footer">http://bg.9sweb.com by egg</div>Unknownnoreply@blogger.com7