On demand data in Python, Part 2: The magic of itertools

Python’s motto has always been “Batteries included,” to highlight its
extensive standard library. There are many well-kept secrets among the standard modules, including itertools, which is less well known in part because iterators and generators are less well known. This is a shame because the routines in itertools and related modules such as functools and operators can save developers many hours in developing big data operators. Learn by copious examples how to use itertools to address the most common MapReduce-style data science tasks.

Related:

  • No Related Posts

IBM Blockchain 101: Quick-start guide for developers

Join the blockchain revolution! This developerWorks quick-start guide is
for application developers who are exploring blockchain technology and want to
quickly spin up a blockchain pre-production network, deploy sample
applications, and develop and deploy client applications. Simple instructions
show you how to activate a blockchain network based on the latest Hyperledger
Fabric framework, write and install chaincode (business logic for the
network), and develop client applications to streamline business processes and
digital interactions.

Related:

On demand data in Python, Part 1: Python iterators and generators

The oldest known way to process data in Python is building up data in
lists, dictionaries and other such data structures. Though such techniques
work well in many cases, they cause major problems when dealing with large
quantities of data. It’s easy to find that your code is running painfully
slowly or running out of memory. Generators and iterators help address this
problem. These techniques have been around in Python for a while but are not
well understood. Used properly, they can bring big data tasks down to size so
that they don’t require a huge hardware investment to complete.

Related:

  • No Related Posts

Deploy a blockchain business network to the cloud using the IBM Blockchain Starter Plan

Simple steps and companion videos show you how to deploy an existing
sample business network, the Car Auction network, to the cloud, specifically
to the IBM Blockchain Platform Starter Plan. Once you deploy
the sample network, you can start developing, demoing, and staging your
blockchain applications on a simulated multi-organization network.

Related:

  • No Related Posts

IoT on the edge, Part 3: Integrating cloud analytics and a dashboard app into your IoT solutions

In the first article in this series, you learned how to monitor hay barns
for humidity and temperature to identify dangerous conditions. You learned
how to get sensor readings for temperature and humidity from NodeMCU
devices to the IBM Watson IoT Platform. In this article, you learn how to
preserve those readings in a database, how to display them in an IoT
dashboard, and how to generate alerts.

Related:

  • No Related Posts

World Cup holders Germany left stunned by Mexico

DEFENDING champions Germany have crashed to their first defeat in an opening game of a World Cup since 1982.

Hirving Lozano’s clinical finish earned Mexico a shock 1-0 victory over the Germans.

The highly-rated PSV Eindhoven forward struck the winner on 35 minutes after a blistering counter-attack at the Luzhniki Stadium in Moscow as Mexico beat Germany for just the second time in history.

Germany’s preparations for the tournament were plagued by poor results and controversy, and their problems were magnified in the Russian capital, leaving their proud record of never being eliminated in the group stage of a World Cup already in danger.

Germany v Mexico: Group F - 2018 FIFA World Cup Russia 977032712
Hirving Lozano of Mexico scores his team’s first and only goal. Source: Getty Images

Joachim Loew started eight of the nine 2014 World Cup winners in his squad, with Mesut Ozil returning from a knee injury and Manuel Neuer back in goal following his lengthy absence for the Group F clash.

Jerome Boateng’s build-up to the finals was also hampered by a groin injury, but the Bayern Munich centre-back was on the alert inside 60 seconds to thrust himself desperately in front of a Lozano effort.

A remarkably open start saw Timo Werner sprint in behind the Mexico defence before dragging across the face of goal, while Mats Hummels shot straight at Guillermo Ochoa after a botched clearance.

Neuer held well twice in quick succession, first from a long-range Hector Herrera strike and then again to keep out Hector Moreno’s header, as Mexico attacked the Germany backline with regularity.

Russia Soccer WCup Germany Mexico
Mexican teammates celebrate after scoring. Source: AP

Carlos Salcedo nearly diverted a teasing cross into his own net, while Timo Werner hit tamely at Ochoa when an unmarked Julian Draxler appeared the better option.

Mexico continued to threaten, Miguel Layun narrowly unable to latch onto a through ball, but their goal arrived 10 minutes before the break as Germany were again sliced apart.

After Sami Khedira lost possession, Javier Hernandez triggered a lightning counter before finding a charging Lozano, who cut inside a covering Ozil and lashed low inside Neuer’s near post to spark deafening roars from the sizeable Mexico support.

Germany hit back, Toni Kroos rattling the crossbar with a 25-yard free-kick that needed the fingertips of a scrambling Ochoa to keep it out, but Mexico barely clung on to their advantage.

Penalties galore in World Cup day 3

Marco Reus was introduced on the hour as Loew sought to invigorate a struggling side, while 39-year-old Rafael Marquez became just the third player to feature at five World Cups as he was brought on the tighten Mexico’s defence.

Joshua Kimmich’s acrobatic overhead kick looped onto the roof of the net, with substitute Edson Alvarez then blocking bravely to thwart Draxler.

Reus also hammered a volley over from a narrow angle before a frenetic finale saw Julian Brandt, just on for Werner, smack the outside of the post with a thunderous effort from 20 yards.

One desperate last attack had Neuer come up for a corner, but a towering header from the veteran Marquez and subsequent claim from Ochoa allowed Mexico to close out an unforgettable triumph.

Russia Soccer WCup Germany Mexico
Mexico’s Rafael Marquez and his teammates celebrate after winning the group F match against Germany. Source: AP

FOLLOW LIVE! (If you can’t see the blog, click here)

Related:

  • No Related Posts

Optimize queries in Cloudant

This article compiles insights from multiple people in regard to methods and experiences related to optimizing queries when operating Cloudant NoSQL DB. The knowledge contained here will help you have a more in-depth understanding of the most suitable queries for each applicable scenario, to provide the most efficient data query service for your application.

Related:

  • No Related Posts