Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Exploiting Wildcards On Linux/Unix

psmears Re:If only this was a Microsoft issue. (215 comments)

With zsh you can type: do_some_stuff /my/files/**/*

... provided that the number of files fits into the command line argument space (a common reason for using find/xargs rather than, say, wildcards/backticks, aside from the security issues).

about 1 month ago
top

Ask Slashdot: Best Rapid Development Language To Learn Today?

psmears Re:What's wrong with html and javascript? (466 comments)

Have you ever used perl?

As it happens I've been using perl for longer than your 17 years of JavaScript, so I'm well aware of how its references work... but nothing about that changes the fact that your assertion about JavaScript's "==" comparing values is wrong; in fact, it would be truer to say that "===" compares values.

b = {}; doesn't modify b, it re-assigns b. Please learn how variables work.

I know how variables work, thanks ;-). Assignment is how you change a variable's value in imperative languages. You can't just arbitrarily assert that words like "change" and "modify" have different meanings from their standard ones..

And if you think that "1" and true are different values, then you don't understand what a "value" is.

I've got a very good idea what a "value" is. One property of values (in the context of computing) is that, if two things have different effects when passed to the same function, then they're different values. Perhaps you have a different definition of "value" that contradicts this? If so, do enlighten us, and can you provide a link to a credible source to back up your definition? Again - you can't just arbitrarily assert that words have different meanings from their standard ones.

You're either really old, used to bit-registers not complex objects, or you're really young reading text books, or you've navigated the industry by avoiding business-level programming.

Haha... actually none of the above are true. And even if they were - your assertion about "==" would still be wrong, so your comment to angel'o'sphere to "try harder" would still be uncalled for.

Wow, you are incredibly confused.

I agree that one of us is, indeed, quite confused :-)

about a month ago
top

Ask Slashdot: Best Rapid Development Language To Learn Today?

psmears Re:What's wrong with html and javascript? (466 comments)

You might also try a='1', a=1, a=01, a='01', a=0, a='0', a=false, a='', and a=null.

Using a simple scalar integer isn't an example of anything.

Yes it is - it's an example of your explanation being wrong. Here are some more. You claimed:

Double tests to see if two variables have the same value.

However,

a = "1";
b = true;
result = (a == b);

... gives a result of true - when clearly "1" and true are different values - for instance, you'll get different results if you pass them to alert(). You also said:

Triple tests to see if two variables point to the same place in memory -- are actually the same variables.

"Pointing to the same place in memory" and "actually being the same variable" are two entirely different concepts. For example, after:

a = {foo: 1, bar: [1,2,3]};
b = a;

then 'a' and 'b' refer to the same object ("point to the same place in memory", if you like), and a===b will return true. But they're still different variables, because after modifying one of the variables

b = {};

the other variable will not be affected in any way.

The reason for wanting to use triple-equals is not because "double-equals compares values", it's because double-equals sometimes behaves in a way that's confusing and not very useful. For instance, I'd expect, for any sensible equality operator, that if a==b and b==c, then a==c... but for JavaScript's double-equals, that's not true (put a="", b=[], c="0" - then ""==[], and []=="0", but "" != "0"...)

about a month and a half ago
top

A Look at Smart Gun Technology

psmears Re:Cops Won't Carry 'Em, Neither Will I (765 comments)

Hyperbole never fixes anything.

"Punishment" implies that someone did something wrong, which is not necessarily true of all gunshot victims. Like the unarmed homeless guy my local PD shot in the back last week.

Unless, of course, we consider being homeless as a punishable offense.

Haha, I'm using hyperbole?

Yes, for obvious reasons which I already pointed out - not every gunshot victim was shot out of punishment. Yes, it's a pedantic difference, but so was your completely unnecessary addition about gunshot victims, so fair's fair.

Wasn't it equally hyperbole when you talked about the "population as a whole" being punished

No, because that's exactly what laws that would remove everyone's civil liberties based on what a few people might do are for - punishing everyone for the (potential) actions of a few. It's not hyperbolic if it's not an exaggeration. For the record, your statement wouldn't have been hyperbolic if you'd have qualified it with something like, "... and some of those who get shot by them." Again, it's a pedantic difference, but pedantry is what got us to this point in the conversation.

Tthat logic makes no sense. As you say, most people haven't done anything wrong. You say that bad treatment can't be punishment if the person undergoing it didn't do anything wrong. Therefore intrusive gun control is, by your own reasoning, not punishment for those people, and your statement is hyperbole if mine is. You can't have it both ways.

