text:
Q: javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL does not work anymore since Java EE 7 / EL 3.0 <context-param>
    <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
    <param-value>true</param-value>
</context-param>

Does not work with the latest Mojarra 2.2.5 on both glassfish 4 and wildfly 8 Final
I have seen multiple bug reports on this, Manfried Riem says,

It was determined this is an EL issue and the EL implementation has
  been fixed to fix this

The fix versions says 2.2.5, and it is also stated in the release notes of 2.2.5, am I missing something?

A:
I have seen multiple bug reports on this, Manfried Riem says,

It was determined this is an EL issue and the EL implementation has been fixed to fix this

The fix versions says 2.2.5, and it is also stated in the release notes of 2.2.5, am I missing something?

The actual fix is in EL, not in JSF. The Mojarra version mentioned in the issue report was just "concidentally" the latest Mojarra version at that moment. See also The empty String madness.
Basically, to solve this problem you need to upgrade the EL implementation (or simply the whole server as it's the one actually providing EL out the box). In case of Oracle/Sun EL, the fix is in version 3.0.1 b05 which has been available since 7 July 2014 (just pick the newest one). You can just drop the JAR in /WEB-INF/lib and if necessary add the below configuration to web.xml in case your server ships with a different EL implementation than Oracle/Sun EL which also exposes the same bug:
<context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>

Or you can install an alternative EL implementation, such as JUEL:
<context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>de.odysseus.el.ExpressionFactoryImpl</param-value>
</context-param>

In case you're using MyFaces instead of Mojarra, use <param-name> of org.apache.myfaces.EXPRESSION_FACTORY.
As to upgrading the server, the EL version with the fix is present in at least GlassFish 4.1 and WildFly 8.2.

A: Fixed with a custom resolver:
faces-config.xml:
<application>
     <el-resolver>my.package.EmptyNullStringResolver</el-resolver>
</application>

EmptyNullStringResolver.java:
/**
 * @author pg
 */
public class EmptyNullStringResolver extends ELResolver {

    @Override
    public Class<?> getCommonPropertyType(ELContext context, Object base) {
        return String.class;
    }

    @Override
    public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
        return null;
    }

    @Override
    public Class<?> getType(ELContext context, Object base, Object property) {
        return null;
    }

    @Override
    public Object getValue(ELContext context, Object base, Object property) {
        return null;
    }

    @Override
    public boolean isReadOnly(ELContext context, Object base, Object property) {
        return true;
    }

    @Override
    public void setValue(ELContext context, Object base, Object property, Object value) {
    }

    @Override
    public Object convertToType(ELContext context, Object obj, Class<?> targetType) {
        if (String.class.equals(targetType) && obj instanceof String && ((String) obj).trim().isEmpty()) {
            context.setPropertyResolved(true);
        }
        return null;
    }
}

A: The sample codes obj condition checking is wrong.  At update model phase, the obj is passed at null.  After correct to the code below, my custom ELResolver works.
 @Override
public Object convertToType(final ELContext context, final Object obj, final Class<?> targetType) {
    if (obj == null && String.class.equals(targetType)) {
        context.setPropertyResolved(true);
    }
    return null;
}

A: There's a JVM parameter for the application server that helped me.
See Work around for faulty INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL in Mojarra JSF 2.1

A: We tested all Oracle EL 2.2.2, 3.0.0, 3.0.1-b0X[1-8] and with Apache Jasper EL 3.0 in Tomcat 7.0.xx or Tomcat 8.0.30 using or not custom ELResolver Wrapper with ELResolver fixed @ faces-config.xml level.
The result is the same. String MethodExpression null is interpreted as EMPTY String ""
Calling from EL the following methods with t=null;
Case 1
public final void checkObject(Object t)
...
#{myBean.checkObject(null)} -> Receive null (OK)

Case 2
public final void checkString(String t)
...
#{myBean.checkString(null)} -> Receive EMPTY String "" (NOT OK)

Case 3
public final void checkDouble(double t)
...
#{myBean.checkDouble(null)} -> Receive 0.0 (OK)

Case 4
public final void checkBigDecimal(BigDecimal t)
...
#{myBean.checkBigDecimal(null)} -> Receive null (OK)


text:
Q: Setting Button Text Color with a Style I have not been able to set the text color of a Button using a predefined style. I must be missing something simple. For example, I have a button:
    <Button
    android:id="@+id/calculate_button"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/calculate"
    android:background="@drawable/rounded_bottom_shape"
    android:padding="5dp"
    android:textAppearance="@style/CalcResultStyle">
    </Button>

And the corresponding style is:
<style name="CalcResultStyle">
    <item name="android:textSize">12sp</item>
    <item name="android:textColor">#FFF</item>
</style>

The size portion works fine, but the color does not. The only workaround I have found is to set the textColor on the actual button, which means changing colors on a number of buttons becomes a pain. I also prefer to set the textColor attribute in my styles using a color reference such as @color/Brown for example, but setting the color using a reference or explicitly seems to make no difference.

A: I use this.  Maybe it will help you.  Can you please tell me what you wrote in rounded_bottom_shape?
<Button
android:id="@+id/calculate_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Calculate"
android:background="#454545"
android:padding="5dp"
style="@style/CalcResultStyle">
</Button>

redpajama_set_name: RedPajamaStackExchange


text:
Q: I am having a hard time understanding how to pass a prop in React and how to render it to the browser my code:
class App extends React.Component {

  constructor(props) {
    super(props);

    this.state = {
      partyType: "birthday",
      entertainment: "clowns",
      venue: {
        name: "Polly's Party Palace",
        capacity: 120,
       }
      cakeFlavor: "vanilla"
      };
     }

  render() {
     return (

Party Time!

 This {this.props.partyType} party will be held at
               {this.props.venue.name} with a maximum capacity of
               {this.props.venue.capacity}.

 Featured entertainment: {this.props.entertainment}!
               We will serve a {this.props.cakeFlavor} cake.

      );
     }
    render() {
    return (

        <Party partyType={this.state.partyType} entertainment=
        {this.state.entertainment} venue={this.state.venue} cakeflavor=
        {this.state.cakeFlavor} />;

    );
  }
}

ReactDOM.render(<App />, document.getElementById('root'));

I am trying to:

*

*pass the partyType, entertainment, and venue properties from the state

*create/define a new React component named Party, that includes the paragraph elements you see in the code.

my issue:
I can not get this code to render to the browser (show up as sentences/party invite) I don't know if I am missing anything, or what I am doing wrong.
If it helps I have included the instructions below:
Challenge 1: Between the div tags at lines 18 and 20 of the JS section, render a component named  and pass the partyType, entertainment, and venue properties from the state.
Challenge 2: Create/define a new React component named Party. In it, have it return a div that contains h3 tags surrounding the words Party Time!, followed by two paragraph elements that use the passed-in props. The first paragraph element will say: This _____ party will be held at ______ with a maximum capacity of ____. The second paragraph element will say: Featured entertainment: ______! The blanks will be filled in using props. See the screenshot in the learning portal page for this code challenge.

A: Looks like maybe a bad copy paste? This is how I would do it:
function Party({ partyType, entertainment, venue, cakeFlavor }) {
  return (

Party Time!

        This {partyType} party will be held at
        {venue.name} with a maximum capacity of
        {venue.capacity}.{" "}

        Featured entertainment: {entertainment}! We will serve a {cakeFlavor}{" "}
        cake.

  );
}

function App() {
  const [state, setState] = React.useState({
    partyType: "birthday",
    entertainment: "clowns",
    venue: {
      name: "Polly's Party Palace",
      capacity: 120,
    },
    cakeFlavor: "vanilla",
  });

  const { partyType, entertainment, venue, cakeFlavor } = state;

  return (
    <Party
      partyType={partyType}
      entertainment={entertainment}
      venue={venue}
      cakeflavor={cakeFlavor}
    />
  );
}

ReactDOM.render(<App />, document.getElementById("root"));


text:
Q: Find out how many texttospeech 'items' are processed in the queue I hope I can make myself clear here.
I have an arraylist with text which I want to read out loud. When, for instance, with 75 objects in the list, after the third sentence spoken, I want to click 'STOP' and do something with the third position of the arraylist I can't find a way to find out the texttospeech queue has processed 3 lines of the queue?
if(!sh.Contents.isEmpty()) {
   for (String object: sh.Contents) {
       sh.CurChapter += 1;
       speech(String.valueOf(sh.CurChapter) + " " + object);
       //textToSpeech.speak(substr, TextToSpeech.QUEUE_ADD, null, null)
   }
} else {
       speech( "Section not found!");
}

Kind regards,
Mike

A: In your speech array loop, use the position as the utteranceId and set it:
speak(utterances.get(i), TextToSpeech.QUEUE_ADD, yourBundle, String.valueOf(i))

Then in your UtteranceProgressListener
public static final int DO_ACTION_1 = 0;
public static final int DO_ACTION_5 = 4;

    @Override
    public void onDone(final String utteranceId) {

            switch (Integer.valueOf(utteranceId)) {

                case DO_ACTION_1:
                    // do something
                    break;
                case DO_ACTION_5:
                    // do something else
                    break;
                default:
                    // do nothing
                    break;
            }
    }


text:
Q: How CNN reduce parameter and reuse weight? In the post A Comprehensive Guide to Convolutional Neural Networks — the ELI5 way, it says

A ConvNet is able to successfully capture the Spatial and Temporal
dependencies in an image through the application of relevant filters.
The architecture performs a better fitting to the image dataset due to
the reduction in the number of parameters involved and reusability of
weights.

