text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: gbmath::detail::value_name Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

gbmath
    v0.05

c++ math library

Main Page

Related Pages

Namespaces

Classes

Files

Class List

Class Index

Class Hierarchy

Class Members

gbmath

detail

value_name

Public Member Functions |
Private Attributes |
List of all members

gbmath::detail::value_name Class Reference

#include <valueserver.h>

Public Member Functions

 	value_name ()

 	value_name (const char *name)  throw (std::runtime_error)

 	~value_name ()

bool 	empty () const

bool 	operator== (const value_name &a) const

bool 	operator== (const char *a) const   throw (std::runtime_error)

void 	operator= (const char *a)  throw (std::runtime_error)

Private Attributes

char 	m_name [32]

Detailed Description

Definition at line 24 of file valueserver.h.

Constructor & Destructor Documentation

          gbmath::detail::value_name::value_name
          (
          )

inline

Definition at line 30 of file valueserver.h.

          gbmath::detail::value_name::value_name
          (
          const char *
          name)

          throw 	(	std::runtime_error

          	)

Definition at line 61 of file valueserver.cpp.

          gbmath::detail::value_name::~value_name
          (
          )

inline

Definition at line 36 of file valueserver.h.

Member Function Documentation

          bool gbmath::detail::value_name::empty
          (
          )
           const

inline

Definition at line 39 of file valueserver.h.

          void gbmath::detail::value_name::operator=
          (
          const char *
          a)

          throw 	(	std::runtime_error

          	)

Definition at line 111 of file valueserver.cpp.

          bool gbmath::detail::value_name::operator==
          (
          const value_name &
          a)
           const

inline

Definition at line 44 of file valueserver.h.

          bool gbmath::detail::value_name::operator==
          (
          const char *
          a)
           const

          throw 	(	std::runtime_error

          	)

Definition at line 69 of file valueserver.cpp.

Member Data Documentation

          char gbmath::detail::value_name::m_name[32]

private

Definition at line 26 of file valueserver.h.

The documentation for this class was generated from the following files:

valueserver.h

valueserver.cpp

   Project page:  https://code.google.com/p/gbmath/

   Doc page:  http://www.it.ks777.ru/docs

Generated on Sat Jul 27 2013 08:09:04 for gbmath by

 1.8.4

redpajama_set_name: RedPajamaGithub


