Forgot your password?
typodupeerror

Comment Re:Multiplatform is king - and Go is multiplatform (Score 5, Informative) 260

From wikipedia

Go's "gc" compiler targets the Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, Plan 9, and Microsoft Windows operating systems and the i386, amd64, ARM and IBM POWER processor architectures/ A second compiler, gccgo, is a GCC frontend.

So there are two major compilers for Go already, one of which is gcc based which targets just about every platform under the sun. I'm not saying go will run everywhere gcc will compile code because the runtime also needs porting, but it is very cross platform.

I developed one of my command line apps in Go http://rclone.org/ and I release binaries for it which run on Windows, OS X, Linux, *BSD and even Plan 9 all cross compiled from my Linux workstation.

Comment Education for parents needed - set a PIN! (Score 2) 152

My 5 year old son taught me a very important lesson about having a PIN on your payment methods...

Luckily it only cost me £25 ($40).

Not being a great reader my son just clicks OK to all the boxes that pop up, so there is great opportunity for game manufacturers to dupe unsuspecting parents into spending lots of their cash.

It is a one time only scam though which I really should have thought through but I, along with thousands of other hapless parents, have inadvertently contributed to Zepto Labs' coffers.

Education for parents is the solution IMHO. I got mine the hard way ;-)

Comment Try to break the disk before you lose your data (Score 2) 348

Stress testing hard disks is a particular bugbear of mine, after having some really bad luck with early hard disks. Over the 15 years that I've been doing it I've had to send back loads of hard disks and flash cards because they failed my tests, either breaking completely or returning single bit errors in your data. Mostly the manufacturers will take disks back if you can get their stupid Windows program to return an error code. Sometimes it takes a bit of arguing but ultimately the manufacturers want to keep you happy. Flash disks with single bit errors are the hardest to send back in my experience.

Here is the latest generation of my stress testing code (re-written in Go recently): https://github.com/ncw/stressdisk

(Interestingly the stressdisk program sometimes finds bad ram in your computer too!)

I generally thrash every new hard disk or memory card for 24 hours to see if I can break it before trusting any data to it!

I also run a long smart test too.

Somewhat paranoid, yes, but I really, really hate losing data!

Comment Check why the files are corrupted (Score 5, Insightful) 247

I'd be asking myself why lots of files became corrupted from one dodgy file system event. Assuming HFS works like file systems I'm more familiar with, it will allocate sequential blocks for files wherever it can. This means that a random filesystem splat is really unlikely to corrupt loads and loads of files. You might expect a file system corruption to cause a load of files to go missing (if a directory entry is corrupted) or corrupt a few files, but not put random errors into loads of files.

I'd check to see whether files I was writing now get corrupted too. It might be dodgy disk or RAM in your computer.

The above might be complete paranoia, but I'm a paranoid person when it comes to my data, and silent corruption is the absolute worst form of corruption.

For next time, store MD5SUM files so you can see what gets corrupted and what doesn't (that is what I do for my digital picture and video archive).

Businesses

Inside Factory China 135

blackbearnh writes "While China is attempting to pull its industry up out of mere manufacturing mode, for now the country is the production workhorse of the consumer electronics industry. Almost anything you pick up at a Best Buy first breathed life across the Pacific Ocean. But what is it like to shepherd a product through the design and production process? Andrew 'bunnie' Huang has done just that with the Chumby, a new Internet appliance. In an interview with O'Reilly Radar, he talks about the logistical and moral issues involved with manufacturing in China, as well as his take on the consumer's right to hack the hardware they purchase."

Comment Re:If you have a choice... (Score 4, Insightful) 186

I agree!

My personal limit is 10 lines for a shell script. If is longer than that I convert it to Python.

Python scripts have the advantage that they work on Windows too, and they have lots of os independent abstractions for file names, processes etc.

Why learn an arcane language like sh when you can learn a nice well structured language like Python and write better scripts?

A few years ago I would have used Perl rather than Python, but I'm converted now ;-)

Comment What about the market leaders? (Score 4, Informative) 413

It would be nice to see comparisons of the market leaders with development for iPhone / Android.

Based on raw market share, Symbian is the market leader (57%), followed by Blackberry (17%), Windows Mobile (12%), Linux (7%) and then iPhone (2.8%). Android yet to make a showing!