I don't see how it reduce parameter and reuse weight. Could anyone give an example?

A: Consider the filter (or kernel) in image below having 9 pixels and the image having 49 pixels.
In a fully connected layer, we'll have 9*49 = 441 weights.
While in a CNN this same filter keeps on moving (convolving) over the entire image. All pixel values in image will be multiplied with those same 9 values of filter (hence we say weights are reused). So, we need just 9 weights per filter instead of 441 in FC layer.
The job of a filter is to identify features (such as texture, lines etc), which could be anywhere in an image. So, we want to reuse this same filter over the entire image.

A: We can calculate the parameters for the Convolution layer using the formula: ((width_of_Kernel * height_of_Kernel * input_channel)+1) * output_channel
Here we can see Kernel size, Input Channel and, Output Channel are affecting number of parameters. By altering them, we can reduce the parameters and it will result in reducing size.


text:
Q: Printer configured on Lan does not print when system connects through wifi I am using 12.04 64 bit. I have noticed if I configure (connect) any printer when my machine is connected to Lan (eth port) then it takes print job only if I am connected to Lan. If I try any printing job on wifi, it gets stuck in the print queue. Similarly, when on wifi if I configure the same printer again then it will take print action on wifi, but again if I switch to lan then it will again not print.
So for 1 printer I have to configure two times, one on lan and other on wifi. Also I have to make sure while firing print jobs that I should be selecting right printer by checking the way I am connected to network.
In an ideal situation, any printer configured to machine should take print action on lan as well as on wifi which happens exactly on Windows.
I believe there is something I am doing wrong so please any one correct me....

A: Are you using wifi through access point or its a routed wifi network? Please provide network configurations for eth0 and wlan0.
Does there exists multiple printers in "Printing" interface? Also mention make and model of the printer. Thank you.


text:
Q: how can i pass id to my ui-view I want to access inventory by id, using link  /inventory/description/:{{id}} But it isnt working, nothing shows up. how can i access it by id ?
app.config(function config( $stateProvider, $urlRouterProvider) {
  $stateProvider.state('inventory',{
    url:'/inventory',
        views: {
            "main": {
                controller: 'InventoryCtrl',
                templateUrl: 'inventory/main.tpl.html'
            }
        },
        data:{ pageTitle: 'Inventory' }
  }
  ).state('inventory.detailview',{
    url:'/inventory/detailview',
        views: {
            "detailview": {
                controller: 'InventoryCtrl',
                templateUrl: 'inventory/detail.tpl.html'
            }
        },
        data:{ pageTitle: 'DetailView' }
  }
  ).state('inventory.description',{
    url:'/inventory/description/:{{id}}',
        views: {
            "descriptionview": {
                templateUrl: 'inventory/description.tpl.html',
                controller: function($scope, Inventory){
                    $scope.id = Inventory.query('id');

            }}
        },
        data:{ pageTitle: 'DescriptionView'}
  });
});

my factory
app.factory('Inventory', function($resource, $http) {
return $resource('http://web.lv/api/v1/inventory/:id', {id: "@id"},
    {
        update: {
            method: 'POST',
            params: {id: '@id'},
            isArray: false
        },
        save: {
            method: 'PUT'
        },
        query: {
            method: 'GET',
            params: {id: '@id'},
            isArray: false
        },
        create: {
            method: 'POST'
        },
        drop: {
            method: 'DELETE',
            params: {id: "@id"}
        }
    }
);
});

my controller
app.controller('InventoryCtrl', function($scope, $http,  Inventory, $location) {

    //getting the objects from Inventory
        $scope.info = Inventory.query();

    //
        $scope.id = Inventory.query('id');

}

A: If you are using ui-router, you can use stateParams
app.controller('InventoryCtrl', function($scope,$stateParams,Inventory) {
     $scope.id = $stateParams.id;
}


text:
Q: Comparing a variable with itself in the previous year in R I still quite new to programming and have a bit of a problem which I haven't been able to find a solution to, although maybe part of that is because I don't know how to phrase my search query (English isn't my first language...). In any case, I have a dataset that is of the following format (simplified; there's data for more years and weeks, and many more goods):

GoodID
Year
Week
Price

1
2015
3
X1

1
2015
4
Y1

1
2016
3
Z1

1
2016
4
U1

1
2017
3
V1

1
2017
4
W1

2
2015
3
X2

2
2015
4
Y2

2
2016
3
Z2

2
2016
4
U2

What I want to do is add a column that displays the price that a certain good had exactly one year ago. That is, it should display what the price was in the same week, but one year prior.

GoodID
Year
Week
Price
Price last year

1
2015
3
X1
NA

1
2015
4
Y1
NA

1
2016
3
Z1
X1

1
2016
4
U1
Y1

1
2017
3
V1
Z1

1
2017
4
W1
U1

2
2015
3
X2
NA

2
2015
4
Y2
NA

2
2016
3
Z2
X2

2
2016
4
U2
Y2

I'm using tidyverse. Previously I was fine with just having the average across the years, which was easy enough:
df <- df %>%
group_by(GoodID, week)%>%
mutate(avgprice = mean(Price)) %>%
ungroup()

but when I want to compare prices with the ones a year prior I am completely lost. It sounds like something that should have an easy solution, something like
mutate(lastprice = Year-1$Price)

but obviously that doesn't work and I don't know how exactly I should word this. I have tried to filter the data
df <- df %>%
filter(year == 2017) %>%
mutate(lastprice = Price)

df <- df %>%
filter(year == 2016) %>%
mutate(lastprice = Price)

but this of course only resulted in the data entries from all other years being purged at the first try.
Does anyone have a suggestion for how I can go about doing this? Thank you!

A: Here's a suggested solution (for future posts, please include code so that your dataframe can be easily created so that people can test any responses):
df %>%
  arrange(week, year) %>%
  group_by(Good_ID, week) %>%
  mutate(price_last_year = lag(price))

The key aspect is dplyr::lag(), which takes care of referencing a value from a previous row. It is clever enough to introduce NAs at the boundaries (i.e. for the first entry in each group).

A: Use lag() to access the value one row up. As long as we group by Good and Week and sort by year, that should give the previous year's price:
df %>%
  group_by(GoodID, Week) %>%
  arrange(Year) %>%
  mutate(Price_Last_Year = lag(Price)) %>%
  ungroup()


text:
Q: Accessing Mac's Virtual Hosts from Parallel's XP I am having problem with accessing Virtual Hosts (located on my Mac) from XP installed via Parallels.
Here's the setup:

*

*Mac OS X 10.6.6

*

*using pre-installed apache running via Web Sharing (not using MAMP!)

*several virtual hosts set in apache's config

*Parallels 6

*Windows XP Pro 64bit installed via Parallels

*

*Network setup set to Shared

*virtual hosts from Mac added to C:\Windows\system32\drivers\etc\hosts file

Pinging gateway (Mac) from Windows seems to work just fine, but cannot access websites hosted on it - neither by directly accessing IP nor by VHosts.
Turning off firewall didn't seem to help.
What am I doing wrong?

A: Assuming there are no firewall issues, it may be worth double checking that you are using the correct IP address to connect to your Mac. When using Shared Networking, Parallels creates a separate sub-network that is used between Parallels and your Mac. As such, your Mac will be using a different IP address to communicate with Parallels than it will to communicate with your external/local network.
Here is an example configuration:
Mac

*

*Local Network IP: 192.168.1.10

*Parallels Network IP: 10.211.55.2

Parallels

*

*Parallels Network IP: 10.211.55.3

Network

*

*Parallels Default Gateway: 10.211.55.1

Because all of these IPs are non-routable, attempts to connect to your Mac using the 192.168.1.10 address will fail from Parallels. You will need to use the 10.211.55.2 address to connect to your Mac. Note that this is not the same as the Gateway address.
It is also worth pointing out that the IP address for the Parallels network is assigned via DHCP and has the potential to change. This means that you would need to change the entries in your hosts file.*
And finally, make sure that Apache is listening on the Parallels Network IP address. The default configuration should listen on all ports, but would be worth checking if you have changed the Apache configuration.
*There are instructions here to change the Parallels network adapter on the Mac to use a specific address, but this is for Tiger.


text:
Q: Mostrar mas de un resultado retrofit Que tal tengo el siguiente codigo que estoy usando para pruebas.
Mi codigo me realiza una busqueda en mi base de datos en la tabla tb_image, la busqueda la realiza mediante id y de esta manera me debe mostrar todos los registros que esten ligados con ese ID.
Lo que quiero que me ayuden es como puedo hacer que al realizar la consulta por id me muestre todos los registros y no solo uno pongo un ejemplo rapido de 20 registros que tengo en mi tabla 4 son con el id 1 entonces al realizar la consulta deberia mostrarme los 4 y no lo esta haciendo solo me muestra 1 ese es mi problema y no encuentro como arreglarlo.
MainActivity.java
public class MainActivity extends AppCompatActivity {

    EditText etIdBuscar, etId, etNombre, etTelefono;
    Button btnIdBuscar, btnEliminar, btnTodosBuscar, btnAgregar, btnEditar;

    RecyclerView rvUsuarios;
    List<Usuario> listaUsuarios = new ArrayList<>();

    AdaptadorUsuarios adaptadorUsuarios;

    Retrofit retrofit;
    APIRest api;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportActionBar().hide();

        etIdBuscar = findViewById(R.id.etIdBuscar);
        etId = findViewById(R.id.etId);
        etNombre = findViewById(R.id.etNombre);
        etTelefono = findViewById(R.id.etTelefono);
        btnIdBuscar = findViewById(R.id.btnIdBuscar);
        btnTodosBuscar = findViewById(R.id.btnTodosBuscar);
        rvUsuarios = findViewById(R.id.rvUsuarios);
        rvUsuarios.setLayoutManager(new GridLayoutManager(this, 1));

        retrofit = new AdaptadorRetrofit().getAdapter();
        api = retrofit.create(APIRest.class);

        getUsuarios(api);

        btnIdBuscar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(etIdBuscar.getText().toString().equals("")) {
                    Toast.makeText(MainActivity.this, "Inserta un ID para buscar", Toast.LENGTH_SHORT).show();
                } else {
                    getUsuario(api, etIdBuscar.getText().toString());
                }
            }
        });

        btnTodosBuscar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getUsuarios(api);
            }
        });

    }

    public void getUsuario(final APIRest api, String idUsuario) {
        listaUsuarios.clear();
        Call<Usuario> call = api.obtenerUsuario(idUsuario);

        call.enqueue(new Callback<Usuario>() {
            @Override
            public void onResponse(Call<Usuario> call, Response<Usuario> response) {
                switch (response.code()) {
                    case 200:
                        listaUsuarios.add(response.body());

                        etIdBuscar.setText("");

                        adaptadorUsuarios = new AdaptadorUsuarios(MainActivity.this, listaUsuarios);
                        rvUsuarios.setAdapter(adaptadorUsuarios);

                        break;
                    case 204:
                        Toast.makeText(MainActivity.this, "No existe ese registro", Toast.LENGTH_SHORT).show();

                        etIdBuscar.setText("");

                        getUsuarios(api);
                        break;

                }
            }

            @Override
            public void onFailure(Call<Usuario> call, Throwable t) {

            }
        });
    }

    public void getUsuarios(APIRest api) {
        listaUsuarios.clear();
        Call<List<Usuario>> call = api.obtenerUsuarios();

        call.enqueue(new Callback<List<Usuario>>() {
            @Override
            public void onResponse(Call<List<Usuario>> call, Response<List<Usuario>> response) {
                listaUsuarios = new ArrayList<Usuario>(response.body());

                adaptadorUsuarios = new AdaptadorUsuarios(MainActivity.this, listaUsuarios);
                rvUsuarios.setAdapter(adaptadorUsuarios);

            }

            @Override
            public void onFailure(Call<List<Usuario>> call, Throwable t) {

            }
        });
    }

}

