HNHacker News
TopNewBestAskShowJobs

habith

210 karma · joined September 13, 2010

submissionscomments
habith··on Front End Developer – Interview Questions
> I've never had to or considered serving pages as application/xhtml+xml, there's no reason for me to know the answer to this question

I think VML's response is valid here, it's to check for experience and if you were engaged enough with the happenings of the web at the time.

Background (not a 100% accurate, I'm writing from my admittedly poor memory):

XHTML and later XHTML2.0 were being pushed a while ago (early 2000s) as the next HTML language (succeeding HTML 4). At some point the community split and people from Mozilla, Apple and Google (I think) formed WHATWG to pursue a different (and faster) direction which is where HTML5 was formed, then later adopted back by the W3C.

One of the issues at the time when people pushed for wide XHTML adoption was that most people served pages as text/html which was basically wrong.

Serving pages as application/xhtml+xml triggered the XML parser instead of the HTML parser which is the "proper" way to parse XHTML.

The problem some people ran into was that the XML parser is way less lenient than the HTML parser. You _have_ to close your tags, you _have_ to escape entities, and if you had a single mistake anywhere in your markup the browser would render an error page instead of working around it.

There were also issues with in-lining JavaScript and having to wrap it in a CDATA block to stop the XML parser from attempting to parse it.

This was a headache for sites with user generated content and people in general seemed to not like the idea of having to clean their markup for what some perceived as very little gain.

Anyway, long story short, HTML5 won, XHTML didn't.

habith··on Google broke telephony for many Nexus users
Since 12/18/2014? Not a single person to ack the issue? That seems odd.
habith··on Good News You May Have Missed in 2014
> Serious question though, and I would like people to ignore some sort of moral or religious argument for it; but what is the long term implication if all kinds of health advances save people but humans still reproduce and impact the planet in already unsustainable rates.

> I get it, some people have a bleeding heart and want to save everyone, everywhere, at all times; but what happens when the planet is the equivalent of a cat hoarder's house because we could never say no and we could never implement policy to limit population growth because the wealthy inherently gain from unregulated population growth?

Some of the minds saved can one day solve these and other problems, pushing the envelope of human knowledge.

habith··on Nexus 6
> I'm an iphone 5s user and was eagerly awaiting the new Nexus to make the switch to Android

I highly recommend that you borrow an Android phone from a friend before making the switch and spending some time with it.

Also, check the permissions on most of the apps on Google Play[1] (scroll down and click view permissions) and ask yourself if they're justified[2].

Once an app is installed there's no controlling of the individual permissions. You do not get prompts asking you to authorize an app to access your contacts, location etc. It's an all or nothing approach.

Some people will tell you to root/flash the phone and install an app to allow you to do what should have been a default OS behavior.

I switched from Android to iOS about 2 years ago, and will never go back until Google fixes up the permissions system.

[1] https://play.google.com/store/apps/details?id=com.facebook.k...

[2] http://inc42.com/buzz/facebook-wants-read-confidential-user-...

habith··on Final – A credit card built for the 21st century
> My Bank of America Visa had a "temporary number generator" feature ... don't know if it still exists.

It exists still, but you have to login to the site to use it, and the card generator is written in Flash.

Aside from that, it's very good. It ties the number to the merchant and you can set a limit and expiration date.

I use it for a lot of recurring subscriptions, and "sketchy sites" purchases.

habith··on The Cost of My Mother’s Cardiac Care in the United States and India
S/he tried to tip the nurse.
habith··on How to Read a Patent
Interesting read, thank you for posting it.

One suggestion is to copy/move the warning "If you have an important patent question, hire a patent lawyer" to the intro.

A lot of people skim through the conclusion section and may just know enough now to be dangerous, like you said :)

habith··on Ask HN: What music do you listen to while programming?
When I'm churning out code I sometimes listen to WritheM Radio on Grooveshark, mostly techno/electronic: http://grooveshark.com/#!/writhem/broadcast

Otherwise, it depends on my mood and if I need white-noise to concentrate on something. Or loop a song I like non-stop until it fades in the background :)

