Feed aggregator

KnackForge: How to update Drupal 8 core?

Drupal Planet -

How to update Drupal 8 core?

Let's see how to update your Drupal site between 8.x.x minor and patch versions. For example, from 8.1.2 to 8.1.3, or from 8.3.5 to 8.4.0. I hope this will help you.

  • If you are upgrading to Drupal version x.y.z

           x -> is known as the major version number

           y -> is known as the minor version number

           z -> is known as the patch version number.

Sat, 03/24/2018 - 10:31

US International Tourism Market Share Is Falling Under Trump

Slashdot -

An anonymous reader writes: The United States' slice of the international tourism pie is declining, according to a new report from Foursquare that looks at data from millions of phones worldwide. The US share of international tourism dropped 16% in March 2017 compared with the previous year. And it declined an average of 11% year over year in months spanning October 2016 to March 2017, according to the report. The drop coincides with the final month of the US election, the Trump transition, and the early months of the Trump administration, which notably imposed a travel ban on people from several majority-Muslim countries in January 2017 that was eventually halted in court but is currently under appeal. Declines in tourism market share from people originating in the Middle East were more pronounced than the rest of the world, down 25% this January, along with a smaller decrease from South America, Foursquare found. The data accounts for the percentage of international tourism coming to the US and not the absolute number of tourists, but Foursquare CEO Jeff Glueck told BuzzFeed News that it's unlikely tourist visits to the US increased while share declined. "I don't think you'd see a 16% decline in international market share and absolute numbers being up. I don't think that's compatible," he said. "The volume of tourism doesn't change that fast."

Read more of this story at Slashdot.

China Censored Google's AlphaGo Match Against World's Best Go Player

Slashdot -

DeepMind's board game-playing AI, AlphaGo, may well have won its first game against the Go world number one, Ke Jie, from China -- but most Chinese viewers could not watch the match live. From a report: The Chinese government had issued a censorship notice to broadcasters and online publishers, warning them against livestreaming Tuesday's game, according to China Digital Times, a site that regularly posts such notices in the name of transparency. "Regarding the go match between Ke Jie and AlphaGo, no website, without exception, may carry a livestream," the notice read. "If one has been announced in advance, please immediately withdraw it." The ban did not just cover video footage: outlets were banned from covering the match live in any way, including text commentary, social media, or push notifications. It appears the government was concerned that 19-year-old Ke, who lost the first of three scheduled games by a razor-thin half-point margin, might have suffered a more damaging defeat that would hurt the national pride of a state which holds Go close to its heart.

Read more of this story at Slashdot.

Amazon Brings Its Physical Bookstore To New York

Slashdot -

Amazon's first New York City bookstore, Amazon Books, will open to the general public on Thursday morning, marking Amazon's highest-profile move into bricks-and-mortar retail to date. Even as the book shop is a physical bookstore, some "Amazon" elements can be felt. From a report: While some may be excited that this is an "Amazon Store," similar to Apple and Microsoft's respective flagship stores located just blocks away, Amazon says its goal for the new store is the same as it was when the online retail giant first started two decades ago: To sell books. "We have this 20 years of information about books and ratings, and we have millions and millions of customers who are passionate," said Jennifer Cast, vice president of Amazon Books. "It really is a different way to surface great books." The 4,000 square-foot-store features roughly 3,000 books, all with their covers facing out in order to better to "communicate their own essence," Cast says. The company's recommendation system makes a physical appearance in the bookstore through an "if you like this" section, which combines the data Amazon gathers on the books listed with human curators to recommend new books. To someone who walks in to browse, it feels like a high-tech Barnes and Noble.

Read more of this story at Slashdot.

Malicious Subtitles Threaten VLC, Kodi and Popcorn Time Users, Researchers Warn

Slashdot -

Millions of people risk having their devices and systems compromised by malicious subtitles, according to a new research published by security firm Check Point. The threat comes from a previously undocumented vulnerability which affects users of popular streaming software, including Kodi, Popcorn-Time, and VLC. Developers of the applications have already applied fixes and in some cases, working on it. From a report: While most subtitle makers do no harm, it appears that those with malicious intent can exploit these popular streaming applications to penetrate the devices and systems of these users. Researchers from Check Point, who uncovered the problem, describe the subtitle 'attack vector' as the most widespread, easily accessed and zero-resistance vulnerability that has been reported in recent years. "By conducting attacks through subtitles, hackers can take complete control over any device running them. From this point on, the attacker can do whatever he wants with the victim's machine, whether it is a PC, a smart TV, or a mobile device," they write.

