Mindfulness : What is it?
"The most significant insight I gained from the class is that mindfulness has the power to impact happiness."
Looking for birth and parenting education that prepares you for more than just the day you give birth?
Mindfulness skills are for life.
Having a baby is often one of the most transformative experiences in a person's life. No matter how they go, pregnancy and birth are intense both physically and emotionally, preparing us for the journey of parenting.
The practice of mindfulness - that is: the awareness that comes from learning to pay attention, in the present moment, on purpose and non-judgmentally, can help support us during important life transitions, and can serve us as we navigate our day-to-day, moment-to-moment, life as parents, and as people. When our attention is focused on the present moment, we are, by default, less focused on rehashing the past, or fantasizing about the future. People who practice mindfulness find they have a decrease in stress level, higher coping capabilities, and less emotional reactivity. With mindfulness practice, people often find they experience more space, ease, and equanimity in their lives. This is not because they are avoiding the reality of life, though. Quite the contrary. Mindfulness practice is about being with whatever arises in life in the moment. Often, what arises is challenging, frustrating, upsetting, scary, complex, stressful. But the practice of moving in towards one's experience, rather than away from it in the mind/body, allows us to more fully experience whatever the moment brings. This being more fully in our own lives, is the practice. And it seems the benefits of being more fully in our experience, is what allows space for greater presence, ease, and peace. Riding the waves of life with less tension, less fear.
Perhaps, lately, you have been seeing the word "Mindfulness" all over the media, or have met people practicing, or yourself have a mindfulness meditation practice. Mindfulness-based programs are currently found in hospitals, clinics, and schools (from elementary to graduate) all over the world. Many examples of the therapeutic impact of Mindfulness-Based Interventions (MBIs) are found in peer-reviewed medical, mental health and educational journals.
Mindfulness Based Childbirth & Parenting (MBCP) is one of those MBIs, and was founded by midwife and mindfulness teacher Nancy Bardacke in 1998. MBCP is an evidence-based adaptation of the well-researched Mindfulness-Based Stress Reduction program (MBSR) created by Jon Kabat-Zinn, Ph.D. in 1979 at the University of Massachusetts Medical Center.
One of our favorite introductions to what mindfulness is, and how it can impact your life, is this episode of 60 Minutes with Jon Kabat Zinn and Anderson Cooper. In addition, the Well Section of the New York Times has an excellent introduction to mindfulness, as well as an article specifically on Nancy Bardacke and MBCP on the benefits of a mindful pregnancy. The New York Times also has a weekly column on mindfulness practice including this one on how to be mindful while holding a baby.
More information about the history of MBCP, the current research, and Nancy Bardacke can be found at www.mindfulbirthing.org. You can also check out Nancy's award-winning book, Mindful Birthing: Training the Mind, Body, and Heart for Childbirth and Beyond, or watch this video of Nancy talking about MBCP in 2014.
The thing is, reading about mindfulness is one thing, but developing a mindfulness practice is only where one can reap its benefits. The foundation of our childbirth class is, thus, mindfulness meditation, which we believe gives us invaluable tools to navigate our lives during birth and parenting.


text:
Ted Rupe
Ted Rupe 2003
Ted Rupe (2003)
About Ted Rupe
Ted Rupe won the State Cross Country Meet and led his team to the State Championship Title in 1972. He qualified for the U.S. International Cross Country Team three times. Ted has won titles in many road races including the Cleveland Revco Marathon. As a coach Ted Rupe has coached at Maplewood High School for fifteen years, qualifying his cross country teams to the state meet thirteen times. His Maplewood teams captured the State Cross Country Meet Titles in 1997 and 2002. They were also Co-Champions in 2000 Ted earned the Fred Dafler Career Coach of the Year. Ted Rupe is a well respected cross country meet manager, road race organizer, and cross country camp director.

redpajama_set_name: RedPajamaCommonCrawl


To claim this profile, please confirm you are Delaney Nolan.
To follow this profile, please let us know your relationship to Delaney Nolan.
Varsity softball @ Bishop McNamara.
RESULTLoss Varsity softball vs. Streamwood.
The St. Edward varsity softball team lost Saturday's neutral tournament game against Streamwood (IL) by a score of 24-0.
RESULTLoss Varsity softball @ Rosary.
The St. Edward varsity softball team lost Tuesday's away conference game against Rosary (Aurora, IL) by a score of 6-3.
RESULTWin Varsity softball vs. Latin.
The St. Edward varsity softball team won Saturday's neutral tournament game against Latin (Chicago, IL) by a score of 17-2.
RESULTLoss Varsity softball vs. DePaul College Prep.
The St. Edward varsity softball team lost Saturday's neutral tournament game against DePaul College Prep (Chicago, IL) by a score of 20-5.
The St. Edward varsity softball team lost Saturday's neutral tournament game against Farmington (IL) by a score of 22-1.
Delaney's softball stats have been updated for the loss @ St. Francis.
RESULTLoss Varsity softball @ St. Francis.
The St. Edward varsity softball team lost Thursday's away conference game against St. Francis (Wheaton, IL) by a score of 16-1.
Delaney's softball stats have been updated for the loss vs. Guerin.
RESULTLoss Varsity softball vs. Guerin.
The St. Edward varsity softball team lost Monday's home conference game against Guerin (River Grove, IL) by a score of 17-1.
Delaney's softball stats have been updated for the loss @ IC Catholic Prep.
RESULTLoss Varsity softball @ IC Catholic Prep.
The St. Edward varsity softball team lost Saturday's away non-conference game against IC Catholic Prep (Elmhurst, IL) by a score of 14-0.
The St. Edward varsity softball team lost Saturday's away non-conference game against IC Catholic Prep (Elmhurst, IL) by a score of 9-0.
Varsity softball @ Elmwood Park.
Delaney's softball stats have been updated for the loss @ Woodstock.
RESULTLoss Varsity softball @ Woodstock.
The St. Edward varsity softball team lost Wednesday's away non-conference game against Woodstock (IL) by a score of 11-1.
Delaney has been added to the St. Edward softball roster.


