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

 



Forgot your password?
typodupeerror
×

Comment Re:Android is not always Java (Score 4, Informative) 577

NativeActivity doesn't support most of the Android APIs, including most obviously the widget toolkit. It's intended for games that just need an OpenGL context and raw input, all other kinds of apps still need to use Java.

And you know what? That's not such a bad thing. A few years ago I guess I was basically a C++ programmer who was in the "Java sucks" camp, and I came back to Java only because I wanted to write stuff for Android. Over time I've come to appreciate the whole platform and ecosystem more. Things I especially appreciate:

  • IntelliJ IDEA and the Inspector. My previous experience with Java IDEs was Eclipse, which is not only incredibly slow and resource intensive but also has a very confusing IDE. Over the years this situation has changed - IntelliJ is genuinely helpful, and uses much more reasonable amounts of RAM than such IDE's used to. I find myself very much appreciating the real-time, on the fly static analysis that can find all kinds of issues from basic logic bugs to common API usage errors, like inverting the arguments of assertEquals in a unit test.
  • Most Java libraries are available via Maven repositories. Maven itself is a rather quirky beast that I never truly warmed to, but the Java world has what is essentially a giant apt-get for libraries. IntelliJ understands how work with Maven such that you can write some code that doesn't compile, press alt-enter over the missing class and tell it to go figure it out. It can find the right library, automatically download it and all its dependencies, install it into the local Maven repository and recompile the code, all on the fly within a few seconds. Coming from the C/C++ world where every single project has a uniquely malformed build system and package repositories (when they exist at all) are maintained by Linux distributors who are invariably miles behind upstream releases, it's extremely convenient.
  • JavaFX 8 turns out to be a really nice UI toolkit. Java got a well deserved reputation for awful desktop apps that were clunky, slow, and had UIs only a mother could love. This problem started with AWT that was limited by the lowest common denominator (Motif at a time when nearly the whole world used Windows). Swing was more powerful but was still very ugly and was hobbled by the lack of any truly great UI designers for it (every IDE creator invented their own). JavaFX 8 resolves all these problems: it's designed to be competitive with Cocoa, so the whole thing is an OpenGL accelerated scene graph, it makes it easy to support fancy effects and animations, and it comes with a very straightforward and easy to use Scene Builder app that makes building UIs a snap. I've used the Apple GUI design tools and Scene Builder is even easier. JFX8 seems to make desktop app development with Java actually compelling again.
  • Lots of people know it. That means, for an open source project, lots of potential contributors.

Comment Re:Proof that Obama is corrupt (Score 3, Insightful) 298

Bizarre. You think I just made that up? Go read the summary on Wikipedia and in particular pay attention to the following section:

On August 24, 2012 the jury returned a verdict largely favorable to Apple. It found that Samsung had willfully infringed on Apple's design and utility patents and had also diluted Apple's trade dresses related to the iPhone. The jury awarded Apple $1.049 billion in damages and Samsung zero damages in its counter suit.[51] The jury found Samsung infringed Apple's patents on iPhone's "Bounce-Back Effect" (US Patent No.7,469,381), "On-screen Navigation (US Patent No.7,844,915), and "Tap To Zoom" (US Patent No.7,864,163), and design patents that covers iPhone's features such as the "home button, rounded corners and tapered edges" (US D593087) and "On-Screen Icons" (US D604305).

Comment Re:Proof that Obama is corrupt (Score 4, Insightful) 298

Apple claimed, and got a court to agree with them, that any rectangular phone with rounded corners violated their patents.

There's no standard that says phones should not slice your fingers when you touch the edges, but it is nevertheless an essential design property. That's not a requirement of GSM, that's common fucking sense.

If you think Samsung is somehow the aggressor here and Apple is a poor hurt little child, you need a serious reality check. Ever since it became apparent that the iPhone had a real competitor in Android, Apple has been trying to shut down the competition left right and center with bogus patents that should not exist.

Firstly, a US court with a Silicon Valley jury found for Apple despite serious juror misconduct (to the extent that their judgement made no sense and they had to be told to do it again). Then after Samsung managed to hit back Obama himself vetoed the punishment.

These events have made the US look like a banana republic where the justice system is weak and laughable.

Comment Re:Iranian Stuxnet? (Score 2) 241

Given they apparently haven't even switched on any computers there yet, presumably the cyberattack fun still hasn't begun.

This raises the question of where they're processing all their existing data. Fort Meade ran out of electricity some time ago, from what I understand, so presumably they have some other big datacenters in other places.

Comment Re:From someone who has worked there... (Score 2) 85

Yeah, you put in words what I was thinking for a while now. It's obvious that these problems aren't specific to the NSA or GCHQ. Rather they're due to a cold war mindset that too many senior civil servants and politicians seem unable to break out.

GCHQ has been hacking Belgacom to spy on the EU in Brussels. WTF? Why?! If they want to know what's going down in the EU then they can just ..... go ask. I mean the UK contributes its fair share of money to the EU, so what possible benefit is there to treating it as if it was the KGB?

These agencies need to be stripped down, badly, and the money saved reinvested into other things. The staff that are left can be given a purely defensive mandate (w.r.t internet stuff at least). But I don't think it will happen whilst the current lot are in charge. They seem to like the power too much. And maybe they are also trapped in a cold war mindset. Perhaps it will take my generation, the first post cold-war generation to enter politics before these problems get really fixed.

BTW the UK announced today that it was renaming the national police squad again. SOCA no longer, now it's the National Crime Agency, formed from merging several agencies together ...... and slashing the budget by 30%. So it is spending money to record all internet traffic, every last TCP ACK, but the actual police who deal with practical problems on British streets, like gang warfare, they're having their budget murdered. 999 response times have doubled since austerity began. It's obvious that a working national police force and working emergency services save more lives than GCHQ hacking oil firms and telcos.

