Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Submission + - LG Smart TVs sending USB connected storage filenames back to corporate server (blogspot.co.uk) 4

An anonymous reader writes: After some investigation, I found a rather creepy corporate video advertising their data collection practices to potential advertisers. In fact, there is an option in the system settings called "Collection of watching info:" which is set ON by default. It turns out that viewing information appears to be being sent regardless of whether this option is set to On or Off. It was at this point, I made an even more disturbing find within the packet data dumps. I noticed filenames were being posted to LG's servers and that these filenames were ones stored on my external USB hard drive.

Submission + - How Perl and R reveal the United States' isolation in the TPP negotiations (washingtonpost.com) 1

langelgjm writes: As /. reported, last Thursday Wikileaks released a draft text of the intellectual property chapter in the Trans-Pacific Partnership Agreement. Since then, many commentators have raised alarm about its contents. But what happens when you mix the leaked text together with Perl regular expressions and R's network analysis packages? You get some neat visualizations showing just how isolated the United States is in pushing for extreme copyright and patent laws.

Submission + - U.S. Government: Sorry, We're Closed 2

theodp writes: CNN reports that the U.S. government shut down at 12:01 a.m. ET Tuesday after lawmakers in the House and the Senate could not agree on a spending bill to fund the government. Federal employees who are considered essential will continue working. But employees deemed non-essential — close to 800,000 — will be furloughed, and most of those are supposed to be out of their offices within four hours of the start of business Tuesday.

Submission + - Linux health given the reveletion of NSA crypto-subverting attacks? 4

