Please create an account to participate in the Slashdot moderation system


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment As a python coder, rarely do I use recursion loops (Score 1) 252

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))


US Students Suffering From Internet Addiction 307

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.'"

Submission + - Room-temperature Electron Spin Manipulation (

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

Submission + - K Desktop Environment is now Plasma Desktop ( 2

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.

Submission + - Matthias Ettrich Receives Highest German Honour (

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.

Submission + - Harvard to really invest in fringe science (

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.

Submission + - Antimatter in lightning (

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.

Submission + - Google releases open source JavaScript tools ( 1

Dan Jones writes: Google has open sourced several of its key JavaScript application development tools, hoping that they will prove useful for external programmers to build faster Web applications. According to Google, by enabling and allowing developers to use the same tools that Google uses, they can not only build rich applications but also make the Web really fast. The Closure JavaScript compiler and library are used as the standard Javascript library for pretty much any large, public Web application that Google is serving today, including some of its most popular Web applications, including Gmail, Google Docs and Google Maps. Google has also released Closure Templates which are designed to automate the dynamic creation of HTML. The announcement comes a few months after Google released and open source NX server.

350,000 Linux (Virtual) Desktops Land In Brazil 109

xufem writes "Millions of Brazilian schoolchildren will soon be 'brought up right' running Linux on over 350,000 seats each using PC sharing hardware and software from Userful and KDE. This is world's largest virtual desktop deployment and probably also the world's largest Linux deployment, and seems to have been selected over OLPC by Brazil. Definitely a moment to celebrate — and just in time for Brazilian Carnival which starts tomorrow!"

Submission + - KDE responds to 11 KDE 4 misconceptions

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".

Submission + - The unforking of KDE's KHTML and Webkit begins! (

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."

Submission + - Hands-on with Intel MID prototype with KDE 4.0a2 (

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.'

Slashdot Top Deals

There are running jobs. Why don't you go chase them?