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

 



Forgot your password?
typodupeerror
×

Comment Re:Time to exchange data on the American cops... (Score 4, Interesting) 142

I remember a site like this about 5 years ago. Seems the owner was arrested and the site taken down for "interfering with an ongoing investigation" and "Aiding and abiding the commission of a Class A Felony"

Seems one of the undercover cops who's information was posted was shot and killed. They linked it back to the site and charged the owner.

Though I agree with the idea and agree that making it public is a great idea, just know that they will do anything they can to keep there actions hidden from the public.

Comment Read the paper yourself and make your own mind up. (Score 1) 55

Say you've been told you have Ebola but have read this. What do you do?

http://jid.oxfordjournals.org/...

Say, "oh, it sounds too risky, I'll tough it out"? I'm guessing not.

Any chance this is astroturfing for the company with the Ebola drug? The natural antibodies are a fierce competition to what is now a multi billion dollar market.

Comment Re:Dealth by Ebola or AIDS (Score 1) 55

People live with HIV. Ebola, not so much.

In 1933 the only psychiatrist to ever win a Nobel prize did so for discovering Malaria cures syphilitic dementia. Malaria is no joy but it's better than your brains turning to soup (three years later antibiotics were discovered).

You might die of HIV. You will almost certainly die of Ebola.

Comment Re:What the heck? (Score 1) 354

2. Bukkit contains Minecraft server code.

Correction: Bukkit contains decompiled, deobfuscated Minecraft server code. This code is already being made available. Why on earth would Mojang have to also make their original source code available? At worst, Mojang will have to LGPL the decompiled code they are already distributing as if it were LGPLed.

If I GPL a crippled version of my source code with all the comments stripped out, I am not obligated to give you the commented version for free.

Comment Re: Bass Ackward (Score 1) 354

If you buy a company, you need to make sure all contributing developers have signed a CLA [Contributor License Agreement] where they give their rights to the company you buy.

This may be the most nonsensical thing posted thus far. If company A is distributing my GPL or LGPL code then I don't have to sign a damned thing in order for company B to buy company A. Yes, company B should make sure there are no license violations going on in company A, but that is all. Once my code released under the GPL then I cannot revoke that license in order to try to screw company B.

Comment Re:ELI5 please (Score 1) 354

This is where it gets tricky. Now THEY are the ones distributing your GPL code linked to their own code, not your reverse-engineered stand-in.

If this unfounded claim were correct then the takedown notice would be valid and the Minecraft owners would be complete and utter morons. Why on earth would they go to the trouble of replacing the decompiled code with their original source code? It makes no sense. It adds no value and it means they are now only distributing CraftBukkit in binary form which would be an obvious copyright violation of the LGPL code in CraftBukkit.

What is actually going on is the Minecraft owners are distributing source and binaries of CraftBukkit which includes decompiled code of their original Minecraft server as well as LGPLed code. At most, Minecraft would have to LGPL this decompiled code that they are distributing but since they are already acting like this decompiled code is LGPLed I see no problem here.

Comment Re: Mod AC parent up (Score 1) 354

Reverse engineering might be illegal in the US (is it?), but it can logically speaking impossiblly be a copyright violation.

Decomplied != reverse engineered

Anyone can decompile. It takes work to reverse engineer. If decompiling removes all copyright obligations then copyright on source code is worthless. I just compile then decompile and distribute.

Comment Re:Infoworld... pass (Score 1) 729

What I personally would generally include would be a comment along the lines of "this struct represents the KillAllHumans message body as per " where the struct is defined, and then a comment along the lines of "overlay our message structure over the buffer to extract our data". This way even if someone wasn't familiar with the bitset notation, they could probably infer it.

I agree, comments are for the information you add, although well thought out variable names go a long way to making code understandable:

/* as per some specification */
struct KillAllHumans_Body {
...
}

I'll grant you that perl is very organic, probably the best "code as you think" language that I know of, but the vast collection of syntax and the functional density one can achieve (and some seem compelled to do so) makes it a pain to read if you didn't write it.

I am not disputing that it is easy to write obfuscated Perl but Perl style guidelines have come a very long way with Perl Best Practices by Damian Conway and the Perl::Critic module and the perlcritic program. There is a lot of Perl code written by other people that I find very easy to read. The key is to write clear code and use good variable and function names. The sigils provide context (and higher information density) which is what makes good Perl code easier to read than good Java or C code. YMMV.

Gregory Chaitin, one of the founders of algorithmic information theory once said in jest:

The LISP interpreter is about three-hundred lines of Mathematica code. Then I redid it in C, and it's a thousand lines of C, and the program is incomprehensible, which means that I'm a good C programmer!

