Thursday, March 29, 2012

Computer Language Benchmarks

Comparison of programming languages: Benchmarks

The Computer Language Benchmarks Game

Ubuntu 64 quad-core which programming languages are fastest

Tuesday, March 27, 2012

Taiwan Meal Replacements

行政院衛生署食品藥物管理局 病人用特殊營養食品查驗登記 管灌飲食

Abbott 亞培 醫療暨成人營養產品 EnSure 安素, ProSure 倍力素 (Ensure Plus)

Nestle 雀巢 均衡營養系列 Resource 立攝適均康
NutritecEnjoy 益富 Nu-Life 益力壯, Nutri-Aid 益力康 (灌食)
Quaker 桂格 Complete Nutrition 完膳, 完膳營養素管灌配方
Sentosa 三多士 Proticome 三多補体康均衡配方, CBF 三多均衡配方 (管灌)
SMAD 思耐得 Protison CB 補體素均衡營養配方, 管灌
Amon 寶鴻 優樂適

Wyeth 輝瑞 惠氏 Enercal Plus 倍力安益壯

醫療營養品販售品
可增加營養的配方商品總整理
單一營養素配方(適用於添加食物內)

全靜脈營養 Total Parenteral Nutrition
中心靜脈導管 Central Venous Catheter 

Compact:
Boost Compact 125ml, 240 cal, 240 cal, 10g protein, 6g fat, 37g carb, no fiber
USA Ensure Compact 220 cal, 9g protein, 6g fat, 32g carb, no fiber

Dense:
Nestle Resource 2.0 480 cal, 2 Kcal/ml, vanilla creme
Boost Very High Calorie VHC 8floz, 530 cal, 2.25 Kcal/ml, very vanilla $44

USA Nestle Boost Plus 360 calories, 14g protein, 14g fat, 45g carbohydrate, 3g dietary fiber 
Nestle Health Science Boost Plus, 360 cal, very vanilla, rich chocolate, *creamy strawberry $29.99

USA Ensure Plus 350 cal, 13g protein, 11g fat, 50g carbohydrate
USA Ensure Enlive 350 cal, 20g protein, 11g fat, 45g carb, 3g dietary fiber

安素優能基 900g can = 16 * 240ml bottle
Ensure Nutrition Powder  250 cal, 9g protein, 9g fat, 34g carbohydrate, 7servings/400g can 
BOOST High Protein Powder Drink Mix 150 cal, 6g protein, 0.5g fat, 31g carbohydrate
with 1 cup of 2% milk, 270 cal, 1Kcal/ml, 14g protein, 5g fat, 43g carbohydrate, 42g powder, 12servings/500g
Carnation Breakfast Essentials Powder Drink Mix 130 cal, 5g protein, 0.5g fat, 27g carbohydrate, 36g packet, 14servings/500g canister

Friday, March 16, 2012

Taiwan Outdoor Equipments

星裕國際 Starlike The North Face, Speedo, Li-Ning, Spalding, Louisville Slugger, Puma, ECCO, PING, Avia
俊嶽企業 LeBags United Colors of Benetton, Sisley, Mountain Hardwear, Montail, Columbia, TUMI
探索戶外 Outdooradventure International Marmot, Black Diamond, Gregory, Smartwool, Princeton Tec
偉盟國際 Camperland Coleman, MSR, THERMAREST, Platypus, Wigwam, Duofold, LOKI, Jansport
登山友 Ting San Iou Arc'teryx, Salomon footwear, Leki
南湖企業 Overedge Mammut
會鑫實業 Pro Outdoor Big Agnes, Granite Gear, Klean Kanteen, Outdoor Research, Patagonia

百岳登山體育用品 100 Mountain products

Outdoor Gear Industry History 1855 - 2007

