HNHacker News
TopNewBestAskShowJobs

mediumdeviation

1,791 karma · joined October 27, 2012

submissionscomments
mediumdeviation··on Show HN: Unirest
This doesn't seem to be a good idea

    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
https://github.com/Mashape/unirest-php/blob/master/lib/Unire...
mediumdeviation··on Not Constructive, a place for the discussions not allowed on Stack Overflow
The same is true for most sites, even Stack Exchange, because of COPPA as mentioned below. If you mention openly anywhere that you're below 13, moderators are obliged to delete your account (since they can't keep your personal information)

> Subscriber certifies to Stack Exchange that Subscriber is an individual (i.e., not a corporate entity) at least 13 years of age. No one under the age of 13 may provide any personal information to or on Stack Exchange (including, for example, a name, address, telephone number or email address).

- http://stackexchange.com/legal

mediumdeviation··on Making the web fun again
Ha, what a strange place to find my weekend project[1] appearing on. I didn't put it up on that site, though I don't really mind it being there. If you look on the bottom of the page, you'll find the source on GitHub, and yes, it does take a bit more expertise than reading "HTML for Dummies" to create.

Surprising you should mention GitHub pages, because that's where the original is hosted on.

[1]: http://zhangyijiang.github.io/mlp-guide/

mediumdeviation··on Rebuild YouTube's mobile-like progress bar in jQuery
It's a HTML5 form element: http://developers.whatwg.org/the-button-element.html#the-pro.... It might be somewhat difficult to style, though.
mediumdeviation··on Show HN: Annotate PG, our YC application demo
Normally I don't comment (at all) on posts like this, but this is just bad.

The comments overlay cover up the very text that you're suppose to be reading. This disrupts the reading flow, making it hard to find my way back to where I was reading, especially comments are merely secondary to the actual article. To get back to the article I have to press this tiny close button on the top left corner of the comments overlay. Plus, there's a huge amount of whitespace to the right of the article which you're not using http://i.imgur.com/1JvLWQP.png - why cover important content, leaving large amount of screen space unused when there's perfectly good unused space on the right?

The pagination scheme is terrible. The article is a blog post, not a book. And even if it were, no one would want to read something on screens. (Edit: Firefox 21 beta. I see Chrome that has transitions, which means this is not actually poor performance, but simply missing transitions. I still don't see any reason why Firefox shouldn't have transitions, though) The performance is terrible. I can count seconds between me clicking on the next page button and the next page actually showing up, with no feedback whatsoever that the page is loading.

Document annotation and comment UI isn't hard. When Microsoft Word has you beat in terms of UI, you're probably doing something very wrong.

mediumdeviation··on Illustrating the Ubuntu clown car, AccountsService edition (2012)
The bug mentioned still appears to be open, though there's progress: https://bugs.launchpad.net/ubuntu/+source/accountsservice/+b...

The code mentioned in the post is also still in the latest version of the package's code on Launchpad: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/raring/a...

mediumdeviation··on Stackoverflow rolls out "Chat with an expert"
Uh, duplicates always have the question that they are a duplicate of linked - http://i.imgur.com/1lata16.png. In fact, if you don't see this it's probably a bug and you should report it http://meta.stackoverflow.com/questions/ask?tags=bug
mediumdeviation··on Stackoverflow rolls out "Chat with an expert"
Only partially. It's a combined measure of your knowledge and participation on the site.

> As a registered user, your reputation on the site is a part of your identity on the site. It reflects, to an extent, your familiarity with the site, the amount of subject matter expertise you have and the level of respect your peers have for you.

http://meta.stackoverflow.com/a/7238/150097

In addition to that, it is possible to write well written, but highly specialized answers that gain few upvotes, or relatively simple answers that accrue large number of upvotes simply because it is a common question. In this sense, reputation is a measure of how 'valuable' your contribution to the site is, which is often, but not always aligned with how knowledgeable you are. There are other outliers too, like answers that get featured on Proggit or HN, but those are far less common.

(It also used to be possible to gain large amount of reputation by simply being the first to reply to a poll with a popular answer, but those type of questions are no longer acceptable).

mediumdeviation··on Show HN: Weekend project, Intro.js
As far as I can tell it's a non-standard Webkit function. See https://bugzilla.mozilla.org/show_bug.cgi?id=403510 and https://gist.github.com/hsablonniere/2581101
mediumdeviation··on Douglas Adams' 61st birthday doodle by Google
The sequence of images that appear on the Guide are a reference to:

