中国护照海外申请台湾自由行签证@新加坡

Categories: 分享; Tagged with: ; @ December 23rd, 2013 20:36

需要准备的资料可以从这里找到:

http://www.taiwanembassy.org/sg/ct.asp?xItem=81090&CtNode=6504&mp=286&xp1=

需要公司开证明信, 所以你可能需要事先准备好.

我的流程: 试图通过网上预约交资料, 但发现可选的日期太靠后, 于是准备资料当面去交.

第一次:  直接去交资料, 会告知领资料的日期;

第二次:  朋友持委托书(随便写的), 去领资料 + 快递;

第三次:  大概两周后朋友持委托书去领签证.   (说的是三周, 但是等不及, 结果最后真的是三周后拿到)

我办理的是一年多次进出的, 所以是一个本(入出境许可) + 一张纸(旅行团名单, 自己是团长).

Apache Flex 4.11 Released!

Categories: Flex; Tagged with: ; @ November 26th, 2013 20:46

Apache released Flex 4.11 on Oct 28. some improvement for DataGrid, AdvancedDataGrid, BitmapImage.

 

What’s new in Apache Flex v4.11.0?

The Apache Flex 4.11.0 SDK allows application developers to build expressive web and mobile applications using MXML for layout and ActionScript 3, an ECMAScript based language for client-side scripting.

The Apache Flex 4.11.0 release contains many improvements that professional software development teams will appreciate. This advances the framework forward. It is truly one of the best cross-platform programming languages used to write applications that are testable and can be compiled to run on multiple technology platforms from a single set of code.

Apache Flex 4.11.0 highlights include:

  • Support Flash Player 11.9.
  • Support for AIR 3.9.
  • 120 and 640 dpi mobile resolution/skin support, fixes to 480dpi skins.
  • mx:AdvancedDataGrid and mx:DataGrid speed improvements.
  • Added column sort type access to the datagrid columns in mx:Datagrid, s:Datagrid, and mx:AdvancedDataGrid.
  • Able to easily change mx:AdvancedDataGrid row and column item renderer spanning.
  • s:DataGridEditor will now be visible in ASDocs and be visible in the Tag inspector.
  • Minor changes to make SDK compile with Falcon compiler.
  • Added access to imageDecodingPolicy in BitmapImage.
  • Changed UIComponent removedFromStageHandler from private to protected to allow override
  • New experimental mobile spark datagrid.
  • Updated OSMF swc to latest version (2.0)
  • Renamed experimental supportClazzes package to be supportClasses.
  • Mobile Callout moved to spark and can be used in Desktop and Browser apps.
  • Support for [Experimental] metadata tag.
  • Over 50 bugs/issues were closed with this release

For more information on Apache Flex, visit the project home page:
http://flex.apache.org

AngularJS For Dummies

Categories: JavaScript; Tagged with: ; @ November 26th, 2013 20:38

Overview

Why AngularJS?

MVC:  Template(Html with AngularJS expression), Controller(no need to extend anything, pure JS function);

Data Binding: Easy to display/update data;

Routing & Multiple Views: build deep linking single page application;

Dependance Injection;

Testing;

Quick Start

AngularJS  tutorial:  key features in example http://code.angularjs.org/1.0.8/docs/tutorial

Seed Project: https://github.com/angular/angular-seed
    Please note that the ‘Seed project’ may not using the latest stable version. so probably you need to change the AngularJS js lib.

App.js

config the application, set route mapping. for example:

// Declare app level module which depends on filters, and services
angular.module(‘demo-app’, [
  ‘demo-app.controllers’,
  ‘user.service’
]).
config([‘$routeProvider’, function($routeProvider) {
    $routeProvider.when(‘/user, {templateUrl: ‘partials/user/list.html’});
    $routeProvider.when(‘/user/show/:id’, {templateUrl: ‘partials/user/details.html’});
    $routeProvider.when(‘/script’, {templateUrl: ‘partials/script/list.html’, controller: ‘scriptListCtrl’});
    $routeProvider.otherwise({redirectTo: ‘/user’});
}]);

Module

    Modules declaratively specify how an application should be bootstrapped. http://docs.angularjs.org/guide/module

In the seed project, the application break down into multiple modules like: Services, Directives, filters, ect,.

Basically, a module have two kinds of blocks:  ‘Configuration blocks’ and ‘Run blocks’. the ‘config(…);’ in App.js is ‘Configuration block’.  one typical difference is: in ‘Configuration block’ only can inject ‘Providers’ cannot inject instances.

http://stackoverflow.com/questions/10486769/cannot-get-to-rootscope
Data binding

<h1>User- Name: {{user.name}}</h1>
    <div>
        <form novalidate class=”angularJSForm”>
            Name:
                <input type=”text” ng-model=”user.name” required /> <br />
        </form>
    </div>
</div>

‘user’ is the model, and this instance is live in a ‘Scope’, each page have it’s own scope automatically, scope can be injected into controller.
Controller

No need to extend any interface, AngularJS takes the responsibility of injection:

function userDetailsCtrl($scope, $routeParams, $http, UserEditorService) {
    $scope.action = $routeParams.action;
    $scope.id = $routeParams.id;

      …
      $scope.onJobClicked = function(job) {
        $scope.currentJob = job;
      };

      $scope.showOrHide = function(job) {
        return angular.equals($scope.currentJob, job);
    };
}

