分类目录归档:未分类

CINEBENCH 15

First Machine
OS: Microsoft Windows 10 Pro
CPU: Intel Core i3-3220 running at 3.29GHz
GPU: NVIDIA GeForce GT 520
Novabench Score: 862
CPU Score
493
Float Ops: 97480821
Integer Ops: 476949175
Hash Ops: 1241524
RAM Score – 8GB
206
RAM Speed: 19992 MB/s
GPU Score
115
Direct3D11: 5 FPS
OpenCL: 113 GFLOPS
Disk Score
48
Write Speed: 223 MB/s
Read Speed: 212 MB/s

Second Machine
OS: Microsoft Windows 10 Pro
CPU: Intel Core i5-2400S running at 2.59GHz
GPU: AMD Radeon HD 7700 Series
Novabench Score: 980
CPU Score
418
Show details
Float Ops: 91881542
Integer Ops: 405734908
Hash Ops: 944461
RAM Score – 6GB
161
RAM Speed: 12242 MB/s
GPU Score
363
Direct3D11: 36 FPS
OpenCL: 0 GFLOPS
Disk Score
38
Write Speed: 137 MB/s
Read Speed: 177 MB/s


Third Machine
OS: Microsoft Windows 10 专业版
CPU: Intel Core i7-4790K running at 4.39GHz
GPU: AMD Radeon HD 7700 Series
Novabench Score: 1759
CPU Score
1006
Show details
Float Ops: 208160360
Integer Ops: 1353463416
Hash Ops: 1740590
RAM Score – 32GB
295
RAM Speed: 21655 MB/s
GPU Score
379
Direct3D11: 38 FPS
OpenCL: 1403 GFLOPS
Disk Score
79
Write Speed: 362 MB/s
Read Speed: 498 MB/s

Fourth Machine

First Laptop

Second Laptop

Third Laptop

Fourth Laptop

耐候钢标准

焊接结构用耐候钢板(GB4172-84)
高耐候性结构钢钢板(GB4171-84)
书 STAINLESS STEEL AND CORROSION by Claus Qvist Jessen ISBN
978-87-92765-00-0

Download (PDF, 456KB)

GB/T4171-2008

美国

Download (PDF, 1.3MB)

Download (PDF, 266KB)


Download (PDF, 173KB)

Download (PDF, 62KB)

Download (PDF, 24KB)


耐候性能估计

Download (PDF, 209KB)

日本

Download (PDF, 725KB)

Download (PDF, 495KB)

Jis G 3125

 

Top Price bubbule for everything

TSX fully rebounded from oil price crash

Canadian Highquality Bond

Canadian Dollar Index

Shang Stock Exchange above average


Stocks to watch
TELUS Corporation(TSE:T)
Allied Properties Real Estate Investment(TSE:AP.UN)
Cameco Corp(TSE:CCO)
Canadian Apartment Properties REIT(TSE:CAR.UN)
Enbridge Income Fund Holdings Inc(TSE:ENF)
Great-West Lifeco Inc(TSE:GWO)
Hydro One Ltd(TSE:H)
Magna International Inc.(TSE:MG)
North West Company Inc(TSE:NWC)
Manulife Financial Corp.(TSE:MFC)
Sun Life Financial Inc(TSE:SLF)
Royal Bank of Canada(TSE:RY)
GDX Gold Miners ETF

Asset Sale – Price Allocation

In the case of depreciable property, the vendor will be taxable on recapture, and no reserve is available. Recaptured depreciation is considered to be active business income for the purposes of the small business deduction. If a capital gain arises, the five-year capital gains reserve may be available if there is a balance of sale.Note2 A terminal loss may arise on depreciable property when the purchase price is less than the undepreciated capital cost of the property.
On the disposition of non-depreciable capital property, a capital gain or capital loss maybe realized or incurred. For the purchaser, the amount paid will represent the capital cost of the property.
http://www.cch.ca/newsletters/TaxAccounting/January2013/index.htm#Notes
Income Tax Act (R.S.C., 1985, c. 1 (5th Supp.))

Recaptured depreciation 13 (1)
Goodwill (34)
Class 14.1 — transitional rules P120
Taxable Capital Gains and Allowable Capital Losses p332