Comment Re:Well, there we have it (Score 1) 416

Well, this is the peak oil argument - more oil can always be extracted, but at what price? The price is high because extracting oil from shale rock is significantly harder than getting the old fashioned stuff, which is why it's been left till last and it took many years of high prices to cause a surge in production. I don't think prices will fall again back to where they were pre-2004, ever.

Comment Re:Lost forever? (Score 1) 294

It reduces the maximum resolution of the system and means some prices would be too small to represent on the wire.

Should the Bitcoin community one day be so successful that the system being unable to represent prices low enough is an actual problem, a flag day can be scheduled which changes the wire-size of the value units in the protocol, thus adding more "decimal places" (they are not really represented as floats).

The nice thing about Bitcoin is that it's a consensus system, so scheduling flag days is quite straightforward as long as you do actually get a majority of people to upgrade by the given date. As long as a majority do, the rest of the nodes will be automatically disconnected from the system and have to upgrade to rejoin.

Comment Re:Money for his defense (Score 1) 294

They know the outputs in the guys wallet - if that money were to suddenly start moving, it would eventually (probably quickly) have to turn up at one of the Bitcoin exchanges, given how tiny the Bitcoin economy is and how much more useful a state backed currency is (today). Those exchanges are all well known, registered with their local governments, etc. Figuring out who is trying to cash out would not be very hard.

Comment Re:Money for his defense (Score 2) 294

You'd have put money away and bonded lawyers so they could "spring you"? How exactly are these lawyers going to do that? Ulbricht is guilty as fuck and clearly knows it. The two criminal complaints are overflowing with evidence and that's not going to be all the Fed's have got. I have a hard time seeing how any lawyer is going to wriggle out from under all that stuff. Doesn't matter if you somehow managed to bond the best of the best ahead of time.

Also, you seem to have overlooked the fact that the guy was poor. Given he had explicitly stated in the past that he was motivated by money, that rather implies he was afraid of converting large chunks of his Bitcoin wealth into dollar wealth, probably because he wasn't sure he could beat the ID verification and AML checks the exchanges all do these days. If a bank sees an unemployed guy who lives with flatmates suddenly start receiving enormous wires from a Bitcoin exchange, and then sending money on to law firms, that's the kind of thing that triggers them filing a "suspicious activity report" with the US Treasury. It's actually not so easy to cash out large illegal holdings of Bitcoin, you'd have to find someone to do it on your behalf who doesn't mind potentially being hit with a money laundering charge if you were to go down. That's not easy.

That said, I'll agree that the guy was a walking cliche. The only thing unclear to me is how many criminals out there aren't - whenever we see cases like this, it always seems like the gangsters literally started speaking like a bad movie character. Is it that the movies are so accurate, or the bad guys learn how to behave by watching films?

Comment Re:ill tell you how to fix it (Score 1) 194

THIS THIS THIS THIS

So much this.

My policy is exactly the same.

I used to hate how the web had outgrown the internet. I use the Internet a lot more than I use the web. I usually keep more SSH connections than open tabs, and my torrent traffic far exceeds any web use. Well, we're coming to an even sadder reality: Not only has the web eaten the Internet, a handful of websites are eating the internet.

Comment They should sue browsers too ... (Score 4, Insightful) 194

The solution to this is obviously to avoid facebook/twitter and all that shit like the plague.

Regardless, how can they sue somebody for doing a fucking greasemonkey script? "This software tinkers with our webpage" seems to be their logic. Well, so does every browser on planet earth. HTML is a declarative language, you REQUIRE a user agent to interpret your webpage. Essentially, you are telling the user "well, here is this information, and we think it should be displayed sort of like this". That's it. The user can either parse the code on his own (aka just read the source), or write some code to do it, or use somebody else's code to parse it. How are the actions performed by this script any different from what any browser does?

If you publish a website, everytime it's displayed, you are acting as GUESTS in my computer, no the other way around, and you'll play by my rules.

Comment Re:a related question (Score 5, Interesting) 234

Because he knew that if there was an indiscriminate data dump, governments would use that to distract from the real meat. By getting professional journalists to digest the data into understandable stories, he ensured that would not happen. Also he feels details about specific operations or sites or whatever isn't really important to the debate, which is what he cares about the most.

Now that said, we'll have to see if he is happy with the current level of disclosures. My impression so far is that he has been very happy with how things worked out. But this is a guy who had EFF and Tor stickers on his laptop. If he knows Tor is broken and the Guardian do stories implying that it's not, it'll be interesting to see if he has any reaction to that. Right now he's lying low because he wanted to fade away so the stories focus on the material - and that's something he has done amazingly well.

Comment Insufficient data to draw useful conclusions (Score 5, Interesting) 234

A few days ago a well known Tor developer was getting angry on Twitter because he thought the Guardian was holding back a story on Tor due to redacting requests and pressure from governments.

The presentations cited date from 2007. That's 6 years ago and tells us diddly squat about their current capabilities. All it tells us, really, is that in 2007 they had developed some working techniques in the lab, and were talking about the same kinds of attacks that were being discussed in public. It also tells us they use custom malware - but that was already revealed previously.

The Snowden files contain a complete copy of GCHQ's internal wiki. It seems highly unlikely that there is no further information on Tor after 2007. Rather, it feels like the British and American governments treat their capabilities against Tor as one of their most valuable secrets and applied significant pressure, the resulting compromise being "you can make a story about Tor, as long as it's based on old information that is no longer relevant".

Slashdot Top Deals

The best laid plans of mice and men are held up in the legal department.

Working...