habith··on Would you pay $10 a month for a bi-directional Google - LDAP sync service?
I know it's unidirectional. I was saying that we'd mostly make our changes internally and push it to Google and centralize user/group management using our internal on-site LDAP server.

The idea of an external tool modifying our local LDAP/AD server is not something we'd go for. I suspect other people might feel the same way.

However, if we were smaller (or didn't have internal IT resources) like a lot of clients we work with, an external LDAP/Google apps combo sounds like a winning solution :)

habith··on Would you pay $10 a month for a bi-directional Google - LDAP sync service?
Probably not for me. I'd presume other companies like mine would use LDAP/AD internally and just sync to Google apps using this tool: https://support.google.com/a/answer/106368?hl=en

If this was a hosted LDAP-as-a-service solution that syncs with Google apps I'd be interested in using it at home. I also know of a couple of small companies that would love to not have any IT infrastructure in-house.

Good luck :)

habith··on Show HN: One Billion Seconds
That's fascinating! Never thought about that before. π is an amazing number.
habith··on Show HN: One Billion Seconds
Awesome! Celebrate it vigorously when it comes :)
habith··on Show HN: One Billion Seconds
Also, if you'd like, I can modify it to track the 2nd and 3rd billion(th) seconds. I know I'll be needing it soon ;)
habith··on Show HN: One Billion Seconds
I just thought it was inspiring that we only get to live 3-4 billion seconds at most, seconds count.

Celebrating it also certainly beats celebrating birthdays :)

habith··on Ask HN: Urgent connection to Twitter support
Just follow the links in the tweets and paste them into Bing/Google translate.

The translation is not perfect but the general gist seems to be anger, hatred and calls for revenge towards Palestinians.

habith··on Microsoft makes source code for MS-DOS and Word for Windows available to public
Third bullet point in the license you presumably agreed to before downloading the source code:

- You may not distribute or publish the software or Derivative Works.

I'm not saying it's a good license, but if you do not agree with or at least intend to follow it then perhaps you should have not downloaded it to begin with.

habith··on Notch, WebGL, Dart, and ramping up quickly
I found NeHe's tutorials to be easy to follow especially since code that's ready to compile is provided at the end of each lesson: http://nehe.gamedev.net/

Most of them focus on OpenGL for windows.

I just searched and found this WebGL tutorial which says it's based on NeHe's so it's hopefully good: http://learningwebgl.com/blog/?p=28

Disclaimer: I'm not a game developer and I barely dabble in the 3D world, so take my links with a huge grain of salt :)

habith··on GoDaddy Buys Media Temple
I haven't looked at gandi.net before, their prices are reasonable and they have a very clean layout.

Unfortunately, the second I noticed their motto (no bullshit) I realized I cannot use them for our clients. Sigh :(

habith··on Confusing UI in iOS7
> I'm actually surprised that there's so little visual consistency there...

The Stopwatch and Timer start buttons behave differently.

The timer provides some visual feedback because it starts the timer when you take your finger off the screen, you can touch and hold the button all you want but nothing happens until you release it.

The stopwatch on the other hand starts as soon as you touch the screen. I can see how that would be useful if you're timing a race or something that takes less than a second.

Incidentally, my double click/touch interval seems to be averaging around 0.12 seconds :)

habith··on IRS claims it can read your e-mail without a warrant
> Google's email isn't encrypted, it is sent as text over a network

I just grepped my personal email server log to double check, here's an obfuscated entry from this morning:

> localhost postfix/smtpd[14440]: TLS connection established from mail-xxxxxxxx.google.com[xxx.xx.xxx.xxx]: TLS v1 with cipher RC4-SHA (128/128 bits)

Doesn't look like clear text to me.

habith··on Why is Qatar investing so much in education?
Qatar has its downfalls, but tolerance of women? I think you're thinking of Saudi Arabia.

http://en.wikipedia.org/wiki/Qatar#Women.27s_rights

habith··on Show HN: The HackerNews Follow Discussion Button
It's broken in IE7, IE9 (not IE8) and Firefox 12. The logo's button element on the left doesn't align with the one on the right.

