interest

Pinterests Redesigned Feed May Drive More Referral Traffic

Pinterest has updated its chronological feed with a redesign as well as an easier way to visit publishers web pages.

These updates can be found in the Following tab, introduced earlier this year, which only contains pins from accounts that a user has chosen to follow.

By comparison, the main Pinterest feed contains a mix of pins from followed accounts as well as algorithmic recommendations.

complete article




interest

Pinterest is distancing itself from social networks as it goes public

As it prepares to go public under the ticker PINS after filing its S-1 to the Securities Exchange Commission today (March 22), Pinterest said it would rather not be seen as a place like Facebook or Twitter.

The cold shoulder makes sense: Sites that algorithmically serve up content—Facebook, YouTube, Google, Instagram, and Twitter—remain under fire for their inability to moderate the environments on their own platforms.

complete article




interest

Sri Lanka at crossroads : geopolitical challenges and national interests / Asanga Abeyagoonasekera

Abeyagoonasekera, Asanga, author




interest

House of Representatives report concerning the registration and declaration of members' interests during 2018 / Committee of Privileges and Members' Interests

Australia. Parliament. House of Representatives. Standing Committee of Privileges and Members' Interests, author




interest

Biennale Arte 2019: may you live in interesting times: 11.05-24.11 Venezia Giardini/Arsenale

Rotch Library - N6488.I8 V433 2019 A1




interest

International negotiation: a process of relational governance for international common interest / Evangelos Raftopoulos

Dewey Library - JZ6045.R335 2019




interest

U.S. democracy promotion in the Arab world: beyond interests vs. ideals / Mieczysław P. Boduszyński

Dewey Library - JZ1480.B62 2019




interest

World politics: interests, interactions, institutions / Jeffry A. Frieden, David A. Lake, Kenneth A. Schultz

Dewey Library - JZ1242.F748 2019




interest

Bank stress testing [electronic resource] : public interest or regulatory capture? / Thomas Ian Schneider, Philip E. Strahan, Jun Yang

Cambridge, Mass. : National Bureau of Economic Research, 2020




interest

Govt may extend interest equalisation scheme for export sector

"We are ensuring that exports come back on the track. The export data for March is an indicator; the impact of the present crisis could be seen from the export data of March and that for April would also be similar," a Ficci statement said.




interest

India open to mutually benefitting collaborations with interested countries: Goyal

The minister said India gives the most importance to "the fair dealing and the reciprocity" while signing any multilateral agreements. He said it was not there because of which India did not participate in the Regional Comprehensive Economic Partnership (RCEP).




interest

No regrets, my action was in public interest: IPS officer

DM granted bail after cops tell court he gave all the required info in one day




interest

Orissa bans Bt Brinjal citing small farmers'' interests and biosafety concerns

Despite the Genetic Engineering Approval Committee giving its nod to the commercial cultivation of Bt Brinjal last week....




interest

9.5% EPF interest rate may get OK'd

Govt may concede to the EPFO proposal for an extra 1% interest rate hike on retirement savings.




interest

Seeds of new interest

Guar in demand in international gas industry, Gujarat farmers go for the easy, profitable option.




interest

Why Ayushmann is not interested in Rs 200 crores

'I can do slice-of-life kind of films anytime; But playing a cop is different. It's difficult to maintain that intensity on screen. That's where the real acting comes in place.'




interest

Absurd Creatures | This Fish Makes Hawaii's Beaches in an ... Interesting Way

Love white sand beaches? Thank the bizarre parrotfish which eats coral and poops out sand. Oh, it also sleeps in a pile of snot.




interest

Rights, not interests [electronic resource] : resolving value clashes under the National Labor Relations Act / James A. Gross

Gross, James A., 1933- author




interest