text:
Chris Noth on His Controversial Role in White Girl and Where He Thinks Mr. Big and Peter Florrick Are Now
Warning: White Girl spoilers ahead.
By Leigh Belz Ray Updated Sep 12, 2016 @ 1:15 pm
Chris Noth Potrait
Credit: Mark Lim
It's unsettling to see Chris Noth playing a sleazy guy. Let's just get that out there. But the Golden Globe nominee's performance in Elizabeth Wood's White Girl, out now in limited release, is so good and so surprising that it's worth the mixed emotions you're left with after the film ends. Noth plays George Fratelli, a lawyer who, for a price, is willing to help main character Leah (Morgan Saylor), an over-her-head college student, defend her boyfriend so he avoids prison time. The 61-year-old actor came to InStyle's office last week to talk about the role, living as an actor in New York and why he claims to hate "99.9 percent" of his past TV work.
Your character kind of stares at the main character Leah in a somewhat perplexed fashion when she first comes into your office ...
Well, that's how I chose to play it. Sandy Meisner, my great acting teacher, used to talk to us in class about the magic use of "as if" so if I'm doing a straight-ahead scene, in my head I may be thinking, "I'm talking to this woman as if she's absolutely insane." But that character in the movie is just yet another person who's using someone for their own purposes, and yet he's supposed to be helping her. And he does help her in the end, but it's after he gets what he wants. But you don't necessarily think that's going to happen when you first meet him and the event that happens kind of tips her to then reevaluate what she's doing with herself.
Chris Noth Still - Embed 2016
Credit: Michael Simmonds
There's a lot of the idea of "people using other people" in the film.
Everyone in the movie wants different things, whether it's experience or sex or drugs. That's one part of the fabric of it. Even the young girls in the movie, they want to have an experience in the city. And to get that, you're going to have to pay the price. But when you're young, you don't always think you have to pay the price. And there's an unconscious courage where you don't always look at the danger in certain situations. So when Leah goes across the street in the beginning of the movie to score grass, she doesn't even think about it. It's an unconscious thing. I can relate to it because I think there's something about New York City that gives you that.
If you've never been to the city and you want to get out of a certain school or family or small town—there's something about the city that just hits you in the face and you can get lost in it. It's very freeing. I think there are a lot of different things going on in the movie and it's elicited a lot of conversation, which I like. It's a very visceral film. It's hard to talk about. You really have to see it.
How did you feel when you saw the film?
I was happy with it. I have to say, I think the choices in the editing and the cinematography were great. I'm usually 99.9 percent unhappy with my TV work, except in Sex & the City. I can barely watch it.
Really?!
Yeah! And except for the early Law & Orders too. We were using film, as was Sex & the City. But to be honest, it's really hard for me to watch The Good Wife. I'm not crazy about my work in it. I'm not criticizing the show because I think it's a really, really good show. I just have a hard time looking at myself in it without going blauugh.
I always felt like with TV they would leave things out, so some of the nuance and character work was cut out because they only have 42 minutes. So I really was very happy with White Girl and how it was put together and the scene, the painful scene, was actually shot beautifully. Painful because it was so ugly—because it was a rape. There was a lot of discussion in the media that "well, this would never happen with women, the sexuality of the film, maybe with men." I don't know where they're getting that opinion from.
Do you think it's harder to be a young person in New York now, compared to 20 to 30 years ago?
I was just talking to Bradley Whitford about that because we were just on Live with Kelly! He graduated from Juilliard and I graduated from Yale School of Drama at the same time. And I said "remember back in the '80s, there wasn't a hell of a lot going on in New York, film and TV-wise?" Because when I got Law & Order I felt like the luckiest actor. Now, some people feel like there are more New York TV and film acting opportunities than L.A. New York is a mecca!
So on the one hand, it feels like to me ... we used to compete for bartending jobs. It was dog eat dog. I think now it's just as tough but for different reasons. Back then we could still live in Manhattan. I had a studio apartment on Downing Street for $400 a month. You could find deals. You could find a way to live in Manhattan and survive without making huge amounts of money. An artist could make it. Now, let's face it. Manhattan has calcified to the one percent.
So you've talked about some of your other well-known characters, Mike Logan from Law & Order, Mr. Big from Sex & the City, and Peter Florrick from The Good Wife. If you imagine them right now, today, what do you think they're doing?
It's fun to think about that. Well, we did do a Law & Order movie called Exiled in 1998. In the fifth season, my character hit a council guy and I got shipped off to Staten Island and that's how I left the show. But Exiled was Logan fighting his way back to Manhattan, so there was that. Peter Florrick, I'd suppose ends up just as he began: "I'm innocent!" [laughs]. And, well, Mr. Big, he's living the good life, I suppose, the one percent. Hopefully, he's not voting for Trump.

redpajama_set_name: RedPajamaCommonCrawl


text:
Stop by the
Stephens Museum
The Stephens Museum is now closed. You will be able to view its wonderful natural history collection in the spring when the museum reopens on the lower level of Stedman Hall. In the meantime, please take a moment to stop by the new Central Museum of History in T. Berry Smith Hall, allowing students, the Fayette community and visitors a chance to take a look up clos at the history of Central Methodist, Fayette, and Missouri Methodism.
The Ashby-Hodge Gallery of American Art
Little Theatre
Morrison Observatory
Swinney Conservatory of Music
Central Museum of History
The Stephens Museum originated in 1875 when then-Central College Curator, Lawrence V. (Lon) Stephens donated $5,000 for the purchase of a brick residence located on the edge of the college. This is where the museum was originally housed.
The museum's collection has greatly expanded over the years, first boosted by the efforts of J. W. Kilpatrick, a professor at Central. Before he died in 1904, Kilpatrick had been preparing to retrieve a collection of fossils and minerals from the Scarritt Bible and Training School in Kansas City. The items were secured for the museum, and students, alumni, and friends have added to the collection ever since.
Dr. Kenneth P. Stephens, head of the college's biology department in the 1930's, is credited with much of the museum progression. Later curators included "Doc" Farris Woods, Mary Ellen McVicker, Dr. Joe Geist, Professor Tom Yancey, and Dr. Dan Elliott.
The museum's historical artifacts include items from the Civil War, World War I, both African and Native American tribes, the Methodist heritage, and 19th century life.
A variety of Civil War goods from Jordan Coller, a Union soldier who settled in Fayette, can be found in the museum. Coller donated the land where Fayette's public library is located, and for years, his Civil War relics resided there. The items now have a permanent home in the museum, and include a Union soldier's uniform, military caps, a knapsack, bedroll, rifle, bayonet, drinking cup and canteen, and various historical documents.
The Stephens Museum also has a mid-nineteenth century tool collection. Displays include weaving utensils, folk paintings, early photographs, arrowheads, and pottery, as well as paintbrushes owned by artist George Caleb Bingham.
Next to the History Room are the original tombstones of Daniel Boone and his wife, Rebecca. The two markers, given to the college in the late 1800's by descendants of Daniel Boone, bear the names "Daniel Boon" and "Rebecca Boon," both with the "n" reversed. This is a one-of-a-kind set no one else will ever possess.
Our museum boasts a variety of natural history displayed in animal specimens which include a bobcat, snowy owl, nine-banded armadillo, and alligator, and in objects such as fossils, minerals, shells, primate skulls, and numerous large bones of Ice Age mammals.
Best known for its bird collection, the museum displays more than 300 avian species. Whooping cranes, Birds of Paradise, tanagers, owls, eagles and hawks peer down at visitors. Two highly prized specimens of extinct species - the passenger pigeon and the Carolina parakeet – also can be found in the bird collection.
Over 100 specimens of wild animals from all over the world have been received by CMU over the last several years. The first group that arrived in 2001 included a full body musk ox, two Alaskan wolves, a mountain goat, and head and shoulder mounts of African hoofed mammals.
A favorite item in the museum is a large chunk of rock in which is a clear outline of a dinosaur footprint. Another is a rare 350-million-year-old starfish fossil found along the Missouri River in 1997.
dlmorris@centralmethodist.edu


