our

Biting passengers on flight is no reason for cash compensation delay: EU court adviser

Air travelers cannot receive cash compensation if their flight is delayed by a passenger biting others and assaulting crew members, an adviser at the Court of Justice of the European Union said on Thursday.




our

Do your bit for farmers and eat more fries, Belgians urged

With potato farmers and processors struggling, Belgians are being urged to eat more fries to offset a slump in demand during the coronavirus pandemic.




our

The mysterious Artemis Accords describe US interests in space resources

NASA added the name of the goddess Artemis to new missions. TWH examines some possible implications of the secretive "Artemis Accords" and how they relate to previous treaties and agreements that pertain to space and celestial bodies.

Continue reading The mysterious Artemis Accords describe US interests in space resources at The Wild Hunt.




our

Coronavirus leaves world of Brazilian samba in mourning

Cherished figures from pillar of country’s culture among the dead, as virus hits working-class areas

Like so many of his neighbours in Madureira – a working-class neighbourhood considered Rio’s “cradle of samba” – Álvaro Silva was a diehard supporter of the local samba school, Portela.

Just a few weeks ago the 76-year-old percussionist watched in delight as the group to which he had dedicated more than half of his life took to the streets for its annual carnival procession.

Continue reading...




our

Share your tributes and memories of UK coronavirus victims

We would like you to share your tributes for friends and family who have died

Covid-19 has now claimed the lives of thousands of people in the UK.

Older people and those with underlying health conditions are much more vulnerable to the coronavirus, but it can affect people who are otherwise fit and healthy.

Continue reading...




our

UK healthcare workers: share your photo, videos and audio of working against coronavirus

We want to see your photos, videos and audio of what it is like doing your job on the frontline

Staff working for the NHS have expressed concern about the lack of protective personal equipment, with photographs circulating on social media of staff creating their own makeshift items, including with clinical waste bags.

We want to see healthcare workers’ photos, videos and audio of what it is like doing their job.

Continue reading...




our

From chickpeas to savoury porridge: Yotam Ottolenghi's thrifty recipes

A weekday lunch of braised chickpeas, a savoury brunch porridge and a grown-up take on rice pudding

The world has seen more than its fair share of closed doors lately – shops, restaurants, the barber, your neighbours’ – but that has, in turn, led to the opening of some others.

And if there is one door that has swung wide open in recent weeks, it’s the one that leads into the kitchen. From the keenest of cooks to the humblest of beginners, the kitchen has provided us all with the one thing we’ve been missing the most: freedom.

Continue reading...




our

Toni Morrison's The Bluest Eye at 50: a novel that speaks to our times

Set after the Great Depression, Morrison’s heartbreaking debut explores beauty and finds joy where there really should be none

This week, amazingly, I read a book. Just the one, though – let’s not get excited. I suspect I was only able to do so because I wasn’t reading for pleasure, but because I’ve been asked to write a foreword for it. The book I read was The Bluest Eye by Toni Morrison, a novel about a young, dark-skinned girl growing up in the US after the Great Depression who believes herself to be ugly; she wishes for blue eyes in the hope that they will make her beautiful. I had started to read it a few years ago, but was so overwhelmed that I had to put it down. This time, I knew, contractually, that I was going to tackle it head on.

Usually I blitz through a book. But it’s Toni isn’t it, so you’ve got to gear yourself up for heartbreak, some trauma, and also to learn some things about yourself, and human nature, that you’d rather not be faced with. If she did one thing impeccably, it was holding a mirror up to society and saying: “Look at how we live. Are you proud of that?” And the answer cannot always be yes.

Continue reading...




our

Brazil's President Bolsonaro must 'drastically change course' on Covid-19, says The Lancet

British medical journal’s editorial says the Brazilian president’s disregard for lockdown measures is damaging

The biggest threat to Brazil’s ability to successfully combat the spread of the coronavirus and tackle the unfolding public health crisis is the country’s president, Jair Bolsonaro, according to the British medical journal The Lancet.

In an editorial, The Lancet said his disregard for and flouting of lockdown measures was sowing confusion across Brazil, which reported a record number of Covid-19 deaths on Friday, and is fast emerging as one of the world’s coronavirus hot spots.

Continue reading...




our

Gogglebox favourite June Bernicoff dies aged 82

Bernicoff had appeared on the Channel 4 series alongside her husband, Leon, who died in 2017

June Bernicoff, best known as a cast member on the Channel 4 series Gogglebox, has died at the age of 82.

Bernicoff appeared on the hit series – in which members of the public commentate on television programmes from their living rooms – alongside her husband Leon, who died in 2017.

Continue reading...




our

Vanessa Feltz: ‘Preserve your mystique at all costs’

The broadcaster, 58, on God, privacy, Mini convertibles, the rudeness of Madonna and her school nickname, Vanessa the Undresser