Treasury Laws Amendment (Putting Members' Interests First) Bill 2019 [Provisions] / The Senate, Economics Legislation Committee

Australia. Parliament. Senate. Economics Legislation Committee, author




interest

Social media interest is spiking worldwide — except for LinkedIn

As the coronavirus pandemic sweeps the world, more and more governments are imposing lockdowns on their citizens. As a result, reliance on digital tools has increased significantly to maintain social and professional relationships. Notably, usage of video conferencing app Zoom has spiked, and not just for professional purposes.

But what about the social media tools we were already using to connect with people on a daily basis? How has their popularity changed so far in these trying times?

complete article




interest

Report: Texans interested in Larry Warford

Larry Warford isn't going to be out of work long. Only as long as it takes the Pro Bowl offensive guard to make up his mind on his next home. The Texans are interested in Warford, John McClain of the Houston Chronicle reports only hours after the Saints released the lineman. That's not a surprise [more]




interest

Texans' Deshaun Watson tweets about Bears' lack of interest during 2017 draft

Everything's totally fine!




interest

Ajay Srinivasan: Are negative interest rates the new normal?

Central banks can set rates low enough to stimulate an economy in recession, and raise them once a recovery gets underway




interest

[ASAP] Prebiotic Astrochemistry and the Formation of Molecules of Astrobiological Interest in Interstellar Clouds and Protostellar Disks

Chemical Reviews
DOI: 10.1021/acs.chemrev.9b00560




interest

SIGGROUP bulletin [electronic journal] : a publication of the Special Interest Group on Supporting Group Work.

New York, NY : The Group, [1997-2005]




interest

ACM SIGPLAN notices [electronic journal] : a monthly publication of the Special Interest Group on Programming Languages.

New York, NY : ACM Press, [1991]-




interest

Monetary Policy and Financial Stability in a World of Low Interest Rates : proceedings of a conference held in Sydney on 16-17 March 2017 / editors: Jonathan Hambur, John Simon

Monetary Policy and Financial Stability in a World of Low Interest Rates Conference (2017 : Sydney, N.S.W.)




interest

Shifting interests [electronic resource] : the medical discourse on abortion in English Canada, 1850-1969 / by Tracy Penny Light

Waterloo, Ont. : University of Waterloo, 2003




interest

The first copper(II) complex with 1,10-phenanthroline and salubrinal with interesting biochemical properties

Metallomics, 2020, Advance Article
DOI: 10.1039/D0MT00006J, Paper
Sebastiano Masuri, Enzo Cadoni, Maria Grazia Cabiddu, Francesco Isaia, Maria Giovanna Demuru, Lukáš Moráň, David Buček, Petr Vaňhara, Josef Havel, Tiziana Pivetta
The novel complex Cu(phen)2(salubrinal)(ClO4)2 shows high free radical scavenging activity and good cytotoxic activity and induces cell death through ER-stress.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




interest

How future elites view self-interest and equality and a news roundup

Daniel Markovits discusses the preferences for fairness and equiality among potential future US leaders and David Grimm talks about finding fluorine's origins, persistant lone wolves, and the domestiction of the chicken. Hosted by Sarah Crespi. [Image credit: Philip Pikart/CC BY-SA 4.0]




interest

Interesting fact about Ranveer's film '83'

Ranveer Singh and Deepika Padukone's sports drama 83 which is directed by Kabir Khan revolves around the true story of India's incredible cricket World Cup victory in 1983.




interest

2nd ODI: Interesting stats from the humdinger in Pallekele

Statistical highlights of the second ODI between India and Sri Lanka in Pallekele.




interest

Five Interesting Ways to Use Array.reduce() (And One Boring Way)

Chris Ferdinandi turns the heat down low and lets the sauce reduce while we take a look at how to add spice to our source with a sprinkling of Array.reduce(). Just a little ingenuity with the humblest of functions.


Of all the modern array methods, the one I had the hardest time wrapping my head around was Array.reduce().

On the surface, it seems like a simple, boring method that doesn’t do much. But below its humble exterior, Array.reduce() is actually a powerful, flexible addition to your developer toolkit.

Today, we’re going to look at some cool things you can do with Array.reduce().

How Array.reduce() works

Most of the modern array methods return a new array. The Array.reduce() method is a bit more flexible. It can return anything. Its purpose is to take an array and condense its content into a single value.

That value can be a number, a string, or even an object or new array. That’s the part that’s always tripped me up – I didn’t realize just how flexible it is!

The syntax

The Array.reduce() accepts two arguments: a callback method to run against each item in the array, and a starting value.

The callback also accepts two arguments: the accumulator, which is the current combined value, and the current item in the loop. Whatever you return is used as the accumulator for the next item in the loop. On the very first loop, that starting value is used instead.

var myNewArray = [].reduce(function (accumulator, current) {
  return accumulator;
}, starting);

Let’s look at some examples to make this all tangible.

1. Adding numbers together

Let’s say you had an array of numbers that you wanted to add together. Using Array.forEach(), you might do something like this:

var total = 0;

[1, 2, 3].forEach(function (num) {
  total += num;
});

This is the cliche example for using Array.reduce(). I find the word accumulator confusing, so in this example, I’m calling it sum, because that’s what it is.

var total = [1, 2, 3].reduce(function (sum, current) {
  return sum + current;
}, 0);

Here, we pass in 0 as our starting value.

In the callback, we add the current value to the sum, which has our starting value of 0 on the first loop, then 1 (the starting value of 0 plus the item value of 1), then 3 (the sum value of 1 plus the item value of 2), and so on.

Here’s a demo.

2. Combining multiple array methods into Array.map() and Array.filter() into a single step

Imagine you had an array of wizards at Hogwarts.

var wizards = [
  {
    name: 'Harry Potter',
    house: 'Gryfindor'
  },
  {
    name: 'Cedric Diggory',
    house: 'Hufflepuff'
  },
  {
    name: 'Tonks',
    house: 'Hufflepuff'
  },
  {
    name: 'Ronald Weasley',
    house: 'Gryfindor'
  },
  {
    name: 'Hermione Granger',
    house: 'Gryfindor'
  }
];

You want to create a new array that contains just the names of wizards who are in Hufflepuff. One way you could do that is by using the Array.filter() method to get back just wizards whose house property is Hufflepuff. Then, you’d use the Array.map() method to create a new array containing just the name property for the remaining wizards.

// Get the names of the wizards in Hufflepuff
var hufflepuff = wizards.filter(function (wizard) {
  return wizard.house === 'Hufflepuff';
}).map(function (wizard) {
  return wizard.name;
});

With the Array.reduce() method, we can get the same array in a single pass, improving our performance. You pass in an empty array ([]) as the starting value. On each pass, you check to see if the wizard.house is Hufflepuff. If it is, you push it to the newArr (our accumulator in this example). If not, you do nothing.

Either way, you return the newArr to become the accumulator on the next pass.

// Get the names of the wizards in Hufflepuff
var hufflepuff = wizards.reduce(function (newArr, wizard) {
  if (wizard.house === 'Hufflepuff') {
    newArr.push(wizard.name);
  }
  return newArr;
}, []);

Here’s another demo.

3. Creating markup from an array

What if, instead of creating an array of names, we wanted to create an unordered list of wizards in Hufflepuff? Instead of passing an empty array into Array.reduce() as our starting value, we’ll pass in an empty string ('') and call it html.

If the wizard.house equals Hufflepuff, we’ll concatenate our html string with the wizard.name wrapped in an opening and closing list item (li). Then, we’ll return the html to become the accumulator on the next loop.

// Create a list of wizards in Hufflepuff
var hufflepuffList = wizards.reduce(function (html, wizard) {
  if (wizard.house === 'Hufflepuff') {
    html += '<li>' + wizard.name + '</li>';
  }
  return html;
}, '');

Add an opening and closing unordered list element before and after Array.reduce(), and you’re ready to inject your markup string into the DOM.

// Create a list of wizards in Hufflepuff
var hufflepuffList = '<ul>' + wizards.reduce(function (html, wizard) {
  if (wizard.house === 'Hufflepuff') {
    html += '<li>' + wizard.name + '</li>';
  }
  return html;
}, '') + '</ul>';

See it in action here.

4. Grouping similar items in an array together

The lodash library has a groupBy() method takes a collection of items as an array and groups them together into an object based on some criteria.

Let’s say you want an array of numbers.

If you wanted to group all of the items in numbers together based on their integer value, you would do this with lodash.

var numbers = [6.1, 4.2, 6.3];

// returns {'4': [4.2], '6': [6.1, 6.3]}
_.groupBy(numbers, Math.floor);

If you had an array of words, and you wanted to group the items in words by their length, you would do this.

var words = ['one', 'two', 'three'];

// returns {'3': ['one', 'two'], '5': ['three']}
_.groupBy(words, 'length');

Creating a groupBy() function with Array.reduce()

You can recreate that same functionality using the Array.reduce() method.

We’ll create a helper function, groupBy(), that accepts the array and criteria to sort by as arguments. Inside groupBy(), we’ll run Array.reduce() on our array, passing in an empty object ({}) as our starting point, and return the result.

var groupBy = function (arr, criteria) {
  return arr.reduce(function (obj, item) {
    // Some code will go here...
  }, {});
};

Inside the Array.reduce() callback function, we’ll check to see if the criteria is a function, or a property of the item. Then we’ll get its value from the current item.

If there’s no property in the obj with that value yet, we’ll create it and assign an empty array as its value. Finally, we’ll push the item to that key, and return the object as the accumulator for the next loop.

var groupBy = function (arr, criteria) {
  return arr.reduce(function (obj, item) {

    // Check if the criteria is a function to run on the item or a property of it
    var key = typeof criteria === 'function' ? criteria(item) : item[criteria];

    // If the key doesn't exist yet, create it
    if (!obj.hasOwnProperty(key)) {
      obj[key] = [];
    }

    // Push the value to the object
    obj[key].push(item);

    // Return the object to the next item in the loop
    return obj;

  }, {});
};

Here’s a demo of the completed helper function.

Special thanks to Tom Bremer for helping me make some improvements to this one. You can find this helper function and more like it on the Vanilla JS Toolkit.

5. Combining data from two sources into an array

Remember our array of wizards?

var wizards = [
  {
    name: 'Harry Potter',
    house: 'Gryfindor'
  },
  {
    name: 'Cedric Diggory',
    house: 'Hufflepuff'
  },
  {
    name: 'Tonks',
    house: 'Hufflepuff'
  },
  {
    name: 'Ronald Weasley',
    house: 'Gryfindor'
  },
  {
    name: 'Hermione Granger',
    house: 'Gryfindor'
  }
];

What if you had another data set, an object of house points each wizard has earned.

var points = {
  HarryPotter: 500,
  CedricDiggory: 750,
  RonaldWeasley: 100,
  HermioneGranger: 1270
};

Imagine you wanted to combine both sets of data into a single array, with the number of points added to each wizard’s data in the wizards array. How would you do it?

The Array.reduce() method is perfect for this!

var wizardsWithPoints = wizards.reduce(function (arr, wizard) {

  // Get the key for the points object by removing spaces from the wizard's name
  var key = wizard.name.replace(' ', '');

  // If the wizard has points, add them
  // Otherwise, set them to 0
  if (points[key]) {
    wizard.points = points[key];
  } else {
    wizard.points = 0;
  }

  // Push the wizard object to the new array
  arr.push(wizard);

  // Return the array
  return arr;

}, []);

Here’s a demo combining data from two sources into an array.

6. Combining data from two sources into an object

What if you instead wanted to combine the two data sources into an object, where each wizard’s name was the key, and their house and points were properties? Again, the Array.reduce() method is perfect for this.

var wizardsAsAnObject = wizards.reduce(function (obj, wizard) {

  // Get the key for the points object by removing spaces from the wizard's name
  var key = wizard.name.replace(' ', '');

  // If the wizard has points, add them
  // Otherwise, set them to 0
  if (points[key]) {
    wizard.points = points[key];
  } else {
    wizard.points = 0;
  }

  // Remove the name property
  delete wizard.name;

  // Add wizard data to the new object
  obj[key] = wizard;

  // Return the array
  return obj;

}, {});

Here’s a demo combining two data sets into an object.

Should you use Array.reduce() more?

The Array.reduce() method has gone from being something I thought was pointless to my favorite JavaScript method. So, should you use it? And when?

The Array.reduce() method has fantastic browser support. It works in all modern browsers, and IE9 and above. It’s been supported in mobile browsers for a long time, too. If you need to go back even further than that, you can add a polyfill to push support back to IE6.

The biggest complaint you can make about Array.reduce() is that it’s confusing for people who have never encountered it before. Combining Array.filter() with Array.map() is slower to run and involves extra steps, but it’s easier to read. It’s obvious from the names of the methods what they’re supposed to be doing.

That said, there are times where Array.reduce() makes things that would be complicated more simple rather than more complicated. The groupBy() helper function is a good example.

Ultimately, this is another tool to add to your toolkit. A tool that, if used right, can give you super powers.


About the author

Chris Ferdinandi helps people learn vanilla JavaScript. He believes there’s a simpler, more resilient way to make things for the web.

Chris is the author of the Vanilla JS Pocket Guide series, creator of the Vanilla JS Academy training program, and host of the Vanilla JS Podcast. His developer tips newsletter is read by thousands of developers each weekday.

He’s taught developers at organizations like Chobani and the Boston Globe, and his JavaScript plugins have been used used by Apple and Harvard Business School. Chris Coyier, the founder of CSS-Tricks and CodePen, has described his writing as “infinitely quote-worthy.”

Chris loves pirates, puppies, and Pixar movies, and lives near horse farms in rural Massachusetts. He runs Go Make Things with Bailey Puppy, a lab-mix from Tennessee.

More articles by Chris




interest

New Zealand Veterinary Association (NZVA) Special Interest Branch Proceedings [electronic resource].

Publisher New Zealand : New Zealand Veterinary Association
Location World Wide Web
Call No. SF605




interest

140 JSJ Using Art to Get and Keep People Interested in Programming with Jenn Schiffer

The panelists talk to Jenn Schiffer about using art to get and keep people interested in programming.





interest

Indian origin UK doctors evince interest in investing in Bihar



  • DO NOT USE Indians Abroad
  • World

interest

Interesting conversation topics for friends

Interesting conversation topics for friends




interest

Tamil Nadu CM writes PM Modi, says Electricity Amendment Bill is against interest of states

Tamil Nadu CM writes PM Modi, says Electricity Amendment Bill is against interest of states




interest

Substituted Interests and Best Judgments: An Integrated Model of Surrogate Decision Making

Interview with Daniel P. Sulmasy, MD, PhD, author of Substituted Interests and Best Judgments: An Integrated Model of Surrogate Decision Making




interest

Meet the members of the new interest rate-setting committee

Each will have one vote and Patel will hold an additional tie-breaker, guided by a newly established inflation target




interest

[ASAP] Green Chemistry Articles of Interest to the Pharmaceutical Industry

Organic Process Research & Development
DOI: 10.1021/acs.oprd.0c00154




interest

[ASAP] Some Items of Interest to Process R&D Chemists and Engineers

Organic Process Research & Development
DOI: 10.1021/acs.oprd.0c00197




interest

Interesting 'sermons in stones' form Rollins' walk




interest

Sugar mill or mission ruins, it's interesting




interest

General Grant didn't build that interesting house




interest

Deeply Interested Spectators




interest

Two essays on the conflict of interests within the financial services industry-financial industry consolidation




interest

Riding the winds of their interest




interest

Selected students', parents', and graduate student tutors' experiences and perceptions in a community of interest summer literacy camp