Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment Re:Incessant version changes (Score 1) 85

That's comment about Python breakage is just false. Changes to a new minor version, shouldn't introduce any breakage change, and it would most likely be considered a regression if it happened.

That said, I develop a (large) project in Python, and agree that the changes between major version (eg 3.7 -> 3.8) is still too large sometimes. In general, they try to make all previous syntax working the same. However, with the introductions of new features, it sometimes breaks old programs. For instance, in v3.7 they introduced the "async" keyword. It broke every software which used "async" as a variable name (which is not such an improbable name). These changes are always documented though. I can't think of anything that v3.8 broke, nor what could get broken by changes in v3.9.

There is still the pain of v2 -> v3, which is still sometimes felt nowadays, but hopefully will soon be over. The Python developers promised to never do that again. PHP developers seems to not prefer "spreading" such breakage over yearly releases. IMHO, that's quite more annoying.

Comment Description of the bug (Score 5, Informative) 121

I couldn't find the original script, but looking at the corrected version, it's fairly obvious what happened.

The script used many pairs of files to "compute something important". The files are named along the pattern nmr-xxx.out and freq-xxx.out.
The authors used the standard Python function glob("*.out") to list all the filenames. They assumed that the first nmr- filename matched with the first freq- filename. However, contrary to the bash command "ls *.out", glob() doesn't sort the output (it essentially returns the order the files are stored on the hard disk, which tends to often be in the same order as they were stored but no promises are made).
So pairs of files where "randomly" made, which lead to incorrect computations/results... sometimes

In defence of Python, this behaviour of glob() is warned in the first line of the documentation.

Submission + - Hubble shatters the cosmic distance record 1

An anonymous reader writes: One of the holy grails of cosmology is to measure, directly, exactly when the first stars and galaxies formed in our Universe. The Hubble Space Telescope has been pushing the distance record farther and farther back, with its measurements typically confirmed by ground-based, spectroscopic follow-ups. This time, however, the new record-holder was so distant that confirmation needed to be done from space: by Hubble itself. The result? A galaxy at a redshift of z=11.1, from when the Universe was just 400 million years old, or a mere 3% of its current age. This is a record that will likely stand until the James Webb Space Telescope launches, as it took a combination of incredible work and incredible luck to find a galaxy this far back with our current technology.

Submission + - Human 'knockouts' reveal genes we don't need (sciencemag.org)

sciencehabit writes: Although humans have about 20,000 genes, exactly what most of them do inside our body’s cells is still murky. One way to learn more is to find people who lack a working copy of a particular gene and see how that affects their health. Such so-called knockouts are scarce in the general population. But a new study points to a more efficient way to find them: Search the DNA of people from a culture in which marrying a relative is common. The study has found a number of genes that we seemingly can do without, including those thought to prevent serious diseases. And one healthy mother completely lacked a gene called PRDM9 that is involved in shuffling chromosomes during the formation of eggs and sperm. Mice lacking the gene are sterile.

Comment Reminds me of iPython notebook (Score 1) 176

This reminds me of iPython notebook. It allows to run/re-run python commands and display either text or graphics. You can also insert "formated comments", save a session, and share it. It's now reaching a good maturity, and is becoming a kind of "python" killer apps for scientists.

As a side note, in addition to Python, it accepts shell commands, when preceding them with a !, to it could even replace a normal shell.

Comment Python fairs pretty well (Score 2) 286

On this aspect, Python does handle interoperability pretty well (at least with C and C++). It might just have a little bit too many options:
  * ctypes: connect to any C library directly (you just have to not do any mistake in parameters, as there is not check)
  * Python C extention: write a wrapper in C.
  * SWIG: "automatically" generates the wrapper, based on some .h-like file
  * cython: write C code using python syntax

Personally, I just use ctypes or cython, and it's quite easy to interpolate with any software library I need.

Comment Official answer from Samsung (Score 4, Informative) 234

There seems to be an official answer from Samsung here: http://samsungtomorrow.com/4676