text:
Home Health Asian and African people are more likely to develop Type 2 diabetes...
Asian and African people are more likely to develop Type 2 diabetes than Europeans
People of South Asian, African or African Caribbean descent living in UK are significantly more likely to develop Type 2 diabetes than their European counterparts, British researchers have warned.
Half had developed the disease by the age of 80 in a study of 4,200 people living in London – approximately twice the figure for Europeans.
The researchers said the rates were "astonishingly high".
The findings were published in the journal Diabetes Care.
People of South Asian, African or African Caribbean descent living in UK are significantly more likely to develop Type 2 diabetes than their European counterparts
Losing control of blood sugar levels increases the risk of heart disease, stroke, kidney failure, blindness and amputations. Type 2 diabetes is often linked to lifestyle and diet.
Some ethnic groups are already known to have a higher risk of Type 2 diabetes. However, one of the researchers at Imperial College London, Dr. Therese Tillin, said it may be down to them simply getting the disease earlier in their lives and the figures would even out over time.
But the study showed: "The rates don't slow down as you get older. The astonishing difference continues," Dr. Therese Tillin said.
She warned this could be a sign of things to come with the potential for soaring levels of diabetes around the world as more people lived in cities and enjoyed a calorie-rich diet.
The scientists involved said that fat, particularly around the waist, could explain some, but not all of the difference, between the ethnicities.
Fellow researcher, Dr. Nish Chaturvedi, said genetics could not explain the difference either as there were similar levels of "risky genes" across all groups.
She said: "There is something else that puts them at higher risk and we're not sure what that is."
Dr. Mike Knapton, from the British Heart Foundation and a GP, said: "Awareness is really low considering the magnitude of the problem, even I'm surprised by the figures."
He also warned that failing to deal with diabetes would have huge financial consequences for the NHS.
The director of research at Diabetes UK, Dr. Iain Frame, said it was "even more important" for people at high risk to manage their weight.
He said: "People from these communities should be screened earlier than the general population – from the age of 25 rather than 40.
"People need to know their risk of developing Type 2 diabetes and get diagnosed as early as possible. We know that people from South Asian backgrounds can often be living with the condition for around 10 years before they are diagnosed, which increases the risk of complications such as heart disease, stroke, kidney failure, blindness and amputation."
asian descent
blood sugar levels
caribbean descent
Antarctic bivalves switch sex, scientists discover
Shakil Afridi, Osama Bin Laden raid doctor, speaks out for the first time since his arrest
Justin Bieber admits he is still devastated about his breakup with Selena Gomez
Justin Bieber tweeted a message along with his newly released song Heartbreaker, admitting he's still going through a hard time …Read More »
Chanel Taper has the longest tongue. Guinness World Records 2012.
The Dog With The Longest Ears On The Planet. One Ton Crocodile Captured In Philippines. Largest Crocodile In The …Read More »
Kanye West jumps into lake during Armenia concert
Kanye West was mobbed by dozens of fans after jumping into Swan Lake during a concert in Armenia. Kim Kardashian's …Read More »
Whitney Houston and Bobbi Kristina shared the same drug dealer, claims a shocking report
Whitney Houston and her daughter Bobbi Kristina shared the same drug dealer, claims a new shocking report. According to The …Read More »
Justin Bieber Cancels All Remaining Purpose Tour Dates
Justin Bieber has decided to cancel the rest of his Purpose World Tour because of "unforeseen circumstances", his publicist has …Read More »
Bill Cosby Retrial: Comedian Found Guilty of Assault
Bill Cosby has been found guilty of three counts of assault, each of which carries a potential 10 years in …Read More »
Kris Humphries fails to show up at divorce hearing in Los Angeles
Kris Humphries failed to show up today for a pretrial divorce hearing in Los Angeles, according to TMZ. The court date in …Read More »
Kris Jenner lifts up dress and shows her legs during photoshoot
Kris Jenner was snapped having her legs touched up with what appeared to be spray tan while on a photoshoot …Read More »
Kris Jenner presents cooking book and talks Bruce Jenner's dating life
In a recent interview, Kris Jenner said she just wants her soon-to-be ex-husband Bruce Jenner to be happy, regardless of …Read More »
Quvenzhané Wallis: Youngest ever Oscar nominee acts up at the 85th Academy Awards Nominations Luncheon
Quvenzhané Wallis is the youngest person in history to be nominated for a Best Actress Oscar, and at just 9 …Read More »


text:
Q: How often does Kafka check to cleanup the segment files? By default Kafka retains the logs till 7 days or till a particular size (if configured).
But how often does Kafka check if a segment is more than 7 days old?
Is it a daily check? Or is it configurable? If it's configurable - which property controls it?

A: You should be able to configure it using log.retention.check.interval.ms. You can find more details here or in the Kafka docs.

redpajama_set_name: RedPajamaStackExchange


text:
package com.netflix.zuul.ribbon;

import com.netflix.client.ClientException;
import com.netflix.client.ClientFactory;
import com.netflix.client.config.DefaultClientConfigImpl;
import com.netflix.config.ConfigurationManager;
import com.netflix.config.DynamicPropertyFactory;
import com.netflix.config.DynamicStringProperty;
import com.netflix.governator.annotations.WarmUp;
import com.netflix.zuul.ZuulApplicationInfo;
import com.netflix.zuul.dependency.ribbon.RibbonConfig;
import com.netflix.zuul.exception.ZuulException;
import com.netflix.zuul.origins.Origin;
import com.netflix.zuul.origins.OriginManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.inject.Singleton;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import static com.netflix.zuul.constants.ZuulConstants.*;

/**
 * User: Mike Smith
 * Date: 5/12/15
 * Time: 11:24 PM
 */
@Singleton
public class RibbonOriginManager implements OriginManager
{
    private static final Logger LOG = LoggerFactory.getLogger(RibbonOriginManager.class);

    private static DynamicStringProperty RIBBON_NAMESPACE = DynamicPropertyFactory.getInstance().getStringProperty(ZUUL_RIBBON_NAMESPACE, "ribbon");

    private final Map<String, Origin> origins = new ConcurrentHashMap<>();

