Profile

Cover photo
黃大衛
Attends Java
53 followers|3,358 views
AboutPostsPhotosVideos+1's

Stream

黃大衛

Shared publicly  - 
 
Xbox One amazing features:

Fast.
Multitasking.
Snap mode.
Runs three operating systems.
Instant conversational voice recognition.
Live TV.
New Kinect gestures.
Internet Explorer.
Skype.
1
黃大衛's profile photo
Add a comment...

黃大衛

Shared publicly  - 
 
"We will retire Messenger in all countries worldwide in the first quarter of 2013."

:(

http://blogs.skype.com/en/2012/11/skypewlm.html
1
Tiffany Lei's profile photo黃大衛's profile photo
2 comments
 
+Tiffany Lei Yes. Windows Live Messenger, MSN Messenger, and Windows Messenger will be retired. :(
Add a comment...

黃大衛

Shared publicly  - 
 
Opera Dragonfly - Experimental build with event listener inspection and function source tooltips
1
Add a comment...

黃大衛

Shared publicly  - 
 
Arg, %E2%80%8B!
 
Why are there zero-width spaces in Facebook URLs?

Over on Facebook, +Steven Pemberton observes that Facebook are adding zero-width spaces into URLs mentioned in posts, so you can't cut and paste them into web browsers, but must click through the Facebook redirector instead. This is performed on the text of a URL string, not the hyperlink, which links as expected to the redirector.

(Zero-width spaces are special characters that don't take up any space or display on the screen, but they form part of the sentences they're in so you'll pick them up if you copy a sentence to the clipboard.)

Because I can't link to his post so that you can see it, here's a relevant quote about his experience:

"I just tried it in three browsers. It looks like Chrome elides the extra characters, but Firefox and Opera both kept them in, thus giving a 404. This is what it looked like in Firefox: http://www.guardian.co.uk/educ%E2%80%8Bation/2011/oct/24/university-a%E2%80%8Bpplicants-drop-tuition-fees"

Whatever you think about redirectors, this particular practice is plainly deceptive. It's as bad and naive as redacting PDFs by overlaying black rectangles. I'm sorry to say this, but Facebook do not seem like a company that respect their users. I don't believe that the trade-off here in favor of data collection--in what's pretty much a corner case--is worth the aggressive message it sends to savvy users.

Update -- I amended the title to be less inflammatory, as I allow for the possibility this is a naive engineering choice with unfortunate consequences.
1
1
Add a comment...

黃大衛

Shared publicly  - 
 
Google originally shared:
 
We're not alone—17 other Google teams have also started pages on Google+ today. Add us to your circles now, and stay tuned for a couple more Google pages coming in the next few days.

Update 1:08pm PT—make that 18! +Google Australia is joining the fun.
18
In this Circle:
Add people
1
Add a comment...
In their circles
458 people
Have them in circles
53 people
Andrew Woroniecki's profile photo
Will Rhodes's profile photo
Opera Tester's profile photo

黃大衛

Discussion  - 
 
+Douglas Crockford

What do you think about requiring ternary conditional ?: operations to be surrounded with parentheses, especially if they contain compound expressions?

Parentheses should always be required because they alert the reader to look at the whole operation.

How to make fewer errors at the stage of code writing. Part N2:
http://www.viva64.com/en/a/0072/

Instead of
    A < B ? 1 : 2
require
    (A < B ? 1 : 2)

Instead of
    (A < B && A < C) ? 1 : 2
require
    (A < B && A < C ? 1 : 2)

Instead of
    alert(A < B ? 1 : 2);
require
    alert((A < B ? 1 : 2));
2
Roderick Obrist's profile photo黃大衛's profile photo
3 comments
 
Well there is a small difference.

Under my proposal, as soon as someone changes 
    alert(A < B ? 1 : 2);
to
    alert("Result: " + A < B ? 1 : 2);

JSLint would report it as problematic because the intent in the second example is not clear.


The curly braces option has no method of detecting an actual mistake so it must assume everything is an error.

With changing:
if (condition)
 onlyIfTrue();
happensAnyway();

to:
if (condition)
 onlyIfTrue();
 alsoOnlyIfTrue();
happensAnyway();

There is no reliable way of detecting the intent without curly braces on either example.
Add a comment...

黃大衛

Shared publicly  - 
 
Share this, and you might win a signed print of my PE101 portable executable poster.

(click 'share this post' otherwise I can't keep track of it)
1
Add a comment...

黃大衛

Shared publicly  - 
1
Add a comment...

黃大衛

Shared publicly  - 
1
Add a comment...
People
In their circles
458 people
Have them in circles
53 people
Andrew Woroniecki's profile photo
Will Rhodes's profile photo
Opera Tester's profile photo
Education
  • Java
    Destroying Civilizations (DCIV-208), present
黃大衛's +1's are the things they like, agree with, or want to recommend.
InsanelyMac
www.insanelymac.com

Today, iPhone users will be able to download the latest and greatest iOS iteration, deemed by Apple's Tim Cook as the biggest change to iOS

Bundle Stars
plus.google.com

Awesome PC games bundled together at amazing prices.

Heello - Share your life
www.heello.com

Remember me, Forgot password? 2011 Heello Inc - Blog Contact Privacy Terms.

Android
plus.google.com

A place for Android fans everywhere to meet, share and get the latest on all things Android.

SocialSafe
plus.google.com

Back up your Facebook, Twitter, Google+ &amp; Viadeo accounts to create a beautiful, searchable, digital journal

Call of Duty
plus.google.com

The Official Call of Duty Google+ Page

PlayStation
plus.google.com

Official PlayStation news straight from Sony Computer Entertainment

Google Brasil
plus.google.com

Página oficial do Google Brasil com dicas e sugestões sobre o mundo Google

Buffer
plus.google.com

Buffer is a smarter way to share the great articles you find

Joystiq
plus.google.com

Video game news, opinion, podcasts and pith.

Treat
plus.google.com

Refreshingly personal greetings cards you can make in a snap.

Google Images
images.google.com

Google Images. The most comprehensive image search on the web.

Zagat
plus.google.com

News, reviews, and ratings for thousands of top restaurants worldwide.

CloudFlare
plus.google.com

CloudFlare: Web Performance and Security for any Website

Wikipedia, the free encyclopedia
en.wikipedia.org

Today&#39;s featured article. Summary map of the 1911 Atlantic hurricane season. During the 1911 Atlantic hurricane season, a below-average

Mozilla Developer Network
developer.mozilla.org

Mozilla Developer Network. Search. Topics. Web; Mobile; Add-ons; Mozilla. Docs. HTML; DOM; Video; Audio; SVG; WebGL. HTML5; WebSockets; Offl

Google Code
code.google.com

Google's official developer site. Featuring APIs, developer tools and technical resources.

OpenDNS - Cloud Internet Security and DNS
www.opendns.com

OpenDNS provides millions of businesses, schools and households with a safer, faster and more intelligent Internet experience by protecting

Google Chrome
plus.google.com

Moving the web forward