Recently we are discussing how to display iOS or Android Emoji on the web as Twitter can display Emoji since April 2014
Did a bit research, and the key part is still about standards. If we need display Emoji, we need a mapping table between unicode and emoji, then do text replace with corresponding emoji icons.
Here are some useful links:
http://www.iamcal.com/emoji-in-web-apps/
http://apps.timwhitlock.info/emoji/tables/unicode
https://github.com/Genshin/PhantomOpenEmoji
https://github.com/github/gemoji
http://unicode.org/~scherer/emoji4unicode/snapshot/utc.html
http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters
Tuesday, April 15, 2014
Monday, April 14, 2014
Private browsing will cause QUOTA_EXCEEDED_ERR
If your web site uses local storage, and when user does private browsing your website, it might break. The reason is local storage will not be able to store anything if phone is using private browsing.
Suggest to use Modernizr or below script to do detect. (Try-catch might also work?)
if (!!window.localStorage)
{
localStorage.setItem(key, val);
};
Suggest to use Modernizr or below script to do detect. (Try-catch might also work?)
if (!!window.localStorage)
{
localStorage.setItem(key, val);
};
Friday, April 11, 2014
SVN trunk, branches and tags
- A trunk in SVN is main development area, where major development happens.
- A branch in SVN is sub development area where parallel development on different functionalities happens. After completion of a functionality, a branch is usually merged back into trunk.
- A tag in SVN is read only copy of source code from branch or tag at any point of time. tag is mostly used to create a copy of released source code for restore and backup.
Read more: http://javarevisited.blogspot.com/2013/04/difference-between-trunk-tags-and-branch-svn-cvs-git-scm-subversion.html
The practice we are using in daily work is
1. Work on trunk and commit for main release
2. Branch out from released tag for EP/SP
3. Tag for each main release
- A branch in SVN is sub development area where parallel development on different functionalities happens. After completion of a functionality, a branch is usually merged back into trunk.
- A tag in SVN is read only copy of source code from branch or tag at any point of time. tag is mostly used to create a copy of released source code for restore and backup.
Read more: http://javarevisited.blogspot.com/2013/04/difference-between-trunk-tags-and-branch-svn-cvs-git-scm-subversion.html
The practice we are using in daily work is
1. Work on trunk and commit for main release
2. Branch out from released tag for EP/SP
3. Tag for each main release
Thursday, April 10, 2014
base href needs forward slash at the end
HTML document or iframe head section can have this tag to specify a default URL and a default target for all links on a page:
<base href="URL" />
<base href="http://www.w3schools.com/images/" target="_blank" />
href for relative paths
target for click link behavior
The URL needs forward slash (/) at the end, otherwise it will not work as expected.
http://www.w3schools.com/tags/tag_base.asp
<base href="URL" />
<base href="http://www.w3schools.com/images/" target="_blank" />
href for relative paths
target for click link behavior
The URL needs forward slash (/) at the end, otherwise it will not work as expected.
http://www.w3schools.com/tags/tag_base.asp
Subscribe to:
Posts (Atom)