Note: UserEditorService is a Service, AngularJS will inject the instance of the service to the controller.

You may inject the controller to a template by configuring app.js or set inside the template:

Service

How to create service:

var module = angular.module(‘user.service’, []);

module.service(‘UserEditorService’, function() {
        this.user;

        this.user= function(user) {
            this.user= user;
            console.log(‘Service\’s user updated’);
        };

        this.getUser= function() {
            console.log(“Get User: ” + this.user+ “, ” + this.toString());
            return this.user;
        };
    }
);

How to share data between different controller?

– There’s a global scope in AngularJS, however, I don’t think it’s a good way to share data using global scope;

– using service: ‘UserEditorService’ in ‘userDetailsCtrl’

JavaScript test framework

Jasmine: http://pivotal.github.io/jasmine/
Jasmine Maven Plugin http://searls.github.io/jasmine-maven-plugin/

With the help of “Jasmine Maven Plugin”, we can invoke the JavaScript Unit tests from Maven. this plugin contains a web server, we can check the test result via. browser.

How to run Test cases in Jenkins/Linux?

Jasmine Maven Plugin uses PhantomJS/HtmlUnit to execute JavaScript test. http://searls.github.io/jasmine-maven-plugin/phantomjs.html

you may specific the browser by modifying pom.xml. http://searls.github.io/jasmine-maven-plugin/test-mojo.html#browserVersion

Configuration Properties for Jasmine Maven Pluginhttp://gotofritz.net/blog/geekery/configuration-jasmine-maven-plugin/

How to run test cases and get the results?

mvn jasmine:bdd

This goal will start a build-in server, you may get/modify the port from pom.xml. Open any browser, then you can get the results based on the browser you’re using.

infinitest: Brilliant Continuous Test Runner for Java

Categories: Java; Tagged with: ; @ November 24th, 2013 11:49

A Continuous Test Runner for Java

http://infinitest.org

 

When you changed any test case or java code which is covered by test cases, Infinitest will invoke the test case automatically for you!

image

Financial Glossary For Dummies

Categories: Finance November 20th, 2013 0:05

Instrument

A financial instrument is a tradeable asset of any kind; either cash, evidence of an ownership interest in an entity, or a contractual right to receive or deliver cash or another financial instrument.

Pasted from <http://en.wikipedia.org/wiki/Financial_instrument>

1) Basically, any asset purchased by an investor can be considered a financial instrument. Antique furniture, wheat and corporate bonds are all equally considered investing instruments; they can all be bought and sold as things that hold and produce value. Instruments can be debt or equity, representing a share of liability (a future repayment of debt) or ownership.

2) Commonly, policymakers and central banks adjust economic instruments such as interest rates to achieve and maintain desired levels of other economic indicators such as inflation or unemployment rates.

3) Some examples of legal instruments include insurance contracts, debt covenants, purchase agreements or mortgages. These documents lay out the parties involved, triggering events and terms of the contract, communicating the intended purpose and scope.

Pasted from <http://www.investopedia.com/terms/i/instrument.asp>

Derivative

Futures contracts, forward contracts, options and swaps are the most common types of derivatives. Derivatives are contracts and can be used as an underlying asset. There are even derivatives based on weather data, such as the amount of rain or the number of sunny days in a particular region.

Derivatives are generally used as an instrument to hedge risk, but can also be used for speculative purposes. For example, a European investor purchasing shares of an American company off of an American exchange (using U.S. dollars to do so) would be exposed to exchange-rate risk while holding that stock. To hedge this risk, the investor could purchase currency futures to lock in a specified exchange rate for the future stock sale and currency conversion back into Euros.

Pasted from <http://www.investopedia.com/terms/d/derivative.asp>

Futures

A financial contract obligating the buyer to purchase an asset (or the seller to sell an asset), such as a physical commodity or a financial instrument, at a predetermined future date and price. Futures contracts detail the quality and quantity of the underlying asset; they are standardized to facilitate trading on a futures exchange.

Pasted from <http://www.investopedia.com/terms/f/futures.asp>

Options

A financial derivative that represents a contract sold by one party (option writer) to another party (option holder). The contract offers the buyer the right, but not the obligation, to buy (call) or sell (put) a security or other financial asset at an agreed-upon price (the strike price) during a certain period of time or on a specific date (exercise date).

Pasted from <http://www.investopedia.com/terms/o/option.asp>

The primary difference between options and futures is that options give the holder the right to buy or sell the underlying asset at expiration, while the holder of a futures contract is obligated to fulfill the terms of his/her contract.

Forward Contracts

Forward contracts are very similar to futures contracts, except they are not exchange-traded, or defined on standardized assets.

Swap

wip.

 

OTC

Over-the-counter

Over-the-counter (OTC) or off-exchange trading is done directly between two parties, without any supervision of an exchange. It is contrasted with exchange trading, which occurs via these facilities. An exchange has the benefit of facilitating liquidity, mitigates all credit risk concerning the default of one party in the transaction, provides transparency, and maintains the current market price. In an OTC trade, the price is not necessarily made public information.

Investopedia explains ‘Over-The-Counter – OTC’:

In general, the reason for which a stock is traded over-the-counter is usually because the company is small, making it unable to meet exchange listing requirements. Also known as “unlisted stock”, these securities are traded by broker-dealers who negotiate directly with one another over computer networks and by phone.

Newer Posts <-> Older Posts



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.