Read more of this story at Slashdot.

Wikimedia Is Clear To Sue the NSA Over Its Use of Warrantless Surveillance Tools

Slashdot -

The Wikimedia Foundation has the right to sue the National Security Agency over its use of warrantless surveillance tools, a federal appeals court ruled. "A district judge shot down Wikimedia's case in 2015, saying the group hadn't proved the NSA was actually illegally spying on its communications," reports Engadget. "In this case, proof was a tall order, considering information about the targeted surveillance system, Upstream, remains classified." From the report: The appeals court today ruled Wikimedia presented sufficient evidence that the NSA was in fact monitoring its communications, even if inadvertently. The Upstream system regularly tracks the physical backbone of the internet -- the cables and routers that actually transmit our emoji. With the help of telecom providers, the NSA then intercepts specific messages that contain "selectors," email addresses or other contact information for international targets under U.S. surveillance. "To put it simply, Wikimedia has plausibly alleged that its communications travel all of the roads that a communication can take, and that the NSA seizes all of the communications along at least one of those roads," the appeals court writes. "Thus, at least at this stage of the litigation, Wikimedia has standing to sue for a violation of the Fourth Amendment. And, because Wikimedia has self-censored its speech and sometimes forgone electronic communications in response to Upstream surveillance, it also has standing to sue for a violation of the First Amendment."

Read more of this story at Slashdot.

Flocon de toile | Freelance Drupal: Render programmatically a unique field from a node or an entity with Drupal 8

Drupal Planet -

It may sometimes be necessary to render a single field of a content or entity. For example, for a simplified display of contents relating to the content consulted, the use of specific fields in other contexts, etc. Obtaining programmatically the rendering of a field may be problematic for the Drupal 8 cache invalidation system, since the resulting render array would not contain the cache tags of the source entity. Let's take a look at some solutions available to us.

DEFCON Conference To Target Voting Machines

Slashdot -

An anonymous reader quotes a report from Politico: Hackers will target American voting machines -- as a public service, to prove how vulnerable they are. When over 25,000 of them descend on Caesar's Palace in Las Vegas at the end of July for DEFCON, the world's largest hacking conference, organizers are planning to have waiting what they call "a village" of different opportunities to test how easily voting machines can be manipulated. Some will let people go after the network software remotely, some will be broken apart to let people dig into the hardware, and some will be set up to see how a prepared hacker could fiddle with individual machines on site in a polling place through a combination of physical and virtual attacks. With all the attention on Russia's apparent attempts to meddle in American elections -- former President Barack Obama and aides have made many accusations toward Moscow, but insisted that there's no evidence of actual vote tampering -- voting machines were an obvious next target, said DEFCON founder Jeff Moss.

Read more of this story at Slashdot.

Renewable Energy Powers Jobs For Almost 10 Million People

Slashdot -

According to the International Renewable Energy Agency's (IRENA) annual report, the renewable energy industry employed 9.8 million people last year, which is up 1.1 percent from 2015. The strongest growth was seen in the solar photovoltaic category with 3.09 million jobs. Bloomberg reports: Here are some of the highlights from the report: Global renewables employment has climbed every year since 2012, with solar photovoltaic becoming the largest segment by total jobs in 2016. Solar photovoltaic employed 3.09 million people, followed by liquid biofuels at 1.7 million. The wind industry had 1.2 million employees, a 7 percent increase from 2015. Employment in renewables, excluding large hydro power, increased 2.8 percent last year to 8.3 million people, with China, Brazil, the U.S., India, Japan and Germany the leading job markets. Asian countries accounted for 62 percent of total jobs in 2016 compared with 50 percent in 2013. Renewables jobs could total 24 million in 2030, as more countries take steps to combat climate change, IRENA said.

Read more of this story at Slashdot.

Researchers Find Dozens of Genes Associated With Measures of Intelligence

