Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Hide behind todays popular hate-topic... (Score 1) 182

Download checksum are usually one or more of MD5SUM, SHA1SUM and SHA256SUM.

A simple transposition of bytes will not generate identical hashes.

From RFC793:

The checksum field is the 16 bit one's complement of the one's complement sum of all 16 bit words in the header and text. If a segment contains an odd number of header and text octets to be checksummed, the last octet is padded on the right with zeros to form a 16 bit word for checksum purposes. The pad is not transmitted as part of the segment. While computing the checksum, the checksum field itself is replaced with zeros.

The extremely weak checksum of the TCP header (or even IP header) will not detect byte transposition.

And no amount of checksumming will stop drive-by-downloads from browsers that still don't understand basic security. (Really, Javascript permissions should have been introduced in Netscape 2.0.)

Comment Re:Hard to get excited. (Score 1) 129

video is the vast majority of the internet. Seems like a better use of their time to focus on making HEVC or VP9 more capable.

Most videos (at least those linked to from meme-based image sites) are stored in GIF format, despite them taking twenty times the bandwidth/file size of the Youtube video they're based on.

Thus the best way to save space/bandwidth is to find a way to optimize compression of .GIF files.

Comment Tech for a non-issue (Score 1) 128

Could technology like RFID-tagged chess pieces

Is this a tech-for-no-reason article?

The article gives a long example where players need to figure out things like checkmate. That's the most trivial of problems, which players need to figure out just to complete the game. Plus, average children at the K-5 (outside of tournaments) have a house rule where capturing the enemy king is a checkmate, which is the same effect.

An easy question if you are an avid chess player, but what if you are not?

If you're at a tournament for that, then you really need to play a few chess matches yourself - even if it's against BattleChess, Chessmaster, or plenty of other free computer programs that can have their difficulty significantly reduced.

Comment Re:Uhm... since when are non-competes a bad thing? (Score 1) 97

Don't they stop employees from taking any kind of IP and running away with it, which would basically kill the industry?

That would be confidentiality agreements Non-competes are meant to prevent employees from leaving, and immediatly undercutting the employer.

As for why they're bad, I didn't find what I was looking for (a Texas software engineer sued for work before and after employment at a company), but one sample non-compete is more of a restraint-of-trade, requiring an employee to be unemployed for a period of three years (no regional limitation and no consideration.)

Such non-competes don't prevent innovation from being released into the wild, but instead choke the supply of available workers.

Comment Re:Requires Windows 8 (Score 1) 226

Bleh. Last paragraph should read:

I think the point is that Visual Studio encourages programmers to code to APIs available only on Windows.

I think that's a problem with any system. For example, if you write something for Mac OS's Carbon, it still takes a bit of effort to port that to anything else (unless you have some standard middleware library.)

Comment Re:Requires Windows 8 (Score 1) 226

For one thing, nothing on the page you linked even runs on Windows Vista, which is still in extended support.

You have to scroll down to find Visual Studio 2010, but it's there. Granted, the latest version should still run on something in extended support...

I think that's a problem with any system. For example, if you write something for Mac OS's Carbon, it still takes a bit of effort to port that to anything else (unless you have some standard middleware library.)

Comment Re:Guilty until proven innocent. (Score 1) 306

I've been wondering if it already exists in already-existing copyright law:

From http://www.law.cornell.edu/cop...:

Sect. 106. Exclusive rights in copyrighted works

[...]

Sect. 106A. Rights of certain authors to attribution and integrity

Subject to section 107 and independent of the exclusive rights provided in section 106 [17 USCS Sect. 106], the author of a work of visual art--

(1) shall have the right--

(A) to claim authorship of that work,

This is probably meant to prevent other people from placing their name on your work, and probably should be tested on Youtube copyright claims. After all, a video does qualify as visual art.

Comment Re:Mmm (Score 2) 266

Yeah, and it should be reverted to the prior behavior because it doesn't fix the issue.

