2019年1月9日 星期三

[3C] AutoCAD 與 SketchUp 的顯示卡選擇


SketchUp與AutoCad的GPU加速API :
  • SketchUp 使用OpenGL加速運算。
  • AutoCad 是透過OpenGL or DirectX加速運算。
那麼理論上Nvidia GTX 或 AMD RX 其實都可以滿足。


官方有無其他宣稱:
看起來SketchUp兩家都沒問題,但AutoCAD不管哪一個版本,似乎都沒有"認證"AMD RX系列!!! 不過"認證",不代表支援!!! 是否代表Nvidia與AutoDesk有什麼黑科技

2018年8月30日 星期四

[debian] add-apt-repository: command not found


hsu@debian:~$ sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
sudo: add-apt-repository: command not found


需要補上


hsu@debian:~$ sudo apt-get install python-software-properties

hsu@debian:~$ sudo apt-get install software-properties-common 

2018年7月1日 星期日

cx-5電瓶規格-自動啓閉-怠速熄火專用電瓶比較

2016年式cx-5二柴,原廠電瓶使用了兩年半,8萬多公里後,壽命已盡。

原廠電池為:GS-YUASA T-110 12V/80AH,冷起動電流782A CCA。

為了找其他廠替代品,首先要了解原廠配的電池型號,由此型號可知電瓶長寬高。

以原廠YUASA 95D31L為例。

95
  • 性能排序(無單位)
  • 電池的總合性能。數值愈大性能愈高。
D
  • 電池的短側面(寬度與高度的區分),記號依A、B、C…的順序逐漸變大。
    • A 寬:128mm 高:162mm
    • B 寬:129mm 高:202mm
    • C 寬:135mm 高:207mm
    • D 寬:173mm 高:202mm
    • E 寬:175mm 高:211mm
    • F 寬:182mm 高:213mm
    • G 寬:222mm 高:213mm
    • H 寬:278mm 高:220mm
31
  • 電池的長度尺寸(cm)
    • 31就是31cm!
L
  • 端子的極性位置,也就是電瓶正、負電端子的方向

了解型號怎麼看之後,就可以找各牌子的xxxD31L產品了。

以下是幾個符合size與支援自動啓閉的EFB電瓶,AGM電瓶太貴了,暫時不考慮。

YUASA T110 120D31L
  • 價格:4800
  • 電池規格:12V / 95AH
  • 冷啟動電流 : 820CCA 
  • 保固:12個月

BOSCH ST Hightec E T110L / 120D31L
  • 價格:4500
  • 電池規格:12V / 95AH
  • 冷啟動電流 : 760CCA
  • 保固:12個月或兩萬公里

日立HITACHI電瓶125D31L
  • 價格:5700
  • 電池規格:12V / 95AH
  • 冷啟動電流 : 830CCA 保固:12個月或兩萬公里

ACDelco ST110D31L
  • 價格:5500
  • 電池規格:12V / 90AH
  • 冷啟動電流 : 820CCA 
  • 保固:24個月


CCA:冷啟動電流安培數
用來定義電瓶在0°F(-17.8°C)寒冷環境下啟動汽車引擎能力的指標,越高的CCA表示可提供引擎越大的冷啟動電力,尤其是車齡過高不易啟動的車輛,越高的CCA可以使引擎啟動更加順利。但一般購買電瓶時,我們無法從電瓶外觀、符號得知CCA,可以參考電瓶的電瓶安培數值,該數值與CCA成正比,或從電瓶製造廠提供的「電瓶規格」得知,這也是最準確的方式。若是完全無法得知,原先電瓶的CCA就只能推估


AH:Ampere Hour安培小時(20小時比率)

每個100AH的電瓶在80°F(27°C)時,平均能載電5安培,並保持最低電壓在10.5伏特以上持續20個小時,數字越高,電瓶容量也越高,CCA也越高,重量也越重。



資料來源:

2017年10月14日 星期六

日立冷氣-型號比較


  • 一對多室外機
