News for hackers. Stuff that matters.

paulmcpazzi

Re:The origin story of the N95 mask on Monday March 30, 2020 @07:53AM (#22727235)
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".

Re:Stop writing For loops. Start using underscore. on Thursday February 06, 2014 @06:06AM (#7189753)
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);
Re:More functional C# on Monday January 13, 2014 @09:12AM (#7050604)

  ((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#.
Re:HTML: font color=”red” becomes green on Friday November 29, 2013 @09:29AM (#6819484)
Everybody knows that you have to use `chucknorris` if you really need the red color: http://jsfiddle.net/WGSNX/1379/
Re:Ostrich Pillow - take a nap anywhere on Wednesday September 26, 2012 @02:37AM (#4574438)
Basically it's like sleeping with an Half-Life headcrab in your head.
Re:Apple Quietly Pulls Claims of Virus Immunity on Tuesday June 26, 2012 @08:23AM (#4161413)
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).
Re:Apple Quietly Pulls Claims of Virus Immunity on Monday June 25, 2012 @06:58PM (#4159205)
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".

Re:Apple Quietly Pulls Claims of Virus Immunity on Monday June 25, 2012 @11:36AM (#4156962)
>> "It doesn't get PC viruses" will, by definition, always be true.

Macs are PCs.

Re:Security flaw in MySQL... on Monday June 11, 2012 @02:39PM (#4096110)
Here's the original report: http://seclists.org/oss-sec/2012/q2/493
Re:A few things to remember while coding in Python on Monday May 21, 2012 @07:22AM (#4002291)
Starting from Python 3.2 there is a builtin decorator: http://docs.python.org/dev/library/functools.html#functools....