text:
COLUMN: Nightmare on 1 National Championship Drive in full effect
By Alec White 02/10/19 5:43am
You'd have to go back to the year when the original "Nightmare on Elm Street" film was released to find the last time when Arizona men's basketball lost five games in a row. That's 35 years ago. After getting slashed by a different version of Freddy Krueger – the Washington State Cougars in this case – the Wildcats are in their own version of Nightmare on 1 National Championship Drive. Granted, it's not quite as catchy, but we're in the midst of Arizona's horror story nonetheless. Read more
Column: Incoming president Robert Robbins contracted at highest salary for the position in UA history
The United States is not the only place that has brought in a new president to take over; our beloved UA has brought in a new commander in chief to take place of President Ann Weaver Hart at a rather steep price tag. Read more
Column: Total Frat Move projects a culture of male entitlement onto UA Greek life.
TFM—Total Frat Move or Total Fucking Misogyny? The latter option is indeed the case, which is pretty easily discernible if you visit any of their social media pages or their website. Read more
Column: Freedom of speech is an endangered species on colleges campuses across the nation
I've been asked to speak at various locations for various occasions in the past. I spoke at Philadelphia's Independence Hall in 2009 when the tea party had a rally. I've been a panelist for the Philadelphia Bar Association discussing the media and O.J. Simpson. I've gone to the state Capitol to testify about gun violence and the link with mental illness. I've spoken at churches, in Spanish and French, trying to keep immigrants from panicking about President Donald Trump's executive orders. Read more
Column: Lifting the tobacco ban on campus could create a source of income for the university
The idea of having tobacco on campus is off-kilter and not the first thing people would think of as beneficial to the campus. Read more
Column: D2L server crashes impact UA's online learning enviornment
Desire2Learn, or D2L, is essential to a UA student's success and needs to be properly maintained. Lately, the UA's D2L system has been crashing multiple times a week. It'll sometimes be a login issue or some sort of server error, but whatever the reason, it's an inconvenient problem, especially with the amount of work required in college. Read more
Column: Martha McSally has a view on women's rights for both Republicans and Democrats
When discussing feminism, people often get too wrapped up in divisive social issues that polarize ideas to the left. While these issues are important, what we want to focus on is a more practical fight for women's rights, one that centers on breaking gender stereotypes that are still prevalent in society. Arizona's conservative Representative Martha McSally has been fighting for women's rights in this way throughout her life. Read more
Column: Uber and Lyft provide students an uncomfortable ride
In the past two weeks I have had not one, not two, but five different middle-aged male Lyft drivers who all managed to (possibly unintentionally) say or do things that made me notably uncomfortable for the duration of my ride with them. Read more
Column: The proposed honors college village limits options for in-state prospective honors students
The UA is going to lose a huge part of its culture with the construction of the new honors complex: the integration of the honors college into the UA community. Read more
Column: Gov. Ducey's call for a convention of the states won't fix the issues our nation faces
Governor Doug Ducey has called for a convention of the states, but the issues our nation faces run much deeper than a consensus from a constitutional convention. Read more
Column: U.S.-Mexico border sees fewer arrests, despite President Trump taking no action
Illegal immigration has been a hot issue in our nation for quite some time now, and it has never been adequately addressed. Apparently, what was needed all along was a disliked president to make people from other countries not want to enter. Unfortunately, it comes at the cost of much discontent amongst the public Read more
Column: Neil Gorsuch confirmed by the Senate after GOP uses nuclear option
After an official vote from the senate, Neil Gorsuch will be taking Justice Antonin Scalia's seat. Considering the talk of Russian connections amongst the other picks made by Donald Trump, most people would be quite terrified. Trump's Supreme Court nomination, however, seems to be a lesser evil by contrast. Read more
Column: Despite Betsy DeVos' claims, public schools need the money
Budget cuts are not the solution to schools turning out poor results. What these schools need is a system of allocating where the money is spent to benefit their students. Read more