    @WarmUp
    public void initialize()
    {
        try {
            RibbonConfig.setupAppInfo();

            String stack = ConfigurationManager.getDeploymentContext().getDeploymentStack();

            // Setup the default origin.
            String defaultClientName;
            if (stack != null && !stack.trim().isEmpty() && RibbonConfig.isAutodetectingBackendVips()) {
                defaultClientName = RibbonConfig.setupDefaultRibbonConfig();

            } else {
                DynamicStringProperty DEFAULT_CLIENT = DynamicPropertyFactory.getInstance().getStringProperty(ZUUL_NIWS_DEFAULTCLIENT, null);
                defaultClientName = DEFAULT_CLIENT.get();
                if (defaultClientName == null) {
                    defaultClientName = stack;
                }
                ZuulApplicationInfo.setApplicationName(defaultClientName);
            }
            origins.put(defaultClientName, new RibbonOrigin(defaultClientName));

            // Setup the other configured origins.
            String clientPropertyList = DynamicPropertyFactory.getInstance().getStringProperty(ZUUL_NIWS_CLIENTLIST, "").get();
            String[] aClientList = clientPropertyList.split("\\|");
            for (String client : aClientList) {
                initOrigin(RIBBON_NAMESPACE.get(), client);
            }
        }
        catch (ClientException e) {
            throw new ZuulException(e, "Error initializing Ribbon clients.");
        }
    }

    private void initOrigin(String namespace, String name) throws ClientException
    {
        DefaultClientConfigImpl clientConfig = DefaultClientConfigImpl.getClientConfigWithDefaultValues(name, namespace);
        ClientFactory.registerClientFromProperties(name, clientConfig);
        origins.put(name, new RibbonOrigin(name));
    }

    @Override
    public Origin getOrigin(String name)
    {
        return origins.get(name);
    }

    @Override
    public Origin createOrigin(String name, String vip)
    {
        try {
            initOrigin(RIBBON_NAMESPACE.get(), name);
        }
        catch (ClientException e) {
            LOG.error("Error initializing Ribbon client! name={}", name, e);
        }
        return getOrigin(name);
    }
}

redpajama_set_name: RedPajamaGithub


The Asheville location will begin seeing physical therapy patients July 1, 2013. Equipment is being delivered and things are looking great inside and out. The location is 226 Charlotte Hwy (74-A) and sits right on main road in the Reynolds Community. The clinic is just 1.8 miles from I-40 / 240 and 1.3 miles from the Blue Ridge Parkway. Stop by and see us July 1st.


text:
High School Cycling continues to explode! Adds 4 more states
October 1st, 2019 12:00am
NICA Expands to 31 Leagues Welcoming Kansas, Kentucky, Nebraska, and Ohio
Four New NICA Leagues bring Youth Mountain Biking to the Midwest
These are my favorite types of press releases. Everytime I see a NICA email come in I am impressed and psyched that mountain biking is truly alive and well and that kids will find the joy that two wheels offer.
A sport that has no gender bounds, body types or club teams trying to suck the money out of the athletes families. Sure you need a bike, but never in my history of sport have I seen more giving people than the bike community. If you want to ride, the community will find a way for you to ride - all you have to do is ask for help. But I am digressing.
Here is the official announcement that 4 more states have joined the movement bringing the total to an impressive 31 States nation wide.
If you want to get involved with this movement you can find Emily's number and email below or if you want to make a DONATION to any of the programs you can do that too at the links near the bottom of the page. What a great legacy you could leave behind.
NOW LETS ROLL!
Contact: Emily McDonald | [email protected] | 510.524.5464
BERKELEY, Calif. The National Interscholastic Cycling Association (NICA) is excited to announce Kansas, Kentucky, Nebraska, and Ohio as the four newest states to join its network of interscholastic cycling leagues. The addition of these four leagues brings the total number of NICA Leagues nationwide to 31.
"We are thrilled to welcome Kansas, Kentucky, Nebraska, and Ohio to the NICA community!" said Steve Matous, NICA President. These new leagues bring with them extensive youth development leadership, experience and cycling talent that will enable them to build strong and successful NICA programs in their states. Geographically, the addition of these states brings a strong NICA presence to the midwest. NICA's team is ready and excited to train and support these new leagues as they prepare for their inaugural seasons. We look forward to seeing new communities in these regions establish NICA teams. With the addition of Kansas, Kentucky, Nebraska and Ohio, NICA now has the capacity and infrastructure to serve nearly 80% of our country's population, which puts us well on our way towards fulfilling our mission of providing every youth the opportunity to build strong mind, body, and character through interscholastic cycling."
Nebraska is scheduled to begin NICA race programs in Fall 2020, with Kansas scheduled for Spring 2021 and Kentucky and Ohio for Fall 2021.
Nebraska student-athlete Maizy Seng of Millard West club team. Photo Credit: Joseph Brinkman
Nebraska League Director, Ryan Feagan, said "I am honored to bring an already energized cycling community into the next phase of organization. Our NICA league will provide more opportunities for young cyclists to grow not just competitively, but also through NICA's Teen Trail Corps, Adventure, and GRiT, programs that foster inclusivity. I look forward to seeing what 2020 holds for the Nebraska Interscholastic Cycling League!"
Student-athletes from Emporia, Kansas. Photo: Kansas Interscholastic Cycling League
"A lot of people say that they wish they had something like this when they were in high school because of how inclusive and fun cycling is," shares Tina Khan, Kansas League Director. "What we're able to do is bring Kansas youth, of all abilities, experiences, and backgrounds into the same space to create a truly unique experience. I'm honored to be involved with the Kansas League and look forward to building up our youth cycling community across the state!"
Kentucky student-athletes attend and race at a Tennessee NICA League race in Fall 2018. Photo: Kentucky Interscholastic Cycling Association
Steve Beckett, Kentucky League Director, said "I am truly excited and honored to be a part of launching the new Kentucky NICA League across this wonderful Bluegrass state. We are fortunate to bring the community spirit that only mountain biking can provide across our region. Our motto is confidence, fitness, skills and FUN! They are all interconnected in this sport. We are stoked to have the opportunity to provide such a great experience to all Kentuckians - Giddy Up!"
The Athens County Cougarbats, Ohio's first composite NICA team attending a West Virginia NICA League Race. Photo: Ohio Interscholastic Cycling League
"I am beyond excited to partner with NICA and provide the opportunity for high school and middle school students to experience mountain biking," said Jen Malik, Ohio League Director. "Our state is perfect for all types of riders and the community support is phenomenal. NICA's core principles of inclusivity, equality, strong body, strong mind, and strong character make this more than just a race league. I cannot wait to see our trails filled with more kids enjoying mountain biking."
If you would like to contribute to NICA's efforts to launch these new leagues and grow youth cycling in America, please visit one of the following links:
▪ Kansas
▪ Kentucky
▪ Nebraska
▪ Ohio
The NICA National community now includes 31 leagues, with programs in Alabama, Arizona, Arkansas, Colorado, Florida, Georgia, Idaho, Indiana, Kansas, Kentucky, Maryland, Minnesota, Missouri, Montana, Nebraska, Nevada, New Jersey, New York, Northern California, North Carolina, Ohio, Oregon, Pennsylvania, South Carolina, Southern California, Tennessee, Texas, Utah, Virginia, West Virginia and Wisconsin.
US-map-31-leagues
NICA supports more than 10,000 registered volunteer coaches who are working with over 22,000 student-athletes across the United States. NICA has enhanced its coach licensing and training program to provide coaches the tools and curriculum to ensure positive character and social development for youth participants. NICA provides an array of programs that use mountain biking as a tool for youth development. NICA's GRiT Program strives to increase the number of female student-athletes and coaches, NICA Teen Trail Corps enables youth to participate in trail stewardship and advocacy projects and NICA Adventure provides experiential education through mountain biking for youth in a non-competitive environment.
As NICA President Steve Matous states, "NICA is more than just racing; we are creating communities where youth are empowered with mental and physical tools and skills to help them succeed on and off their bikes, now and into the future."
About the National Interscholastic Cycling Association (NICA)
The National Interscholastic Cycling Association (NICA)'s mission is to build strong minds, bodies, character, and communities through cycling.
Founded in 2009 as a 501(c)3 nonprofit, NICA develops interscholastic and community-based cycling programs for student-athletes and coaches across the United States. NICA provides leadership services and governance for local leagues to produce quality mountain bike events. NICA has served more than 40,000 student-athletes since 2009. Currently, NICA has 31 state and regional leagues and over 10,000 registered volunteer coaches who are working annually with over 22,000 student-athletes from nearly 1,000 high schools and middle schools in the USA.
For more information on NICA visit www.nationalmtb.org, follow @nationalMTB on Facebook, Instagram, Twitter and LinkedIn, or call (510) 524-5464.
NICA exists by virtue of generous sponsors, donors, and partners, including our Lead sponsor Trek Bicycles; Platinum level sponsors Shimano, Clif Bar & Company, Specialized Bicycles, and Salsa Cycles; Gold level sponsors Giro, Podiumwear, and GU Energy Labs ; and major sponsors CamelBak, Yakima, Maxxis, REI Co-Op, Quality Bicycle Products, People for Bikes, SRAM, Strike Visuals, DeFeet International, Feedback Sports and Canyon Bicycles. NICA National Foundation partners include The Walton Family Foundation, Rapha Foundation, and Wells Fargo.
Location: News >> High School Cycling continues to explode! Adds 4 more states
Bicycle World General News


