Beta

×

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

Perl Data Language 2.4.10 released

Dr. Zowie Re:IAMA PDL user (94 comments)

Yes, this is an ongoing problem, and it is what made Python the more popular solution. Perl is easy to write, but harder to write well -- the whole point of the language is that it is rich and expressive, without a lot of imposed structure. People who write Perl as they learn tend to write crappy, unmaintainable Perl. The result is that most students' first experience with Perl is of crappy, unmaintainable spaghetti-Perl. Those students often grow up to become Perl-haters.

Python is more novice-friendly but harder to to be expressive in for experts, so grizzled longhairs (like me) tend to scoff at it.

That sort of pattern happened before: there was a time when Pascal attracted a lot of mindshare and people scoffed at the woolier "C". Entire OSes were written in Pascal (gasp). But in the long run people migrated back to C and (when it was invented) C++, because, well, Pascal is easy to learn but it sucks for experts.

There are lots of solutions for getting one's work done. PDL is superior for some tasks, Python/NumPy is arguably superior for others (like learning). I wish people would get over it and code, instead of tribal hating. But that is what people, well, do.

more than 2 years ago
top

Perl Data Language 2.4.10 released

Dr. Zowie Re:Quiz (94 comments)

Oddly enough, PDL has more "computing power" than NumPy, in the sense that its threading engine works faster and it is less of a memory hog. It is also older than NumPy, having been first written in the late 1990s.

more than 2 years ago
top

"Overwhelming" Evidence For Magnetic Monopoles

Dr. Zowie Re:not a "real" monopole (256 comments)

It is not possible to create a true monopole from dipoles, because any "g'zinta" field lines to your favorite point in space have to matched by an equal number of "g'zouta" field lines from the same place.

These spin-glass phenomena are only quasi-monopoles: all the "g'zinta" field lines are squished into a small tube, leaving the "g'zoutas" free to splay out almost like a true monopole. But the divergence is still zero (there are no field line endpoints).

Compare to a spray nozzle that sprays water in all directions from a garden hose. If the spray is broad and strong enough, it might sort of hide the hose itself, so that you could convince your kid brother that the nozzle is a magical water-creator (i.e. that the flow through the nozzle has positive divergence). But in fact, there's a garden hose feeding the nozzle, and every bit of water that comes out through the nozzle is balanced by an equal bit coming into the nozzle from the hose.

In that analogy, your nozzle is interesting because the spray pattern is similar to the pattern from a mythical water-creator, but it still won't solve the problem of drought in California, which a true water-creator would.

more than 4 years ago
top

"Overwhelming" Evidence For Magnetic Monopoles

Dr. Zowie Re:not a "real" monopole (256 comments)

Classic case of science journalists overblowing a mundane result. Yes, connected quasi-monopoles are interesting. they are visible in any conducting medium. But there's a HUGE difference between a quasi-monopole that is at the end of a finite-length, shielded dipole and a true monopole that actually violates the magnetic divergence-free condition.

In solar physics we call such things "unipoles" to distinguish them from the infinitely harder-to-find "monopoles". Unipoles are all over the surface of the Sun, because the conductive interior hides the field lines that connect opposing unipoles.

It is disingenuous at best and downright deceptive at worst to call the HZB result "evidence for magnetic monopoles", because it ain't.

The only plausible true magnetic monopole detection ever was still in Blas Cabrera's instrument at Stanford in the 1980s. It was never replicated, so it is unknown whether they exist but are extremely rare (and Cabrera was just lucky) or whether his detector glitched.

more than 4 years ago
top

Professor Gets 4 Years in Prison for Sharing Drone Plans With Students

Dr. Zowie Actually, more interesting than that... (354 comments)

Since he seems to have been convicted under the EAR, which is a set of regulations having to do with rendering technical aid to foreigners, and not the ITAR, which is a set of regulations about exporting actual objects (such as munitions or rocket-control thingies), there is very close parsing required of the law to figure out what is Right or not.

After all, the material he distributed wasn't classified, and in principle the 1st Amendment to the U.S. constitution allows you to say whatever you want to whomever you want (provided that you aren't directly inciting a crime, or lying, or distributing classified information). It's especially interesting because most violations of the EAR never get to trial -- they are generally settled by defense contractors who are eager to make good so that the flow of federal dollars doesn't dry up -- so this is likely to be a strong legal precedent. In this case, as in so many, my guess is that he had the standard language in his federal contract -- essentially "I agree to abide by ITAR and EAR" -- so that the regulations can be enforced via contract law even if the ITAR and EAR are eventually found to be unconstitutional if applied to general citizens.