Prior behavior was with Windows 95/98 and really old versions of Netscape, where the browser blindly loaded an image from c:\con\con because that's the file found in the img tag. Unlike the BSoD, you needed a 110 reset.

And no, you should never revert to a revision that provides worse control over malicious scripts.

you get a never-ending stream of "would you like to stop the script?" dialogs

The script-stopping dialog would kill all scripts on that page, not just the individual one. Stopping the script includes stopping all timers produced by the script.

A "modal dialog" is a DENIAL OF SERVICE to all other application features.

Correct, and as the other anonymous poster said, an application is free to freeze itself to show that modal dialog.

What isn't acceptable is sandboxed or semi-sandboxed code running under that application capable of freezing the parent, and blocking everything else running. It is the duty of any application capable of running arbitrary code to allow the user to instantly block anything malicious or faulty, with minimal impact to things that should remain running.

Comment Re:Mmm (Score 3, Interesting) 266

do it yourself (I get that this is often not an option, but including for completeness)

Sometimes it isn't an option because your fix gets rejected (or left to idle in an obscure bug report)

For example, one build utility had a bug where it checked for the presense of a compiler, but not if it was functional. The fix was rejected because the build utility doesn't check path - despite the fact that it does so for a different compiler. (Explicitly defining which compiler to use defeats the purpose of using said tool in the first place - I'd just use Makefile instead.)

Did you know it took 10+ years for Mozilla to fix the alert() denial loop? That bug is older than Mozilla itself, and the most obvious fix of "checkbox to stop further dialogs" was dismissed as a hack (compared to the destructive hack of force-killing Mozilla.)

Comment Re:You know what they call alternative medicine... (Score 1) 517

Placebos are "real" medicine.
We just don't know how they work.

You're confusing placebos with the placebo effect. It works based on the patient's expectation on how its going to work (i.e. the mind makes it real).

There's also a person who did an experiment that negated the effect of placebos, by an injection that blocks opiates.

Comment Re:Anger (Score 1) 529

For Christs Sake! It is NOT The governments Job to attend to MY child.

Then make sure it's not the government's job to attend your child once they should become self-sufficient. (i.e. isn't forced to welfare because they couldn't find employment in their field.)

It's bad enough that we're forced into using these shitty public schools

There's a concept known as homeschooling. As long as your child can pass specific benchmarks in education (i.e. is literate and can do math), you have no need to worry. You might even assist him in getting a job so that he can prepare for college.

then to take even more resources away from us to fund special programs for kids that don't need extra help in the first place is ridiculous.

Either you're suggesting they're taking resources away from average students to fund average students, or you're suggesting that gifted students already have access to material they need to become the best the can and aren't ostracized by their peers.

In either case, moving stuff around in education should result in a negligible loss of resources - especially with the internet age where stuff can be freely copied, searched, and edited.

Speaking of which, the best flutes should go to the best flute players, because that's what flutes are for.

Comment Re:Yes (Score 1) 627

Non-ansi C either means a version that has extensions, or some implementation made before it became standardized.

The former is be trivially checked by comparing version numbers or whatever you use to detect library versions. The latter should be taken out, hung from a tree, gutted, shot and run over by a Buick.

If one still wants to test for outdated C, it's better to do a global smoke test where you cover a series of #include files and function calls in one program, rather than calling the compiler+linker several times in a row. (I don't know where, but there's a short delay between starting gcc and the first error message that prints out - indicating at least some overhead with multiple invocations.)

Comment Re:Yes (Score 3, Informative) 627

Visual Studio IDE doesn't have makefile support, but it does include nmake.exe which is good enough. However, it doesn't support autotools, since that's a Unix-specific script.

I don't like autotools myself - modern apps that use it still perform checks concerning string.h in addition to trying to detect if something is Ansi C. Anything failing those checks should be considered too outdated to be worth bothering about (especially with the software not being designed to run on ~20 year old hardware.)

Slashdot Top Deals

WARNING TO ALL PERSONNEL: Firings will continue until morale improves.

Working...