Eureka! View RSS

Dream BIG and go for it =)
Hide details



Boatswain Public BETA-I released 8 Jun 2018 12:30 AM (6 years ago)

Finally…

It has been almost 3 years (Early August 2015) since we came up with the idea of Boatswain and today our first public beta is…


🌈 Sign up for a Boatswain account 🌈

Why it takes so long?

🐢

Time to market is important.

🙈

I have heard many sincere advice in the past two years from my friends and I would like to thank everyone of them who has spent their time on Boatswain. And most importantly, I would like to express my deep appreciation to Steven Yeung, another Founder of Boatswain. He is the core “Engineer” of the project and without him it definitely needs to take three more years to deliver this release.

I don’t want to make a 30 mins article although i got a lot of words which i want to say. We hope to keep working on Boatswain but we need your help to make it better and if you have any question, suggestion or any comment just drop us a message. Your feedback is most welcome and highly appreciated. Thanks! 🙏

— Originally posted on Boatswain Blog.

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

My new blog address 4 Jan 2018 1:52 AM (7 years ago)

GO TO MY NEW BLOG!

Boatswain

Boatswain is a SAAS platform where you could VIEW your Docker application Status, ANALYSE the Logs from all the Containers and GET real time Notification on Events.

Haven’t posted for 3 years. Apologize for not responding since 2015.

I have been working on a SaaS service called Boatswain.

Please follow our twitter @BoatswainIO as well!

Boatswain

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

2015 in review 5 Jan 2016 6:14 PM (9 years ago)

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 730,000 times in 2015. If it were an exhibit at the Louvre Museum, it would take about 31 days for that many people to see it.

Click here to see the complete report.

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

名言一百二十二 7 Oct 2015 8:00 PM (9 years ago)

The struggle of man against power is the struggle of memory against forgetting.

Milan Kundera

milankundera

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

HTML – Hide the broken icon when the is not yet loaded 6 Oct 2015 8:00 PM (9 years ago)

Updated @ 2015-10-12: The following snippet could get rid of the broken icon without using CSS and JS.

<svg class="card__image" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1920 500" preserveAspectRatio="xMidYMid slice">
  <image width="1920" height="500" xlink:href="" ng-href="{{ image.href }}"></image>
</svg>

 

Thanks Wouter De Loose.

 

i have the following <svg> in an AngularJS template and the image source would be assigned by the controller which loaded the image info from a .json file.

<svg class="card__image" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1920 500" preserveAspectRatio="xMidYMid slice">
  <image width="1920" height="500" xlink:href="{{ image.href }}"></image>
</svg>

 

It works fine on my local machine but when i put it on a webserver. There would be a flash of the broken image before the image is loaded.
svg-image-broken
 

I tried many methods but still no luck. Finally, i have to set the image to hidden in CSS and listen to the image onload event to make it visible.

<svg class="card__image" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1920 500" preserveAspectRatio="xMidYMid slice">
  <image width="1920" height="500" xlink:href="{{ image.href }}" onload="jQuery(this).css('visibility', 'visible');"></image>
</svg>

 

Done =)

Reference: StackOverflow – Is it possible to listen image load event in SVG?

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

HTML – Hide the default broken image icon 5 Oct 2015 8:00 PM (9 years ago)

<img src="Error.src" onerror="this.style.display='none'"/>
<img src="Error.src" onerror="this.src='fallback-img.jpg'"/>

The above method also works for the <image> in <svg>.

Reference: StackOverflow – How to hide image broken Icon using only CSS/HTML (without js)

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

文.堺雅人 5 Sep 2015 7:46 PM (9 years ago)

因為電視劇而被堺雅人界深深吸引,估唔到佢除了演藝才華還會寫作。

這書集合了堺雅人在以往演藝生涯中寫下的散文,當中包括工作中與他學生時代的軼事,例如他如何加入戲劇社、接到劇本後怎樣揣摩角色等等,十分喜歡他那謙虛與自嘲的風格。

文.堺雅人

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

AngularJS – Render HTML in template 24 Aug 2015 9:00 PM (9 years ago)

If you have a $scope variable containing a HTML string, the following example would escape the HTML and print it strictly to the screen.

Controller

$scope.htmlString = "<h2>Hello World</h2>";

Template

<div>{{ htmlString }}</div>

 

If you want to render HTML, add a filter.

app.filter('unsafe', function($sce) { return $sce.trustAsHtml; });

 

Then in the template

<div ng-bind-html="htmlString | unsafe"></div>

 

Done =)

Reference: StackOverflow – How do you use $sce.trustAsHtml(string) to replicate ng-bind-html-unsafe in Angular 1.2+

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

陶傑 – 暴動是非 16 Aug 2015 2:00 AM (9 years ago)

一九六七年反英暴亂,因為大紫荊愛國老英雄之死,又引發一場是非之爭。

有人倡議:要「重新評價六七」,因為一九六七年的暴亂之前,「港英」治下的香港,窮人受壓迫,所以愛國同胞起來放炸彈,紅燒英國白皮猪、生劏警察黃皮狗,還是有道理。

英治時代,一九六七年的香港,確實有許多窮人。但都是一九四九年之後中國難民大舉南逃,進入香港躲避的結果,中國的內戰,自相殘殺,五十年代初,難民湧來一百萬。不久之後,偉大領袖毛主席又「大躍進」,餓死四千萬中國人,一九六二年,廣東飢民翻山越嶺,又逃來幾十萬。