APIRest.java
public interface APIRest {

    @GET("API_REST.php")
    Call<List<Usuario>> obtenerUsuarios();

    @GET("API_REST.php")
    Call<Usuario> obtenerUsuario(
            @Query("idUsuario") String idUsuario
    );
}

Y asi tengo el PHP
API_REST.php
<?php
    require "conexion.php";

    if($_SERVER['REQUEST_METHOD'] == 'GET') {

      // READ

      if(isset($_GET['idUsuario'])) {
        // http://localhost/PruebasCanal/API_REST.php
        $idUsuario = $_GET['idUsuario'];

        //Metodo de busqueda por ID
        $sql_select_id = "SELECT name, id_plan FROM tb_image WHERE id_plan='$idUsuario'";
        $query_select_id = $mysqli->query($sql_select_id);

        $filas = $query_select_id->num_rows;
        if($filas == 0) {
          //echo "No existe ese registro";
          header("HTTP/1.0 204");
        } else {
          $resultado = $query_select_id->fetch_assoc();
          echo json_encode($resultado);
        }
      }

      else {

        //Metodo de busqueda general
        // http://localhost/PruebasCanal/API_REST.php?idUsuario=#
        $sql_select = "SELECT name, id_plan FROM tb_image";
        $query_select = $mysqli->query($sql_select);

        $datos = array();
        while($resultado = $query_select->fetch_assoc()) {
          $datos[] = $resultado;
        }

        echo json_encode($datos);
      }
    }

?>

En el php ya intente jalar la informacion como con el general mediante un WHILE pero cuando lo hago ya no me muestra nada no me hace la busqueda.
Aqui realize la busqueda del ID 2 y solo me muestra esa fotografia pero aun hay 3 mas que no esta mostrando.

Probe el archivo php directamente en mi navegador y efectivamente el problema lo tengo en el PHP.
Aqui me muestra que como resultado de la consulta y buscar todos los registros del id = 1 me regresa solo 1

Pero al ejecutar la consulta como tal en sql me devuelva mas de 1 registro

No se que este haciendo mal les agradeceria mucho la orientacion o la ayuda

A: Ya lo consegui deje mi respuesta por si a alguien le llega a servir
MainActivity.java
public class MainActivity extends AppCompatActivity {

    EditText etIdBuscar, etId, etNombre, etTelefono;
    Button btnIdBuscar, btnEliminar, btnTodosBuscar, btnAgregar, btnEditar;

    RecyclerView rvUsuarios;
    List<Usuario> listaUsuarios = new ArrayList<>();

    AdaptadorUsuarios adaptadorUsuarios;

    Retrofit retrofit;
    APIRest api;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportActionBar().hide();

        etIdBuscar = findViewById(R.id.etIdBuscar);
        etId = findViewById(R.id.etId);
        etNombre = findViewById(R.id.etNombre);
        etTelefono = findViewById(R.id.etTelefono);
        btnIdBuscar = findViewById(R.id.btnIdBuscar);
        btnTodosBuscar = findViewById(R.id.btnTodosBuscar);
        rvUsuarios = findViewById(R.id.rvUsuarios);
        rvUsuarios.setLayoutManager(new GridLayoutManager(this, 1));

        retrofit = new AdaptadorRetrofit().getAdapter();
        api = retrofit.create(APIRest.class);

        btnIdBuscar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(etIdBuscar.getText().toString().equals("")) {
                    Toast.makeText(MainActivity.this, "Inserta un ID para buscar", Toast.LENGTH_SHORT).show();
                } else {
                    getUsuario(api, etIdBuscar.getText().toString());
                }
            }
        });

    }

    public void getUsuario(final APIRest api, String idUsuario) {
        listaUsuarios.clear();
        Call<List<Usuario>> call = api.obtenerUsuario(idUsuario);

        call.enqueue(new Callback<List<Usuario>>() {
            @Override
            public void onResponse(Call<List<Usuario>> call, Response<List<Usuario>> response) {

                        listaUsuarios = new ArrayList<Usuario>(response.body());

                        etIdBuscar.setText("");

                        adaptadorUsuarios = new AdaptadorUsuarios(MainActivity.this, listaUsuarios);
                        rvUsuarios.setAdapter(adaptadorUsuarios);

            }

            @Override
            public void onFailure(Call<List<Usuario>> call, Throwable t) {

            }
        });
    }

}

APIRest.java
public interface APIRest {

    @GET("API_REST.php")
    Call<List<Usuario>> obtenerUsuario(
            @Query("idUsuario") String idUsuario
    );
}

AdaptadorRetrofit
public class AdaptadorRetrofit {

    Retrofit retrofit;

    public AdaptadorRetrofit(){ }

    public Retrofit getAdapter(){
        retrofit = new Retrofit.Builder()
                .baseUrl("http://192.168.100.71/PruebasCanal/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        return retrofit;
    }

}

AdaptadorUsuarios.java
public class AdaptadorUsuarios extends RecyclerView.Adapter<AdaptadorUsuarios.UsuarioViewHolder> {

    Context context;
    List<Usuario> listaUsuarios;

    public AdaptadorUsuarios(Context context, List<Usuario> listaUsuarios) {
        this.context = context;
        this.listaUsuarios = listaUsuarios;
    }

    @NonNull
    @Override
    public UsuarioViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View vista = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_rv_usuario, null, false);
        return new AdaptadorUsuarios.UsuarioViewHolder(vista);
    }

    @Override
    public void onBindViewHolder(@NonNull UsuarioViewHolder holder, int position) {
        Glide.with(holder.imageView.getContext()).load("http://mi_ip/upload_file/RestApi/upload/"+listaUsuarios.get(position).getName()).into(holder.imageView);
        holder.tvNombre.setText(listaUsuarios.get(position).getName());
    }

    @Override
    public int getItemCount() {
        return listaUsuarios.size();
    }

    public class UsuarioViewHolder extends RecyclerView.ViewHolder {

        TextView tvNombre;

        ImageView imageView;

        public UsuarioViewHolder(@NonNull View itemView) {
            super(itemView);

            imageView = itemView.findViewById(R.id.imageView);
            tvNombre = itemView.findViewById(R.id.tvNombre);

        }
    }
}

Y asi quedo mi clase php
API_REST.php
<?php
    require "conexion.php";

    if($_SERVER['REQUEST_METHOD'] == 'GET') {

      // READ

      if(isset($_GET['idUsuario'])) {
        // http://localhost/PruebasCanal/API_REST.php
        $idUsuario = $_GET['idUsuario'];

        //Metodo de busqueda por ID
        $sql_select_id = "SELECT id_img,name, id_plan FROM tb_image WHERE id_plan='$idUsuario'";
        $query_select_id = $mysqli->query($sql_select_id);

        $datos = array();
        while($resultado = $query_select_id->fetch_assoc()) {
          $datos[] = $resultado;
        }

        echo json_encode($datos);
      }
    }

?>


text:
Q: Undefined reference errors when using Netbeans (C++) with G++ I'm working on this since hours and I believe I overlooked something. I'm new to C++ and programming in general.
I'm trying to build a program which consists of several .cpp-files. The associated headerfiles are in an include-directory. I've of course also told netbeans where to search for them (Project >> Properties >> build >> C++-Compiler >> include directories).
That's the main-file:
//main.cpp

