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

 



Forgot your password?
typodupeerror
×

Comment Re:Ah, Twitter... (Score 1) 33

The only thing in 4.0 that I could agree with you on is that 4.0 added a face detection API (in fact it was the only API change in android.hardware for 4.0). As far as a wrapper being not fun/onerous.... That might confuse a Java 101 student and yeah, wrappers aren't glitzy, but you do it everywhere. Any time you need to account for hardware or OS options you have to do something (this goes for iOS and Android). In this case you do everything you would have done and if the version is less than 4.0 don't do the face detection or offer the option. Someone above claimed 3.0 made marked improvements in the Camera API. The ability to use an OpenGL ES surface instead of a SurfaceHolder for the preview window is certainly nice, but... If you want to use it with fallback support it is as simple as detect version of Android and inflate the SurfaceHolder layout for 2.x devices or the SurfaceTexture layout for 3.x+ devices. SurfaceTexture is where you need to add all sorts of code actually displaying the preview. The SurfaceHolder version doesn't need any code.

Hey it's their app and I'm not saying that they shouldn't go ahead and make their own decisions on support. I will say that for what this app does, the no 2.x/3.x support makes me question the skill of the team behind this. Could they be planning to go back and add back support? Sure, but it's much easier to just bake it in from the beginning.

Comment Re:Ah, Twitter... (Score 4, Informative) 33

Almost the point I was going to make. I'd hate to see the code behind this. First of all, if you are supporting the rear camera, the front camera support is all of 5 minutes (button in the UI, and passing the constant for front or rear camera based on the button state).

Then I read that they are only supporting 4.0+. Seriously? You can do everything they're doing there with the support jar and include all the way back to 2.0. If you want to do it nicely just pull in ActionBarSherlock and PageIndicator.

Comment Re:sweet (Score 1) 152

How in the hell do you figure that? Fork has fuck all to do with the definition of multi-tasking, true or otherwise. Fork is a C language construct that has been carried up into other languages that is only one way to spawn a new process. But even if it were the definition, I can call fork from Android JNI or NDK code (severely frowned on, but doable).

In android I can spawn services and use broadcast receivers to do exactly the same thing as fork()ing a child and communicating across a pipe. Same semantic, different implementation.

Multi-tasking is the ability of the OS to run more than one process at a time. Whether it is preemptive or cooperative, time slicing on a single CPU or multiple CPUs. If the OS allows multiple processes to be launched, regardless of whether those processes can fork() children, it is a truly multi-tasking OS.

Comment Re:sweet (Score 1) 152

And how do you figure this? WebOS has true multi-tasking as does Android. iOS has multi-tasking for Apple's apps and a limited multi-tasking for everyone else.

Or do you mean multiple windows on the screen at once? On phones that's just silly (screen size makes it impractical). On tablets it's a decent idea and Samsung(?) has done that with Android. The one thing is, how many times do you really need two windows up side by side? Plus since the devices are mobile and power is at a premium, showing only the app the user is interacting with is a really good indicator of which apps need to be quiesced. Any time I'm writing an Android app and I need to do something power intensive that does not need to be long running, I immediately start thinking about how I'm going to implement onPause().

Comment Re:And they still don't know the initial vector (Score 3, Informative) 136

And if not fail2ban, a good first step is updating the firewall rules to have a rate limiter on sshd. Mine allows only 2 attempts to connect a minute.

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -m recent --set
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -m recent --update --seconds 60 --hitcount 2 -j DROP
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

Comment Re:Android and Java (Score 1) 191

Java is a requirement for Android. Java does not require Android or Linux.

It is and it isn't. Java is just convenient because so many programmers knows it. What runs on Android is very different than the JVM. Dalvik is register based (therefore faster even though the code size ends up bigger) than the JVM, which is stack based. The toolchain is that the java is compiled to java bytecode with javac. That bytecode is translated to Dalvik's bytecode.

