2014年5月26日 星期一

國際匯款大PK

「為什麼銀行說會有看不見的手續費用?」
「台灣匯到澳洲的手續費要多少錢?」
「要怎麼匯學費到澳洲?」


諸如此類的問題,我想每個到澳洲打工渡假的新手背包都曾經碰過。
不論是在櫃台和櫃員雞同鴨講或是家人問什麼都答不出來,只聽到一堆艱澀的專有名詞等等,
都讓我們在這裡一起為大家解答,和比較全台灣20間銀行的匯款手續費,讓你不會花冤枉錢喔。: )


也就是說,如果我們是單純的匯款,第一銀行、彰化銀行、富邦銀行、玉山銀行、台灣銀行都是不錯的選擇。

然後讓我們來開始超熱門的Q&A,解答大家的疑問。

Q1.國際匯款到底有哪一些手續費用要支付?
A1.其實總共有三筆手續費要支付,分別是,匯出手續費、中間銀行費用、匯入手續費
     匯出手續費:你拿去做匯款的銀行收取的。(台灣的話就是上面這20間費用的比較可以參考)
     中間銀行:國際間的匯款一定會透過中間銀行,但中間銀行每一次匯款時都不一定會相同,每間收的費用也不一樣
                  所以銀行也無法知道會被收取多少,除非用全額匯達不然會直接從匯出款項裡扣款!
     匯入手續費:收款銀行所收取的,每一間銀行也都不同。(如果是澳洲Commonwealth收的是$20 )
     
Q2.什麼叫全額匯達??
A2.簡單說就是我要確保我匯的金額到達匯入行時一塊不差。所以我在匯出時就自行支付中間銀行的費用。
     但因為其實銀行無法肯定確切金額,通常會要我們支付絕對不會不夠的金額~也就是往往都付多了~
     所以除非必要,其實不需要全額匯達喔!!

Q3.那匯款會不會匯錯或匯不見?
A3. 匯款一定會需要的"銀行名稱、銀行地址、帳戶名稱、受款帳號、swift code"
     只要有一個字母錯了就會立刻被通知退匯~(通常走出銀行24小時內就會接到通知)
     所以匯錯的機率其實非常低的喔!!

Q4.匯款大概幾天會收到?
A4.大概3~5個工作天就會收到喔!!

Q5.匯學費的話有需要全額匯達嗎?
A5.的確正常來說學費是不應該有短缺的。但有鑑於近來許多學生碰到行員無法理解意思,
     加上全額匯達的手續費高昂,也不是全部銀行都可以做全額匯達,
     所以,可以不需要喔!!~只要單純匯出學費單上的金額,真的金額有短缺的話,到學校再補現金就好。
     PS.千千萬萬不要聽行員說而匯比學費更多的金額喔,之後請學校退款會很麻煩的!!

大家在填寫匯款單時要小心仔細的填寫喔!!如果在匯的當下有問題或不太確定的話,請直接打電話給我們喔!~: ))

reference : http://abcwithyou.pixnet.net/blog/post/45084650-%E5%9C%8B%E9%9A%9B%E5%8C%AF%E6%AC%BE%E5%A4%A7pk

2014年5月12日 星期一

Form Autocomplete and Remember Password with AngularJS

Recently a user complained about the log in form not saving the credentials.This is a common problem with AJAX and single-page applications. But I decided to get to the bottom with it.
The UserApp “dashboard” is built with the JavaScript framework AngularJS, and it doesn’t play along very well with the “save password” feature. These are the issues I addressed:
  1. The form cannot be dynamically inserted into the DOM.
  2. The form must perform an actual POST request.
  3. When the browser autofills the fields, the scope doesn’t get updated.
