text:
List of Herbivores in the Ocean
••• ShaneMyersPhoto/iStock/GettyImages
Facts About Animals of West Africa
By Bjorck DiMarco
The oceans are home to a wide variety of species of all shapes and sizes — from the tiny stout infantfish, to the shelled sea turtles, to the 100-foot-long blue whale. Many species in the ocean have evolved to eat plant matter, rather than meat — some species eat both. These different groups are called herbivores, carnivores, and omnivores, respectively. Herbivores in the ocean can be reptile, fish or mammal. Some of them provide food for carnivorous or omnivorous predators of the deep.
Green Sea Turtles: Prolific Plant-eaters
The green sea turtle has an incredible range of habitation, stretching from Finland to the tip of Cape Horn in Africa, though it generally prefers tropical and subtropical waters. The green sea turtle has a wide smooth shell, or carapace, and is named for the greenish color of its skin rather than its shell, which normally is brown or olive in color. Green sea turtles eat seagrasses and algae, though juveniles snack on crabs, sponges, and jellyfish. In the wild, they can live up to 80 years and grow up to five feet long. They can weigh as much as 700 lbs. Once mature, it is the only sea turtle that is strictly herbivorous.
Manatees: Cows of the Sea
••• Comstock Images/Stockbyte/Getty Images
Manatees, sometimes called sea cows, move at a languid pace through coastal waters and rivers. Despite their bulk, they are graceful and powerful swimmers. Manatees use their tails to glide along at about five miles an hour, though they can manage 15 miles per hour for short distances. While they prefer to travel alone or in pairs, groups of about a half dozen are sometimes seen together. Their diet consists of water grasses, weeds, and algae. Typically, manatees eat a 10th of their weight every 24 hours. Unlike seals or sea lions, manatees never leave the water. When resting, they can remain below the surface of the water for up to 15 minutes. While swimming, they surface to breathe every few minutes. Geographic location distinguishes the three different manatee species. West Indian manatees primarily inhabit the southern waters of the United States but can range as far south as Guyana, South America. Amazonian manatees only live in the waters of the Amazon River. The West African manatees range along the western coastal waters of Africa from the Senegal River in Senegal to the Kwanza River in Angola.
Dugongs: Oceanic Grazers
••• stephan kerkhofs/iStock/Getty Images
Dugongs are related to manatees, which are both endangered and protected animals. These slow-moving herbivores graze on underwater grasses, rooting them out with bristled, sensitive snouts and chomping them with rough lips. Found in warm coastal waters, these enormous vegetarians are found from East Africa to Australia. Adults weigh between 500 and 1,000 lbs. They can grow up to 10 feet long with an average lifespan of 70 years. Like other sea mammals, dugongs can stay underwater for short periods of time until they must resurface to breathe. The dugong can stay underwater for up to six minutes. Though they tend to be found alone or in pairs, when dugong herds gather, they can number in the hundreds.
Parrot Fish: Algae-eaters
••• lilithlita/iStock/Getty Images
Parrotfish are colorful and unique. They range in size from one to four feet. Of the 80 identified species, all can change their gender as well as their coloration and patterns. This ability makes it difficult for ocean biologists to classify the species. Parrotfish are algae eaters. They obtain the algae by ripping small chunks of coral from a reef. The fish's grinding teeth, located in its throat, pulverize the coral. The teeth allow the fish to extract the algae from the center of the polyp inside.
Herbavores Across the Seven Seas
••• pablographix/iStock/Getty Images
Many other herbivores thrive among the fish population. The surgeon family of fish includes Achilles black-spot, blochii, blue hepatus tang, blue tang, brown, chocolate, convict tang, eyestripe, fowleri tang, Japan, lavender tang, powder blue tang, sailfin desjardinii tang, scopas tang and yellowtail tang. The blenny family includes bicolor, black, black sailfin canary, combtooth, flametail, lawnmower, lined, Midas, starry, striped and tailspot. The foxface family is comprised of the bicolor, foxface and magnificent. Unicornfish include the blond orangespine, orangespine and, whitemargin. Other herbivores include the Japanese angelfish, yellow bloth rabbitfish, and tilapia.
National Geographic: Dugong
National Geographic: Manatee
Sea World: Sea Turtles Diet and Eating Habits
Smithsonian National Museum of Natural History: Helpful Herbivores
Cornell University: Herbivory in Fish
Scripps Institution of Oceanography: Herbivore management may be the key to balancing the energetic budget on coral reefs
Bjorck DiMarco has been the Senior Editor at an independent publishing house since 1994. She holds advanced degrees in teaching, English and creative writing, graduating summa cum laude from Tufts University and the University of Massachusetts. DiMarco has also worked in construction, fine woodworking, graphic design and theoretical mathematics.
Animals & Plants in the Temperate Oceans
A List of Pelagic Fish
What Plants Live in the Atlantic Ocean?
List of Mammals in Tennessee
List of Fish That Are Bottom Feeders