室外機之冷氣能力5.0 kW6.3 kW7.2 kW8.4 kW9.0 kW10.0 kW13.0 kW
冷暖型
(NK/NB系列)
1對2RAM-50NKRAM-63NKRAM-71NKRAM-83NKRAM-93NKRAM-108NKRAM-130NK
1對3------RAM-86NKRAM-93NKRAM-108NKRAM-130NK
1對4----------RAM-108NKRAM-130NK
冷專型
(JK/JB系列)
1對2RAM-50JKRAM-63JKRAM-71JKRAM-83JKRAM-93JKRAM-108JKRAM-130JK
1對3------RAM-86JKRAM-93JKRAM-108JK

RAM-130JK

1對4

--

--

--

--

--

RAM-108JK

RAM-130JK

    • 以RAM-50NK為例,能搭配
      • RAS-28NK+RAS-28NK
      • RAS-28NK+RAS-22NK
      • RAS-22NK+RAS-22NK
      • 以相加不離50太遠為準
    • 以RAM-93NK為例,能支援到一對四,搭配選項就很多。
      • RAS-36NK+RAS-63NK
      • RAS-28NK+RAS-71NK
      • RAS-28NK+RAS-28NK+RAS-28NK
      • RAS-22NK+RAS-22NK+RAS-22NK+RAS-22NK
      • 以相加不離93太遠為準

  • 室內機(RAS-XXNK/RAS-XXHK) XX代表
    • 22 : 3-4坪
    • 28 : 4-5坪
    • 36 : 5-6坪
    • 50 : 7-9坪
    • 63 : 9-11坪
    • 71 : 10-12坪

  • NK頂級系列與HK旗艦系列差別在於省電
    • RAC-28HK
    • RAC-28NK
    • 大致上頂級比旗艦系列貴一成,省電也差一成


資料來源

2017年8月1日 星期二

The NTFS partition is in an unsafe state. Please resume and shutdown

root@OpenWRT:~# mount /dev/sdb2 /mnt/sdb2
Windows is hibernated, refused to mount.
Failed to mount '/dev/sdb1': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume

read-only with the 'ro' mount option.


解法:

root@OpenWRT:~# ntfsfix /dev/sdb2
Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb2 was processed successfully.






2017年7月23日 星期日

Intel® H110 V.S. Intel® B250 晶片組


都支援內建影像輸出,大概上差不多主要差異在於



  • 推出日期 
    • H110 : 2015 Q3 
    • B250 : 2017 Q1 

  • 匯流排速度 
    • H110 : 5 GT/s DMI2 
    • B250 : 8 GT/s DMI3 

  • USB規格 
    • H110 : USB3.0*4 USB2.0*10 
    • B250 : USB3.0*6 USB2.0*1 

  • PCI-E規格 
    • H110 : PCIe3.0*12 
    • B250 : PCIe2.0*6


參考連結:
https://ark.intel.com/zh-tw/products/98086/Intel-B250-Chipset
https://ark.intel.com/zh-tw/products/90590/Intel-H110-Chipset


2017年5月15日 星期一

Linux PID 何時會開始重複使用

重複fork & kill process 拿到的pid會越來越大

直到何時?可以由cat /proc/sys/kernel/pid_max 指令知道max pid

超過後就開始重複使用啦XDD



root@xxxx:/root# cat /proc/sys/kernel/pid_max
32768

2017年3月22日 星期三

[3C] 4G WiFi分享器

目標: 4G wifi 分享器,同時支援越多裝置連線越好

大部份小型wifi router大多只能支援10個client,只有找到以下兩個可以支援32個client


1. HUAWEI 華為 B315 4G-LTE 行動網路 WiFi分享 無線路由器

2. ZYXEL WAH7706 LTE 行動路由器

基本上兩台差不多,最大差別在於

B315下載最高150Mbps,WAH7706最高300Mbps

2017年3月21日 星期二

device tree dtb dts轉換


DTS to  DTB:
./scripts/dtc/dtc -I dts -O dtb -o <devicetree name>.dtb <devicetree name>.dts



DTB back into a DTS:
./scripts/dtc/dtc -I dtb -O dts -o <devicetree name>.dts <devicetree name>.dtb

