HNHacker News
TopNewBestAskShowJobs

paulmcpazzi

31 karma · joined May 11, 2012

submissionscomments
paulmcpazzi··on The origin story of the N95 mask
If you look at the standard equipment used in healthcare you'll notice that everyone wears mask and eye protection (goggles or face shields), because the virus can also transmit through the eye.

I'm not saying that masks are not effective, but I would be very careful with certain affirmations, such as: "going in public without a mask in a pandemic is like riding a motorcycle without a helmet", it's more like: "going in public with a mask only covering your mouth and nose is like walking through a fire while wearing a fire proximity suit and sandals".

paulmcpazzi··on Stop writing For loops. Start using underscore.
I don't like using underscore or lodash for methods that are parts of the EcmaScript specifications. I prefer using native methods (i.e. `forEach`, `map`, etc..) and including a JS shim (like https://github.com/es-shims/es5-shim) to monkey-patch legacy browsers.

And I know that these are just examples, but what is the point of writing:

  _.each(someArray, function(someThing) {
    doSomeWorkOn(someThing);
  })
when you can simply write:

  _.each(someArray, doSomeWorkOn);
paulmcpazzi··on More functional C#

  ((Action)(() => Console.WriteLine("Hello")))();
or

  new Action(() => Console.WriteLine("Hello"))();
Yeah, it's verbose because you have to cast the lambda expression before executing it, but honestly I don't know any case where a self executing function can be useful in C#.
paulmcpazzi··on HTML: font color=”red” becomes green
Everybody knows that you have to use `chucknorris` if you really need the red color: http://jsfiddle.net/WGSNX/1379/
paulmcpazzi··on Ostrich Pillow - take a nap anywhere
Basically it's like sleeping with an Half-Life headcrab in your head.
paulmcpazzi··on Apple Quietly Pulls Claims of Virus Immunity
Not if your (U)EFI firmware is capable of booting BIOS-booted operating systems as well as (U)EFI operating systems (like IBM System x Server Firmware).
paulmcpazzi··on Apple Quietly Pulls Claims of Virus Immunity
EFI is not exclusive to Macs. It was developed by Intel and has been deprecated in favor of UEFI. Most UEFI images will have legacy support for BIOS services.

There is basically no difference between a modern Mac and a PC - except for Mac OS X, which can be run on "Hackintoshes".

paulmcpazzi··on Apple Quietly Pulls Claims of Virus Immunity
>> "It doesn't get PC viruses" will, by definition, always be true.

Macs are PCs.

paulmcpazzi··on Security flaw in MySQL...
Here's the original report: http://seclists.org/oss-sec/2012/q2/493
paulmcpazzi··on GUID Guide
Part two: http://blogs.msdn.com/b/ericlippert/archive/2012/04/30/guid-... Part three: http://blogs.msdn.com/b/ericlippert/archive/2012/05/07/guid-...
paulmcpazzi··on A few things to remember while coding in Python
Starting from Python 3.2 there is a builtin decorator: http://docs.python.org/dev/library/functools.html#functools....