Mammut 1862 Switzerland, Mountaineering equipments
Columbia Sportswear Company Brands 1938 Portland, OR, hats, jackets
Sierra Designs 1965 Point Richmond, CA, backpack, parka, outdoor equipment American Recreation Products, Inc
The North Face 1968 San Francisco, CA, Retail, Skiwear, Camping Vanity Fair Brands
Patagonia 1972 Ventura, CA, clothing for climbing
Marmot 1974 Santa Cruz, CA, Down vest, sweater, parka, K2 Sports 1961 WA, Skis
Outdoor Research 1980 Seattle, WA Gaiters, Jacket
Merrell 1981 Waitsfield, VT, Hiking boots
Arc'teryx 1989 Vancouver, BC, Climbing gears
Mountain Hardwear 1993 Richmond, CA, outdoor equipments Columbia Sportswear Company Brands 1938 OR

Thursday, March 15, 2012

Thursday, March 08, 2012

Boeing 747-400 fuel economy


Maximum range at maximum takeoff weight (MTOW): 7,260 nmi (8,250 mi 13,450 km)
57,285 U.S. gal
Typical seating capacity: 416



Monday, March 05, 2012

ssh port forwarding vnc to dd-wrt (ddwrt) or OpenWrt

router needs to forward the port (tunneling) and disable SPI firewall

LOCALXNUM=`echo $DISPLAY | cut -d: -f2 | cut -d. -f1`

while [ 1 ] ; do
#ssh -n -x -p 8080 root@$HOMEIP ps ww | grep dropbear | awk '{if(i>0)print $1;++i}' | xargs -i ssh -x -p 8080 root@$HOMEIP "kill -9 {}"
#ssh -n -x -p 8080 root@$HOMEIP ps ww | grep sleep | awk '{print $1}' | xargs -i ssh -x -p 8080 root@$HOMEIP "kill -9 {}"
sh -c 'while true; do echo K; sleep 120; done' | ssh -g -n -x -p 8080 -R5903:$HOST:590$LOCALXNUM -R5803:$HOST:580$LOCALXNUM -R22$LOCALXNUM:$HOST:22 -L11000:OpenWrt:80 root@$HOMEIP 'sh -c "while true; do uptime; sleep 180; done"'
date
sleep 60
done

===== Alternative method when above failed =====
On Windows laptop, start VPN and use PuTTY to ssh VNC server.
PuTTY Configuration -> Category panel -> Connection tab -> SSH -> Tunnels -> Select Local ports accept connection from other hosts and Add new forwarded port, Local Source port: 5900, Destination: XX-khuang:5901

On Windows desktop, vncviewer to laptop:0

===== Using HTTP Proxy =====
SSH Through or Over Proxy (Corkscrew)

===== No Proxy, blocked SSH protocol =====
HTTP Tunnel
httptunnel
bridge


Intel Processors with AES New Instructions, Enhanced Intel SpeedStep Technology, Intel vPro Technology

Intel Processors with AES New Instructions, Enhanced Intel SpeedStep Technology, Intel vPro Technology

minimum desktop and mobile CPU, i5-650, i5-520M, i5-2400, i5-2520M

Online Maps

Navteq: Bing, Yahoo, Mapquest
Google: Google
Tele Atlas: Apple iOS, Mapquest Apps

** Landmarks and Buildings,
OpenStreetMapOpen.MapQuest, [not working Bing Maps (wiki)]
OsmAnd Maps OsmAnd Pro subscription, Maps Plus subscription/payment
  Configure map: Hide Boundaries, House numbers; Transport Subway routes.  Map Style: OsmAnd (trail illegible), UniRS (clear trail), Touring view (thick trail, road too thick, do not have ped xing), LightRS (no ped xing, no subway route), Offroad (no ped xing, no subway), Desert (trail illegible), Snowmobile (blue theme, low contrast), OSM-carto (trail not clear), Topo (no ped xing, no subway) 
Organic Maps 
Maps.me subscription 

** Automatically highlighted City Boundaries with some limited buildings and landmarks
Wikimapia

Google Maps Free Alternatives

Town, Cities, Places Boundary Map no longer available
** Zipcode Boundary Map  (colored zip code lookup)
** Color-coded city limits map 

Overlap Maps overlapping drawing 

Friday, March 02, 2012

Taiwan Hotels