The most scary situation involving EAR/ITRAR is that I know of no legal precedent at all for the EAR in the case of a gifted, privately funded enthusiast just screwing around -- but it applies to many things that even hobbyists do now. If you take an interest in (say) cheap image stabilization systems or inertial guidance of vehicles, and share your work with some of your friends down at the rocket club (who happen to be exchange students from the Pacific Rim), the regulations say that you are liable for millions of dollars in fines and many years of jail time -- even though those technologies are well within the range of gifted college students today (and affordable for an enthusiast to tinker with). I have no idea what the outcome of such a case would be -- only that the legal bills would be immense and the hypothetical hobbyist's life would be put on hold for years, if the Feds decided to take an interest.

about 5 years ago
top

Physics Experiments To Inspire Undergraduates?

Dr. Zowie Some ideas... (249 comments)

Ultrasonic tape measure / speed of sound experiment. Ultrasonic transducers are easy to come by; students should send some pulses out one, and then sense the return pulse, giving either a numeric indicator or a voltage level that corresponds to the delay time. A little electronics heavy, but if they have had a background in electronics it should be pretty fun. Proof of concept: ultrasonic tape measures at Home Depot for $15. (Trick: you have to build some kind of ultrasonic horn to channel the pulse and collect the return pulse -- otherwise it diffuses too much)

Lunar range finder. Get a green laser pointer and modulate it with a digital stream. Mount a beamsplitter on a little telescope and point it at one of the Apollo landing sites. Send the laser pointer beam out the telescope, pick up the return signal with a photodiode at the eyepiece. With digital correlation, you can measure the distance to the Moon in only a few minutes of integration. This may be a little ambitious for a 36 hour project, but it makes a dandy six-week independent project. As a side bonus, have them calculate the strength of the return signal. It turns out that the experiment wouldn't work without the retroreflectors planted there by the astronauts.

Million-volt van de graaf generator. Given a length of acrylic tubing, a long rubber band, a couple of brushes, a motor, and a big metal ball you too can make sparks that leap halfway across the room. If you really do get a megavolt, you can put a Geiger counter nearby and look for gamma rays(!)

Barometer. Make a barometer that can measure the height of your building. Pretty simple to do - just requires mercury, a glass tube, and care, or (for a more sensitive one, but harder to calibrate) an columnn of vacuum oil with a sealed partial vacuum at the top - but very moving: you can demonstrate the mass of air with remarkably simple equipment.

Pipe organ. Have them cut the tubes to length to create a scale.

Spectroscope. Stanford used to give out posters that could be folded up to make a little spectroscope, with a $0.10 transmission grating slide as a dispersive element. I handed them out to my CU students and asked them to do "something interesting" with them. One of them taped over the slit. Another one used razor blades and sketched the Fraunhofer spectrum of the Sun. Yet another used it to debug a sputtering apparatus for his work/study job. You probably don't want to be that open-ended, but you can certainly ask them to make one and calibrate it using fluorescent lights. Everyone but tape-boy really felt inspired by actually *seeing* spectral absorption and emission lines.

Doppler radar. Not as hard as it once was, this may still be on the ambitious side. Edmund Scientific has microwave transmitters that will serve. Heterodyne the signal with the return pulses, the output frequency gives you the speed.

Measure the curvature of the Earth using a car's odometer and a sextant. Cheap but effective can be had for $25-$30 at sailing supply stores. Have the students travel about 60-100 miles north or south and measure the altitude of a celestial object at both places at the same time of day. Students can "shoot the Sun" at true noon on successive days (compensating for the analemma) or "shoot Polaris" on successive nights at the same time. (Even Polaris is about a degree off the pole, so you can't shoot Polaris at different times on the same night without compensating for that...)

more than 5 years ago
top

Students Call Space Station With Home-Built Radio

Dr. Zowie Big deal...Mir had a ham usenet feed... (330 comments)

