Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:More verbose == less readable? (Score 1) 580

What is unfortunately also annoying with "functionifying" a method is that it clogs up the class methods, I wish there was a keyword like "foohelper() helps foo();" which would mean foohelper() is only in scope inside foo(). If something is complex and consists of several long operations, it's usually cleaner to have a supermethod which only calls helpers.

Ideally, those methods/subroutines/functions, i.e. foohelper() should be declared and defined inside the method/sub/function they're helping, i.e. foo():

function foo(input):
function preprocess(input):
...
end function function process(input): ... end function intermediary = preprocess(input) result = process(intermediary) return result end function

There are two kinds of helper functions, those that serve only one function and those that are useful in general (which can also become a problem) - and if your helper function is only useful in one scope, it should only be defined in that scope.

Comment Re:Throw away data? (Score 2, Insightful) 190

Proving a theory incorrect is often just as valuable as proving a theory correct.

I'd rather say proving a theory incorrect is just as valuable as proving a *hypothesis* correct. If it's a hypothesis, it's no fun proving it wrong (it wasn't established anyway, it might go against your intuition but nobody cares), and if it's a theory, it's no fun proving it right (what are you talking about, of course it's right, we already knew that).

I would elaborate on this but that would just be filler.

Transportation

China Debuts the World's Fastest Train 491

An anonymous reader writes "China unveiled their new high speed train that clocks in at an average of 217 mph. China's new rail service travels through 20 cities along its route, connecting central China and less developed regions to the larger and more industrial Pearl River Delhi. Seimens, Bombardier and Alstom worked together to design and build this feat of modern transportation, which topped out at a whopping 245mph (394km/h) during trial runs earlier in December."

Comment Re:Use chmod (Score 1) 539

chmod 744 /var/log (modify the directory name as needed so that it points to where your logs reside)

0744 = owner read exec, group and world read only (or in ls -l format: dr-xr--r--). Read permissions won't do you any good, you need executable to access files within and list directory contents, so it'll be chmod 0755 instead.

$ mkdir test
$ echo test > test/test
$ chmod 0744 test
$ sudo chown nobody test
$ cat test/test
test/test: Access denied
$ sudo chmod 0755 test
$ cat test/test
test

(Actually, read permissions are meaningless for directories so far I know, so 0755 is equivalent to 0311 for directories.)

Preferably, set up a logging group or similar, create a user for the provider in the logging group and make the directory 0750.

NASA

NASA and Space Station Alliance On Shaky Ground 73

coondoggie writes "Even as the latest shift of astronauts arrived at the International Space Station, challenges with the orbital outpost on the ground are threatening its future. Those challenges include the pending retirement of the space shuttle but also the way NASA and the ISS are managed. A report issued this week by the Government Accountability Office said NASA faces several significant issues that may impede efforts to maximize utilization of all ISS research facilities."

Comment Re:Can it Edit MKV files etc.... (Score 1) 120

I would like something that can open anything and then edit it.

It would be nice to have a good video editor, One that was free back in the day was DDClip it worked pretty good back in 00' . Anythign is better than the abortion that is Windows Movie Maker....

In the sense that VLMC can read anything and subsequently write something, yes, probably. I very much doubt the number of output formats will match the number of input formats, though.

I always thought Windows Movie Maker was good for video stitching, the problem was it could only output to a WMV, which is understandable (msft and all that).

Displays

OLPC Unveils Plans For Tablets By 2012 102

adeelarshad82 writes "The One Laptop Per Child (OLPC) initiative outlined its product roadmap for the next three years, a plan that includes the release of tablet-based OLPC by 2012. During the next three years, OLPC plans on releasing two laptops, the first two years' priced around $200 and $150 respectively, before launching a tablet in 2011 for less than $100."

Comment Re:Typical proprietary bullshit (Score 1) 283

The only thing I think Google is missing is a way to export all your Google information into a data file you can upload into someone else

As previously discussed, they are working on that. It's not a complete, one-click solution yet, but for instance since releasing it they've added the possibility to export all Google Docs documents to a single archive - previously it was per-document only.

Slashdot Top Deals

An authority is a person who can tell you more about something than you really care to know.

Working...