Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:No RPN (Score 1) 313

I think you missed the point of the analogy. The statement can be reworded as:

Calculator is to No RPN as Computer is to Only Runs Windows

In other words, No RPN (that is, only infix or algebraic notation) is like Windows, both of which can be seen as limitations of their respective devices.

tl;dr version: Whooooosh!

Comment Re:Visible? Opaque? (Score 1) 122

The *size* of a photon in the visible region is much larger than an atom. Blue light is in the 400nm range while an atoms radius is in the 0.1nm range. So a photon intersects many atoms.. often all at once.

What you say about blue light (400nm) is its wavelength, not the size of the photon itself. Size and wavelength are separate properties. I could be wrong, of course (I am not particularly familiar with quantum mechanics and such).

Comment Re:The images have logos stamped on them (Score 2, Informative) 99

If you do decide to download the full images, keep this in mind: Each tile image is between about 15KB and 50KB or so (let's say 30KB average), so the full detail image consists of roughly 9 gigabytes of JPEG images. Please, everyone, for the sake of their servers don't try to download it all at once! (I would personally try to trickle download it over the course of a week or so to be nice on their servers.)

Comment Re:The images have logos stamped on them (Score 2, Informative) 99

Look at the source code of (for example) http://www.haltadefinizione.com/magnifier.jsp?idopera=10. In there you'll find this code:

swf.addVariable("xml","/immagini/opere/10/imgfull/properties_krpano.xml");

That's a relative address—the full URL is http://www.haltadefinizione.com/immagini/opere/10/imgfull/properties_krpano.xml. That file contains stuff like this:

<image type="CYLINDER" hfov="1.00" multires="true" tilesize="256">
<level tiledimagewidth="181273" tiledimageheight="113625">
<cylinder url="venere_krpano/l7_%0v_%0h.jpg" />
</level>
...

The URL, again, is relative (to the XML file) and points to http://www.haltadefinizione.com/immagini/opere/10/imgfull/venere_krpano/l7_%250v_%250h.jpg, where %0v and %0h are the vertical and horizontal coordinates, respectively. Since this level is 181273 pixels wide and 113625 pixels (taken from the "level" tag), and tiles are 256x256 pixels (taken from the "image" tag), you can grab all images at this level with the fusker string http://www.haltadefinizione.com/immagini/opere/10/imgfull/venere_krpano/l7_[01-444]_[01-709].jpg. Be careful downloading the whole picture at this detail level (7). It's 314,796 tiles! If you just want a wallpaper-sized image for this image, try downloading detail level 1, which is 2833x1776 pixels (84 tiles) (fusker string: http://www.haltadefinizione.com/immagini/opere/10/imgfull/venere_krpano/l1_[01-07]_[01-12].jpg).

By the way, the watermarks are all embedded directly in the tile sets, unfortunately. They seem to be stamped on every tile whose coordinates modulo 4 are 0, meaning only 1/16 of the images are stamped.

Happy downloading!

Comment Re:my wishlist (Score 1) 159

2. Recursive strace: Currently it is not possible to run "strace" on a process which is already being straced. So for example: "strace -f strace -f ls" will not work (you'll get an "operation not permitted" inside the first strace. This makes it impossible for programs to use strace (or the related ptrace system call), since other programs which might also use strace, may depend on them.

Hi Alex, I think you meant strace'ing a process multiple times, rather than recursive strace'ing. You can certainly use ptrace on a process that is using ptrace on another process, but the issue is trying to ptrace a process that is already being ptrace'd. In other words:

x -> y -> z

(x, y, z are processes, -> means tracing) works, but

x -> z <- y

does not work because process "z" can be traced only once. I think the technical reason a process can be traced only once is because only one parent can receive the process's state via the wait() system call, much like only one process can receive its child's exit status via wait() in a non-ptrace situation. There may be other reasons for it as well, but I couldn't locate the POSIX standards (IEEE 1003.4 Realtime Extensions, I believe) detailing the ptrace() system call and its rationale.

If I misunderstood what you meant about recursive strace, then I do apologize.

Comment Re:A ridiculous concept (Score 5, Informative) 289

Cosner's machine can process 200 gallons per minute. If you take the extent of the damage, about 17,000 square miles, and want to run the top ten feet of it through his device, and you could afford to buy 100,000 of them, it would take.....

1,830 years

to process that amount of water.

And scientists have found the stuff distributed a whole lot deeper than that.

Your calculation is about 3 orders of magnitude too high:

(17000 square miles * 10 feet) / (100000 * 200 gallons per minute) = 3.37035066 years

But taking into account how much is far below 10 feet deep (as you mentioned), it would take quite a long time.

Comment Re:Funny argument (Score 1) 548

Some people think they know what spaghetti code is, but unless they've written code with line numbers, they probably don't.

And the good old days of 'LET A = NOT PI' to save three bytes of RAM :).

(ex-Sinclair BASIC programmers will understand why such arcane constructs were beneficial when you were low on RAM)

For those who never used Sinclair BASIC, I'll tell you why this is so: the BASIC interpreter converted the BASIC code that you typed into the machine into a smaller bytecode. Most tokens would boil down to a single byte, and all (most?) numbers are converted to floating-point values. In this case, "NOT PI" takes (I'm guessing) 2 bytes, whereas the floating-point number "0" takes (I'm guessing again) 5 bytes. Both expressions are equal to 0, though the "NOT PI" form would take a bit longer to execute than a literal 0.

Note: I've never actually programmed for the Sinclair, but the BASIC interpreters for a lot of machines of the era worked like this. I used Commodore BASIC for years, so I know it's true of that interpreter. Then again, a lot of those old machines used Microsoft BASIC interpreters, so this should be expected.

Comment Re:Zealots caught in Gnu/Stallmans trap (Score 2, Informative) 521

GPL covers SOURCE CODE, and thru "derivative works" covers binary "performances". The whole reason we even have EULA's (End User LICENSE Agreements) is that there was one case 30 years ago where somebody argued that typing source code from a book to RAM and from the RAM to CPU was "infringement" and duplication of the work. So because of the internal machine copies needed, you have to be granted a special LICENSE to USE any kind of software (source code or binary). EULA writers have used US law's reliance on "contracts" to throw the "kitchen sink" in EULAs and call them "contracts" rather than license for use.

Except that under Copyright Law, you don't need any special license to USE software. See Section 117, which was amended in 1980:

(a) Making of Additional Copy or Adaptation by Owner of Copy. — Notwithstanding the provisions of section 106, it is not an infringement for the owner of a copy of a computer program to make or authorize the making of another copy or adaptation of that computer program provided:

(1) that such a new copy or adaptation is created as an essential step in the utilization of the computer program in conjunction with a machine and that it is used in no other manner

Source: http://www.copyright.gov/title17/92chap1.html#117

I believe that the Copyright Act preempts your statements. :)

Comment Re:This is not worth mentioning! (Score 1) 154

Wire up a USB connector and write a driver to support it under Mac OSX, Linux and Windows.

While it's not for the Atari tablet (and also not USB), a couple of years ago I made an adapter for my Commodore KoalaPad to connect it to the PC joystick port: http://unixplumber.livejournal.com/14324.html

By the way, I wonder if there's a way to use a joystick as a core pointer in X... I guess it's Google time!

Slashdot Top Deals

"Luke, I'm yer father, eh. Come over to the dark side, you hoser." -- Dave Thomas, "Strange Brew"

Working...