Please create an account to participate in the Slashdot moderation system


Forgot your password?

Comment: Re:The actual code (Score 1) 136

by hcs_$reboot (#49618833) Attached to: Singapore's Prime Minister Shares His C++ Sudoku Solver Code
The guy is probably proud of his prog, that's why he published it. Indeed, that's more a C approach than a C++, but anyway for solving a sudoku there is no need to put in place a lot of complex data structures.
What I like in this prog is that he optimizes the process by simply considering that since any 1-9 digit can only be once in each column, each row, and each of the nine 3×3 sub-grids, he uses a 10 bits int and associate 2^i with a digit (instead of an array, or worse checking all digits each time). Then 'Place()' recursively tries only possible combinations which converges quickly to a solution.
Good prog. I wish all political figures would be able to show such an artwork!

Comment: Re:Don't mess with Texas (Score 1) 960

by hcs_$reboot (#49618787) Attached to: Two Gunman Killed Outside "Draw the Prophet" Event In Texas

about half of US murders are committed by African Americans, who make up about 1/8 of the population. If you adjust the rate of that population to the national average, you get a US murder rate of less than 2.7/100000

But you'd have to apply the same rule to the European rate to get something comparable, wouldn't you? However in Europe, in order to avoid crime-race dangerous and abusive aggregation, the rates published do not show associations between crime and skin color.

Comment: Re:Looks like the prophet's gunmen (Score 5, Insightful) 960

by hcs_$reboot (#49609497) Attached to: Two Gunman Killed Outside "Draw the Prophet" Event In Texas

Well, when all you have to convince people that they should work for you is promises of eternal bliss after death without any kind of proof, you can't really expect nobel prize material to flock to you...

Not sure that's the only reason. Some of these people are just looking for something in which they can get deeply involved, out of the ordinary society stuff. They would actually love being enrolled in some armies to fight for a country, kill or be killed, but they just don't see themselves fighting for our western countries. So the actual reason may not really be Santa Claus / God / Mahomet / [...] and the "eternal bliss", but just the desire to fight for something in which they feel more free than within the regular organized and stricter western armies.

Comment: Re:News for nerds (Score 4, Insightful) 114

by hcs_$reboot (#49550413) Attached to: 7.8 Earthquake Rocks Nepal, Hundreds Dead
This is /. so we can expect comments about 1) was Nepal ready to fight such a disaster, compared to, eg, Japan 2) what are the progresses in terms of EQ detection 3) what is the chance of such a strong EQ happening in that region 4) do we have more & more of such big disasters recently 5) is it linked to the Sun activity, linked to the human oil/gas digging 6) will China offers help to Nepal? ... All of this is rather interesting IMO, so wait and watch!

+ - Bees prefer nectar laced with Neonicotinoids->

Submitted by Taco Cowboy
Taco Cowboy writes: Neonicotinoids are a class of neuro-active insecticides chemically similar to nicotine

Neonicotinoids kill insect by overwhelming and short-circuting the insects' central nervous system (See )

Shell and Bayer started the development of Neonicotinoids back in the 1980's and 1990's

Since this new group of pesticide came to the market the bee population have been seriously devastated in regions where the pesticide are been widely used

In 2008 neonicotinoids came under increasing scrutiny over their environmental impacts starting in Germany

In 2012, studies have shown that neonicotinoid uses are linked to crash of bee population (See )

New studies, however, have discovered that bees prefer nectars that are laced with neonicotinoids, over nectars that are free of any trace of neonicotinoids (See )

According to researchers at Newcastle University the bees may "get a buzz" from the nicotine-like chemicals in the same way smokers crave cigarettes

BBC also covers this case (See )

Link to Original Source

Comment: Re:The Best Investment (Score 2) 45

by hcs_$reboot (#49544773) Attached to: Hubble Turns 25

seriously one of the best investment we have made up there.

This is one of the reasons funding doesn't always go where it would make science progress the better. Hubble outcome is visually attractive and nice (photos). Other fields, particle accelerators, neutrino research etc... that people hardly understand, may not gather the same amount of enthusiasm.

Testing can show the presense of bugs, but not their absence. -- Dijkstra