Change to goodwill tax
Eligible Capital Property is the tax term for an intangible asset held by a taxpayer.
On March 22, 2016, the new Liberal Minister of Finance, the Honourable Bill Morneau, tabled that government’s first budget. Included among the proposed changes was a plan to repeal the existing Eligible Capital Property regime and to fold ECP deductions into the existing Capital-Cost Allowance framework under the newly proposed class 14.1.

At the same time under the proposed rules the sale of ECP after January 1, 2017 will still be characterized akin to a capital gain. As such, 50% of the gain will be non-taxable and eligible for capital dividend treatment, while the remaining 50% will be characterized as income from investment, or passive income. The characterization of the 50% of the ECP sale as passive income means that any such income will be subject to Part IV tax and taxed at the high corporate rate of 50.67% in any holding corporation.

Build 10Gbe SFP+ network in Home Lab

I build a Freenas box using a supermicro X8DTN-F motherboard with dual xeon L5630 24GB ram.

I also build a vmware box using all-in-one board SUPERMICRO X11SBA-LN4F with 32GB ECC ram.

X8DTN-F has 2 onboard Gib RJ-45 ports, they are not fast enough for iSCSI storage share.

SO I bought LOT OF 5 MELLANOX CONNECTX-2 10GbE ETHERNET NETWORK CARD MNPA19-XTR. They cost me $65 plush $12 shipping and $25 for customs.
I also bought 3 Genuine Cisco SFP-H10GB-CU3M 3 Meter 10GbE Twinax Cable 37-0961 COPQAA6J A. They cost me about $15 each.

I installed one card on Freenas box and another one on vmware box.

This is some tests from iperf.

/usr/lib/vmware/vsan/bin/iperf -c 10.8.99.2
————————————————————
Client connecting to 10.8.99.2, TCP port 5001
TCP window size: 32.5 KByte (default)
————————————————————
[ 3] local 10.8.99.4 port 57624 connected with 10.8.99.2 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 8.05 GBytes 6.91 Gbits/sec

And using dd in a vm whos storage is based on iSCSI from Freenas over SFP+

dd if=/dev/zero of=testfile bs=1G count=10
10737418240 bytes (11 GB, 10 GiB) copied, 29.0997 s, 369 MB/s

This is a very good result.

One link of 10 Gib link cost me less than $56, This results are very acceptable.

Getting Started with Videos

OpenCV 3.0

    Learn to read video, display video and save video.
    Learn to capture from Camera and display it.
    You will learn these functions : cv2.VideoCapture(), cv2.VideoWriter()

DirectShow runtime is a core Windows component. It does not need a separate installation

FFmpeg
Capture & Display Camera
ex: ffmpeg -i “rtsp://root:camera@10.0.4.127/stream/profile1=u” -vcodec copy -acodec none test.mp4
https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg
rdp/screen-capture-recorder-to-video-windows-free
ffmpeg -f dshow -i audio=”virtual-audio-capturer”:video=”screen-capture-recorder” yo.mp4

list all ffmpeg
ffmpeg -list_devices true -f dshow -i dummy
Use the built-in GDI screengrabber (no install needed) like this :
ffmpeg -f gdigrab -framerate 10 -i desktop [output]
ffmpeg -f gdigrab -framerate 25 -i title=Calculator [output]
ffmpeg -f gdigrab -framerate 25 -i title=”Netflix – Google Chrome” [output]
ffmpeg -f gdigrab -framerate 25 -i title=”Netflix – Google Chrome” -f dshow -i audio=”virtual-audio-capturer” -c:v libx264 -b:v 200k test.mp4
ffmpeg -f dshow -framerate 25 -i video=”screen-capture-recorder” -f dshow -i audio=”virtual-audio-capturer” -c:v libx264 -b:v 200k test.mp4

ffmpeg wiki

x264 lossless
ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0 output

Recording webcam
ffmpeg -f alsa -i default -f v4l2 -s 640×480 -i /dev/video0 output.mpg
ffmpeg -f alsa -i default -f v4l2 -s 640×480 -i /dev/video0 -acodec flac -vcodec libx264 output.mkv

VOB to any container
cat f0.VOB f1.VOB f2.VOB | ffmpeg -i – out.mp2

