Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Re:Google's attourneys should be kicked out of the (Score 1) 6

by Impy the Impiuos Imp (#49357607) Attached to: Google Loses Ruling In Safari Tracking Case

If people opted out and were still tracked, that's fair game for suing.

Now what's the damages? A government trying to duplicate Chrome + Google search engine could not do so, and you'd probably have been taxed a hundred pounds per taxpayer in a failed attempt to do so.

So I'd offer to settle to keep allowing you to use Chrome and Google for free, or get the hell off and go to IE and Bing.

Comment: Who needs astroturfing (Score 1) 198

by marxmarv (#49357595) Attached to: How Professional Russian Trolls Operate

when a corporate talent search firm owns the thing? You must not have noticed the shift over the past decade or so, in the slavish adherence to conventional wisdom and mainstream narratives.

For that matter, most conspiracy theory can be explained by good old high-school conformism and a shared culture among those whom we are allowed to endorse to run the place.

Comment: Re:Ummmm ... duh? (Score 1) 279

by smellsofbikes (#49357083) Attached to: Modern Cockpits: Harder To Invade But Easier To Lock Up

Much less likely, I'd be more worried about the "depressed narcissistic arsehole" overpowering the stewardess and crashing the plane anyway.

Or just pulling out a gun and shooting the other person in the cockpit, locking the door, and doing the same thing that happened here.
All flight crew members are automatically Federal Flight Deck Officers and are allowed to carry guns on the plane, and other flight officers are prohibited from knowing that their coworkers may be carrying guns.

Comment: Re:nice try but waste of legal fees (Score 1) 143

by gstoddart (#49357007) Attached to: Amazon Requires Non-Compete Agreements.. For Warehouse Workers

Yes, but they also know you have not got the resources to hire more lawyers than they have.

Basically this is shitting on your workers to keep them in fear of losing their jobs.

I always scratch those sections out in contracts. Unless you pay me 100% of my salary for the period of time I'm not allowed to compete, I'm not signing it.

Crap like this should be illegal. And in many sane places, it actually is.

Comment: Re:Ummmm ... duh? (Score 2) 279

by smellsofbikes (#49356917) Attached to: Modern Cockpits: Harder To Invade But Easier To Lock Up

Would this not merely cause people to avoid psychiatric care?

In the case of pilots, there is a legal requirement for the pilot to get checked out medically on a regular basis. For US airline pilots the maximum time between medical checkouts is six months.

However, that statement is completely orthogonal to the other problem, which is that many people who could pass a psychiatric assessment kill themselves or others, and a large number of people who would come out of a psychiatric assessment with a big thick file of observed problems are perfectly reliable individuals in their daily lives and would likely be completely competent pilots.

Comment: Re:Easy fix (Score 1) 279

by PPH (#49356853) Attached to: Modern Cockpits: Harder To Invade But Easier To Lock Up

Actually, not a bad idea (sort of). Add a door just aft of the front restroom and galley. Close and lock it and the cockpit door unlocks and remains unlocked. Flight crew have access to restroom and front galley. Crew returns to the flight deck and the outer door unlocks so passengers and cabin crew can access facilities.

Some work will have to be done to ensure no-one can hide in this area during the locking procedure.

Comment: Militarization of Space (Score 2) 45

by PPH (#49356673) Attached to: US Air Force Overstepped In SpaceX Certification

If it can't be seized and placed under control of the military during times of war*, its not going into space. Gotta make sure we know the key people and which pieces we'll need to grab should we need to mount weapons on it and send it up.

*That means pretty much any time. As we are always conducting a War Against Something.

Comment: Compactness and Readability (Score 0, Flamebait) 152

by UnknownSoldier (#49356351) Attached to: Ask Slashdot: What Makes Some Code Particularly Good?

Let's let at the clusterfuck of Boost's CRC code
1109 lines of over-engineered C++ crap for a simple CRC32 function!?!?

Now compare that to these simple 27 lines of C/C++ code.

#include <stdint.h>
const uint32_t CRC32_REVERSE = 0xEDB88320; // reverse = shift right
const uint32_t CRC32_VERIFY = 0xCBF43926; // "123456789" -> 0xCBF43926
/* */ uint32_t CRC32_Table[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // i.e. 0x00000000, 0x77073096,
void crc32_init()
  for( short byte = 0; byte < 256; byte++ )
      uint32_t crc = (uint32_t) byte;
      for( char bit = 0; bit < 8; bit++ )
          if( crc & 1 ) crc = (crc >> 1) ^ CRC32_REVERSE; // reverse/reflected Form
          else /* = 0*/ crc = (crc >> 1);
      CRC32_Table[ byte ] = crc;
  if( CRC32_Table[8] != (CRC32_REVERSE >> 4))
      printf("ERROR: CRC32 Table not initialized properly!\n");
uint32_t crc32_buffer( const char *pData, uint32_t nLength )
  uint32_t crc = (uint32_t) -1 ; // Optimization: crc = CRC32_INIT;
  while( nLength-- > 0 )
      crc = CRC32_Table[ (crc ^ *pData++) & 0xFF ] ^ (crc >> 8);
  return ~crc; // Optimization: crc ^= CRC32_DONE

Typical bloated code solves some theoretical "general purpose" solution. Good code does one thing well:

It communicates clearly what it is trying to do.

_When_ was the last time you actually needed a different CRC function from the standard 32-bit one?

"Freedom is still the most radical idea of all." -- Nathaniel Branden