deepdive writes: I have a basic question. What is the privacy/security health of the Linux kernel (and indeed other FOSS OS's) given all the recent stories about the NSA going in and deliberately subverting various parts of the privacy/security sub-systems. Basically, can one still sleep soundly thinking that the most recent latest/greatest ubuntu/opensuse/what-have-you distro she/he downloaded is still pretty safe. Or do people need to get a little worried and start burning some extra night oil over this?

Submission + - Police pay £660,000 for music licences (bbc.co.uk)

twicepending writes: From the article, "Police chiefs in England and Wales paid £660,952 for licences so staff could listen to music in offices in the past year, a Freedom of Information request has revealed."

Comment Re:Source code (Score 1) 211

it's perfectly valid for a filename to start with two dashes.

It is also perfectly valid for a filename to start with a single dash. But that is irrelevant to the issue.

The issue is with the parameters / command line options / arguments. This is the part AFTER the program name. $args contains an array of everything after the filename, delimited by breaking space (and a few other scenarios). Single hyphen parameters within these arguments can be automatically parsed and set. Double hyphen parameters are not a documented feature, are unsupported, and may exhibit behaviour that the user does not expect.

The term 'Best Practice' exists for a reason.

Comment Re:Source code (Score 1) 211

That's even more stupid - any author of any system could at any time change the rules and break existing programs. In fact, Unix is more prone to this than Windows, going by your earlier statement.

My post is not about changing existing rules, but leaving room to add more features. A single hyphen is to be used for command line arguments. This leaves a double hyphen available for a future use; whether that be implementing GNU-like syntax, some new security paradigm, a switch to set a flag, or any number of uses.

There's no guarantee Microsoft won't decide to break programs using their established conventions too - except that it would be bloody stupid to do so. Not to mention that even their own "conventions" vary significantly from tool to tool.

Standards, conventions, guidelines, and rules are all there for a reason. It is one method of future proofing and is vital to follow for a program to exhibit expected behaviour. Why be a maverick and use double hyphen when there is no need whatsoever other than to be different. That is hipster-coding.

I don't think I'm going to worry about the possibility that Microsoft might stop passing command line options to programs. It's a ridiculous fear, and the fact that you got even one mod point for this shows how far Slashdot has fallen.

Microsoft won't stop passing command line options to programs - that would break every program. What Microsoft MIGHT do, and it would be both safe and fair for them to do so, is have the shell examine the parameter string, cut out double hyphen parameters, pass the remaining string to ARGV, then act on those cut parameters separately prior to or simultaneously with program execution. If developers have acted competently and followed the conventions, this will not cause any issues.

This is not a fear - it is just common sense. I got a single +1 Informative as someone has either learned something, has thought about something they haven't put their mind to before, or thinks that someone else may benefit from the information. I am not a developer. I am not a Windows user. But I read, and I absorb. It is called listening. That more people don't do it shows how far society has fallen.

Comment Re:Source code (Score 2) 211

Why do you claim --help is invalid on Windows?

It will work (at the moment) but goes against the conventions set by Microsoft.

Microsoft could, at any time, change the way it interprets a double hyphen, breaking your program.

It is safe at the moment because Windows passes the entire parameter string via ARGV

Comment Re:Source code (Score 3, Interesting) 211

-h? Next time, use all three of these: -?, -help, --help. I'm probably not going to try throwing -h at a program without having a clue what it might do.

For non-Windows systems:
-h is Valid
-? is Invalid as '?' is a special parameter that may be expanded by the shell
-help is Invalid on GNU/Linux (though used often by ported applications)
--help is Invalid on older Unix systems.

For newer Windows systems:
-? is Valid (and mandatory)
-Help is Valid (and mandatory)
--help is Invalid
-help is Valid
-h is Valid

-h is the safest option

Submission + - Feds Seek Prison for Man Who Taught How to Beat a Polygraph

George Maschke writes: In a case with serious First Amendment implications, McClatchy reports that federal prosecutors are seeking a prison sentence for Chad Dixon of Indiana, who committed the crime of teaching people how to pass or beat a lie detector test. Some of his students passed polygraphs and went on to be hired by federal agencies. A pleading filed by prosecutors all but admits that polygraph tests can be beaten. The feds have also raided and seized business records from Doug Williams, who has taught many more people how to pass or beat a polygraph over the past 30 years. Williams has not been criminally charged.

I'm a co-founder of AntiPolygraph.org (we suggest using Tor to access the site) a non-profit, public interest website dedicated to exposing and ending waste, fraud, and abuse associated with the use of lie detectors. We offer a free e-book, The Lie Behind the Lie Detector (1 mb PDF) that explains how to pass a polygraph (whether or not one is telling the truth). We make this information available not to help liars beat the system, but to provide truthful people with a means of protecting themselves against the high risk of a false positive outcome. As McClatchy reported last week, I received suspicious e-mails earlier this year that seemed like an attempted entrapment.

Rather than trying to criminalize teaching people how to pass a polygraph, isn't it time our government re-evaluated its reliance on the pseudoscience of polygraphy?

Submission + - Voters need magnifying glass to read Australia's upcoming senator ballot paper

ras writes: The large number of candidates means the Australian Electoral Commission is proposing to issue magnifiying glasses so voters can read the senate ballot paper for the upcoming Federal election. Printing restrictions mean the ballot paper is limited to 1 meter wide and one level deep. With 50 parties the print size will have to be reduced to 6 pt so it fits, which is illegible without a magnifying glass. For comparison, a Australian voting booth is 0.6 meters wide.

Submission + - Amarok 2.8 "Return To The Origin" Released (kde.org)

jrepin writes: Music player Amarok 2.8 has been released and it brings a fancy audio analyzer visualization applet, smooth fade-out when pausing music, many UI improvements and visual tweaks including better support for alternate color themes, significantly enhanced MusicBrainz tagger, power management awareness with a pair of new configuration options, and performance optimizations and responsiveness tuning all over Amarok.

Submission + - Aussie Public Servant criticises govt on Twitter, gets sacked (smh.com.au)

An anonymous reader writes: An Australian Public Servant who criticised the government on Twitter has been sacked even though she did not reveal her name or her job to her readers. Federal Judge Warwick Neville told her Australians had no ''unfettered implied right (or freedom) of political expression''. Unlike Americans, Australians have only limited rights to Free Speech. The new ruling makes means public servants cannot criticize the government on social media, even privately and in their own time.

Slashdot Top Deals

Work is the crab grass in the lawn of life. -- Schulz

Working...