Perl does tempt you to show off by writing incomprehensible (and perhaps incompressible) code. The style guidelines and experience can help you avoid this temptation.

IMO, the Camel Book is informationally dense. One reading was not nearly enough for me. I probably have read it all at least a half dozen times. I haven't used it in years because it is almost all on-line now and also part of the perldoc system.

[...] how do you iterate through an array of hashmap references [...]

for my $hash_ref in (@Array_of_hash_refs) {
... $hash_ref->{$key} ...
}

IMO, with descriptive variable names this construct is both easy and clear. I think it is beautiful. If you want to access just one element then use:

$Array_of_hash_refs[$index]->{$key}

For nested data structures like this I prefer to make the top level structure a reference so this becomes:

$Array_of_hash_refs->[$index]->{$key}

Which I think is a little more consistent.

I've taught Perl in college and I admit there are some (perhaps many) people who will never master it. OTOH, I once wrote a CSM system in Perl in the time the Java folks said they would need to come up with an estimate for how long it would take them to do it.

Comment Re:Infoworld... pass (Score 1) 729

In C, the first time I saw the size of elements of a struct specified (i.e. int something : 3) it threw me (and that's a hard problem to google). [...] (though a comment woulda been nice unknown dev!)

The first hit from Google(struct) is the Wikipedia(struct) entry which starts with:

A struct in the C programming language (and many derivatives) is a complex data type declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer, or the struct declared name which returns the same address. The struct can contain many other complex and simple data type in an association, so is a natural organizing type for records like the mixed data types [...]

Furthermore, I really don't think a comment should be used to explain a language element that is clearly defined in The C Programming Language (K&R) by Brian Kernighan and Dennis Ritchie. A C programmer should assume the reader is familiar with what is in K&R, otherwise the comments become a language tutorial.

As for Perl, once I really learned Perl I found it to be extremely intuitive. It is a very powerful and very expressive language. All of the sigils (and related "line noise" characters) make the code much easier to read and they make it extremely trivial to define and understand complicated data structures. Larry Wall, the creator of Perl, got an undergraduate degree in natural and artificial languages and then went on to do graduate work in linguistics. The Wikipedia says:

Wall's training as a linguist is apparent in his books, interviews, and lectures. He often compares Perl to a natural language and explains his decisions in Perl's design with linguistic rationale.

Your comment about Perl seems to boil down to the fact that it is different from languages you are familiar with and you never bothered to learn it so it makes no sense to you. Your gripe about the C struct element seems to be similar, like everyone else in the world, you have trouble reading languages you are not familiar with. I have the same problem with Russian and other languages I have never learned.

BTW, have you ever noticed that nuclear missiles tend to be only targeted at countries that use a different alphabet? Perhaps it is only a coincidence but I think it may be related to your problems with Perl, an oversimplification that equates foreign with bad.

Comment The Trouble with Physics (Score 3, Informative) 203

Lee Smolin's brilliant book The Trouble with Physics discussed this issue eight years ago. The book also includes the best introduction to string theory for a scientifically oriented non-physicist I have ever seen.

Smolin concluded the "trouble with physics" is the problem discussed in the article: the current system rewards small incremental steps over creative leaps. He discusses the risk to payoff ratios. He says the current system drums out most truly creative people.

Submission + - What most people get wrong about science

StartsWithABang writes: Convinced that the risks of nuclear power are too great for the world? That air travel is unsafe? That GMOs are poisoning our world and our bodies? That fluoridated drinking water causes long-term harm? That climate change isn't a manmade thing? Or that vaccines cause more harm than good? Unless you're willing to drop your ideology and completely cast it aside, you'll never accept what science says about these issues, and therefore you're preventing us all from making a better world. Cut it out!

Submission + - Why Munich will stick with Linux (opensource.com)

Jason Hibbets writes: "There are many solved problems in open source. Groupware is not one of them," Georg Greve, co-founder and CEO of Kolab System starts off his post highlighting recent features of the latest release of the Kolab groupware project. He calls out a few newly elected politicans that don't like the current set-up, but says that thousands of users don't have the same experience. "In other words: The very problem used to criticise the LiMux desktop is already being solved."

Comment Re:TI calculators are not outdated, just overprice (Score 1) 359

Hmm, 50 button matrix, an arduino pro mini, and a 128x64 color I2C lcd display. Ebay == $15 including shipping from china.

Some programing and you to could have a graphic calculator for cheep.

Maybe that should be a mandatory class in electronics for JH students. Learn electronics, learn some programing, and get a graphing calculator that you can use for High School and beyond.

Heck, they could even 3d print a nice case for it.

Slashdot Top Deals

You knew the job was dangerous when you took it, Fred. -- Superchicken

Working...