List of chained-brand hotels
Hyatt, Marriott, Radisson/Choice, Hilton, IHG, Wyndham, Best Western 
Properties: Wyndham, Choice, Marriott, IHG, Hilton, Accor, Best Western, Radisson, Hyatt
Rooms: Marriott, Hilton, IHG, Wyndham, AccorHotels, Choice, BW, Radisson, Hyatt

中華民國交通部觀光局 台灣旅宿網 星級旅館評鑑 好客民宿
國際觀光旅館品牌登台,旅客選擇更精緻

## Hyatt Gold Passport
hgp***** 台北君悅大飯店 - Grand Hyatt Taipei Hotel

## Marriott 萬豪
Marriott Taiwan 22
Taipei Marriot Hotel 大直 cat. 4
Courtyard Taipei 萬怡 南港 cat. 4
Courtyard Taipei Downtown 萬怡 臺北 cat 4
Renaissance Taipei Shihlin 臺北士林 cat 4
Marriott Kaohsiung 高雄 cat 3
Starwood Preferred Guest spg 喜達屋
Le Meridien Hualien 寒舍艾美 花蓮 cat 5
spg***** 台北寒舍喜來登大飯店 - Sheraton Grand Taipei Hotel cat 4
Regent Taipei 臺北晶華酒店
Intercontinental Kaohsiung 高雄洲際酒店
Hilton Sinban 希爾頓 新板 新北板橋

## Accor Live Limitless ALL
Accor***** 台北諾富特華航桃園機場飯店 - Novotel Taipei Taoyuan International Airport

Hotel Points Expiration Policies Roundup


HOTELS EXPIRATION TERMS
Best Western Rewards No expiration
Choice Privileges 24 months
Radisson Rewards (Club Carlson) 24 months
Hilton 12 months
Hyatt 12 months
Le Club Accorhotels No expiration with activity once per year
Marriott/Ritz-Carlton 24 months
Priority Club No expiration
Starwood No expiration with activity once per 12 months
Wyndham Rewards 18 months with no activity, and 4 years overall

Reward Point Mileage Values:

Amex  1.9-2.0c
Hyatt 1.5-1.8c/point
United 1.4-1.5/mile
Marriott 0.8-0.9c/point
IHG 0.5-0.7c/point
Hilton 0.4-0.6c/point
Radisson 0.4c/point
Capital One Venture 1c/mile

Amex 1.8
United 1.5
Hyatt 1.4
Marriott 0.8
Wyndham 0.8
IHG 0.6
Hilton 0.4
Radisson 0.4



MasterCard World Elite BenefitsCard benefits Trip Cancellation, Extended Warranty, Price protection, 90 days purchase assurance, 60 days $250 satisfaction guarantee
Visa Signature Benefits: 90 days Purchase Security, Warranty Manager Services, Auto Rental Collision Damage Waiver, Lost Luggage, Roadside Dispatch, Travel Accident Insurance, Travel and Emergency Assistance

Sapphire Preferred benefits $95 1:1(2.2 Sharewood) transfer, no Foreign Transaction Fee, Trip Cancellation Insurance, Auto Rental Collision Damage Waiver
Citi ThankYou Premier rewardboost review $125 1.33x redeem airfare, Spirit Incentives companion ticket, no FTF, Trip Cancellation Interruption Insurance, Auto Rental Insurance, thankyou preferred has FTF (pricing)

BoA Cash Back Rebate limit first $2500

To keep: BoA Premium, BoA Cash Rewards, Costco, Amex Gold, United, hotels (Hilton, Marriott, Hyatt, Radisson), Discover, Chase Freedom

TSA PreCheck Global Entry: United Explorer 7/24/2023, BoA Premium 7/2023, IHG 

*** Long Term Keep, 长期持有信用卡: BoA Premium Reward 2.625, Suparmarket 超市买菜 AMEX, Restaurant 吃饭 AMEX, Online BoA Cash, Gas Costco 4x 
*** Best Car Rental Insurance Primary, 租车保险: Chase Sapphire/United, BoA Premium Elite, Capital One Venture X, US Bank Altitude Reserve Infinite Visa, Bilt World Elite 
*** Priority Pass Select,  PPS 机场贵宾休息室: BoA Premium Rewards Elite, US Bank Altitude Connect/Reserve UAR 

