in this minute
many devices were korued
Intel Core i7-6950X ($1599 US) – $300 Price Cut
Intel Core i7-6900K ($999 US) – $200 Price Cut
Intel Core i7-6850K ($549 US) – $150 Price Cut
Intel Core i7-6800K ($359 US) – $140 Price Cut
Intel Core i7-5820K ($319 US) – $100 Price Cut
Intel Core i7-7700K ($299 US) – $80 Price Cut
Intel Core i7-6700K ($259 US) – $140 Price Cut
Intel Core i7-4790K ($279 US) – $90 Price Cut
Intel Core i7-7700 ($289 US) – $50 Price Cut
Intel Core i7-6700 (259 US) – $90 Price Cut
Intel Core i5-7600K ($199 US) – $70 Price Cut
Intel Core i5-6600K ($179 US) – $$90 Price Cut
Intel Core i5-4690K ($189 US) – $70 Price Cut
Intel Core i5-7500 ($189 US) – $30 Price Cut
Intel Core i5-6500 ($179 US) – $50 Price Cut
Intel Core i5-4590 ($159 US) – $60 Price Cut
Intel Core i3-7350K ($159 US) – $20 Price Cut
Intel Core i3-7100 ($114 US) – $15 Price Cut
Intel Core i3-6100 ($109 US) – $20 Price Cut
Intel G4400 ($49.99 US) – $20 Price Cut
Intel G3258 ($49.99 US) – $27 Price Cut
昨天台中大學博覽會中展出的,由師大學生製作的機器人~
開後門/漏洞的話?像root手機的app都利用漏洞開root
還有不是說要把ffmpeg改用ffmpeg-static還什麼的?
那也要等手機製造商推出patch給user裝
白牌山寨機只好自力救濟了qq
const request = require("request");
const spawn = require('child_process').spawn;
const ffprobe = spawn("ffprobe", ["-show_format", "-print_format", "json", "-i", "-"]);
var stream = request("https://api.telegram.org/file/bot360451821:AAHcOkCdtyqN9BOO9M3z5G8-5xURYuyflqA/music/file_65.mp3");
var metadata = [];
stream.pipe(ffprobe.stdin);
ffprobe.stdout.on("data", data => metadata.push(data));
ffprobe.on("close", code => {
console.log(JSON.parse(metadata.join("")).format.tags.title);
stream.abort();
})
const request = require("request");
const spawn = require('child_process').spawn;
const ffprobe = spawn("ffprobe", ["-show_format", "-print_format", "json", "-i", "-"]);
var stream = request("https://api.telegram.org/file/bot<token>/music/file_0");
var metadata = [];
stream.pipe(ffprobe.stdin);
ffprobe.stdout.on("data", data => metadata.push(data));
ffprobe.on("close", code => {
console.log(JSON.parse(metadata.join("")).format.tags);
stream.abort();
})
不過telegram server很有障礙,有時候會連線失敗
所以我建議直接讓ffprobe讀local cache
不然telegram server會讓一整串處理炸掉
不要再跑奇怪的東西了 啥G.Fast 距離慘的 VDSL
到最後整個 Bot 都可能會變成 node.js 的C++ Addon(
到最後會直接要libuv,連node.js也不要了(
現在除了Mixer有C++加速以外,其餘的部分都是js
未來的component應該也會有些吃CPU的阿(?
你真的很想要C++的話,去把replaygain弄上去吧
就是用C++手寫一個低延遲的Compressor啊(
var processorStream = through2(require('/path/to/compressor.node'))
C++是輕量的程式語言?我以前學的時候感覺不出來orz
到時候我看你沒 gcc/MSVC 跑我的node應用都會慢半一倍
光是那個mixer就已經讓目前的radio bot速度差超過3倍了
你怎麼翻到的 直接操作朋友電腦嗎xdd(難怪據說,物理入侵是最難防禦的資安入侵)
所以:
1.朋友用你的電腦登入
2.之後你在你的電腦run export
3.Profit!
這樣?
之前ACGN還在戰那個Linux比較適合當Server呢
你看看 mlog.licson.net(Ubuntu)和 licson.net(CentOS)
還好不是什麼cpu core+ram/10之類的東西
js對於整數跟char *的操作速度,只有一個悲劇可言
你不如在telegram的url handle那邊做
而且 htop 看到 ffmpeg 開始吃
/tmp 的檔案
htop裏面的ffmpeg有吃到
/tmp 的檔案嘛
可是ffprobe是要在用戶丟的時候就讀metadata吧
用crontab排程rm -rf /tmp/* (如果server是linux,windows的話不知道能不能寫指令排程)
然後也不要靠cron之類的,增加更多變數而且Linux限定
我rz寫perl都用system("rm -rf xxx")來整理工作站上的檔案xd
一個實體core有兩個thread,可以平行做兩件事情