- The Babel Fish - Earth's entry in the Guide - "Mostly Harmless" - "There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss" - The Pan Galactic Gargle Blaster - the effects of drinking which is "similar to having your brains smashed in by a slice of lemon wrapped round a large gold brick." - The Infinite Improbability Drive - http://www.youtube.com/watch?v=zjbtZ4NgtdA - The creation myth of the Jatravartid people of Viltvodle VI. They believe that the entire Universe was in fact sneezed out of the nose of a being known as the Great Green Arkleseizure - Mankind are only the third most intelligent species on the planet. Dolphins are more intelligent than man, and mice are more intelligent than dolphins - Towels are a hitchhiker's best friend - Earth being demolished by Vogons - The answer to Life, the Universe and Everything - 42, as calculated by Deep Thought

All of which comes from the Hitchhiker's Guide novels.

mediumdeviation··on Apartments So Small They Can Only Be Photographed From Above
The source of these images, http://www.soco.org.hk/cagehome/, is an intriguing (if somewhat poorly executed) advocacy-cum-exhibition site.

For those who don't want to click through, the site first present you with a fake Firefox popup, with the only a close button. Each time you close one of them, new ones will appear in greater numbers. Do this three times, and your screen will be filled with popup and a message that translate roughly to:

> Ignoring the housing problem will only make it worse, help us change the status quo!

> Our city may be beautiful on the surface, but underneath all that 10 000 hardworking low income workers are unable to share the fruit of our success. Families are forced to live in apartments with an average area of 40 square feet. They need your help to improve their lives; forward this email, help promote social justice!

mediumdeviation··on Firefox, I Just Can't Quit You
In theory, Chrome sends your entire browsing history over to Google, since its unified omnibar doesn't distinguish between searching and typing in location. Firefox (and any browser that separates the location and search bar) doesn't have this problem.

To be frank I'm not sure how Google uses this information, but it does make me laugh when the whole Ubuntu Dash searches Amazon thing blew up. It's the same thing, really, yet nobody talks about Chrome at all.

mediumdeviation··on I Support the WebKit Monoculture
The first thing you learn as a web developer with respect to (modern - ignoring IE 7 and even 8) cross browser compatibility is that all browsers have their quirks and all of them suck. Off the top of my head:

Until recently, Chrome 'implemented' the HTML5 date input by giving the user a spinner on the side of the input box which, when pressed, will set the date in the input to '00-00-0000'. Worse, this renders the normal feature detection used by libraries such as modernizr.js useless.

Text rendering is badly broken for Chrome on Windows right now. http://i.stack.imgur.com/MsHdy.png - Firefox, Chrome, IE9. Bug report: http://code.google.com/p/chromium/issues/detail?id=137692

There was a bug that caused inset box shadow used to be rendered outside the element. This is fixed in recent desktop versions, but still haunts older versions of Android's default browser - versions as recent as the one included with 3.x Honeycomb are affected.

Browsers, even modern ones, are incredibly quirky. Moving to a monolithic Webkit market will not help with any of the bugs listed above, nor, I suspect, most of the bugs one might encounter today as a web developer.

mediumdeviation··on Java is not JavaScript - tell your friends
Except ECMAScript isn't correct either. ECMAScript is the name of the standard. Each browser implements a (different) subset of it. JavaScript used to be what Mozilla's implementation was called; Microsoft implemented JScript. ActionScript, the scripting language used in Adoble Flash, is also an implementation of ECMAScript.

Modern browsers implement ECMAScript 5; older browsers and AS 2.0 implement ECMAScript 3. ECMAScript 4 was scrapped, but AS 3.0 still implements it. Wikipedia, as usual, has all the gory details if anyone is actually interested http://en.wikipedia.org/wiki/ECMAScript

mediumdeviation··on [dead]
> A blog where the author paraphrases or copies from the original article/webpage in an attempt to increase his or her own traffic. This becomes a waste of the reader's time forcing them to click through the blog to get to the actual article. Often submitted to sites like Digg or Reddit.

http://www.urbandictionary.com/define.php?term=blogspam

mediumdeviation··on Offline safety in a cloud app
The idea is by no means new. localStorage is old. So is the AppCache specifications that actually allows an application to go 'offline'. Gmail did this as early as 2009: http://googlecode.blogspot.sg/2009/04/gmail-for-mobile-html5...