text:
using FluentAssertions;
using FluentAssertions.Execution;
using FluentAssertions.Reflection;
using System.Reflection;

namespace Qowaiv.TestTools.FluentAssertions;

/// Extensions on <see cref="AssemblyAssertions"/>.
public static class QowaivAssemblyAssertions
{
    /// Asserts the <see cref="Assembly"/> to have a specific public key.
    [CLSCompliant(false)]
    [CustomAssertion]
    public static AndConstraint<AssemblyAssertions> HavePublicKey(this AssemblyAssertions assertions, string publicKey, string because = "", params object[] becauseArgs)
    {
        Guard.NotNull(assertions, nameof(assertions));

        var bytes = assertions.Subject.GetName().GetPublicKey() ?? Array.Empty<byte>();
        var assemblyKey = BitConverter.ToString(bytes).Replace("-", "");

        Execute.Assertion
            .BecauseOf(because, becauseArgs)
            .ForCondition(assemblyKey == publicKey)
            .FailWith(
            $"Expected '{assertions.Subject}' to have public key: {publicKey},{Environment.NewLine}" +
            $"but got: {assemblyKey} instead.");

        return new AndConstraint<AssemblyAssertions>(assertions);
    }
}

redpajama_set_name: RedPajamaGithub


text:
Q: Create a User with Model Bakery I would like to create a Person instance with Model Bakery.  My Person model looks like this:
User = get_user_model()

class Person(models.Model):
    user = models.OneToOneField(User, related_name="friend", on_delete=CASCADE)
    country = models.CharField(max_length=100)

My baker_recipes.py looks like this:
from model_bakery.recipe import Recipe

User = get_user_model()
test_user = User(username="test_user")

person = Recipe(Person, user = test_user)

My tests.py looks like this:
import pytest
from model_bakery import baker

@pytest.mark.django_db()
class TestPerson:
    def setup(self):
        self.person = baker.make_recipe("company.tests.person")

    def test_country_access(self):
        assert True

But when I run pytest with this set up I get the following error:
django.db.utils.IntegrityError: insert or update on table "company_person" violates foreign key constraint "company_person_user_id_4f1cc5d0_fk_auth_user_id"
DETAIL:  Key (user_id)=(411) is not present in table "auth_user".

A:     import pytest
    from model_bakery import baker

    @pytest.mark.django_db()
    class TestPerson:
        def setup(self):
            # replace this
            self.person = baker.make_recipe("company.tests.person")
            # with this
            self.person = baker.make(Person, ...optional_field_params)

        def test_country_access(self):
            assert a_condition_is_true
            # assert True is not logical here so comented out

N.B with baker.make the created instance is persisted to the test db on setup with baker.prepare  on the other hand  it is not persisted.

redpajama_set_name: RedPajamaStackExchange