Firefox was easy, all it required was that the form had a name attribute.
name="login-form" ng-submit="login()"> id="login" name="login" type="text" ng-model="user.login"> id="password" name="password" type="password" ng-model="user.password">
firefox - remember password
But when Firefox autofills the fields the scope doesn’t get updated. So I googled and found some hacks for it. But for the scenario I tried to solve, this felt overkill. Because that was needed was the login and password form values after the form had been submitted. So no need for any fancy two-way bindings with some ugly hacks on top of it. Thats why I went with this solution. Good ol’ fashion DOM access (with jQuery):
$scope.login = function() {
    $scope.user = {
        login: $("#login").val(),
        password: $("#password").val()
    };
    ...
    return false;
};
Now it works in Firefox. What about Chrome?
Well, it turns out that Chrome only shows the save password dialog if the form submit actually passes, which would destroy our AJAX request.
Here’s a solution to the problem:
  • When the form get posted, do the AJAX request to authenticate the user in ng-submit and return with false to abort the form submission.
  • If it succeeds, save the session in a cookie and just post the form again and return with true this time.
  • When the page reloads it finds the session cookie and redirects the user to the home screen.
Sure, it makes the page to reload but it’s only once when logging in to the app. Make sure that the form gets posted to same page.
Solution? Add a hidden form to index.html and copy the other form’s parameters into it when it’s getting submitted.
I wrapped this up with a directive:
app.directive("ngLoginSubmit", function(){
return {
    restrict: "A",
    scope: {
        onSubmit: "=ngLoginSubmit"
    },
    link: function(scope, element, attrs) {
        $(element)[0].onsubmit = function() {
            $("#login-login").val($("#login", element).val());
            $("#login-password").val($("#password", element).val());

            scope.onSubmit(function() {
                $("#login-form")[0].submit();
            });
            return false;
        };
    }
};
});
Hidden form on index.html:
name="login-form" id="login-form" method="post" action="" style="display: none;"> name="login" id="login-login" type="text"> name="password" id="login-password" type="password">
Log in form template:
name="login-form" autocomplete="on" ng-login-submit="login"> id="login" name="login" type="text" autocomplete="on"> id="password" name="password" type="password" autocomplete="on">
The login controller:
$scope.login = function(submit) {
    $scope.user = {
        login: $("#login").val(),
        password: $("#password").val()
    };

    function ajaxCallback() {
        submit();
    }   

    return false;
};
re-post warning
Now it works fine, except that every time you press F5 the browser asks if you really want to resend the “form”. This is pretty annoying, so I fixed it by creating a new page, pre-login.html, and posted the hidden form to it instead. This page then redirects back to the app (index.html).
Everybody happy!

reference : http://timothy.userapp.io/post/63412334209/form-autocomplete-and-remember-password-with-angularjs

2014年5月4日 星期日

Result of toJSON() on a date is different between IE8 and IE9+

Prior to ES5, parsing of dates was entirely implementation dependent. IE 8 (and lower) won't parse the ISO 8601 format specified in ES5, so just parse it yourself:
// parse ISO format date like 2013-05-06T22:00:00.000Z
function dateFromISO(s) {
  s = s.split(/\D/);
  return new Date(Date.UTC(s[0], --s[1]||'', s[2]||'', s[3]||'', s[4]||'', s[5]||'', s[6]||''))
}
Assumes the string is UTC.

reference : http://stackoverflow.com/questions/17592717/result-of-tojson-on-a-date-is-different-between-ie8-and-ie9

2014年4月28日 星期一

21種集體拍照姿勢,不要再傻傻得站一排了!

21種集體拍照姿勢,不要再傻傻得站一排了!


嫩芽 |  中校 |  發送訊息 | 檢舉 
發表於: 2014/04/28 11:57 am (1天前)
家人朋友同事各種聚會、旅遊,總是排排站嗎?學學了下面21種集體照經典拍照姿勢,讓大家的的聚會、旅遊留下美好的回憶吧~

1、一群朋友的趣味合照,一起跑、一起跳,都能增加歡樂感。



