Hitler tried to wipe out a race for ABSOLUTLEY NO REASON, and Germany followed him like puppies.
Well, of course there was a reason. Hitler rose to power when the world economy was very bad (early 1930s) and Germany's economy even far worse. Due to the treaty of Versailles, the German people had suffered from the bad economy (tremendous unemployment and inflation) for a long time. And now comes this man saying it is not your fault, it's their fault; and to support his claims, at the same time the rights of the Jews are restricted, the economy gets better. No wonder he gets lots of supporters. Communications and press weren't quite the same as now. Furthermore, countries that could have made a difference, like the US and Brittain were more concerned with themselves that with foreign politics.
And why blame the Jews and not some other group? Simple. Blaming Jews had been common practise all over Europe for the past 1900 years. Jews as an oppressed group wasn't unique to Germany at all.
You can turn it to say a 45 degree angle and get a good amount of sideways thrust.
Sideways to your angle of movement. The trust from the other star will always be away from that star, unless there would be some giant mirror somewhere. Changing the angle of the sail only determines how much trust you get - but you cannot influence the direction. You cannot apply physics from sailing in water; space has the habit of being nearly frictionless.
if ($text =~/<(IMG|A)>[\w\s.]+<\/\1>/i) {print "Found an image or anchor tag.";}
Well, that doesn't make much sense. First of all, IMG isn't a container, so it will not have a close tag. Second, in HTML, tag names are case insensitive, you can use A in your opening tag, and a in your close tag. This regex doesn't cover that. But worse is the [\w\s.]+ part, indicating the author doesn't know regex syntax. It asks for one or more letters, numbers, underscores, white space characters or periods. But typical HREF or SRC attribute values will contain slashes, colons, and are contained in quotes.
If this is indeed in the book - think twice before buying it.
That assumes an order of evaluation that isn't garanteed.
Sure, the second one is smaller, but it's slower and takes up more memory - for chrissakes, it has to split the entire line just to grab the second piece!
Nope, it doesn't. (split/\|/, $_, 3) [1]; will do fine.
-- Abigail
Re:Regexps and... what DOES ++@_[0]; do?
on
The Perl Black Book
·
· Score: 2
But what DOES ++@_[0]; do?
Well, it issues a warning.;-) It's a classic mistake made by people unfamiliar with programming in Perl. If this code is really in the book, it's a bad sign.
Because after the media's done pissing and moaning about it, people will realize that the only way to protect yourself is to give a rat's ass about security.
With that excuse, you could claim *any* crime should go unpunished, as theft, rape and murder all show how weak the security and protection is.
It would be much, much better if societity didn't have to spend billions of dollars to protect itself from idiots. We could have gone to Mars by now for that money.
So, are you saying that you could manage slashdot's presentation controls on the client side with HTML and CSS?
Well, yes. With 1996 standards even. It might of course be hard to find a popular browser that is even remotely up to date, but you can't blame HTML or stylesheets for that. And XML isn't a magic wand that suddenly makes browser authors do something "advanced" instead of going for the mass market appeal.
Remember that things like tables were first seen as proprietary extensions before they were ever blessed by the W3C.
Wrong. Work on the table specification for HTML started in 1993, a year before Netscape was founded. Netscape wasn't even one of the first 3 browsers to implement tables. However, Netscape was the first to not follow the proposal, and invent something much poorer.
And there were a few other things like "center" that looked easier to use than waiting for somebody (anybody!) to come up with decent style sheets.
I worked with browsers that were able to use stylesheets before Netscape came with center (Arena, Emacs-WWW). Furthermore, before Netscape came with center, much work was done on HTML 3.0, which had the align attribute (and DIV). But no, Netscape didn't look at the draft, the invented the less flexible, and proprietary, center. Microsoft techniques.
...but the real dorkiness of relying on parsing quirks in html to get layout effects.
Well, you can't blame browser vendors for the fact that so-called web-developers had no clue what the web was about.
An alternative could just dump down the articles and comments to your browser in XML format and then have those comments sorted/filtered/formatted quickly on the client side by XSLT, using either a server- or a user-supplied stylesheet, making Slashdot a much faster and more flexible applicaiton.
Stylesheets have been part of HTML from its first standard, of spring 1994, before Netscape existed, Bill Gates was aware of the internet or before anyone talked about XML. Stylesheet capable HTML browsers were available 5 years ago. Stylesheets actually predate HTML - they come from the SGML world. It's actually quite old technology; it only has recently become a buzzword.
Netscape used proprietary HTML tags...which made life all kinds of fun for web developers such as myself.
That is something I've never understood. The only reason Netscape could ruin the web with the proprietary tags was because so-called web developers embraced the proprietary tags and used them all over.
If you didn't like the proprietary tags, why did you use them?
If the word processor "industry" were to get together to support a single DTD (Document Type Definition) so that everyone would know how to react to specifict tags then you could have a format that any WYSWIG editor would render correctly.
That would of course be silly and pointless. That's like saying "ah, now that we have lex and yacc, let's hope there will only be one programming language, supported by all compilers".
One DTD to do it all will lead to bloatware. I don't think anyone is waiting for that.
Instead of redefining the prefixes, of which there are many, noone has considered redefining the byte itself. My proposal is the "bite", a unit consisting of 8.192 bits. In that case, 1 kibibyte equals 1 kilobite, 1 Mebibyte equals 1 Megabite, etc. The standard abbreviation for a bite should be "B".
Or, in a table: (bad formatting courtesy of slashdot.org) Old New My system --- --- --------- 1kB 1kiB 1kB 1MB 1MiB 1MB 1GB 1GiB 1GB 1TB 1TiB 1TB 1PB 1PiB 1PB 1EX 1EiB 1EB
Draconian writes:4 GB (decimal) sounds better than 3.7 GB (power-2). All the confusion is just because of marketing gurus trying to make their product look good. Thank god the memory chip companies don't follow this approach to advertising.
Yeah, good old chip companies. Does that mean my 400MHz chip is really doing 419430400Hz?
beh writes: Personally, I'd vote for the SI honouring the computer science business and officially declaring, that with regards to computing the prefixes are based on powers of 2, thereby forcing companies like Maxtor and the like to change to this way.
I'd like to point out that companies like Maxtor and other harddisk manufacturers are part of the computer industry. The entire problem with using powers of 2 vs powers of 10 is the inconsistency. If powers of 2 were used always in a computer context, there would not have been a proposal for kibi and friends.
Alseen wrote: Every time they "killed" one of the sentinals, they just came back in another body. It wasn't until Neo started using his mind that he was able to defeat them.
Odd. I didn't get the impression the gun fight in the lobby, or the shots from the helicopter were done with the purpose of killing baddies. In the version of the movie I saw, it was done with the sole purpose of saving Morpheus. Which they did.
HSinclair expresses a strange idea of what Computer Science is. For instance, s/he claims (about women in Computer Science): They wouldn't know a mouse from Linux if it hit them over the head.
As Edsgar Dijkstra once said: Computer Science is about computers in the same way as Astronomy is about telescopes. People in CS couldn't care less about mice and Linux; that's uninteresting. Computer Science is about science and computing.
From 10 years of experience in CS, both as a student and a researcher, I'd say the female ratio in CS is about 15 to 20%; the same for math. With not much difference between Europe and North-America.
However, last week on the Perl conference (YAPC), the number of women was extremely low. Maybe 10 to 15 out of 300 participants. I doubt the ratio on a Linux, Python or C conference would be much different. However, these worlds have little to do with CS, just like a conference for telescope lovers has little to do with astronomy.
While the copyright laws protect authors from other people copying their work, we shouldn't forget the same law states many cases where you can publish copyrighted works.
One of the cases is to prove or illustrate a statement or point. (Very important for instance for scientific articles citing others). Mindcraft can always claim they wanted to prove a point. And they can probably easily prove they didn't publish all the emails; just a selection.
Of course, lack of any jurisdiction makes this mostly guesswork.
Sun Tzu wrote: Even if they keep it open they can do a great deal of damage by implementing MS Windows-specific functions. That would fragment Perl and introduce much confusion into even the usage of the term, "Perl". Would even the GPL protect against this kind of "embrace and extend" strategy? I think not.
FUD There are already MS Windows specific functions in Perl. There are Mac specific functions in the Macintosh port of Perl. There are VMS specific functions in Perl. There are Unix specific functions in Perl.
ActiveState doesn't maintain Perl. ActiveState doesn't determine what goes into Perl and what doesn't. Ultimely, it is Larry who has a final say what goes into Perl and what doesn't. And Sarathy, the current Perl pumpkin. And he listens to what p5p (perl5-porters) have to say.
Microsoft can contribute a lot. If it's good, and if it benefits Perl (like a fork() for the Windows platform) it will be added to Perl, be it in the core, or as a module in the standard library. If they come with crud, it will never find its way to Perl.
People should learn to listen to what the people that work on Perl have to say about this before uttering their FUD on forums like this.
Well, of course there was a reason. Hitler rose to power when the world economy was very bad (early 1930s) and Germany's economy even far worse. Due to the treaty of Versailles, the German people had suffered from the bad economy (tremendous unemployment and inflation) for a long time. And now comes this man saying it is not your fault, it's their fault; and to support his claims, at the same time the rights of the Jews are restricted, the economy gets better. No wonder he gets lots of supporters. Communications and press weren't quite the same as now. Furthermore, countries that could have made a difference, like the US and Brittain were more concerned with themselves that with foreign politics.
And why blame the Jews and not some other group? Simple. Blaming Jews had been common practise all over Europe for the past 1900 years. Jews as an oppressed group wasn't unique to Germany at all.
-- Abigail
Sideways to your angle of movement. The trust from the other star will always be away from that star, unless there would be some giant mirror somewhere. Changing the angle of the sail only determines how much trust you get - but you cannot influence the direction. You cannot apply physics from sailing in water; space has the habit of being nearly frictionless.
-- Abigail
At 58 miles/sec and 4 lightyears of distance, that'll take about 13,000 years, give or take a century. ((300000 * 4)/(1.6 * 58))
-- Abigail
Well, that doesn't make much sense. First of all, IMG isn't a container, so it will not have a close tag. Second, in HTML, tag names are case insensitive, you can use A in your opening tag, and a in your close tag. This regex doesn't cover that. But worse is the [\w\s.]+ part, indicating the author doesn't know regex syntax. It asks for one or more letters, numbers, underscores, white space characters or periods. But typical HREF or SRC attribute values will contain slashes, colons, and are contained in quotes.
If this is indeed in the book - think twice before buying it.
-- Abigail
That assumes an order of evaluation that isn't garanteed.
Sure, the second one is smaller, but it's slower and takes up more memory - for chrissakes, it has to split the entire line just to grab the second piece!
Nope, it doesn't. (split /\|/, $_, 3) [1]; will do fine.
-- Abigail
Well, it issues a warning. ;-) It's a classic mistake made by people unfamiliar with programming in Perl. If this code is really in the book, it's a bad sign.
-- Abigail
With that excuse, you could claim *any* crime should go unpunished, as theft, rape and murder all show how weak the security and protection is.
It would be much, much better if societity didn't have to spend billions of dollars to protect itself from idiots. We could have gone to Mars by now for that money.
-- Abigail
Well, yes. With 1996 standards even. It might of course be hard to find a popular browser that is even remotely up to date, but you can't blame HTML or stylesheets for that. And XML isn't a magic wand that suddenly makes browser authors do something "advanced" instead of going for the mass market appeal.
-- Abigail
Wrong. Work on the table specification for HTML started in 1993, a year before Netscape was founded. Netscape wasn't even one of the first 3 browsers to implement tables. However, Netscape was the first to not follow the proposal, and invent something much poorer.
And there were a few other things like "center" that looked easier to use than waiting for somebody (anybody!) to come up with decent style sheets.
I worked with browsers that were able to use stylesheets before Netscape came with center (Arena, Emacs-WWW). Furthermore, before Netscape came with center, much work was done on HTML 3.0, which had the align attribute (and DIV). But no, Netscape didn't look at the draft, the invented the less flexible, and proprietary, center. Microsoft techniques.
Well, you can't blame browser vendors for the fact that so-called web-developers had no clue what the web was about.
-- Abigail
No, it's not, for the same reason BNF isn't a programming language. XML is a way of formalizing content marking languages. XML is a meta-language.
-- Abigail
Stylesheets have been part of HTML from its first standard, of spring 1994, before Netscape existed, Bill Gates was aware of the internet or before anyone talked about XML. Stylesheet capable HTML browsers were available 5 years ago. Stylesheets actually predate HTML - they come from the SGML world. It's actually quite old technology; it only has recently become a buzzword.
-- Abigail
That is something I've never understood. The only reason Netscape could ruin the web with the proprietary tags was because so-called web developers embraced the proprietary tags and used them all over.
If you didn't like the proprietary tags, why did you use them?
-- Abigail
That would of course be silly and pointless. That's like saying "ah, now that we have lex and yacc, let's hope there will only be one programming language, supported by all compilers".
One DTD to do it all will lead to bloatware. I don't think anyone is waiting for that.
-- Abigail
Knuth is *still* offering $2.56 to people reporting bugs back to him. Look for instance at the recent MMIX document.
But not even Knuth will claim to write bugfree code.
-- Abigail
Or, in a table: (bad formatting courtesy of slashdot.org)
Old New My system
--- --- ---------
1kB 1kiB 1kB
1MB 1MiB 1MB
1GB 1GiB 1GB
1TB 1TiB 1TB
1PB 1PiB 1PB
1EX 1EiB 1EB
I think the advantages are obvious.
--- Abigail
Yeah, good old chip companies. Does that mean my 400MHz chip is really doing 419430400Hz?
--- Abigail
I'd like to point out that companies like Maxtor and other harddisk manufacturers are part of the computer industry. The entire problem with using powers of 2 vs powers of 10 is the inconsistency. If powers of 2 were used always in a computer context, there would not have been a proposal for kibi and friends.
--- Abigail
How many vibrations/sec is a MHz?
Odd. I didn't get the impression the gun fight in the lobby, or the shots from the helicopter were done with the purpose of killing baddies. In the version of the movie I saw, it was done with the sole purpose of saving Morpheus. Which they did.
--- Abigail
The only plot I could discover in the Matix was: ultra-violence will solve every problem.
That's neither original, nor interesting.
--- Abigail
I'm famous now!
--- Abigail
Oddjob also has a list of suggestions, like getting the camel book and such.
Clearly, Oddjob isn't aware "this guy" is the author of a Perl book, a perl5-porter, author in The Perl Journal, and speaker on Perl conferences.
--- Abigail
As Edsgar Dijkstra once said: Computer Science is about computers in the same way as Astronomy is about telescopes. People in CS couldn't care less about mice and Linux; that's uninteresting. Computer Science is about science and computing.
From 10 years of experience in CS, both as a student and a researcher, I'd say the female ratio in CS is about 15 to 20%; the same for math. With not much difference between Europe and North-America.
However, last week on the Perl conference (YAPC), the number of women was extremely low. Maybe 10 to 15 out of 300 participants. I doubt the ratio on a Linux, Python or C conference would be much different. However, these worlds have little to do with CS, just like a conference for telescope lovers has little to do with astronomy.
--- Abigail
While the copyright laws protect authors from other people copying their work, we shouldn't forget the same law states many cases where you can publish copyrighted works.
One of the cases is to prove or illustrate a statement or point. (Very important for instance for scientific articles citing others). Mindcraft can always claim they wanted to prove a point. And they can probably easily prove they didn't publish all the emails; just a selection.
Of course, lack of any jurisdiction makes this mostly guesswork.
--- Abigail
How do they communicate amongst themselves?
Just like bees, they dance.
--- Abigail
Even if they keep it open they can do a great deal of damage by implementing MS Windows-specific functions. That would fragment Perl and introduce much confusion into even the usage of the term, "Perl". Would even the GPL protect against this kind of "embrace and extend" strategy? I think not.
FUD
There are already MS Windows specific functions in Perl. There are Mac specific functions in the Macintosh port of Perl. There are VMS specific functions in Perl. There are Unix specific functions in Perl.
ActiveState doesn't maintain Perl. ActiveState doesn't determine what goes into Perl and what doesn't. Ultimely, it is Larry who has a final say what goes into Perl and what doesn't. And Sarathy, the current Perl pumpkin. And he listens to what p5p (perl5-porters) have to say.
Microsoft can contribute a lot. If it's good, and if it benefits Perl (like a fork() for the Windows platform) it will be added to Perl, be it in the core, or as a module in the standard library. If they come with crud, it will never find its way to Perl.
People should learn to listen to what the people that work on Perl have to say about this before uttering their FUD on forums like this.
--- Abigail