2016年8月28日 星期日

知名度PK : discuz VS phpbb

在台灣 discuz > phpbb

  • https://www.google.com.tw/trends/explore?date=all&geo=TW&q=discuz,phpbb
  • https://www.google.com.tw/trends/explore?date=today%2012-m&geo=TW&q=discuz,phpbb


在中國 discuz > phpbb

  • https://www.google.com.tw/trends/explore?date=all&geo=CN&q=discuz,phpbb


在美國 phpbb >>> discuz

  • https://www.google.com.tw/trends/explore?date=all&geo=US&q=discuz,phpbb
  • https://www.google.com.tw/trends/explore?date=today%2012-m&geo=US&q=discuz,phpbb


在全球 phpbb >>> discuz

  • https://www.google.com.tw/trends/explore?date=today%2012-m&q=discuz,phpbb




台灣各大論壇後台使用狀況

discuz:

  • http://ck101.com/
  • http://www24.eyny.com/index.php
  • https://www.htcvive.com/tw/forum/chat.php?type=general
  • http://www.tt1069.com/bbs/forum.php?
  • http://www.piring.com/bbs/tcn/
  • http://oursogo.com/
  • http://taiwan-city.com/forum.php
  • http://www.centurys.net/
  • http://catdu.com/forumdisplay.php?fid=6&page=1


phpbb:

  • http://www.news100.com.tw/

大陸地區雲端服務-節點個數比較


IDC點評


  • 華為
    • 節點太少,只有一個華北區,不考慮



  • AWS
    • 在中國有一個北京的點,此點並非所有服務都可以使用
      • 不過基本的EC2+RDS都有
      • CloudFront與Route53沒有
      • 非中國區節點,較其他服務供應商多

  • 華雲
    • 海外節點只有一個:香港

  • ucCloud
    • 結點海外只有香港與美國加州
    • 加速節點遍佈全球,在中國也頗多

  • 阿里雲
    • 世界第四?
    • 海外節點:新加玻,美東,美西
    • 中國結點:華東,華北,華南
    • 準備上線結點:日本,中東,歐洲

  • 騰訊
    • 海外節點:新加玻,香港,多倫多
    • 中國結點:廣州,上海,北京


參考資料:
http://developer.hwclouds.com/endpoint.html
https://aws.amazon.com/tw/about-aws/global-infrastructure/regional-product-services/
https://www.chinac.com/About/resourcenodes.html
https://www.ucloud.cn/site/dc/
https://docs.ucloud.cn/storage_cdn/ucdn/node.html
https://intl.aliyun.com/zh/why-alibaba-cloud?spm=a3c0i.7968205.230823.3.WqVEVl




2016年4月12日 星期二

sshfs on ubuntu / mac os



  • Ubuntu安裝 SSHFS
    • sudo apt-get install sshfs
    • 新增可以使用 SSHFS 的使用者(以帳號hsu0301 為例)
      • usermod -a -G fuse hsu0301
    • 掛載 SSHFS 硬碟
      • 下面的指令把hsu0301@192.168.1.2 的 /home/hsu0301 資料夾,掛到自己電腦的 remote_home資料夾
        • sshfs hsu0301@192.168.1.2:/home/hsu0301 remote_home

  • Mac安裝SSHFS
    • 安裝OSXFUSE & SSHFS
      • https://osxfuse.github.io
    • 掛載 SSHFS 硬碟
      • 下面的指令把hsu0301@192.168.1.2 的 /home/hsu0301 資料夾,掛到自己電腦的 remote_home資料夾
        • sshfs hsu0301@192.168.1.2:/home/hsu0301 remote_home

2016年4月11日 星期一

hsu0301 is not in the sudoers file. This incident will be reported.


1. su

2. visudo

3.下面是添加完的结果。
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
hsu0301 ALL=(ALL)       ALL              <----新加入的

2016年3月8日 星期二

ubuntu 14.04 装 tftp server

1.安裝套件

sudo apt-get install xinetd tftpd tftp