Clean layout, tight typography and lovely imagery for Mary Gaudin's portfolio.
Snappy rollovers create a nice feeling of immediacy on the portfolio site of photographer Einar Aslaksen.
Titles crossing the Z line, flowing layout and horizontal slideshow presentation for Marlen Keller Photography.


text:
Q: Mini-Max Sum In JavaScript - How to Get the Minimum Sum And Maximum Sum of 4 Elements in a 5-Element Array Link to HackerRank Challenge
My idea is to loop through the array and sum all elements in the array except for one element each time, then find the smallest sum and the largest sum.
I know that .splice() can remove any element from an array. But currently, with my code, it's only removing one element from the array once. I.e. this is only giving me one chunk:
function miniMaxSum(arr) {

  let smallestSum = 0;
  let largestSum = 0;

  for (let i = 0; i < arr.length; i++) {
    let chunk = arr.splice(1);
    console.log(chunk);
    if (chunk > largestSum) largestSum = chunk;
    if (chunk < smallestSum) smallestSum = chunk;
  }
  return (smallestSum, largestSum);
}

I need to remove one element from the array every time while looping, then get the max and min sums from that array.
So for given array of [1, 2, 3, 4, 5]
I should get the following possible "chunks":
[2, 3, 4, 5], [1, 3, 4, 5], [1, 2, 4, 5], [1, 2, 3, 5], [1, 2, 3, 4].
The chunk with the highest sum is [2, 3, 4, 5]
And the chunk with the smallest sum is [1, 2, 3, 4].
How can I adjust my code to get all of the possible 4-digit arrays within the given array so that I can compare their sums, still using a for-loop? Or if not with a for-loop, what else would you suggest?
EDIT: Now using Math.min() and Math.max() to get the smallest and largest elements in the array. Then using .filter() to remove those elements in order to create new arrays. Then getting the sums of those arrays.
function miniMaxSum(arr) {

  let smallest = Math.min(...arr);
  let largest = Math.max(...arr);

  let smallestArray = arr.filter(element => element !== largest);
  let largestArray = arr.filter(element => element !== smallest);

  let sumOfSmallestArray = 0;
  let sumOfLargestArray = 0;

  for (let i = 0; i < smallestArray.length; i++) {
    sumOfSmallestArray += smallestArray[i];
  }

  for (let i = 0; i < largestArray.length; i++) {
    sumOfLargestArray += largestArray[i];
  }

  return ([sumOfSmallestArray, sumOfLargestArray]).toString();
}

But even though it works in my console, it doesn't work in HackerRank.

A: The key is to sort that array first, then the minimum will be the first element and the maximum will be the last, hence if you want to get the minimum set, it will be the array without the highest value (last element) and if you want to get the maximum set it will be the array without the lowest value (first element).

let data = [1, 3, 2, 4, 5];

// sort first
data = data.sort((a, b) => a - b);

// to get the sets only
let maxSet = data.slice(1);
let minSet = data.slice(0, -1);

console.log(minSet, maxSet);

