text:
Q: type 'Null' is not a subtype of type 'String' Flutter I'm trying to get currency conversion data from an API ("https://api.exchangerate.host/latest").
The above error in the title is shown on the screen as a text.
I'm trying to get this message as the output.
"msg":"If you or your company use this project or like what we doing, please consider backing us so we can continue maintaining and evolving this project."
Later the individual currency rates.
import 'dart:async';
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

Future<Album> fetchAlbum() async {
  final response = await http.get(Uri.parse('https://api.exchangerate.host/latest'));

  if (response.statusCode == 200) {
    // If the server did return a 200 OK response,
    // then parse the JSON.
    return Album.fromJson(jsonDecode(response.body));
  } else {
    // If the server did not return a 200 OK response,
    // then throw an exception.
    throw Exception('Failed to load album');
  }
}

class Album {
  final String msg;

  Album({
    required this.msg,
  });

  factory Album.fromJson(Map<String, dynamic> json) {
    return Album(
      msg: json['msg'],
    );
  }
}

class CurrencyPage extends StatefulWidget {
  const CurrencyPage({Key? key}) : super(key: key);

  @override
  _CurrencyPageState createState() => _CurrencyPageState();
}

class _CurrencyPageState extends State<CurrencyPage> {
  late Future<Album> futureAlbum;

  @override
  void initState() {
    super.initState();
    futureAlbum = fetchAlbum();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fetch Data Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Fetch Data Example'),
        ),
        body: Center(
          child: FutureBuilder<Album>(
            future: futureAlbum,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                return Text(snapshot.data!.msg);
              } else if (snapshot.hasError) {
                return Text('${snapshot.error}');
              }

              // By default, show a loading spinner.
              return const CircularProgressIndicator();
            },
          ),
        ),
      ),
    );
  }
}

Any help would be appreciated!

A: you are using the model incorrectly.
change return Album.fromJson(jsonDecode(response.body)); to return jsonDecode(response.body); and get response data like snapshot.data!['motd']
code:
Future<dynamic> fetchAlbum() async {
  final response = await http.get(Uri.parse('https://api.exchangerate.host/latest'));

  if (response.statusCode == 200) {

    // If the server did return a 200 OK response,
    // then parse the JSON.
    print(jsonDecode(response.body));
    return jsonDecode(response.body);
  } else {
    // If the server did not return a 200 OK response,
    // then throw an exception.
    throw Exception('Failed to load album');
  }
}

class Album {
  final String msg;

  Album({
    required this.msg,
  });

  factory Album.fromJson(Map<String, dynamic> json) {
    return Album(
      msg: json['msg'],
    );
  }
}

class CurrencyPage extends StatefulWidget {
  const CurrencyPage({Key? key}) : super(key: key);

  @override
  _CurrencyPageState createState() => _CurrencyPageState();
}

class _CurrencyPageState extends State<CurrencyPage> {
  late dynamic futureAlbum;

  @override
  void initState() {
    super.initState();
    futureAlbum = fetchAlbum();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Fetch Data Example'),
        ),
        body: Center(
          child: FutureBuilder<dynamic>(
            future: futureAlbum,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                return Text(snapshot.data!['motd']['msg']);
              } else if (snapshot.hasError) {
                return Text('${snapshot.error}');
              }

              // By default, show a loading spinner.
              return const CircularProgressIndicator();
            },
          ),
        ),
    );
  }
}

A: msg key is inside motd object in response. Therefore replace fetchAlbum with this:
Future<Album> fetchAlbum() async {
  final response = await http.get(Uri.parse('https://api.exchangerate.host/latest'));

  if (response.statusCode == 200) {
    // If the server did return a 200 OK response,
    // then parse the JSON.
    var body = jsonDecode(response.body);

    return Album.fromJson(body["motd"]);
  } else {
    // If the server did not return a 200 OK response,
    // then throw an exception.
    throw Exception('Failed to load album');
  }
}


Francesco's Salon & Spa is the ideal setting to relax and rejuvenate. You'll find privacy and an ambience of exotic aromas, mellow music, and soft lights in one of our spa rooms each with its own private shower. An additional room is equipped as a shower and steam room and open to all spa customers. Our spa professionals are specially trained in the latest spa practices and treatments. Spend a few hours, a half day or a whole day away from the rest of the world in a place where you are the most important person. Let us pamper you. It's what we do best! Purchase spa services individually or take advantage of our delicious spa packages. Bring your friends and make it a "spa party" for any occasion.


