So most commercial GPRs run in the 25-1000 MHz range. All I need to do is point this thing at the ground and it's worth $30K. Use it to measure ice thickness on ice roads, to look for unexploded ordinance, or find rebar in concrete...
For the example given, this is a list comprehension one-liner. (print(n) for n in range(7))
However, I do use recursion for looping in one situation - if my loop is running non-blocking as part of a larger event loop. Example below (excuse the dots leading underscores, slashdot doesn't let me format python). Normally, you'd just use while True for a loop like this.
loop = asyncio.get_event_loop() def eventDispatcher(self): __ev = poll_for_event() # non blocking, return None if no event __if ev: loop.call_soon(do_something(ev)) __loop.call_soon(eventDispatcher) loop.run_forever()
from the crackberry-is-no-joke dept.
goG sends in a piece from IBTimes on the latest study to confirm what is becoming pretty obvious. The article mentions the Internet addiction rehab center we discussed last year. "American college students are hooked on cellphones, social media and the Internet and showing symptoms similar to drug and alcohol addictions, according to a new study. Researchers at the University of Maryland who asked 200 students to give up all media for one full day found that after 24 hours many showed signs of withdrawal, craving and anxiety along with an inability to function well without their media and social links. ... 'Texting and IM-ing my friends gives me a constant feeling of comfort,' wrote one of the students, who blogged about their reactions. 'When I did not have those two luxuries, I felt quite alone and secluded from my life.'"
An anonymous reader writes: Researchers at the University of Twente have demonstrated, for the first time, the manipulation and detection of electron spin polarization patterns in silicon at near-room temperatures, about 150 kelvin above the previous record. The article in which the research appeared is at http://www.nature.com/nature/journal/v462/n7272/full/nature08570.html
Jiilik Oiolosse writes: After literally years of agonizing over the details, KDE has killed KDE. In what is essentially, this is the same process that Mozilla went through, originally being a browser, but now being an organization, the KDE community has killed to term K Desktop Environment (previously the Kool Desktop Environment). KDE had previously ambiguously referred to both the community, and the complete set of programs and tools produced by the KDE community which together formed a desktop user interface. This set of tools, including the window manager, panels and configuration utilities, which KDE terms a 'workspace', will now be shipped under the term "Plasma Desktop". This allows KDE to ship a separate workspace called "Plasma Netbook", and independently market the various KDE applications as usable in any workspace, whether it be the Plasma Desktop, Windows, or XFCE.
Jiilik Oiolosse writes: KDE founder Matthias Ettrich was decorated today with the German Federal Cross of Merit for his contributions to Free Software. The Federal Cross of Merit is both the most prestigious as well as the only general decoration awarded by the Federal Republic of Germany. It is awarded by the Federal President for outstanding achievements in the political, economic, cultural, and other fields. Matthias was awarded the medal in recognition of his work spurring innovation and spreading knowledge for the common good.
An anonymous reader writes: Harvard physicists have created a quantum farts that can be used to observe single atoms at temperatures so low the particles follow the rules of quantum mechanics, behaving in bizarre ways. The work, published this week in the journal Nature, represents the first time scientists have detected single atoms in a crystalline structure made solely of light, called a Bose Hubbard optical lattice.
AMESN writes: The Fermi Gamma-ray Space Telescope launched last year detects gamma rays from light years away, but recently it detected gamma rays from lightning on Earth. And the energy of the gamma rays is specific to the decay of positrons, which are the antimatter flavor of electrons. Finding antimatter in lightning surprised researchers and suggests the electric field of the lightning somehow got reversed.
Jiilik Oiolosse writes: PJ at Groklaw writes about some of the common myths circulating about KDE 4. "There has been a bit of a dustup about KDE 4.0. A lot of opinions have been expressed, but I thought you might like to hear from KDE. So I wrote to them and asked if they'd be willing to explain their choices and answer the main complaints. They graciously agreed." Among the topics discussed are: "Releasing KDE 4.0 was a mistake", "I cannot put files on my desktop", and "KDE should just have ported KDE 3.5 to Qt 4 and not add all that other experimental stuff right away".
KHTML/Webkit and derivatives are under the LGPLv2, and the rights were not assigned to a central organization. They would have to contact every author that ever touched that code before they'd be permitted to offer it solely under the LGPLv3...
Jiilik Oiolosse writes: "Over at Ars Technica, the first article has gone live corresponding to their brand new section dedicated to coverage of open source topics. From the article:
"In open source terms, this may be as big of a deal as the gcc and egcs merger of yonder days. KHTML and Webkit are definitely coming of age. The KDE developers, responsible for the original creation of KHTML, are dedicated to seeing this unforking happen and are taking a leading role in that effort." And so begins the task of re-unifying one of the more successful open source libraries now in existence."
LarryBoy writes: Ars Technica got to spend some time playing with a prototype Mobile Internet Device from Intel. The unit was running Mandriva Flash Edition and KDE 4.0 Alpha 2 and featured a 'double-thumbs' style keyboard, a 1024x600 touch screen, an 800MHz Celeron CPU, and a gigabyte of RAM. Responsiveness was good, but the unit really shined when used with a stylus: 'With a stylus in hand, using the touch-screen interface to control KDE 4 became a joy. For example, one of KDE 4's new applications is a desktop globe called Marble. This particular program was an ideal candidate for testing the touch screen as I was able to drag the globe around in the view port in much the same way that users of the Nintendo Wii are used to.'