// to get just the max/min value
const sum = data.reduce((a, total) => a + total, 0);
console.log(sum - data[data.length - 1], sum - data[0]);

A: You could get the min and max values of the array and filter the array by taking not min or max value once.

var data = [1, 2, 3, 4, 5],
    min = Math.min(...data),
    max = Math.max(...data),
    dataMin = data.filter(v => v !== min || !(min = -Infinity)),
    dataMax = data.filter(v => v !== max || !(max = Infinity));

console.log(...dataMin);
console.log(...dataMax);

A more classical approach

function minMax(array) {
    var min = array[0],
        max = array[0],
        sum = array[0],
        i, v;

    for (i = 1; i < array.length; i++) {
        v = array[i];
        sum += v;
        if (v > max) max = v;
        if (v < min) min = v;
    }
    console.log(sum - min, sum - max);
}

minMax([1, 2, 3, 4, 5]);

A: The HackerRank challenge just asks for the sums of the, so you can make one pass through the array to calculate 3 facts:

*

*Maximum element (a)

*Minimum element (b)

*Total sum of all elements (c)

The sum of the smallest chunk will be c - a and the sum of the largest will be c - b.
Here's a one-liner solution using reduce:

var arr = [1, 2, 3, 4, 5];

var [a, b, c] = arr.reduce(([a, b, c], x) => [a > x ? a : x, b < x ? b : x, c + x], [NaN, NaN, 0]);
console.log(c - a, c - b);

Note: the NaN's are just here to force the initial conditions (a > x/b < x to be false)

A: You can sort the array and for min take first four and add them and for max take last four and add them

let arr = [1, 2, 3, 4, 5]
let minAndMax = (arr) => {
  arr = arr.sort((a,b) => a - b)
  let op = {}

  op.minArr = arr.slice(0,4)
  op.min = op.minArr.reduce((a,b) => a+b, 0)

  op.maxArr =  arr.slice(arr.length-4,)
  op.max = op.maxArr.reduce((a,b) => a + b ,0)
  return op
}

console.log(minAndMax(arr))

A: This solution traverses the slice indexes, calculates the sum and when a maximum is found, it is put into result. Finally result is parsed:
var arr = [4, 8, 2, 6, 12];
var ln = arr.length;
var maxSum = undefined;
var result = "";
for (var splIndex = 0; splIndex < ln; splIndex++) {
    var item = arr.splice(splIndex, 1);
    var sum = 0;
    for (var it of arr) sum += it;
    if ((maxSum === undefined) || (maxSum < sum)) {
        maxSum = sum;
        result = JSON.stringify(arr);
    }
    arr.splice(splIndex, 0, item[0]);
}
console.log(JSON.parse(result));

EDIT
A simpler solution, of course is to find the minimum and calculate the sum without it.

A: The following function works:
function miniMaxSum(arr) {
    var _arr = arr.sort((a, b) = > a - b)
    var minVals = _arr.slice(0, 4)
    var maxVals = _arr.slice(1)
    const arrSum = __arr = > __arr.reduce((a, b) = > a + b, 0)
    var minSum = arrSum(minVals)
    var maxSum = arrSum(maxVals)
    console.log(minSum, maxSum)
}

A:

let arr = [15 ,12, 33, 25, 4];
//sort array
const arrSort = arr.sort((a,b)=> a-b );
console.log(arrSort);
//get values and sum
var max = arrSort.filter(value => value < Math.max(...arrSort)).reduce((ac,at)=>{
    ac += at;
    return ac;
},0);
var min = arrSort.filter(value => value > Math.min(...arrSort)).reduce((ac,at)=>{
    ac += at;
    return ac;
},0);
console.log(max);
console.log(min);

A: This worked for me.
let minValue, maxValue
const ascendingArray = arr.sort((a,b) => a - b)

const smallestNumber = ascendingArray[0]
const biggestNumber = ascendingArray[ascendingArray.length -1]

if(smallestNumber !== biggestNumber){

    const biggestArray = arr.filter((number) => {
        return number !== smallestNumber
     })

     const smallestArray = arr.filter((number) => {
         return number !== biggestNumber
      })

     minValue = smallestArray.reduce((a,b) => a + b, 0)
     maxValue = biggestArray.reduce((a,b) => a + b, 0)
     console.log(minValue, maxValue);
}
else{
    const arraySliced = arr.slice(0, 4)

    const value = arraySliced.reduce((a,b) => a + b, 0)
    console.log(value, value);
}

A: function miniMaxSum(arr) {
    var soma = 0
    let t = 0
    for (var i = 0; i < arr.length; i++) {
        soma += arr[i]
        max = soma - arr[i]
    }
    let min = soma - arr[0]
    return max + ' ' + min
}

console.log(miniMaxSum([7, 69, 2, 221, 8974]))

A: Here is a cleaner approach to solving this problem.
function miniMaxSum(arr) {
   let min, max, sum, arrMin, arrMax; // declare variables
   min = Math.min(...arr) // gets the smallest value from the arr
   max = Math.max(...arr) // gets the largest number from the arr
   sum = arr.reduce((a,b) => a+b, 0); // reduce used to add all values in arr
   arrMin = sum - max; // excludes the largest value
   arrMax = sum - min; // excludes the smallest value
   console.log(arrMin+' '+arrMax) // output
}

A: easy solution
const miniMax = arr => {
    let min = arr[0];
    let max = arr[0];

    for(let i = 0; i < arr.length; i++) {
        if(arr[i] <= min) {
            min = arr[i];
        }
        if (arr[i] >= max) {
            max = arr[i];
        }
    }

    let sum = arr.reduce((acc,curr) => acc + curr);

    console.log(sum - max, sum - min);
}

miniMax([5,5,5,5,5]);
// result : 20 20

miniMax([1,2,3,4,5]);
// result : 10 14

A: I get Answer in very Simple way
function miniMaxSum(arr) {
let minval=arr[0];
let maxval=0;
let totalSum=0;
for(let i=0;i<arr.length;i++){
    if (arr[i]>maxval){
        maxval=arr[i];
    }
    if (arr[i]<minval){
        minval=arr[i];
    }
    totalSum=totalSum+arr[i];

}

let minsum=totalSum - maxval;
let maxsum=totalSum - minval;

console.log( minsum,maxsum);

}

