Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Sounds ideal for man-down and the like... (Score 4, Insightful) 143

At the moment you can buy a horrifically expensive option board for some radios that does exactly this. That way you can tell if the HT that is supposed to be clipped to your security guard's belt as he walks around your bonded warehouse has suddenly gone horizontal. Another application is in shopping centres where it's pretty handy to be able to track where cleaners and security guards are - and have been in the past. Why? Nosiness? Spying? No.

Mouth-breathing Chav Scum: "ZOMG I SLIPPED AND FELL OVER ON THAT DROPPED ICE CREAM CONE THERE! THAT SHOULD HAVE BEEN CLEARED UP STRAIGHT AWAY! I'M GONNA SUUUUUUUUEEE!!!"

You: "Well, let's see, the cleaner went past there three minutes ago, so it can't have been like that for long."

MBCS: "But... But... Butt..."

or alternatively:
You: "Right, who's doing the guard tour, oh it's Wee Wullie. That's funny, he's been standing at the same bit for a couple of minutes now, moving around quite a lot though. Wonder if everything's okay?"

<clicky on CCTV console>

You: "Aha, righty. Let's send Big Davie down to give him some 'assistance' there..."

Comment Re:The irony here is... (Score 1) 257

You'd have to sell a lot to make back the cost of tooling up, even for lead processors, plastic motorless fans, and crude packaging. Remember, whoever originally bought them from the manufacturer must have known they weren't genuine Intel (probably thought they were getting clones with counterfeited Intel labeling) and would have paid a low unit price.

Perhaps these weird counterfeit counterfeits were created just to make somebody look stupid.

Comment Re:Valuable Java Patents (Score 1) 241

Okay, I can't find any definite reference (I guess that would be HotSpot source code, ultimately), but all I've found so far agrees that object overhead in Java is 2 machine words - so, 2*4=8 on 32-bit, 2*8=16 on 64-bit. That makes sense, since it would directly correspond to vtable pointer + monitor pointer.

Integer would add an extra word to that (on 64-bit it would be an extra 8 bytes, not 4, even thought int is always 32-bit - this is because objects on heap are always padded to word boundary).

Apparently many integers are pre-allocated. I can't remember if it's 0-255, or -127-127.

It's documented in JLS - when boxing any integral type in range -128..127, results of all boxing operations must compare equal for identity (i.e. be the same object). The requirement doesn't, technically, extend to valueOf(), but it makes sense that it follows suit.

I seem to remember experimenting further with ArrayLists - I'm pretty sure ArrayLists boost their capacity by just 6 elements every time they fill up.

I only have JDK 6 handy, so the following is from the source code for ArrayList in that:

int newCapacity = (oldCapacity * 3)/2 + 1;

and initial capacity is 10.

When you do ensureCapacity, it then picks either the result computed by that formula, or the one you specified as an argument, whichever is larger.
So ensureCapacity(11) gives 16 - or 6*4=24 extra bytes; and the following ensureCapacity(17) gives 25, or 8*4=32 extra bytes - which matches the values that you've provided.

Also, the JavaDoc for the class says:


The details of the growth policy are not specified beyond the fact that adding an element has constant amortized time cost.

The highlighted part precludes any kind of policy that increments in constant-size chunks.

I remember talking to a friend working with C#, and he said it had more sane allocation sizes. (though he presented no proof of it)

That one is easy to check as well. From the source code for List in .NET 3.5 SP1:

int newCapacity = _items.Length == 0? _defaultCapacity : _items.Length * 2;

So it doubles capacity every time. Default capacity is 4, though that is only used when list has at least 1 item - for an empty list, a shared empty array instance is used.

Comment Ready Your Fanboys (Score 0, Insightful) 145

Before you morons get all in a tussle, remember that Google BOUGHT most of everything it owns.

The following were outright bought:

Google Groups
Blogger
iGoogle
Google Maps
Google Earth
AdSense/AdWords
Baidu
Google Sketchup
Google Spreadsheet
Picasa
Youtube
Google Talk
Panoramio
Feed Burner

The following were developed around large chunks of bought code, IP, marketshare, etc.

Google Analytics
Android
Google Latitude
Google Documents
Google Sites
Google Chrome
Google Wave

http://en.wikipedia.org/wiki/List_of_acquisitions_by_Google

Comment Re:So Iran's standards then? (Score 1) 697

Oh, they must have changed that then, since in 1994 I got pulled over for simply having one on my dash, was issued a fine, and the cop confiscated the radar detector. There's also those signs on the NJTP that say "Radar Detectors Are Illegal" I have not driven through in years, but it certainly used to be illelgal to have one at all.

Comment Re:Buzz off, I'm not interested in another one! (Score 1) 310

I don't use my Gmail account much. If this takes off I won't use it at all.

Uh, why not? Even with Buzz linked to Gmail, you can use Gmail without following anyone on Buzz. Not using Gmail because of Buzz makes about as much as not using Gmail because its UI has integration with GTalk and GCalendar.

Buzz doesn't turn Gmail into Facebook, although it allows you the ability to do something like what you can do on Facebook through the Gmail interface instead, if you want to.

Comment Re:Linux community? Ha! (Score 1) 460

Linux has really come into it's (AAAAAARRRRRRGGGGGGHHHHHH!) own, but I don't think anybody will ever mistake it for a hobbyist niche again.

What you're talking about is largely a matter of appearances. Linux provides something that people can take advantage of in their businesses, and so they have. But the people who use it because they enjoy it are still out there, they just don't advertise.

Comment Re:Elect every clown in office? Not such a bad ide (Score 1) 160

>>>But those two thirds against them were divided among several parties, none of which individually got more. Otherwise, you'd
>>>be making the same complaint[1], but against a different party. If there were three other parties with equal shares[2],
>>>they'd have over three quarters voting against each of them[3]. That hardly means they have more support than the winner.

Hint: Learn about electoral system in the UK before making a fool out of yourself in public.

The UK has a "small electoral districts" + "winner takes all" system.

So, there are a number of issues:

* not all districts have the same number of voters.
* not all districts will have the same level of participation. This gives you the same effect as above even if districts where reallocated all the time to track population to keep them equal sized.
* and if there are more then 2 candidates for one district, you get a situation where a relative majority in the district can win the whole district.

While the system has some positive aspects, being a mirror image of popular vote is not one of these.

Comment In Europe PayPal IS a bank, right? (Score 1) 509

Reading the posts above this one, where everyone is making a distinction between a bank and paypal, in Europe the situation is different then in the US, PayPal IS a bank here (so no need to make a distinction between the two), from the website:

PayPal (Europe) S.à r.l. & Cie, S.C.A. (R.C.S. Luxembourg B 118 349) is duly licensed as a Luxembourg credit institution in the sense of Article 2 of the law of 5 April 1993 on the financial sector as amended (the “Law”) and is under the prudential supervision of the Luxembourg supervisory authority, the Commission de Surveillance du Secteur Financier .
link: https://cms.paypal.com/nl/cgi-bin/?&cmd=_render-content&content_ID=ua/ServiceDescription_full&locale.x=en_US

Slashdot Top Deals

"It says he made us all to be just like him. So if we're dumb, then god is dumb, and maybe even a little ugly on the side." -- Frank Zappa

Working...