Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts

Wednesday, March 4, 2015

Ionic Route TemplateUrl Not Found Issue

Note that both of the following are working in browser & simulator, even run directly on the phone is good. However, when you package the app and install it on your phone, the template file will not be found.

This is a tricky one because when the app installed on the phone, unlike web deployment, it most likely is not installed at root of your phone, thus, it cannot find the file.

To solve this, just trying to avoid starting with '/' in your url mapping.

CORRECT

app.config(function($stateProvider, $urlRouterProvider) {

  $stateProvider
  .state('home', {
    url: '/home',
    templateUrl: 'template/list.html'
  });

  $urlRouterProvider.otherwise("/home");
});

WRONG

app.config(function($stateProvider, $urlRouterProvider) {

  $stateProvider
  .state('home', {
    url: '/home',
    templateUrl: '/template/list.html'
  });

  $urlRouterProvider.otherwise("/home");
});




Wednesday, February 11, 2015

[Mac OS] [Android SDK] [Ionic] [How to Fix] ionic platform add android - ANDROID_HOME is not set and "android" command not in your PATH.

  1. Download Android SDK & Unzip it
  2. Setup Environment Path
    • Open terminal, run 'vi ~/.bash_profile'
    • Add the following lines in that file
      • export ANDROID_HOME=/Users/Ian/Documents/Dev/android-sdk-macosx
      • export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
    • Save & Exit
    • Run 'source ~/.bash_profile'
  3. Make sure you have the write permission for the sdk folder.
    • Run 'chmod -R 777 <Your sdk path> 
      • (e.g. chmod -R 777 /Users/xxx/Development/android_sdk_mac).
    • This is really important. I have spent a lot of time figuring this out. If you don't have the write permission, ionic will always throw 'ANDROID_HOME is not set and "android" command not in your PATH' error even if you have correctly set up all the environment variables and path.

Monday, July 4, 2011

15本Web开发人员应该拥有的免费电子书籍

当今互联网已经成为每一个人的信息知识来源。假如你想学习任何事情,可以很容易在互联网上轻松找到相关的信息,即使它是很简单的事情。在互联网上有成千上万的教程和指南可以用来学习与工作相关的技术和内容。

Web开发人员同样也经常通过互联网获取关于HTML和编码的相关知识。为了帮助这些开发人员,以下是我们收集的一些优秀电子书供大家学习。

1. HTML5 Quick Learning Guide




如果您想学习HTML5,这本电子书将帮助您学习所有HTML5的基本标签元素。

2. Head First HTML with CSS and XHTML




有了这本电子书,你可以使用HTML和CSS技术轻松地创建基于标准的网页。

3. Best Practices for Developing a Web Site




这是一个很好的电子书,将引导你建立一个网站和计划项目,无论你正在开发一个内部网站或外包项目。

4. HTML Wtf?




这本书简要概述了由HTML5带来的变化。

5. HTML And XHTML




一个了解HTML和XHTML的简单而全面的指南。

6. Javascript Programming for The Absolute Beginner




对JavaScript不了解?不要担心,这本书将帮助你学习JavaScript,即使你不知道任何关于JavaScript的知识。

7. Dive into Accessibility




这本电子书回答了一些关于如何建设一个网站的简单问题。

8. Getting Real




这本电子书介绍了在建设一个网站时需要注意的一些问题。

9. Web Design in a Nutshell




这本书包含了CSS与XHTML编码和Web设计所有相关的信息。

10. Foundations of Ajax




本书介绍了Ajax技术到现有应用或新开发应用程序所需要所有工具。

11. Up to Speed on HTML5 and CSS 3




介绍关于新兴的HTML5和CSS3标准。

12. Learning PHP 5




这本将帮助你学习PHP5拥有的一些高级功能,如面向对象功能和对XML与Web Services的支持等。

13. 20 Things I Learned about Browsers and The Web




这本书包含了所有你想了解的关于网站、Cookie和历史记录等知识。

14. Web Style Guide: 3rd Edition




这本书将告诉你如何使你的网站更容易让大家使用。

15. Essential Javascript and JQuery Design Patterns




通过这本电子书,你将学习到如何使用Javascript和jQuery设计模式。