Joists or 'Rolled Steel Joists' as they are sometimes known as. We can do these in various sizes, which range in size from 76 x 76mm up to 102 x 102mm. We can cut these to length as required or we can supply in stock lengths which are usually 6000mm.


text:
5, Including Child, Injured in West LA High-Rise Apartment Fire
The fire began in an 11th-floor unit at the Barrington Plaza on West LA's Wilshire Boulevard
By Jonathan Lloyd, Willian Avila, Kyler Jae and Brandon Lowrey	• Published October 18, 2013 • Updated on January 29, 2020 at 10:24 am
A fire in a West LA apartment high-rise injured at least five people, including a 2-year-old girl, and displaced residents of 51 units Friday.
The blaze began in a unit on the 11th floor, and sent thick smoke into the building's upper floors. An estimated 100 to 150 people were unable to return to their homes, and some were receiving assistance from the American Red Cross, according to Los Angeles Fire officials.
Aerial video showed firefighters treating an adult and the child on the roof of the complex after the fire was declared a knockdown.
COVID-19 1 hour ago
The girl and the man, who was identified as her grandfather, were found lost on the 18th floor and brought to the roof for treatment before being transported to a hospital, according to the Los Angeles Fire Department. The girl, who was reportedly not breathing when firefighters found her, remained hospitalized in critical condition.
One pet dog also died in the fire.
Details regarding the injuries to the adult victims were unclear, but firefighters said they are not considered life threatening.
"We're encountering a handful of residents in and outside the building with minor to moderate respiratory complaints," the LAFD said in an alert issued after the knockdown. "As such people come forth, our patient tally has the potential to climb."
Three firefighters were treated and released from Grossman Burn Center for non-life-threatening burns. However, they remained off-duty after their release, according to Fire Department officials.
The fire broke out just before noon inside an 11th-floor unit at 11740 Wilshire Blvd, the 25-floor Barrington Plaza. The fire was isolated to one two-bedroom unit -- built in 1961, it was not equipped with a sprinkler system -- on the 11th floor and knocked down in about one hour.
The fire set off alarms inside the building. Some residents heard them, but others did not, fire officials said.
Firefighters responded to several reports of individuals stranded in stairwells. Residents in some floors above the burning unit who did not respond to alarms and leave the building might have been exposed to smoke, said Brian Humphrey, of the Los Angeles Fire Department.
"In a fire like this, the most important thing is to know your exits," said Humphrey.
Firefighters with heavy equipment strapped to their backs climbed stairs to reach the burning unit. An LAFD helicopter also responded to the site and landed on a helipad at a nearby high-rise building.
Some residents on floors below the fire were asked to shelter in place, said Armando Hogan, of the LA Fire Department. The strategy keeps stairwells clear so firefighters have a path to the fire.
"We have to hike up stairs to get to that floor with equipment that weighs upwards of 100 pounds," Hogan said.
Details regarding a cause were not immediately available.
Wilshire Boulevard was closed from San Vicente Boulevard to Bundy Drive. Several firefighting vehicles were parked along the busy route west of the 405 Freeway.
More than 180 firefighters responded to the location from stations throughout Los Angeles.
More Southern California Stories:
Not Guilty Plea in Girl's Slaying
Bar Can't Get a Date
New Pokémon Sells 4M in Two Days
LA Council to Consider Rideshare Rules Challenge
Teen Sought in Culver City Assault
Dodger Fans in St. Louis for Game 6
Former Aide Sues Councilman