2、有點像前一個的變奏,同樣選一個做最前,然後其他人好像探頭出來的樣子,你可以透過控制光圈大細,來決定誰會清晰於畫面。



3、當拍攝一大群人時,你不可能控制每個人的動作與表達方式,但你應留意整體的構圖,將全體視為一個主體來拍照,同時注意是否每個人都有露面。



4、這種各自站立的合照,頗適合小組團隊,例如一支樂隊,然後讓主力、重心人物站在中間及站前一點,會有突出效果。



5、這種方式是很自然、普通的朋友間合照,很普通,但是很容易拍出效果,所以很不錯。



6、試著橫排合照之餘,從旁邊拍攝,選擇大光圈,同時對焦於最接近的那一位,會得到淺景深效果,遠一點的人雖然變得模糊,但出來的感覺會很有趣。



7、拍攝一大群人時,以全身照拍攝是最可行、最常用的方式,也用作記錄及公式合照,拍攝時須注意是否每人都露面。



8、選一個做最前面的那位,然後一個跟一個靠著前面那個來站著合照,這樣整體的投入感會很強,也很有氣氛。(雖然很像八十年代的樂隊CD封面……)



9、圍圈躺下,頭貼頭,在戶外的草地之類會是有趣的拍攝方式。



10、這個比起普通合影有趣一點。請所有人靠近,尤其是頭部要靠攏多一些,並擁向鏡頭。



11、可以的話,在高角度例如走上露台或是屋頂來拍攝團體照,會是不錯的選擇,照片會變得更有吸引力、更有趣。



12、這個也是從背面拍攝,不過姿勢略有改變。



13、這種拍攝姿勢,適合在戶外草地或是自家床上,感覺會很有趣,而且有復數的孩子也會非常好玩。



14、一家人俯臥在地,同時以雙手撐起上身,拍攝時以低角度為佳。



15、同坐在沙發上,而這種姿勢感覺會十分親密。 



16、也是一同坐在沙發上,但這次試試從沙發的背面來拍攝,你會得到截然不同的效果。 



17、一家人在戶外合照的輕鬆方式,就是坐在草地上之類,留意拍攝時與他們保持視線水平。



18、這是最基本的家庭合照,一家人坐在或靠在沙發上,然後如果盡可能把照片剪裁,將不需要的家具等移除於照片外,效果會更好。



19、很基本而舒適的全身合照,而且也不論家庭成員的數字,同樣可以做得不錯。



20、由父母背著子女來拍攝合照,會是另一種很親密的拍攝姿勢。



21、讓一家人手牽手迎面走過來,連續拍攝,選擇各人步伐最好的一張,留意對焦情況。



~~~圖文網路轉載

2014年4月24日 星期四

MD5 hashes and salt

I figured a simple way to use salt, but to also make it almost impossible to break unless you know at least how long the password was.
SUBSTRING(MD5( username + password ),MOD(LENGTH( password ), 12) +10 ) || MD5( username + password ), 0, MOD(LENGTH( password ), 12) +10 )
So basically, I do an MD5 on the combined username and password. Then, I look at the length of the password and split the resulting MD5 in two. Then i take the back half and put it at the front, thus making any lookups via rainbow table, etc. yield invalid results.
So for example, so I wanted to do it for “user” and “default”: the MD5 for “userdefault” is “4b4f5e65f81dc293b6d7a22e081e45ef”. But, since “default” is 7 characters long, then the mod calculation returns 5+10, so 15. Then the MD5 is split and reversed like so: “4b4f5e65f81dc293 b6d7a22e081e45ef” => “b6d7a22e081e45ef4b4f5e65f81dc293″
To further add a twist, you could modulus the ascii value of a designated character in the password to use for splitting (just make sure that the resulting math returns something under the 32 hex digits that make up the md5…. hence why I used mod and then added 10 so that the resulting MD5 is split SOMEWHERE close to the middle.)