英國人建公屋的速度,追不上中國蟻民逃避中國統治而用腳投票的逃跑速度,於是英國人慈悲為懷,撥出許多山頭,讓你木屋棲身。

英治時代,一九四九年之後,香港的窮人不是英國製造的,是中國人殘酷不仁的政治的自我排洩。英國自己,戰後也很窮,艾德禮的英國工黨政府要派經濟學家凱恩斯借錢,英女皇沒有錢拿來香港派,美國教會的傳教士倒是派了不少奶粉。然後就是所謂「窮人受壓迫」的真相。

英資在香港,太古、怡和。太古的船塢,有不少工人,沒聽說過欠工人薪金不給,工人要跳樓的,相反今日大陸工廠欠薪不付,是家常便飯。太古也沒有一個英國人,用鞭子抽打中國工人,反而富士康卻有勞工不斷跳樓。還有就是怡和了。怡和有壓迫偉大的中國人民嗎?你問問由怡和僱用的愛國文化英雄羅孚的四公子羅海雷,他在怡和十多年,步步高陞,當了馬會會員。

有人終於挑出一條毛:一九六六年天星小輪加價,引發騷亂,天星小輪就是怡和大股東。

加價是因為通脹。二十年來,大陸的東江水加過幾次價?加的不止五仙,你為什麼不暴動?

那時有沒有壓迫剝削呢?有!都是華資的工廠:製衣、原子粒收音機、玩具,全是香港黃臉孔的老闆在剝削。

引發六七暴亂的新蒲崗那家人造膠花廠,勞資糾紛,也是中國人開的。壓迫勞工的,包括「中華總商會」的一干紅色老闆,關英國人屁事?英國人替毛周,很有效地賺外匯,「睇住個場」,功不可沒。

當然,英國人沒有「保障勞工權利」。但不要忘記:若保障勞工權利,成本增加,誰還會在香港設廠?難民由誰來養?香港的繁榮,不是靠剝削窮人嗎?中國大陸今日的礦工、廉價勞工,被剝削得更慘,你為什麼不去大陸領導暴動?

明明是你自己極左癲癇症發作,卻賴「港英」。中國人講歷史,開口不眨眼的謊話,像你開了水喉,看見源源流出來的東江水。

陶傑
2015-05-27

Reference: 暴動是非

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

陶傑 – 九月三日 15 Aug 2015 8:00 PM (9 years ago)

梁班子的新聞資訊專員「白宮發言人」,與香港學者爆發罵戰。因為學者質疑梁班子為何跟隨大陸,選擇九月三日「抗戰勝利日」放假。

發言人在日本的北海道,旅行疏扶,卻批判學者「罔顧父執輩在日本鐵蹄下的感受,數典忘祖」,引起網民恥笑。

但凡你一聽見中國人開口罵另一個疑似中國人「數典忘祖」、而且還牽扯進日本的時候,經驗告訴你,必定又有笑話爆發了。

因為中國人在日本面前,不管有沒有忘記什麼「父執輩在日本鐵蹄下」的「感受」是苦是樂,以「愛祖國、用國貨」、「不忘日本侵略、抵制日貨」的一連串喊過許多遍的愛國口號來驗證:「數典忘祖」是每一位炎黃子孫必然的選擇。

日本的「鐵蹄下」感受如何,討厭政治的你當然不想知道,但是以康泰永安多年的服務,身為香港消費者,你一定會知道在九州的櫻花樹下,以及像梁班子的發言人身在的北海道的琉璜溫泉湯裏,感受都很美好。

現在,天可憐見,安倍首相起了慈悲心,放寬了中國人來日本的旅遊簽證了,所以更多的大陸炎黃子孫,也可以跟香港人和梁班子這位新聞專員一樣,能一起分享櫻花和溫泉的美好感受。我當然知道,許多香港人私下講真心話,說如果沒有強國人逼爆,日本櫻花溫泉的感受會倍加美好,不,我不會這樣偏激。日本能普渡苦海眾生,包括大家都能買到優質奶粉,讓中國的寶寶吃得健康白胖,總是一件好事。

所以,當香港一位富豪之子,教香港年輕人怎樣月賺一萬五千元還可以買房子,叫他們「睇少D戲,少去點日本」時,實在令人大駭。

因為看少點電影,尤其港產片,很容易──想支持港產片也沒辦法──但是不去日本,怎麼可以,香港人如果不去日本,是會像鯨魚集體擱淺一樣,會一起死掉的。不信?隨便問問哪一個港女好了。

至於放假,香港以前在太平洋戰爭日本向英軍投降的八月三十日的「重光日」,都有緬懷日治時期的感受。當然,不是每一個香港人的父執輩在日治時期都苦,有的也很樂,像香港人胡仙女士的爸爸胡文虎老先生,是賺大錢的。不信,發言人可以去問問。

只不過一天假期,不要爭吵好嗎?九月三日總之放假,香港是自由社會,你可以留在家慢慢緬懷你的父執輩當年怎樣給日本憲兵打耳光,他也可以選在這天啟程去北海道看早楓。這一天,香港的東瀛遊旅行社,還照樣依法出團。

陶傑
2015-05-25

Reference: 九月三日

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?