Two-pass MPEG-4 (very high quality)
ffmpeg -i video.mpg -an -vcodec mpeg4 -pass 1 -f rawvideo -y NUL
ffmpeg -i video.mpg -acodec libvorbis -aq 8 -ar 48000 -vcodec mpeg4 -pass 2 -b 8000k output.mp4

FFserver
he FFmpeg package includes FFserver, which can be used to stream media over a network.

H264 Capture
-i audio=”Sound Blaster Audigy Fx”
Motion, a software motion detector http://motion.sf.net

Linux DDNS with namecheap

sudo apt-get update
sudo apt-get install ddclient

During installation an installation wizard opens and wants to know some things from you. Here you can safely enter what you want,, because we have to adjust the configuration file manually either way, because the wizard does not support the Namecheap.com interface.

The following is the format of the DDClient configuration:

/etc/ddclient.conf

use=web, web=dynamicdns.park-your-domain.com/getip
protocol=namecheap
server=dynamicdns.park-your-domain.com
login=yourdomain.com
password=your dynamic dns password
yourhost

Raspbeery Pi3 with 2 wifi donggle/VPN router

connecting to a WPA WiFi network, your /etc/network/interfaces file will contain something like this:

allow-hotplug wlan0 # detect WiFi adapter
iface wlan0 inet dhcp # connect WiFi with DHCP
wpa-ssid “myhostnetwork” # WPA access point name
wpa-psk “myhostpassword” # WPA access point password

Manually restart WiFi to connect the Raspberry Pi to the Internet.
$ sudo ifdown wlan0
$ sudo ifup wlan0

You can validate that you have a WiFi connection by pinging a website or running the command:

$ ifconfig wlan0

Installing hostapd
$ wget https://github.com/jenssegers/RTL8188-hostapd/archive/v1.1.tar.gz
$ tar -zxvf v1.1.tar.gz
$ cd RTL8188-hostapd-1.1/hostapd
$ make
$ sudo make install

/etc/hostapd/hostapd.conf
interface=wlan1
ssid=mySecureRouter
wpa_passphrase=mySecurePassword

$ sudo service hostapd start
$ sudo update-rc.d hostapd enable

Install DHCP server
$ sudo apt-get install dnsmasq

/etc/dnsmasq.d/dnsmasq.custom.conf
interface=wlan1
dhcp-range=wlan1,192.168.10.10,192.168.10.200,2h
dhcp-option=3,192.168.10.1 # our router
dhcp-option=6,192.168.10.1 # our DNS Server
dhcp-authoritative # force clients to grab a new IP

/etc/resolv.conf
nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 8.8.8.4

/etc/network/interfaces
iface wlan1 inet static
address 192.168.10.1
netmask 255.255.255.0

$ sudo ifdown wlan1
$ sudo ifup wlan1
$ sudo service dnsmasq start
$ sudo update-rc.d dnsmasq enable

TOR, or The Onion Router, is an encryption technology that encrypts and distributes your internet data across a network of computers on the way back and forth to a website.
VPNs can be more secure than TOR if you trust your VPN server.

To install TOR,
$ sudo apt-get install tor
$ sudo service tor start
$ sudo update-rc.d tor enable

Installing VPN
$ sudo apt-get install openvpn

Edit /etc/openvpn/client.conf
$ sudo service ntp start
$ sudo update-rc.d ntp enable

$ sudo service openvpn start
$ sudo update-rc.d openvpn enable

Routing
$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
sudo iptables –t nat –A POSTROUTING –o tun0 -j MASQUERADE
$ sudo iptables –A FORWARD –i wlan1 –o tun0 -j ACCEPT
$ sudo iptables –A FORWARD –i tun0 -o wlan1 –m state –state RELATED,ESTABLISHED –j ACCEPT

persistent the settings
$ sudo sh –c “iptables-save > /etc/iptables.restore”
$ echo “up iptables-restore < /etc/iptables.restore” | sudo tee --append /etc/network/interfaces https://makezine.com/projects/browse-anonymously-with-a-diy-raspberry-pi-vpntor-router/
http://www.dickson.me.uk/2016/06/21/setting-up-a-raspberry-pi-as-a-vpn-router-updated/