#include "Eingabe_Konstanten.h"
#include "Stoffwerte.h"
#include "Zustandsgroessen.h"
#include <iostream>

using namespace std;

int main()
{
    Eingabe_Konstanten ein;
    cout << ein.Pi();
    cin.get();
}

And that's the associated headerfile "Eingabe_Konstanten.h" (sorry, it's partly german... ;))
//Eingabe_Konstanten.h

#ifndef EINGABE_KONSTANTEN_H
#define EINGABE_KONSTANTEN_H

class Eingabe_Konstanten {
public:
    double Pi();
    double mStrom();
};

#endif  /* EINGABE_KONSTANTEN_H */

With the corresponding .cpp-file
//Eingabe_Konstanten.cpp

#include "Eingabe_Konstanten.h"
#include "InputOutput.h"
#include <string>

InputOutput io;

double Pi()
{
    double pi = M_PI;
    return pi;
}

double mStrom()
{
    double m = io.lese(7);
    return m;
}

lese() is a method which reads lines from a file. It's in an InputOutput Class.
//InputOutput.h

#ifndef INPUTOUTPUT_H
#define INPUTOUTPUT_H
#include <string>

class InputOutput {
public:
    double lese(int);
};

#endif  /* INPUTOUTPUT_H */

*************************************

//InputOutput.cpp

#include "InputOutput.h"
#include <iostream>
#include <string>
#include <sstream>
#include <limits>
#include <fstream>
#include <stdlib.h>

using namespace std;

double lese(int zeile)
{
    ifstream datei("input.txt");
    if(!datei.is_open())
    {
        cerr << "Fehler beim Oeffnen der Datei" << endl;
        return 0;
    }
    for(; zeile > 1; --zeile)
        datei.ignore(numeric_limits<streamsize>::max(), '\n');
        string input;
    if(!getline(datei, input))
    {
        cerr << "Fehler beim Lesen aus der Datei" << endl;
        return 0;
    }
        double wert = atof(input.c_str());
    return wert;
}