( Figures from http://en.wikipedia.org/wiki/Smartphone )

I've done Symbian developement and there are lots of ways of doing it. Nokia's C/C++ API, Java or even Python. It isn't 100% open as in you can't have the source code of the OS, but the APIs are all documented and there aren't any restrictions on what your apps can do. If you want your apps signed it can be harder I'm told, but I've never tried that.

Unix

Persistent Terminals For a Dedicated Computing Box? 288

Theovon writes "I just built a high-end quad-core Linux PC dedicated to number-crunching. Its job is to sit in the corner with no keyboard, mouse, or monitor and do nothing but compute (genetic algorithms, neural nets, and other research). My issue is that I would like to have something like persistent terminal sessions. I've considered using Xvnc in a completely headless configuration (some useful documentation here, here, here, and here). However, for most of my uses, this is overkill. Total waste of memory and compute time. However, if I decided to run FPGA synthesis software under WINE, this will become necessary. Unfortunately, I can't quite figure out how to get persistent X11 session where I'm automatically logged in (or can stay logged in), while maintaining enough security that I don't mind opening the VNC port on my firewall (with a changed port number, of course). I'm also going to check out Xpra, but I've only just heard about it and have no idea how to use it. For the short term, the main need is just terminals. I'd like to be able to connect and see how something is going. One option is to just run things with nohup and then login and 'tail -f' to watch the log file. I've also heard of screen, but I'm unfamiliar with it. Have other Slashdot users encountered this situation? What did you use? What's hard, what's easy, and what works well?"
Google

YouTube Refuses To Remove Terrorist Videos 676

hhavensteincw writes "YouTube has declined a request from Sen. Joe Lieberman remove videos from terrorist organizations. Lieberman said that the videos made by groups like Al-Qaeda show assassinations, attacks on US soldiers leading to injuries and death, and weapons training, 'incendiary' speeches, and other material intended to 'encourage violence against the West.' YouTube said that while it removed some of the videos highlighted by the Senator, most were allowed to stay because they did not violate YouTube's community guidelines. YouTube went on to note that they are strong supporters of free speech."
The Internet

Congressman Tells Comcast, Hands Off BitTorrent 304

An anonymous reader writes "Just a few months back, the Net Neutrality debate was all but dead. Luckily for fans of a free Internet, the telcos are their own worst enemies. Recent stories involving Verizon Wireless blocking pro-choice groups, AT&T censoring Pearl Jam's anti-war comments from a streaming concert, and most recently, Comcast finally admitting to using anti-BitTorrent filters. The Net Neutrality debate would appear to be alive and kicking, with Congressman Rick Boucher (D-VA) being the first politician to make a public statement sharply criticizing Comcast's actions."
Intel

Submission + - Intel X38 High End Chipset Launch and Benchmarks (hothardware.com)

MojoKid writes: "Though many leaks of the product have been circulating for some time, Intel officially took the wraps off and launched their new X38 Express chipset for the high-end desktop motherboard market. With this launch, the Intel desktop chipset line-up gets a new flagship. Intel's new X38 chipset encompasses all of the technology advances that have made the P35 a success and adds a slew of new features designed to increase memory and graphics subsystem performance, like PCI Express 2.0 SerDes and Intel Extreme Memory technology in the new X38 MCH. The Asus motherboard tested in this article at HotHardware even features an embedded Linux-based OS that boots in a matter a seconds."
Microsoft

Sweden's Vote on OOXML Invalidated 232

Groklaw Reader writes "Just days after Microsoft's attempt to buy the Swedish vote on OOXML came to light, SIS declared its own vote invalid. The post at Groklaw references a ComputerWorld article with revelations from Microsoft: 'Microsoft Corp. admitted Wednesday that an employee at its Swedish subsidiary offered monetary compensation to partners for voting in favor of the Office Open XML document format's approval as an ISO standard. Microsoft said the offer, when discovered, was quickly retracted and that its Sweden managers voluntarily notified the SIS, the national standards body. "We had a situation where an employee sent a communication via e-mail that was inconsistent with our corporate policy," said Tom Robertson, general manager for interoperability and standards at Microsoft. "That communication had no impact on the final vote." ...'"

Slashdot Top Deals

The only way to learn a new programming language is by writing programs in it. - Brian Kernighan

Working...