...from University of Hawaii, in the early 1990s. A colleague of mine was a postdoc there and introduced me to the guys that did it. They had set it up pretty much for kicks, after a long string of voice contacts ith the cosmonauts (who must have been pretty bored up on their end too...)

more than 5 years ago
top

Open Source Software For Experimental Physics?

Dr. Zowie Re:GDL is the open source replacement for IDL (250 comments)

Not to attack the great work that the GDL folks have been doing, but friends don't let friends learn IDL. It's too evil and bletcherous, and stunts the mind away from producing beautiful, generalizable code toward a twisty maze of special cases, all slightly different.

more than 5 years ago
top

Open Source Software For Experimental Physics?

Dr. Zowie Perl Data Language (250 comments)

Perl Data Language is quite nice -- it has all the blended hackish glue-code goodness of Perl (which could be a plus or a minus depending on your personal style). CPAN (the big Perl repository) has a lot of free stuff for access to serial, parallel, and USB ports so you can control your equipment and acquire data. PerlXS (built into Perl) gives you nice access to C libraries, and PP (a meta-language that comes with PDL) helps you sidestep a lot of cruft if you have to use a C module to import large volumes of data.

PDL has built-in commands for plotting 2-D stuff via PGPLOT or PLPLOT, and 3-D stuff via GL. I use it for all my publications.

Some prefer NumPy or SciPy, the Python equivalents of PDL, but (IMAO) Python isn't as expressive as Perl, and the external libraries, while extensive, cannot compete with CPAN for completeness or hugeness.

more than 5 years ago
top

Open Source Software For Experimental Physics?

Dr. Zowie PDL (from Perl), GDL (from IDL), NumPy/SciPy (250 comments)

Perl Data Language is my personal favorite for data acquisition and manipulation - it is an extension to Perl that gives you the usual data analysis and plotting goodies, plus a nice mix of access to C code (via XS), access to the huge CPAN trove of modules (via, er, CPAN), GUI-isms (via PerlTK), and serial port / USB port access for instrument control and data acquisition.

It's based on Perl, which can either be a huge plus or a huge minus depending on whether you like Perl.

If you want bondage-and-discipline, you can go with GDL, which is an open-source clone of IDL. GDL's main advantage is that it is a clone of IDL, which has become the dominant language in some sectors of physics. GDL's main disadvantage is that it is a clone of IDL, which is among the more evil, bletcherous, pitfall-laden, wretched buggy cesspits of quasi-language that exist.

Numeric Python is reputed to be good, but it's not nearly as expressive nor as flexible as Perl. Matter of taste, really.

Gnu Octave is a MatLab clone, but does not have access to the huge library of add-on modules that you can buy for MatLab. Still, many modules exist and if you like the syntax you can stick with it.

Another good place to start is the wikipedia comparison of numerical analysis packages.

more than 5 years ago
top

Machines Almost Pass Mass Turing Test

Dr. Zowie Amazing, considering how badly they suck. (580 comments)

I just tried out Elbot and the Princeton entry (RTFM and then google for "Eugene Goostman"). While both Elbot and Goostman parse sentences reasonably well, it is clear that they are simply trying to identify the subject of a sentence, and free-associating on that. In many cases they completely miss the point. For example, Goostman asked me several times about my profession, but wasn't able to parse meaning from "I am a scientist.", "I am a plumber.", or "I study the Sun for a living.". Both Elbot and Goostman tried the ELIZA-like trick of finding a prominent noun in my sentence, and recycling it as a question. Elbot has a cute little robot icon that emotes at you; this works surprisingly well at distracting from the inanity of its actual dialog. Goostman seems to have the better parser, but I'm not impressed by either one.

I'm forced to conclude either that Will Pavia is an utter naif and the 25% of people who were fooled by Elbot are moronic or disinterested, or that the humans in the test were deliberately trying to throw the results by giving stilted answers to appear more like computers. These engines simply can't (yet) parse and ingest meaning even as well as even a very young human would.

more than 5 years ago
top

Machines Almost Pass Mass Turing Test

Dr. Zowie Re:Elbot? Not impressed (580 comments)

Google for it: "Eugene Goostman". It sucks too.

more than 5 years ago
top

Free Online Scientific Repository Hits Milestone

Dr. Zowie Like anything else: quantity and ease of access (111 comments)

Because quantity == quality...