text:
Latest from EGX!
N4G Profile
Posted December 31, 2012 by Laurel Deneen in Features
Top 5 Surprisingly Great Films of 2012
Sometimes you go to a film expecting to be somewhat disappointed by it. Comedies are what initially come to mind as it is so simple to miss the mark. A director's sense of humor may not neccesarly jive with audiences. Other times it's action films that take themselves too seriously or fall for the "big explosions = good action movie" idea and place no emphasis on the story-line. However once in a while when we go to see these inevitably mediocre films we are pleasantly surprised. Below is a list of films we were happy to say defied our expectations.
Top 5 Surprisingly Great Films
1. Skyfall
Admit it even if you are a big fan of the Bond franchise historically they have a tendency to get cheesy. However Daniel Craig's incarnation of the British spook seems to only get better with age. The latest installment gives us a more intimate glimpse into the life and upbringing of the famous spy as he deals with aging in what is most definitely a young man's game, as well as an upgrade for many from the previous Bond flick Casino Royale. The action sequences: Epic. Daniel Craig: Impeccable. Opening credits: Mind-blowing. Villain: Fantastically creepy. M: Amazing. Q: Yes please.
See our full review of the film here.
2. Pitch Perfect
This film could have so easily been a complete flop. A film about competitive A Capella? Yeah that has box office smash written all over it. But in comes Rebel Wilson and her amazing one-liners ("Leave it, it fuels my hate fire") and you have to admit that this film is hilarious. The music is entertaining and dialogue well written. Even the obligatory love story is not your typical idealistic meet cute where the boy and girl live happily ever after. The female lead is closed off and has a bit of a superiority complex which causes problems and drives people away. Yet you still root for her and the friends she is making on their comical yet genuine journey to the international A Capella competition finals. This is another great example of comedies driven by female characters that has widespread appeal; a trend which we hope continues.
3. Cabin In The Woods
The notorious spoof movie for smart people, Cabin in the Woods debuted in April of 2012. Though its release has been held back by a studio which did not seem to understand it, the wait was well worth it. It starts out like a classic B horror movie with the stereotypical group of friends heading to a country cabin for the weekend. Meanwhile below the surface a bureaucratic company is working to contain legendary monsters which they will let out to attack the youngsters one by one. All the while taking bets on which ones will kill the teens first. Written and Produced by Joss Whedon (The Avengers) the smart flick delves into all the classic tropes and has fun with the gore and ridiculousness that is expected in the horror genre.
4. Seven Psychopaths
There was no real build up to this Colin Farrell led film, it was just suddenly in there in theaters. However the lack of promotion may have been good for the film as the buzz built up once it was released drove audiences to the theaters in a way they may not have if they'd seen the less than stellar preview. While Colin Farrell is top billed, it was the performances from co-stars Sam Rockwell, Christopher Walken and Woody Harrelson that really made the film something special. The film about a floundering writer (Farrell) and his best friend (Rockwell) who makes money stealing dogs and returning them for the reward money with an older gentleman (Walken) is a quirky comedy that engages audiences in a unique and compelling way.
5. 21 Jump Street
This remake of the 80s teen soap opera did two things right. One, it made the film into an unapologetic comedy and two, it hired Jonah Hill (Superbad) and Channing Tatum (Magic Mike) as the leads. Channing who had never stared in a comedy before was a risk but throughout the film proves that he has the ability to play the "dumb jock" while also making him sympathetic and relatable. Hill as we already knew from his other films has amazing comedic timing and in this film plays off Tatum's character with hilarious results. Bromance level: Expert.
That's our list, what made yours?
21 Jump Street Pitch Perfect Seven Psychopaths Skyfall The Cabin In The Woods
Laurel Deneen
Lover of movies, television, theater, comics and general nerdery, Laurel hails from Minneapolis Minnesota. She has a geeky husband who requires more than the average amount of attention, a dog who thinks she's a dragon and she secretly longs to be a penguin.
More articles by Laurel Deneen »
Top Game and Film Soundtracks of 2012
This Week In Entertainment Vol. 3
Latest articles from around the site,,,
Anthem officially to be re-tuned
Wizardry: Labyrinth of Lost Souls – for the old nostalgic?
The Falconeer trailer – a flying game to look up?
Diablo 4 – the logical sum of 2 + 3?
Remnant: From the Ashes looking forward to killing us in hardcore mode update
World War Z: Kill It With Fire update released today
MegaTagmension Neptunia: Blanc and Neptune v. Zombies (PS Vita) Review
Stranger of Sword City (PS Vita) Review
Grand Kingdom (PS Vita) Review
Trillion: The God of Destruction (PS Vita) Review
Hitman Go Definitive Edition (PS Vita) Review

redpajama_set_name: RedPajamaCommonCrawl


A new lawsuit against Peloton states the company offers thousands of unlicensed songs from artists like Rihanna, Bruno Mars and Drake. According to a lawsuit filed in New York on Tuesday, a group of music publishers allege that the fitness-tech company has been using songs from Ed Sheeran, Lady Gaga, Rihanna, Drake, Bruno Mars and Ariana Grande without permission.
Peloton, which launched in 2012, offers a subscription service with roughly 13,000 home workouts, which feature songs and playlists as part of the workout. The 10 publishers waging the suit say the company has knowingly violated copyright on thousands of songs since it launched at-home streaming features on its exercise equipment in 2014 by failing to obtain the requisite sync license required under U.S. copyright rules.
The exercise company has recently been bolstering its existing video-and-media offerings, with partnerships with media start-ups. A spokesperson had stated the company was "invested heavily to build a best-in-breed reporting and licensing system" and is evaluating the legal complaint.


The 35th Infantry Regiment Association salutes our fallen brother, PFC Cloyd Lee Menser, RA12316264, who died in the service of his country on September 21st, 1950 in South Korea. The cause of death was listed as KIA. At the time of his death Cloyd was 19 years of age. He was from Iredell County, North Carolina. Cloyd's Military Occupation Specialty was 4745-Light Weapons Infantryman.
The decorations earned by PFC Cloyd Lee Menser include: the Combat Infantryman Badge, the Purple Heart, the National Defense Service Medal, the Korean Service Medal, the United Nations Korea Service Medal, and the Republic of Korea War Service Medal.
Private First Class Menser was a member of Company F, 2nd Battalion, 35th Infantry Regiment, 25th Infantry Division. He was Killed in Action while fighting the enemy in South Korea on September 21, 1950. His remains were not recovered. His name is inscribed on the Courts of the Missing at the Honolulu Memorial. Private First Class Menser was awarded the Purple Heart, the Combat Infantryman's Badge, the Korean Service Medal, the United Nations Service Medal, the National Defense Service Medal, the Korean Presidential Unit Citation and the Republic of Korea War Service Medal.