Slashdot -

An anonymous reader quotes a report from Ars Technica: We don't know a lot about the biological basis of our mental abilities -- we can't even consistently agree on how best to test them -- but a few things seem clear. One is that performance on a number of standardized tests that purport to measure intelligence tends to correlate with outcomes we'd associate with intelligence, like educational achievement. A second is that this performance seems to have a large genetic component. But initial studies clearly indicated that the effect of any individual gene on intelligence is small. As a result, the first genetics studies found very little, since you needed to look at a large number of people in order to see these small effects. Now, a new study has combined much of the previous work and has turned up 40 new genetic regions associated with intelligence test scores. But again, the effect of any individual gene is pretty minor. The team behind the new work took advantage of open data to pull together information from 13 different studies, which cumulatively looked through the genomes of over 78,000 individuals. While those individuals had been given a variety of tests, the authors focused on measures of general intelligence or fluid intelligence (the two seem to measure similar things). The genomes of these individuals had been scanned for single base pair differences, allowing the authors to look for correlations between regions of the genome and test scores. Two separate analyses were done. The first simply looked at each base difference individually. That turned up 336 individual bases, which clustered into 22 different genes. Half of these had not been associated with intelligence previously. To provide a separate validation of these results, the authors did a similar analysis with educational achievement. They found that nearly all of the sites they identified also correlated with that. In a second analysis, the authors tracked base differences that cluster in a single gene. Since there are more markers for each gene, this tends to be a more sensitive way of looking for effects. And in fact, it produced 47 genes associated with the intelligence test scores. Seventeen of those had been identified in the earlier analysis, which brought the total genes identified to 52, only 12 of which had been previously associated with intelligence test scores.

Read more of this story at Slashdot.

Drupal Bits at Web-Dev: Drupal View with Nodequeue Priority

Drupal Planet -

Sometimes you want a View that follows the internal logic of the filters you set up on the View, but also can have some items hand selected or cultivated to the top of the View. Or perhaps the other way to describe it is a Nodequeue View that is backfilled with some other View based logic  so that you end up with a full display regardless of how many items are actually in the Nodequeue.

To do this requires three adjustments to the View (assuming you have already built the normal View logic based on filters that are separate from Nodequeue.

  1. Make the Nodequeue a relationship to the View.
  2. Add the Nodequeu to the sort criteria.
  3. Restructure the filter settings to make it the Nodequeue logic OR the Filter logic.
Example: Nodequeue View with random Backfill

Let's say you have a 3 item View that gets used to display some promoted items on your home page.  You want the View to be populated by anything in the Nodequeue and then randomly backfilled with any other item(s) that match some filter criteria if the Nodequeue does not contain three items.

0) To start, create your View that has a maximum of 3 items and set the filter(s) to use your backfil critera (a status of published and limited to whatever entities you are using) and a sort of Global: Random to randomly pick from items that meet the filter criteria.

1) Add your Nodequeue as a relationship.

You want to limited to a specific Nodequeue. The relationship should not be required, or you will not have anything to backfill with.

2) Add the Nodequeue as sort criteria to the View.

Since we want the Nodequeue items to come first, and in order we have to set the sort order in front of the rest of the View sort criteria (which in this case is random).

3) Adjust the filter criteria and break it into logical sections.  The first section is the set of filters that must be applied to all items regardless of whether they are in the Nodequeue or not. (the purple region below)

Then you need to create another filter group AND in this group put the items that are either the default logic OR the Nodequeue.  The default logic in this case is that audience field matches some criteria.  The trick is to set the operator within this filter group to OR.

Now when you add, delete or rearrange items in the Nodequeue the VIew will match the order of the Nodequeue and if you don't have enough items in your que, it will backfill from other items that meet your criteria.

 

Caching Issues:  By default, updating a nodequeue will not cause the cache on the View to expire if the View is cached.  If you need the updates to be immediately seen by anonymous users, you can implement a hook_nodequeue_update() to clear the cache.on any changes to that nodequeue.

When AI Botches Your Medical Diagnosis, Who's To Blame?

Slashdot -

