text:
Q: How to publish Telegram instant view template for review I created an Telegram IV template from my website. All checks are green and the template is working fine when published through:

https://t.me/iv?url=example.com

How can I publish my template for approval? so any URL from:

https://example.com

will be considered as Instant View in Telegram?

A: Instant View only support few domain for now, I think they will accept templates after contest.

A: I have the same problem. It looks like currently you need to publish your template through the contest (this page).

*

*Mark as 'Tracked' in an editor as minimum 10 of articles/posts on your site. If each one is successful, do the follow.

*Press button 'Submit template'.

A: As of 2021, it doesn't seem that Telegram is opening Instant View to more domains. I have tried to publish / submit a template plenty times, with no success.
On My templates page, clicking Submit Template, then Confirm, does nothing at all.

A:
Publishing templates
If the Instant View page has been processed successfully, you'll see a
View in Telegram button in the top right corner – you can use it to
view the resulting page in-app.
For your own audience
Note that if you send the resulting t.me/iv?url=...&rhash=... link to
other Telegram users, they will see an Instant View page built using
your template (the rhash parameter in the link determines which
template is used to create the page). This means that, as a website
owner, you can create a template for your page and publish
t.me/iv?url=... links with the corresponding rhash to your Telegram
channel — and your subscribers will be able to view your articles in
the Instant View format right away.
For all Telegram users
If you'd like your template to become truly public and seen by all
users, regardless of the link they get, the template will need to be
approved by the Telegram team.
― https://instantview.telegram.org/#publishing-templates

The problem is that there is not documentation about how "the template will [...] be approved by the Telegram team" when there are no contests.

A: At the moment (2022) it seems it's not possible to submit an InstantView template for review. The support said to me it's only possible if there is an ongoing context.
This is strange, since in the interface says that it's possible to submit a template without participating to a context:

If you confirm, the web page tries to send the template in a context (see sendToContest):
POST https://instantview.telegram.org/api/my?hash=<omissis>
section=<domain>&method=sendToContest

The request fails without any human error. I think it's a bug in the Instant View submission platform, that does not work without a context.
Here a bug report related to "Cannot submit InstantView":
https://bugs.telegram.org/c/21634


text:
Q: How to store multiple database columns into an array with Linq2Sql I have to work with multiple SQL Server tables that generally look like this:
int id_this, int id_that, ..., double Value1, double Value2, ..., double Value96

I know this sucks, but I can't change it. What I want to do now is to define some class like
public class Foo
{
    public int Id_This { get; set; }
    public int Id_That { get; set; }
    ...
    public double Value[];
}

The Value-Array being a property of course, but I think you get the idea.
The question is, how to get the 96 columns into the array as painlessly as possible.
I could do that with a plain SqlDataReader, since DataRow allows indexed access, but I wonder if I could declare some attributes or write some minimum amount of code to use the class directly with LINQ2SQL.
As a minimum, I would like to do
dataContext.ExecuteQuery<Foo>("SELECT * FROM Foo");

A: Ooh, that is... nice? The DataContext methods always expect an entity type; there is no ExecuteReader, which is a pain (but understandable, as it wants to behave as an ORM). To be honest, I would be tempted to use ADO.NET for the guts against this table, but if you have mapped the wide table to the DataContext you should be able to use either regular C# or reflection.
Since the number doesn't change, unless you have multiple tables I'd just bite the bullet and write some ugly code:
Foo foo = new Foo { Id_This = obj.Id_This, Id_That = obj.Id_That,
    Values = new double[] {obj.Value1, obj.Value2, ... } };

If you have multiple tables... reflection, perhaps optimised via Expression:
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
class FooUgly
{
    public int IdThis { get; set; }
    public int IdThat { get; set; }
    public double Value1 { get; set; }
    public double Value2 { get; set; }
    public double Value3 { get; set; }
}
class Foo
{
    public int IdThis { get; set; }
    public int IdThat { get; set; }
    public double[] Values { get; set; }
    public Foo() { }
    internal Foo(FooUgly ugly)
    {
        IdThis = ugly.IdThis;
        IdThat = ugly.IdThat;
        Values = extractor(ugly);
    }
    // re-use this!!!
    static readonly Func<FooUgly, double[]> extractor =
        ValueExtractor<FooUgly, double>.Create("Value", 1, 3);
}
static class Program
{
    static void Main()
    {
        FooUgly ugly = new FooUgly { IdThis = 1, IdThat = 2, Value1 = 3, Value2 = 4, Value3 = 5 };
        Foo foo = new Foo(ugly);
    }
}
static class ValueExtractor<TFrom,TValue>
{
    public static Func<TFrom, TValue[]> Create(string memberPrefix, int start, int end)
    {
        if(end < start) throw new ArgumentOutOfRangeException();
        ParameterExpression param = Expression.Parameter(typeof(TFrom), "source");
        List<Expression> vals = new List<Expression>();
        for(int i = start ; i <= end ; i++) {
            vals.Add(Expression.PropertyOrField(param, memberPrefix + i));
        }
        Expression arr = Expression.NewArrayInit(typeof(TValue), vals);
        return Expression.Lambda<Func<TFrom, TValue[]>>(arr, param).Compile();
    }
}

redpajama_set_name: RedPajamaStackExchange


text:
Q: Terratest does not find terraform on Mac I am trying to write a simple go test as follows

import (
    "testing"

    "github.com/gruntwork-io/terratest/modules/terraform"
    "github.com/stretchr/testify/assert"
)

func TestCoreInfoOutput(t *testing.T) {
    terraformOptions := &terraform.Options{
        TerraformDir: "../examples/output.tf",
    }

    defer terraform.Destroy(t, terraformOptions)

    terraform.InitAndApply(t, terraformOptions)

    output := terraform.Output(t, terraformOptions, "test_name_prefix")
    assert.Equal(t, "dev-use1-hello_world-", output)
}

But when I run go test my_test.go I get the following error
    apply.go:13:
            Error Trace:    apply.go:13
                                        my_test.go:17
            Error:          Received unexpected error:
                            FatalError{Underlying: fork/exec /usr/local/bin/terraform: not a directory}
            Test:           TestCoreInfoOutput
    destroy.go:11:
            Error Trace:    destroy.go:11
                                        panic.go:615
                                        testing.go:657
                                        apply.go:13
                                        core-info_test.go:17
            Error:          Received unexpected error:
                            FatalError{Underlying: fork/exec /usr/local/bin/terraform: not a directory}
            Test:           my_Test
FAIL

Here is the folder structure
--module
    --core-info
      --examples
        --core-info.tf
        --output.tf
      --test
         my_test.go

I basically want to test the output values in output.tf in my test.
EDIT:
After I changed the file to be a directory of the file it fails with the follwong error
goroutine 23 [IO wait]:
internal/poll.runtime_pollWait(0x9804f28, 0x72, 0xffffffffffffffff)
    /usr/local/go/src/runtime/netpoll.go:203 +0x55
internal/poll.(*pollDesc).wait(0xc00011c7f8, 0x72, 0x1001, 0x1000, 0xffffffffffffffff)
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
    /usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00011c7e0, 0xc0001a6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /usr/local/go/src/internal/poll/fd_unix.go:169 +0x201
os.(*File).read(...)
    /usr/local/go/src/os/file_unix.go:263