Even aged two, I was a child of great perspicacity. At nursery we had to answer the register by saying “Yes, Auntie” or “Present, please”, which I found deeply confusing. First, I thought, you’re not my auntie. And if I’m asking politely for a present every day, where on earth is it?

Vanessa the Undresser was my nickname at school, and I put that down to my parents. When a sex scene started on TV I was banished to the hall. I’d stand with one ear against the door desperately trying to work out who was doing what to whom and in what position. Thus was aroused in me an unshakable thirst for sex in all its permutations. I’ve never tired of it, menopause or not.

Continue reading...




our

'Colour allows us to understand in a deeper sense': Hitler, Churchill and others in a new light

The story of global conflict is all the more powerful when it isn’t seen in black and white. Artist Marina Amaral explains her latest work

On a stretcher lies a patient; his ashen face protrudes from under a green blanket, eyes closed. Two uniformed women carry the stretcher, wearing face masks. It looks as if it’s a lovely day: the sun is shining, the shadows dark, the sky blue. But this is not a happy picture. Is the casualty even alive, or has he already been taken by the killer virus that has wrapped itself around our planet like a python, squeezing the life from it?

The photograph was taken at an ambulance station in Washington DC. Within the past couple of months? It could have been, if it weren’t for the uniforms (I don’t think today’s nurses wear lace-up leather boots) and the stretcher. In fact, it was taken more than a century ago, in 1918, during the Spanish flu epidemic, which killed so many millions. The photographer is unknown, forgotten. But the black and white picture was recently “colourised” by Marina Amaral.

Continue reading...




our

Labour urges extended eviction ban amid risk of huge job losses

Five-point plan to protect renters comes as poll shows 1.7 million people fear unemployment

Labour is calling on the government to draw up emergency measures to protect renters beyond June as polling shows up to 1.7 million people in the private sector fear that they will lose their jobs this summer.

Dire economic forecasts released this week, including a Bank of England warning that the country faces its worst recession in 300 years, has prompted Labour to rapidly escalate its call for current protections for the rented sector, like the three-month ban on evictions in England and Wales, to be extended.

Continue reading...




our

Fifteen Cats From Tech Support Who Are Busy Making An Update To Your PC (Memes)

"Don't worry, I'm from tech support...Just lemme get a closer look."

Well...it seems like these cats are more interested in all those mouses and cookies hiding in your computer.  




our

How to Prevent Your Pet From Developing Separation Anxiety Post Quarantine

During this crazy time many of us have been confined to our homes and for some that means to be home 24/7 with our best friends. Our pets. However, because of this, many pets have become accustomed to having us home with them. 

But then the question is... will they be okay once bans are lifted and people are able to slowly go back to their daily routines?

Will they be able to handle their best friends not being by their side 24/7?

It is expected that many dogs (even cats!) can suffer from separation anxiety, and pet experts are saying that it's a good idea to get your pet ready and used to post-quarantine separation now, to minimize their stress later. 

Here are some useful tips for both dog and cat owners.

More videos on Cheezburger's Youtube Channel 





our

Uplifting Words Of Encouragement Through Animal Illustrations

We could all use a daily dose of uplifting these days. And when we think of the word "uplifting," many things come to mind such as; cats, cats, cats, and more cats. 

But if we places that aside we also think of @TheLatestKate, the Instagram Queen of positivity through beautiful animal illustrations. 

If you're in need of a pick-me-up, take a moment and read through these lovely inspirational messages. And if you need even more, you can also follow @TheLatestKate on Instagram for daily motivation. 




our

Roll Your Own – Toilet Paper

Toilet paper has become a hot button issue over the last month or so, and the pandemic prompted panic buying, and consequent shortages. Now there are adequate supplies, at least where this is being written, but sometimes one’s rolls aren’t the domestic items we’re all used to. This happened to …read more




our

GKIDS, Shout! Factory to Release Ride Your Wave Anime Film on Home Video

English dub cast includes Joey Richter, Merit Leighton, Sarah Williams, Michael Johnston





our

Freeloading Housemates Get Introduced To Court System

Man, these people sound like a ball of toxic energy. You have the one dude offering nothing but generosity and understanding to the rest of the roommates, who are basically going around, freeloading, and taking advantage of one's good nature. A kind of icky feeling can arise just thinking about it. Well, the freeloading roommates ultimately learned their lesson, and were introduced to the court system. Maybe that will set them on a different path in the future. Who knows? 






our

Our nearest star system may have a planet with a colossal set of rings

We know that there is at least one planet orbiting Proxima Centauri, the nearest star to our solar system, and now astronomers may have taken the first picture of a second world




our

AI lets you be Albert Einstein or the Mona Lisa on all your Zoom calls

