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.

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.

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).

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.

Comment Re:Maybe I'm stating the obvious, but (Score 1) 262

When I type I mentally spell out every word and know that I have to hit those keys.

I can't speak for you, but I will say that I doubt this is the case for the majority. I'm pretty sure that's not the case for me, at least, after years of touch typing. I'm not a native English speaker, but lately (last couple of months) I've begun mixing up 'your', 'you're', 'whose', 'who's', etc. in my writing. I correct it immediately when I see it, but I don't spell out every word when I type, so my reflexes/fine motor skills just type up whatever.

I still think, though, that a brain scanner/what it's called could read what words I intended to type and distinguish them from my regular brainstorm.

Comment Re:Why? (Score 2, Insightful) 283

Who the hell needs 13 Gazillion addresses on their LAN? On the internet sure, ok....who the fuck going to connect a Windows box to the internet without NAT/Firewall?

Network address translation came into use because you had limited supply of IP addresses, pigeonhole problem basically. With IPv6 that's not needed, because surely 3.4×10^38 addresses should be enough for anyone. You'll just need a firewall to reject requests from outside your own assigned block.

Comment Re:Isn't this cool? (Score 1) 131

Remember back in the 90s when everyone was jizzing in their pants about Bruce Sterling and Neal Stephenson's writing, dreaming of actually implementing the ideas therein? Data havens, crypto-anarchism, impregnable anonymity, hackers making a decent living by a life of crime, and so forth?

Somewhere, on a secret global malware authors' intranet, on a site running Slashcode, scammers are praising 2010 as the year of unregulated DoS'ing on the Internet.

Slashdot Top Deals

And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones

Working...