Going on a long journey or a holiday can be a major concern for the person you are caring for if they have a bladder or bowel problem. They may be anxious about their journey and whether or not they can manage their bladder problems in the same way on holiday as they do at home. However, you mustn't let this put them off. It's very important that they still get out and enjoy life, having a problem such as incontinence does not mean they have to stay at home.
The person you are caring for might find that it is worth changing the products they normally use to manage their incontinence, depending on the length of their journey. For example, if they normally use quite light pads it might be worth wearing a much heavier pad or an all-in-one product just for the journey.
Remember, if they do restrict their fluid intake in preparation for a journey, they must make up for this as soon as they reach their destination to avoid dehydration.
Many people have health problems which affects their lifestyles. Having the courage to tell others will give other people the opportunity to help them and make their trip more enjoyable. And remember, the first time is the hardest, once the person you are caring for has spoken up for the first time, they will find it easier to speak up in future.
The best policy is to take along a good supply of all the items they will need e.g.pads, pants, creams and wipes. They may find that they can purchase items locally but should not take this for granted.
If they don't have enough room to carry their supplies, it may be an idea to send stocks of bulky items ahead to the holiday destination or to a local health centre for collection.
Different countries have different rules and regulations so, if the person you are caring for carries products like catheters, syringes and medicines it may be useful to have a letter from a doctor explaining their use. This letter might also be used to explain their condition and help a local Healthcare professional if they need to visit one during their stay.
Ask if this can be supplied where the person you are caring for is staying as this will ensure that it fits properly and will save carrying additional weight in their luggage; their host will appreciate this too and should be used to providing such items. Failing this, they should take a generously sized waterproof sheet or pad, not one which is designed for a specific size of mattress.
As soon as the person you are caring for arrives at their destination they should find out what the waste disposal arrangements are. It may be best for them to take along their own disposal bags and a few bin liners for used pads – also a deodorising spray may save embarrassment if they have been unable to change their pads for a while.
They should also find out what the laundry arrangements are. They may be able to do some of their own laundry for a few, smaller items but many holiday venues do offer full laundry services.
Juggling the demands of caring with the responsibilities of a career is a tough call. People often feel they are being pulled in two different directions and as many as 1 in 5 people with significant caring responsibilities end up giving up work.
Those who fall out of the employment market often pay a heavy price – adding the worries of financial hardship to the pressures of caring. Think very carefully before giving up your job and explore all the options for support before taking drastic action.
As a working carer, you are likely to need a range of support at different times - from access to a telephone to check on the person you care for, to holiday leave arrangements when dealing with someone coming out of hospital. Telling your employer about your caring role is not always an easy step and you might feel it depends on whether or not they are likely to be supportive. Try to find out by asking your colleagues, personnel officer or union representative first. There may be existing support that you are not aware of, or you may find that your employer is open to exploring ways to support you.
For most people, caring has a negative impact on your finance and you, or the person you care for, may well have to pay for the support you need. Your income can take a dramatic drop through giving up work or reducing your working hours and you may face extra costs, such as heating, fuel and laundry as a consequence of caring for a loved one.
You may be entitled to some form of free or part-funded support from the state or private health insurance. Make sure you explore all avenues and ask other carers for advice if possible.
Caring for a loved one can be extremely demanding and, at the same time, very rewarding. Because of this, carers often find that they focus so much time and energy on caring for others that they forget to look after themselves. If you don't look after yourself as well you will eventually find that caring for the one you love becomes more difficult and this will affect the level and quality of care you are able to provide. So don't jeopardise your role as a carer by ignoring your own needs. We hope that the guidance in this section of the website will help you become a better and healthier carer.
It might sometimes feel like you're the only one in this situation but actually the experience of looking after a family member, partner or friend is very common. For example, in the UK it is estimated that one in every eight adults is a carer and it's a role that most people will take on at some point in their lives.
In the beginning, caring can be bewildering, confusing and demanding so all carers need some support and back-up. One of the most important things to accept is that you cannot do this all by yourself without serious risks to your health and well-being.
Many carers turn to family and friends for support and to help get a break from caring. In lots of cases this works out well and caring is shared. However, if you find that family and friends are not helping as much as you'd like, then you should not to hide the extent of your caring role from them.
Many carers don't want people to think they aren't coping so they cover up how hard it really is. Your family and friends simply may not realise the level of care you are providing and the impact it's having on you. They may find it hard to ask you if you need any help or may not want you to think they are interfering. They may be reluctant to offer help in case you get the wrong end of the stick and think they are saying you can't cope – so don't be afraid to ask for help as soon as you need it.
Many carers find they become increasingly isolated. Friends and family don't come round to visit as often as they once did, invitations stop arriving and gradually your social life can decline. There may be many reasons for this but, sadly, some people just don't know how to react to illness or disability and they find it awkward to deal with.
Even if you find you are isolated and caring alone, there are many Carers Support groups you could connect with to get some advice and practical help.
Most people would benefit from practical support to help with caring for a loved one. This could be in the form of equipment to help you lift the person you care for, the provision of someone to sit with the person you care for if you need to go out or a holiday from caring where the person you are caring for goes into residential care.
Paying for this sort of help can be expensive so you should shop around and get good advice. There are a variety of organisations and companies that can advise on buying equipment like hoists, wheelchairs and other disability aids. When it comes to having someone coming into your home to carry our care there is clearly the need to have someone you trust. Some people organise replacement care informally from friends and family or they buy in the help they need from a reputable commercial care agency.