The point is that, to make a balanced comparison, you have to consider the positive and negative effects experienced by everyone in society. If (and, of course, it is very much an "if") the negative effects on the population as a whole of (insert proposed freedom-reducing gun control measure here) are less than the positive effects that come from people not getting shot as a result, that's a strong argument that that measure should be implemented; if that's not the case (because the measure is so draconian that its negative effects are large, and/or the measure is not effective, or actually counterproductive, in reducing gun crime injuries), then the measure should clearly not be implemented.

Maybe I'm missing something,

Yes... you are. I'm explaining why it's important to consider the negative impact of gun crime as well as the negative impact of gun control measures, in order to be come to a balanced conclusion on whether any given gun control regime, or absence thereof, should be implemented. Do you disagree with that?

Balancing these factors is hard to do in any scientific way - not least because the value of "freedom" versus the value of not being shot is very hard to pin down quantitavely - but neglecting the harm done by gun crime is bound to unbalance the equation.

Again, how does this apply to the conversation at hand?

Because what you appear to be saying is that one should ignore the victims of gun crime when considering what the law should be. (That may not, in fact, be your position, but it's what your words are suggesting.)

about 2 months ago
top

A Look at Smart Gun Technology

psmears Re:Cops Won't Carry 'Em, Neither Will I (765 comments)

Hyperbole never fixes anything.

"Punishment" implies that someone did something wrong, which is not necessarily true of all gunshot victims. Like the unarmed homeless guy my local PD shot in the back last week.

Unless, of course, we consider being homeless as a punishable offense.

Haha, I'm using hyperbole? Wasn't it equally hyperbole when you talked about the "population as a whole" being punished - or do you consider being part of the population a punishable offence? ;-)

The point is that, to make a balanced comparison, you have to consider the positive and negative effects experienced by everyone in society. If (and, of course, it is very much an "if") the negative effects on the population as a whole of (insert proposed freedom-reducing gun control measure here) are less than the positive effects that come from people not getting shot as a result, that's a strong argument that that measure should be implemented; if that's not the case (because the measure is so draconian that its negative effects are large, and/or the measure is not effective, or actually counterproductive, in reducing gun crime injuries), then the measure should clearly not be implemented.

Balancing these factors is hard to do in any scientific way - not least because the value of "freedom" versus the value of not being shot is very hard to pin down quantitavely - but neglecting the harm done by gun crime is bound to unbalance the equation.

about 2 months ago
top

A Look at Smart Gun Technology

psmears Re:Cops Won't Carry 'Em, Neither Will I (765 comments)

Thus freedom is preserved, and only those who are actually guilty of harming others, and those who get shot by them, are punished, rather than the population as a whole.

FTFY...

about 2 months ago
top

"Smart" Gun Seller Gets the Wrong Kind of Online Attention

psmears Re:I must live in a different country... (1374 comments)

Home invasions are rare because of the 2nd Amendment. Look up the "hot burglary" (burglaries when people are in the structure) numbers for the United Kingdom sometime.

I haven't been able to find good stats on that, but what I can find suggests that the burglary rate overall is broadly similar - at most 20% higher in the UK. But even assuming the UK rate is five times the US one, it's worth noting that the gun murder rate is over thirty times higher in the US than in England&Wales. To me at least, that doesn't sound like a great tradeoff :-/

about 3 months ago
top

404-No-More Project Seeks To Rid the Web of '404 Not Found' Pages

psmears Re:There aren't many 404s (72 comments)

There aren't many 404s left anyway. Domain dealers are quick to put their hands on every dead link. Which is a shame, because a 404 would be more informative.

You don't get a 404 for a non-existent domain. You only get a 404 if you try to go to a non-existent page within a domain that's registered and has a web server running. If the domain's not registered, there's no web server to even return a 404.

about 3 months ago
top

GNU C Library Alternative Musl Libc Hits 1.0 Milestone

psmears Re:Missing the only useful comparison. (134 comments)

The compare page is missing the only other entry I wanted to see.... and that is, BSD libc. This is widely used by QNX

No, QNX has its own libc - the microkernel architecture means the system call interactions work substantially differently from traditional Unix/Linux/etc.

about 4 months ago
top

Internet Shutdown Adds To Venezuela's Woes

psmears Re:Follow the money (194 comments)

The Venezuelan regime treats every problem as a nail to be hammered, so it THINKS the Internet shutdown will help them.

I was in Egypt when the government shut down the internet for several days to prevent protests, prior to the ousting of Mubarak. It was a very short-sighted move: to a great extent, the only thing keeping a lot of people off the streets was Facebook - take that away, and people's only option (for information and/or entertainment) is to go outside...

about 5 months ago
top

A Mathematical Proof Too Long To Check

psmears Re:prove that the program works (189 comments)

Forgot to mention those guys showed that such an algorithm that "works" for all valid proofs is not just difficult but mathematically impossible.