Robert Hart has posed an interested question in his report on Quartz: When artificial intelligence botches your medical diagnosis, who's to blame? Do you blame the AI, designer or organization? It's just one of many questions popping up and starting to be seriously pondered by experts as artificial intelligence and automation continue to become more entwined into our daily lives. From the report: The prospect of being diagnosed by an AI might feel foreign and impersonal at first, but what if you were told that a robot physician was more likely to give you a correct diagnosis? Medical error is currently the third leading cause of death in the U.S., and as many as one in six patients in the British NHS receive incorrect diagnoses. With statistics like these, it's unsurprising that researchers at Johns Hopkins University believe diagnostic errors to be "the next frontier for patient safety." Of course, there are downsides. AI raises profound questions regarding medical responsibility. Usually when something goes wrong, it is a fairly straightforward matter to determine blame. A misdiagnosis, for instance, would likely be the responsibility of the presiding physician. A faulty machine or medical device that harms a patient would likely see the manufacturer or operator held to account. What would this mean for an AI?

Read more of this story at Slashdot.

Republicans Want To Leave You Voicemail -- Without Ever Ringing Your Cellphone

Slashdot -

bricko quotes a report from Recode: The GOP's leading campaign and fundraising arm, the Republican National Committee, has quietly thrown its support behind a proposal at the Federal Communications Commission that would pave the way for marketers to auto-dial consumers' cellphones and leave them prerecorded voicemail messages -- all without ever causing their devices to ring. Under current federal law, telemarketers and others, like political groups, aren't allowed to launch robocall campaigns targeting cellphones unless they first obtain a consumer's written consent. But businesses stress that it's a different story when it comes to "ringless voicemail" -- because it technically doesn't qualify as a phone call in the first place. In their eyes, that means they shouldn't need a customer or voter's permission if they want to auto-dial mobile voicemail inboxes in bulk pre-made messages about a political candidate, product or cause. And they want the FCC to rule, once and for all, that they're in the clear. Their argument, however, has drawn immense opposition from consumer advocates.

Read more of this story at Slashdot.

Open19 Launches Open Hardware Project Targeting Edge Computing

Slashdot -

miller60 writes: The Open19 Foundation launched today, positioning its open hardware designs as a platform for edge computing, and an alternative to the Open Compute Project and hyperscale designs. The Open19 designs were created by the data center team at LinkedIn, citing its focus on a 19-inch rack and licensing terms that it said allow participants better control over their intellectual property. Open Compute develops the 21-inch Open Rack but is also supporting several designs for 19-inch racks, including the Project Olympus concept contributed by Microsoft, LinkedIn's parent company. According to Fortune, the Open19 Foundation is a new group established by LinkedIn, Hewlett Packard Enterprise, and General Electric. Its purpose is to make it easier for businesses to buy data center hardware and to encourage companies to build data center hardware more uniformly so that it fits in standardized data racks. The racks themselves are used by businesses to house their computing gear, such as servers and routers. The 19-inch rack is the most commonly used.

Read more of this story at Slashdot.

Google Following Your Offline Credit Card Spending To Tell Advertisers If Their Ads Work

Slashdot -

One of the new tools Google has announced for its advertisers today promises to tie your offline credit card data together with all your online viewing to tell advertisers exactly what's working as they try to target you and your wallet. Consumerist reports: That return, for decades, was hard to measure in all but the most vaguely correlative of ways. Did people buy your product after seeing your TV ad? After seeing your billboard? On a whim after seeing neither? Who knows! But in the age of highly targeted, algorithmic advertising, the landscape is completely different. The apps on your phone know what you looked at and when, and can tie that in to what you see on other devices you're also logged into their services on (like your work computer). Meanwhile, you're leaving tracks out in the physical world -- not only the location history of your phone, but also the trail of payments you leave behind you if you pay with a credit card, debit card, or app (as millions of us do). Google also introduced some offline measurements to its online tool suite back in 2014, when it started using phone location data to try to match store visit location data to digital ad views. But a store doesn't make any money when you simply walk into it; you need to buy something. So Google's tracking that very granularly now, too. "In the coming months, we'll be rolling out store sales measurement at the device and campaign levels. This will allow you to measure in-store revenue in addition to the store visits delivered by your Search and Shopping ads," Google explains to advertisers. That's very literally a collection of spending data matched to the people who spent it, matched in turn to people who saw ads.

