Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: Re:Web support (Score 1) 69 69

I found Wt really interesting, replacing desktop UI controls with their equivalent in HTML ones, passing the data back to the same c++ backend that the desktop would use. I'm sure it'd be a cool thing to replace your QApplication woth WApplication and have it turn into a html5 GUI, but what's the chance the GUI components supported would just be the most basic?

Comment: Re:Win7 is likely to be my last Windows (Score 1) 300 300

true, Windows stole a lot of features from Linux (without doing them as well), but I don't think the desktops feature in Win10 will be as slick as you want, partly nothing ever is unless it has the exact feature set and keys, and partly because multiple desktops has not been a prime feature for Windows user since.. ever, as you know by the lack of a desktops program!

I'd just stick with Windows 7 until there is a need to move.

Comment: Re:The problem is that landfills are too cheap (Score 1) 371 371

plastic is easy to recycle generally melt it down but... it depends opn the types. You cannot recycle "plastic" if you have a heap of plastic that is a mix of HDPE and Polystyrene, not unless you sort it into 2 distinct heaps first.

And that's the problem. Sorting is hard as one white bottle can look much the same as another white bottle made with a different type. Maybe they could legislate that all plastic goods are easily marked in some way (like coloured insert or large area of special texture that varies by type), but otherwise you're going to have to sort it expensively.

Comment: Re:The problem is that landfills are too cheap (Score 4, Informative) 371 371

Its not quite that simple.

Glass - really easy to recycle, we have even been doing this for decades in the UK. Only thing is, you have to sort it by colour first or it cannot be recycled, except as glass that is used in non-consumer areas.

Metal: easy to recycle, ferrous material is even easier as a big magnet can sort it. The rest is basically aluminium from drinks cans.

Paper: can be easy, but not if its contaminated with plastic (eg windowed envelopes) or plastic (coated to make it shiny). Even then, there's a limited recycling cycle for it, but it can still be burned in the end.

Plastic: now we get a problem. There are so many different types, (you can see them on your products by looking for the number inside the recycle triangle). Then there's problems with the colours - put black plastic in with the rest and it can only be turned into more black plastic. The prices for most plastic is so low that its often cheaper to just chuck it in the garbage.

Ultimately sorting at source is the only option to make recycling cost effective (and even then, if one neighbour decides to stuff his rubbish in the recycling bin, none of the lorry load that collected it gets used).

Round here, we do plastic in bags; metal, paper and glass in bins. I used to live in a place where you could put the latter 3 in a single bin as sorting that was relatively easy, but they didn't take plastic at all.

There are ways to encourage recycling like we used to do: community groups could collect things like paper, you'd store them until a church or scout group would turn up to collect bundles of one type of material (say, papers) where they would take them to be recycled and possibly even get paid for them as the bundles would be properly sorted and thus worth a lot more, or you could just put a penny deposit on glass or metal that could be refunded on return.

BTW, Ars had an interesting tour of a recycling centre:

http://arstechnica.com/science...

Comment: Re:Knowing when not to (Score 1) 342 342

to be fair, the same applies to all languages - I recall the C# yield stuff someone wrote once (probably because it was cool, and even he couldn't understand what he had done sometime later).

And then I think of my colleague who writes the simplest of C# code, but writes it in layers behind layers that its a maze.

Language features do not necessarily make for confusion, like most things, its the way you do it that matters.

Comment: Re:Rhino horns don't even work! (Score 4, Interesting) 163 163

and the pangolin, what's not used for trinkets or medicine is simply scoffed.

http://www.bbc.co.uk/news/maga...

"They asked up to $1,500 (£1,000) a kilo. Asked why they were so expensive, one woman replied with no apparent shame: "Because they're rare and illegal."

My only hope here is that when the pagolins are all dead, the ants they used to eat in great quantities rise up and eat the vietnamese and chinese who put profit above ecology.

Comment: Re:Love the idea (Score 2) 163 163

I don't see the problem - the people they're up against will simply take the technology and start making their own rhino horn. After all, they understand profit more than most, so being able to make their own "honest guv, its real rhino, would I lie to you" 'medicine' without all the expense of paying some middleman poacher, you know they're going to go full-on in the fake rhino horn trade.

Comment: Re:Desktops vs Mobile (Score 1) 250 250

actually WinRT is not any language specific. You don't even need the C++/CLR bindings for it.

What happened is Microsoft took the .NET runtime (which was mostly a wrapper around win32 anyway) and turned it into a different wrapper that is now much more native code directly exposed to .NET apps, but that native code is also directly exposed to all other languages.

They have the WinRT wrapper for it which looks very much like the old .NET runtime,but it more like COM than a managed API. You can also access it via a c++ style API (that's known as WinRL) that was inspired by Microsoft's ATL APIs.

So technically .NET no longer exists, its all native runtimes bundled into the Windows core.

Comment: Re:Desktops vs Mobile (Score 1) 250 250

True in a way - you may not get the awesomeness of Django when writing webapps, and ASP.NET is pretty awful (they know - that's why keep changing it, which means your skills are always obsolete, ho hum). but you do get VS, which is pretty damn good.

I don't do much C#, preferring C++ for heavy lifting and 'something else' for specialised bits (eg UI or webapp front end) and it works very well in these cases, but I wouldn't like to code WCF or WPF or ASP.NET daily basis at all.

Team Foundation Server is pretty bad as well, they did stick git support onto it, but that's really just a git front-end on a centralised repo (which is not a bad idea, just doesn't work so well if you're used to git workflows). The back-end build system that's part of it is configured using 10,000 lines of XAML code, which is just truly awful.

Its still better than Java though!

Comment: Re:Desktops vs Mobile (Score 1) 250 250

There's no reason at all not to use C++, but you do that for the real work your app does, and then you link your C++ library to a small front-end that is written in whatever the native toolkit is for your platform.

So you can have your C++ logic accessed by iOS, or Android, or Windows phone or desktop. You can even hook it up to a webserver (or embed one) and have it running as a webapp.

It does cost a little more, creating these different UIs, but the benefit is often worth it. Qt is great, ut native UI is better at being a UI on its intended platform.

Comment: Re:Desktops vs Mobile (Score 1) 250 250

this , so much. C# may be Microsoft Java++ but at least they get updates on a weekly basis, Oracle... well, even if you do get notified of an update there's no guarantee it'll apply correctly anyway (possibly due to Windows security software preventing it, or firewalls blocking the download) and even if you do download and apply it, there's a small chance someone will forget to uncheck the ask.com toolbar and you're even worse off than you were before the update!

The biggest issue is that if someone has gained access to your internet-connected server, they have massive amounts of bandwidth to launch all those nasty things they do. You want fewer DDoS extortion attacks, fewer malware botnets? Kill off Java. (note that, last time I looked a load of the security updates for the JRE was to do with webservice code, ie server-side connectivity. All those people saying "oh its only the browser plugin" are sticking their heads in the sand)

Java sucks, it just needs to die.

Comment: Re:Turn off in Windows? (Score 2) 85 85

unplug it, or if its embedded, remove the audio driver for it, or set the 'volume' control so it cannot hear anything anyway. And put some tape over the little hole it listens through.

Now.. good luck doing that on your phone.... best just to remove the app (if you can) or trust Google not to have slipped this stuff into Android as part of its voice activation feature (for your convenience, of course)

Torque is cheap.

Working...