Unfortunately it's not as easy as it looks. I found that out when doing research for a weekend project. Here's an excellent A List Apart article detailing all the gotchas you can face while working with it: http://www.alistapart.com/articles/application-cache-is-a-do.... The Financial Times Labs have an interesting article talking about an approach to deploying an offline app that uses the AppCache as little as possible: http://labs.ft.com/2012/08/basic-offline-html5-web-app/

And of course you can find information about it in places like Dive into HTML5 and MDN, by simply searching for them

mediumdeviation··on The Atlantic suspends the Scientology advertorial
I'd agree, except there have been cases like this:

> The judge, Paul A. Engelmayer of Federal District Court, ruled that the rejected ad was “not only protected speech — it is core political speech,” [...] As such, the judge held, the ad “is afforded the highest level of protection under the First Amendment.”

http://www.nytimes.com/2012/07/21/nyregion/mta-violated-righ...

Here's one of the ads: http://i.imgur.com/iY0bx.jpg

mediumdeviation··on CNET Reporter Quits Over Editorial Meddling by CBS
And CNET's side of the story corroborates with the Verge's report: http://news.cnet.com/8301-30677_3-57563877-244/the-2013-best...

I suppose the only reason why she could reveal all of that now is because CBS' PR team is in damage control now

> Ultimately, we were told that we must use the official statement and that we must follow corporate policy to defer all press requests to corporate communications.

mediumdeviation··on An Advanced Guide to HTML and CSS
The style is commonly referred to as "metro", inspired by the design of metro signs. The idea is to reject skeuomorphism, and use large, clean typography to deliver something that is 'digitally native'. You could think of it as a direct rejection of Apple's adoption of decorative skeuomorphic designs that bring things into the digital space which really don't belong here.

It's not exactly a bad idea, though it is possible to take things a little too far. Certainty if you observe the trends in web designs recently sites appear to be "flatter", less cluttered and more focused, without the Apple inspired "Web 2.0" glossiness that has taken over from circa 2006 onwards

mediumdeviation··on HTML5Wow
It's a set of slides about HTML5 written in HTML5. The slides not working properly on mobile devices with no fallback for non-webkit browsers show that the developers are either

a. Lazy b. Incompetent, or c. Used proprietary webkit technology,

none of which will inspire much confidence in the actual contents of slides (which I can't read anyway, since I'm on Opera Mobile)

mediumdeviation··on Designing a responsive, Retina-friendly site
Just looking through the source of the site, it seems that whatever CMS you're using is inserting <p> tags everywhere, including around the opening and closing <section> tags: http://i.imgur.com/RkoFP.png.

It's also causing the page to fail validation (ignoring the errors about unknown meta tags): http://validator.w3.org/check?uri=http%3A%2F%2Fpaulstamatiou...

mediumdeviation··on Identifying IP address of filtering devices in the Great Firewall of China
GitHub is unlikely to be blocked because of this - many projects and pages associated with the Firewall already exists there. Just Google

    site:github.com great firewall of china
And anyway, if you're serious about surfing the net from inside China you'd already have a proxy or VPN set up.
mediumdeviation··on The Internet Archive is trying to raise funds to buy 3 petabytes of storage
Direct link to the donation page: https://archive.org/donate/
mediumdeviation··on Prof. calls out student for cheating via Math StackExchange
It's nothing new - the same has been going on on Stack Overflow and other forums for ages. Here's a particularly egregious example of someone cheating on a Regional Olympiad level competition: http://meta.stackoverflow.com/q/155319/150097
mediumdeviation··on Ubuntu Spyware: What to Do?
Google Chrome has always had this feature, yet it didn't stop it from gaining 20% market share. Neither does it stop the "why don't Firefox merge the search and location bar?" comment seen in almost every comment thread whenever Firefox's UI is discussed. I don't think that anyone is under the illusion that the average user care about this behavior in any way.
mediumdeviation··on Show HN: a small jQuery Form Validation library
In your example,

  $("ul").html("");
can be replaced with

  $("ul").empty();
The replacePlaceholdersInMessage function uses replace with string as the match, which means that in rare cases where more than one %F is present, for instance, only the first will be replaced. To fix this you have to pass in a new RegExp object with the 'g' (global) flag instead. See https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
← PreviousPage 9 of 9