text:
Top 10 Rock Albums of 2011
Loudwire Staff
Kevin Winter, Getty Images / Mary Ouellette, SheWillShootYou.com / Ethan Miller, Getty Images
A diverse mix of hard rock releases dropped in 2011, featuring familiar names like Foo Fighters and Red Hot Chili Peppers alongside comeback discs from bands like Primus and Evanescence. Hard-rocking bands such as Seether and Five Finger Death Punch dominated radio with singles off their 2011 albums, and Rise Against achieved commercial success while raising awareness on a number of social issues. We've also counted down the top metal albums of the year, but here we present you with Loudwire's Top 10 Rock Albums of 2011:
'Green Naugahyde'
With their first album in 11 years, Primus made a triumphant return in 2011 with 'Green Naugahyde.' The disc, a collection of quirky tunes powered by frontman Les Claypool's trademark bass lines, ranks up there with Primus' best albums. The single 'Tragedy's a Comin'" deals with some dark themes, but 'Green Naugahyde' proves that things are as bright as ever in the world of Primus.
'American Capitalist'
Five Finger Death Punch have become big players in the hard rock world, and their third album 'American Capitalist' offers up a big step in their climb up the rock ladder. The band came out swinging against haters with the disc's first single, the metal anthem 'Under and Over It,' but show their versatility with the melodic rock ballad 'Remember Everything.'
'This Is Gonna Hurt'
Sixx: A.M.
'This Is Gonna Hurt' is not just the second album from Sixx: A.M., but verification that the band is not just a side project for Motley Crue bassist Nikki Sixx. Along with Sixx, guitarist DJ Ashba and singer James Michael delivered a powerful disc that contains two big rock hits -- 'Lies of the Beautiful People' and the title track, the latter of which took the No. 1 spot on our Top 10 Rock Songs of 2011 list.
'Staind'
Staind's latest effort nearly tore the band apart, but the end result is a powerful disc. Drummer Jon Wysocki left the band during the recording sessions, while frontman Aaron Lewis and Mike Mushok butted heads throughout the making of the album. However, with heavy songs like the first single 'Not Again,' the self-titled disc is one of the band's most solid efforts to date.
'Endgame'
Rise Against have never been afraid to take on society's toughest issues, and that's exactly what the band does on 'Endgame.' The album tackles several sociopolitical issues, with the single 'Make It Stop (September's Children)' dealing with the bullying of gay and lesbian teens. With 'Endgame,' Rise Against continue to show that a band can rock hard and be socially conscious at the same.
'The Unforgiving'
Dutch rock band Within Temptation gave fans a treat with the release of their fifth studio album, 'The Unforgiving.' The disc was accompanied by a series of short films and a comic book. So far, Within Temptation has released three up tempo songs from the disc, 'Faster,' 'Sinead' (which will get you dancing) and 'Shot in the Dark.' 'The Unforgiving' is the band's first album in five years and it was certainly worth the long wait.
'I'm With You'
A few years ago, longtime guitarist John Frusciante left Red Hot Chili Peppers, leaving the band's future in doubt. However, with new axe-man Josh Klinghoffer in tow, the Peppers have made a successful return with their latest album 'I'm With You.' The disc offers up the hits 'The Adventures of Rain Dance Maggie' and 'Monarchy of Roses,' along with a collection of melodic funk-rock jams.
'Wasting Light'
Foo Fighters are the model of consistency when it comes to producing rock-solid albums, and their latest effort 'Wasting Light' is no exception. The band doesn't stray to far from its signature sound on the disc, but the singles 'Rope' and 'Walk' rank alongside some of their best-known hits. And now the band is showing off its softer side with the album's newest single 'These Days.'
'Evanescence'
It had been a while since we heard from Evanescence, and boy did they come back in a big way in 2011. Their self-titled third album topped the Billboard 200 chart when it debuted in October and has already yielded the massive rock hit 'What You Want.' The disc shows that singer Amy Lee's voice is as hypnotic as ever, while showcasing the diverse music skills of the rest of the band.
'Holding Onto Strings Better Left to Fray'
Seether took over rock radio in 2011 with their album 'Holding Onto Strings Better Left to Fray.' The disc produced two monster singles: 'Country Song' is a rocking tune with some Nashville elements, while 'Tonight' may be Seether's most melodic single to date. Overall, the album offers up a collection of impassioned, hard-rocking tunes from frontman Shaun Morgan and company, making it Loudwire's Top Rock Album of 2011.
What's Your Favorite Rock Album of 2011?
Did your favorite rock album of the year make our list? Let us know which one of these albums was your favorite rock disc of 2011? Or, if you have another rock album to add to our list, mention it in the comments section below:
See Also: Top 10 Metal Albums of 2011
Categories: Lists, Original Features

redpajama_set_name: RedPajamaCommonCrawl


India will worship godess & little girls and for that matter women power. India will remember the time when all men of universe was looking for protection that was granted by the women power. And This will end after 9 days. All little girls may feel unsafe again. Should not it change? Are males waiting uprise of women power to kill Mahishasur in them? Is it #MeToo time, India!!