BAWONS Properties is a client-centric real estate service firm that specializes in CREATING REAL VALUE for private property owners in South Florida. Their collaborative team of highly specialized market experts are committed to providing value-added brokerage, management, and advisory services to owners of multi-family, retail, and industrial properties. Bawons comprehensive list of strategic solutions, proprietary databases, and allied resources, have a proven track record of delivering superior value to their clientele.


text:
Q: Writing a python dictionary from a text file with an unusual format I am trying to creat a python dictionary from a text file that is formatted in this way. I cannot change it.
dataname
definition of data
dataname2
definition of data2
dataname3
definition of data3

The data is routinely unspaced. The keys have to be the the dataname and the values have to be the definition of the data. I know I need readlines() or to keep track of which line is a key and which is a value somehow. This is what I have. Any help is appreciated.
d = {}
with open('dict.txt', 'r') as myFile:
    for line in myFile:
        x = myFile.readlines()
        word = x[0]
        description = x[1]
        d[word] = description
    print(d)

A: You can iterate on the file with a for loop, which will iterate on the lines, and use the next method of the file object to iterate to the next line:
d = {}

with open('dict.txt') as f:
    for line in f:
        name = line.strip()
        description = next(f).strip()
        d[name] = description

print(d)
#{'dataname': 'definition of data', 'dataname2': 'definition of data2', 'dataname3': 'definition of data3'}

A: You can use zip_longest from itertools to do:
import itertools
ur_dict={}
with open(ur_file) as f:
    for line1,line2 in itertools.zip_longest(*[f]*2):
        ur_dict[line1.rstrip()]=line2.rstrip()

>>> ur_dict
{'dataname': 'definition of data', 'dataname2': 'definition of data2', 'dataname3': 'definition of data3'}

Which could be a dict comprehension:
with open('so.txt') as f:
    ur_dict={line1.rstrip():line2.rstrip()
            for line1,line2 in itertools.zip_longest(*[f]*2)}

Or, you can use zip with the iterator twice:
with open(ur_file) as f:
    ur_dict={l1.rstrip():l2.rstrip() for l1,l2 in zip(f,f)}

A:
Code:

d = {}
file = open('dict.txt', 'r')
text = file.read().strip()
file.close()

textlist = text.split('\n')
for i in range(0, len(textlist), 2):
    colname = textlist[i]
    colvalue = [textlist[i+1]]
    d[colname] = colvalue
#display dictionary
print(d)
df = pd.DataFrame(d)
#display dataframe
print(df)

I hope it would be helpful.

A: with open('dict.txt', 'r') as file:
    split = file.read().splitlines()
    dictionary = {k:v for k, v in zip(split[::2], split[1::2])}

{'dataname': 'definition of data',
 'dataname2': 'definition of data2',
 'dataname3': 'definition of data3'}

print(file.splitlines()[::2])
# >>> ['dataname', 'dataname2', 'dataname3']

print(file.splitlines()[1::2])
# >>> ['definition of data', 'definition of data2', 'definition of data3']

Use slice(start, stop, step) operation to give you odd and even list items.

A: I would do it like below.

*

*Read all the lines into a list with each line being a separate element in list.

*Create a sub_list out of main list to be considered as keys. This would be alternate elements from main list starting from element 0.

*Create a sub_list out of main list to be considered as values. This would be alternate elements from main list starting from element 1.

*Merge the 2 lists so that 1st element from key_list is mapped with 1st element of value_list.

Try this :
with open('dict.txt') as f:
    content = f.readlines()

content = [x.strip() for x in content]   # to remove whitespace characters like `\n` at the end of each line

key_list = content[::2]       # every alternate element in list is treated as keys. Starting from 1st element.
value_list = content[1::2]    # every alternate element in list is treated as value. Starting from 2nd element.

final_dict = dict(zip(key_list, value_list))    # merge the 2 lists to create a key, value pair dictionary.

print(final_dict)

redpajama_set_name: RedPajamaStackExchange