An AI-powered application lets you create real-time deepfakes during video calls, making you appear to be speaking as anyone from Albert Einstein to the Mona Lisa




our

We may have found 19 more interstellar asteroids in our solar system

A bunch of asteroids near Jupiter and Neptune with orbits perpendicular to the plane of the solar system may have come here from a different star system




our

Drinking coffee appears to cause epigenetic changes to your DNA

Coffee has been linked to changes on our DNA that affect how active certain genes are. The finding may help explain some of coffee's touted health benefits




our

How coronavirus is affecting your dreams – and what to do about it

Lockdown measures and pandemic-related anxiety may be making you have more vivid dreams. Evidence suggests talking about them can help




our

Weird radio signals spotted in our galaxy could solve a space mystery

Weird blasts of radio waves from space called fast radio bursts have been baffling astronomers since they were discovered, but after finding one in our galaxy we may finally know what creates them




our

Amazon employees with courage

You have to give a lot of credit to Tim Bray, an Amazon vice-president who quit over the company’s treatment of workers. He was making a big sacrifice to expose Amazon’s corruption. May 1st was my last day as a VP and Distinguished Engineer at Amazon Web Services, after five years and five months of […]




our

Today is Metamour Day. It has deep meanings.



  • Friday Polynews Roundup

our

Friday Polynews Roundup — Safer sex in the pandemic. Move a metamour in for the duration? Skills for bottled-together partners, and more.





our

Putting your own stink on a technique

Scotland’s Valerie Anderson (bedeckedbeads) has played and played with Sonya Girodon’s free tutorial. With this latest brooch, Valerie puts her own spin on the process with deep watery colors. And if you look at the side view you’ll see how her curved strips add another departure. When you put your own “stink” on a technique […] Read more




our

U.S. tightens visa rules for Chinese journalists amid coronavirus tensions




our

Idaho governor appeals to Supreme Court to stop trans inmate's surgery

A lower court had ruled that the prisoner’s gender-affirming surgery is a medical necessity, and denying it constituted a violation of the Eighth Amendment.





our

A 1996 court declaration written by Tara Reade's ex-husband shows she spoke of harassment in Biden's Senate office

"It was obvious that this event had a very traumatic effect on (Reade), and that she is still sensitive and effected (sic) by it today," Dronen wrote.





our

Labour Party: Jennie Formby's departure will help Keir Starmer

Labour's General Secretary Jennie Formby standing down is a sign the party is under new management.




our

Labour Party: Jennie Formby to stand down as general secretary

The former Unite official says it is the "right time" to move on with the party under new leadership.




our

Labour Party: Starmer moves to rein in shadow cabinet spending plans

Leaked letter from shadow minister reveals attempt to impose discipline on top team, writes Iain Watson.




our

Coronavirus: Compulsory vaccines in the UK and other rumours fact-checked

A round-up of what's been debunked includes rumours about mandatory coronavirus vaccines and patents.




our

'B' teams or partner clubs back on the agenda? Clubs may have to 'share resources' to survive

The controversial concept of B teams may be back on the agenda as football tries to navigate a way through Covid-19, Brighton technical director Dan Ashworth says.




our

Coronavirus: NHS reveals source code behind contact-tracing app

More than 40,000 people have downloaded the contact tracing app so far, ahead of a wider release.




our

Worst song possible plays as Trump tours mask plant

As the president touts plans to reopen the economy, Live And Let Die blares over a loudspeaker.





our

Blasian love: The day we introduced our black and Asian families

Blasian - black and Asian - couples now exist in South Africa... but they don't always have an easy time.




our

The volunteer army helping self-isolating neighbours

The coronavirus outbreak has left many feeling trapped indoors, but for some help may not be far away.




our

Coronavirus: Three continents, four lives, one day

The stories of people who died on one day, from an exile who returned home to a disaster survivor.




our

How to Make Your React Apps 15x Faster

Without any modifications, React is really fast as-is. There are, however, a few things that you can do to improve performance. While working at HelloSign, I discovered some quick fixes that made our apps incredibly snappy. With these simple changes, I was able to reduce render time from over 3000 milliseconds to less than 200 milliseconds.

Without any modifications, React is really fast as-is. There are, however, a few things that you can do to improve performance. While working at HelloSign, I discovered some quick fixes that made our apps incredibly snappy. With these simple changes, I was able to reduce render time from over 3000 milliseconds to less than 200 milliseconds.

Editor’s Note:

Check out our upcoming React University Workshops. Our next workshop, React 2016, will be held on April 23 at Microsoft Reactor in San Francisco and will offer a deep dive into creating modern Single-Page Applications (SPA) using React, Redux, React Router, Immutable.js, and Webpack. Also, if you’re interested in learning the basics about what it takes to be a Data Visualization Engineer, check out React and D3.

Introduction