All Other: BoA Premium 2.625
Supermarket/Costco: Amex 4, BoA Cash 3.5
Online Shopping $2500: BoA Cash Rewards 5.25

Gas: Costco 4
Dining/Restaurants: Amex 4, CSP 3.x1.6, BoA Premium 3.5 BoA Cash 3x
Airlines and fee: Amex 3x, BoA 3.5x $100, UA checked bag
Rental Car: United Explorer/CSP/USBank Altitude Reserve primary Auto Rental Collision Damage Waiver
Hotel travel: BoA Premium 3.5, Costco 3, through CSP 5x+$50
Streaming: CSP 3

In pocket:
* BoA Cash Rewards: 5.25X online shopping, 3.5X grocery, Costco 
* BoA Premium: 2.625x other, 3.5X travel, dining 
* Amex Gold: 4X dining, groceries, 3X flights 
* Costco: 4X gas, 3X restaurants, travel 

*Costco Anywhere Visa 4X (gas), 3X (restaurant, travel), 2X costco, benefits: no FTF trip cancellation, interruption

   World of Hyatt Credit Card benefits $95 4X, 2X (3.2+1 restaurants, airline, transit) 1X(1.6) free night for $15,000 (2.6), no FTF, trip cancellation interruption insurance, trip delay reimbursement, baggage delay, 120 day purchase protection, extended warranty, price protection, return protection, (Platinum 5/15 2pm checkout, bed/room type, internet), Diamond 25/50

*Marriott Reward Categories view hotels in category find, 1 free night for 2 summer stays
  Chase Credit Card benefit $95 6X 2X(1.8) free night cat 35,000 points 1-5, no FTF, trip cancellation, trip delay, Silver 10 late checkout, (15), gold 50 internet upgrade breakfast, platinum 75

   AMEX Hilton Honors Surpass/Ascend $95 weekend free night with 15K charge, 12X 6X (3.6 restaurant, supermarket, gas) 3X(1.8) no FTF
   AMEX Hilton Honors Card Silver free, 7X 5X(3.0) 3X(1.8), no FTF
   Hilton HHonors Reserve Card $95 10X 5X (3.0 travel) 3X(1.8) no FTF, trip cancellation interruption coverage, extended warranty, price rewind, Silver 4/10, (Gold 20/40 late check-out, eCheck-in, internet), Diamond 30/60

 IHG Rewards Club $89 5X 1X(0.6) free night, no FTF Gold 15, Platinum (40)

Radisson Rewards Premier $75 10X 5X(2.0) free night with 10K charge (3.0), has FTF, Auto Rental Damage Waiver Gold

Choice Hotels 2X(1.2)

Amazon Prime Rewards Visa Signature Card 5X (amazon), 2X(restaurant, gas, drugstore)

Capital One Venture $95 2X(2.0) travel award only, 10X Hotels.com until 1/2020


Skiplagged throwaway hidden-city ticketing, skiplagging, open last legged 


Extended-stay, upper moderate to low upscale segment
Hyatt House SummerField Suites 1998 + Sierra Hotels
Staybridge Suites IHG Holiday Inn 1998

Extended-stay, mid-tier mid-priced value-priced market
TownePlace Suites Marriott 1997
Mainstay Suites Choice Hotels 1997

Upper-moderate-priced, all-suite lodging
Ramada Suites Wyndham 1953
Comfort Suites, Quality Suites Choice Hotels 1980
Hawthorn Suites Wyndham 1983
SpringHill Suites Marriott 1999

Boutique hotels
IHG Hotel Indigo 2004
Hyatt Andaz 2007
Sheraton Aloft Hotels 2008

Selected-service
upscale mid-priced hotels that are designed for both business and leisure travelers
Four Points by Sheraton 1995

limited-service lower cost, economy brand
Days Inn Wyndham 1970
Baymont Inn & Suites Wyndham 1973
Comfort Inn Choice Hotels 1982
Hampton Inn Hilton 1983
Sleep Inn Choice Hotels 1989