No, that's not actually what they proved; it is perfectly possible to prove a given algorithm works for all possible inputs, and even that a proof checker works for all valid proofs. There are certainly things that they proved impossible (e.g. a writing a program that can provide a proof for any true mathematical statement, or that can determine if two arbitrary programs are equivalent), but those don't apply here.

about 5 months ago
top

A Mathematical Proof Too Long To Check

psmears Re:prove that the program works (189 comments)

Prove that the algorithm works. That's your proof.

Gödel and Turing make strong cases that proving the algorithm works for some inputs that are correct proofs doesn't count as proof it will work for all correct proof inputs. So no, even if you "prove the algorithm works" it is not the same as a rigorous mathematical proof.

Not true - proving the algorithm works is the same as a rigorous mathematical proof, if you prove mathematically and rigorously that the algorithm works. (The comment about running the algorithm a number of times was simply to guard against the proven-correct algorithm producing a wrong result due to a machine malfunction.)

about 5 months ago
top

Ask Slashdot: Should Developers Fix Bugs They Cause On Their Own Time?

psmears Re:Guarantee (716 comments)

True bug free programs have been proven to be mathematically impossible - it's an NP-complete program.

Nonsense. For one thing, "NP-complete" doesn't mean "mathematically impossible" - it just means that large problems may take a very long (but nonetheless finite) time to solve. And there's nothing mathematically impossible about bug-free programs - they're hard to come by in practice for non-trivial problems, but the limitation is human rather than mathematical.

And to address your earlier comments: it's true that there may be bugs in the OS, the compiler or even the CPU - but in the context of the analogy, that's like having a fault in the wall's foundations - the bricklayer wouldn't be expected to be accountable for those (assuming another contractor was responsible for laying them...)

about 5 months ago
top

HTML5 App For Panasonic TVs Rejected - JQuery Is a "Hack"

psmears Re:Um, WTF? (573 comments)

Have a look for yourself. It's like a bad joke.

Could you point out any specifics? I had a look at a few files, and didn't see anything outrageous... but maybe I just got lucky; what sort of thing do you consider so bad about it?

about 6 months ago
top

Ask Slashdot: What Online News Is Worth Paying For?

psmears Re:BBC (361 comments)

Also, you can still use the BBC website even if you don't pay taxes,

True - the licence fee (it's not strictly a tax) is only paid if you use a TV or watch live streaming.

how do you think foreigners view it?

When you're viewing the BBC News website from outside the UK, it shows adverts (and different content).

about 6 months ago
top

The "Triple Package" Explains Why Some Cultural Groups Are More Successful

psmears Re:Jewish "superiority complex?" (397 comments)

Not forgetting that Israel is the only country in the region that will accept almost anyone if they're willing to be productive members of society, and sometimes not even then. How's that working out in Jordan, Egypt, Syria, Iran, Iraq? Right. If you're not muslim, not a chance.

I know plenty of non-Muslims who have moved to, and live and work in, Egypt.

if you're female and under the age of 14 and not married yet you're probably getting too old.

Really? The problem I've heard most about is that pervasive unemployment means that young people can't afford to get married...

Have you actually been to the countries you're talking about?

about 6 months ago
top

Ask Slashdot: Life After N900?

psmears Re:I loved my Amiga, too (303 comments)

The lazy assed "I don't want to do my own research" author.

Of course he's going to have to make some choices. But when making such choices, it's helpful to have a feel for how well the devices work in practice, for the intended use: I've had plenty of devices in the past that, according to their specs at least, were perfect - but ended up being frustratingly deficient in some way. Reading online reviews can help with this to some extent, but they tend not to focus on (say) programming as a use case - so I can imagine that input from slashdotters would be very valuable here. (It's also really helpful for pointing out phones/other devices that the author may not have considered, that don't necessarily come up in a typical web search...)

about 6 months ago
top

CSI Style Zoom Sees Faces Reflected In Subjects' Eyes

psmears Re:How do I turn off slashdot beta?? (103 comments)

Combine the gpp author's name & his typo using detergent instead of deterrent.

Err... what makes you think that that was a typo? Ajax was a detergent (before it was ever a web technology); that was the point...

about 6 months ago

Submissions

top

UK DNA database ruled a 'breach of rights'

psmears psmears writes  |  more than 5 years ago

psmears writes "Describing a judgment that is likely rein in the scope of the UK DNA database, where at present the DNA of those arrested by the police is kept permanently (even if the people concerned are never convicted, or even charged), the BBC reports that the European Court of Human Rights has ruled that keeping such people's DNA in the database 'could not be regarded as necessary in a democratic society'."
Link to Original Source

Journals

psmears has no journal entries.

Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...