2.sudo vi /etc/xinetd.d/tftp 

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = ~/tftp
    disable         = no
}

3.建立資料夾

sudo mkdir ~/tftp
sudo chmod -R 777 ~/tftp
sudo chown -R nobody ~/tftp

4.sudo service xinetd restart

5.測試tufts get file都會Error Code 2: Access violation

將/etc/xinetd.d/tftp 改成如下即可 ==

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /home/jim.hsu/tftp
    disable         = no
}

2016年3月4日 星期五

LuCI (Lua Configiration Interface)

  • LuCI (Lua Configiration Interface) 是 OpenWRT 的 Web 管理介面。

  • LuCI 是一個 MVC framework,所以我們可以在 LuCI 的基礎上寫 Web 的應用程式。

  • OpenWRT management flow:   
  • official reference:



2015年10月30日 星期五

[Tool] 將 PDF 轉換為 PowerPoint


付費的官方解法 - Adobe Acrobat DC

網路上有不少免費的web版轉換工具,但很多轉出來都跑版或是一片空白

smallpdf目前測試正常








2015年9月3日 星期四

Google Cloud Platform V.S AWS



價格試算:

Amazon Web Service:

Google Cloud Platform:


IO PK:

By the numbers: How Google Compute Engine stacks up to Amazon EC2


價格PK:

Google vs. AWS Pricing: Google Cuts Are First of 2015


網路速度PK

Need for speed: Testing the networking performance of the top 4 cloud providers

Amazon EC2 vs Azure vs Rackspace Cloud vs Google C. Engine | Some tests and stats


總結:


  • Google Cloud在大優點是在台灣有機房,相比AWS東京,ping大勝
  • Google在價格上有優勢
  • AWS在產品完整度上Google目前還不能比
以新創、低需求、低成本來考慮的話,Google或許是個好選擇?



2015年6月8日 星期一

joomla 移除url中的index.php



1.系統->全站設定->網站設定->使用網址重寫(URL rewrite)選擇Yes



2.將joomla站點根目錄下的htaccess .txt文件重命名為.htaccess


2015年6月3日 星期三

[轉貼]2015 5月 android 版本市佔率


統計期間: 2015/5/26~2015/06/01

VersionCodenameAPIDistribution
2.2Froyo80.3%
2.3.3 -
2.3.7
Gingerbread105.6%
4.0.3 -
4.0.4
Ice Cream Sandwich155.1%
4.1.xJelly Bean1614.7%
4.2.x1717.5%
4.3185.2%
4.4KitKat1939.2%
5.0Lollipop2111.6%
5.1220.8%












資料來源:

2015年5月19日 星期二

linux sync指令


Linux 系統中,為了加快資料的讀取速度,寫入硬盤的資料有的時候為了效能,會寫到 filesystem buffer 中,這個 buffer 是一塊記憶體空間,如果欲寫入硬碟的資料存此 buffer 中,而系統又突然斷電的話,那資料就會流失!


  • 可以透sync 指令,將存 buffer 中的資料強制寫入disk中;


Name

sync - synchronize data on disk with memory

Synopsis

sync [--help] [--version]

Description

 sync writes any data buffered in memory out to disk. This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and writes. This must be implemented by the kernel; The sync program does nothing but exercise the sync system call.
The kernel keeps data in memory to avoid doing (relatively slow) disk reads and writes. This improves performance, but if the computer crashes, data may be lost or the file system corrupted as a result. sync ensures that everything in memory is written to disk.

sync should be called before the processor is halted in an unusual manner (e.g., before causing a kernel panic when debugging new kernel code). In general, the processor should be halted using the shutdown or reboot or halt commands, which will attempt to put the system in a quiescent state before calling sync.




  • 或是在程式中利用sync() function ;


Name

sync - commit buffer cache to disk

Synopsis

#include <unistd.h>

void sync(void);

Feature Test Macro Requirements for glibc

sync():
_BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED


Description

sync() causes all buffered modifications to file metadata and data to be written to the underlying file systems.

Errors

sync() is always successful.


資料來源:
sync(2) - Linux man page
sync(8) - Linux man page