MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

Elements of JavaScript Style – JavaScript Scene – Medium

Posted by Venkatt Guhesan on May 3, 2017

Great article focusing on Javascript style. Provides some good examples of JavaScript coding styles, practices, and things to avoid.

The examples includes:

  1. Make the function the unit of composition. One job for each function.
  2. Omit needless code.
  3. Use active voice.
  4. Avoid a succession of loose statements.
  5. Keep related code together.
  6. Put statements and expressions in positive form.
  7. Use parallel code for parallel concepts.

Source: Elements of JavaScript Style – JavaScript Scene – Medium

Posted in EL6, Javascript, Scripting | Tagged: , , , | Leave a Comment »

Scientists Found Cancer-Causing DNA in Stem Cells Given to Patients – Tonic

Posted by Venkatt Guhesan on April 28, 2017

https://tonic.vice.com/en_us/article/scientists-found-cancer-causing-dna-in-stem-cells-given-to-patients

Posted in General, Humanity, Inspirational, Science | Tagged: , , | Leave a Comment »

What if we’re living in a computer simulation? | Technology | The Guardian

Posted by Venkatt Guhesan on April 24, 2017

Virtual reality technology is making great advances, but it has also helped popularise a theory long debated by philosophers and now gaining supporters in Silicon Valley – that the outside world is itself a simulation

Source: What if we’re living in a computer simulation? | Technology | The Guardian

Posted in General, Great Ideas, In the News, Inspirational, Science and Technology | Tagged: , | Leave a Comment »

Researchers Unearthed a New Copy of the Declaration of Independence

Posted by Venkatt Guhesan on April 22, 2017

http://www.esquire.com/news-politics/news/a54689/new-declaration-of-independence/

Posted in history, Humanity, Inspirational | Tagged: | Leave a Comment »

Article: Physicists observe ‘negative mass’

Posted by Venkatt Guhesan on April 20, 2017

Physicists observe ‘negative mass’

http://flip.it/zOX5Z5

Posted in General, Great Ideas, In the News, Inspirational, Science, Science and Technology | Leave a Comment »

Article: Why Does The Proton Spin? Physics Holds A Surprising Answer

Posted by Venkatt Guhesan on April 20, 2017

Why Does The Proton Spin? Physics Holds A Surprising Answer

http://flip.it/ZBiAfu

Posted in General, Inspirational, Science, Science and Technology | Tagged: , | Leave a Comment »

How AI algorithms could help design new drugs – Futurity

Posted by Venkatt Guhesan on April 6, 2017

A new kind of AI algorithm—designed to work with a small amount of data—may be able to assist in the early stages of drug development. Artificial intelligence doesn’t work all that well in situations where there is very little data, such as drug development.

A new technique called one-shot learning, that requires only a small number of data points might be a solution to that low-data problem.

To make molecular information more digestible, the researchers first represented each molecule in terms of the connections between atoms (what a mathematician would call a graph). This step highlighted intrinsic properties of the chemical in a form that an algorithm could process.

With these graphical representations, the group trained an algorithm on two different datasets—one with information about the toxicity of different chemicals and another that detailed side effects of approved medicines. From the first dataset, they trained the algorithm on six chemicals and had it make predictions about the toxicity of the other three. Using the second dataset, they trained it to associate drugs with side effects in 21 tasks, testing it on six more.

In both cases, the algorithm was better able to predict toxicity or side effects than would have been possible by chance.

Article: http://www.futurity.org/one-shot-learning-algorithm-1394022/

Learn more  One-Shot Learning

 

Posted in AI, Science, Technology, Uncategorized | Tagged: , , | Leave a Comment »

uvloop – Python replacement for asyncio event loop

Posted by Venkatt Guhesan on April 1, 2017

uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood.

Benefits: uvloop makes asyncio 2-4x faster.
Cons: uvloop is available from PyPI but it requires Python 3.5. (The reason for this is asyncio was introduced in Python 3.4 and above.) Unless your project is based on Python 3.4+ – you may not be able to leverage this library.
Alternatives: For the folks that are using Python 2.7 (including me), if you search for “asyncio alternatives” you will quickly come across the Trollius project. But unfortunately this project is no longer under development. Eventually, you will arrive a discussion on GIL and multi-cores like this article. Yes, the Python community is torn between 2.7 and 3.x. Your best bet at this point of time for Python 2.7 users is to leverage Tornado’s async facility using Callbacks, futures, promises and deferred.  A hybrid but elegant alternative is to use Cyclone (Takes Tornado’s elegance and applies it to Twisted library).

Read more about uvloop here: https://goo.gl/lEC7tt

To learn more about the other libraries mentioned here refer to this blog article:
https://goo.gl/TDkEkJ

Cheers!

Today’s inspirational quote:
bust_of_marcusaurelius
  • Letting go is a necessary, if sometimes heart-wrenching gateway to genuine transformation.

Posted in Python, Uncategorized | Tagged: , | Leave a Comment »

Scientists Have Discovered a New Activity in Brain Our Cells

Posted by Venkatt Guhesan on March 27, 2017


https://futurism.com/scientists-have-discovered-a-new-activity-in-brain-our-cells/

Posted in Science | Tagged: | Leave a Comment »

A Teenager Just “Delighted” NASA By Pointing Out a Significant Error in Their Data

Posted by Venkatt Guhesan on March 23, 2017

https://futurism.com/a-teenager-just-delighted-nasa-by-pointing-out-a-significant-error-in-their-data/

Posted in Great Ideas, Humanity, In the News, Inspirational, Science and Technology | Leave a Comment »