os.(*File).Read(0xc00011a080, 0xc0001a6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /usr/local/go/src/os/file.go:116 +0x71
bufio.(*Scanner).Scan(0xc000180300, 0x0)
    /usr/local/go/src/bufio/scan.go:213 +0xa4
github.com/gruntwork-io/terratest/modules/shell.readData(0x13ebf20, 0xc00014a7e0, 0xc000180300, 0xc00011ebc0, 0xc00011eb88, 0xc00012d020)
    /Users/me/go/src/github.com/gruntwork-io/terratest/modules/shell/command.go:151 +0xc9
created by github.com/gruntwork-io/terratest/modules/shell.readStdoutAndStderr
    /Users/me/go/src/github.com/gruntwork-io/terratest/modules/shell/command.go:135 +0x257
FAIL    command-line-arguments  600.060s
FAIL

A: TerraformDir option should be set to a folder path and not a file path.
    TerraformDir: "../examples",

"../examples/output.tf" is not a folder path


text:
Q: Why all  go in  after calling a createTHead I have a question regarding this code:
const table = document.createElement("TABLE");
const thead = table.createTHead();
const tr = thead.insertRow();
const th1 = tr.insertCell();
th1.textContent = "header1";
const th2 = tr.insertCell();
th2.textContent = "header2";

const tr2 = table.insertRow();
const td1= tr2.insertCell();
td1.textContent = "field1";
const td2 = tr2.insertCell();
td2.textContent = "field2";

document.getElementById("main").appendChild(table);

All rows insert in table (not in header) go in <thead>. Why?
Why they are not going in a <tbody> (or a least outside of this <thead> as I am not doing a thead.insertRow() but a table.insertRow();
cf https://jsfiddle.net/n1b87vt3/

A: Because you didn't create a <tbody>, so you insert all in <thead>. Add also tbody const tbody = table.createTBody() then insert the new row in it tbody.insertRow():

  const table = document.createElement("TABLE");
  const thead = table.createTHead();
  const tr = thead.insertRow();
  const th1 = tr.insertCell();
  th1.textContent = "header1";
  const th2 = tr.insertCell();
  th2.textContent = "header2";

  const tbody = table.createTBody();
  const tr2 = tbody.insertRow();
  const td1= tr2.insertCell();
  td1.textContent = "field1";
  const td2 = tr2.insertCell();
  td2.textContent = "field2";

  document.getElementById("main").appendChild(table);
td {
  border: 1px solid black;
}

thead {
  color: red;
}
<html>
<body>
<div id="main">
</div>
</body>
</html>


text:
Q: How to show result body from node JS request to browser? I new to nodeJS and i want to show my request result body to browser using express, but my code throw an error like this, i've try to use array.push() but not working too
ERROR
node:_http_outgoing:576
    throw new ERR_HTTP_HEADERS_SENT('set');
    ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:371:5)
    at ServerResponse.setHeader (node:_http_outgoing:576:11)
    at ServerResponse.header (C:\xampp\htdocs\#masgalih\tt\node_modules\express\lib\response.js:771:10)
    at ServerResponse.send (C:\xampp\htdocs\#masgalih\tt\node_modules\express\lib\response.js:170:12)
    at ServerResponse.json (C:\xampp\htdocs\#masgalih\tt\node_modules\express\lib\response.js:267:15)
    at ServerResponse.send (C:\xampp\htdocs\#masgalih\tt\node_modules\express\lib\response.js:158:21)
    at Request._callback (C:\xampp\htdocs\#masgalih\tt\index.js:12:24)
    at Request.self.callback (C:\xampp\htdocs\#masgalih\tt\node_modules\request\request.js:185:22)
    at Request.emit (node:events:390:28)
    at Request.<anonymous> (C:\xampp\htdocs\#masgalih\tt\node_modules\request\request.js:1154:10) {
  code: 'ERR_HTTP_HEADERS_SENT'
}

CODE
const request = require('request')
const express = require('express')
const app = express()

app.get('/getdata', (req, res) => {
    if (req.query.id !== undefined && req.query.id !== '') {
        request('http://localhost/myApi/index.php?id=' + req.query.id, (err, response, body) => {
            return res.send({
                status: 200,
                data: body
            })
        })
    }

    return res.send({
        status: 400,
        msg: 'Parameter invalid'
    })
})

app.listen(2000)

A: The app.get('/getdata'); has two different res.send();'s in it. This by itself is alright, but what is happening is that when the function in app.get('/getdata'); runs, it checks that if statement first. If the if is false, it skips right past and everything runs fine.
But what if the if statement is true? Well, the code inside the the statement runs and sends a request to the specified URL and waits for a response. While it's waiting though, JavaScript continues running your code because JavaScript is asynchronous.
So the second res.send() runs, but then the response to the request is received, and therefore sends a second (the first in chronological order) res.send(), which is why the error is saying you are trying to set headers (the main information in a nodejs request) after you just sent it to the client.
What the code should do is instead only run on or the other, not both. We can achieve this by putting the second res.send() in an else, which means it only runs if the if statement is false. So something like this:
const request = require('request')
const express = require('express')
const app = express()

app.get('/getdata', (req, res) => {
    if (req.query.id !== undefined && req.query.id !== '') {
        request('http://localhost/myApi/index.php?id=' + req.query.id, (err, response, body) => {
            return res.send({
                status: 200,
                data: body
            })
        })
    } else {

        return res.send({
            status: 400,
            msg: 'Parameter invalid'
        })
    }
})

app.listen(2000)


text:
Q: Android inserting an image as an inputstream possible? My task for this class is to insert an image of a can (or cans) and replace it with the red tiles that are in the Android game. I understand the code so far, yet I have an issue with inputstream. How can I use inputstream to insert a picture of a can?
private Target chooseTarget(int x, int y, int targetNumber) {
    int targetScores [] = {1, 2, 4};    // TODO
    double targetProps [] = {0.6, 0.8}; // TODO
    int targetIndex;

    // zufällige Auswahl des Targets nach Wahrscheinlichkeiten in targetProps
    if(targetNumber==0) { // Also wenn targert == 0
        double dice = random.nextDouble(); // dice ist eine züfallige zahl
        targetIndex = targetProps.length; // targetIndex hat die länge von targetProps
        while (targetIndex > 0 && dice < targetProps[targetIndex-1]) // solange targetIndex > 0 && dice < als Inhalt targetprops Array
            targetIndex--; // Ziehe 1 ab von targetIndex
        targetNumber = targetIndex+1; // targetNumber =
    } else  // explizite Wahl der Nummer des Targets
    {
        if(targetNumber<1 || targetNumber>targetScores.length)    // explizit ausgewähltes Target
            targetNumber = 1;
        targetIndex=targetNumber-1;
    }

    return new Target(x, y, null, targetScores[targetIndex]);   // TODO
}

Here are the constructors:
 public Target(int x, int y, InputStream is) {
    super(x, y, is);

    //tilePaint.setColor(Color.parseColor("#BF1111")); /// Farbe Rot
}

public Target(int x, int y, InputStream is, int score) {
    this(x, y, is);
    this.score = score;
}

I commented out the red tile part. I am supposed to change only the call of the constructor.


text:
Q: A limit two variables How can I compute or prove that $\displaystyle\lim_{(x,y)\to(0,0)}\dfrac{\mathrm{e}^{xy}-1}{\sqrt{x^2+y^2}}=0$?

A: For small $z\in [-1,1]$ there holds $|e^z-1| \leq C|z|$ for some constant $C>0$. Hence for $(x,y)\in B_1(0)$ we may estimate
$$ \left|\frac{e^{xy}-1}{\sqrt{x^2+y^2}}\right| \leq C \frac{|xy|}{\sqrt{x^2+y^2}}$$
Now observe that $2ab\leq a^2+b^2$ and you find
$$ C \frac{|xy|}{\sqrt{x^2+y^2}} \leq \frac{C}{2} \sqrt{x^2+y^2}\rightarrow 0$$ as $(x,y)\to (0,0)$
To show the inequality $|e^z-1|\leq C|z|$ note that $1=e^0$ and use the mean value theorem.
For $z=0$ the inequality is clear for any $C>0$. For $z\in (0,1]$ we find with the MVT and some $\xi\in(0,z)$ that
$$ e^z-1 = e^z \xi \leq e^1 z=e z$$
The estimate on $[-1,0)$ is proven analogously (or with the functional relation of the exponential) and we see that the constant can be chosen such that $C=e$ which is even optimal here.

A: Suppose that $\theta_r$ is continuous and differentiable everywhere on $\mathbb R$. This allows the substitution $$x = r\cos\theta_r \\ y = r\sin\theta_r$$
Then $(x,y) \mapsto (0,0) = r \mapsto 0$, so:
$$\begin{align}
\lim_{(x,y) \to (0,0)} \frac{e^{xy}-1}{\sqrt{x^2+y^2}}
& = \lim_{r \to 0} \frac{e^{r^2 \sin\theta_r \cos\theta_r} - 1}{\sqrt{r^2 \cos^2\theta_r + r^2 \sin^2\theta_r}} \\
& = \lim_{r \to 0} \frac{e^{\frac{1}{2} r^2 \sin2\theta_r} - 1}{r}
\end{align}$$
This is a limit of type $\frac{0}{0}$, so we can use L'Hopital:
$$\lim_{r \to 0} \frac{e^{\frac{1}{2} r^2 \sin2\theta_r} - 1}{r}
= \lim_{r \to 0} \left( r \sin2\theta_r \; e^{\frac{1}{2} r^2 \sin2\theta_r} \right)
= 0$$


text:
Q: Why is SuppressFormsAuthenticationRedirect causing a build error? I found the property SuppressFormsAuthenticationRedirect on this post, but when I tried to use it:
Response.StatusCode = (int)HttpStatusCode.Unauthorized;
Response.SuppressFormsAuthenticationRedirect = true;

I get a build error:
Error   53  'System.Web.HttpResponseBase' does not contain a definition for 'SuppressFormsAuthenticationRedirect' and no extension method 'SuppressFormsAuthenticationRedirect' accepting a first argument of type 'System.Web.HttpResponseBase' could be found (are you missing a using directive or an assembly reference?)   Controllers\ErrorController.cs  39  26  Roving

So I threw in a breakpoint, inspected Response in the watch window, and found that it does indeed have the property. So I tried setting it in the immediate with Response.SuppressFormsAuthenticationRedirect = true which did not cause an error, and it worked as expected. So why is this a build error? I did this, just for fun, and found that it worked as expected (but this is pretty hacky):
Response.StatusCode = (int)HttpStatusCode.Unauthorized;
((dynamic)Response).SuppressFormsAuthenticationRedirect = true;

A: Amith George suggested in the comments that this was because I had .NET 4.5 installed on my machine, but was targetting .NET 4.0. Because .NET 4.5 is an in-place upgrade over 4.0, that DLL was being used, and thus the variable had the SuppressFormsAuthenticationRedirect property at runtime. The build was failing properly because when compiling against .NET 4, it is not aware of that property.


text:
Q: Is resolution of an image lost when uploading a JPG image into Android Studio as a bitmap? I am working on an Android application that looks at different properties of images and I noticed that if I start with a JPG image with dimensions 1920x1080 and upload that image into my app as a bitmap by opening the gallery and selecting the appropriate image, the bitmap dimensions are 1024x576.  I did not declare a width or height for the bitmap and although I do eventually set my bitmap as an imageView, when I put a break point in my code before this happens the dimensions are still low.
Do I lose resolution in my image?
How can I import images as bitmaps without sacrificing resolution?
Below is my code for importing my image from external storage on the phone into my app
public void openGallery(View v){

     runStop = false;
    mHandler.removeCallbacks(mStartScan);
    mStreamButton.setText("Start stream");

    Intent myIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

    startActivityForResult(myIntent, 100);

    ppm = 0;
    numberOfDots = 0;

    if (countParticles.equals(true)){
        mDots.setText(null);
        mPpm.setText(null);
    }

    uploadedImage = true;

    //listItems.clear();
   // mAdapter.notifyDataSetChanged();

}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if(requestCode == 100 && resultCode == RESULT_OK && data!=null){
        Uri imageUri = data.getData();
        try{
            imageBitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(),imageUri);
        }catch (IOException e)
        {
            e.printStackTrace();
        }

        mImageView.setImageBitmap(imageBitmap);

        if (processImage.equals(true)){
            convertToGray();
        }
    }
}

Crude comparison of images
Below is a zoomed in comparison of two of the same points.  The Android Studio debugger allows bitmaps to be viewed, but not copied or saved so the best I could do is print screen while both images are open on my screen.

A: To answer your question: No resolution is lost.
I think you were misled by a very confusing display on the Android Studio "View Bitmap" window. It's not displaying the actual size of the bitmap in pixels. I'm not sure exactly what that is (anybody?); maybe it's dp.
It's also clear that the "View Bitmap" image is being downsampled. That's why the pixels look different to you. The preview window is definitely not presenting the image in the same fidelity as it exists in the memory of your Bitmap object.
A better way to check Bitmap's actual dimensions is to look at the mWidth and mHeight members, or use Bitmap.getWidth()/getHeight().
In case you don't believe me, notice that there is a clue in the image you posted, at the very bottom. It's very hard to see, but you can tell that imageBitmap's mBuffer is 8294400 bytes long.
1920 x 1080 x 4 (bytes per pixel) = 8294400

(I tested this on my own box, I was able to reproduce the issue. Trust me -- the actual Bitmap is full size, with no data loss.)


text:
Q: How to color a girl's skin My usual what-can-I-plot-today resulted in this:

It's based on the math function by mikuszefski posted on mathematica.stackexchange.com.
I implemented it in TeX with pgfplots this way:
\documentclass[tikz,border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{
  width  = 7cm,
  compat = 1.14,
  /pgf/declare function = {
    bx(\a,\b,\c,\d,\e) = tanh(\d*(\a-\b)) + tanh(-1*\e*(\a-\c));
    ex(\x,\y,\z)       = exp(-1*(\x-\y)^2/\z);
    ra(\x,\y)          = 0.4*(1-0.4*ex(\x,0.8,0.15) + sin(2*pi*\y)^2
       + 0.6*ex(\x,0.8,0.25)*cos(2*pi*\y)^2
       + 0.3*cos(2*pi*\y))*0.5*(1+tanh(4*\x))
       + (1-0.2*ex(\x,-1.3,0.9))*0.5*(1+tanh(-4*\x))*(0.5*(1+sin(2*pi*\y)^2
       + 0.3*cos(2*pi*\y))*((abs(sin(2*pi*\y)))^1.3+0.08*(1+tanh(4*\x))))
       + 0.13*bx(cos(pi*\y),-0.45,0.45,5,5)*bx(\x,-0.5,0.2,4,2)
       - 0.1*bx(cos(pi*\y),-0.008,0.008,30,30)*bx(\x,-0.4,0.25,8,6)
       - 0.05*sin(pi*\y)^16*bx(\x,-0.55,-0.35,8,18);
  }
}
\begin{document}
\begin{tikzpicture}
  \begin{axis}[
      small,
      trig format plots = rad,% radian instead of deg
      grid              = major,% thin gray grid lines
      z post scale      = 3,% scaling height
      samples           = 100,% use 20 for low res quicker compiling
      samples y         = 30,%  use 20 for low res quicker compiling
      z buffer          = sort,% sort according to depth of point
      zmax              = 2,
      colormap          = {skin}{rgb255=(255,105,180) rgb255=(255,240,245)},
      draw              = mapped color!95!black,% lighter mesh lines
      view              = {-45}{10},
      %view             = {45}{15},% different view
    ]
    \addplot3[
      surf,
      shader   = faceted interp,
      domain   = 0:1,
      domain y = -1.5:1.5,
    ]
    ( { 0.1*exp(-1*(y-0.8)^2/0.6)-0.18*exp(-1*(y-0.1)^2/0.4) +
        ra(y,x)*cos(2*pi*x) },
      { ra(y,x)*sin(2*pi*x) },
      { y } );
  \end{axis}
\end{tikzpicture}
\end{document}

I wonder if the surface can be improved, such as with a better shading (shader=interp doesn't look great), no mesh or decent mesh, other patch type, different color map - how can you make this girl look great?
(PS: just today and tomorrow (Monday) my 2 books full of examples are available for $5 each, see: blog post. No naked girl on cover though.)

A: Using the interp shader with the color linear in x, you can get an interesting lighting. I also changed the color for an antique sculpture look:

\documentclass[border=10pt]{standalone}
\usepackage[svgnames]{xcolor}
\usepackage{pgfplots}
\pgfplotsset{
  width  = 7cm,
  compat = 1.14,
  /pgf/declare function = {
    bx(\a,\b,\c,\d,\e) = tanh(\d*(\a-\b)) + tanh(-1*\e*(\a-\c));
    ex(\x,\y,\z)       = exp(-1*(\x-\y)^2/\z);
    ra(\x,\y)          = 0.4*(1-0.4*ex(\x,0.8,0.15) + sin(2*pi*\y)^2
       + 0.6*ex(\x,0.8,0.25)*cos(2*pi*\y)^2
       + 0.3*cos(2*pi*\y))*0.5*(1+tanh(4*\x))
       + (1-0.2*ex(\x,-1.3,0.9))*0.5*(1+tanh(-4*\x))*(0.5*(1+sin(2*pi*\y)^2
       + 0.3*cos(2*pi*\y))*((abs(sin(2*pi*\y)))^1.3+0.08*(1+tanh(4*\x))))
       + 0.13*bx(cos(pi*\y),-0.45,0.45,5,5)*bx(\x,-0.5,0.2,4,2)
       - 0.1*bx(cos(pi*\y),-0.008,0.008,30,30)*bx(\x,-0.4,0.25,8,6)
       - 0.05*sin(pi*\y)^16*bx(\x,-0.55,-0.35,8,18);
  }
}
\begin{document}
\begin{tikzpicture}
  \begin{axis}[
      small,
      trig format plots = rad,% radian instead of deg
      z post scale      = 3,% scaling height
      samples           = 100,% use 20 for low res quicker compiling
      samples y         = 30,%  use 20 for low res quicker compiling
      z buffer          = sort,% sort according to depth of point
      zmax              = 2,
      colormap          = {skin}{color=(AntiqueWhite) color=(AntiqueWhite!40!DimGrey)},
      view              = {-45}{10},
      %view             = {45}{15},% different view
    ]
    \addplot3[
      surf,
      shader   = interp,
      domain   = 0:1,
      domain y = -1.5:1.5,
      point meta={x},
    ]
    ( { 0.1*exp(-1*(y-0.8)^2/0.6)-0.18*exp(-1*(y-0.1)^2/0.4) +
        ra(y,x)*cos(2*pi*x) },
      { ra(y,x)*sin(2*pi*x) },
      { y } );
  \end{axis}
\end{tikzpicture}
\end{document}


text:
Q: Trying to pull data from db using sqlite in perl by using multiple tables for filters So I have previously done this by using a (what I consider complicated) string of IN statements in my SELECT statement... but I accidentally deleted my working files and lost my final product...and have since forgotten how to do it.
I'm looking for help recreating that statement, or trying it with JOIN....which I have zero idea how to do. (I know enough about programming to poke around and get something successful ~50% of the time.)
I am working with a database with three tables of interest.
Table 1 contains:
master_id, sub_id1, sub_id2
Table 2 contains:
sub_id, sub_sub_id1, sub_sub_id2
Table 3 contains:
sub_sub_id, data
Sorry in advance for the ambiguous data structure.  So the master_id consists of sub_id1 and sub_id2. sub_id1 and sub_id2 are identified as just plain sub_id's in table 2, consisting of sub_sub_id1 and sub_sub_id2. Sub_sub_id1 and 2 are identified as just sub_sub_id in table 3 with the relevant data I need.
What I am trying to do is pull all sub_sub_ids and data from table 3 when they exist in the tree of table 1.  (Not all sub_sub_id's exist outside of table 3.)
So if sub_sub_id from table 3 is found as either a sub_sub_id1 or sub_sub_id2 in table 2, and if that corresponding sub_id from table 2 is found as sub_id1 or sub_id2 in table 1, then get sub_sub_id and data from table 3.
To make matters more complicated, not every master_id has a sub_id2. And I only want to look in rows that have both sub_id1 and sub_id2.
I hope this makes some sort of sense and there is enough info to help! I'm traveling for work and away from all my handwritten scratch notes that got me through this problem last time. :(

A: I think this works. I tested it in sqlite version 3.11.0. If you use sqlite older than 3.8.3 (which don't understand the WITH clause) change t1_can_be_used and t1_can_be_used into real tables or views.
create table t1 as
  select 1 master_id, 10 sub_id1, 20   sub_id2 union
  select 2 master_id, 40 sub_id1, 50   sub_id2 union
  select 3 master_id, 30 sub_id1, null sub_id2 union
  select 4 master_id, 60 sub_id1, 70   sub_id2 union
  select 5 master_id, 80 sub_id1, 90   sub_id2;

create table t2 as
  select 10 sub_id, 100 sub_sub_id1, 200 sub_sub_id2 union
  select 20 sub_id, 300 sub_sub_id1, 400 sub_sub_id2 union
  select 30 sub_id, 500 sub_sub_id1, 600 sub_sub_id2 union
  select 35 sub_id, 700 sub_sub_id1, 300 sub_sub_id2;

create table t3 as
  select 100 sub_sub_id, 'ABC' data union
  select 200 sub_sub_id, 'QED' data union
  select 300 sub_sub_id, 'XYZ' data union
  select 400 sub_sub_id, 'WWW' data union
  select 500 sub_sub_id, 'CIA' data union
  select 600 sub_sub_id, 'KGB' data union
  select 700 sub_sub_id, 'FDR' data union
  select 800 sub_sub_id, 'JFK' data;

with
t1_can_be_used as (
  select * from t1
  where sub_id1 is not null
  and   sub_id2 is not null
),
t2_can_be_used as (
  select * from t2
  where sub_id in (
    select sub_id1 from t1_can_be_used union
    select sub_id2 from t1_can_be_used
  )
)
select * from t3
where sub_sub_id in (
  select sub_sub_id1 from t2_can_be_used union
  select sub_sub_id2 from t2_can_be_used
);


text:
Q: libGDX json TextButton how to align label? Is there a way to put the following code into a json skin file?
private TextButton createMainMenuButton(String name, ClickListener listener){
    TextButton button = new TextButton(name, skin, "MainMenuStyle");
    button.addListener(listener);
    //How to put the following two lines into a JSON skin file?
    button.getLabel().setAlignment(Align.left);
    button.getLabelCell().pad(5,20,5,20);
    return button;
}

Here's my actual json skin sheet:
"com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle": {
    "default" : { "font" : "arial_narrow_w_32", "up" : "button" },
    "MainMenuStyle" : { "font" : "arial_narrow_w_32", "over" : "overBgMainMenu"}
}

I've tried various things, because I know that TextButton contains a datafield label and therefore I thougth I probably could create somehow a json Label template, which I enter into the TextButton, but unfortunatelly that's not working...
"com.badlogic.gdx.scenes.scene2d.ui.TextButton": {
    "MainMenu" : { "style" : "MainMenuStyle", "label" : "MainMenuLabel"}
},

"com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle": {
    "default" : { "font" : "arial_narrow_w_32", "up" : "button" },
    "MainMenuStyle" : { "font" : "arial_narrow_w_32", "over" : "overBgMainMenu"}
},

"com.badlogic.gdx.scenes.scene2d.ui.Label": {
    "MainMenuLabel" : {"style" : "MainMenuLabelStyle", "lineAlign" : "left",   "cellDefaults" : "MainMenuLabelCell"}
},

"com.badlogic.gdx.scenes.scene2d.ui.Cell": {
    "MainMenuLabelCell" : {"padTop" : 5, "padBottom" : 5, "padLeft": 20, "padRight" : 20}
}

Thanks in advance!

A: I hope to explain well, plus I think you discuss something in another question,
 well, my English is not very good and what not this is exactly the result you want, but hopefully this will serve the NEXT class extends Button, and TEXTBUTTON class has variable label pirivate end, why not override the methods that are involved this is a simple example that just have not implemented the capture exceptions ect, this is just an example.
public class OverflowTextButton extends Button{

private final Label label;
private TextButtonStyleOverflow style;

public OverflowTextButton (String text, Skin skin) {
    this(text, skin.get(TextButtonStyleOverflow.class), false, false);
    setSkin(skin);
}

public OverflowTextButton (String text, Skin skin, String styleName) {
    this(text, skin.get(styleName, TextButtonStyleOverflow.class), false, false);
    setSkin(skin);
}

public OverflowTextButton (String text, TextButtonStyleOverflow style, boolean alignLabelJson, boolean padLabelJson) {
    super();
    setStyle(style);
    this.style = style;
    label = new Label(text, new LabelStyle(style.font, style.fontColor));

    if(alignLabelJson == true){
        Gdx.app.log("OverflowTextButton   align", ""+style.labelJson.name);

        label.setAlignment(getLabelAlignJson(style.labelJson.align));
        add(label).expand().fill();

    }else{

        label.setAlignment(Align.center);
        add(label).expand().fill();

    }

    if(padLabelJson == true){

        add(label).pad(style.labelJson.padTop,
                       style.labelJson.padLeft,
                       style.labelJson.padBottom,
                       style.labelJson.padRight);
    }

    setSize(getPrefWidth(), getPrefHeight());
}

public int getLabelAlignJson(int alignCase){//Exp

    int alignJson = alignCase;

    switch (alignCase) {

    case 1:

        alignJson = 1 << 1;
        return alignJson;

    case 2:

        alignJson = 1 << 0;
        return alignJson;

    case 3:

        alignJson = 1 << 2;
        return alignJson;

    case 4:

        alignJson = 1 << 3;
        return alignJson;

    case 5:

        alignJson = 1 << 4;
        return alignJson;

    default:
        return alignJson;
    }
}

public void setStyle (ButtonStyle style) {
    if (style == null) {
        throw new NullPointerException("style cannot be null");
    }
    if (!(style instanceof TextButtonStyleOverflow)) throw new IllegalArgumentException("style must be a TextButtonStyle.");
    super.setStyle(style);
    this.style = (TextButtonStyleOverflow)style;
    if (label != null) {
        TextButtonStyleOverflow textButtonStyle = (TextButtonStyleOverflow)style;
        LabelStyle labelStyle = label.getStyle();
        labelStyle.font = textButtonStyle.font;
        labelStyle.fontColor = textButtonStyle.fontColor;
        label.setStyle(labelStyle);
    }
}

public TextButtonStyleOverflow getStyle () {
    return style;
}

public void draw (Batch batch, float parentAlpha) {
    Color fontColor;
    if (isDisabled() && style.disabledFontColor != null)
        fontColor = style.disabledFontColor;
    else if (isPressed() && style.downFontColor != null)
        fontColor = style.downFontColor;
    else if (isChecked() && style.checkedFontColor != null)
        fontColor = (isOver() && style.checkedOverFontColor != null) ? style.checkedOverFontColor : style.checkedFontColor;
    else if (isOver() && style.overFontColor != null)
        fontColor = style.overFontColor;
    else
        fontColor = style.fontColor;
    if (fontColor != null) label.getStyle().fontColor = fontColor;
    super.draw(batch, parentAlpha);
}

public Label getLabel () {
    return label;
}

public Cell getLabelCell () {
    return getCell(label);
}

public void setText (String text) {
    label.setText(text);
}

public CharSequence getText () {
    return label.getText();
}

/** The style for a text button, see {@link TextButton}.
 * @author  */
static public class TextButtonStyleOverflow extends ButtonStyle {
    public BitmapFont font;
    /** Optional. */
    public Color fontColor, downFontColor, overFontColor, checkedFontColor, checkedOverFontColor, disabledFontColor;

    public LabelJson labelJson;

    public TextButtonStyleOverflow () {
    }

    public TextButtonStyleOverflow (Drawable up, Drawable down, Drawable checked, BitmapFont font) {
        super(up, down, checked);
        this.font = font;
    }

    public TextButtonStyleOverflow (TextButtonStyleOverflow style) {
        super(style);
        this.font = style.font;
        this.labelJson = style.labelJson;

        if (style.fontColor != null) this.fontColor = new Color(style.fontColor);
        if (style.downFontColor != null) this.downFontColor = new Color(style.downFontColor);
        if (style.overFontColor != null) this.overFontColor = new Color(style.overFontColor);
        if (style.checkedFontColor != null) this.checkedFontColor = new Color(style.checkedFontColor);
        if (style.checkedOverFontColor != null) this.checkedFontColor = new Color(style.checkedOverFontColor);
        if (style.disabledFontColor != null) this.disabledFontColor = new Color(style.disabledFontColor);
    }
}
static public class LabelJson{
    public String name;
    public int align;
    public int padTop;
    public int padBottom;
    public int padLeft;
    public int padRight;

}

}
for use this example, in your class:
TextButtonStyleOverflow style = skinMenuPrincipal.get("pruebasLabel", TextButtonStyleOverflow.class);
button = new OverflowTextButton("newText", style, false, true);
button.setBounds(50, 50, 300, 300);

in your .json:
com.YOUR.PACKAGE.OverflowTextButton$LabelJson: {
top:    { name: top,    align: 1, padTop : 5, padBottom : 5, padLeft: 20, padRight : 20 },
center: { name: center, align: 2, padTop : 5, padBottom : 5, padLeft: 20, padRight : 20 },
bottom: { name: bottom, align: 3, padTop : 5, padBottom : 5, padLeft: 20, padRight : 20 },
left:   { name: left,   align: 4, padTop : 5, padBottom : 5, padLeft: 20, padRight : 20 },
right:  { name: right,  align: 5, padTop : 5, padBottom : 5, padLeft: 20, padRight : 20 }

},
com.YOUR.PACKAGE.OverflowTextButton$TextButtonStyleOverflow: {
    default: { down: default-round-down, up: default-round, font: default-font, fontColor: white },
    toggle: { down: default-round-down, up: default-round, checked: default-round-down, font: default-font, fontColor: white, downFontColor: red },
    pruebasLabel: { labelJson: left, down: default-round-down, up: default-round, checked: default-round-down, font: default-font, fontColor: white, downFontColor: red }
},

.
public OverflowTextButton (String text, TextButtonStyleOverflow style, boolean alignLabelJson, boolean padLabelJson) {

boolean alignLabelJson for used to activate, alignment from json, use true.
boolean padLabelJson for used to activate, pading from json, use true.


text:
Q: How to get apk directly from market I m new to android , i want to know how to get the apk file directly from the android market and save it in my desktop to make use of it later in offline, any ideas are welcome

A: You can use Astro applications from android market to back up all the applications as you need. You can

A: That is intentionally not allowed to download apk file directly.


text:
Q: Converting recurrence relation to summation I am reading book Concrete Mathematics. The authors talk about general method of converting recurrence relation of type
$$a_nT_n=b_nT_{n−1}+c_n$$
multiplies the above relations with $s_n$   called summation factor.
which makes the equation : $$s_na_nT_n=s_nb_nT_{n−1}+s_nc_n$$
such   that $$s_nb_n=s_{n−1}a_{n−1}$$
making  $S_n=s_na_nT_n$
so $$S_n=S_{n-1}+s_nc_n$$
what i didn't understand  is
he write that
$$S_n=s_0a_0T_0+\sum_{k=1}^{n}{s_kc_k}=s_1b_1T_0+\sum_{k=1}^{n}{s_kc_k}$$
how?

A: Just note that
$$ S_n - S_{n-1} =s_n c_n$$
Summing from $1$ to $n$ it gives :
$$S_n - S_0 = \sum_{k=0}^n s_k c_k $$
(see telescoping sums). Given that $S_0 = s_0a_0T_0$ and $s_1b_1 = s_0a_0$ you finally have :
$$S_n=s_0a_0T_0+\sum_{k=1}^{n}{s_kc_k}=s_1 b_1T_0+\sum_{k=1}^{n}{s_kc_k}$$


text:
Q: Why can't I post to my cURL script? I need to send data from one form to two separate locations. I've done this before with a simple cURL script, but now in my testing I can't get it to actually post anything to my secondary source. I am using PAW to send over the POST, with the correct information. Below is my cURL script. I've been looking at this for way too long.
$url = 'https://vf267.infusionsoft.com/app/form/process/41f58953f72a770df094c4525be6fb6b';

$fields = array(
'inf_form_xid' => urlencode($_POST['inf_form_xid']),
'inf_form_name' => urlencode($_POST['inf_form_name']),
'infusionsoft_version' => urlencode($_POST['infusionsoft_version']),
'inf_field_Email' => urlencode($_POST['institution'])
);

//url-ify the data for the POST
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

//execute post
$result = curl_exec($ch);
return $result;
//close connection
curl_close($ch);

I'm passing it these value/key pairs... which correlate to the Infusionsoft form I'm posting to
inf_form_xid=41f58953f72a770df094c4525be6fb6b
inf_form_name=tester
infusionsoft_version=1.50.0.37
inf_field_Email=tester@tester.com

A: /* manually setting the variables for testing */
$_POST['inf_form_xid']          =   '41f58953f72a770df094c4525be6fb6b';
$_POST['inf_form_name']         =   'tester';
$_POST['infusionsoft_version']  =   '1.50.0.37';
$_POST['institution']           =   'tester@tester.com';

$url = 'https://vf267.infusionsoft.com/app/form/process/41f58953f72a770df094c4525be6fb6b';
$fields = array(
    'inf_form_xid'          => $_POST['inf_form_xid'],
    'inf_form_name'         => $_POST['inf_form_name'],
    'infusionsoft_version'  => $_POST['infusionsoft_version'],
    'inf_field_Email'       => $_POST['institution']
);

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);/* set as true rather than a number */
/* use `http_build_query` to construct data to send */
curl_setopt($ch,CURLOPT_POSTFIELDS, http_build_query( $fields ) );
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

//execute post
$result = curl_exec($ch);

//close connection
curl_close($ch);

/* shows the success page by the looks of things - a graphic and a message saying "Thanks Friend! We will contact you shortly." */
print_r( $result );

A: Perhaps the word 'return' ?
Your (modifed) script works for me
<?php

$url = 'https://vf267.infusionsoft.com/app/form/process/41f58953f72a770df094c4525be6fb6b';

$fields = [
    inf_form_xid => '41f58953f72a770df094c4525be6fb6b',
    inf_form_name => 'tester',
    infusionsoft_version => '1.50.0.37',
    inf_field_Email => 'tester@tester.com'
];

//url-ify the data for the POST
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

//execute post
$result = curl_exec($ch);

var_export($result);
die('Finished');

return $result;
//close connection
curl_close($ch);

Output:
<link rel="shortcut icon" href="/slices/style/favicon.ico" type="image/x-icon"/>

<!-- Headers to prevent the caching of pages -->
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-store"/>

<script type="text/javascript" src="/js/lightbox_js.jsp?b=1.50.0.37"></script>
<link rel="stylesheet" href="/css/lightbox_css.jsp?b=1.50.0.37" type="text/css" media="screen"/>
<script type="text/javascript">(function() {
        var styleArray = [];
...
...


text:
Q: how bind md-input to md-slider value angular2 I'm developing an app with Angular 2.0/meteor, and I don't know how to bind an input to md-slider.
Here's the component html :

   <form [formGroup]="filtreForm" #f="ngForm">
       Paramétrages 0
    <md-slide-toggle>On</md-slide-toggle>

               {{filtr.name}}

            <md-input-container class="example-full-width" >
                <input mdInput placeholder="{{filtr.name}}" formControlName="{{filtr.name}}" value="{{filtr.value}}">
              </md-input-container>
          <md-slider
           thumb-label
           [min]="'0'"
           [max]="'200'"
           [value]="filtr.value">
          </md-slider>

        <button type="button" class="btn btn-success btn-quirk" (click)="appliquerFiltre()">  Appliquer ce filtre</button>

    </form>

Here's the component ts :
import {Component, ViewEncapsulation, OnInit, NgZone, Input} from '@angular/core';
import { Router } from '@angular/router';
import { Meteor } from 'meteor/meteor';
import { Observable } from 'rxjs';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';

//Collection import
import { Filtres } from '../../../../both/collections/filtres.collection';
import {Filtre} from "../../../../both/models/filtre.model";

import template from './tpl.dashboard.component.html';

@Component({
  selector: 'traitement_par_lot',
  encapsulation: ViewEncapsulation.None,
  template
})

export class TPLcomponent implements OnInit{

  filtres: Observable<Filtre[]>;
  filtreForm: FormGroup;

   constructor(
    private formBuilder: FormBuilder, private router: Router
  ) {}

  ngOnInit(){
    this.filtreForm = this.formBuilder.group({
        spread:['',Validators.required],
        density:['',Validators.required],
        curviness:['',Validators.required],
        reseed:['',Validators.required],
    });

    this.filtres = Filtres.find({}).zone();
    console.log(this.filtres);
  }

  appliquerFiltre(){

  }

}

This doesn't work. for now i can get the initial value from the slider but it's doesn't change when i slide
Thanks in advance

A: For update the value while slidering, you can use change or input event of md-slider, and get the current value from it's event.value.

*

*change event will be fired only after the end of you slide.

*input event will be fired immediately when the value of slider changes

you can choose the better one for your situation.
take a look at this plunker.


text:
Q: check if a node value is null I have this xml file :
<key1>value 1</key1>
<key2>value 2</key2>
<key3>value 3</key3>
<key4>value 4</key4>

I would like to parse it and get a dictionnary containing all the attributes of my element.
To do that I have this code :
using (XmlReader reader = XmlReader.Create(new StringReader(xmlString)))
{
    string key="";
    string value="";
    while (reader.Read())
    {
        switch (reader.NodeType)
        {
            case XmlNodeType.Element:
                key=(reader.Name)
                break;
            case XmlNodeType.Text:
                value=(reader.Value)
                element_dictionnary.Add(key,value);
                break;
        }
    }
}

Everything is working fine, the problem is if one node is empty like with this file :
<key1></key1>
<key2>value 2</key2>
<key3>value 3</key3>
<key4>value 4</key4>

Everything is shifted and my dictionnary becomes this :
key1/value2
key2/value3
.....
So basicaly, I would like to know how it's possible to associate the node value to the node name, even if the node value is empty.
Thanks in advance for your help.

A: Just check that reader.Value is empty using
string.IsNullOrEmpty(reader.Value)

So your code become
switch (reader.NodeType)
{
    case XmlNodeType.Element:
        key=(reader.Name)
        break;
    case XmlNodeType.Text:
        value=(reader.Value)
        if (!string.IsNullOrEmpty(value))
            element_dictionnary.Add(key,value);
        break;
}


text:
Q: XPath: How to implement XpathResolver correctly I want to use XPath to filter information from an XML.
XPathFactory factory = XPathFactory.newInstance();
     XPath xpath = factory.newXPath();
     Object result = null;
     // set the custom resolver to compares dates
     xpath.setXPathFunctionResolver(new DateValidatorContext(PubUtils.getInstance().parseDate(date), operator));
     try {
      PubUtils.getInstance().printDOM(feed, System.out);
      XPathExpression expr = xpath.compile("//entry/content/artifact/resourceUri/text()");
   result = expr.evaluate(feed, XPathConstants.NODESET);
  } catch (XPathExpressionException e) {
   PublishService.logger.debug(e.getMessage());
   return null;
  }
     NodeList nodes = (NodeList) result;
     for (int i = 0; i < nodes.getLength(); i++) {
         System.out.println(nodes.item(i).getNodeValue());
     }

I implemented the XPathResolver that checks if the date is (EQUALS/GREATER/LOWER) than an given date.
import java.util.Date;
import java.util.List;

import javax.xml.namespace.QName;
import javax.xml.xpath.XPathFunction;
import javax.xml.xpath.XPathFunctionException;
import javax.xml.xpath.XPathFunctionResolver;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import ....Operator;

/**
 * XPathFunctionResolver to compare dates
 *
 */
public class DateValidatorContext implements XPathFunctionResolver {

 private static final QName name = new QName(null, "compare-date");
 private Date referenceDate = null;
 Operator operator = Operator.EQUALS;

 /**
  * Sets the variables for comparison. Default comparison is equals
  *
  * @param referenceDate
  *            date to compare to
  */
 public DateValidatorContext (Date referenceDate){
  this.referenceDate = referenceDate;
 }

 /**
  * Sets the variables for comparison
  *
  * @param referenceDate
  *            date to compare to
  * @param operator
  *            type of operation to execute (EQUALS, GREATER, LOWER)
  */
 public DateValidatorContext (Date referenceDate, Operator operator){
  this.referenceDate = referenceDate;
  this.operator = operator;
 }

 public XPathFunction resolveFunction(QName name, int arity) {
  if (name.equals(DateValidatorContext.name) && arity == 1) {
   return new DateValidator(referenceDate, operator);
  }
  return null;
 }

 /**
  * XPathFunction to compare dates
  *
  */
 public class DateValidator implements XPathFunction{

  private Date referenceDate = null;
  Operator operator = Operator.EQUALS;

  /**
   * Set the values for comparison
   *
   * @param referenceDate
   *            date to compare to
   * @param operator
   *            type of operation to execute (EQUALS, GREATER, LOWER)
   */
  public DateValidator (Date referenceDate, Operator operator){
   this.referenceDate = referenceDate;
   this.operator = operator;
  }

  public Object evaluate(List args) throws XPathFunctionException {
   if(args.size()!= 1){
    throw new XPathFunctionException("Wrong number of arguments to compare-date()");
   }

   Date feedItemDate;
      Object o = args.get(0);

      // perform conversions
      if (o instanceof String) feedItemDate = PubUtils.getInstance().parseDate((String) args.get(0));
      else if (o instanceof Boolean) feedItemDate = null;
      else if (o instanceof Double) feedItemDate = null;
      else if (o instanceof NodeList) {
          NodeList list = (NodeList) o;
          Node node = list.item(0);
          feedItemDate= PubUtils.getInstance().parseDate(node.getTextContent());
      }
      else {
          throw new XPathFunctionException("Could not convert argument type");
      }

      if(referenceDate != null && feedItemDate != null){
       int dateCompare = feedItemDate.compareTo(referenceDate);
       switch(operator){
        case EQUALS:
         if(dateCompare == 0){
          return Boolean.TRUE;
         }
         break;
        case GREATER:
         if(dateCompare > 0){
          return Boolean.TRUE;
         }
         break;
        case LOWER:
         if(dateCompare < 0){
          return Boolean.TRUE;
         }
         break;
        default:
         break;
       }
      }

   return Boolean.FALSE;
  }
 }
}

The problem is that with the current expression
"//entry/content/artifact/resourceUri/text()"

I'm getting all the content from the XML.
How can I fix this to get only the information I need from the XML?
Sample XML:
<?xml version="1.0" encoding="UTF-8"?>
<recentArtifactsFeed>
 <entry>
  <updated>2010-07-08T00:54:22.859Z</updated>
  <content lang="english" type="application/xml">
    <artifact><resourceUri>../types/_WDKRIYorEd-hG9AeAoU8_g</resourceUri></artifact>
  </content>
 </entry>
</recentArtifactsFeed>

A: i just tested your xpathExpression ("//entry/content/artifact/resourceUri/text()"), without the XPathFunctionResolver, this gives the expected result.
I cannot test with the XPathFunctionResolver, because the code is not complete (Operator, PubUtils, ...), but i checked the javadoc:

In particular, the resolver is
  only called for functions in an
  another   namespace (functions with an
  explicit prefix). This means that you
  cannot   use the
  XPathFunctionResolver to
  implement specifications   like XML-Signature
  Syntax   and Processing which
  extend the function library of XPath
  1.0 in the   same namespace. This is a consequence of the design of the
  resolver.

Following gives also a good start: http://xml.apache.org/xalan-j/xpath_apis.html#functionresolver
In short, it takes three steps to use functionresolvers:

*

*create XPathFunction

*create XPathFunctionResolver

*create NamespaceContext


text:
Q: ExtJS 4: How can I configure a store to load models for a specific set of IDs? For example, say I have a server API for loading people that handles requests like this: GET /people/?id=101,329,27
I'd like to build a Store (probably a custom class that extends Ext.data.Store) which--assuming it has a list of people IDs--causes the proxy to make a request like the one shown above so that the returned data is only for that subset of persons.
I saw the documentation regarding remote filtering, but my concern is that to use it I would first need to call store.load() which would load all persons, then call filter() to do remote filtering. I'd like to just load the subset of persons the first time.
Thanks for any advice!

A: Found a solution (although still open to hearing other ideas).
First, you can call a store's load() function with a config object that will be passed to an operation. The API docs for Ext.data.Operation make it clear that one of the config options is for an array of Filter objects, so you can do this:
var idFilter = Ext.create('Ext.util.Filter', {
  property: 'id',
  value: '100,200,300'
});

myStore.load({
  filters: [ idFilter ]
});

This results in a request where the URL querystring contains ?filter=[{"property"%3Aid%2C"value"%3A100,200,300}] (in other words, a URL-encoded version of [{ property: 'id', value: '100,200,300'}]).
You can also just call myStore.filter('id', '100,200,300') without having called .load() first. Assuming you have remoteFilter=true in your store, this will make a request with the same query params shown agove.
Sidenote: you can change the keyword used for 'filter' by configuring the 'filterParam' config option for the proxy. For example, if filterParam=q, then the querystring shown above changes to: ?q=[{"property"%3Aid%2C"value"%3A100,200,300}]
Second, you can control "structure" of the filter in the querystring. In my case, I didn't want something like filter={JSON}, as shown above. I wanted a querystring that looked like this:?id=100,200,300
For this I needed to extend a proxy and override the default getParams() function:
Ext.define('myapp.MyRestProxy', {
    extend: 'Ext.data.proxy.Rest',

    /**
     * Override the default getParams() function inherited from Ext.data.proxy.Server.
     *
     * Note that the object returned by this function will eventually be used by
     * Ext.data.Connection.setOptions() to include these parameters via URL
     * querystring (if the request is GET) or via HTTP POST body. In either case,
     * the object will be converted into one, big, URL-encoded querystring in
     * Ext.data.Connection.setOptions() by a call to Ext.Object.toQueryString.
     *
     * @param {Ext.data.Operation} operation
     * @return {Object}
     *  where keys are request parameter names mapped to values
     */
    getParams: function(operation) {
        // First call our parent's getParams() function to get a default array
        // of parameters (for more info see http://bit.ly/vq4OOl).
        var paramsArr = this.callParent(arguments),
            paramName,
            length;

        // If the operation has filters, we'll customize the params array before
        // returning it.
        if( operation.filters ) {
            // Delete whatever filter param the parent getParams() function made
            // so that it won't show up in the request querystring.
            delete paramsArr[this.filterParam];

            // Iterate over array of Ext.util.Filter instances and add each
            // filter name/value pair to the array of request params.
            for (var i = 0; i < operation.filters.length; i++) {
                queryParamName = operation.filters[i].property;

                // If one of the query parameter names (from the filter) conflicts
                // with an existing parameter name set by the default getParams()
                // function, throw an error; this is unacceptable and could cause
                // problems that would be hard to debug, otherwise.
                if( paramsArr[ queryParamName ] ) {
                    throw new Error('The operation already has a parameter named "'+paramName+'"');
                }

                paramsArr[ queryParamName ] = operation.filters[i].value;
            }
        }

        return paramsArr;
    }
});

A: You can also get your Model object to load a record of itself. From a controller you can do:
this.getRequestModel().load(requestID,{       //load from server (async)
       success: function(record, operation) {
       .....
       }
}

where Request is a model class and requestID is an ID to look up. In this scenario Model object needs to define the proxy too:
proxy: {
        type: 'ajax',
        reader: {
           type:'json',
           root: 'data'
        },
        api: {
            create : 'request/create.json', //does not persist
            read   : 'request/show.json'
       }
    }


text:
Q: dequeueReusableCellWithIdentifier returns nil for iPhone. Connecting one class in two storyboards I'm trying to use one class (DetailCell) for both iPhone and iPad storyboard.
I have the following code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        static NSString * cellIdentifier = @"DetailCell";
        DetailCell * detailCell = [self.tableView dequeueReusableCellWithIdentifier:cellIdentifier];
        if (detailCell == nil) {
            detailCell = [[DetailCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"DetailCell"];
        }
        //cell customization here...
    return detailCell;
}

It perfectly works for iPad but does not for iPhone! All identifiers and connections and class set properly. I've also tried to wipe cells in both boards and create new. What I actually have:
on iPad:
I'm getting the cell in the deque so it does not enter to if and returns cell as needed.
on iPhone:
deque returns nil, going to if, it returns DetailCell but cusomization for it does not work. (all outlets are nils before and after setting values)
What can be the reason for this behavior?
P.S both on iOS5 and iOS6

A: Try this.
    static NSString * cellIdentifier = @"DetailCell";
DetailCell * detailCell = [self.tableView dequeueReusableCellWithIdentifier:cellIdentifier];

if (detailCell == nil)
{
    detailCell = [[DetailCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"DetailCell"];

    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"YourNibName" owner:self options:nil];
    for (id oneObject in nib) if ([oneObject isKindOfClass:[DetailCell class]])
        cell = (DetailCell *)oneObject;
}
//cell customization here...
return detailCell;


text:
Q: Script to update IP addresses in config file I'm writing a script that would prompt the user for the original IP and then the new IP. I can get sed to work from the CLI but wanted to make a script so users could update their own public IP's on a web server for access.
I'm getting the following errors but don't know why it's looking for EOF:
./UpdateIP.sh: line 24: unexpected EOF while looking for matching `''
 ./UpdateIP.sh: line 25: syntax error: unexpected end of file

Here's my script:
#!/bin/bash

# This script will change the IP address from x.x.x.x TO y.y.y.y

configs=/root/test.conf

echo "Please enter the IP Address to change:"

# Ask user to input for IP address
read origip

echo "Please enter the NEW IP Address to be changed to:"
read newip

echo "The original IP in the lines below will be changed FROM:
sed 's/$(origip)/$(newip)/' $(configs) | grep $(origip)
echo "TO:"
sed 's/$(origip)/$(newip)/' $(configs) | grep $(newip)

read -p "Press [Enter] key to start updating IP's..."

A: You can use below script for updating new ip adress
Tested  and it worked fine
script

#!/bin/bash
echo "enter the old ip adress which need to change"
read oldip
echo "enter the new ip adress"
read newip

sed -i "s/$oldip/$newip/g" configfilename


text:
Q: .form-group to have the height of the element inside I want to set border-right: 1px solid #2e2e2e to a .form-group element, but it doesn't match the height of its content and it looks ugly.
Here's a demo:

/* My styles */

.form-group {
  border-right: 1px solid #2e2e2e;
  padding: 0 10px;
}

.bootstrap-select.btn-group .dropdown-toggle {
    padding: 15px 40px 15px 0;
}

<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.0/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<form class="form-inline">

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

  <button type="submit" class="btn btn-info">Send</button>
</form>

Edit: Run it in Full page mode.

A: Set height:auto; to .form-control

A: float:left of the child elements and fixed height of your bootstrap-select are causing this issue.
Code Snippet

/* My styles */

.form-group {
  border-right: 1px solid #2e2e2e;
  padding: 0 10px;
}
.bootstrap-select.btn-group .dropdown-toggle {
  padding: 15px 40px 15px 0;
}
.mycustomform {} .mycustomform .btn-group {
  height: auto;
}
.mycustomform .form-group::before,
.mycustomform .btn-group::before {
  content: "";
  display: table;
}
.mycustomform {} .mycustomform .form-group::after,
.mycustomform .btn-group::after {
  content: "";
  display: table;
}

<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.0/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<form class="form-inline mycustomform">

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

  <button type="submit" class="btn btn-info">Send</button>
</form>

A: use the below code, hope it works

.form-group{
 border-right:1px solid #000;
 padding-right:5px;
}

<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.0/css/bootstrap-select.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<form class="form-inline">

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

    <select class="selectpicker form-control">
      <option>Option #1</option>
      <option>Option #2</option>
      <option>Option #3</option>
    </select>

  <button type="submit" class="btn btn-info">Send</button>
</form>

watch in big screen

A: set margin-bottom:15px; for the div inside .form-group

A: No sure if this will help anyone, but I have run into issues where the .form-group class does not want to have a dynamic height. Adding height: auto to .form-group will fix this.


text:
Q: p.adjust with n < than number of tests I would like to apply the p.adjust function in R where n is < number of p-values. The real number of independent tests is lower than the number of p-values as it cames from genomic data with Linkage Desequilibrium Desequilibrium (effective number of independent tests, Meff).
However, the p.adjust function do not allows it: number of comparisons, must be at least length(p).
Someone knows how to change this default in function or other generic function to accomplish similar work? Thank you!
Followed Steps:
1 - 3242 tested markers = 3242 p-values
2 - Inferred Meff is:  1096 (http://simplem.sourceforge.net/ procedure)
Now I need to estimate the corrected treshould or corrected p-values based on Meff.
I am not sure which multiple test correction strategy fits better or how to apply it in my data.

A: The code:
  p.adjust # typed at command line prints out the code
  # copy the body of the function

... is really very simple and all R. Just redefine a function that comments out that stopifnot() line:
my.p.adj <- function (p, method = p.adjust.methods, n = length(p))
 # paste the body and edit this:
....
p <- p[nna]
lp <- length(p)
# stopifnot(n >= lp)
if (n <= 1)
....  # hit enter


text:
Q: windows XP not supporting TLSv1.2 currently i am working on something which requires my client to connect to host server using TLSv1.2 in windows xp environment. i have built my application dll with openssl static library and using the same openssl dll's to invoke my client sample application. i am using visual studio 2012 for building. the dll is working perfectly fine with windows 7 environment, but its not working with windows xp. below are the things i have tried and explored till now.
1) in visual studio, project properties, we can select the environment for which we want to build. i have selected the same for windows xp.
visual studio properties for windows xp build
2) i am using openssl v1.0.2j which supports TLS v1.2 for building my application dll.
3) in my dll code i made changes for initializing ctx to tlsv1_2_method().
4) my client application which invokes the application dll which is built using visual studio is running on windows xp. the host server uses TLSv1.2 protocol for communication. so my client application should communicate using TLSv1.2 and that is where the problem is i guess. if i am using sslv3, its working fine.
if i used sslv3_method() in my code and build with the same settings, i am able to call my dll from sample application in xp and its working fine. but when i use tlsv1_2_method(), it does not work its giving error, my.dll not found.
i have added all the required supported libraries and checked with dependency walker software. there are not dependent dll's missing.
i googled for the above issue, and found that windows xp does not support TLSv1.1, TLSv1.2. but i also found out if we are not using windows protocol communication mechanism and our own communication application, then it can be done. but i dont have resource nor required in-depth knowledge to do so.
Is there any method or steps to build openssl library for windows xp seperately?
it would be of great help if you can anyone can tell me if there is a way through which this can be done. whether i need to build openssl libraries for windows xp in some other way or is there any setting which i am missing. below are the links which i went through for getting info on this issue.
support-for-ssltls-protocols-on-windows
please guide me on how i can make tlsv1.2 work on windows xp.


text:
Q: how to access elements that are shown in developer tools but not in source code VBA I'm trying to access a Link on this site: https://finder.fi/search?what=sonera. the link is the first result of the page. The part of code in the developer tools is like this:

Sonera

However none of this can be found in the source code.
How do I access the code shown in the developer tools? This is my code so far.
Sub test()
Dim browserIE As Object
Set browserIE = CreateObject("InternetExplorer.Application")
browserIE.Top = 0
browserIE.Left = 800
browserIE.Width = 800
browserIE.Height = 1200
browserIE.Visible = True
browserIE.navigate ("https://finder.fi/search?what=sonera")
Do While browserIE.ReadyState <> 4 And browserIE.Busy: DoEvents: Loop

I've already done some research (e.g. Cant access element that are shown in developer tools but not in page source) but haven't found the answer yet.

A: What you see in the developer tools is the HTML contents of the page "https://finder.fi/search?what=sonera". If you want to access the HTML of this page, you can navigate the DOM (Document Object Model) of the HTML page. If you google for "InternetExplorer.Application" you will find links to MSDN with all required information.
To access the document:
Dim oDoc As Object
Set oDoc = BrowserIE.Document

To find all the links on the page:
Dim cLinks
cLinks = oDoc.body.getElementsByTagName("A")

This latter needs some trying and debuggin by you. MSDN says it returns a collection but does not provide an example for VBA. So the Dim might need to be Dim cLinks As Collection.


text:
Q: How is it Instagram shows heads-up notifications when app is in background? As far as I googled if an app is in background notifications drop in a tray and can't be shown as heads-up overlaying all other apps. But yet instagram notifications overlay other apps even when instagram not in the foreground. How do they do this? I managed to show heads-up notification on emulator but only when my app is in the foreground and couldn't do the same on my real device (Huawei). Android on device and emulator are the same - 5.1
Can it be connected with a source of notifications? I am using firebase console to send notifications. Probably it's firebase restriction and I should switch to onesignal or another provider?
Also, are heads-up notification can only be singleline, or I can somehow enable multiline mode?
Please, give me working code for heads-up notifications when app is in the background. I already tested everything I could find on StackOverflow on the matter.

A: That might be the case of OS force closing background services. Some manufacturers like Huawei, Xiaomi etc, do that intentionally to enhance battery life. But for apps like Instagram and Whatsapp, manufacturers whitelist these apps.
To whitelist any App you have to change settings from the device itself.
To change settings for your app here is the link.


text:
Q: ensureCapacity not recognized import java.util.*;
class A{
    public static void main(String[] args){
    }
    private List <B> bList;
    private Random generator = new Random();
    A(List<B> initialList){
        bList = new ArrayList<B> ();
        int listSize = initialList.size();
        bList.ensureCapacity(listSize);
             for (B b : initialList) {
             int bIndex = generator.nextInt(listSize);
             bList.add(bIndex , b);
        }
    }
}
class B{
}

I have been getting the error reading

Exception in thread "main" java.lang.RuntimeException:  Uncompilable
  source code - Erroneous sym type: java.util.List.ensureCapacity

A: ensureCapacity is not a method of type List.
And yes It's a method of ArrayList,but the reference bList is a List,you should cast it to ArrayList to use that method,like this:
((ArrayList<B>) bList).ensureCapacity(listSize);
         for (B b : initialList) {
         int bIndex = generator.nextInt(listSize);
         bList.add(bIndex , b);
    }

By the way,I never invoke the method ensureCapacity of ArrayList directly  in my entire program life.

A: List<T> is an interface, but it does not contain definition of ensureCapacity. This is available in ArrayList and LinkedList<T> - so you have to cast the bList to ArrayList to call ensureCapacity.
((ArrayList<B>) bList).ensureCapacity(listSize);

A: IDE's are always good to have,Time is precious if you are using any IDE to program definitely you will get a red mark on this bList.ensureCapacity(listSize); line with a message  which will secure your time to find out the solution the message clearly saying that ensureCapacity(int) is undefined for List interface.
The method ensureCapacity(int) is undefined for the type List<B>

So ensureCapacity(int) method is available inside the implementation of List interface which is ArrayList, Cast your this line(bList) bList.ensureCapacity(listSize) to ((ArrayList<B>) bList).ensureCapacity(listSize);

A: If you want to call ensureCapacity on the List then you should declare it as an ArrayList not a List.
Casting, generally speaking, should never be done if you can avoid it.  You should declare you variables to be as general as they can be without needing to resort to casting.  That isn't always possible, but in this particular case there is no reason not to do so.


text:
Q: not able to deploy bean on the glassfish server I am getting following error in server log while deploying bean (.jar) file using admin console
I am using glassfish 3.1 and IDE is netbeans
SEVERE: UTIL6550: Error in local string manager - resource bundle is probably missing.
java.util.MissingResourceException: Can't find bundle for base name com.sun.enterprise.connectors.jms.system.LocalStrings, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:962)
        at com.sun.enterprise.util.i18n.StringManagerBase.getResourceBundle(StringManagerBase.java:127)
        at com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:180)
        at com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:206)
        at com.sun.enterprise.util.i18n.StringManagerBase.getString(StringManagerBase.java:246)
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2054)
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1864)
        at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:186)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:204)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:121)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
        at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
        at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
        at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
        at javax.faces.component.UICommand.broadcast(UICommand.java:300)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:619)

SEVERE: UTIL6550: Error in local string manager - resource bundle is probably missing.
java.util.MissingResourceException: Can't find bundle for base name com.sun.enterprise.connectors.jms.system.LocalStrings, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:962)
        at com.sun.enterprise.util.i18n.StringManagerBase.getResourceBundle(StringManagerBase.java:127)
        at com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:180)
        at com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:206)
        at com.sun.enterprise.util.i18n.StringManagerBase.getString(StringManagerBase.java:246)
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2060)
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1864)
        at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:186)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:204)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:121)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
        at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
        at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
        at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
        at javax.faces.component.UICommand.broadcast(UICommand.java:300)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:619)

SEVERE: MDB00017: [TestBean]: Exception in creating message-driven bean container: [com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local string defined]
SEVERE: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local string defined
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2061)
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1864)
        at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:186)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:204)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:121)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:234)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:143)
        at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:406)
        at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:100)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:76)
        at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
        at javax.faces.component.UICommand.broadcast(UICommand.java:300)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: No local string defined
        at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:2055)
        ... 72 more

SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
java.lang.RuntimeException: EJB Container initialization error
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:246)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:290)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:101)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:249)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)

A: Looks like it could be a known bug:
http://java.net/jira/browse/GLASSFISH-15981
However, make sure the jms destination your referencing actually exists and it cased the same.


text:
Q: how does A'B'C' convert to A'+B'+C'? I'm trying to learning boolean algebra.
One of de morgan's law is not understood.
how does A'B'C' convert to A'+B'+C'?
As I know,
1. (A'B')' = A+B
2. (AB)'=A'+B'
3. (A+B)'=A'B'
I think it should be (A+B+C)'.
Is this same between A'+B'+C' and (A+B+C)' or A'B'C' and (ABC)'?
http://www.indiabix.com/digital-electronics/boolean-algebra-and-logic-simplification/discussion-138

A: \$\bar A \bar B \bar C \$ does not equal  \$  \bar A+ \bar B + \bar C \$
If you let A=0, B= 1, and C=1
Then \$\bar A \bar B \bar C \$ = 0 and \$  \bar A+ \bar B + \bar C \$ = 1
It's clear that they are not the same
If you apply deMorgan's for \$\bar A \bar B \bar C \$ you would end up with  (A+B+C)'. Which is what you said.

A: In your post, you say:
2. (AB)'=A'+B'
3. (A+B)'=A'B'
I think it should be (A+B+C)'.  <== I don't know where this fits in

then you provide four combinations:
A'+B'+C' and (A+B+C)' or A'B'C' and (ABC)'

Looking at each one,
A'+B'+C' = (ABC)'     (flipping 2 around and extending to three terms)
(A+B+C)' = A'B'C'     (from 3, extending to three terms)
A'B'C' = (A+B+C)'     (flipping 3 around and extending to three terms)
(ABC)' = A'+B'+C'     (from 2, extending to three terms)

so the first and last are the same, and the middle two are the same.