I realize that you were being snarky, but you accidentally hit on a corner of the truth. The real value of the ArXiV is indeed its quantity of results, mixed with the ease of access. The traditional journals typically restrict access to their output -- unless you are at a subscribing institution, it costs $15-$50 to access a single article from a single traditional scientific journal (depending on publisher). At professional institutes and universities, which typically have online subscriptions to journals, it is possible to surf through the Literature (depending on field, back about 10-15 years) and find recent relevant knowledge extremely quickly. If you aren't at an institution that subscribes, you're SOL. ArXiV fixes that - if you publish your article both in a journal and in the ArXiV, most indexing services will notice that it is the same, and suddenly everyone on the planet has unrestricted access. That's a no-brainer for an author.

The way that professional scientists (like me -- I am a solar astrophysicist) access the Literature has changed drastically in the last ten years. My office has about 12 linear feet of Xeroxed journal articles in three-ring binders, but I practically never refer to them. It's far faster and more convenient to access (say) the entire archives of Astrophysical Journal online than to go "grep dead trees" at the library. Citation indices such as ADS (Google for adsabs) hyperlink both references and citations, so that I can search through 50 articles relevant to a topic in less time than it used to take to look up one article and Xerox it for reading outside the library.

Old-style pay-to-read journals get in the way of that rapid access - for example, I have rarely cited articles in Astronomy and Astrophysics, because it's a pain in my ass to download them. Until recently, my institute didn't subscribe, so I had to either pay on a per-article basis (which adds up if you are skimming for the one relevant article in a dozen possibilities), or travel to the local university to get the paper I wanted. This is a very common problem: even large universities generally don't subscribe to all the relevant journals in a given field, because web subscriptions cost thousands to tens of thousands of dollars per year per journal!

For everyone not fortunate enough to have a computer account at a large institute that can actually afford to subscribe to dozens of journals, ArXiV is the best way to access a large volume of the literature. Hence, articles posted to the ArXiV get cited more. That makes authors want to post to the ArXiV as a matter of course. It's a virtuous circle.

So, er, yes, quantity is quality in this case -- ArXiV was canny and/or lucky enough to get a critical mass of good work, and the quantity is the driving force that keeps the whole thing going.

more than 5 years ago

Submissions

top

10th Year of the International Nethack Tournament

Dr. Zowie Dr. Zowie writes  |  more than 5 years ago

Dr. Zowie writes "The 10th annual Nethack Tournament just started over at nethack.devnull.net, so put on your Hawaiian shirt, grab an expensive camera, and head for the dungeon. The tourney runs through the month of November each year, with volunteer game servers dotted around the world. Fewer than 1% of contestants actually finish the game by retrieving the Amulet of Yendor and ascending to demigodhood, but take heart: there many prizes for intermediate goals, and prizes for team effort.

For those too young to remember games older than Halo, Nethack is the apotheosis of the Roguelike genre of role-playing games, craptacularly rendered in ASCII. Game play is phenomenally complex, and the game is somewhat sadistic: there are no "checkpoints", so if you manage to kill yourself somewhere in the dungeon you must start over from the beginning. The dungeons are quasi-randomly generated, so every game is different."

Link to Original Source
top

Dr. Zowie Dr. Zowie writes  |  more than 7 years ago

Dr. Zowie writes "As the greenhouse effect warms the lower layers of Earth's atmosphere, it is cooling the outermost layers and gradually reducing drag on satellites and space junk, according to a press conference this morning at the American Geophysical Union meeting in San Francisco today. The "thermosphere", or outermost layer of the atmosphere, is unaffected by weather patterns or geography, so this is a planet-wide measurement of climate change. Is there anyone left who still doesn't believe global warming is happening?"
top

Dr. Zowie Dr. Zowie writes  |  more than 7 years ago

Dr. Zowie writes "PDL 2.4.3, the scientific-computing extension to Perl, has been released; get it here. PDL gives ordinary Perl scripts the tools to perform "big iron" computing tasks like image processing, cartography, 3-D visualization, and physics simulations. It also provides a command shell for interacting with datasets directly. This point release adds support for 64-bit platforms and for Microsoft Windows (most Unix variants and MacOS are also supported). Additional release highlights include: more GSL functions, more matrix numerical methods, more GIS functionality, and better 3-D plotting support."

Journals

Dr. Zowie has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?
or Connect with...

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>