A: Use build Math methods to find max and min:
function miniMaxSum(arr) {
    const min = Math.min(...arr);
    const max = Math.max(...arr);
    const sum = arr.reduce((a, b) => a + b);
    console.log(sum - max, sum - min);
}


text:
Amishi in Sanskrit, an ancient language means 'pure'. The brand signifies just that. Pure beauty. Pure innocence. Pure design.
Amishi, named after the designer herself, was founded with passion to create handbags and jewellery for the contemporary woman who had both style and substance.
Her creations are sheer poetry and she is motivated to create the most desirable pieces of luxury by observing nature and the world around her.
Her spirituality has enabled her to create purses which are balanced in design and bring about a sense of fulfillment and balance in the life of the woman who wears it.
The vision has always been to make jewelry and handbags that are irresistible and, therefore, will be handed down through generations. The pieces are always fresh, unique, exciting and timeless with roots emanating from ancient cultures.
The regal essence of the Amishi handbag conveys the spirit of Royalty to women who wear them. They are eternal classic pieces.
Sold in the world's leading stores, Amishi clutch bags and jewelry have been appreciated by celebrities and Royalty including Princess Eugenie, Princess Beatrice, Kimberley Walsh, Nicole Scherzinger, to name a few.
www.amishi.london
Where can you shop Amishi Tax Free:
Amishi, London
45 Maddox Street, W1S 2PE, London, United Kingdom, United Kingdom


text:
Meet the Man Who Could Be America's First Muslim Governor
Michigan's Abdul El-Sayed is in one sense the Bernie Sanders of Michigan. But he's also young, and a state native who played college lacrosse as a Wolverine.
Dean Obeidallah
Updated Feb. 08, 2018 8:31AM ET / Published Feb. 08, 2018 4:52AM ET
Photo Illustration by Elizabeth Brockway/The Daily Beast
Donald Trump has truly been an inspiration.
On the vile side, we're seeing a spike in white supremacist activities on college campuses and white supremacist deadly terror attacks, as recently documented by the Anti-Defamation League. Trump has inspired these "Americans" by retweeting visible white supremacists, defending white supremacists who marched in Charlottesville as "fine people," and now championing the white supremacists' long held dream of ending family unification of immigrants, which they call "chain migration."
But on the side of the best of America, Trump has inspired people who oppose his bigotry, racism, and sexism to run for office. There are a record number of women running in 2018, including Rachel Crooks, who courageously told the story of how Trump sexually assaulted her. There are countless people of color and of varying immigration statuses running this year. And add to that I have never seen more Muslim Americans seeking office on all levels, from City Council, like Liliana Bakhtiari in Atlanta, to people running for Congress, such as Fayrouz Saad, a former Obama administration official from Michigan, and former Michigan state representative Rashida Tlaib, who just announced her candidacy to replace former representative John Conyers.
The one candidate in this group who has truly captured the media's attention is another Michigander: Abdul El-Sayed, who is seeking the Democratic nomination for governor. If elected, the 33-year-old El-Sayed would be the first Muslim American ever elected as governor and the youngest governor since a 32-year-old Bill Clinton was elected in Arkansas back in 1978.
"There's a reason why former Obama speechwriter Jon Favreau tweeted a video about El-Sayed with the words: 'Reminds me of someone I used to work for.'"
However, El-Sayed's faith and age are the least of the reasons to support him. I spoke at length to El-Sayed both as a guest on my SiriusXM radio show and in person. Simply put, this guy is the real deal. He's not only charismatic, he's well versed in the nuances of policy on issues from job creation to education to especially healthcare, given he's a medical doctor who previously headed Detroit's health department.
There's a reason why former Obama speechwriter Jon Favreau tweeted a video about El-Sayed with the words: "Reminds me of someone I used to work for." But as El-Sayed commented about the comparison, "I love Obama—but I'm not him." He's right. In fact, on policy issues, El-Sayed is much more of a younger, brown Muslim version of Bernie Sanders. And it's no coincidence that some former Sanders campaign people have joined El-Sayed's campaign.
But there's something else that makes you root for him. The Michigan born El-Sayed is a living example of the American dream. He's the son of Egyptian immigrants. He was captain of the high school football team and played lacrosse at University of Michigan. He then went on to win a Rhodes scholarship and earned a medical degree from Columbia University.
El-Sayed is currently locked in a two-person race with Gretchen Whitmer, a former State Senate minority leader backed by the Democratic establishment. But the excitement is on El-Sayed's side as friends in Michigan have made clear. That's likely why there was a recent anonymous attack on El-Sayed's eligibility based on the state constitution's requirement that gubernatorial candidates be registered as a Michigan voter for the four prior years to running. While El-Sayed was born and raised in Michigan, he did attend Columbia medical school in New York from 2012-2015 and then returned to Michigan in 2016. El-Sayed's campaign, however, is confident it will prevail on this attack—which they view as akin to birthersim—since he was still a registered voter in Michigan at all times.
Even in a state like Michigan, where there's a sizable Arab American and Muslim population, a guy named Abdul El-Sayed has seen challenges. He explained that after 9/11 he was subjected to taunts like "Go back to your country!" and others calling him "raghead." And just last year, a Michigan mosque was burned down in a case of arson.
However, the response to that fire was that people in the community of all faiths donated over $30,000 to rebuild the mosque. That's the real Michigan to El-Sayed, who explained, "Michiganders don't care how you pray, but what you pray for." He added, "I pray for my family, my state, my country and for Michigan football. I know a lot of Michiganders pray for the same things."
On the issues, El-Sayed is championing not only a bold, progressive agenda but one specific to Michigan. "When I travel Michigan, I hear from people of all backgrounds that they feel locked out of the economy," he explained. El-Sayed contrasted that with where the Democrats went wrong in the 2016 campaign that saw Trump take Michigan: "The Democratic establishment told Michiganders in 2016 that the economy was back—well, it wasn't."
El-Sayed passionately explained the need for a single payer healthcare system which would help both Michiganders and attract businesses. "As a doctor, I had to share with people diagnoses of life-threatening conditions yet for some people their worst day wasn't when they heard the diagnoses but trying to figure out how to pay their medical bills without bankrupting their family," said El-Sayed.
El-Sayed shared how GM moved a factory from Michigan to Canada because it could save money on providing healthcare because that was already afforded to the citizens of Canada. For those reasons, he wants to start a Michigan-run healthcare system that provides healthcare and would attract new businesses to set up shop there.
El-Sayed has been traveling Michigan for much of last year and will continue on a daily basis from now until the Aug. 7 primary. "When we expect 50 people we have had 150 show up at events," he explained about the support he's received, "and more than half of the people at the events sign up to volunteer for the campaign." If things keep building we just may see El-Sayed follow in the footsteps of Bernie Sanders and pull off a Democratic primary win in Michigan. And if Michiganders ultimately elect El-Sayed as governor, that would be the perfect middle finger to Trump.