It's in Korean, but here is the translation, provided by sammobile.com:
"Under ordinary conditions, the Galaxy S4 has been designed to allow a maximum GPU frequency of 533MHz. However, the maximum GPU frequency is lowered to 480MHz for certain gaming apps that may cause an overload, when they are used for a prolonged period of time in full-screen mode. Meanwhile, a maximum GPU frequency of 533MHz is applicable for running apps that are usually used in full-screen mode, such as the S Browser, Gallery, Camera, Video Player, and certain benchmarking apps, which also demand substantial performance.

The maximum GPU frequencies for the Galaxy S4 have been varied to provide optimal user experience for our customers, and were not intended to improve certain benchmark results.

We remain committed to providing our customers with the best possible user experience."

Comment Change your attitude (Score 2, Insightful) 376

As many people have already written, it's not the drive to tablet and phone that is reducing the user community, it's the fact that Gnome has become so bad compared to other DEs that people moved away. The main question is "why has Gnome become so bad?". I'd say it's mostly due to not listening enough to user feedback and lack of good judgment on what is good for the users.

Don't get me wrong. I loved Gnome, used it all the time, even used to send patches for the bugs that were annoying me (actually, I even had SVN commit rights at some points). But I stopped because Gnome 3 was worse than Unity _and_ LXDE, and because developers started to close all my bug reports as WONTFIX or, worse, because the patch would not apply anymore... after 2 years of being ignored.

I'd suggest these changes to all the core Gnome developers:
  * first fix bugs before adding a new feature (or a new app)
  * review and merge as many patches as you get from outside people, as soon as possible (that's how you build a developer community)
  * review the entire interface and especially the fixed/default values so that Gnome is _super_ comfortable to use right out of the box
  * do not ever remove features, and never accept regressions
  * make sure your interface can be used by power users too (yes, that means putting back _some_ configuration options), they are the (future) developers
  * listen a bit to user feedback (that one is difficult because it's typically a very noisy channel, but it's necessary)
  * pick a few known and powerful programming languages, and stick to them for all the core applications. Honestly, just drop Vala: as great as it could be, it's not up to a DE project to develop a new programming language, and almost no one outside of the community knows it. If it was up to me, I'd say, just pick C, C++ and Python.

Keep like this for 3 years, and Gnome will be relevant again.

I'd also suggest to pick 2 or 3 apps and focus on them so much that they are the best for the task among any other competitor. This way, people will have incentive to use Gnome, and all the distributions will make sure these apps and all the dependencies are installed by default and working well. For instance, I'd pick: Evince, Rhythmbox, and Aisleriot.

Comment Lego Mindstorm (Score 5, Interesting) 185

Lego Mindstorm might be a nice approach. It's available both in Dutch and Danish, and uses a graphical language with a great graphical interface dedicated to kids. I use it to teach (Dutch) programing and robotics to kids and it's amazing easy for them to make and modify the software.

The main drawbacks is that, although the software is free, you need to get a 200€ lego robot to make it useful. It also has only a Windows (and probably Mac) version. IMHO, the robot has the advantage to bring additional interest to the kids. It makes programming much less abstract.

To try the software before buying, look for the lego mindstorm nxt 2 iso on the lego website (it's a bit hidden).

Comment Armchair OpenStreetMap (Score 1) 279

1. Go to OpenStreetMap.org
2. Find a place which is not yet fully mapped (i.e. anywhere but Europe). I usuallly find a place which I've just read about in the news, or my next holiday area.
3. Click on "Edit".
4. Draw a couple of roads.
5. Profit (and let the others profit as well).

Admitely, quite a few people find it boring but if, like me, you enjoy seeing the world from above and seeing new places, it's great. It really changes your mind, and can be stopped at any moment.

Comment Wishing him and his familly all the best (Score 4, Interesting) 214

On the website of a business that Alan seems to run separately from his job at Intel, he had aldready mentionned familly illness. (http://www.ultima-models.co.uk/news.html). I guess this is the "familly reasons".

Alan Cox has already contributed enourmously to Linux but hopefully things will get better for him and his familly, and he'll be able to contribute even further :-)

Lately he has been trying to cover a bit the mess than Intel had done with the Poulsbo hardware (GMA500). As an owner of such a hardware, I'm very grateful for this. So I now wish him and his familly all the best in the hard time.

Slashdot Top Deals

Never put off till run-time what you can do at compile-time. -- D. Gries

Working...