Personally, I think of Python as a prettier and more coherent version of Perl. I've done a little Python. For me, no language will ever replace Perl unless it can do three things:
1. Small, simple associative arrays. foreach helps too. I've found IronPython at least can do that:
arr = Hashtable() arr['foo'] = 'bar'
2. Small, simple, self-contained regular expressions, with variable replacement. I haven't seen another language yet that can do this in one command:
$str =~ s/(foo|bar)/$arr{$1}/g;
3. Small, simple standard I/O. Many languages write to STDOUT easily. Few read from STDIN *or* a file this easily:
Combining a parent's Google News search idea with SCHecklerX's mention below of AltaVista (hey, can I patent that process?) leads me to a PC World article about "AV Photo Finder" from October 14, 1998!
Seeing KStars in KDE reminded me that there are a couple of really good FLOSS astronomy programs out there.
One is Celestia, which lets you travel/fly through the solar system, the galaxy (including several other known solar systems), and the local universe!
I know there's also a similar FLOSS planetarium program (Earth-based, rather than space-based), but I can't find it right now. Through in a pinch, Celestia can work like a planetarium too.
But this could lead the admins to want the pages with ads to be as complimentary to those ads as possible. Or worse, companies could threaten to pull ads from pages they find uncomplimentary.
For instance, let's say there was a page "DRM" (to choose a favorite Slashdot topic) that had links to Microsoft, iTunes, etc. Now what if this page stated that "DRM can never work because it provides the user with both the lock and key." Wouldn't Microsoft, Apple, etc. try to get rid of that line by any means necessary?
I would say, no, that's not a hack. Even if the values were required to come from a POST operation instead of a GET like that, I'd say it's not stealing. All that's required is monitoring your own network. If my network used IPP (Internet Pigeon Protocol), I could occasionally grab a pigeon and read what was on its packet - in cleartext - before sending it on.
The URL has to be https:/// with authentication before I'd call it a hack. Reading it then requires a man-in-the-middle attack, lying to the remote server, which is probably enough to call it a hack. But it is still on my own network, so an argument could be made against that being a "hack", too.
For some reason, I got 51/100 on Firefox 2.0.0.12 on the second try.
The failed tests are as follows (shift-click on "A" to see yours): Note: Test 61 expected *two* spaces, got just one.
Failed 49 of 100 tests. Test 0: expected: pre-wrap, got: normal - found unexpected computed style Test 1: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator] Test 2: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator] Test 3: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator] Test 4: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator] Test 7: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMRange.cloneContents] Test 8: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMRange.setEnd] Test 9: expected: Hello Wonderful KittyHow are you?, got: - toString() on range selecting Document gave wrong output Test 10: expected: result, got: - toString() didn't work for attribute node Test 11: Index or size is negative or greater than the allowed amount Test 12: collapsed is wrong after insertion Test 22: expected: 5, got: 14 - wrong exception for createElement('0div') Test 23: expected: 5, got: 14 - wrong exception for createElementNS('null', '0div') Test 27: e2 - parent element doesn't exist after waiting Test 30: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent] Test 31: capture handler called incorrectly Test 33: expected: 1, got: 0 - whitespace error in class processing Test 35: expected: 0, got: 1 -:first-child still applies to element that was previously a first child Test 36: expected: 0, got: 1 -:last-child matched element with a following sibling Test 37: expected: 1, got: 0 -:only-child did not match only child Test 38: expected: 0, got: 1 - adding children didn't stop the element matching:empty Test 39: expected: 1, got: 0 -:nth-child(odd) failed with child 0 Test 40: expected: 1, got: 0 - part 1:0 Test 42: expected: 1, got: 0 - rule did not start matching after change Test 46: expected: uppercase, got: none - case a failed (index 1) Test 47: expected: none, got: auto - cursor none not supported Test 51: expected: 6, got: 5 - wrong number of rows Test 54: expected: HIDDEN, got: hidden - input control's type content attribute was wrong Test 60: attribute not specified after removal Test 61: expected: te st , got: te st - class attribute's value was wrong Test 67: when calling removeNamedItemNS in a non existent attribute: no exception raised Test 68: Unpaired surrogate handled wrongly (input was 'text', output was 'ext') Test 70: UTF-8 encoded XML document with invalid character did not have a well-formedness error Test 71: expected: null, got: - internalSubset wrong (first test) Test 72: expected: 20, got: 10 - change failed to take effect Test 73: expected: 10, got: 0 - click event handler called the wrong number of times Test 74: getSVGDocument missing on element. Test 75: anim.beginElement is not a function Test 76: expected: 0, got: 100 - Incorrect animVal value after svg animation. Test 77: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMSVGTextPositioningElement.getNumberOfChars] Test 78: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMSVGTextPositioningElement.getRotationOfChar] Test 79: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces Test 82: unexpected 1 in t3 Test 84: illegal radix 0 Test 88: \u002b was not considered a parse error in script Test 92: expected: function Object() {\n [native code]\n}, got: functio
I know you meant the ISPs sending the e-mail, but I'm sure some spammer will pick up the idea. Next thing you know, we'll all be getting e-mails "from our ISPs" telling us that the MAFIAA wants us to settle out of court into a Nigerian bank account!
Frame dragging would have more effect (accelerating or decelerating) at the equator than at the poles, which is the reverse of what we see in TFA.
I did a little black hole research, and it appears that the jets come from magnetic fields, not from frame dragging. But the full cause remains unclear, so you might be half-right.
Baghdad sees its first snow in all recorded history.
That seemed a little suspicious, especially since the Baghdad area has so much recorded history.
So I did a little research. It was actually the first snow in about 100 years. One poster says the last snow was January 22, 1916; though I can't confirm that.
Then one way to hide it might be to make a dual-purpose satellite. The US, for instance, could launch what it claims is a replacement GPS satellite (which is in fact a military satellite), and it could serve that purpose while also acting as a spy satellite.
If these molecules really did recognize each other over a long distance, with no intermediary molecules, that would be spooky. I'd call it spooky action at a distance, but that's already taken, and this would be even spookier!
Meet your miracle machine, or at least a plan for it. Actually, it's even better than what you suggest: it converts electricity to real oil.
Unfortunately, I've done some rough calculations assuming $.1/kWh electricity converted at 40% efficiency, and the energy alone comes to $9/gallon of gasoline.
Try again. The FCC is about to auction off a small portion of the UHF band of analog TV broadcast bandwidth, namely 52 through 69. I believe there's also a small swap between some VHF channels and some emergency channels.
Digital channels actually occupy the same space as analog channels, and each digital channel occupies the frequency space of one analog channel. The differences are that they can be on neighboring channels without interference (my digital channel equivalent of 11 is on channel 10), and that they can each carry up to six subchannels.
Still, it's true that bandwidth avoidance may become easier when all TV channels are digital, since digital should be equally detectable from this box or from a TV.
"I believe this nation should commit itself to achieving the goal of complete energy independence and sustainability.
Toward that end, it is my goal to make the United States Armed Forces energy independent by 2030, so that we never again have to go to war for oil.
I ask the Congress to fund $50 billion per year toward this goal, to begin building solar power installations covering the Nevada Test Site, to build hydrogen generation and associated oil production facilities, and for research into alternative fuels and methods of improving efficiency."
Actually, I'd like to be a speechwriter for Senator/President Obama, give him that speech, and let him handle the rest.
Let me see how many renewable replacements I can find for these applications:
* Because it is lighter than air, airships and balloons are inflated with helium for lift. In airships, helium is preferred over hydrogen because it is not flammable and has 92.64% of the buoyancy (or lifting power) of the alternative hydrogen (see calculation.)
Hydrogen is not flammable at less than 4% concentration in air, so a 4% hydrogen mix might be possible (if it doesn't collect at the top). Neon also is less dense than air; but it could have similar supply problems. In general, there's no good alternative that's not flammable. Although party balloons don't need that much lift, so a good deal more air could probably be mixed in with no noticeable effect.
* For its low solubility in water, the major part of human blood, air mixtures of helium with oxygen and nitrogen (Trimix), with oxygen only (Heliox), with common air (heliair), and with hydrogen and oxygen (hydreliox), are used in deep-sea breathing systems to reduce the high-pressure risk of nitrogen narcosis, decompression sickness, and oxygen toxicity.
This one's hard to replace. Maybe argon (which is extracted from the air) might work for some applications? Otherwise, that leaves (de)pressurized submersibles and ROVs (remotely-operated vehicles). Maybe some of NASA's telepresence work will be applied to ROVs, so people don't have to dive so deep?
* At extremely low temperatures, liquid helium is used to cool certain metals to produce superconductivity, such as in superconducting magnets used in magnetic resonance imaging. Helium at low temperatures is also used in cryogenics.
This took a little research. "...the highest critical temperature of a type 1 superconductor is only 23.2 K."(ref). The next coldest boiling point of a gas is that of hydrogen, at 20.28 K. So it might take some different materials, but we could keep using type 1 superconductors.
* For its inertness and high thermal conductivity, neutron transparency, and because it does not form radioactive isotopes under reactor conditions, helium is used as a coolant in some nuclear reactors, such as pebble-bed reactors.
And such reactors are dangerous if a non-inert gas, like air, gets in. Besides, pebble-bed reactors aren't breeder reactors, so they're not even close to renewable.
* Helium is used as a shielding gas in arc welding processes on materials that are contaminated easily by air. It is especially useful in overhead welding, because it is lighter than air and thus floats, whereas other shielding gases sink.
Which means in overhead welding, argon must be sealed in place, instead of welding with helium in the open. Just a small inconvenience.
* Because it is inert, helium is used as a protective gas in growing silicon and germanium crystals, in titanium and zirconium production, in gas chromatography, and as an atmosphere for protecting historical documents. This property also makes it useful in supersonic wind tunnels.
I almost skipped over this one, because argon is also inert, and nitrogen is fairly inert. But for gas chromatography, there isn't a good replacement for helium that is also inert. All the other noble gases have more electrons, and more spectral lines.
* In rocketry, helium is used as an ullage medium to displace fuel and oxidizers in storage tanks and to condense hydrogen and oxygen to make rocket fuel. It is also used to purge fuel and oxidizer from ground support equipment prior to launch and to pre-cool liquid hydrogen in space vehicles. For example, the Saturn V booster used in the Apollo program needed about 13 million cubic feet (370,000 m) of helium to launch.[2]
This could be a problem. An "ullage medium" is apparently needed to fill the empty space in a storage tank. If it's not used, the tank must be built stro
1. Small, simple associative arrays. foreach helps too. I've found IronPython at least can do that:
arr = Hashtable()
arr['foo'] = 'bar'
2. Small, simple, self-contained regular expressions, with variable replacement. I haven't seen another language yet that can do this in one command:
$str =~ s/(foo|bar)/$arr{$1}/g;
3. Small, simple standard I/O. Many languages write to STDOUT easily. Few read from STDIN *or* a file this easily:
"while(<>) { &foobar $_; }"
Fewer still let you slurp STDIN, too:
"{local $/; $_ = <>;}"
I guess we've finally found something that takes more than one disc!
Combining a parent's Google News search idea with SCHecklerX's mention below of AltaVista (hey, can I patent that process?) leads me to a PC World article about "AV Photo Finder" from October 14, 1998!
Beat that!
....que nadie entendeis cuando escribes asi;Especialmente cuando deja a deletrear palabras correctamente asi que no traducen. "...that nobody understands when you write like this;
Especially when [allowed to] spell words correctly like this that don't translate."
Nunca asumes! (Unless you're a Navajo code talker or something.)
Seeing KStars in KDE reminded me that there are a couple of really good FLOSS astronomy programs out there.
One is Celestia, which lets you travel/fly through the solar system, the galaxy (including several other known solar systems), and the local universe!
I know there's also a similar FLOSS planetarium program (Earth-based, rather than space-based), but I can't find it right now. Through in a pinch, Celestia can work like a planetarium too.
if($laptopAspectRatio eq 'Widescreen') { print "all your code on one line!\n"; }
These laptops should make Perl one-liners at least a little easier to read.
Technically, a superconductor that works at over 20.28 K can be cooled by liquid hydrogen.
One problem, of course, is that liquid hydrogen is rocket fuel!
I assume you mean 2GB/movie? Either that or I've missed the discovery of a really good video compression algorithm?
> What now?
Click the very first result, of course!
Nonono, these people were not hobbits, or elves, or leprechauns. They were on an island (and not Ireland), which makes them...
Lilliputians!
But this could lead the admins to want the pages with ads to be as complimentary to those ads as possible. Or worse, companies could threaten to pull ads from pages they find uncomplimentary.
For instance, let's say there was a page "DRM" (to choose a favorite Slashdot topic) that had links to Microsoft, iTunes, etc. Now what if this page stated that "DRM can never work because it provides the user with both the lock and key." Wouldn't Microsoft, Apple, etc. try to get rid of that line by any means necessary?
I would say, no, that's not a hack. Even if the values were required to come from a POST operation instead of a GET like that, I'd say it's not stealing. All that's required is monitoring your own network. If my network used IPP (Internet Pigeon Protocol), I could occasionally grab a pigeon and read what was on its packet - in cleartext - before sending it on.
The URL has to be https:/// with authentication before I'd call it a hack. Reading it then requires a man-in-the-middle attack, lying to the remote server, which is probably enough to call it a hack. But it is still on my own network, so an argument could be made against that being a "hack", too.
For some reason, I got 51/100 on Firefox 2.0.0.12 on the second try.
:first-child still applies to element that was previously a first child :last-child matched element with a following sibling :only-child did not match only child :empty :nth-child(odd) failed with child 0
The failed tests are as follows (shift-click on "A" to see yours):
Note: Test 61 expected *two* spaces, got just one.
Failed 49 of 100 tests.
Test 0: expected: pre-wrap, got: normal - found unexpected computed style
Test 1: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator]
Test 2: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator]
Test 3: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator]
Test 4: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMDocumentTraversal.createNodeIterator]
Test 7: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMRange.cloneContents]
Test 8: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMRange.setEnd]
Test 9: expected: Hello Wonderful KittyHow are you?, got: - toString() on range selecting Document gave wrong output
Test 10: expected: result, got: - toString() didn't work for attribute node
Test 11: Index or size is negative or greater than the allowed amount
Test 12: collapsed is wrong after insertion
Test 22: expected: 5, got: 14 - wrong exception for createElement('0div')
Test 23: expected: 5, got: 14 - wrong exception for createElementNS('null', '0div')
Test 27: e2 - parent element doesn't exist after waiting
Test 30: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMEventTarget.dispatchEvent]
Test 31: capture handler called incorrectly
Test 33: expected: 1, got: 0 - whitespace error in class processing
Test 35: expected: 0, got: 1 -
Test 36: expected: 0, got: 1 -
Test 37: expected: 1, got: 0 -
Test 38: expected: 0, got: 1 - adding children didn't stop the element matching
Test 39: expected: 1, got: 0 -
Test 40: expected: 1, got: 0 - part 1:0
Test 42: expected: 1, got: 0 - rule did not start matching after change
Test 46: expected: uppercase, got: none - case a failed (index 1)
Test 47: expected: none, got: auto - cursor none not supported
Test 51: expected: 6, got: 5 - wrong number of rows
Test 54: expected: HIDDEN, got: hidden - input control's type content attribute was wrong
Test 60: attribute not specified after removal
Test 61: expected: te st , got: te st - class attribute's value was wrong
Test 67: when calling removeNamedItemNS in a non existent attribute: no exception raised
Test 68: Unpaired surrogate handled wrongly (input was 'text', output was 'ext')
Test 70: UTF-8 encoded XML document with invalid character did not have a well-formedness error
Test 71: expected: null, got: - internalSubset wrong (first test)
Test 72: expected: 20, got: 10 - change failed to take effect
Test 73: expected: 10, got: 0 - click event handler called the wrong number of times
Test 74: getSVGDocument missing on element.
Test 75: anim.beginElement is not a function
Test 76: expected: 0, got: 100 - Incorrect animVal value after svg animation.
Test 77: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMSVGTextPositioningElement.getNumberOfChars]
Test 78: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMSVGTextPositioningElement.getRotationOfChar]
Test 79: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces
Test 82: unexpected 1 in t3
Test 84: illegal radix 0
Test 88: \u002b was not considered a parse error in script
Test 92: expected: function Object() {\n [native code]\n}, got: functio
I know you meant the ISPs sending the e-mail, but I'm sure some spammer will pick up the idea. Next thing you know, we'll all be getting e-mails "from our ISPs" telling us that the MAFIAA wants us to settle out of court into a Nigerian bank account!
Frame dragging would have more effect (accelerating or decelerating) at the equator than at the poles, which is the reverse of what we see in TFA.
I did a little black hole research, and it appears that the jets come from magnetic fields, not from frame dragging. But the full cause remains unclear, so you might be half-right.
Another force, maybe, but it has to act preferentially at or near the poles.
Do you suppose there's any iron in them that was more strongly attracted by a third-order dipole force to the magnetic poles?
So I did a little research. It was actually the first snow in about 100 years. One poster says the last snow was January 22, 1916; though I can't confirm that.
Then one way to hide it might be to make a dual-purpose satellite. The US, for instance, could launch what it claims is a replacement GPS satellite (which is in fact a military satellite), and it could serve that purpose while also acting as a spy satellite.
If these molecules really did recognize each other over a long distance, with no intermediary molecules, that would be spooky. I'd call it spooky action at a distance, but that's already taken, and this would be even spookier!
Meet your miracle machine, or at least a plan for it. Actually, it's even better than what you suggest: it converts electricity to real oil.
Unfortunately, I've done some rough calculations assuming $.1/kWh electricity converted at 40% efficiency, and the energy alone comes to $9/gallon of gasoline.
Try again. The FCC is about to auction off a small portion of the UHF band of analog TV broadcast bandwidth, namely 52 through 69. I believe there's also a small swap between some VHF channels and some emergency channels.
Digital channels actually occupy the same space as analog channels, and each digital channel occupies the frequency space of one analog channel. The differences are that they can be on neighboring channels without interference (my digital channel equivalent of 11 is on channel 10), and that they can each carry up to six subchannels.
Still, it's true that bandwidth avoidance may become easier when all TV channels are digital, since digital should be equally detectable from this box or from a TV.
"I believe this nation should commit itself to achieving the goal of complete energy independence and sustainability.
Toward that end, it is my goal to make the United States Armed Forces energy independent by 2030, so that we never again have to go to war for oil.
I ask the Congress to fund $50 billion per year toward this goal, to begin building solar power installations covering the Nevada Test Site, to build hydrogen generation and associated oil production facilities, and for research into alternative fuels and methods of improving efficiency."
Actually, I'd like to be a speechwriter for Senator/President Obama, give him that speech, and let him handle the rest.
Let me see how many renewable replacements I can find for these applications:
* Because it is lighter than air, airships and balloons are inflated with helium for lift. In airships, helium is preferred over hydrogen because it is not flammable and has 92.64% of the buoyancy (or lifting power) of the alternative hydrogen (see calculation.)
Hydrogen is not flammable at less than 4% concentration in air, so a 4% hydrogen mix might be possible (if it doesn't collect at the top). Neon also is less dense than air; but it could have similar supply problems. In general, there's no good alternative that's not flammable. Although party balloons don't need that much lift, so a good deal more air could probably be mixed in with no noticeable effect.
* For its low solubility in water, the major part of human blood, air mixtures of helium with oxygen and nitrogen (Trimix), with oxygen only (Heliox), with common air (heliair), and with hydrogen and oxygen (hydreliox), are used in deep-sea breathing systems to reduce the high-pressure risk of nitrogen narcosis, decompression sickness, and oxygen toxicity.
This one's hard to replace. Maybe argon (which is extracted from the air) might work for some applications? Otherwise, that leaves (de)pressurized submersibles and ROVs (remotely-operated vehicles). Maybe some of NASA's telepresence work will be applied to ROVs, so people don't have to dive so deep?
* At extremely low temperatures, liquid helium is used to cool certain metals to produce superconductivity, such as in superconducting magnets used in magnetic resonance imaging. Helium at low temperatures is also used in cryogenics.
This took a little research. "...the highest critical temperature of a type 1 superconductor is only 23.2 K."(ref). The next coldest boiling point of a gas is that of hydrogen, at 20.28 K. So it might take some different materials, but we could keep using type 1 superconductors.
* For its inertness and high thermal conductivity, neutron transparency, and because it does not form radioactive isotopes under reactor conditions, helium is used as a coolant in some nuclear reactors, such as pebble-bed reactors.
And such reactors are dangerous if a non-inert gas, like air, gets in. Besides, pebble-bed reactors aren't breeder reactors, so they're not even close to renewable.
* Helium is used as a shielding gas in arc welding processes on materials that are contaminated easily by air. It is especially useful in overhead welding, because it is lighter than air and thus floats, whereas other shielding gases sink.
Which means in overhead welding, argon must be sealed in place, instead of welding with helium in the open. Just a small inconvenience.
* Because it is inert, helium is used as a protective gas in growing silicon and germanium crystals, in titanium and zirconium production, in gas chromatography, and as an atmosphere for protecting historical documents. This property also makes it useful in supersonic wind tunnels.
I almost skipped over this one, because argon is also inert, and nitrogen is fairly inert. But for gas chromatography, there isn't a good replacement for helium that is also inert. All the other noble gases have more electrons, and more spectral lines.
* In rocketry, helium is used as an ullage medium to displace fuel and oxidizers in storage tanks and to condense hydrogen and oxygen to make rocket fuel. It is also used to purge fuel and oxidizer from ground support equipment prior to launch and to pre-cool liquid hydrogen in space vehicles. For example, the Saturn V booster used in the Apollo program needed about 13 million cubic feet (370,000 m) of helium to launch.[2]
This could be a problem. An "ullage medium" is apparently needed to fill the empty space in a storage tank. If it's not used, the tank must be built stro
Surely, they must be an online filk music retailer.