Anytime Doctor provides a personalised, secure web-based portal that provides patients with 24/7 access to their health records, lab results and prescription information anywhere in the world.
We believe that everyone should have access to safe, fast, affordable healthcare. Yet our domestic healthcare services are overwhelmed by high demand. Technology that connects patients with high quality care is part of the solution and we think we're uniquely positioned to build it. Our core aim is to build and deliver healthcare services that help patients lead fulfilling, healthy lives. Whether it's delivering safe and efficient care, exceptional customer service or improving our IT platform our team focuses on delivering important, meaningful results.
We do not currently have any openings. Please check back soon for new exciting opportunities with Anytime Doctor.
Would you like to make an additional income after you finish your regular shift? Looking for flexible GP sessions to suit your existing commitments and location?
Anytime Doctor is a Care Quality Commission (CQC) registered Online Doctor service. Patients submit medical consultation questionnaires and all prescriptions issued are fulfilled by our UK based pharmacy. All messaging with patients is conducted via our secure messaging portal.
We are looking for a new doctor to join our growing team. A minimum commitment of 1.5-2 hours per day is required, to be fitted in around your existing sessions. This is the perfect role for candidates looking to move into the online medicine space or who wish to spend more time working from home. We offer flexible working hours and via our secure system you can log in from wherever you are.
Interested candidates should send their CV and covering letter to careers@anytimedoctor.co.uk. Please include details of previous experience and availability. Successful candidates will need to go through our onboarding process, during which we verify identity and right to work documents, GMC registration and safeguarding certificates, qualifications, medical indemnity for private prescribing, appraisal & revalidation documents, DBS, and references.
Thank you for taking the time to learn about us and how you could join our team. We look forward to hearing from you!


