Monday, March 31, 2014

Device browsers

iOS browsers:
http://lifehacker.com/5927910/five-best-ios-web-browsers/all

Safari
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D167 Safari/9537.53
Atomic Browser
Chrome
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/33.0.1750.21 Mobile/11D167 Safari/9537.53
Dolphin Browser
Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/6.0 Mobile/10A523 Safari/8536.25
iCab

Android browsers:
http://lifehacker.com/5925969/five-best-android-web-browsers/all
Firefox
Chrome
Dolphin Browser
Boat Browser
Opera Mobile


Convert Excel to CSV using UTF-8 encoding

On my mac OS X, Excel itself cannot directly save file as UTF-8 encoding. Here are the steps we can workaround.
  • Save file to UTF-16 text file
    Excel - Save as ... select "UTF-16 Unicode Text (.txt)"
  • Convert .txt file to UTF-8 format
    Sublime Text -> Save with Encoding -> Select UTF-8
  • Replace Tab with comma
    Sublime Text -> Replace using regular expression (\t to replace ,)
  • Rename file from .txt to .csv extension

Friday, March 28, 2014

CSS ellipsis

.ellipsis-2line{
  overflow : hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: block;
  // fallack for firefox which doesn't support ellipsis-2line
  max-height: 3em;
}

.ellipsis{
  overflow:hidden;
  text-overflow:ellipsis;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  white-space:nowrap;
  display: block;
}

Monday, March 10, 2014

Realtime frameworks, APIs and services

Right now we have SailsJS, SocketStream, Meteor (a full platform) and DerbyJS
API infrastructure provides such as 3Scale, Apigee, Layer7 Technologies, Mashape andMashery
Services like DataSift, Firebase, PubNub, Pusher and Superfeedr are in a great position. 
http://www.html5rocks.com/en/tutorials/webrtc/datachannels/