There is absolutely nothing stopping you from writing a compiler to turn any language you want to use into Dalvik bytecode. At that point you'd be able to use that language with never any java code visible.

Comment Re:Huh? (Score 1) 191

Unfortunately, he didn't go full out and say they weren't. He said in some cases they MAY be copyrightable, but not in this case. What we need is a clear precedent that says the name, arguments, and behavior is not copyrightable. The implementation is. So it is a fact that Hashtable lives in java.util. It's member methods and their arguments are facts. Key and value not being able to be null is a fact. Put all the facts together and create your own implementation.

Saying that behaviors and facts are somehow subject to copyright is a really bad idea for compatibility, but perfect if you want to go back to vendor lock in.

Comment Disable WPS and Change Your Key (Score 2) 884

Disable WPS or if your router doesn't allow you to do that, buy one that does.

Change to WPA2 and use a long, random key (a non-sense sentence will work too). Yes, it's a pain to have to set your devices up again, but it's the only way to take away their access.

Hiding your SSID, MAC filtering, etc. will do nothing if the script they are using is somewhat intelligent or if they have a more than a passing knowledge of what they are doing.

And if you don't want to just foist this issue off on someone else, help your neighbors to do the same.

Comment Re:I've heard note-for-note covers that accurate (Score 1) 307

It doesn't just sound similar, it is exact. Look through the comments here and find a link to the file on sound cloud. Jonathan is on left, Glee is on right. The music is perfectly matched. No resonances, no skewing, sounds like they're singing together.

And it doesn't matter. If you cover someone else work, hyper-accurate or lazily, you owe a license fee. It's in the copyright law.

Comment Re:Old news (Score 2) 307

I will quote the article, which does indeed quote Title 17, section 115 (copyright law compulsory license). The author bolds the parts he thinks are important and ignores the whole middle including a very important part that I will bold.

"A compulsory license includes the privilege of making a musical arrangement of the work to the extent necessary to conform it to the style or manner of interpretation of the performance involved, but the arrangement shall not change the basic melody or fundamental character of the work, and shall not be subject to protection as a derivative work under this title, except with the express consent of the copyright owner."

You don't just pick the parts of law you like. Each clause is a whole and not piecemeal. When they want piecemeal, they will have a super clause stating what the scope is (one, some, all at your choice) and then a series of subclauses that are each choice. Coulton's arrangement is very different and he couldn't have done it with a compulsory or cover license. The original author would have had to give him permission to completely change the entire melody.

Library of Congress also publishes circulars that help people to understand the law and how to fill in forms. Circular 14: Copyright Registration for Derivative Works

It shows as an example for the registration form where you need to state what is your covered new work:

"New arrangement of preexisting music for piano:
Material Excluded: Music
New Material Included: Musical Arrangement"

It appears that the copyright office does feel that a new arrangement is covered material. Of course if Jonathan wanted to go after them, it really wouldn't matter how right he is. He'd be up against the entire Fox legal staff.

Bitcoin

Submission + - Bitcoin mining rewards drop to 25 bitcoin (mineforeman.com)

ASDFnz writes: "At 15:24:38 28th of Novemeber 2012 GMT the 210,000th bitcoin block was mined by laughingbear at Slush’s pool https://mining.bitcoin.cz/ .

From now on the reward will only be 25 bitcoins or less. As mentioned in a Slashdot Article http://news.slashdot.org/story/12/11/25/2124236/bitcoin-mining-reward-about-to-halve earlier this week this is a very important milestone in the development of bitcoin, one that may either make or break it."

Comment Re:Sounds like the jury foreman decided everything (Score 2) 506

I'm not sure that he fancied himself an expert. More likely he knows just how invalid his patent is and is more interested in propping up the whole broken system.

Seriously, how did it every get through the USPTO? That's rhetorical, I worked at IBM for too long and saw way too many of the patents that my group got.

Slashdot Top Deals

UNIX is hot. It's more than hot. It's steaming. It's quicksilver lightning with a laserbeam kicker. -- Michael Jay Tucker

Working...