2014年4月7日 星期一

2014年3月18日 星期二

公司请你来干嘛?(句句令人震撼,不看有点遗憾!)

2014-01-08 牙医在线 胶州市隋洪志牙科

公司请你来干嘛?(句句令人震撼,不看有点遗憾!)



公司请你来做什么? 
请你来是解决问题而不是制造问题
如果你不能发现问题或解决不了问题,你本人就是一个问题
你能解决多大的问题,你就坐多高的位子 
你能解决多少问题,你就能拿多少薪水
让解决问题的人高升,让制造问题的人让位,让抱怨问题的人下课

【问题就是你的机会】
1、公司的问题:就是你改善的机会;
2、客户的问题:就是你提供服务的机会;
3、自己的问题:就是你成长的机会;
4、同事的问题:就是你提供支持建立合作机会;
5、领导的问题:就是你积极解决获得信任的机会
6、竞争对手的问题:就是你变强的机会。

不要轻易离开团队,否则你要从零做起:
1、不要老想着做不顺就放弃,哪个团队都有问题,哪个团队都有优点。
2、跟对领导很重要,愿意教你的,放手让你做的领导,绝对要珍惜。
3、团队的问题就是你脱颖而出的机会,抱怨和埋怨团队就是打自己耳光,说自己无能,更是在放弃机会!
4、心怀感恩之心,感谢系统给你平台,感谢伙伴给你配合。
5、创造利润是你存在的核心价值,创业不是做慈善。 
6、遇到问题请先思考,只反映问题是初级水平,思考并解决问题才是高级水平。 

谁能最后享受到胜利成果?
第一:能始终跟着团队一起成长的人。 
第二:对团队的前景始终看好的人。 
第三:在团队不断的探索中能找到自己位置的人。 
第四:为了团队新的目标不断学习新东西的人。
第五:抗压能力强且有耐性的人。
第六:与团队同心同德、同舟共济、同甘共苦的人
第七:不计较个人得失,顾全大局的人。 
第八:雄心博大,德才兼备,有奉献的人! 

只为成功找方法,不为失败找借口
第一段
你的责任就是你的方向,
你的经历就是你的资本,
你的性格就是你的命运。

第二段
复杂的事情简单做,你就是专家;
简单的事情重复做,你就是行家;
重复的事情用心做,你就是赢家。

第三段
美好是属于自信者的,
机会是属于开拓者的,
奇迹是属于执著者的!
你若不想做,总会找到借口; 
你若真想做,总会找到方法!

对领导而言:爱他就严格要求他!
1、对你有严格要求的领导,才是能真正帮助你成长的好领导,使我痛苦者,必使我强大!
2、任何强大公司都不会给下属安全感,用最残忍方式激发每个人变得强大,自强不息!
3、凡是想办法给下属安全感的公司都会毁灭的,因为再强大的人,在温顺的环境中都会失去狼性!
4、凡是想方设法逼出员工能力,开发员工潜力的公司都会升腾不息,因为在这种环境下,要么变成狼,要么被狼吃掉!
5、最不给员工安全感的公司,其实给了真正的安全感,因为逼出了他们的强大,逼出了他们的成长,也因此他们有了未来!
6、如果真的爱你的下属,就考核他,要求他,高要求,高目标,高标准,逼迫他成长! 
7、如果你碍于情面,低目标,低要求,低标准养了一群小绵羊、老油条,小白兔。这是对下属最大的不负责任! 因为这只会助长他们的任性、嫉妒和懒惰。
让你的下属因为你而成长,拥有正确的人生观,价值观,并具备了完善的品行。
让员工不断的成长,就是领导对下属最伟大的爱


reference : http://mp.weixin.qq.com/s?__biz=MjM5MTUzODA4MQ%3D%3D&mid=10012311&idx=3&sn=65dd4c9b917165829058b672c27af6fe&scene=4#rd

wibiya widget