Read more of this story at Slashdot.

Uber Plans Millions In Back Pay After Shorting NYC Drivers

Slashdot -

An anonymous reader quotes a report from Bloomberg: Uber Technologies Inc. said it underpaid its New York City drivers by improperly calculating the company's share of passenger fares, and will pay out an average of $900 per driver in restitution, costing tens of millions of dollars. The back pay could run at least $45 million, based on the approximately 50,000 drivers the Independent Drivers Guild says work in New York City. The ride-hailing company has previously misled drivers about how much they could make and miscalculated fares. In this case, Uber was taking its cut of fares based on the pretax sum, instead of after taxes and fees as stated in its terms of service. The issue was also raised in a lawsuit against San Francisco-based Uber filed by the New York Taxi Workers Alliance. In March, Uber acknowledged that it had underestimated drivers' pay in Philadelphia by millions of dollars. "We are committed to paying every driver every penny they are owed -- plus interest -- as quickly as possible," Rachel Holt, Uber's head of U.S. operations, said in a statement. "We are working hard to regain driver trust, and that means being transparent, sticking to our word, and making the Uber experience better from end to end."

Read more of this story at Slashdot.

[$] Containers as kernel objects

LWN Headlines -

The kernel has, over the years, gained comprehensive support for containers; that, in turn, has helped to drive the rapid growth of a number of containerization systems. Interestingly, though, the kernel itself has no concept of what a container is; it just provides a number of facilities that can be used in the creation of containers in user space. David Howells is trying to change that state of affairs with a patch set adding containers as a first-class kernel object, but the idea is proving to be a hard sell in the kernel community.

FCC Won't Punish Stephen Colbert For Controversial Trump Insult

Slashdot -

Earlier this month, the FCC said it would look into complaints made against The Late Show host Stephen Colbert over a homophobic joke he made about President Donald Trump. Well, it turns out the FCC is not going to levy a fine against the comedian for using the word "cock" on late-night network television, reports The Verge. From the report: "Consistent with standard operating procedure, the FCC's Enforcement Bureau has reviewed the complaints and the material that was the subject of these complaints," reads the FCC's statement, according to Variety. "The Bureau has concluded that there was nothing actionable under the FCC's rules." Helping Colbert's case was the fact that the broadcast, time delayed for incidents like these, bleeped out the questionable word and also blurred the host's mouth as he was saying it. The FCC has broad authority to regulate what can and cannot be broadcast based on legal precedent regarding obscenity laws. Yet looser rules apply during the hours of 10PM and 6AM ET, when Colbert's show airs. So it would appear that the ample self-censorship on behalf of CBS saved the program from a guilty verdict in this case.

Read more of this story at Slashdot.

Drupal @ Penn State: Streamlining Polymer one-page apps in Drupal

Drupal Planet -

On the ELMS:LN team, we’ve been working a lot with polymer and webcomponent based development this year. It’s our new workflow for all front-end development and we want Drupal to be the best platform for this type of development. At first, we made little elements and they were good. We stacked them together, and started integrating them into our user interfaces and polyfills made life happy.

DJI Threatens To 'Brick' Its Copters Unless Owners Agree To Share Their Details

Slashdot -

schwit1 quotes a report from The Sun: A top drone manufacturer has warned that customers' expensive gadgets will be crippled if they don't register their details on its website. DJI drones -- which cost between $1,200 and $3,000 -- won't be able to fly to their full potential or beam back footage if their owners don't sign up next week, the company warned. Those who splashed out for the snazzy gadgets will find they are limited to a teensy 50m radius and it won't be flying higher than 30m if they don't play ball. The company said on its website: "DJI will soon introduce a new application activation process for international customers. This new step, to take effect at the end of next week, ensures you will use the correct set of geospatial information and flight functions for your aircraft, as determined by your geographical location and user profile. All existing flight safety limitations, such as geofencing boundaries and altitude limits, remain the same. Even if you have registered when activating your aircraft upon purchase, you will have to log in once when you update the new version of DJI GO or GO 4 App."

Read more of this story at Slashdot.

Pages

Subscribe to Heydon Consulting aggregator