text:
NASA to test precision automated landing system designed for the Moon and Mars on upcoming Blue Origin mission
NASA is going to be testing out a new precision landing system designed for use on the tough terrain of the Moon and Mars for the first time during an upcoming mission of Blue Origin's New Shepard reusable suborbital rocket. The 'Safe and Precise Landing – Integrated Capabilities Evolution' (SPLICE) system is made up of […]
NASA is going to be testing out a new precision landing system designed for use on the tough terrain of the Moon and Mars for the first time during an upcoming mission of Blue Origin's New Shepard reusable suborbital rocket. The 'Safe and Precise Landing – Integrated Capabilities Evolution' (SPLICE) system is made up of a number of lasers, an optical camera, and a computer to take all the data collected by the sensors and process it using advanced algorithms, and it works by spotting potential hazards, and adjusting landing parameters on the fly to ensure a safe touchdown.
SPLICE will get a real-world test of three of its four primary subsystems during a New Shepard mission to be flown relatively soon. The Jeff Bezos -founded company typically returns its first-stage booster to Earth after making its trip to the very edge of space, but on this test of SPLICE, NASA's automated landing technology will be operating on board the vehicle the same way they would when approaching the surface of the Moon or Mars . The elements tested will include 'terrain relative navigation,' Doppler radar, and SPLICE's descent and landing computer, while a fourth major system – lidar-based hazard detection – will be tested on future planned flights.
Currently, NASA already uses automated landing for its robotic exploration craft on the surface of other planets, including the Perseverance rover headed to Mars. But a lot of work goes into selecting a landing zone with a large area of unobstructed ground that's free of any potential hazards in order to ensure a safe touchdown. Existing systems can make some adjustments, but they're relatively limited in that regard.
SPLICE is designed to enable more exact landings, and ones that can deal with more nearby hazards, enabling exploration in areas that were previously considered off-limits for landers. That could greatly expand our ability to gain more knowledge and better understanding of the Moon and Mars, which is particularly important as we continue to work towards more human exploration and even potential colonization.
The lidar system mentioned above is a key new ingredient in these SPLICE tests, since we don't actually know in great detail how well lidar will perform with the terrain on Mars and the Moon, where reflectivity could be quite different from what it is here on Earth within our own atmosphere. Still, NASA is confident it should provide much better precision than radar-based methods for surface mapping and feature detection.


text:
package org.apache.directory.ldap.client.api.search;

import org.apache.directory.api.ldap.model.filter.FilterEncoder;

/**
 * A class to represent the extensible matching filter.
 *
 * @author Apache Directory Project
 */
/* No qualifier*/class MatchingRuleAssertionFilter extends AbstractFilter
{
    /** The associated attribute */
    private String attribute;

    /** The rule to use */
    private String matchingRule;

    /** The Filter operator */
    private FilterOperator operator;

    /** Whether or not to include dn attributes in the matching */
    private boolean useDnAttributes = false;

    /** The filter value */
    private String value;

    /**
     * Creates a new instance of MatchingRuleAssertionFilter.
     *
     * @param attribute The attribute to test
     * @param value The value to test for
     * @param operator The FilterOperator
     */
    MatchingRuleAssertionFilter( String attribute, String value,
        FilterOperator operator )
    {
        this.attribute = attribute;
        this.value = value;
        this.operator = operator;
    }

    /**
     * Creates a new instance of MatchingRuleAssertionFilter without an attribute.
     *
     * @param value The value to test for
     * @return A new MatchingRuleAssertionFilter
     */
    public static MatchingRuleAssertionFilter extensible( String value )
    {
        return new MatchingRuleAssertionFilter( null, value,
            FilterOperator.EXTENSIBLE_EQUAL );
    }

    /**
     * Creates an extensible filter
     *
     * @param attribute The attribute to test
     * @param value The value to test for
     * @return A new MatchingRuleAssertionFilter
     */
    public static MatchingRuleAssertionFilter extensible( String attribute, String value )
    {
        return new MatchingRuleAssertionFilter( attribute, value,
            FilterOperator.EXTENSIBLE_EQUAL );
    }

    /**
     * Sets the matching rule to use.  Can be either a name or an OID string.
     *
     * @param matchingRule The matching rule to use
     * @return This filter
     */
    public MatchingRuleAssertionFilter setMatchingRule( String matchingRule )
    {
        this.matchingRule = matchingRule;
        return this;
    }

    /**
     * If set, the dn attributes will be included in the matching.
     *
     * @return This filter
     */
    public MatchingRuleAssertionFilter useDnAttributes()
    {
        this.useDnAttributes = true;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public StringBuilder build( StringBuilder builder )
    {
        builder.append( "(" );
        if ( attribute != null )
        {
            builder.append( attribute );
        }
        if ( useDnAttributes )
        {
            builder.append( ":dn" );
        }
        if ( matchingRule != null && !matchingRule.isEmpty() )
        {
            builder.append( ":" ).append( matchingRule );
        }
        return builder.append( operator.operator() )
            .append( FilterEncoder.encodeFilterValue( value ) ).append( ")" );
    }
}