I think it's a linking problem. Because the object files don't seem to be linked correctly together and the compiler doesn't complain until the linking process. The output looks like this:
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/d/Maschinenbau/Diplom/Diplomarbeit/Programm/Comp_Pred'
"/C/MinGW/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_TDM-Windows/comp_pred.exe
make.exe[2]: Entering directory `/d/Maschinenbau/Diplom/Diplomarbeit/Programm/Comp_Pred'
mkdir -p dist/Debug/MinGW_TDM-Windows

g++ -m32    -o dist/Debug/MinGW_TDM-Windows/comp_pred build/Debug/MinGW_TDM-Windows/_ext/725510466/Eingabe_Konstanten.o build/Debug/MinGW_TDM-Windows/_ext/725510466/InputOutput.o build/Debug/MinGW_TDM-Windows/_ext/725510466/Stoffwerte.o build/Debug/MinGW_TDM-Windows/_ext/725510466/Zustandsgroessen.o build/Debug/MinGW_TDM-Windows/main.o -Llib -lCoolProp
build/Debug/MinGW_TDM-Windows/_ext/725510466/Eingabe_Konstanten.o: In function `Z6mStromv':
d:/Maschinenbau/Diplom/Diplomarbeit/Programm/Comp_Pred/Eingabe_Konstanten.cpp:24: undefined reference to `InputOutput::lese(int)'

I'm sorry for this comprehensive description, but I really don't know what to do. I would be very grateful for any help.

A: You have defined your lese() function as a freestanding function, but you need it to be a member of your InputOutput class. So
double lese(int zeile)

should be
double InputOutput::lese(int zeile)

The same goes for the functions of your Eingabe_Konstanten class


text:
Q: Bundled PWA with FCM notifications We have an Angular 6 / Firebase 5.4.2 / AngularFire PWA that is heavily using Firebase for auth, and FCM for notifications that we are attempting to bundle into an application suitable for listing in app stores.
The PWA is functioning well, and is receiving FCM notifications via the firebase-messaging-SW.js service worker.
We've attempted using both Cordova, and Capacitor to bundle this PWA into an APK and IPA.
We've struggled to get notifications working, however. Debugging the issues have shown us that although the service workers register, as we request permissions, we get the errors:
ERROR FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
referenceError:Notification is not defined. firebase messaging request permission
Any guidance on this would be much appreciated: if you know of code samples that show packaging a PWA while using FCM notifications that we can work from, that would be ideal, or if you know of approaches that have proven successful for other teams, then a point towards those toolsets would also be of use!

A: We've also been looking into methods for packaging PWAs. With Capacitor our experience is similar: service workers (and some other features) do not work and we are starting to look into native plugins/polyfills to replace all features that rely on service workers but this seems quite complicated.
However, just today I came across some news that might help you publish your PWA to Google Play: Apparently, PWAs can now be distributed through the Google Play Store. This is achieved through something called Trusted Web Activities. I have not tried it yet but you can read all about it here:
https://medium.com/@firt/google-play-store-now-open-for-progressive-web-apps-ec6f3c6ff3cc
Looks like things are still evolving in the PWA world!


text:
Q: Looks like $http Service takes time to load the contents Have written the Service to fetch the values from the promise and set the values to the Variables in my Service.
Retrives the promise and sets the value to the Variables in Service
 getValueFromPromise =function(){
       myPromise.then(function(res){
         myArray =res;
         console.log("Error");
       });
}

This functionality has been coupled to my controller in such a way that it returns array
this.getItems = function(){

       getValueFromPromise(); //Line1
       console.log(myArray); //Line2
       return myArray; //Line3
};

My question actually revolves around getItemsmodule where I invoke a getItemPromise() to set the value to my variable myArray.

*

*Question 1: What happens is that in the console I find myArray as [] empty at while loading the UI. Once I refresh my controller, I get the values in the myArray[]. I suspect this because in getItems() promise takes some time in evaluating the .get('URL') and since the operation done in asynchronous manner myArray values gets returned before promise was evaluated.Is that what I suspected right?

*Question 2: If my Suspection in Question1 was right, How to make Line3 wait till Line1 gets completed.Also Kindly enlighten me if I were anywhere wrong.


text:
Q: python Dataframe difference with filter in one line I'm trying to find difference between two columns in a Dataframe but want to apply filter.
Below is what I'm trying to do
((df['column1']-df['column2'])/(df['totalcolumn'])).idxmax()

above gives me result but I want to consider only rows in which Column1>0 and Column2>0.
can anyone help me?

A: df.query('column1 > 0 and column2 > 0') \
  .eval('(column1 - column2) / totalcolumn').idxmax()

A: Simply get the subset of your dataframe that you are interested in first:
sub_df = df.loc[(df.column1 > 0) & (df.column2 > 0)]

(sub_df.column1 - sub_df.column2  / sub_df.totalcolumn).idxmax()

If it's really important that it's in one line (as your title suggests) you could do your filtering in that same line, but this is inefficient and inelegant IMO:
(df.loc[(df.column1 > 0) & (df.column2 > 0), 'column1'] -
 df.loc[(df.column1 > 0) & (df.column2 > 0), 'column2'] /
 df.loc[(df.column1 > 0) & (df.column2 > 0), 'totalcolumn']).idxmax()


text:
Q: Interval expression in hql I am trying to launch this sql with hql and it doesn't work due to '* interval' expression.
The sql calculates the avg in 5 mins intervals.
How could be changed the sql to make it works with hql?
SELECT date_trunc('hour', update_timestamp) + (( cast (date_part('minute', update_timestamp) as int) / 5) +1) * interval '5 min' AS minute
      ,  sum(t.free_spaces) as orders_count
FROM  myTable t
GROUP BY 1 ORDER BY 1 ASC

A: Hql does not support interval. You have to use between.
If you want, you can also use native query.

A: you can use the make_interval function.
I found out that it works with HQL Queries,
You can define the parameter like that :

make_interval( NUMBEROFYEARS )

make_interval( days = NUMBEROFDAYS )

You can refere to this web site for more about make_interval :
https://pgpedia.info/m/make_interval.html


text:
Q: Removing whitespace in Javascript Super newbie at Javascript here. I have a problem with whitespace that I'm hoping someone can help me with.
I have a function that looks like this:
function createLinks()
  {
  var i = 0;
  tbody = document.getElementsByTagName('tbody')[3];
    console.log('test order ID: '+document.getElementsByTagName('tbody')[3].getElementsByTagName('tr')[0].getElementsByTagName('td')[1].textContent.replace(/^\s+|\s+$/g,''))
  trs = tbody.getElementsByTagName('tr');
console.log('trs.length = '+trs.length);
  for (i=0;i<trs.length;i++)
  {
orderId = trs[i].getElementsByTagName('td')[1].textContent.replace(/^\s+|\s+$/g,'');
    console.log('order: '+orderId);

hrefReturn = 'https://www.example.com/example.html?view=search&range=all&orderId='+orderId+'+&x=13&y=17';
linkReturn = ''+orderId+'';
    console.log(linkReturn);

trs[i].getElementsByTagName('td')[1].innerHTML = linkReturn;

  }
}

I call this function using another function when the page is initially loaded. This works perfectly.
However, I also call this function in another way when data on the page changes. There's a dropdown list that I have an onClick attribute attached to. That onClick event calls the first function, which in turn calls the second function (above). Both of these functions are saved into text variables and appended to the document, as below:
var scriptTextLinks = " function createLinksText()  {  var i = 0;  tbody = document.getElementsByTagName('tbody')[3];   console.log('test order ID: '+document.getElementsByTagName('tbody')[3].getElementsByTagName('tr')[0].getElementsByTagName('td')[1].textContent.replace(/^\s+|\s+$/g,''));  trs = tbody.getElementsByTagName('tr'); console.log('trs.length = '+trs.length);  for (i=0;i<trs.length;i++)      { orderId = trs[i].getElementsByTagName('td')[1].textContent.replace(/^\s+|\s+$/g,'').replace(/\s/g,''); orderId = orderId.replace(/\s/g,''); console.log('order: '+orderId); hrefReturn = 'https://www.example.com/example.html?view=search&range=all&orderId='+orderId+'+&x=13&y=17'; linkReturn = ''+orderId+'';        console.log(linkReturn);    trs[i].getElementsByTagName('td')[1].innerHTML = linkReturn;   }  console.log('complete'); } "

Finally, here is the specific problem. When THIS version of the same function is called by events on the webpage, it fails to properly delete the whitespace, which breaks the link that it's supposed to create.
This is the exact problem section of code:
orderId = trs[i].getElementsByTagName('td')[1].textContent.replace(/^\s+|\s+$/g,'').replace(/\s/g,''); orderId = orderId.replace(/\s/g,''); console.log('order: '+orderId);

So instead of storing the variable like it should, like this:
"XXXXXXXXX"

It is stored like this:
"
      XXXXXXXXXX
                  "

Which, again, kills the link.
Can anybody clarify what's going on here, and how I can fix it? Thanks in advance!

A: To strip all that surrounding whitespace you can use the standard .trim() method.
var myString = "                \n               XXXXXXX           \n         ";
myString = myString.trim();

You can strip all leading and trailing, and compress internal whitespace to a single space, as is normally done in HTML rendering, like this...
var myString = "    \n    XXXX  \n     YYYY    \n   ";
myString = myString.replace(/\s+/g, " ").trim();

Also, see tharrison's comment below.
(though my /\s+/g pattern worked fine with the embedded \n newlines)

Cure for IE<9
"shim.js"
(function() {
    if (! String.prototype.trim) {
        //alert("No 'trim()' method. Adding it.");
        String.prototype.trim = function() {
            return this.replace(/^\s+|\s+$/mg, '');
        };
    }
})();

(Or, if you might want to do other things in your shim...)
var shim = {
    init: function() {
        if (! String.prototype.trim) {
            String.prototype.trim = function() {
                return this.replace(/^\s+|\s+$/mg, '');
            };
        }
    }
};
shim.init();

Your HTML file


text:
Q: Nested Template Specialization Having a brain fart... Is it possible to make something like this work?
template<int a> struct Foo
{
    template<int b> struct Bar;
};

template<int a> struct Foo<a>::Bar<1> //Trying to specialize Bar
{
};

I don't have to do this, but it will allow me to nicely hide some implementation details from namespace scope.
Suggestions appreciated!
P.S.: I forgot to mention that explicitly specializing for Bar within Foo's scope isn't supported by the language. AFAICS, anyway.

A: According to these posts:
http://www.cpptalk.net/template-member-function-specialization-vt11666.html
you cannot specialize template members of a template class without specializing the outside class.  They do not cite verse and chapter.  My copy of "The C++ Programming Language" does not reveal anything immediately, and my copy of the standard is at home (my backup copy, better known here as "Chris" is not around either :-)

A: Yes, you can. But you'll need to change the call structure, but just a little bit.
Specifically, use the strategy pattern to restructure the implementation of the member function as a class (which IS allowed to be specialized).
This is permitted as long as the strategy class is not nested (and hence not dependent on the unspecialized template type).
e.g. (this probably isn't syntactically correct, but the idea should be clear)
template <class T>
class OuterThingThatIsNotSpecialized
{
  template <class U>
  void memberWeWantToSpecialize(const U& someObj_)
  {
    SpecializedStrategy<U>::doStuff(someObj_);
  }
};

template <class U>
struct SpecializedStrategy;

template <>
SpecializedStrategy<int>
{
  void doStuff(const int&)
  {
    // int impl
  }
};

template <>
SpecializedStrategy<SomeOtherType>
{
  void doStuff(const SomeOtherType&)
  {
    // SOT impl
  }
};

This is incredibly useful because calls to OuterThingThatIsNotSpecialized for types where no implementation exists will simply fail to compile.
PS. You can even use this strategy to partially specialize template functions, something that is an otherwise C++ impossibility.

A: Clause 18, Section 14.7.3 of the 1998 standard (ISO14882:1998) says explicit specialisation of (the inner) template member classes is not allowed when the (outer) template class is not explicitly specialised.

A: Here's what I've been doing, which I think is simpler/more inline with what you're trying to do:
With Helper
template<int a> struct Foo
{
    template<int, int> struct Bar__;
    template<int b> using Bar = Bar__<b, b>;
};

template<int a> template<int b, int c> struct Foo<a>::Bar__
{
    // general case
    const static int x = 0;
};
template<int a> template<int b> struct Foo<a>::Bar__<b, 1>
{
    const static int x = 1;
};

int main(int argc, const char * argv[])
{
    std::cout << Foo<1>::Bar<0>::x << "\r\n"; // general case - output 0
    std::cout << Foo<1>::Bar<1>::x << "\r\n"; // specialized case - output 1
    return 0;
}

OR - The helper can be removed if you don't mind doubling the specialization every time:
Without Helper
template<int a> struct Foo
{
    template<int b, int c> struct Bar;
};

template<int a> template<int b, int c> struct Foo<a>::Bar
{
    // general case
    const static int x = 0;
};
template<int a> template<int b> struct Foo<a>::Bar<b, 1>
{
    const static int x = 1;
};

int main(int argc, const char * argv[])
{
    std::cout << Foo<1>::Bar<0, 0>::x << "\r\n"; // general case - output 0
    std::cout << Foo<1>::Bar<1, 1>::x << "\r\n"; // specialized case - output 1
    return 0;
}

A: You can't do that. I've tried many variations. This, however, compiles in GCC 4.1:
template<int a> struct Foo
{
    template<int b> struct Bar;
    template<1> struct Bar;
};

Edit (after reviewing the standard):
If a is given, however, you can do this:
template <> template <> Foo<1> Bar<1>;

But not if Foo is not first specialized.

A: As the previous posters explained, this is not possible. You can however move the nested template into a non-template base class:
struct FooBase
{
    template<int b> struct Bar;
}
template<int a> struct Foo : public FooBase
{
};

struct FooBase::Bar<1> // specializing Bar
{
};

A: As others have pointed out, C++ doesn't let you specialize a nested class if the outer class template is not also specialized.  When I had a situation like that, I was able to work around it with a helper class tucked away in an internal namespace:
namespace internal {
  template <int a, int b> struct FooBarHelper
  { /* ... */ };
  // Specialization
  template <int a> struct FooBarHelper<a, 1>
  { /* specialized version goes here */ };
}

template<int a> struct Foo
{
  template<int b> struct Bar : public internal::FooBarHelper<a, b>;
};

Of course it's not quite as hidden as you might like it to be.


text:
Q: Two couple equation first order Runge Kutta Matlab troubles? I am solving system of two coupled equations from fluid dynamics.
$p_0 p_0'=-\dfrac{32 \beta}{R^4}$
$(p_0 p_1)'=-\dfrac{2-\sigma_v}{\sigma_v}p_0'\dfrac{8}{R}$
where $\beta$, $\sigma_v$ are constants. $R=R(z)$ radius dependent on $z$-it is not constant, where $z$ is longitudinal coordinate and  $R=r-z(r-1)$, where $r$ is inlet radius. All these equations are in dimensionless form.
As a solution I need to have pressures $p_0$ and $p_1$, these pressures are first and second approximations of pressure, I got it with series expansion of pressure. And I have boundary conditions, that at the inlet $p_{0}|_{z=0}=p_i$ and at the outlet $p_0|_z=1$, for second approximation $p_1|_{z=0}=p_{1}|_{z=1}=0$. Because of this definition I implemented shooting method and got neccessary conditions.
I tried to use MATLAB code from address  https://www.mathworks.com/help/symbolic/solve-differential-algebraic-equations.html
just instead of ode15 which is used on link, I need to implement ode45 (because I need to implement Runge Kutta method).
**
My problem
** is because ode45 is everywhere in matlab implemented with variables which depend on time $t$, and my pressures $p_0$ and $p_1$ are only functions on longitudinal coordinate $z$. Do I need in matlab code write my variables as $p_0(z)$ or just $p_0$, and do I need to change varible $z$ in my equations with time $t$ because matlab ode45  works only with variable $t$?
Does diff in matlab accept that derivation is not according to time $t$?
I tried couple variants, and every time I got error.
Do you have any other helpful advice for solving this system of ODE with Runge Kutta method?
My code is here, I believe there is something wrong with ode45 part of the code, but I cannot conclude what.
> syms R(z) z r beta sig_v p0(z) p1(z);
>
> R(z)=r-z*(r-1);
>
> eqn1=p0(z)*diff(p0(z),z,1)==-32*beta/(R(z)^4);
> eqn2=diff(p0(z)*p1(z),z,1)==-(8*(2-sig_v)*diff(p0(z),z,1))/(sig_v*(R(z)));
> eqns=[eqn1 eqn2];
>
> vars = [p0(z); p1(z)]; origVars = length(vars);
>
> isLowIndexDAE(eqns,vars) [DAEs,DAEvars] = reduceDAEIndex(eqns,vars)
> isLowIndexDAE(DAEs,DAEvars) pDAEs = symvar(DAEs);
> pDAEvars =symvar(DAEvars);
> extraParams = setdiff(pDAEs, pDAEvars)
> %index is low, so we can go further
>
> f = daeFunction(DAEs, DAEvars, beta, r, sig_v);
> beta=1; sig_v=1; r=2;
>
> %%%%%%%%%%%% boudary condition for p and p'
> solinit = bvpinit([0 1],[0 1]);
> sol = bvp4c(@twoode,@twobc,solinit);
> xint = linspace(0,1);
> yint = deval(sol,xint);
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> % ode 45 solving
> options=odeset('RelTol', 1e-8, 'AbsTol', [1e-8 1e-8]);
> g=@(z,p0(z),p1(z), beta, R, sig_v)[eqn1; eqn2];
> [p0(z),p1(z),z]=ode45(@(z,p0(z),p1(z)) g(z,p0(z),p1(z), beta, R, sig_v), [0 1.5],[1 1/2]);

A: You can integrate the first equation directly,
$$
(p_0(z)^2)'=-\frac{64}{(2-z)^4}\implies p_0(z)^2=p_0(0)^2+\frac{64}{3(2-z)^3}-\frac83
$$
As you can see, you only have one integration constant free that you can use to either fix $p_0(0)$ or $p_0(1)$, but not both at the same time.
The same goes for the integration of the second equation, you only get one integration constant that you can use to either fix $p_1(0)$ or $p_1(1)$, but it is improbable that you will get both to zero at the same time.
Usually a boundary value problem requires an order 2 ODE, then you would get 2 integration constants in every step that you can (try to) solve for the 2 boundary conditions.


text:
Q: Is there a significant performance impact between pipeline and straight resolvers? Let's assume I have an AppSync API.
This API has one resolver which consists of a simple GetItem operation on a DynamoDB table.
Now if for some obscure reason I wanted to convert that single operation resolver into a pipeline resolver (with still the same operation and nothing significant in before and after mapping templates), it would probably be fair to assume that there would be some performance hit between the straight operation resolver and the pipeline resolver.
Now I was wondering about the scale of that performance hit: is it going to be negligible, noticeable, or orders of magnitude ?

A: The performance hit should be linear in the sense that if you have a resolver accessing a data source with a request and response mapping template compared to the performance of 2 functions doing similar work with a request and response mapping template each, accessing 2 data sources (each function accessing a data source), this should roughly take twice the time the first resolver takes.


text:
Q: how to read the text in tfw file? I'm trying to check a value in a tfw file.
I have a lot of tfw files and I need to go through all of them in a loop and check if the value in the first line is equal to x.
I can't find anywhere how to work with tfw files. I know it is like a text file (ASCII) but it's not working with xxx.readlines. Does someone know how can I read the first line?
EXAMPLE:
0.6 -----> I NEED TO CHECK THIS VALUE
0
0
-0.6
355000.317
459999.682

A: Since it's a text file you should be able to do it like this:
tfw_file = open("filename", "r")
tfw_raw_data = tfw_file.read()  #reading all text from file
tfw_file.close()
value_from_file = float(tfw_raw_data.split("\n")[0]) # splitting file by lines, getting first line and converting it to float

A: Code below (if it is not working you will have to upload your input file to a public location so it can be tested against the code)
with open('tfw.txt','r') as tfw:
    x-scale= float(tfw.readlines()[0])
    print('x-scale value: {}'.format(x-scale))

A: it works now:
    for filename in os.listdir(root):
     if filename.endswith('.tfw'):
      with open (os.path.join(root,filename)) as f:
      content = f.read()
      line = float(content.split("\n")[0]

A: You can read just the first line of the file:
with open('data.tfw', 'r') as f:
    value = float(f.readline())

    print(f'Value: {value}')


text:
Q: how to make div borders slant? I have 4 divs which stands as my background color, I wanted to to have slanted bottom borders just like this:
this: http://onepagelove.wpengine.netdna-cdn.com/wp-content/uploads/2014/06/opl-big36.jpg
here is my code:

A: You will want a grid like Foundation or Bootstrap. You will want like:

I hope it helps.


text:
Q: Importing custom module into jupyter notebook Yes, I know this is a recurrent question but I still couldn't find a convincing answer. I even read at https://chrisyeh96.github.io/2017/08/08/definitive-guide-python-imports.html but could not find out how to solve the problem:
I'm running python 3.6 project that includes jupyter (ipython) notebooks. I want the notebook to import a custom local helpers.py package that I will probably use also later in other sources.
The project structure is similar to:
my_project/
│
├── my_project/
│   ├── notebooks/
│       └── a_notebook.ipynb
│   ├── __init__.py     # suppose to make package `my_project` importable
│   └── helpers.py
│
├── tests/
│   └── helpers_tests.py
│
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
└── setup.py

When importing helpers in the notebook I get the error:
----> 4 import helpers

ModuleNotFoundError: No module named 'helpers'

I also tried from my_project import helpers and I get the same error ModuleNotFoundError: No module named 'my_project'
I finally (and temporarily) used the usual trick:
import sys
sys.path.append('..')
import helpers

But it looks awful and I'm still looking for a better solution

A: One can tell python where to look for modules via sys.path. I have a project structure like this:
project/
    │
    ├── src/
    │    └── my_module/
    │        ├── __init__.py
    │        └── helpers.py
    ├── notebooks/
    │   └── a_notebook.ipynb
    ...

I was able to load the module like so:
import sys
sys.path.append('../src/')

from my_module import helpers

One should be able load the module from wherever they have it.

A: Here I could find several solutions. Some of them are similar to the ones answered before:
https://mg.readthedocs.io/importing-local-python-modules-from-jupyter-notebooks/index.html

A: If you move the notebooks directory out one level, and then explicitly import your module from the package, that should do it. So your directory would look like this:
my_project/
│
├── my_project/
│   ├── __init__.py
│   └── helpers.py
├── notebooks/
│   └── a_notebook.ipynb
...

and then your import statement within the notebook would be:
from my_project import helpers.

A: Try the following line:
from my_project.helpers import what_you_need
This line should also work:
import my_project.helpers

A: I think you need a __init__.py module in the notebooks/ directory. I haven't really used Jupyter notebooks before so I could be wrong. You may also need to try changing your import statement to:
import .. helpers

to indicate that the import statement is for a local package that is located in the parent directory of the Jupyter notebook.

A: This worked for me.
import sys

MODULE_FULL_PATH = '/<home>/<username>/my_project/my_project'

sys.path.insert(1, MODULE_FULL_PATH)

from my_module import helpers

A: If you are on a Unix/Linux system another elegant solution may be creating a "soft link" to the module file helpers.py that you would like to use. Change to the notebooks directory and create the link to the module file this way:
cd notebooks; ln -fs ../my_project/helpers.py .
This "soft link" is essentially a pointer (a shortcut) to the original target file. With the link in place you will be import your module file as usual:
import helpers


text:
Q: Does Convergence in Distribution ($P(X_n \leq x) \to P(X \leq x)$) imply $P(X_n < x) \to P(X < x)$? Suppose that we have a sequence of random variables $\{X_n\}$ that converges in distribution to some random variable $X$ (denoted $X_n \xrightarrow{D} X$); that is, $P(X_n \leq x) \to P(X \leq x)$ for all points $x$ at which $x \mapsto P(X \leq x)$ is continuous. Is it the case that $P(X_n < x) \to P(X < x)$? Does the converse hold as well? (In other words, if we had defined convergence in distribution with $<$ as opposed to $\leq$, are these notions of convergence logically equivalent)

A: Let us clarify two versions of c.d.f.. Let $\mu$ be a probability
measure on $(\mathbb{R},\mathcal{B}(\mathbb{R}))$. Define $F:\mathbb{R}\rightarrow[0,1]$
and $G:\mathbb{R}\rightarrow[0,1]$ by $F(x)=\mu\left((-\infty,x]\right)$
and $G(x)=\mu\left((-\infty,x)\right)$. If $\mu$ is the distribution
of a random variable $X$, i.e., $\mu(B)=P(X\in B)$, then $F(x)=P(X\leq x)$
and $G(x)=P(X<x)$.
In most textbooks, we play with $F$ rather than $G$ and call $F$
the c.d.f. associated with $\mu$. Both $F$ and $G$ satisfy conditions:
$F,G$ are increasing, $\lim_{x\rightarrow-\infty}F(x)=\lim_{x\rightarrow-\infty}G(x)=0$,
and $\lim_{x\rightarrow\infty}F(x)=\lim_{x\rightarrow\infty}G(x)=1$.
However, $F$ is right-continuous while $G$ is left-continuous. Note
that $F$ and $G$ can be recovered from each other, i.e., if one
of them is known, the other one is uniquely determined. For example,
if $F$ is known, then $G(x)$ can be calculated by $G(x)=\lim_{t\rightarrow x-}F(t):=F(x-)$
(i.e., computing left-hand limit). If $G$ is known, $F$ can be computed
by $F(x)=\lim_{t\rightarrow x+}G(t):=G(x+)$. Therefore, their status
are symmetric (but most people prefer to work with $F$).
Note that for any $x\in\mathbb{R}$, the following three conditions
are equivalent:
(1) $F(x)=G(x)$,
(2) $F$ is left-continuous at $x$,
(3) $G$ is right-continuous at $x$.

For your question: Let $F_{n}(x)=P(X_{n}\leq x)$, $G_{n}(x)=P(X_{n}<x)$,
$F(x)=P(X\leq x)$, and $G(x)=P(X<x)$. We go to show that the following
two conditions are equivalent:
(A) For any $x\in\mathbb{R}$, if $F$ is continuous at $x$, then
$F_{n}(x)\rightarrow F(x)$.
(B) For any $x\in\mathbb{R}$, if $G$ is continuous at $x$, then
$G_{n}(x)\rightarrow G(x)$.
Proof: $(A)\Rightarrow(B)$. Assme that $(A)$ holds. Let $x\in\mathbb{R}$
and suppose that $G$ is continuous at $x$. By the above observation,
$F$ is continuous at $x$ and $F(x)=G(x)$. Let $\varepsilon>0$
be arbitrary. Choose $\delta>0$ such that $|F(t)-F(x)|<\varepsilon$
whenever $t\in(x-\delta,x+\delta)$. Choose $x'\in(x-\delta,x)$ such
that $F$ is continuous at $x'$. This is possible because $F$ has
at most countably many discontinuous points. Observe that $F_{n}(x')\leq G_{n}(x)\leq F_{n}(x)$.
By assumption, $F_{n}(x')\rightarrow F(x')$. On one hand, $F(x')=\lim_{n\rightarrow\infty}F_{n}(x')\leq\liminf_{n\rightarrow\infty}G_{n}(x)$.
On the other hand, $\limsup_{n\rightarrow\infty}G_{n}(x)\leq\lim_{n\rightarrow\infty}F_{n}(x)=F(x)$.
It follows that $0\leq\limsup_{n\rightarrow\infty}G_{n}(x)-\liminf_{n\rightarrow\infty}G_{n}(x)\leq F(x)-F(x')<\varepsilon$.
From $0\leq\limsup_{n\rightarrow\infty}G_{n}(x)-\liminf_{n\rightarrow\infty}G_{n}(x)<\varepsilon$,
we conclude that $\limsup_{n\rightarrow\infty}G_{n}(x)-\liminf_{n\rightarrow\infty}G_{n}(x)=0$
because $\varepsilon>0$ is arbitrary. Therefore, $\lim_{n\rightarrow\infty}G_{n}(x)$
exists. Also, from the above, we have that $F(x)-\varepsilon<F(x')\leq\lim_{n\rightarrow\infty}G_{n}(x)\leq F(x)$.
Therefore, $\lim_{n\rightarrow\infty}G_{n}(x)=F(x)$ as $\varepsilon>0$
is arbitrary. That is, $\lim_{n\rightarrow\infty}G_{n}(x)=F(x)=G(x)$.
Hence, condition (B) holds.

A: They are equivalent, however I believe people prefer the $\leq$ definition to exploit the connection with the cdf's of the random variable. We can prove this as follows.
Suppose $P(X_n \leq x) \rightarrow P(X \leq x)$ for all x such that $x \rightarrow P(X \leq x)$ is continuous. Fix such an x. Then,
$P(X_n < x) \leq P(X_n \leq x) \rightarrow P(X \leq x) = P(X < x)$ where the last equality follows from the fact that $x$ is a continuity point. since $x \rightarrow P(X \leq x)$ has at most countably many discontinuities, we may choose a sequence $x_m$ of continuity points which increases to $x$ from below. Then, $P(X_n < x) \geq P(X_n \leq x_m) \rightarrow P(X \leq x_m)$. since this holds for all $m$, we find that $\liminf_n P(X_n < x) \geq P(X < x)$, and so $P(X_n < x) \rightarrow P(X < x)$.
For the other direction, suppose $P(X_n < x) \rightarrow P(X<x)$ for all $x$ such that $x \rightarrow P(X < x)$ is continuous, and let $x$ be such a point. Then, take a sequence of continuity points $x_m$ which decrease to $x$ from above. $P(X_n \leq x) \leq P(X_n < x_m) \rightarrow P(X < x_m)$. Since this holds for all $m$ and $x$ is a continuity point, this implies that $\limsup_n P(X_n \leq x) \leq P(X \leq x)$. Also, $P(X_n \leq x) \geq  P(X_n < x) \rightarrow P(X < x) = P(X \leq x)$ since x is a continuity point.


text:
Q: UnitOfWork & Generic Repository, SOLID principles with Custom Repository I'm using UnitOfWork and Repository patterns in my project. I'm trying to code clean.
This is my IUnitOfWork.cs  (Application Layer)
public interface IUnitOfWork : IDisposable
{
    int Save();
    IGenericRepository<TEntity> Repository<TEntity>() where TEntity : class;
}

The implementation UnitOfWork.cs : (Persistence Layer)
public class UnitOfWork : IUnitOfWork
{
    private readonly DBContext _context;
    private Hashtable _repositories;
    public UnitOfWork(DBContext context)
    {
        _context = context;
    }

    public IGenericRepository<T> Repository<T>() where T : class
    {
        if (_repositories == null)
            _repositories = new Hashtable();

        var type = typeof(T).Name;

        if (!_repositories.ContainsKey(type))
        {
            var repositoryType = typeof(GenericRepository<>);

            var repositoryInstance =
                Activator.CreateInstance(repositoryType
                    .MakeGenericType(typeof(T)), _context);

            _repositories.Add(type, repositoryInstance);
        }

        return (IGenericRepository<T>)_repositories[type];
    }

    public int Save()
    {
        // Save changes with the default options
        return _context.SaveChanges();
    }

    // etc.. Dispose()
}

My IGenericRepository.cs : (Application Layer)
public interface IGenericRepository<TEntity>
    where TEntity : class
{
    void Update(TEntity entity);
    void Delete(object id);
    void InsertList(IEnumerable<TEntity> entities);
    // etc..
}

In my service : (Application Layer)
var result = UnitOfWork.Repository<Entities.Example>().Delete(id);

And using Unity, I inject the dependency in the container.
  container.RegisterType<IUnitOfWork, UnitOfWork>(new HierarchicalLifetimeManager())

And it works like a charm.
Now I have a custom Repository ICustomRepository:
public interface ICustomRepository: IGenericRepository<Entities.Custom>
{
    void Test();
}

How can I access the Test() function using my IUnitOfWork?
var result = UnitOfWork.Repository<Entities.Custom>().Test();  // not working

UPDATE:
@Thomas Cook give me a way using cast :
   (UnitOfWork.Repository<Entities.Custom>() as ICustomRepository).Test();

I get a NullReferenceException:
System.NullReferenceException: 'Object reference not set to an instance of an object.'

A: You'll have to cast, because UnitOfWork Repository method returns a IGenericRepository which doesn't declare Test. So you'll need to cast the returned value to a ICustomRepository which inherits IGenericRepository and bolts on the Test method.

A: Whilst casting would work (if the repository wouldn't be null) you could ask yourself is this is useful; What good is an abstraction of you're going to depend on knowing its details, i.e.: the caller now knows it actually is a non-generic interface and type, namely a ICustomRepository (btw the reason you get the null ref probably is because UnitOfWork only creates the generic repositories and your custom repo doesn't exist).
A better (IMO) and more explicit way to design your Unit of Work not in a generic way but list all repositories:
public interface IUnitOfWork : IDisposable
{
    int Save();
    ICustomRepository CustomRepository {get;}
    IGenericRepository<Entities.Example> ExampleRepository {get;}
    // etc...
}

This way you don't need any casting or know its details.
Furthermore, I would recommend to pass all repositories to the constructor of the UnitOfWork from your dependency injection and don't make its responsibility too big.
public UnitOfWork(DBContext context, ICustomRepository customRepository ...)
    {
       //
    }

Just make sure you use the same instance of DbContext in your Unit of Work as the one that's injected into your repositories.


text:
Q: Trying by a script-tag in the html-flow to add eventlistener to html-body onload-event doesn't work. Is it a race condition? In the middle of the html-body I have
<script>
function justfortest() {
    alert('teste');
}
document.getElementById('idbody').addEventListener('onload',justfortest);
</script>

(I copied the line just as it is in my html, without linebreaks.)
But it doesn't fire.
It's a rather short html-body, so I wonder if this simply not get called because the onload-event of the html-body has already passed, before the eventlistener is added properly, and how I could check that?


text:
Q: PECL OAuth library for PHP - Works in browser, cant compile manually I am using the PECL OAuth library for PHP which I installed correctly (well, I'm doubting that now). I use it for authentication before querying the LinkedIn API.
In my code I create an OAuth object as in the example here, see bottom. It gets the tokens, authorizes the user after he logged in, and successfully fetches data. But the funny thing is that it only works when I run the .php file through my browser (hosted in apache).
When I try to compile the code from the commandline the compiler says:
PHP Fatal error:  Class 'OAuth' not found in xxx.php on line 15
Obviously I already edited the php.ini to contain the following (or it would not work on the webpage):
extension=/usr/lib/php5/20090626/oauth.so
But when I type 'php -m' in the commandline I dont see the oauth module in the list. I have tried getting the filename/location by inserting these lines after making an instance of the OAuth object
$oauthc = new OAuth($oauth['linkedin']['consumerkey'], $oauth['linkedin']['consumersecret'],OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_URI);
$reflector = new ReflectionClass("OAuth");
$fn = $reflector->getFileName();
echo "[".dirname($fn)."]";

But this only returned the 2 brackets. I have no clue why it apparently works in the browser. Hopefully somebody can help me out.

A: PHP can use different php.ini config files depending on what SAPI is currently in use. For example, there can be files (depends on linux distribution):

*

*/etc/php5/cli/conf.d/*.ini -> loaded when run in CLI mode

*/etc/php5/apache2/conf.d/*.ini -> loaded when run as an Apache module

So, probably your module is getting loaded when PHP runs as an Apache module, and not loaded for CLI


text:
Q: How to put multiple SVGs on one page in a particular size? I am designing a card game. I made a card template in Inkscape and then wrote a Python script to copy the template and make a new SVG file for each card, filling in the title and so on from a CSV file.
What I would like to do with the resulting SVGs is put them in a 3x3 grid on a single page so I can print them on normal paper. I would also like them to be a particular size (specified in the original Inkscape SVG). Note that I have more than one page's worth of cards.
I think normally I could just put them in a wrapper SVG and convert that to PDF, but Inkscape puts id attributes on all elements, which I expect would cause issues.
How can I put these SVGs on a page in a 3x3 grid?

A: Managed to find a solution, though there's room for improvement.
First I convert all the SVGs to PDFs using Inkscape in batch mode. For that I create a file like this:
for ii in cards/*.svg; do
    echo "$ii --export-pdf=$ii.pdf" >> inkscape-commands
done
cd cards
DISPLAY= inkscape --shell < ../inkscape-commands

Then I use the pdfnup command from the texlive-core package (on my distro anyway) to do page layout:
pdfnup --nup 3x3 --paper a4paper --scale 0.90 --no-landscape *pdf

This works, but there's one thing I don't understand and wish was better. The original SVG files should be exactly the right size for cards, but if I use --scale 1.0 then they're too big. If someone can give another answer that allows me to specify the width of the cards in units rather than a percent I'll vote that up.


text:
Q: What does "|&" mean in Bash? For example
echo "aaa" |& cat

What does |& mean here?
Is there a website recommended to look up those? Since most search engines can't support searching special characters.

A: From man 1 bash, section Pipelines:

[time [-p]] [ ! ] command [ [|⎪|&] command2 ... ]
If |& is used, command's standard error, in addition to its standard output, is connected to command2's standard input through the pipe

So it is just like the pipe operator |, but piping both standard output and standard error.

A: If '|&' is used, command1's standard error, in addition to its standard output, is connected to command2's standard input through the pipe; it is shorthand for 2>&1 |. This implicit redirection of the standard error to the standard output is performed after any redirections specified by the command.

A: This operator pipes both standard output and standard error from the left hand side to the right hand side.
The Bash reference manual has a comprehensive index of all operators where you can look up these operators.

A: command1 |& command2 equal command1 2>&1 | command2


text:
Q: Compiling Pythonika on MacOS I'm compiling Pythonika on Snow Leopard and the errors I get suggest that I'm missing some standard flag, any idea what's missing? Another post suggests I need -lrt flag, but that's not available on MacOS
cc -I/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/ Pythonika.o Pythonikatm.o -L/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions -lMLi3 -F/Library/Frameworks/Python.framework/Versions/2.7/ -framework Python -o Pythonika
Undefined symbols:
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)", referenced from:
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const", referenced from:
      _mlipinterfacecontainer_get_domain_names in libMLi3.a(mlipinterface.c.o)
      MLDevices::MLTCPIPDevice::OldConnectServer()      in libMLi3.a(mltcpip.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*, unsigned long)", referenced from:
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      MLNetwork::MLIPAddress::AddInterfaceQualifier(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::LoadIPFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)in libMLi3.a(mlinterface.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)in libMLi3.a(mltcpip.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLObjectBrokers::MLUnixNameBrokerCore::MLUnixNameBrokerCore(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformobjectbrokers.cpp.o)
  "_kCFUserNotificationAlternateButtonTitleKey", referenced from:
      _MLRequest_darwin in libMLi3.a(mlosx.c.o)
      _MLConfirm_darwin in libMLi3.a(mlosx.c.o)
  "std::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >::basic_istringstream(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)", referenced from:
      MLNetwork::MLIPAddress::AddPort(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::MLIPAddress(char const*, char const*)in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::MLIPAddress(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLDevices::MLDeviceParameters::MLDeviceParameters(char*)in libMLi3.a(mldevices.cpp.o)
      MLDevices::MLDeviceParameters::MLDeviceParameters(char*)in libMLi3.a(mldevices.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      _mlfile_get_exe_name_from_command in libMLi3.a(mlfileops.c.o)
      MLNetwork::MLIPAddress::LoadIPFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::LoadIPFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLDevices::MLTCPIPDevice::OldConnectServer()      in libMLi3.a(mltcpip.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mltcpip.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlplatformthreads.cpp.o)
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlplatformobjectbrokers.cpp.o)
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()", referenced from:
      MLNetwork::MLInitializeIPAddressModule()      in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::LoadIPFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLIPAddress::LoadIPFromString(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlipaddress.cpp.o)
      MLExceptions::MLException::MLException(char const*)in libMLi3.a(mlipaddress.cpp.o)
      MLHashTables::MLHashTable<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<int> >::resize(unsigned long)in libMLi3.a(mlipaddress.cpp.o)
      MLHashTables::MLHashTable<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<int> >::resize(unsigned long)in libMLi3.a(mlipaddress.cpp.o)
      MLHashTables::MLHashTable<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<int> >::operator[](int const&)in libMLi3.a(mlipaddress.cpp.o)
      MLHashTables::MLHashTable<int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<int> >::MLHashTable()in libMLi3.a(mlipaddress.cpp.o)
      MLNetwork::MLInterfaceContainer::GetPreferredInterface()      in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetPreferredInterface_c_str()      in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetInterfaceFromHostname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetInterfaceFromHostname(char const*)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetInterfaceFromAddress(MLNetwork::MLIPAddress const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetInterfaceFromAddress_c_str(MLNetwork::MLIPAddress const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::AddInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6HostnameFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6HostnameFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6HostnameFromInterface(char const*)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4HostnameFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4HostnameFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4HostnameFromInterface(char const*)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6AddressFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6AddressFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4AddressFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4AddressFromInterface(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6AddressFromHostname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV6AddressFromHostname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4AddressFromHostname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLNetwork::MLInterfaceContainer::GetIPV4AddressFromHostname(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLExceptions::MLException::MLException(char const*)in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::push_front(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      void MLLists::exch<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlinterface.cpp.o)
      MLExceptions::MLException::MLException(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable()in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable()in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable(MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable(MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction>::MLHashTable()in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction>::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction>::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction>::operator[](MLNetwork::MLIPAddress const&)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction>::MLHashTable(MLHashTables::MLHashTable<MLNetwork::MLIPAddress, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLIPAddressHashFunction> const&)in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::MLList()in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLInterface, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable()in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLInterface, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLInterface, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::resize(unsigned long)in libMLi3.a(mlinterface.cpp.o)
      MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLInterface, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::MLHashTable(MLHashTables::MLHashTable<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, MLNetwork::MLInterface, MLHashTables::MLGenericHashFunction<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::push_back(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::sort()in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::MLList(MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&)in libMLi3.a(mlinterface.cpp.o)
      MLLists::MLList<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::insert(MLLists::MLListNode_Iterator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libMLi3.a(mlinterface.cpp.o)
      MLDevices::MLTCPIPDevice::OldConnectServer()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::DetermineLocalHostnameAndProtocol()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::GetHostname()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::GetHostname()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::GetHostname()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::CreateServer()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::CreateServer()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::CreateClient()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::OldCreateServer()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::OldCreateServer()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::OldCreateClient()      in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(char*, MLDevices::MLTCPIPWorld*)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice()in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLDevices::MLTCPIPDevice::MLTCPIPDevice(MLDevices::MLTCPIPDevice const&)in libMLi3.a(mltcpip.cpp.o)
      MLExceptions::MLException::MLException(char const*)in libMLi3.a(mltcpip.cpp.o)
      MLThreads::makeIPCName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::makeIPCName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::DestroyName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::DestroyName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::DestroyName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::NameValidQ(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreConditionHelper::MLSemaphoreConditionHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, MLThreads::_mlsyncmode, void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreConditionHelper::MLSemaphoreConditionHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, MLThreads::_mlsyncmode, void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFifoConditionHelper::MLFifoConditionHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, MLThreads::_mlsyncmode, void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFifoConditionHelper::MLFifoConditionHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, MLThreads::_mlsyncmode, void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFileLockingMutexHelper::MLFileLockingMutexHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFileLockingMutexHelper::MLFileLockingMutexHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFileLockingMutexHelper::MLFileLockingMutexHelper(void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLFileLockingMutexHelper::MLFileLockingMutexHelper(void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreMutexHelper::MLSemaphoreMutexHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreMutexHelper::MLSemaphoreMutexHelper(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreMutexHelper::MLSemaphoreMutexHelper(void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLSemaphoreMutexHelper::MLSemaphoreMutexHelper(void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle()in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(MLThreads::MLUnixMutexHandle&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(MLThreads::MLUnixMutexHandle const&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, MLThreads::_mlsyncmode)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(char const*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(char const*, MLThreads::_mlsyncmode)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixMutexHandle::MLUnixMutexHandle(void*)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixCondition::MLUnixCondition()in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixCondition::MLUnixCondition(MLThreads::MLUnixCondition&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixCondition::MLUnixCondition(MLThreads::MLUnixCondition const&)in libMLi3.a(mlplatformthreads.cpp.o)
      MLThreads::MLUnixCondition::MLUnixCondition(MLThreads::MLUnixCondition&, MLThreads::_mlcondreset, MLThreads::_mlsyncmode)in libMLi3.a(mlplatformthreads.cpp.o)

A: Looks like you might need the following linker flags:
-lstdc++ -framework CoreFoundation