HelloSign is a cloud-based electronic signature tool founded in 2010. As you can imagine, HelloSign is a very JavaScript-heavy codebase. A lot of client-side behavior is necessary to create a rich signing experience. Lately, we’ve moved much of our codebase toward React. In fact, in many places we’ve broken up our codebase into several single-page applications written in React.

Although the HelloSign team was happy with React’s performance before I initially joined the project, I quickly found some low-hanging fruit that could improve runtime speed. Here are the steps you should take to see similar improvements in your own applications.

Create a Baseline Performance Measurement

Before you begin, you should take a baseline measurement. Optimizations are meaningless if you can’t verify the results of your modifications.

Thankfully, Chrome has excellent developer tools to help. One, little-used feature of Chrome’s DevTools is the “Timeline” tool. It allows you to record and analyze all activity in your application. You can record interactions on the page, locate potential memory leaks, measure the total time it takes to perform a task, and identify areas of potential jank. Best of all, the results can be recorded for comparison with your final benchmark.

There’s actually a really awesome video on Chrome’s DevTools that goes into detail about the “Timeline” feature. You can view it here.

We chose to measure the time elapsed between the initial paint of our signer page to the final rendering of the entire page. The initial download of our bundles still needs some optimization, but we’re neither going to mess with nor measure this parameter. It’s fairly easy and consistent to test render time rather than trying to click areas around the page and trying to measure its performance in a repeatable way. Then, all we needed to do was to go to the signer page, open Chrome’s DevTools “Timeline” tab, and refresh the page.

As a side note, make sure that when performing this test, the “Paint” and “Screenshots” boxes are checked so that you can see what the user sees as the page is being rendered.

After all that, we determined that our rendering time from initial paint was a little over 3 seconds. Much too long. Luckily, there was little we had to do to make this quite a bit faster.

Set NODE_ENV to Production

This step is easy to get wrong, even if you are well-informed. React’s documentation provides an overview, but doesn’t provide many specifics. React has great developer warnings and error checking, but these are only intended for development; if you take a look at React’s source code, you’ll see a lot of if (process.env.NODE_ENV != 'production') checks. This is running extra code that is not needed by the end user, not to mention that calling process.env.NODE_ENV is extremely slow. For production environments, we can remove all this unnecessary code. Just keep in mind that you don’t want to do this in development because it will remove all those helpful developer warnings.

If you’re using Webpack, you can use DefinePlugin to replace all instances of process.env.NODE_ENV with 'production', and then use the UglifyJsPlugin to remove all the dead code that no longer runs. Here’s a sample setup that you might use:

// webpack.config.js
  ...
  plugins: [
    new webpack.DefinePlugin({
      // A common mistake is not stringifying the "production" string.
      'process.env.NODE_ENV': JSON.stringify('production')
    }),
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    })
  ]
  ...

React Constant and Inline Elements Transforms

React 0.14 introduced support for certain transpile time optimizations with Constant and Inline Element Babel Transforms. React Constant Elements treats JSX elements as values and hoists them to a higher scope. In other words, it hoists static elements and thereby reduces calls to React.createClass. React Inline Elements converts JSX elements into the object literals that they eventually return. Again, this minimizes the runtime calls to React.createClass.

The implementation is rather simple. We added our Babel configuration in our package.json file:

// package.json
  ...
  "babel": {
    "env": {
      "production": {
        "plugins": [
          "transform-react-constant-elements",
          "transform-react-inline-elements"
        ]
      }
    }
  },
  ...

Final Measurement / Conclusion

Lastly, you’ll want to run the benchmark again and compare it with that saved benchmark from before these optimizations. As you can see, the total runtime profile ends 200ms after initial paint! That’s 15 times faster!




our

Phil Foden (R) with his 'Man of the Tournament' trophy, Rhin Brewster (L) with his 'Highest Scorer' trophy of England and goalkeeper Gabriel Brazao with his 'Best Goalkeeper' trophy pose

Phil Foden (R) with his 'Man of the Tournament' trophy, Rhin Brewster (L) with his 'Highest Scorer' trophy of England and goalkeeper Gabriel Brazao with his 'Best Goalkeeper' trophy pose for a photo after the FIFA U-17 World Cup India 2017 Final match between England and Spain at Vivekananda Yuba Bharati Krirangan on October 28, 2017 in Kolkata, India. (Photo by Buda Mendes - FIFA/FIFA via Getty Images)




our

Portugal complete final four

A 3-2 win has seen Portugal clinch a spot in the FIFA Futsal World Cup semi-finals for the first time in 16 years, seeing off Azerbaijan in Cali.




our

Esmaeilpour, Iran’s man for the occasion

After back-to-back games decided by his dramatic late interventions, Iran's Ahmad Esmaeilpour reflects on what is turning out to be a FIFA Futsal World Cup to remember.