text:
About QLA
Contact us and Visit Us
Tag Archives: UXO
Man injured by UXO in Xieng Khouang
Posted on October 10, 2016 October 10, 2016 by Jane Kennedy
MAN INJURED IN UXO ACCIDENT IN XIENG KHOUANG
Today QLA met a UXO survivor in hospital who was injured by UXO when burning near his house in Kham District, Xieng Khouang Province on 5 October 2016. "Mr K" is a 26 year old married man and has a young baby. He sustained shrapnel injuries to his right eye and left arm. The shrapnel has been removed, but the next few weeks will determine whether or not he has lost the vision in his eye.
Mr K's sister-in-law was injured by UXO in 2003 and has since lost her life from complications of her condition.
As far as QLA is aware, Mr K's accident was the 11th UXO accident in Xieng Khouang Province this year and he is the 17th person to be injured.
QLA will support Mr K's treatment for as long as necessary. Thank you to DFDL Legal & Tax for funding the treatment of Mr K and other UXO survivors this year.
President Obama in Laos – Youtube links to UXO stories
Posted on September 13, 2016 September 13, 2016 by Jane Kennedy
President Obama Speaks to the People of Laos
(Cultural Hall, Vientiane, Laos, 6 Sept 2016, published by the White House)
President Obama Delivers Remarks at the COPE Visitor Center
(COPE Centre, Vientiane, Laos, 7 September 2016, published by the White House)
Obama honors victims of American bombings in Laos
(7 September 2016, CBS This Morning)
President Obama spent his second day in Laos visiting a northern city known for its Buddhist temples. He also visited victims of American bombing from the Vietnam War and promised more money to help them. Margaret Brennan reports from Vientiane, the capital of Laos.
Victims of Laos' Forgotten War
(Xepon, Laos, 7 September 2016, Financial Times)
Laos is still littered with unexploded bombs from the Vietnam war. The FT's Michael Peel visits Xepon on the former Ho Chi Minh trail to talk to people who have suffered personally and see the clear up operation.
Brett Dakin, Legacies of War
(CTV Your Morning, September 8, 2016)
Brett Dakin discusses President Obama's historic announcement and what it means to those who have fought to address the legacies of war in Laos.
Laos still feeling the effects of the Vietnam War
(Laos, 5 September 2016, CBS Evening News)
President Obama's trip to Laos is the first by a sitting U.S. president. He is expected to address a once-secret bombing program the U.S. led in the Vietnam war that Laos is still feeling today. Adriana Diaz reports.
Bomb Hunter In Laos Dismantles Leftover U.S. Bombs
(Laos, 10 September 2016, AJ+)
Barack Obama became the first U.S. president to visit Laos, where millions of unexploded American bombs dropped during the Vietnam War are still claiming lives to this day.
"Millions of People in Laos Still Live in Fear" as Obama Pledges $90 Million to Clean Up U.S. Bombs
(8 September 2016, Democracy Now)
As President Obama becomes the first American president to visit Laos, we look at the legacy of the U.S. bombing campaign there during the war on Vietnam.
Woman injured in UXO accident in Xieng Khouang
Posted on March 28, 2016 March 28, 2016 by Jane Kennedy
On 23 March 2016 a UXO accident occurred in Paek District, Xieng Khouang.
While burning off to clear her corn field, Ms 'X' a 25 year old mother of 3 children was injured when a UXO exploded from the fire. She was standing about 2 metres away at the time and sustained a deep shrapnel wound which impacted on her liver and caused breathing difficulties. Ms X's sister in law who was with her at the time of the accident took her by motorbike to a local medical clinic, where the doctor referred her to the provincial hospital. Ms X's family then hired a rental vehicle to transport her to the provincial hospital where she immediately underwent surgery to have the shrapnel removed.
QLA visited Ms X in hospital and met with her family to provide support (including payment of medical and associated costs) and will continue to do so for as long as necessary. We wish Ms X and her family well.
A UXO victim's story
Posted on February 6, 2015 August 3, 2015 by qlalaos-admin
Mr Nengyong Yang
The UXO accident
Nengyong was 31 years old and married with four children. In April 2012, Nengyong was cutting a tree in his field in preparation for planting corn when he hit a UXO that had been sitting inside the tree trunk for decades. As a result of the accident Nengyong lost his sight. He was treated in hospital for several weeks.
Nengyong's wife Mai Khang told QLA that since the accident he had been very upset because he was blind and could not farm or support his family. He told her that dying would be better than having to rely on her to take care of him.
In June 2012 Nengyong killed himself. Mai Khang woke up to find that he was not in bed. She searched through the house and then went outside to find that he had hanged himself from a mango tree. Although she immediately cut him down and cried out to the neighbors for help, he was already beyond help. Nengyong left behind three young sons and one daughter.
Although there is no way to undo this tragedy, QLA will continue to have contact with Nengyong's family and endeavour to assist as much as possible.
An alternative form of livelihood
After Nengyong passed away, MaiKhang had to stay home and care for her children, so QLa arranged for her brother-in-law to attend animal raising training on her behalf in June 2013. QLA provided a small grant to buy animals for raising and MaiKhang opted to buy some chickens. MaiKhang now has 30 chickens and 40 chicks which can be sold or used at Basi ceremonies (significant religious/spiritual events). This shows that MaiKhang has made good use of the previous small grant.
In response to reading Nengyong's story, QLA received a private donation from a family that wanted to help this family specifically. QLA met with MaiKhang to determine the needs of her and her children. In August 2014 QLA arranged the purchase of school uniforms, shoes and school books for the three children of school age and the payment of school fees. MaiKhang's roof was in such a state of disrepair that the kitchen was unusable. QLA arranged for the purchase of roofing materials and several members of MaiKhang's extended family assisted with putting on the new roof within one week of purchase. QLA also provided a grant for MaiKhang to buy two pigs, to generate income and a few bags of rice so she could feed her family until income from the pigs was realised.
MaiKhang is very thankful for the assistance that QLA has given and said that now the essential things that were worrying her have been taken care of, she hopes that life will be easier for her and her children. She also said she would like to see QLA provide this type of assistance to other families of UXO survivors and UXO victims.
The donating family has indicated that if the children attend school regularly and receive a good school report they will consider funding the education costs again next year and in subsequent years.
The Yang family's visit to Phonsavan to buy school uniforms and shoes. From left: Souk (10yrs) DouaOng (12 yrs), YengJouk (2yrs), MaiKhang (32 yrs) and KaLai (8 yrs).
YengJouk inspects the quality of the rice!
Khamkhone, President of QLA's Board of Directors, hands over the school books, rice, roofing materials and funds for education and the purchase of 2 pigs to the Yang family. The Head of the village (left) supervised the event.
The oldest boy, Souk, was at his grandmother's that day.
Channapha Khamvongsa (Legacies of War) has been a tireless advocate for UXO victims for many years. When in Xieng Khouang during her visit to Laos from the USA, QLA introduced Channapha to Mai Khang in March 2015 after which Channapha's advocacy work was a feature article in the International New York Times and Mai Khang's story was one of several included in the article.
New York Times article
QLA's achievements in 2016
Tax deductible donations to QLA now available
QLA's Executive Director meets with President Obama
Medical and rehabilitative treatment costs
Psychosocial support for UXO survivors and PWD
Livelihood and development programs
UXO Survivor Information Centre
PWD stories
UXO stories
QLA Information
Share our work with your friends
Phonsavanh Village, Xieng Khouang Province, Lao PDR | Email: qualifasc@gmail.com | Phone: (+856) 061 211124 | © 2015 by THE QUALITY OF LIFE ASSOCIATION - LAOS.


British fashion designer Henry Holland's first capsule collection for UK homes store Habitat is a riot of pattern and colour. Inspired by gonzo journalist and author Hunter S. Thompson's trippy novel Fear and Loathing in Las Vegas, his debut interiors range, on sale now, uses prints from House of Holland's SS16 season and applies them to covetable cushions, sofas, rugs and throws.
Holland's 'Paradise Leaf' print features exotic blue leaves and bright orange Bird of Paradise flowers. Set on a pale background, it spices up Habitat's 'Abel' sofa and armchair and also appears as a soft hand-tufted wool rug. Botanicals get supersized!
This striking textile is put to further use with the addition of witty insect illustrations by Suzan Pitt on 'Buggin', a colour-clash cushion that features flora, fauna and insects on one side and leopard print on the reverse.
Team it with 'Tropical Leaf', featuring foliage and feathers in hot pinks and sizzling reds (also with leopard print and oversized bug on the reverse) and 'Pufferfish', a rectangular cushion with a simple geometric design – if you like your colour dial turned up to the max you'll feel right at home. Finally, for long summer evenings outdoors, 'Catfish', a reversible cotton throw that combines a monochromatic 'Pufferfish' print with crisp blue and white stripes, will keep you cosy when the sun goes down. It's all very Seventies kitsch, yet somehow bang on point for now. Viva Las Vegas!


text:
const API_KEY_SID = process.env.TWILIO_API_KEY;
const API_KEY_SECRET = process.env.TWILIO_API_KEY_SECRET;
const ACCOUNT_SID = process.env.TWILIO_ACCOUNT_SID;

const Twilio = require('twilio');

const client = new Twilio(API_KEY_SID, API_KEY_SECRET, {accountSid: ACCOUNT_SID});

client.video.rooms('RMXXXX').participants.get('PAXXXX')
.subscribedTracks.list()
.then(subscribedTracks => {
  subscribedTracks.rules.forEach(subscribedTrack => {
    console.log('Read subscribed track with sid = ' + subscribedTrack.sid);
  });
})
.catch(error => {
  console.log('Error fetching subscribed tracks' + error)
});