How to fix Node DNS resolver in Mac

I was working on the node package manager, npm, in Mac OS X and realized I cannot install Zombie.

[code lang=”bash”]kahwee:~ kahwee$ npm install zombie
npm info it worked if it ends with ok
npm info using npm@0.2.11-5
npm info using node@v0.2.6
npm ERR! Error connecting to server http://registry.npmjs.org/zombie
npm ERR! Error: ETIMEOUT, Timeout while contacting DNS servers
npm ERR! at Timer.callback (dns:15:13)
npm ERR! at node.js:773:9
npm ERR! Report this entire log at http://github.com/isaacs/npm/issues
npm ERR! or email it to npm-@googlegroups.com
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok[/code]

I was hunting around what’s wrong with my DNS servers and I realized that even though Node.js is taking the DNS server settings from resolv.conf, Mac OS X did not have that updated as I would expect. The following is not my nameserver:

[code lang=”bash”]kahwee:~ kahwee$ cat /etc/resolv.conf
#

Mac OS X Notice

#

This file is not used by the host name and address resolution

or the DNS query routing mechanisms used by most processes on

this Mac OS X system.

#

This file is automatically generated.

#
domain Aphrodite
nameserver 192.168.1.254[/code]

So I commented that portion and changed it with nano:

[code lang=”bash”]sudo nano /etc/resolv.conf[/code]

Changed it to and comment the invalid entry:

[code lang=”bash”]kahwee:~ kahwee$ cat /etc/resolv.conf
#

Mac OS X Notice

#

This file is not used by the host name and address resolution

or the DNS query routing mechanisms used by most processes on

this Mac OS X system.

#

This file is automatically generated.

#
#domain Aphrodite
#nameserver 192.168.1.254
nameserver 165.21.100.88
nameserver 165.21.83.88[/code]

And now it works:

[code lang=”bash”]kahwee:~ kahwee$ npm install zombie
npm info it worked if it ends with ok
npm info using npm@0.2.11-5
npm info using node@v0.2.6
npm info fetch http://registry.npmjs.org/zombie/-/zombie-0.8.10.tgz

npm ok[/code]

So it’s 4G now

AT&T has relabeled their existing 3G data network as a 4G network. By definition, 4G network standards like LTE (Long Term Evolution) run at speeds of 1 Gbit/s for low-mobility connections like cellphones.

AT&T claims:

“The whole industry has come to equate more speed with 4G,” said Ralph de la Vega, chief executive of AT&T’s wireless unit. He says consumers generally won’t notice the difference in speed between AT&T’s HSPA-plus and upcoming LTE networks, so it makes sense to call both 4G.

John Donovan, AT&T’s chief technology officer, said speeds on HSPA-plus and LTE phones will feel similar now, but users will start to notice a difference in the two technologies once richer applications become available. [Source: Motherboard]

Gender segregation in Malaysia criticized

Oh this is funny, men and women sitting separating in New Year’s eve countdown celebration has been criticized.

Gender segregation bid at New Year do slammed

GEORGE TOWN: The Kedah government has come under fire for trying to impose gender segregation at its state-level New Year’s eve countdown celebration in Sungai Petani.

Kedah MCA chairman Datuk Chong Itt Chew said he received many complaints from revellers who were unhappy that men and women were “advised” to sit separately during the gathering near the clock tower at Jalan Ibrahim.

He said a large LED screen had displayed words advising couples not to sit together but to sit in the arrangement which segregated men and women.

“I don’t know what is the motive of the organisers. They should respect the sensitivity of non-Muslims,” he added.

Kedah Mentri Besar Datuk Seri Azizan Abdul Razak said there was nothing wrong with men and women sitting separately.

He said such a move could avoid problems such as pick-pocketing and indecent behaviour.

Azizan said the gender segregation was merely a suggestion and nobody was forced to comply with it. [Source: The Star]

How would gender segregation, particularly, pick-pocketing. Is this applying that, statistically, it is more likely to have pick-pockets targeting the opposite gender?