Wi-Fi, though convenient, is prone to connectivity issues.
Though Wi-Fi networks provide convenient Internet access, their operation relies on a number of proper settings within the access point and your computer. There are many ways, and reasons, why a computer will not connect to a Wi-Fi network. Fixing the problem begins with your individual hardware settings and ends with the wireless access point itself.
2. Check the wireless power switch. This switch is included in many laptops as a means to preserve battery power while on-the-go. This can be a switch or a button, typically labeled with a radiating antenna icon. Check the operating manual of your computer if you do not know the location of the radio power switch.
3. Disconnect and re-connect the wireless connection. This enables you to re-enter any security information that may have been improperly typed. Improperly typed codes can lead to failed connections.
4. Re-install the drivers for the wireless card. This can be accomplished by going to the wireless adapter manufacturer's website or, in many cases, the computer manufacturer's website.
5. Plug your computer directly into the wireless router with an Ethernet cable. If, after the previous steps, this allows you access to the Internet, then you may have a faulty wireless adapter or wireless configuration on the router. Failing to receive a connection, however, is an indication that something is wrong with the router or Internet modem.
1. Log in to the wireless router through a wired connection. The login credentials, if you have not changed them, will vary from router to router and may have been set by your ISP. See Resource 1 for a list of common router access passwords.
2. Check the passcode for the Wi-Fi, if applicable, to ensure it matches the one you are entering on your computer.
3. Change the wireless channel to either 1, 6 or 11, the non-overlapping channels of the 2.4Ghz wireless spectrum. After changing the channel, try reconnecting to the Wi-Fi from your computer, before moving on to the next step.
4. Reset the router to factory defaults. This varies from one router model to the next. See the Warnings below for more information about this process.
If your computer is connecting to the wireless, but receiving a yellow triangle, the problem may be with your Internet connection. Check the cable connections between your Internet modem and the wireless access point. Ensure that the indicator lights on the Internet modem show a healthy connection.
Resetting the factory defaults will cause you to lose all settings within the router, including the Service Set Identifier (SSID) which other users may use to find the Wi-Fi connection. If your wireless serves multiple users, consult with these other users before making any changes to the router, and backup the configuration information if possible.


text:
La Copa Libertadores des moins de 20 ans est une compétition bisannuelle de football entre les meilleurs clubs dont les nations sont affiliées à la Confédération sud-américaine de football (CONMEBOL).

Histoire

La première édition de la compétition se déroule en 2011 à Lima au Pérou entre douze clubs. Le format de cette compétition se compose de deux phases, une première phase qualificative où les clubs sont répartis en trois groupes de quatre clubs, les deux premiers de chaque groupe ainsi que les deux meilleurs troisièmes se qualifient pour une phase finale composé de trois tours à match unique : quarts de finale, demi-finales et finale. Un match pour la troisième place est aussi organisé. La finale se dispute au Stade Monumental le .

Palmarès

Notes et références

Liens externes
  Site officiel

Libertadores
Libertadores
Compétition de football de jeunes

redpajama_set_name: RedPajamaWikipedia


Authorities in northern Wisconsin say they are looking for two cars in connection with the search for 13-year-old Jayme Closs as they prepare to comb the area Tuesday with up to 2,000 volunteers.
Barron County Sheriff Chris Fitzgerald said that investigators are looking for a red or orange Dodge Challenger and a black Ford Edge or black Acura MDX that they believe were near the Closs home on Oct. 15 when the teen disappeared. He did not have information on the license plates.
Anyone who has seen either of these vehicles "in or around" Barron County over the last two weeks should contact the tip line at (855) 744-3879. The sheriff's office posted photos of the vehicles of interest on its Facebook page.
Jayme Closs has not been seen since her parents were found dead in their Barron home more than a week ago. Fitzgerald is hoping to get 2,000 volunteers on Tuesday to help with the search.
Fitzgerald said that investigators have received more than 1,300 tips and have closed 1,100 of them. Barron, a town of 3,400 people, is 80 miles northeast of Minneapolis.
A few hundred local residents gathered Monday night for a vigil at the Barron High School football field to support Jayme's loved ones. The vigil was called a "Gathering of Hope."
First Lutheran Church Pastor Ron Mathews was one of many community leaders to speak.
"Hope is the sure presence of peace in the midst of grief and deep sadness," Mathews said.


Clariant has announced sales for Q3 2018, as well as the first nine months of 2018.
During the third quarter of 2018, sales increased 5% to CHF 1.605 billion, which the company largely attributed to price increases. Growth was driven by strong sales progression in care chemicals and natural resources.
For the first nine months of 2018, the company reported sales of CHF 4.994 billion.


Each winter, NHPPA offers a series of one day workshops to members. The classes are offered between January and March, and members can sign up to attend as many as they wish. There are a wide range of topics covered and superb instructors. There is a nominal fee that goes directly into a "speaker fund" which creates even more educational opportunities! PPA members earn one Continuing Education Merit for attendance at their first event.
If you have any questions regarding the Photo Festival program or are interested in offering a program, please contact the Photo Festival Chair listed below.
Candace Pratt Stiteler, Cr.Photog., CPP, CBM, ABI, C.Ph.


