你要知道一個 SAS 12Gbps 可以拆開給六個SATA硬碟用
@chris1004tw 剛剛 NAS 下載測到 37M/s.....
小弟家是三樓透天厝,最近因為一些原因,希望幫家中裝些監視器,總共要大約12~16台監視器(散布三層樓各個地方鬼),因為家中需要網路(有線加無線)的裝置非常多大約有30多個裝置(也就是要30個連接埠),希望家中每個地方都要有無線網路的訊號,所以目前的考量是這樣的,買一台無線router,四個孔,其中有一條直接接電腦,另外三條各接到1,2,3樓交換器,每個交換器上會接一些裝置加上一到兩個access point。
請問用這樣的方式是不是每個裝置都可以在同個網域的情況下運作,有點像192.168.0.*之類的,而且只要AP有訊號的點,例如從三樓走到一樓,AP從三樓變成一樓的AP都不會斷網(假設兩者訊號範圍都有涵蓋),就好像在同個基地台底下運作一樣。
其中比較特別的是我有台NAS(thecus n5550),可以接2個RJ-45 1G的接口,因為一些原因,希望NAS所跑的速度必須要大於1Gbps,所以是不是要用link aggregation?這樣假如有兩台1Gbps的傳輸不會只有1Gbps能傳了,對不對?但是除了現router本身是不是也必須支援到1Gbps以上,可是在上去就是10Gbps了,所以我要買10Gbps的router配上cat.7的線?
另外一個是macbook,可以接802.11ac,希望能用超過500M的速度在區網跑,所以必須用5GHz加上802.11ac才可以,對不對?
如果你要用Link Aggregation 的話 Switch本身也得支援 所以你得買有管理的Switch
macOS Sierra 支援內建 Command + drag 來排序 status bar icon
MacBook我記得有 802.11ac 2x2 MIMO 所以AP打的出來都可以
@TaiwanNathan 我回答完了 有遺漏的嗎
我剛剛問了一夏我們家每層樓大約100坪以上,總共三層樓
喔....可是他們分散各個地方,我可以買多個6恐之類的這樣嗎?
AP的散步點更廣阿.....可能不能拉到弱電箱,而且每層樓都一個若電箱QAQ
@cras4202tw 小心E3會不夠PCIe Lanes
我不能接一個AP然後四個個連到每層樓的switch然後在每層樓分開嗎?
這樣也可以 但每層樓的Switch建議直接到你的總Switch
那我應該是數據機各階到1F2F3F的switch嗎?
我是想說要連外才經過數據機,不然感覺這樣傳資料會死掉
@chris1004tw 我發現我有點不太了解.....自幹事大概長怎樣,跟一般Router插在哪?
了解.....所以....為什麼她只接你的AP呢?
喔.....它是接WAN....所以你的RouterOS是只有聯網外時才會連到囉?
了解....那為什麼你兩個AP一個接RouterOS一個接Switch?
ASUS 華碩 DRW-24D5MT SATA 24X DVD燒錄機《黑》 這能吃嗎 還有電腦會裝喔-.-
2F的AP 流量沒那麼多 而且RouterOS上面的LAN都是Bridge
一點都不server
Micron 美光 Ballistix Tactical 戰鬥版 DDR4 2666 8G*4 桌上型記憶體
阿ecc ram哩
呃 這你不用管 你只要知道我們家從RouterOS後面 全部網段都是同樣的就好
喔...了解,所以這樣只要AP密碼SSID設定都一樣就可以隨意漫遊囉?
如果你是買ASUS的話 Roaming Assistant 記得要開
我家網絡真是太狂啦!!
64 bytes from 8.8.8.8: icmp_seq=12 ttl=46 time=13772.120 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=46 time=12956.212 ms
64 bytes from 8.8.8.8: icmp_seq=14 ttl=46 time=12255.625 ms
恩...那這樣手機不會出現囉?只會出現一個,不然我怕家人會疑惑
反正我CPU都淘寶貨應該HK$3000內可以有板子和CPU
而且每層樓一律都是拉到2F的Core Switch
4F->2F
3F->2F
1F->2F
B1->2F
你要不要去買ThunderBolt to RJ45(?
@licson 我看到有人買RAID卡結果他說
有個小問題就是默認的固件不支持非DELL認證硬盤
AC68U $5990
AC87 $3390...
了解....我需要能支援2.4G 跟5G訊號的....應該買哪個AP呢?
你 Srv 上的可以全刪
你要是動我 NAS 就不一樣了(?
我終於動為什麼 @chris1004tw 說問你我也是醉了XD
對了,你剛剛說什麼地方要用到比較好的switch?
如果你要做 Link Aggregation 的話
@chris1004tw GS308 108t8 y94s8 ?
@chris1004tw 那如果沒有要做Link aggr.的話呢?
@chris1004tw 你先睡吧,不好意思打擾了
NginX + php7 fpm 搞不定怎麼辦 QQ
純文字檔都有回應,但 php 檔 200 OK 卻完全空白 (
好,nginx的error log和php fmp的log
那圖片大概也不是他弄的,所以應該也不可能說明出什麼鬼
sh 的 echo 跟 bash 的不一樣嗎QQQQ
我在 docker exec -it owncloud bash 下跑 echo -e "\n<Directory \"/var/www\">\nAllowOverride All\n</Directory>" >> /etc/apache2/conf-available/docker-php.conf;
內容會多出 \n<Directory \"/var/www\">\nAllowOverride All\n</Directory>
我直接跑 docker exec -it owncloud /bin/sh -c 'echo -e "\n<Directory \"/var/www\">\nAllowOverride All\n</Directory>" >> /etc/apache2/conf-available/docker-php.conf'
內容會多出 -e \n<Directory \"/var/www\">\nAllowOverride All\n</Directory>
james58899@DESKTOP-BAS4ASC:~$ sh -c '/bin/echo -e "\n<Directory \"/var/www\">\nAllowOverride All\n</Directory>" >> test2'
james58899@DESKTOP-BAS4ASC:~$ cat test2
<Directory "/var/www">
AllowOverride All
</Directory>
james58899@DESKTOP-BAS4ASC:~$ sh -c 'echo -e "\n<Directory \"/var/www\">\nAllowOverride All\n</Directory>" >> test2'
james58899@DESKTOP-BAS4ASC:~$ cat test2
-e
<Directory "/var/www">
AllowOverride All
</Directory>
也就是說dash為了POSIX-compliant,所以幹掉了-e
@chris1004tw
昨天問的相機?
如果小爆可以再買更好嗎?
還要我在Windows那邊複製輸入法定義才有我要用的輸入法
我查完,看起來好像760D看起來比D7100好一點
話說 CSGO 到底什麼時候要 implement Source 2 啊...
@koru1130 CHIP 有 G Sensor 跟陀螺儀模組嗎
好吧,這裡有誰願意幫 @wartw 生一張封面圖?
最好能再生一張logo
今天晚上,妳在少林寺參加法會、打坐很快樂,回向給妳老公事業發達,結果妳突然早一點回家,門一打開,妳老公跟別的女人在睡覺!妳要馬上關起來,「假的!」
「哎呀!我眼睛業障重啊!」假的。在外面繼續打坐「阿彌陀佛…」
但是,如果妳當真的,妳會很生氣。
請問那個是真的還假的?暫時的,那個女人是他前世的太太,妳還是侵佔人家的咧。
請問妳現在手上那一張鈔票,別人有沒有用過?用過。所以,還是可以用就好啦!
@chris1004tw 如果要接到室外用哪種無線AP比較好呢?
另外可以把1F2F3F的switch都互接然後這三臺switch也都接到總router嗎?這樣有要跳線或什麼嗎?
我可以把YSITD Cloud理解成有API管理的伺服器,然後可以在上面做一堆事?
欸對了 @licson 那Facebook tpe的IPv6是
2a03:2880:f017:4:face:b00c:0:1
其實我不太懂OpenSwift到底是給你一台VPS還是怎樣?
@S_ean 認為 @chris1004tw 的意思是: 其實我不太懂OpenShift到底是給你一台VPS還是怎樣?
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)?$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
文字部分只要能控制在35字以內(包含35個字),都可以成功的在Facebook App上看到放大後的文字。
少一行
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
這個?
[notice] 28220#28220: signal process started
看不懂 (
[error] 2468#2468: *103035 connect() to unix:/var/run/php/php7.0-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 183.129.160.229, server: DOMAIN, request: "GET / HTTP/1.1", upstrea m: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "IP"
有沒有網路圖之類的?
昨天好像有看到,但是我那時間在看影片沒注意TG
他是在 nginx.conf include sites-available, code.d 欸..
喔好吧,那nginx.conf那層目錄下有哪寫東西?
最簡單就直接丟nginx.conf同一層目錄就好啦
所以我說 @TaiwanNathan 你要戶外AP幹嗎?
@TaiwanNathan 你就router後面接AP,然後裝置都接AP上這樣
呃…應該這樣說,我放router的地方沒辦法拉這麼多線,假如我全部都遷到router會很浪費線
@TaiwanNathan 你要不要一次解決一樣 這樣好煩
@TaiwanNathan 我記得沒錯的話 你說牆壁上的網路孔都已經拉到弱電箱沒錯嘛?
然後每個孔的線你是都拉到同一個點 還是每層樓的弱電箱
@TaiwanNathan 問一下,你NAS是有兩個網路孔?
@TaiwanNathan 你就直接修改這個文件就好
我問你齁 100坪光是沒遮擋 從最裡面打到最外面 是能打多遠
那你家有 802.11ac 3x3 MIMO的裝置嗎
考驗都沒通過了 你真的不考慮一下 @koru1130 嗎
@koru1130 認為 @choukai 的意思是: 你鴿
「哎呀!我眼睛業障重啊!」假的。在外面繼續打坐「阿彌陀佛…」
見人說人話,見鬼說鬼話之
把地區調成中國後國旗會消失
long polling比較好還是polling?
你認為long polling和polling差別在哪
長時間輪詢(long-polling)則是讓伺服器在接收到瀏覽器所送出 HTTP 請求後,伺服器會等待一段時間,若在這段時間裡面伺服器有新的資料,它就會把最新的資料傳回給瀏覽器,如果等待的時間到了之後也沒有新資料的話,就會送一個回應給瀏覽器,告知瀏覽器資料沒有更新。
@koru1130
polling 好像 不停按F5去看有沒有更新
long polling 是 伺服器透過保持連線告訴你有沒有更新
就一段時間沒資料就給你timeout回應要你重新連接阿
哪個87填的 自首無罪 (O
2016/7/9 下午 3:04:36 申請一張 sha2RSA 8192 Bits Chris.taipEi OUO admin@domain.com
CSR 出去以後 使用者驗證完會寄到我信箱 然後還要轉寄到原本的人身上 要再包Comodo Intermediate Certificate
而且不能用Base64到別人手上 要用CRT給別人
話說Array.map和Array.forEach有什麼差別
而且看到別人網站不是用Let's Encrypt 我更爽 w
map 不會更改原本的Array 而是噴一個新的給你(?
「以前我們也這麼早起,現在的孩子憑什麼不能那麼早起?」
「反對延後上學的人,請賣掉你的車、賣掉你的冰箱、賣掉你的電腦,你的祖先沒有這些東西也活得很好,你也應該可以!」
所以 @choukai 自己記得蛤 不然我想要加利息耶 www
然後Screenshot記得刪 不然持早我的備份1TB會消耗完 .-.
...............................................你有認識的好好
@mmis1000 if (!multiPart || !params)
這段是幹嘛的阿@@?
@mmis1000 對惹 為什麼你getUpadates用get 其他用post
All methods in the Bot API are case-insensitive. We support GET and POST HTTP methods. Use either URL query string or application/json or application/x-www-form-urlencoded or multipart/form-data for passing parameters in Bot API requests.
On successful call, a JSON-object containing the result will be returned.
噢 好吧 我錯了
@koru1130 夯 好多人愛 好多人照顧打理好(O
.........................
@DennyHuang 話說你現在在幹嘛 感覺超閒
@james58899 話說你拿來處理tg的js是哪套
正在改殘風的code 發現他有一部分code好像重複了(?
問:要怎麽把不是開機的 HDD 的 EFI Partition 刪除?
現在規劃是把 OS X 送進 SSD
Windows 丟去 HDD
然後 Ubuntu 掰掰
不知道會不會成功就是了,聽說 7040 不能完美跑 OS X
一臉你只是幫他跑 let's encrypt XDD
為什麼 SSL 憑證只提供 90 天...自簽都比這個久
Comodo Free Trial 只能簽90 Days
是我太 Lag 還是 Adele 真的默默把 25 上架 Spotify ...
為什麼 Let's Encrypt 不先註冊走就好了...
Comodo 這樣做只能說他爛啊,可是他又沒違規
no one give KKBOX a shit(O
這種大公司不可能沒人知道 let's encrypt
你知道如果一家免費放送SSL的廠商出以後 對這些CA多有壓力嗎
不然為甚麼他只找了IdenTrust Cross-Sign
Let's Encrypt 沒先收好自己的名字,被攻擊的時候除了說對手爛還能說什麼
Comodo 這招爛啊,可是也是高招啊,不然為什麼不是 GoDaddy 去註冊這個名字
Let's Encrypt 也真的有點白目.....
制定時就沒有特別說清楚信譽可不可以買賣,所以雙方觀念衝突吧
印象中 iPad 2 的 Speaker 沒這麼弱啊...
感覺 Air 變小聲
對 iPad 2 的我覺得可以跟Air 2的比 但是Air真的小聲很多
而且說真的 我喜歡Air 2 在播音樂會震動 www
反正這顆Beolit 15 平常也沒在用 乾脆當我的後喇叭 w
@seadog007 對了 你之前說劇情很莫名的是哪部
出去玩了5天回來,電腦居然沒被windows更新強制重啟🌚
我很肯定我的黑蘋果在跟我鬧彆扭…怎麼讀取都不會開機
Last login: Sat Jul 2 23:00:27 2016 from 61.227.98.83
curlmmis1000@mmis1000-G1-7528:~$ curl test.aaplimg.com/500m > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 500M 100 500M 0 0 5033k 0 0:01:41 0:01:41 --:--:-- 5615k
mmis1000@mmis1000-G1-7528:~$ ^C
++
嗯…應該要吧…不過好奇會不會有訊號能傳到手機沒辦法回傳的問題啊?
試問
架一台NAS最好的方式?
需求:
只在內網跑,不想繼續在PC上裝硬碟而已
Minimum Hardware Requirements:
These specifications will suffice to get a small FreeNAS install running reliably with moderate performance for a few users.
Multicore 64-bit* processor (Intel strongly recommended)
8GB* Boot Drive (USB Flash Drive suffices)
8GB* RAM
At least 1 direct attached disk (Hardware RAID strongly discouraged)
One physical network port
Recommended Minimum Hardware:
These are the specifications for a hardy home media server or small office file share. At this point, your FreeNAS device will have the resources to run third party services and provide respectable performance.
The iXsystems FreeNAS Mini Storage Device fulfills these specifications.
Multicore 64-bit processor
16GB Boot Drive (USB Flash Drive suffices)
16GB (ECC Recommended)
At least 2 direct attached disks (Hardware RAID strongly discouraged)
For best results, see FreeBSD Hardware Compatibility List for Supported Disk Controllers
Hardware RAID Strongly Discouraged 。——。
不然其實你可以買一臺Netgear ProSafe WNDAP350然後接巨型天線啊
Typical Requirements for Small and Medium Business:
Software Support from iXsystems can only be obtained by using TrueNAS
One to four Enterprise-class 64-bit multicore processors.
Two mirrored 16 GB Boot Drives (USB or SATA DOM recommended)
32GB ECC RAM Minimum (1GB per TB of storage is a good rule of thumb but might need to be adjusted depending on workload/application)
At least 4 direct attached disks (Hardware RAID strongly discouraged. It reduces the data protection and recovery features of FreeNAS considerably.)
If necessary to add disks above what the motherboard supports, do not use RAID cards. Host Bus Adapters (HBAs) are recommended instead to give FreeNAS/ZFS direct access to the individual drives. LSI HBAs are the best choice with FreeNAS.
For best results, see FreeBSD Hardware Compatibility List for Supported Disk Controllers
Enterprise quality SATA/SAS hard drives are recommended.
High-endurance Flash/SSD-based write log device (ZIL) for synchronous writes only (Flash/SSDs with “Power Loss Protection” recommended). Two devices mirrored if uninterrupted performance is critical.
High-performance SSDs for read acceleration if the most-requested data doesn’t fit in RAM and the random read load is high.
At least two physical network ports. Intel recommended for 1GbE. Chelsio recommended for 10GbE.
For best results, see FreeBSD Hardware Compatibility List for Supported Ethernet Chipsets
@chris1004tw 對喔 我的 licson.net 是不是也快過期了
YSITD所有成員皆可以領取Comodo Positive SSL 領到撐(O
幹 會有 Maximum call stack size exceeded
雖然換 R7000 好了很多,但是這個 ping 我還是不滿意
應該是中華的問題 QQ
Birkhoff-MBPR:~ birkhoff$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=47 time=37.359 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=47 time=16.222 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=47 time=16.528 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=47 time=19.504 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=47 time=19.578 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=47 time=127.043 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=47 time=118.979 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=47 time=90.566 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=47 time=58.158 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=47 time=19.397 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=47 time=21.256 ms
^C
--- 8.8.8.8 ping statistics ---
11 packets transmitted, 11 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 16.222/49.508/127.043/40.946 ms
PING router.chris.taipei (1.168.41.40): 56 data bytes
64 bytes from 1.168.41.40: icmp_seq=0 ttl=56 time=7.092 ms
64 bytes from 1.168.41.40: icmp_seq=0 ttl=120 time=8.060 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=1 ttl=56 time=34.642 ms
64 bytes from 1.168.41.40: icmp_seq=1 ttl=120 time=34.713 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=2 ttl=56 time=9.533 ms
64 bytes from 1.168.41.40: icmp_seq=2 ttl=120 time=9.544 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=3 ttl=56 time=8.246 ms
64 bytes from 1.168.41.40: icmp_seq=3 ttl=120 time=8.257 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=4 ttl=56 time=12.509 ms
64 bytes from 1.168.41.40: icmp_seq=4 ttl=120 time=12.546 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=5 ttl=56 time=10.285 ms
64 bytes from 1.168.41.40: icmp_seq=5 ttl=120 time=10.300 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=6 ttl=56 time=10.404 ms
64 bytes from 1.168.41.40: icmp_seq=6 ttl=120 time=10.440 ms (DUP!)
64 bytes from 1.168.41.40: icmp_seq=7 ttl=56 time=63.311 ms
64 bytes from 1.168.41.40: icmp_seq=7 ttl=120 time=63.327 ms (DUP!)
^C
--- router.chris.taipei ping statistics ---
8 packets transmitted, 8 packets received, +8 duplicates, 0.0% packet loss
round-trip min/avg/max/stddev = 7.092/19.576/63.327/18.488 ms
@chris1004tw 你覺得我要自幹RouteOS嗎?還是買現成的?
Netgear GS116背板2000Mbps是什麼意思?
意思是那台Switch最大可以同時交換2Gb/s的頻寬
他要指的應該是這個才對
Each port delivers up to 2000 Mbps of
network speed (full duplex)
Backbone bandwidth是這個才對
Bandwidth: 32 Gbps (non-blocking)
Bandwidth: 32 Gbps (non-blocking)
= = = = = = = =
= = = = = = = =
To redeem this promotion, you must have a valid credit card on file. Please add a credit card to your Amazon account and try again.
@chris1004tw 升級了10.11以後UI順了很多喔
@mmis1000 的是把callback丟給request,request本身就有處理過不會callback到噴掉
100 塊要花掉 要買個 500 以上
所以不知道要買啥啦~
打開src,這一臉是clone @mmis1000 的repo嘛
ide.c9.io/koru1130/koru_dict_bot/
uber code 不是跟 username 有關嗎?
果然最近幾次windows update有雷不是只有我採到
更不用說是不能傳buffer跟stream當圖片的問題
對於一個收文字訊息,然後回傳文字訓信息的bot來說夠用惹
而且 @koru1130 應該根本不理解buffer和stream
我一般來說都是看別人code運作的方式/原理,然後用自己的風格寫出來
在這裡學程式真友善(望
以前指導我的人口氣都沒這麼好(遠望
這故事告訴我們 你們對 @koru1130 太好了
Master Card 的卡號本來就這麼像假的嗎(?
var params = { | this.pollingTimeout = timeout * 1000 + 20000;
>
> var self = this;
>
> if (this.pollingEnabled) return false;
> this.pollingEnabled = true;
>
> function checkTimeout () {
> if (self.pollingEnabled) {
> console.error('request failed to response, restar
> try {
> self.currentPollRequest.removeAllListeners();
> self.currentPollRequest.on('error', function
> self.currentPollRequest.abort();
> // restart polling...
> } catch (err) {
> console.error(err)
> }
> self.lastOffset = null;
> self.pollingEnabled = false;
> self.startPolling(timeout)
> }
> }
>
> clearTimeout(this.pollingTimeoutId);
> this.pollingTimeoutId = setTimeout(checkTimeout, this.pol
> this.currentPollRequest = this._poll(timeout, null, funct
> self.pollCount++;
> // console.log(err, response ? response.statusCode :
> var i;
> if (err || response.statusCode !== 200) {
> self.lastOffset = null;
> self.emit('error', err || new Error('unexpect res
> } else {
> try {
> body = JSON.parse(body)
> } catch (err) {
> self.lastOffset = null;
> self.emit('error', err);
> }
> if (body.ok !== true || !Array.isArray(body.resul
var request = require('request'); var request = require('request');
var EventEmitter = require("events").EventEmitter; | var EventEmitter = require('events').EventEmitter;
var util = require("util"); | var util = require('util')
function TGBOT (options) { | function TelegramAPI (token) {
EventEmitter.call(this); EventEmitter.call(this);
> this.pollingEnabled = false;
this.token = options.token; | this.token = token;
this.timeout = options.timeout || 40; <
<
this.lastOffset = null; this.lastOffset = null;
> this.pollCount = 0;
>
> this.pollingTimeout = null;
> this.pollingTimeoutId = null;
>
> this.currentPollRequest = null;
> // this.debug();
} }
util.inherits(TGBOT, EventEmitter); | util.inherits(TelegramAPI, EventEmitter);
TGBOT.prototype.start = function(){ | TelegramAPI.prototype.debug = function () {
this.getUpdates(40,null); | function log() {
}; | console.log('polling at: ' + self.lastOffset + ', cou
| }
TGBOT.prototype.getUpdates = function(timeout,offset){ <
var self = this; var self = this;
> log();
> setInterval(log, 10 * 60 * 1000)
> }
> TelegramAPI.prototype.startPolling = function (timeout) {
> timeout = timeout == null ? 40 : timeout;
self.emit('message', update.message); <
console.log(update.message); <
} else if (update.inline_query) { <
self.emit('inline_query', update.inline_q <
} else if (update.chosen_inline_result) { <
self.emit('chosen_inline_result', update. <
} <
<
}); <
<
self.getUpdates(timeout,self.lastOffset); <
}); <
<
}; <
TGBOT.prototype._invoke = function(apiName,params,cb,multiPar | TelegramAPI.prototype._invoke = function _invoke(apiName, par
cb = cb || function(){}; | cb = cb || function () {};
var targetURL = '
https://api.telegram.org/bot' + this.tok var targetURL = '
https://api.telegram.org/bot' + this.tok
var requestData = { var requestData = {
url: targetURL, url: targetURL,
timeout: 15000 // 15 sec timeout: 15000 // 15 sec
}; };
<
if (!multiPart || !params) { if (!multiPart || !params) {
params = params || {}; params = params || {};
requestData.form = params; requestData.form = params;
} else { } else {
params = params || {}; params = params || {};
requestData.formData = params; requestData.formData = params;
} }
> requestData.timeout = 10000;
> self.lastOffset = null;
> self.emit('error', new Error('bad response fo
> } else {
> body.result.forEach(function (update) {
> if (update.update_id >= self.lastOffset)
> self.lastOffset = update.update_id
> }
> if (update.message) {
> self.emit('message', update.message)
> } else if (update.inline_query) {
> self.emit('inline_query', update.inli
> } else if (update.chosen_inline_result) {
> self.emit('chosen_inline_result', upd
> }
> })
> }
> }
>
> if (self.pollingEnabled) {
> // console.log('current offset: ' + self.lastOffs
> clearTimeout(self.pollingTimeoutId);
> self.pollingTimeoutId = setTimeout(checkTimeout,
> self.currentPollRequest = self._poll(timeout, sel
> }
> })
> }
> TelegramAPI.prototype._poll = function _poll (timeout, offset
> var param = {
timeout: timeout timeout: timeout
}; | }
if (offset != null) { if (offset != null) {
params.offset = offset; | param.offset = offset
} }
| return request.get({url:'
https://api.telegram.org/bot' +
self._invoke('getUpdates',params,function(error,result){ | }
if(error!=null){ <
self.lastOffset == null; <
console.log(error.toString()); <
} <
result.forEach(function(update){ <
if (update.update_id >= self.lastOffset) { <
self.lastOffset = update.update_id; <
} <
if (update.message) { <
> datas.chat_id = chat_id;
> datas.action = action;
> return this._invoke('sendChatAction', datas , cb);
> }
> TelegramAPI.prototype.getFileContent = function getFileConten
> var requestSettings = {
> method: 'GET',
> url: '
https://api.telegram.org/file/bot' + this.token
> encoding: null
> };
> request(requestSettings, function (err, response, body) {
> cb(err, response, body);
> })
> }
> module.exports = TelegramAPI
request.post(requestData, function (err, response, body) request.post(requestData, function (err, response, body)
// console.log(response); // console.log(response);
if (err || response.statusCode !== 200) { if (err || response.statusCode !== 200) {
return cb(err || new Error('unexpect response cod return cb(err || new Error('unexpect response cod
} }
try { try {
body = JSON.parse(body); | body = JSON.parse(body)
} catch (e) { } catch (e) {
return cb(e); | return cb(e)
} }
if (body.ok !== true) { if (body.ok !== true) {
return cb (new Error('response in not ok')); | return cb (new Error('respense in not ok'))
} }
cb(null, body.result); cb(null, body.result);
}); });
}; | }
| TelegramAPI.prototype.getMe = function getMe(cb) {
TGBOT.prototype.getMe = function getMe(cb) { <
return this._invoke('getMe', null , cb); return this._invoke('getMe', null , cb);
}; | }
| TelegramAPI.prototype.answerInlineQuery = function answerInli
TGBOT.prototype.sendMessage = function sendMessage(chat_id, t | if ('string' !== typeof results) {
> results = JSON.stringify(results)
> }
> return this._invoke('answerInlineQuery', {
> inline_query_id: id,
> results: results
> } , cb);
> }
> TelegramAPI.prototype.sendMessage = function sendMessage(chat
datas = typeof datas === "object" ? datas : {}; datas = typeof datas === "object" ? datas : {};
datas.chat_id = chat_id; datas.chat_id = chat_id;
datas.text = text; datas.text = text;
return this._invoke('sendMessage', datas , cb); return this._invoke('sendMessage', datas , cb);
}; | }
| TelegramAPI.prototype.getFile = function getFile(file_id, cb,
TGBOT.prototype.addCommand = function(cmd,cb,desc){ | datas = typeof datas === "object" ? datas : {};
| datas.file_id = file_id;
}; | return this._invoke('getFile', datas , cb);
| }
var OwO = new TGBOT({token:"171804881:AAEqhxbpKjXAZnfSzNC-QNP | TelegramAPI.prototype.sendChatAction = function sendChatActio
OwO.start(); | datas = typeof datas === "object" ? datas : {};
例如他的startPolling和_invoke有重疊的地方
你說這個喔,我只是看他好不容易有上進心要coding了而已
明天在來隱藏ChanServ XD
跟搞IRC Bot
話說一個人C9帳號最多能幾個呀?
我用 IPv6 上傳到Google Drive 大概只能到50Mb/s
我是指
網曝華碩主板BIOS和UEFI更新機制隱患大,易被劫持
「近日有安全人員曝出華碩電腦更新軟件ASUS LiveUpdate更新機制存在漏洞,該軟件在更新主板BIOS和UEFI固件時未對來源HTTP進行加密,地址全為明文形式,而且安裝過程中也未見對安裝包進行任何驗證,極易被攻擊者劫持利用。」
沒對更新檔做驗證,代表你可以自幹一個更新檔,然後幹掉你主機板
Software licensing description table
而且沒想到Windows 7的SLIC 到10還可以繼續用 www
現在正在申請
www.hanker-tea.com
2016/7/9 下午 9:35:25 申請三張 *.google.com *.facebook.com *.chris.taipei sha2ECDSA ECC 384 Bits fb.me/chris1004tw admin@domain.com
2016/7/9 下午 9:43:54 申請一張 sha2RSA 2048 Bits 所以我說阿 你有打算回我PM嗎(? 根據 Whois 提供信箱
所以你要我不管mail有沒有正確 就一直向Comodo丟CSR嗎
而且我的理念是要比Let's Encrypt還要簡單拿到憑證
首先當然開一台VM塞smb aria2 ftp之類的東西當file server阿
然後遲一點再加node做iSCSI解決第一臺node的問題
我認真覺得我該給我的 forever 做個 web manager 啥的,不然bot三不五時被telegram弄死...我還不能不開ssh重啟
但是 forever短時間連續噴太多次,他會當成bot爆炸不重啟
@mmis1000 只有mmis1000_bot嗎 還是fake sleep bot 也是?
@chris1004tw 我知道你有 VMware Workstation 12 的 Unlocker,I need it
玩個cities: skyline須要做到這種程度嗎...
要不要踢 wartw
好,當然。
▫️ 0%
不要,當然不要不踢。
▫️ 0%
👥 Nobody voted so far.
新一代SM cp birkhoff v.s. wartw
我選項都設成這樣還有一群人當真我也真的不知道說什麼
本來不是 YSITD當房名嗎 如果不能用這名字的話 就改SM (#
你Block User 只是他不能PM跟看到你的上線時間
所以應該要去建議TG出Group Ignore功能
IRC的ignore是在客戶端實做還是協議本身的東西?
這樣做你有可能被牽連,因為你看不到某些人講話,然後就會公共頻道雞同鴨講
所以 @BirkhoffLee 你家網路沒問題了齁?
不完全阿,server還需要一些除從空間來同步名單
話說聽說如果把無線設定那邊改成美國規格 訊號會比較好?
這種時候就得誇獎ASUS Firmware的QoS了 真的被我唸到改得很好
別 臺灣有臺灣能用的頻道 你如果切到別的國家 或許在特定裝置上面你會收不到訊號
然後有些讀音你可能要用對岸的拼法 不過有些輸入法可以自訂讀音就是
可是當我連上pppoe時 192.168.x.x完全ping不到
去網路,裡面把pppoe和網路介面卡一起選按右鍵,選喬傑
如果動到Default-Gateway 是有可能的
話說
ithome.com
和
ithome.com.tw有關係嗎
我一直覺得 KDE Plasma 在美學上完勝 GNOME
差在 AC68U是 802.11ac 3x3 MIMO
兩台Power Amplifier IC都是相同的
Advanced Tomato
或是 DD-WRT
我建議這個Tomato拉 因為我AC56U現在也還是用這個
說到這個…好像你那台 Netgear 上 DDWRT 會有問題
嗯嗯,先說喔,因為linux我也不熟,只能依直覺判斷,一些步驟你要自己摸索喔,我只能給你方向
這個版本不是只有視覺優化,還有整合各種番茄的優點啦
@chris1004tw 所以你覺得我如果想要連無線網路溢起的話是在多買一台還是買AC68U?
你的 AC56U 退役當 AP?
那台 AP 又不強不是嗎
那樣要同 SSID 欸…感覺不能炫耀自己家很多台 AP((
放心 我們家從B1~5F全部都打Home這個SSID 根本不能忽略的存在 www
你自己還不是一樣
不然讓你家外面街上能收 5G 啊
哇我成功了 一次寫到好然後沒Koru
獲得成就(#
然後其實我到近期才知道 macOS的app並不是一個檔案 而是一個資料夾 www
一個是5dBi 有AiRader
一個是9dBi 無AiRader
ASUS是這樣解釋AiRadar拉 有沒有用 見人見智
AiRadar delivers 150% greater signal coverage in every direction
無線路由器支援獨家 AiRadar 技術,可根據裝置數量以及與路由器的相對位置,能自動調整成適用功率及切換封裝功能,擴大 Wi-Fi 無線訊號覆蓋範圍最高達 150% ,讓裝置可接收最佳訊號,大幅提升資料傳輸速率。
若一台普通功率的分享器天線規格為3T3R時,
訊雜比介於1.76db~4.77db。而一台2T2R高功率的分享器,
訊雜比介於11db~13db。
省時間有效率,而且做出來的東西大部分時候比自幹的還好
是說 iPerf 是用 RAM 當 Buffer?
ㄚㄚ不好意思,所以是指3T3R傳輸會比2T2R穩定?但是距離會變短?
喔喔好喔....那AC-55Uep AC-68U1u3sk
@chris1004tw tomato有完全支援原版韌體的功能嗎
反正全部都會變成Tomato 然後可以上VLAN、Tor等
AC68U除了當Router還要當AP,這樣的話呢?
因為我有兩個device是不會和其他裝置互聯的....
@chris1004tw 我t00ls被降级了 ;3
@chris1004tw 你訊息量真的不科學...
866.7Mb/s 理論值 可以把我們家440Mb/s撐滿就對了
/maketext@mmis1000_bot 海豹:
0.5BTC真的很少
@seadog007 0.5BTC很少 你認真的嗎
@seadog007 對了 問你喔 你覺得小圓是一部怎樣的動畫
不吸引人=不會去看=不知道在演三小
所以不會知道它鋪梗怎樣
就是那一句
「我褲子都脫了你給我看這個」
這樣的概念(O
影片裡面說手動設定 192.168.2.1/255.255.255.0
而且照理來講 Tomato是用192.168.1.0/24啊
@choukai 應該說 這部會很多人看主要是看過的人推的啦
我喝CoCo都喝百香雙響炮
50嵐 清心都喝珍奶
COMEBUY都喝雙Q
(?
聽說之前很多人把程式直接置裝在 D:/
然後d槽被清空?