Is there a specific reason you chose to add a button element in your links? Why not style the a tags and display them inline-block?

habith··on Android Malware Increased 3,325 Percent in Seven Months
I've noticed that after the 3.3.4 market update I cannot view the permissions of installed applications. I used to be able to go to an installed app, Menu - Settings - Security, and view its permissions, that's all gone now.

Also, the permissions do not appear on the app's installation page, they appear on the confirmation page before installing (after clicking download/buy), that's not very good UI.

Before the 3.3.4 update, the permissions on my phone were just the titles with no description (Full internet access, Read phone state and identity, etc.), so Kudos to them for adding descriptions.

However, I was shocked after the update when I learned what "Read phone state and identity" really means, here's the description: "Allows the application to access the phone features of the device. An application with this permission can determine the phone number and serial number of this phone, whether a call is active, the number that call is connected to and the like."

That seems pretty invasive for what I _assumed_ was a GUID or a token of some sort to authenticate purchases or keep track on installations. I wonder what "the like" means in that description.

habith··on Programming Lessons I've Learned in 20 Years
The second "I can't believe I wrote this code" (in amazement) is a red flag for me. I always like to look back at code that I wrote years ago and think "That's horrible", or "I can write a better/faster version in half the time!".

To me, it's a measuring device that tells me I have not been stagnant and that I'm improving and honing my skills. And since my code will never be perfect I should always be able to look back in disgust, otherwise, I'm not pushing myself hard enough.

habith··on My relentless pursuit of the guy who robbed me
Good for her. I went through something similar a few months ago. I had my car parked in the driveway and similarly someone broke into it (it was locked, but didn't have an alarm) and they stole my GPS and chargers.

I found the post on Craigslist the next day and contacted the person with a fictitious email and name. He emailed me back asking for my phone number to set up a meeting.

At that point I had three options:

a) File a police report/contact the insurance company and have my insurance rate hiked up (for a < $100 GPS) b) Meet the thief in-person and pull a Chuck Norris on him c) Let it go and pick another GPS up / Fix my car door

I chose C as I didn't like the outcome of A, nor the possibility of him and his hooligans retaliating against my family if I went with B.

habith··on Giving up on Google
> You're spoiled then.

Spoiled? I remember search being horrendous back in those days. It was almost exact word matching and it took hours to find relevant results. Google was a breath of fresh air back then (especially since they didn't run all those X10 ads and popups ala Yahoo!).

I've switched to Bing a few months ago for tin-foil-haty reasons, and also being disappointed in the way Google interpreted some of my queries (for some reason the plus sign doesn't mean anything anymore).

I occasionally use Google when I give up on finding something on Bing, but 99% of the time 4-5 results of the first page are pages I already found on Bing, with the rest being irrelevant results.

I too wasn't aware of the search tools that Matt Cutts mentioned above, I'll give it a try the next time I'm having a hard time finding something with a date restriction.

habith··on Ask HN: What makes a job posting attractive?
Answer these questions:

- Who are you?

I need to research a company before I send you my work DNA (a.k.a. resume`). Are you a spammer? Are you some recruiting company building a resume`s database?

Be honest and avoid snake-oil salesmen terms like "Company in the bay area with a huge upside". If I work for you, I have to believe in your vision as much (if not more) as you do and I can't do that without doing due diligence and researching your company.

If you are not well established yet, then a brief description of what you do and what your vision is always helps (in your case, a link to your site should suffice).

- What do you need from me? / What does your technology stack look like?

Be very specific about must haves and "would be nice"es. You can discourage a lot of potential candidates by putting a laundry list of technologies that you're thinking about (or worse, toying with the idea of) implementing in the future but are in no way what you need from a candidate right now.

- What is your compensation package?

Not always feasible to write in detail, but putting a salary range is a huge plus. A phone interview + a couple of on-site interviews (taking time off of my current job) to be told that your maximum offer is worth $20k less than what I make right now is a waste of everyone's time.

Aside from that, everything else is just fluff in my opinion. Good luck!

Edit: Formatting. Where's the preview button?

← PreviousPage 2 of 2