Medicare patients who receive care in a hospital outpatient department are likely to be poorer and have more severe chronic conditions than Medicare patients treated in an independent physician office, according to a study released today and prepared for the AHA. The study by KNG Health Consulting LLC also specifically examined the characteristics of Medicare cancer patients seen in HOPDs and IPOs and found similar results.
The study's findings were discussed at an AHA-sponsored briefing today on Capitol Hill. Hospital leaders shared with congressional members and staff why proposals, including one from the Centers for Medicare & Medicaid Services to expand certain site-neutral payment policies to grandfathered off-campus hospital provider-based departments, could threaten access to care for vulnerable patients and communities.
In addition, Ken Hart, president of Saint Alphonsus Medical Center in Ontario, Ore., said CMS's proposed cuts would "really impact rural hospitals," like his and could cause the hospital to cut back on programs that are designed to reduce poverty in the community.


text:
Q: Structuremap type mapping I currently have:
var container = new Container(x =>
{
    x.For<IService>().Use<Service>().Singleton();
}

This replaces all instances of new IService() with new Service();
I also have:
var T = typeof(IService);

How do I inject Service there?

redpajama_set_name: RedPajamaStackExchange


Do you follow the TWEETER-in-Chief??
Today is a bright shiny day in Ebbetts Pass. Roads are all clear and the sun has warmed up the cool morning air and Calaveras County residents are out moving around.
Be ready, however, because there is another bunch of storms coming in later today and the rest of the week.
The Chargers face the Patriots today in the NFL Playoffs.
Later, the Eagles face the Saints.


text:
A New Environmentalism?
As you probably know by now, Al Gore won the Nobel Peace Prize last week, sharing the medal and the money with the Inter-governmental Panel on Climate Change. This seems to have triggered some new press for consideration of the idea of what it means to be an environmentalist.
Though few dispute the idea that concern about global warming and other environmental ills is a great good, I've encountered increasing hostility for the methods used to provoke it. Perhaps this isn't truly new, but until last week, I'd never heard such criticism formulated very thoroughly or exactly.
Salon, an online newsmagazine, recently published an except from Break Through: From the Death of Environmentalism to the Politics of Possibility, a recent release from Michael Shellenberger and Ted Nordhaus. The excerpt condemns the prototypical environmental narrative that humans are bad and sinful creatures who have wronged the planet and "Nature."
This is the method that was used by Rachel Carson. And it's the method still used by Mr. Gore. It's also the method of every environmentalist that made a normal person want to pull their hair out.
As Nordhaus and Shellenberger explain the technique, an activist will:
wrap the latest scientific research about an ecological calamity in a tragic narrative that conjures nostalgia for Nature while prophesying ever worse disasters to come unless human societies repent for their sins against Nature and work for a return to a harmonious relationship with the natural world.
Eco-tragedies are premised on the notion that humankind's survival depends on understanding that ecological crises are a consequence of human intrusions on Nature, and that humans must let go of their consumer, religious, and ideological fantasies and recognize where their true self-interest lies. …
For the most part, these environmentalist cautionary tales have had the opposite of their intended effect, provoking fatalism, conservatism, and survivalism among readers and the lay public, not the rational embrace of environmental policies. Constantly surprised and angered when people fail to behave as environmentalists would like them to, environment writers complain that the public is irrational, in denial, or just plain foolish.
The Economist's Green.view column recently echoed the book's sentiment–a distaste for the tradition of the eco-tragedy–but proffers an unlikely hero for the New Environmentalism, Prince Albert of Monaco:
…Most people around the world, [Prince Albert] said, and certainly all governments, were going to have to change their ways. Monaco was indeed part of the problem, and would do its bit to find a solution. But he was not about to trade his ermine robes for a hair shirt.
All of which makes a refreshing change from the hand-wringing greenery of more celebrated environmental campaigners, such as Al Gore, the newly-anointed Nobel laureate. It is not that global warming is not a serious concern (it is), or that the world can afford to be blasé in its response (it cannot). But too much rhetoric of that kind becomes self-defeating: it paints the task ahead as an insurmountable problem, thus frightening people into apathy.
The environmental movement, in other words, needs a few more sunny optimists. Amid the race to save the world from catastrophe, there's time for a grand prix or two. And we do not all need to give up our dream of owning a flashy sailboat for the sake of the planet. Perhaps they gave the gong to the wrong Al.
Though I've never considered myself an environmentalist–something I think the hardcore would claim predisposes me to favor a friendlier New Environmentalism–I hope that activists begin to recognize the importance of optimism in their activism. Pessimism and condemnation turn people off and make them upset. No one wants to be part of the problem, but that is all the traditional environmentalist's narrative allows them to be.
And indeed, much of the reason I never wanted to be an environmentalist is precisely the problem that Shellenberger and Nordhaus say they have with activists like Carson and Gore: they're too willing to offer a future full of torture and despair, too willing to reject couch revolutionaries–those who would do like to do something, but don't possess the time, energy, or will to do all the movement asks.
What a New Environmentalism can do–should do–is to lead those with sympathies for the movement toward a brighter future for the planet. And lead, not with pessimistic tales of future dread, but armed with the truth that if everyone does something, things can change faster than if a small committed contingent does a lot.
Such a movement would need to recognize that the world would not be a better place if all humans suddenly disappeared–something too many environmentalists seem to favor. The self-defeating ideology of the old environmentalism cannot be sustained. A New Environmentalism must push forward with hope; must encourage all people, everywhere, to do what they can. It can't merely criticize and condemn; it must also be hopeful and uplifting.
Only if such a movement materializes, either through Al Gore or perhaps a new group of activists, could a New Environmentalism truly take hold. I, for one, am hoping that it will.
david (b) hayes
politics, world
2 responses to "A New Environmentalism?"
Unkie Herb says:
One thing I love about the Economist is that they know the world's big players read their stuff.
Hopefully Gore will read this and reconsider his movement. While the gloomy tales of a dead planet may have gotten people's attention at first, you are fully correct that eventually people will tune him out simply because they don't want to hear anymore fear-mongering. Switching to a brighter, hopeful message of real change could do wonders to keep the public focus where it belongs – on the little things we can do every day to make a difference.
Once again, my man, poignant and critical stuff. Thanks.
i agree. i think more than fear leading people to apathy, it more precisely leads them to nihilism, which is a bit more aggressive than apathy.


text:
Michigan Boer Goat
Best Assignments For Students
According statistics women continue to be subordinate to men.
According to the World Bank, women represent 49.56% of the world's population, and yet despite this significant statistics women continue to be subordinate to men. In some parts of the world this inequality manifests in discrepancies in salary; in others, it is witnessed in access to healthcare or other basic resources outside the home. The momentum for change is slowly building, though, and it can be further bolstered by taking steps to empower women around the globe. This article offers some essential ways to empower women in an effort to build a greater sense of connectivity between the worldwide female population and a stronger global economy overall. Essential #1: Encourage EducationOne of the most effective ways to empower women is to extend educational opportunities to them, because education not only informs but empowers itself. A basic means of such education is to promote literacy efforts. The World Bank reports that more than 17% of the international female population is illiterate. This percentage calculates to more than 1.3 billion women who struggle with reading or cannot read at all, which presents a monumental barrier to communication and to involvement in the community and participation in business. Beyond the basics of literacy, education in the realm of job skills can also take women great strides to advance. Teaching women around the world how to perform business-oriented tasks or talents can boost the likelihood they will go on to form their own business, which in turn can benefit the overall economy. Essential #2: Increase IndependenceAnother essential in the pursuit of female empowerment is the cultivation of a sense of independence. Again, this independence can be scaled to different regions. In some regions of Nepal, for example, women are not allowed to leave their homes without permission, so programs that encourage women to just physically leave the house can be crucial. Independence can also be encouraged by fostering within women the importance of strong financial decisions. Education on opening individual savings account as well as options for micro-grants or loans that might be available can help conjure a sense of financial independence that can embolden women to make more significant decisions in both the personal and professional realms. Essential #3: Help Promote HealthA final key component to women's empowerment is the promotion of adequate and accessible health care. Women deserve equal participation in general health care initiatives as well as education on preventative measures for various diseases and conditions. Women can also gain inspiration from initiatives that inspire psychological wellbeing. Women who can participate in community social or professional networks can both feel more connected and also more capable, thereby further promoting a sense of independence and control. Why Empowerment is ImportantWomen's empowerment can boost women's independence and self-esteem, make them more active contributors to society, and build sense of female community where currently there might be little to none. Beyond these individual benefits, though, studies show that empowerment of women can also be a boon to their families and their larger communities. Studies by the United Nations revealed, for example, that increased female participation in local business has been shown to boost the area's overall economy. Greater education of women has also been shown, among other benefits to children, to decrease infant mortality rates in some regions. What these figures reveal is that the empowerment of women can help everyone, and, given the already promising economic impacts of women becoming active in the global economy, that empowerment hopefully will continue to grow to everyone's benefit. Sources: "10 way to empower women." READ Global – Inspiring Rural Prosperity © 2016. "Facts and Figures: Economic Empowerment." United Nations Commission on the Status of Women. "Population, female (% of total)." The World Bank © 2017. "Literacy rate, adult female (% of total)." The World Bank © 2017. "Women's Empowerment Principles." United Nations Commission on the Status of Women.
1 INTRODUCTION Good governance is said to be the basis of development in any democratic form of government
Introduction Bank Negara Malaysia
EFFECTS OF FINANCIAL REGULATIONS ON THE FINANCIAL PERFORMANCE OF COMMERCIAL BANKS IN KENYA
Introduction Violet Paget
CHAPTER – ONE INTRODUCTION 1
Previous Previous post: behavior media platforms such as Facebook, Linkedin, Twitter, and
Next Next post: Abstract the transferring and the goal UEs utilizing the
New Assignments
Mathematical as (5) (b) DG at lagging power factor
Game-based can conduct gamebased learning at any time and
2.5 government health spending has increased moderately since the
Summarizing allows cardiovascular and proprioceptive improvement as well as
All management as well. Operations management is the central
§ 2010, ?t Delhi. it w?? indi?'? m??t ?ucce??ful
Michigan Boer Goat | Designed by: Theme Freesia | WordPress | © Copyright All right reserved
I'm Brent!


text:
Q: Where should I install CMake? I am trying to pip install dlib for a project I am working on, but when I try I get this error:

RuntimeError: CMake must be installed to build the following extensions: dlib

I tried to install CMake, but couldn't understand where should I locate the extracted files?

A: if you are using conda follow below command
conda install -c conda-forge dlib

A: Before installing dlib you need to install prerequisites (cmake, libgtk-3-dev, libboost-all-dev)
If you are using Ubuntu you can install them from terminal

sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev

For MACOS you can follow this tutorial
https://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/

A: Here is the main thread solution of this error https://stackoverflow.com/a/52564257/7060530
I ran into this issue as well. I am using windows and have a python environment that I am installing the requirements to.
I ran pip install cmake , and then pip install dlib. I no longer received the error and successfully installed dlib.

A: Download " Binary distributions " with your system OS version from this link. Add install cmake to your system environment variable. Everything will be okay. It worked for me.
https://cmake.org/download/

A: You can find here the download and all the details.


text:
Kremlin critic Alexey Navalny is ordered to remain in custody, less than 24 hours after he was arrested on his retu�twitter.com/i/web/status/1…x0
"I am growing strong and waiting to get out of my mom's belly," fetus Marriah Greene says on her Facebook profile.
Unborn child has Facebook profile
Unborn baby Marriah Greene has a lot to say, at least according to her Facebook profile.
The child attends Tummy University, enjoys soccer and swimming and talks in first person. And her friends talk back to her– in baby-speak, naturally.
Of course, it's really her mother, Ellie Greene of Whitehouse, Texas, updating the page, but the fetus already has more than 260 friends.
When Ellie and her husband, Matt, decided it was time to announce their pregnancy, they wanted a quick, inclusive method, and what's faster than Facebook to spread exciting news?
"Within a day she had over 100 friends," Ellie said, according to affiliate KLTV.
[cnn-video url="http://www.cnn.com/video/#/video/living/2011/05/31/dnt.unborn.baby.facebook.cnn"%5D
Friends quickly responded to updates about Marriah. They give advice, make jokes and compliment her beauty in the ultrasound photos.
"We wanted to keep the page going, so she could go back and look at it," Ellie said, giving her daughter the opportunity to see how many people adored her before she was even born.
The parents plan to continue updating the page, with her birth story coming soon. After all, "The word in the belly is there's a lot more to see."
Post by: Journalist Elizabeth Johnson
Filed under: Facebook • Technology • Texas
Dr. Hook
May 31, 2011 at 10:40 pm | Report abuse |
No. Not Captain Hook. Dr. Hook. Bloody Dr. Hook. The one with the bloody hook.
Ruin the poor childs life .. facebook is for data mining. uhh so great that facebook thing.. ja sell yourself and all about you.The advertising industry, governments etc will be happy. Go ahead folks, believe in facebook and down the road you will maybe learn about data privacy. The same of course applies to Google. THese big ass companies are just a simple disaster for the economy and the privacy of an individual. For me, i would have kicked my mothers rear if she would have posted me on facebook. It is not only your friends that can see it. Chats are logged, any of your movements there. Just a question of time until the government gets the idea to go and harvest as they did with all of these big asses such as Yahoo etc. How can somone be so blind not to see what is going on. People already have lost their jobs over facebook, Unemployment etc has been cut because of some posts there. You guys really dont know what you are doing.
I saw this and initially said: "hmm, must be a pro-life thing." Then read the article (always handy, especially on CNN), had said: "hmm, fluff."
But aside from future congrats, the only thing I'd like to point out to "I'm going to kill it for lunch" Zuckerberg is: "IT'S NOT EVEN BORN, LET ALONE 13!!!!" Sigh.
Good luck to the Greenes!
It's pitiful that this makes it on to CNN at all, let alone their main page. WHO CARES?! This is not news.
chaz Romano (not real name. take that CNN)
this is against facebook TOS. Profile should be removed.
pinkdynamite
this is just odd. to parade it around like that. and at four months I'd still be too concerned about a miscarriage as if to personify the fetus to this extent. what happened to photoalbums and scrapbooks to keep for the kid later on?
June 1, 2011 at 11:12 am | Report abuse |
Facebook's terms of service clearly state that users must be at least 13 years old. A page for a fetus clearly violates this and should be removed. Not to mention that this is just beyond stupid anyway.
Reality Cheque
June 1, 2011 at 1:07 am | Report abuse |
WardHorkin
You all know that the baby isn't REALLY using the facebook page right!? OH wow, you all are silly!! No, the baby doesn't actually have a smart phone or a laptop inside the womb! HAHA! So, no, the baby's age is irrelevant, isn't that neat!?
David Keller
Cool –
Let's just rename Facebook, " Fetusbook " right now and have done with it ( ! )
– D.B.Keller
ROFL.
OMG –
It's not another one of Arnold's IS IT ? ? ? ! ! ! :^ )
Bewitched, Bothered and Bewildered in Akron (again )
We Were First
I hate to say this but why are they so special? They were not the 1st one to do that. And i Know! I started one as a joke when my wife conceived the first time, and she grew into it, but sadly we lost that child to a miscarriage. Then 2 months later we conceived again. We made the official and formal announcement after 3 months to friends, family and others on facebook. Guess what, that was over a month before this couple did it and my wife is due June 16. So why are they special? Why are they so news worthy to be on WTTE Fox 28 Columbus, KLTV 7, and CNN when they aren't the first nor the only one? We do it because i have family that live far away and its a great tool for announcements, updates and posting ultrasound pics as well.
Sorry, you were not first. A simple Google search reveals others who have created FB profiles for their fetuses long before you. It's still a violation of FB's terms of service, and it's still just stupid.
AlienShark
ok, I mean, I am nobody to judge...if she wants to have a facebook page for her fetus well then we just celebrated Memorial Day for millions of troops who were willing to put their lives on the line to fight for her freedom to do so...Good luck with the baby, stay blessed.
You do know that Facebook doesn't allow anyone under 13 years old on their site, right?
Someone should report this to Facebook so they shut it down like all the other profiles that violate their terms...
These parents are ridiculous. They are delusional about the importance of their kid to anyone but them. No wonder kids can't do stuff for themselves anymore – their parents are setting a horrible example while they are still in the womb!
Of course, I probably should have expected this when I first read the kid's name! MARRIAH? Another mombie who thinks a great way to make their kid unique is to give them a regular name and then spell it wrong.
Awww, my name's not rregular. But it is rretarrded to spell it with 2 r's. 😛 lol
I would never do this to my unborn child; I'd be afraid I'd be jinxing my pregnancy.
What happened to protecting Kids?
It seems the entire planet has the opinion everyone wants to know what they do every second of every minute, of every hour, of every day !! ***And CNN Our soldiers are dying everyday, we are still at war on several fronts, the economy is still in the tank and Companies are still moving jobs out of the US, we still give them hugh tax breaks, WHY? Any one of these topics would be good pick one
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Next »
Just a little more than halfway into January, the US has added a staggering 3.9 million new Covid-19 cases and more�twitter.com/i/web/status/1…PC
BREAKING: Kremlin critic Alexey Navalny is ordered to remain in custody, less than 24 hours after he was arrested o�twitter.com/i/web/status/1…Ll
Lionel Messi was shown the first red card of his Barcelona career, as Ronald Koeman's side suffered a 3-2 extra-tim�twitter.com/i/web/status/1…vR
Oh god. I meant to say a moment of LEVITY. I need more sleep. Lol


text:
package justin.db.consistenthashing

import org.scalatest.{FlatSpec, Matchers}

class RingTest extends FlatSpec with Matchers {

  behavior of "Ring"

  it should "define its size by nr of partitions" in {
    val N = 3  // nr of nodes
    val S = 50 // nr of partitions

    val ring = Ring.apply(N, S)

    ring.size shouldBe S
  }

  it should "has expected set of node ids" in {
    val N = 3  // nr of nodes
    val S = 50 // nr of partitions

    val ring = Ring.apply(N, S)

    ring.nodesId shouldBe Set(NodeId(0), NodeId(1), NodeId(2))
  }

  it should "initialize Ring with vnodes" in {
    val N = 5  // nr of nodes - recommended by Riak database team
    val S = 64 // nr of partitions - recommended by Riak database team

    val ring = Ring.apply(N, S)

    val expectedSwappedRing = Map(
      NodeId(0) -> List(0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60),
      NodeId(1) -> List(1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61),
      NodeId(2) -> List(2, 7, 12, 17, 22, 27, 32, 37, 42, 47, 52, 57, 62),
      NodeId(3) -> List(3, 8, 13, 18, 23, 28, 33, 38, 43, 48, 53, 58, 63),
      NodeId(4) -> List(4, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59)
    )

    ring.swap shouldBe expectedSwappedRing
  }

  it should "start indexing of partitions from 0" in {
    val ring = Ring.apply(nodesSize = 5, partitionsSize = 64)

    ring.getNodeId(0) shouldBe defined
  }

  it should "end indexing of partitions with index that is minus one of ring's size" in {
    val ring = Ring.apply(nodesSize = 5, partitionsSize = 64)

    val lastIdx = ring.size - 1

    ring.getNodeId(lastIdx)     shouldBe defined
    ring.getNodeId(lastIdx + 1) should not be defined
  }

  it should "stringify itself" in {
    val ring = Ring.apply(nodesSize = 2, partitionsSize = 2)

    ring.toString shouldBe "Map(0 -> NodeId(0), 1 -> NodeId(1))"
  }

  it should "update value for particular key" in {
    val ring = Ring.apply(nodesSize = 5, partitionsSize = 64)

    val updatedRing = ring.updated(ringPartitionId = 2, nodeId = NodeId(100))

    updatedRing.getNodeId(id = 2) shouldBe Some(NodeId(100))
  }

  behavior of "Ring Add Node"

  it should "end up with AlreadyExistingNodeId when trying to add reserved node id" in {
    val ring = Ring.apply(nodesSize = 5, partitionsSize = 64)

    Ring.addNode(ring, nodeId = NodeId(0)) shouldBe Ring.AlreadyExistingNodeId
    Ring.addNode(ring, nodeId = NodeId(1)) shouldBe Ring.AlreadyExistingNodeId
    Ring.addNode(ring, nodeId = NodeId(2)) shouldBe Ring.AlreadyExistingNodeId
    Ring.addNode(ring, nodeId = NodeId(3)) shouldBe Ring.AlreadyExistingNodeId
    Ring.addNode(ring, nodeId = NodeId(4)) shouldBe Ring.AlreadyExistingNodeId
  }

  it should "take over some partitions by added node" in {
    // given
    val nodesSize      = 4
    val partitionsSize = 36
    val ring           = Ring.apply(nodesSize, partitionsSize)

    // when
    val nodeId          = NodeId(5)
    val updateResult    = Ring.addNode(ring, nodeId).asInstanceOf[Ring.UpdatedRingWithTakenPartitions]
    val updatedRing     = updateResult.ring
    val takenPartitions = updateResult.takeOverDataFrom

    // then
    updatedRing.ring.size shouldBe ring.size
    updatedRing.nodesId   shouldBe (ring.nodesId + nodeId)

    takenPartitions should not be empty
  }
}

redpajama_set_name: RedPajamaGithub