text:
Q: How to add checkbox for each row in table html with php embedded and update its value in database(Postgresql)? I have already fetch the record from the database. It is shown on the html table. But it is still Non editable mode. I want to make sure the record shown is completely okay and update its Boolean value in the database. Otherwise it should be shown as red in color which are not approved i.e they are incorrect.
May be this can be easy. But please help me working this out. Sharing my code.

Edit Table

                 Id
                 University Id
                 Name
                 College Id

                          <?php
         foreach($student_data as $row){

          ?>

                <?php echo $row['id']; ?>
                <?php echo $row['university_id']; ?>
                <?php echo $row['name']; ?>
                <?php echo $row['college_id']; ?>
                <input type='button' class='editable' onclick="table_edit()" value='Edit'/>
                <input type='button' class='tabledelete' onclick="table_update()" value='Delete'>

            <?php
        }
    ?>

This above code is called with the help of function in controller class whose code is below:
 public function tableedit(){

          if($this->session->userdata('university_id')){

              /*if($this->input->server("REQUEST_METHOD") === "POST"){*/

                  // $data['user_id'] = $this->session->userdata('university_id');
                 /*$data['name'] = $this->input->post('college_name');
                 $data['college_id'] =$this->input->post('college_id');
             $insert = $this->home_model->addCollege($data);
              $data['success'] = 'college added successfully';
              }*/

              $user_id =  $this->session->userdata('university_id');
              $data['user_id'] = $user_id;
              $data['student_data'] = $this->home_model->table_data($user_id);

               $this->load->view('home/new-header',$data);
               // $data['get_social'] = $this->home_model->get_social();*/
               //  $this->load->view('socail', $data);

    //            if (isset($_POST['id'])) {

    //     echo json_encode($response);

    // }

               /*$this->home_model->update_university_password($user_id,$password);*/

               $this->load->view('home/left_university_sidebar',$data);
               $this->load->view('edit_table',$data);

               $this->load->view('home/footer');

          } else {
              $data['error'] = 'Table Cannot be viewed!';
              $this->load->view('home/header');
              $this->load->view('edit_table');
              $this->load->view('home/footer');

          }

      }

Now this above code is getting called in the model class i.e where the queries are called.
public function table_data($user_id) {

    $this->db->select('id,university_id,name,college_id');
       /*$this->db->where('university_id',trim($user_id));*/
       $this->db->from('college');
       $query = $this->db->get();
       return $query->result_array();

 /* $query = $this->db->query("SELECT id,university_id,name,college_id FROM college");
   $this->db->where('user_id',$university_id);
                   return $query->result_array();*/

}

A: It is a strange question in all fairness and we cannot code it for you.
But in your view, you need to make your table inside a form, then add a table cell to contain your checkbox.
How you generate your checkbox is up to you, you can use the CI form_helper or you can just code bootstrap checkbox, or use a plain html checkbox. The value of your checkbox you can set like this:
<input type="checkbox" name="my_value[]" value="<?php echo $entry_id; ?>">

Where entry id is your row id or identifier you set. You collect your input something like this
$my_data = $this->input->post('my_value');

You now have an array of all your checked values. Run through these and do whatever you want.
As for showing items in red that do not fit a particular criteria, a simple if statement in your view will do that, either displaying an entirely different piece of HTML or setting a class to use on the row, table cell or text.
I hope this helps in some way, but your question was rather vague to begin with.
Good luck with your website,
Best wishes,
Paul.


text:
Q: How to write ^C in the Windows console? How to write ^C at in the Windows console? For example, I need to enter ^C in this window. If you press Ctrl+C in the console, the application exits and the console closes.

A: If you press CTRL+C to cancel the execution of command in cmd

A: In your keyboard SHIFT+6 = ^
then you can use ^C as a string in the cmd

redpajama_set_name: RedPajamaStackExchange


text:
Q: What kind of structure is this? I have written this paragraph as part of a review. I believe it is correct grammar but can't pinpoint the logic behind the use of the comma or the it is.  I don't know the name of this kind of structure or usage. Can anyone help?
A black comedy that at times evolves into a tense thriller and at others shows hints of horror, it is an original, gripping, and disturbing tale of pervasive class tension, oppression, and helplessness.
Thanks a lot in advance.

A: The sentence from the OP illustrates the use of a highly versatile and common syntactic construction, which in simple terms can be described as: Predicate + Main Clause. Here's another sentence illustrating this syntactic pattern:

"A long-time favorite of critics, Timothy Oliphant is set to win this
  year's Oscar. "

The introductory noun phrase : "A long-time favorite of critics" ("A black comedy.." in the OP) is understood as predicated of the following NP "Timothy Oliphant". Or, to put it differently, the introductory NP has a clausal character. (if you wish, you can call it "I'll borrow the subject from the main clause" construction")
Now, here's the same sentence, with an added comma, representing a case of apposition:

"A long time favorite of critics, Timothy Oliphant, is set to win this
  year's Oscar."

The intention here is quite different - we want to precisely specify the person/thing that is "a long time favorite of critics". Apposition, thus, is a term used for a concept/idea/construction with a far narrower meaning and use. We can predicate anything about anyone or anything, in any possible syntactic form, while apposition is a quite limited concept, both semantically and formally.
What strikes first from the sentences illustrating apposition is that the appositive pattern is fixed: "NP comma NP comma" - the appositive modifier is set off by commas (with the exception of two examples from CGEL illustrating detached appositive modifiers as a minor usage ) Not only that, the order is fixed too: anchor + appositive modifier. This sharply contrasts with the other construction explained here. The ascriptive NP from the first sentence is almost free-floating - we can move it around like: "Timothy Oliphant, a long-time favorite of critics, is set to win this year's Oscar" (again, this is not a case of apposition).
I found a thorough treatment of apposition in Quirk's "A Comprehensive Grammar of the English Language". I've read the part concerning what the authors termed "non-restrictive apposition", which is at issue here: ("supplementive apposition" in The Cambridge Grammar of the English Language). Here's what is said there:

Apposition is primarily and typically a relation between two noun
  phrases...... In non-restrictive apposition the two NPs contribute
  relatively independent information, with the first appositive acting
  as the DEFINED expression, and the other appositive having a DEFINING
  role ("the definer"). The defining role is reflected in the fact that
  the second appositive is marked as parenthetic by punctuation or
  intonation.

Here's a useful clue : the template: "NP comma Main Clause" will never be understood as an apposition. The two adjacent NPs in this construction will never be read as "The Defined Expression + The Definer". As I said multiple times, these two NPs will be in a Subject+Predicate relation.
Another useful clue: the template: "NP comma, NP, comma" will typically, but not necessarily be an apposition. Only if the two NPs stand in the "The Defined - The Definer" relation will this construction be understood as a unique sort of a relation/construction that people termed "apposition". This example from CGEL nicely illustrates this point: "Kim Jones, a quite outstanding student, won a scholarship at MIT" . This is not a case of apposition - "a quite outstanding student" doesn't specify "Kim Jones", it "..expresses a property that is ascribed to Kim Jones". This is clearly set out in the definition provided in this grammar book: "The construction with a SPECIFYING NP as supplement is known as apposition".
As with any other syntactic construction, tons could be said about this one too. One less striking but very interesting aspect, for example, would be the use of pronouns as appositives. The appositive modifier is supposed to specify, but how can you specify something with a pronoun? "A black comedy, it, .. ". (Using "this", "that" etc. will similarly preclude this construction, e.g "this actor" instead of Timothy Oliphant in the second example above will make the sentence unreadable. Notice also that the anchor can be a pronoun: "We the supporters of.. ")
Apposition is all about being more specific about what the person has just referred to. I refer to X and then I refer to X again, only now in more specific terms. That's all there is to this construction. I believe there are good reasons for setting it apart from a superficially similar, but fundamentally different construction. We want to group similar ideas together, and to distinguish them from dissimilar ones. This is why I said earlier that we shouldn't label the NP from the OP sentence as apposition - it is not a minor terminological point.
 It is not about one or the other term, it is about what these terms represent, and why they were introduced in the first place.

A: Though there are various overlapping/conflicting definitions of the terms 'apposition / appositives' (see McCawley's balanced but now dated overview [McCawley: The Syntactic Phenomena of English ... p 467]) (and grateful thanks to @Shoe here), the following is based on one (broader) definition:

[The] appositive – [usually] a noun or noun phrase that identifies[, adds description to] or renames
  another noun – is a handy way of adding details to a sentence. The
  term comes from the Latin word for "placing close by," and an
  appositive usually appears right after the word or phrase that it
  renames.
[Here is] one example of an appositive [(shown in italics and set off
  by commas)]:

*

*He was a Hindu, a puny wisp of a man, with a shaven head and vague
  liquid eyes.

[ThoughtCo_R Nordquist]
....................
Showing different functions of appositives:

*

*A renaming example: William F Cody, Buffalo Bill, was an American soldier, hunter, and showman.

*An identifying example: The Mallard, the world's fastest steam locomotive, was built in 1938

*A descriptive example: The Mallard, a fine example of locomotive streamlining, can be seen at York.

(Appositives in the usual postnominal parenthetical position, set off by commas.)
....................

Arranging Appositives
A [nounal] appositive most often appears directly after the noun it
  identifies[, adds description to] or renames:

*

*Arizona Bill, "The Great Benefactor of Mankind," toured Oklahoma with herbal cures and a powerful liniment.

  Note that this appositive, like most, could be omitted without
  changing the basic meaning of the sentence. In other words, it's
  nonrestrictive and needs to be set off with a pair of commas.
Occasionally, an appositive may appear in front of a word that it
  identifies:

*

*A dark wedge, the eagle hurtled earthward at nearly 200 miles per hour.

  An appositive at the beginning of a sentence is usually followed by a
  comma.

[Note that descriptive appositives can hardly meaningfully replace the other noun phrase, but may do so with no compromising of syntax. With the 'Hindu' example above, one could argue as to which noun phrase is the descriptor.]
[again, Nordquist]
So in
A black comedy that at times evolves into a tense thriller and at others shows hints of horror, it is an original, gripping, and disturbing tale of pervasive class tension, oppression, and helplessness.
The noun phrase (italicised) is in apposition to it, and precedes the [pro]noun that it in this case adds description to. The expected comma separates the sentence-initial appositive from the noun it adds description to. Note that, as mentioned in comments, 'it' must have an antecedent in the preceding sentence / fragment.


text:
Q: IF something OR something else THEN - can this condition go on 1 line? I am tying to add conditional logic for showing a page to logged in users. I have 2 conditions which do not allow them to see page but instead restricted content message. Only 1 has to be true
1) They are not the Author of a form
2) They do not have a custom field called "member"
if( $_GET['gform_post_id'] <= 0 || $user != $author ) {
//Then show restricted content message
}

The above code is working for the first condition. But I am not sure how to add the 2nd part. I guess it would be an elseif
I guess in theory I could duplicate the restricted message by doing something like this
if( $_GET['gform_post_id'] <= 0 || $user != $author ) {
//Then show restricted content message
} elseif {
if($memberstatus == 'member'){
//Then show restricted content message
}

The reason I do not think this si good solution is my "Restricte Content" is quite large as I write a page with Divs in HTML basically. So it looks a little clumsy in the code to duplicate this twice.
So my question is: Is there a way to write the conditions on the same line?
i.e.
IF Condition 1 OR Condition 2 {
//Then show restricted content message
}

Thanks

A: What about this?
if(($_GET['gform_post_id'] <= 0 || $user != $author) || $memberstatus == 'member' ) {
    //Then show restricted content message
}

A: If I understand you right, you want this :
if( ($_GET['gform_post_id'] <= 0 || $user != $author) || $memberstatus == 'member' ) {
   //Then show restricted content message
}


text:
Q: XElement.Descendants doesn't work with namespace I have a simple XML,
<S xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><H></H></S>

I want to find all "H" nodes.
XElement x = XElement.Parse("<S xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><H></H></S>");
IEnumerable<XElement> h = x.Descendants("H");
if (h != null)
{
}

But this code doesn't work.
When I remove the namespace from S tag, the code works correctly.

A: Just wanted to add to Jon's answer that you can get the namespace like this:
XNamespace ns = x.Name.Namespace

Then just use it like he proposed:
IEnumerable<XElement> h = x.Descendants(ns + "H");

A: Your element has a namespace because xmlns effectively sets the default namespace for that element and its descendants. Try this instead:
XNamespace ns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation";
IEnumerable<XElement> h = x.Descendants(ns + "H");

Note that Descendants will never return null, so the condition at the end of your code is pointless.
If you want to find all H elements regardless of namespace, you could use:
var h = x.Descendants().Where(e => e.Name.LocalName == "H");


text:
Q: Angular 6 trouble understanding why my databinding is wrong Good Morning,
I am a beginner with angular 6 and I am building a personnal website with Angular+NodeJs.
I am building an interface with 2 sections of 3 buttons, each button triggers a modal with a title (the button's name) and a body (an array of paragraphs with a content). Information such as section title, button name, modal body, is send by the node server as a JSON String.
Everything works fine on server side. the JSON string is well sent when my service on the front side makes the query. The button titles shows well on the screen, as well as the modal title, but not the modal body which refuses to show up.
I would like to understand why my modal title shows up correctly but not my modal contend, although it seems to me I am using the same kind of code to show both of them. I think I am missing a big issue about databinding.
my json :
[
    {id:1, title: "section title ...", buttons:[
      {
        id:1,
        text:"Button title 1",
        paraphs:[
          {id:1, content:"paraph1"},
          {id:2, content:"paraph2"}
        ]
      },
      {id:2, text:"Button title 2"},
      {id:3, text:"Button title 3"}
    ]},
    {id:2, title: "Section title 2", buttons:[
      {id:1, text:"Button title 1"},
      {id:2, text:"Button title 2"},
      {id:3, text:"Button title 3"}
    ]}
  ]

my component.html :

{{section.title}}

        <button class="section_button" type="button" *ngFor="let button of section.buttons" data-toggle="modal" data-target="#exampleModal" (click)="this.handleClick(button.text, button.paraphs)">{{button.text}}</button>

    <app-footer></app-footer>

{{modal_title}}

          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            ×
          </button>

{{paraph.content}}

my component.ts :
import { Component, OnInit } from '@angular/core';
import { PrestationService} from '../service/prestation.service'

@Component({
  selector: 'app-prestation',
  templateUrl: './prestation.component.html',
  styleUrls: ['./prestation.component.css']
})
export class PrestationComponent implements OnInit {

  sections;
  modal_title;
  paraphs;

  constructor(private ps:PrestationService) { }

  ngOnInit() {
    this.ps.getPrestation().subscribe(
      data => this.sections = data
    )
  }

  handleClick(buttonTitle, buttonContent){
    this.modal_title = buttonTitle;
    this.paraphs = buttonContent;
  }

}

A: There are several things wrong here:

{{paraph.content}}

*

*Your ngFor is missing a * (should be *ngFor)

*You cannot mix multiple strutural directives on the same element (*ngFor and *ngIf)

*Your condition is... quite weird, and probably never true (the negation of an array should be false, and false == undefined also yields false).

You should probably just drop the *ngIf altogether, since an empty array will never iterate anyway:

{{paraph.content}}


text:
Q: Mutli-threading - how to safely remove from ArrayList? My program has a lot of threads which can at any time do for each throught an arraylist but also any item in the arraylist can be removed at any time, how do I prevent removing the item from arraylist when the arraylist is in use by some other thread?
I would really appreciate some explanation or code example.

A: Don't use an ArrayList, instead use a suitable class such as CopyOnWriteArrayList. However if there are a lot of modifications (and big lists), it will affect performance.

A: Use Collections.synchronizedList() to get a thread-safe version of your list:
List<T> list = Collections.synchronizedList(yourArray);

Then use an iterator while going throught the list and call the remove() method on the iterator to remove an item:
Iterator<T> it = list.iterator();
while(it.hasNext()) {
    if(condition) {
        it.remove();
    }
}

A: Use A thread-safe variant of ArrayList -  CopyOnWriteArrayList

A: If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more elements, or explicitly resizes the backing array; merely setting the value of an element is not a structural modification.) This is typically accomplished by synchronizing on some object that naturally encapsulates the list. If no such object exists, the list should be "wrapped" using the Collections.synchronizedList method. This is best done at creation time, to prevent accidental unsynchronized access to the list:
   List list = Collections.synchronizedList(new ArrayList(...));

Source: https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html


text:
Q: Check cell row in Python I have a function to define a cell parameters in the table (I apply this function to unique strings only and it works well).
But how can I determine cell row in the big dataset, but in specific dataframe?
Here's my function to check a row in the whole df:
def check_row(cond_name):
    from xlrd import open_workbook
    book = open_workbook("output.xlsx")
    for sheet in book.sheets():
        for rowidx in range(sheet.nrows):
            row = sheet.row(rowidx)
            for colidx, cell in enumerate(row):
                if cell.value == cond_name :
                    print("condition name is: ",cond_name)
                    return rowidx+1

But I also have subdataframes, such as         f_list = df['Relevant findings'].values.tolist()[0:8], and I need to determine exact coordinates (row and column) of random string that is in the list.
Is it possible?


text:
Q: decrypt wpa/wpa2 key using more then one successful handshake I understand that cracking the captured WPA/WPA2 handshake would take a very long time using brute-force, but I was wondering: what if I have more then one successful handshake? Can it improve the brute-force method? If it can does anyone know a tool which actually does it?

A: NO! No matter how many handshakes you capure, you still have to brute-force using the dictionary and decrypt the matched packet which is present in all the handshakes, and there is nothing like capturing thousands of handshakes will help you to remove unlikely passwords! So, it will not improve the brute-force method.


text:
Q: Use material-ui table with react-beautiful-dnd I'm looking to use material-ui in combination with react-beautiful-dnd in order to make a sortable table. However, using material-ui's table components causes trouble as TableBody won't accept innerRef and TableRow won't accept innerRef and isDragging. See my code below:
<DragDropContext onDragEnd={this.onDragEnd}>
  <Fragment>

      <TableHead>
        <TableRow>
          <TableCell />
          <TableCell>Name</TableCell>
          <TableCell numeric>Number</TableCell>
          <TableCell>Time</TableCell>
        </TableRow>
      </TableHead>
      <Droppable droppableId="table">
        {(droppableProvided) => (
          <TableBody
            innerRef={(ref) => {
              this.tableRef = ref;
              droppableProvided.innerRef(ref);
            }}
            {...droppableProvided.droppableProps}
          >
            {this.state.users.map((user, index) => (
              <Draggable
                draggableId={user.id}
                index={index}
                key={user.id}
              >
                {(
                  provided,
                  snapshot,
                ) => (
                  <TableRow
                    innerRef={provided.innerRef}
                    isDragging={snapshot.isDragging}
                    {...provided.draggableProps}
                    {...provided.dragHandleProps}
                  >
                    <TableCell><DragIndicatorIcon /></TableCell>
                    <TableCell>{user.name}</TableCell>
                    <TableCell numeric>{user.number}</TableCell>
                    <TableCell>10</TableCell>
                  </TableRow>
                )}
              </Draggable>
            ))}
          </TableBody>
        )}
      </Droppable>

  </Fragment>
</DragDropContext>

How can I get material-ui to be usable with these attributes?

A: I had this same problem. What you have to do is move the Draggable/Droppable part into a component and pass that in via the component attribute.
For example, I wanted to be able to re-order columns in a table header. Row is my droppable area, and Cell is Draggable.
public render() {
    return (
        <TableHead component="div">
            <TableRow component={DroppableComponent(this.onDragEnd)}>{headerCells}</TableRow>
        </TableHead>
    );
}

const DroppableComponent = (
    onDragEnd: (result: DropResult, provided: ResponderProvided) => void
) => (props: any) => {
    return (
        <DragDropContext onDragEnd={onDragEnd}>
            <Droppable droppableId={'1'} direction="horizontal">
                {(provided) => {
                    return (

                            {props.children}
                            {provided.placeholder}

                    );
                }}
            </Droppable>
        </DragDropContext>
    );
};

Notice I made Droppable Component be a function that returns a function. That was so that I could pass in the onDragEnd method from my main component. I tried putting my DroppableComponent in the component attribute as JSX and I was getting an error, so this is what I ended up with.
For the Draggable part I had the following:
<TableCell
    component={DraggableComponent(column.id, index)}
    key={column.id}
>
    ...
</TableCell>

const DraggableComponent = (id: string, index: number) => (props: any) => {
    return (
        <Draggable draggableId={id} index={index}>
            {(provided) => (

                    {props.children}

            )}
        </Draggable>
    );
};

Hope this helps!

A: I came across this while working on a similar task. Re the OP's question, TableRow and TableBody both support a ref prop (vs. innerRef) that forwards to the root element.
Refer to the FAQ:

*

*https://material-ui.com/getting-started/faq/#how-can-i-access-the-dom-element
This is mentioned in the docs for both TableRow and TableBody:

*

*https://material-ui.com/api/table-row/

*https://material-ui.com/api/table-body/
Therefore you do not necessarily need to move the Draggable/Droppable parts into their own components per the answers from @Bryant and @funql.org.
You also don't necessarily need to pass isDragging to your TableRow (though you could if you created a custom wrapper component that accepts this prop). If your use-case is styling the row when dragged, you can add a className or style prop to your TableRow and apply conditional styling when isDragging is true.
Here's a working example of a Material UI table that features sortable rows with react-beautiful-dnd:

*

*https://codesandbox.io/s/react-material-ui-and-react-beautiful-dnd-uofv4
Incidentally I created it as part of an issue report because I'm not sure why there is a 1 pixel jump (the thickness of the border-bottom on table cells) when a given table row is dragged, but that's another issue! The implementation is solid enough to support the many cases where a minor 1px visual glitch is acceptable.

A: I have created a github example repo using @Bryant's solution.
https://github.com/hmarggraff/react-material-ui-table-row-drag-and-drop
It shows how to combine Bryants solution with react-material-ui. It also shows row vs colums dnd and visual feedback during dnd. It is a complete reusable solution.

A: The previous answers mostly will work for react versions < 18.0 . For latest versions checkout this sandbox. Here is how I managed to add drag and dropdown functionality with material UI table:
https://codesandbox.io/s/material-ui-table-with-drag-and-drop-rows-515mwz?file=/demo.js


text:
Q: SQL Loader Issue Some of the columns that I am trying to load into Oracle via SQL Loader from an XML file are null. For example  may have several filled but ocassionally it has some nulls.
How can I tell the SQL*Loader that some of the data will be null, or how can I deal with nulls?

A: Like jonearles suggested. I use XMLTABLE to insert XML data into relational tables. First put the XML data into a Oracle tables XMLTYPE column:
DROP TABLE XMLTEST;

CREATE TABLE XMLTEST
(   XML_COL XMLTYPE);

DECLARE
  poXML CLOB;
BEGIN
  -- Store the Purchase Order XML in the CLOB variable
  poXML := '<?xml version="1.0"?>
<zalen>
    <zaal zaal_id="1">
        <alt_id>88</alt_id>
        <display_naam>01 West 430</display_naam>
        <alt_db>exp_BB</alt_db>
    </zaal>
    <zaal zaal_id="2">
        <alt_id>170</alt_id>
        <display_naam>02 Midden 010</display_naam>
        <alt_db>exp_BB</alt_db>
    </zaal>
    <zaal zaal_id="3">
        <alt_id>173</alt_id>
        <display_naam>02 Midden 110</display_naam>
        <alt_db>exp_BB</alt_db>
    </zaal>
    <zaal zaal_id="4">
        <syl_id>F491B0A119DABE76B2F6B2C0A3E902F6</syl_id>
        <alt_id>183</alt_id>
        <display_naam>02 Oost 010</display_naam>
        <alt_db>exp_BB</alt_db>
    </zaal>
    <zaal zaal_id="5">
        <alt_id>172</alt_id>
        <display_naam>02 Oost 300</display_naam>
        <alt_db>exp_BB</alt_db>
    </zaal>
  .
  .
  .
    <zaal zaal_id="126">
        <syl_id>F491B0A119DABE76B2F6B2C0A3E901E3</syl_id>
        <alt_id>129</alt_id>
        <display_naam>HB.02.140</display_naam>
        <alt_db>exp_EE</alt_db>
    </zaal>
</zalen>';

  INSERT INTO xmltest (xml_col) VALUES (XMLTYPE(poXML));

END;
/

Use XMLTable function to create (or insert into) the table:
drop table zalen;
create table zalen as
select xt.zaal_id
,      xt.alt_id
,      xt.syl_id
,      xt.alt_db
,      xt.display_naam
from xmltest xts
,    XMLTable('zalen/zaal' PASSING xts.xml_col
                   columns zaal_id INTEGER PATH '@zaal_id'
                             ,alt_id INTEGER PATH 'alt_id'
                             ,syl_id VARCHAR2(100) PATH 'syl_id'
                             ,display_naam VARCHAR2(100)PATH 'display_naam'
                             ,alt_db VARCHAR2(100)PATH 'alt_db') xt;

A: You may want to rethink the way you're loading and transforming files.  I assume this is related to your other question, in which case it looks like you're building your own XML parser.  Oracle provides some tools to help you do this.
First, just to load the file, you can either use SQL*Loader to load the data as an XMLType, or you can use something like DBMS_XSLPROCESSOR.READ2CLOB to read the file as a CLOB and then convert it to an XMLType.
After it's loaded as an XMLType, you can use a PL/SQL procedure that uses XPath to iterate through the values and insert them into the table.
And there are probably some other ways to do it.
I'm sure none of these ideas are nearly as easy as what you were hoping for.  Processing XML correctly is much more complicated than what SQL*Loader is typically used for - loading delimited files.


text:
Q: Streched vertical space between two subfigures I want to add vertical space between two subfigures so that so that the upper figure is aligned with the top of the page and the last line of this figure caption is aligned with the
bottom of the page. My approach is the following one, but without success:
  \begin{figure}[p]
  %
  \centering
  \subfloat[]{\includegraphics[width=5cm]{Lenna.png}}\\
  \vfill
  \subfloat[]{\includegraphics[width=5cm]{Lenna.png}}
  %
  \caption{Vertical filling space (between the two subfigures) should
    be added so that the upper figure is aligned with the top of the
    page and the last line of this figure caption is aligned with the
    bottom of the page.}
  %
\end{figure}

A: Below I present two possibilities; in the first one, the object is treated as a floating object; in the second one, the object is static.
One option using a minipage inside the figure environment; the minipage has fixed height equal to \textheight; the object is treated as a float:
\documentclass{article}
\usepackage{showframe}
\usepackage{subfig}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}[p]
\begin{minipage}[c][\textheight][c]{\textwidth}
  \centering
  \subfloat[]{\includegraphics[width=5cm]{Lenna.png}}

  \vfill

  \subfloat[]{\includegraphics[width=5cm]{Lenna.png}}

  \caption{Vertical filling space (between the two subfigures) should
    be added so that the upper figure is aligned with the top of the
    page and the last line of this figure caption is aligned with the
    bottom of the page.}
\end{minipage}
\end{figure}

\end{document}

One option using a minipage and \captionof; the minipage has fixed height equal to \textheight; the object is static:
\documentclass{article}
\usepackage{showframe}
\usepackage{subfig}
\usepackage[demo]{graphicx}
\captionsetup[subfigure]{labelformat=parens,font=footnotesize}
\captionsetup[figure]{labelformat=simple,font=normalsize}

\begin{document}

\noindent\begin{minipage}[c][\textheight][c]{\textwidth}
  \centering
  \includegraphics[width=5cm]{Lenna.png}
  \captionof{subfigure}{}

  \vfill

  \includegraphics[width=5cm]{Lenna.png}
  \captionof{subfigure}{}

  \captionof{figure}{Vertical filling space (between the two subfigures) should
    be added so that the upper figure is aligned with the top of the
    page and the last line of this figure caption is aligned with the
    bottom of the page.}
\end{minipage}

\end{document}

The demo option for graphicx simply replaces actual figures with black rectangles; do not use that option in your actual document.


text:
Q: Is it possible to change video and photo mode by using EDSDK? I can record video in movie shooting mode (Sec. 6.4.3 EDSDK API), but I need to record video and take photo step by step. So I have a question: Is it possible to change video and photo mode using sdk? If yes, which mode should we install on our cameras? And how to do it using SDK? The model of our cameras is Canon eos 650D. In sec 6.4.2 EDSDK API I read to use Live View mode before video record, but it solution doesn't work. I try to use the code below.
#include <QCoreApplication>

#include "EDSDK/Header/EDSDK.h"
#include <Windows.h>
#include <QDebug>

EdsError startLiveview(EdsCameraRef camera)
{
EdsError err = EDS_ERR_OK;

// Get the output device for the live view image
EdsUInt32 device;
err = EdsGetPropertyData(camera, kEdsPropID_Evf_OutputDevice,  0 ,  sizeof(device), &device );

// PC live view starts by setting the PC as the output device for the live view image.
if(err == EDS_ERR_OK)
{
  device |= kEdsEvfOutputDevice_PC;

  err = EdsSetPropertyData(camera, kEdsPropID_Evf_OutputDevice, 0 , sizeof(device), &device);
}

return err;
// A property change event notification is issued from the camera if property settings are made successfully.
// Start downloading of the live view image once the property change notification arrives.
}

EdsError endLiveview(EdsCameraRef camera)
{
EdsError err = EDS_ERR_OK;

// Get the output device for the live view image
EdsUInt32 device;
err = EdsGetPropertyData(camera, kEdsPropID_Evf_OutputDevice,    0 ,  sizeof(device), &device );

// PC live view ends if the PC is disconnected from the live view image output device.
if(err == EDS_ERR_OK)
{
  device &= ~kEdsEvfOutputDevice_PC;

  err = EdsSetPropertyData(camera, kEdsPropID_Evf_OutputDevice, 0 , sizeof(device), &device);
}
return err;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    EdsError err = EDS_ERR_OK;
    EdsCameraRef  camera = NULL;
     EdsCameraListRef  cameraList = NULL;
    bool isSDKLoaded = false;
     EdsUInt32  count = 0;

    err = EdsInitializeSDK();

    if(err == EDS_ERR_OK)
    {
       isSDKLoaded=true ;
    }

    err = EdsGetCameraList(&cameraList);

// Get number of cameras
    if(err== EDS_ERR_OK)
    {
       err = EdsGetChildCount(cameraList,    &count);

   if(count == 0)
      {
         err = EDS_ERR_DEVICE_NOT_FOUND;
      }
    }
     // Get first camera retrieved
   if(err == EDS_ERR_OK)
    {
       err = EdsGetChildAtIndex(cameraList ,    0 ,   &camera);
    }

    if(err == EDS_ERR_OK)
    {
    err = EdsOpenSession(camera);
    }

    EdsUInt32 saveTo = kEdsSaveTo_Camera;
    err = EdsSetPropertyData(camera, kEdsPropID_SaveTo, 0, sizeof(saveTo) , &saveTo);

    startLiveview(camera);
    Sleep(1000);

    EdsUInt32 record_start = 4; // Begin movie shooting
    err = EdsSetPropertyData(camera, kEdsPropID_Record, 0, sizeof(record_start), &record_start);
    qDebug() << err;

    Sleep(3000);

    EdsUInt32 record_stop = 0; // End movie shooting
    err = EdsSetPropertyData(camera, kEdsPropID_Record, 0, sizeof(record_stop), &record_stop);
    qDebug() << err;

    endLiveview(camera);
       Sleep(1000);

    // Close session with camera
    if(err == EDS_ERR_OK)
    {
    err = EdsCloseSession(camera);
    }

    // Release camera
    if(camera != NULL)
    {
     EdsRelease(camera);
    }

    // Terminate SDK
    if(isSDKLoaded)
    {
     EdsTerminateSDK();
    }

    return a.exec();
}


text:
Q: Call C++ function from (C) header file gives linker error I am integrating a library (lwip) and I want to reroute the logging mechanism from printf to something I wrote myself (which logs directly to my uart).
In some header file the following code exists
/** Platform specific diagnostic output.\n
 * Note the default implementation pulls in printf, which may
 * in turn pull in a lot of standard libary code. In resource-constrained
 * systems, this should be defined to something less resource-consuming.
 */
#ifndef LWIP_PLATFORM_DIAG
#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0)
#include <stdio.h>
#include <stdlib.h>
#endif

I replaced this line
#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0)

with
#define LWIP_PLATFORM_DIAG(x) do {logLineToUart x;} while(0)

I am using the same signature for my function as the printf signature:
void logLineToUart(const char * log, ...);

And I placed that function in my own header lwiplogging.h, which I include in the header which defines LWIP_PLATFORM_DIAG
And, I implement the function in a C++ file:
void logLineToUart(const char * log, ...)
{
    uart3.Write(log);
    uart3.Write("\r\n");
}

NOTE: uart3 is an object of my Uart class. Hence it's C++ code. I suspect this is the problem, but I can't figure out how to correct my error. Adding extern "C" to the function doesn't seem to solve it either.
The linker error I get:
Linking .pio\build\nucleo_f446ze\firmware.elf
.pio/build/nucleo_f446ze/lib997/lwip/api/api_lib.o: In function `netconn_send':
api_lib.c:(.text.netconn_send+0x26): undefined reference to `logLineToUart'
.pio/build/nucleo_f446ze/lib997/lwip/api/sockets.o: In function `tryget_socket_unconn_nouse':
sockets.c:(.text.tryget_socket_unconn_nouse+0xa): undefined reference to `logLineToUart'
.pio/build/nucleo_f446ze/lib997/lwip/api/sockets.o: In function `get_socket':
sockets.c:(.text.get_socket+0x14): undefined reference to `logLineToUart'
.pio/build/nucleo_f446ze/lib997/lwip/api/sockets.o: In function `lwip_connect':
sockets.c:(.text.lwip_connect+0x22): undefined reference to `logLineToUart'
sockets.c:(.text.lwip_connect+0x38): undefined reference to `logLineToUart'
.pio/build/nucleo_f446ze/lib997/lwip/api/sockets.o:sockets.c:(.text.lwip_connect+0x7e): more undefined references to `logLineToUart' follow
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\nucleo_f446ze\firmware.elf] Error 1

What am I doing wrong?
UPDATE
The error I get when I declare the function as extern "C"

UPDATE 2:
This does compile:
#ifdef __cplusplus
extern "C" {
void logLineToUart(const char * log, ...);

#endif

void logLineToUart(const char * log, ...);

#ifdef __cplusplus
}
#endif

A: extern "C" void logLineToUart(const char * log, ...);
You need to tell it to make the name C-linker compatible the first time it is seen.
update
The extern "C" is only when compiling as C++.  It is not legal syntax in C.  You can use extern by itself (it is implied if you leave it off).
Editorial
That's not very friendly... C++ accommodates sharing header files with C by accepting syntax that would not apply to C++, just to make it easy to use the same header file contents.  In particular, using (void) for empty parameter lists (which is "an abomination") and allowing a comma in variadic function parameter lists ( (int x ...) is how C++ originally defined it; when the same feature got incorporated into ANSI C they used (int x, ...) with a superfluous comma that is not needed by the grammar.)  C++ compilers accept both of these to make it easier to consume C headers...
But, you have to add extern "C" around everything.  This introduces conditional compilation anyway, even though C++ accepts the C syntax.  Note that for a single declaration, extern int foo (int); the extern is allowed and implied if you leave it out.  If the C compiler allowed the linkage specification even though only "C" is available, it would make life easier.  Note that in most cases, the C and C++ implementation are the same compiler suite, and often one language supports some features of the other as extensions.  It would be cool if gcc etc. supported extern "C++" in C mode, since that code base certainly does know how the name encodes the parameters.


text:
Q: Navigate to a page not in AuthProviderBuilder I'm using AuthProviderBuilder
AuthProviderBuilder(
      builder: (context, user) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'My App',
          theme: ThemeData(),
          home: ScreenRouter(user: user),
        );
      },
    );

with screen router
  Widget build(BuildContext context) {
    switch (user.status) {
      case Status.Unauthenticated:
        return WelcomeScreen();
      case Status.Authenticated:
        return HomeScreen();
      default:
        return SplashScreen();
    }
  }

Now how can I navigate from Home screen to different brand new screen on click of a button placed in Home screen?

A: You have to push new rout inside navigation stack. In your new Screen create static function
  static Future<void> show(BuildContext context) async {
    await Navigator.of(context).push(
      MaterialPageRoute(
          builder: (context) => MyNewScreenName(), fullscreenDialog: true),
    );
  }

and just call it with your button in your home page by
onPressed: () => MyNewScreenName.show(context)


text:
Q: Extra character 'j:' in cookie set via ExpressJS? I'm setting a cookie in ExpressJS like so:
var content = {id: 'FAC0004',name: 'New York, USA',result: true};
res.cookie('COOK', content);

I am able to correctly read the values using req.cookies.COOK.name in ExpressJS. But if I try to read the same value using AngularJS like:
console.log($cookies.get('COOK'))

...I get the result like this: j:{"id":"FAC0004","name":"New York, USA","result":true}
Why is there a j: in the front?


text:
Q: Fatal error class not found on AWS Beanstalk My Laravel 3.2.14 application works locally.  When I upload it to my server I get this:
-------------------------------------
/var/log/httpd/error_log
-------------------------------------
[Tue May 06 07:35:55.995408 2014] [:error] [pid 25701] [client 174.31.190.151:57098] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 07:35:56.184608 2014] [:error] [pid 25703] [client 174.31.190.151:57099] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 07:40:11.514372 2014] [:error] [pid 25705] [client 174.31.190.151:57103] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 07:40:11.704632 2014] [:error] [pid 25706] [client 174.31.190.151:57104] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 10:18:36.676282 2014] [:error] [pid 25707] [client 185.4.227.194:40880] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 10:54:08.718764 2014] [:error] [pid 25701] [client 115.239.248.56:4697] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 13:39:02.024516 2014] [:error] [pid 25703] [client 173.244.215.194:56452] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157
[Tue May 06 13:47:31.401996 2014] [:error] [pid 25705] [client 122.226.223.83:4460] PHP Fatal error:  Class 'Symfony\\Component\\HttpFoundation\\LaravelRequest' not found in /var/app/current/laravel/core.php on line 157

Is this a problem with my composer autoload file?  I get no other inclination of what's happening. I've been working on this for two days and not sure where to go from here :/

A: I know the comments below your question have told you take vendor/ out of your .gitignore, but that isn't normal practice. Elastic Beanstalk for PHP actually supports Composer and will automatically run composer install on your project when you are pushing a new version.
For this to work, the root of your repo should be the root of the app. You should also have  composer.json and composer.lock files enabled by your .gitignore so that when they are pushed, EB knows to download and install your packages.

A: Your vendor/ files are not included when you push to AWS Beanstalk because they're ignored by your .gitignore file.
You need to include in your git project your composer.json and composer.lock to send them on AWS Beanstalk on each update.
You can run composer to install the dependencies with a configuration like explained here : https://stackoverflow.com/a/17528576/1671377


text:
Q: Очень быстрая передача данных между устройствами Делаю один проект, суть в чем:
Есть 2 android-смартфона.
Нужно между ними, по интернету (3G) очень быстро передать какие-то данные (3-5 символов, к примеру)
Как мне это сделать? Скорость интернета где-то 30-40 кб/с (в худших случаях, обычно около 150-ти).
Нужно что-то, что способно передать эти 5 символов с пингом меньше 100 м/c.
Какой сервис посоветуете? Я смотрю в сторону firebase, но он достаточно медленный.

A: Передавайте свои данные по протоколу UDP. В отличии от протокола TCP он не тратит время на установку соединения и на проверку доставленных данных. Но будте готовы к тому, что пакет с вашими 3-5 символами не дойдёт до адресата или будет получен несколько раз вместо одного. То есть вам придётся взять часть функциональности TCP на себя.


text:
Q: Service stopped, but still process exist in system What is the solution if somebody deletes /var/lock/subsys/httpd file.

A: Generally, you can ask any process to terminate gracefully by finding its PID, and sending it signal 15.  Try
www% ps auxww|grep http
apache     311  0.0  0.5  42932 22580 ?        S    Mar11   0:21 /usr/sbin/httpd
apache    2547  0.0  0.5  42768 22188 ?        S    Mar12   0:06 /usr/sbin/httpd
root      2669  0.0  0.2  28500 11228 ?        Ss   Feb15   0:00 /usr/sbin/httpd
[ and many more http processes ]

The one you're interested in is the parent, which is the one owned by root.  It's PID is the second column, in this case 2669, so ask it to die with
% kill -15 2669

Repeat the ps command to make sure it's gone.  If it won't go gracefully, you can force it to die with signal 9:
% kill -9 2669

There are other commands on some UNIXes to kill specific groups of processes, or all processes with a particular chunk of text in the name, but you don't say which OS you're using (though the use of a /var/lock file makes it clear it's some kind of UNIX).  Try man killall and you may well find out whether killall httpd would be simpler for you.
Generally, you will need to be root, or use the sudo command, in order to send an arbitrary signal to an arbitrary process.


text:
Q: save value of a variable in a DialogFragment when the screen rotates Well, I wanted to save value of a variable contained in a dialogFragment when the screen is rotated in Android. I've tried every method I could find on the internet, and none of them has worked for me. Some kill my application, and others simply were not doing anything.
I need a real and effective way to save the value of an EditText that is reset when the device screen rotates. The EditText is in a DialogFragment turn this into a FragmentActivity.
thank you very much

A: I don't know if I understood your question, but you can capture the rotation as follows:
@Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT)
        {
            //save value
        }
         if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE)
        {
            //save value
        }
    }

If you want that your activity don't restart, you should add this into the manifest file:
<activity
            .....
            android:configChanges="keyboardHidden|orientation|screenSize"
            ..... >
 </activity>

A: Set your fragment's retaingInstance flag to true:
http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean)
This prevents Fragment instance from being recreated.
Also be sure you don't recreate the fragment all the time:
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_activity);

    if (savedInstanceState == null) {
        Fragment f = new Myfragment();
        f.setRetainInstance(true);
        getSupportFragmentManager().beginTransaction()
            .add(R.id.container, f))
            .commit();
    }

}

Since View state is preserved during Activity recreation and your are keeping the same Fragment instance you don't need to save TextView value all the time.

A: I just found out that you can not apply the methods to save bundles automatically to the dialogues, but these would apply to activities or fragments of these dialogues dependent. If I can fix it by code, will put the solution here. thank you


text:
Q: Disconnecting from a wifi network in bash I am trying to figure out how to disconnect from wifi network without actually taking down the entire interface like in the command below.
ifconfig wifi0 down

Is there any way to disconnect from wifi in vanilla bash without having to use any external package ?

A: It depends completely on what program is managing your wifi connection.
The default for debian, NetworkManager, has a cli tool, called nmcli.
You can list all configured connections with:
nmcli con list

Then you can deactivate a connection with:
nmcli con down <id>

A: To remove all connections do:
nmcli --fields UUID,TIMESTAMP-REAL con show | grep never |  awk '{print $1}' | while read line; do nmcli con delete uuid  $line;    done


text:
Q: Integration Test for Jira Is Not Running ( Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.2.3:integration-test) I am trying to execute an integration test for my jira plugin, however, the installation of the component fails for some reason.
Do you have any suggestions where to dig?
Following is the log
[INFO] Starting Atlassian Spring Byte Code
> Scanner... [INFO]  [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.imports.RefappImport]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.imports.JiraImport]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.imports.ConfluenceImport]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.export.ModuleType]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.component.RefappComponent]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.component.JiraComponent]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.component.ConfluenceComponent]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [ERROR] Found a type
> [com.atlassian.plugin.spring.scanner.annotation.component.ClasspathComponent]
> annotated as a component, but the type is not a concrete class. NOT
> adding to index file!! [INFO]  [INFO]  Analysis ran in 243 ms. [INFO]
> Encountered 1235 total classes [INFO]  Processed 9 annotated classes
> [INFO]  [INFO] --- maven-resources-plugin:3.0.1:testResources
> (default-testResources) @ jira --- [WARNING] Using platform encoding
> (UTF-8 actually) to copy filtered resources, i.e. build is platform
> dependent! [INFO] Copying 2 resources [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:filter-test-plugin-descriptor
> (default-filter-test-plugin-descriptor) @ jira --- [INFO] Using
> 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource
> [INFO]  [INFO] --- maven-compiler-plugin:2.3.2:testCompile
> (default-testCompile) @ jira --- [INFO] Nothing to compile - all
> classes are up to date [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:unit-test (default-unit-test) @ jira ---
> [INFO] Surefire report directory:
> /Users/strygul/dcm/jira-module/target/surefire-reports
>
> -------------------------------------------------------  T E S T S
> ------------------------------------------------------- Running ut.com.idalko.dcm.customfield.NextRevisionNumberFieldTypeTest Tests
> run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.325 sec
> Running ut.com.idalko.dcm.helpers.UtilTest Tests run: 1, Failures: 0,
> Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running
> ut.com.idalko.dcm.model.articlerevision.ArticleRevisionInputParamsImplTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

> [INFO]  [INFO] --- maven-jira-plugin:6.2.3:copy-bundled-dependencies
> (default-copy-bundled-dependencies) @ jira --- [INFO]
> gson-2.2.2-atlassian-1.jar already exists in destination. [INFO]
> jira-issue-link-confluence-plugin-7.1.6.jar already exists in
> destination. [INFO] httpcore-4.4.1.jar already exists in destination.
> [INFO] commons-codec-1.9.jar already exists in destination. [INFO]
> atlassian-spring-scanner-runtime-1.2.6.jar already exists in
> destination. [INFO] httpclient-4.4.1.jar already exists in
> destination. [INFO] atlassian-spring-scanner-annotation-1.2.6.jar
> already exists in destination. [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:copy-test-bundled-dependencies
> (default-copy-test-bundled-dependencies) @ jira --- [INFO]
> hibernate-2.1.8-atlassian.jar already exists in destination. [INFO]
> bcprov-jdk15on-1.50.jar already exists in destination. [INFO]
> jcip-annotations-1.0.jar already exists in destination. [INFO]
> atlassian-plugins-osgi-testrunner-1.2.3.jar already exists in
> destination. [INFO] spring-core-4.1.6.RELEASE.jar already exists in
> destination. [INFO] atlassian-application-api-1.2.jar already exists
> in destination. [INFO] atlassian-vcache-internal-core-0.7.0.jar
> already exists in destination. [INFO] commons-compress-1.8.1.jar
> already exists in destination. [INFO] atlassian-core-user-5.0.6.jar
> already exists in destination. [INFO] atlassian-gzipfilter-3.0.0.jar
> already exists in destination. [INFO] webwork-1.4-atlassian-30.jar
> already exists in destination. [INFO]
> atlassian-plugins-webresource-api-3.5.9.jar already exists in
> destination. [INFO] atlassian-profiling-1.9.jar already exists in
> destination. [INFO] log4j2-stacktrace-origins-2.2-atlassian-2.jar
> already exists in destination. [INFO] struts-1.2.9.jar already exists
> in destination. [INFO] batik-parser-1.7.jar already exists in
> destination. [INFO] atlassian-plugin-point-safety-0.10.jar already
> exists in destination. [INFO] xml-apis-ext-1.3.04.jar already exists
> in destination. [INFO] sslext-1.2-0.jar already exists in destination.
> [INFO] jotm-iiop_stubs-1.4.3.jar already exists in destination. [INFO]
> atlassian-p4package-2007.12.14.jar already exists in destination.
> [INFO] oscore-2.2.7-atlassian-1.jar already exists in destination.
> [INFO] beehive-single-node-0.2.jar already exists in destination.
> [INFO] velocity-1.4.jar already exists in destination. [INFO]
> atlassian-util-concurrent-2.6.2.jar already exists in destination.
> [INFO] javax.servlet-api-3.0.1.jar already exists in destination.
> [INFO] mysema-commons-lang-0.2.4.jar already exists in destination.
> [INFO] csv-20.jar already exists in destination. [INFO]
> commons-codec-1.9.jar already exists in destination. [INFO]
> beehive-core-0.2.jar already exists in destination. [INFO]
> sal-api-3.0.3.jar already exists in destination. [INFO]
> jsoup-1.8.3.jar already exists in destination. [INFO]
> blobstore-client-api-1.3.0.jar already exists in destination. [INFO]
> atlassian-logging-2.15.jar already exists in destination. [INFO]
> jzlib-1.0.5.jar already exists in destination. [INFO]
> common-lang-3.2.jar already exists in destination. [INFO]
> crowd-core-tiny-2.8.3.jar already exists in destination. [INFO]
> xml-apis-1.3.04.jar already exists in destination. [INFO]
> jira-issue-link-confluence-plugin-7.1.6.jar already exists in
> destination. [INFO] commons-fileupload-1.3.1.jar already exists in
> destination. [INFO] spring-data-commons-1.6.1.RELEASE.jar already
> exists in destination. [INFO] commons-validator-1.4.0.jar already
> exists in destination. [INFO] jaxb-api-2.1.jar already exists in
> destination. [INFO] fugue-2.6.0.jar already exists in destination.
> [INFO] guava-retrying-1.0.7.jar already exists in destination. [INFO]
> applinks-spi-5.0.7.jar already exists in destination. [INFO]
> atlassian-scheduler-caesium-1.3.0.jar already exists in destination.
> [INFO] crowd-integration-api-2.8.3.jar already exists in destination.
> [INFO] nekohtml-1.9.19.jar already exists in destination. [INFO]
> jfreechart-1.0.13.jar already exists in destination. [INFO]
> carol-properties-1.5.2.jar already exists in destination. [INFO]
> urlrewritefilter-4.0.3.jar already exists in destination. [INFO]
> crowd-persistence-2.8.3.jar already exists in destination. [INFO]
> atlassian-servlet-api-2.0.jar already exists in destination. [INFO]
> jaxb-impl-2.2.1.1.jar already exists in destination. [INFO]
> commons-digester-1.4.1.jar already exists in destination. [INFO]
> jstyleparser-1.16-atlassian-1.jar already exists in destination.
> [INFO] crowd-ldap-2.8.3.jar already exists in destination. [INFO]
> jersey-json-1.8-atlassian-16.jar already exists in destination. [INFO]
> jira-api-7.1.6.jar already exists in destination. [INFO]
> commons-jrcs-diff-0.1.7.jar already exists in destination. [INFO]
> commons-lang-2.6.jar already exists in destination. [INFO]
> atlassian-plugins-api-4.1.0-m002.jar already exists in destination.
> [INFO] atlassian-gadgets-spi-4.2.0.jar already exists in destination.
> [INFO] antlr-2.7.2.jar already exists in destination. [INFO]
> xfire-aegis-1.2.6.jar already exists in destination. [INFO]
> common-image-3.2.jar already exists in destination. [INFO]
> atlassian-trusted-apps-seraph-integration-4.1.0.jar already exists in
> destination. [INFO] activation-1.1.1.jar already exists in
> destination. [INFO] atlassian-cache-common-impl-2.11.1.jar already
> exists in destination. [INFO] jsr311-api-1.1.1.jar already exists in
> destination. [INFO] jndi-1.2.1.jar already exists in destination.
> [INFO] httpcore-4.4.1.jar already exists in destination. [INFO]
> log4j-1.2.16.jar already exists in destination. [INFO]
> jcommon-1.0.8.jar already exists in destination. [INFO]
> package-scanner-0.9.5.jar already exists in destination. [INFO]
> velocity-dep-1.4.jar already exists in destination. [INFO]
> spring-tx-4.1.6.RELEASE.jar already exists in destination. [INFO]
> xfire-core-1.2.6.jar already exists in destination. [INFO]
> atlassian-core-thumbnail-5.0.6.jar already exists in destination.
> [INFO] jcaptcha-2.0-alpha-1.jar already exists in destination. [INFO]
> jersey-server-1.8-atlassian-16.jar already exists in destination.
> [INFO] querydsl-sql-4.0.7.jar already exists in destination. [INFO]
> spymemcached-2.12.0.jar already exists in destination. [INFO]
> jersey-core-1.8-atlassian-16.jar already exists in destination. [INFO]
> joda-time-2.8.2.jar already exists in destination. [INFO]
> filters-2.0.235.jar already exists in destination. [INFO]
> batik-anim-1.7.jar already exists in destination. [INFO]
> atlassian-cache-memory-2.11.1.jar already exists in destination.
> [INFO] atlassian-collectors-util-0.10.jar already exists in
> destination. [INFO] powermock-api-support-1.6.2.jar already exists in
> destination. [INFO] activeobjects-dbex-1.1.0.jar already exists in
> destination. [INFO] atlassian-http-1.1.1.jar already exists in
> destination. [INFO] jta-1.0.1.jar already exists in destination.
> [INFO] xstream-1.4.8.jar already exists in destination. [INFO]
> spring-jdbc-2.0.6.jar already exists in destination. [INFO]
> atlassian-vcache-internal-memcached-0.7.0.jar already exists in
> destination. [INFO] batik-script-1.7.jar already exists in
> destination. [INFO] imageio-core-3.2.jar already exists in
> destination. [INFO] crowd-events-2.8.3.jar already exists in
> destination. [INFO] batik-bridge-1.7.jar already exists in
> destination. [INFO] dom4j-1.4.jar already exists in destination.
> [INFO] com.atlassian.jersey-library-2.9.17.pom already exists in
> destination. [INFO] hibernate-validator-4.0.2.GA.jar already exists in
> destination. [INFO] jul-to-slf4j-1.7.9.jar already exists in
> destination. [INFO] httpclient-4.4.1.jar already exists in
> destination. [INFO] atlassian-vcache-internal-api-0.7.0.jar already
> exists in destination. [INFO] atlassian-localhost-1.1.0.jar already
> exists in destination. [INFO] spring-ldap-core-2.0.2.RELEASE.jar
> already exists in destination. [INFO] sal-trust-api-3.0.3.jar already
> exists in destination. [INFO] slf4j-log4j12-1.7.9.jar already exists
> in destination. [INFO] crowd-remote-2.8.3.jar already exists in
> destination. [INFO] javax.mail-1.5.4.jar already exists in
> destination. [INFO] atlassian-vcache-internal-legacy-0.7.0.jar already
> exists in destination. [INFO] atlassian-cache-ehcache-2.11.1.jar
> already exists in destination. [INFO]
> atlassian-flushable-gzipoutputstream-1.1.jar already exists in
> destination. [INFO] powermock-core-1.6.2.jar already exists in
> destination. [INFO] biz.aQute.bndlib-2.4.1.jar already exists in
> destination. [INFO] commons-logging-1.0.4.jar already exists in
> destination. [INFO] spring-beans-4.1.6.RELEASE.jar already exists in
> destination. [INFO] jtidy-r8-20050104.jar already exists in
> destination. [INFO] crowd-api-2.8.3.jar already exists in destination.
> [INFO] xercesImpl-2.9.1.jar already exists in destination. [INFO]
> objenesis-2.1.jar already exists in destination. [INFO]
> jackson-xc-1.9.1.jar already exists in destination. [INFO]
> lucene-analyzers-3.3.0.jar already exists in destination. [INFO]
> activeobjects-test-1.1.0.jar already exists in destination. [INFO]
> httpclient-cache-4.4.1.jar already exists in destination. [INFO]
> lucene-core-3.3.0-atlassian-1.jar already exists in destination.
> [INFO] atlassian-plugins-core-4.1.0-m002.jar already exists in
> destination. [INFO] atlassian-secure-xml-3.2.3.jar already exists in
> destination. [INFO] commons-httpclient-3.1-atlassian-2.jar already
> exists in destination. [INFO] propertyset-1.5.jar already exists in
> destination. [INFO] crowd-server-api-2.8.3.jar already exists in
> destination. [INFO] commons-collections-3.2.2.jar already exists in
> destination. [INFO] commons-dbcp2-2.1.jar already exists in
> destination. [INFO] atlassian-image-consumer-1.0.1.jar already exists
> in destination. [INFO] gson-2.2.2-atlassian-1.jar already exists in
> destination. [INFO] atlassian-secure-random-3.2.3.jar already exists
> in destination. [INFO] spring-hibernate2-2.0.6.jar already exists in
> destination. [INFO] atlassian-plugins-schema-4.1.0-m002.jar already
> exists in destination. [INFO] xpp3-1.1.4c.jar already exists in
> destination. [INFO] activeobjects-test-1.1.0.jar already exists in
> destination. [INFO] beehive-db-0.2.jar already exists in destination.
> [INFO] atlassian-plugins-webresource-common-4.1.0-m002.jar already
> exists in destination. [INFO] botocss-core-6.2.jar already exists in
> destination. [INFO] aopalliance-1.0.jar already exists in destination.
> [INFO] atlassian-plugins-servlet-4.1.0-m002.jar already exists in
> destination. [INFO] commons-beanutils-1.6.1.jar already exists in
> destination. [INFO] atlassian-spring-scanner-runtime-1.2.6.jar already
> exists in destination. [INFO] activeobjects-core-1.1.0.jar already
> exists in destination. [INFO] crowd-query-language-2.8.3.jar already
> exists in destination. [INFO]
> org.apache.servicemix.bundles.javax-inject-1_2.jar already exists in
> destination. [INFO] atlassian-plugins-eventlistener-4.1.0-m002.jar
> already exists in destination. [INFO] sitemesh-2.5-atlassian-11.jar
> already exists in destination. [INFO] batik-gvt-1.7.jar already exists
> in destination. [INFO] velocity-htmlsafe-1.4.jar already exists in
> destination. [INFO] mockito-core-1.10.19.jar already exists in
> destination. [INFO] jcaptcha-api-2.0-alpha-1.jar already exists in
> destination. [INFO] wsdl4j-1.6.1.jar already exists in destination.
> [INFO] atlassian-seraph-3.0.3.jar already exists in destination.
> [INFO] jonas_timer-1.4.3.jar already exists in destination. [INFO]
> stax2-api-3.1.0.jar already exists in destination. [INFO]
> beehive-api-0.2.jar already exists in destination. [INFO]
> commons-configuration-1.0.jar already exists in destination. [INFO]
> upm-api-2.15.jar already exists in destination. [INFO]
> batik-svg-dom-1.7.jar already exists in destination. [INFO]
> atlassian-annotations-0.16.jar already exists in destination. [INFO]
> imageio-metadata-3.2.jar already exists in destination. [INFO]
> atlassian-event-2.3.5.jar already exists in destination. [INFO]
> common-io-3.2.jar already exists in destination. [INFO]
> spring-expression-4.1.6.RELEASE.jar already exists in destination.
> [INFO] serializer-2.7.2.jar already exists in destination. [INFO]
> modz-detector-0.12.jar already exists in destination. [INFO]
> ots-jts-1.0.jar already exists in destination. [INFO]
> atlassian-rest-common-2.9.17.jar already exists in destination. [INFO]
> powermock-reflect-1.6.2.jar already exists in destination. [INFO]
> atlassian-core-5.0.6.jar already exists in destination. [INFO]
> embedded-crowd-spi-2.8.3.jar already exists in destination. [INFO]
> crowd-integration-seraph25-2.8.3.jar already exists in destination.
> [INFO] atlassian-config-0.15.jar already exists in destination. [INFO]
> wink-common-1.1.3-incubating.jar already exists in destination. [INFO]
> atlassian-trusted-apps-core-4.1.0.jar already exists in destination.
> [INFO] xalan-2.7.2.jar already exists in destination. [INFO]
> soy-template-renderer-api-4.3.0.jar already exists in destination.
> [INFO] atlassian-ip-3.0.jar already exists in destination. [INFO]
> slf4j-api-1.7.9.jar already exists in destination. [INFO]
> bsh-1.2b7.jar already exists in destination. [INFO]
> jira-issue-link-applinks-common-plugin-7.1.6.jar already exists in
> destination. [INFO] batik-dom-1.7.jar already exists in destination.
> [INFO] validation-api-1.1.0.Final.jar already exists in destination.
> [INFO] atlassian-mail-2.5.16.jar already exists in destination. [INFO]
> spring-aop-4.1.6.RELEASE.jar already exists in destination. [INFO]
> jai_codec-1.1.3.jar already exists in destination. [INFO] bsf-2.2.jar
> already exists in destination. [INFO]
> atlassian-password-encoder-3.2.3.jar already exists in destination.
> [INFO] batik-codec-1.7.jar already exists in destination. [INFO]
> imageio-jpeg-3.2.jar already exists in destination. [INFO]
> jai_core-1.1.3.jar already exists in destination. [INFO] asm-5.0.3.jar
> already exists in destination. [INFO] jsr305-1.3.9.jar already exists
> in destination. [INFO] batik-css-1.7.jar already exists in
> destination. [INFO] atlassian-spring-scanner-annotation-1.2.6.jar
> already exists in destination. [INFO] atlassian-tenancy-api-1.4.0.jar
> already exists in destination. [INFO] picocontainer-2.14.3.jar already
> exists in destination. [INFO] commons-io-2.1.jar already exists in
> destination. [INFO] atlassian-oauth-api-2.0.2.jar already exists in
> destination. [INFO] imageio-tiff-3.2.jar already exists in
> destination. [INFO] jackson-core-asl-1.9.1.jar already exists in
> destination. [INFO] antlr-runtime-3.5.2.jar already exists in
> destination. [INFO] oro-2.0.7.jar already exists in destination.
> [INFO] atlassian-cookie-tools-3.2.3.jar already exists in destination.
> [INFO] atlassian-johnson-core-3.0.0.jar already exists in destination.
> [INFO] soy-template-renderer-plugin-api-4.3.0.jar already exists in
> destination. [INFO] carol-1.5.2.jar already exists in destination.
> [INFO] crowd-integration-client-common-2.8.3.jar already exists in
> destination. [INFO] applinks-api-5.0.7.jar already exists in
> destination. [INFO] pell-multipart-request-1.31.0.jar already exists
> in destination. [INFO] javax.inject-1.jar already exists in
> destination. [INFO] crowd-server-common-2.8.3.jar already exists in
> destination. [INFO] atlassian-gadgets-api-4.2.0.jar already exists in
> destination. [INFO] entityengine-share-1.2.3.jar already exists in
> destination. [INFO] jackson-mapper-asl-1.9.1.jar already exists in
> destination. [INFO] analytics-api-5.0.10.jar already exists in
> destination. [INFO] xapool-1.3.1.jar already exists in destination.
> [INFO] stax-api-1.0-2.jar already exists in destination. [INFO]
> guava-18.0.jar already exists in destination. [INFO]
> activeobjects-spi-1.1.5.jar already exists in destination. [INFO]
> woodstox-core-asl-4.1.0.jar already exists in destination. [INFO]
> crowd-integration-client-rest-2.8.3.jar already exists in destination.
> [INFO] atlassian-plugins-osgi-4.1.0-m002.jar already exists in
> destination. [INFO] applinks-host-5.0.7.jar already exists in
> destination. [INFO] entityengine-1.2.3.jar already exists in
> destination. [INFO] batik-ext-1.7.jar already exists in destination.
> [INFO] geronimo-annotation_1.1_spec-1.0.jar already exists in
> destination. [INFO] glue-5.0b2.jar already exists in destination.
> [INFO] atlassian-application-host-1.2.jar already exists in
> destination. [INFO] hamcrest-core-1.1.jar already exists in
> destination. [INFO] atlassian-cache-api-2.11.1.jar already exists in
> destination. [INFO] crowd-core-2.8.3.jar already exists in
> destination. [INFO] radeox-1.0b2-forked-22Apr2004.jar already exists
> in destination. [INFO] javassist-3.19.0-GA.jar already exists in
> destination. [INFO] spring-context-4.1.6.RELEASE.jar already exists in
> destination. [INFO] velocity-tools-1.3.jar already exists in
> destination. [INFO] activeobjects-plugin-1.1.0.jar already exists in
> destination. [INFO] embedded-crowd-core-2.8.3.jar already exists in
> destination. [INFO] h2-1.4.185.jar already exists in destination.
> [INFO] batik-util-1.7.jar already exists in destination. [INFO]
> atlassian-plugins-webresource-3.5.9.jar already exists in destination.
> [INFO] jira-core-7.1.6.jar already exists in destination. [INFO]
> atlassian-velocity-1.3.jar already exists in destination. [INFO]
> atlassian-jdk-utilities-0.4.jar already exists in destination. [INFO]
> atlassian-extras-3.1.2.jar already exists in destination. [INFO]
> commons-pool2-2.3.jar already exists in destination. [INFO]
> commons-pool-1.5.4.jar already exists in destination. [INFO]
> wstx-asl-3.2.4.jar already exists in destination. [INFO]
> jira-lucene-dmz-7.1.6.jar already exists in destination. [INFO]
> crowd-password-encoders-2.8.3.jar already exists in destination.
> [INFO] activeobjects-1.1.0.jar already exists in destination. [INFO]
> cglib-nodep-2.1_3.jar already exists in destination. [INFO]
> xmlpull-1.1.3.1.jar already exists in destination. [INFO]
> wink-client-1.1.3-incubating.jar already exists in destination. [INFO]
> atlassian-instrumentation-core-2.2.1.jar already exists in
> destination. [INFO] osworkflow-2.8.1.jar already exists in
> destination. [INFO] atlassian-plugins-webfragment-api-4.1.0.jar
> already exists in destination. [INFO] spring-web-2.0.6.jar already
> exists in destination. [INFO] ehcache-2.8.3.jar already exists in
> destination. [INFO] hsqldb-1.8.0.10.jar already exists in destination.
> [INFO] httpmime-4.4.1.jar already exists in destination. [INFO]
> commons-jexl-1.1.jar already exists in destination. [INFO]
> atlassian-html-encoder-1.4.jar already exists in destination. [INFO]
> jackson-1.0.jar already exists in destination. [INFO]
> powermock-api-mockito-1.6.2.jar already exists in destination. [INFO]
> commons-lang3-3.3.2.jar already exists in destination. [INFO]
> spring-dao-2.0.6.jar already exists in destination. [INFO]
> atlassian-renderer-8.0.5.jar already exists in destination. [INFO]
> servlet-api-2.3.jar already exists in destination. [INFO]
> spring-security-core-3.1.0.RELEASE.jar already exists in destination.
> [INFO] atlassian-plugins-osgi-events-4.1.0-m002.jar already exists in
> destination. [INFO] objectweb-datasource-1.4.3.jar already exists in
> destination. [INFO] jdom-1.0.jar already exists in destination. [INFO]
> lucene-extras-3.3.0-atlassian-3.jar already exists in destination.
> [INFO] atlassian-rest-parent-2.9.8.pom already exists in destination.
> [INFO] jotm-1.4.3.jar already exists in destination. [INFO]
> atlassian-scheduler-core-1.7.0.jar already exists in destination.
> [INFO] batik-awt-util-1.7.jar already exists in destination. [INFO]
> jira-attachment-dmz-7.1.6.jar already exists in destination. [INFO]
> sal-spi-3.0.3.jar already exists in destination. [INFO]
> atlassian-scheduler-api-1.7.0.jar already exists in destination.
> [INFO] batik-xml-1.7.jar already exists in destination. [INFO]
> atlassian-threadlocal-1.3.jar already exists in destination. [INFO]
> atlassian-vcache-api-0.7.0.jar already exists in destination. [INFO]
> querydsl-core-4.0.7.jar already exists in destination. [INFO]
> datafile-1.3.3.jar already exists in destination. [INFO]
> spring-security-crypto-3.1.0.RELEASE.jar already exists in
> destination. [INFO] velocity-1.6.4-atlassian-7.jar already exists in
> destination. [INFO] atlassian-gzipfilter-legacy-1.23.0.jar already
> exists in destination. [INFO] atlassian-spring-1.1.jar already exists
> in destination. [INFO] embedded-crowd-api-2.8.3.jar already exists in
> destination. [INFO] jcl-over-slf4j-1.7.9.jar already exists in
> destination. [INFO] atlassian-landlord-spi-2.0.7.jar already exists in
> destination. [INFO] org.apache.felix.framework-4.2.1.jar already
> exists in destination. [INFO] commons-discovery-0.2.jar already exists
> in destination. [INFO] javax.mail-api-1.5.4.jar already exists in
> destination. [INFO] atlassian-secure-utils-3.2.3.jar already exists in
> destination. [INFO] jettison-1.1.jar already exists in destination.
> [INFO] jackson-jaxrs-1.9.1.jar already exists in destination. [INFO]
> xmlsec-1.4.2.jar already exists in destination. [INFO] rhino-1.7R4.jar
> already exists in destination. [INFO] batik-transcoder-1.7.jar already
> exists in destination. [INFO] atlassian-plugins-webfragment-4.1.0.jar
> already exists in destination. [INFO] sourcemap-1.7.5.jar already
> exists in destination. [INFO] atlassian-json-api-0.9.jar already
> exists in destination. [INFO] jotm-jrmp_stubs-1.4.3.jar already exists
> in destination. [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:generate-manifest (default-generate-manifest)
> @ jira --- [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:generate-test-manifest
> (default-generate-test-manifest) @ jira --- [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:validate-manifest (default-validate-manifest)
> @ jira --- [INFO] Manifest found, validating... [INFO] Manifest
> validated [INFO]  [INFO] --- maven-jira-plugin:6.2.3:jar (default-jar)
> @ jira --- [INFO] Building jar:
> /Users/strygul/dcm/jira-module/target/jira-1.0-SNAPSHOT.jar [INFO]
> [INFO] --- maven-jira-plugin:6.2.3:generate-obr-artifact
> (default-generate-obr-artifact) @ jira --- [INFO] Skipping OBR
> generation... no OSGi bundle manifest instructions found in pom.xml
> [INFO]  [INFO] --- maven-jira-plugin:6.2.3:validate-test-manifest
> (default-validate-test-manifest) @ jira --- [INFO] Manifest found,
> validating... [INFO] Manifest validated [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:test-jar (default-test-jar) @ jira --- [INFO]
> found Test: it.com.idalko.dcm.MyComponentWiredTest, adding to
> plugin.xml... [INFO] Building jar:
> /Users/strygul/dcm/jira-module/target/jira-1.0-SNAPSHOT-tests.jar
> [INFO]  [INFO] --- maven-jira-plugin:6.2.3:prepare-database
> (default-prepare-database) @ jira --- [WARNING] The property
> 'sal.version' is no longer usable to override the related bundled
> plugin.  Use <pluginArtifacts> or <libArtifacts> to explicitly
> override bundled plugins and libraries, respectively. [INFO] Missing
> configuration dataSource for pre-integration-test [INFO]  [INFO] ---
> maven-jira-plugin:6.2.3:integration-test (default-integration-test) @
> jira --- [WARNING] The property 'sal.version' is no longer usable to
> override the related bundled plugin.  Use <pluginArtifacts> or
> <libArtifacts> to explicitly override bundled plugins and libraries,
> respectively. [INFO]
> ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
> ------------------------------------------------------------------------ [INFO] Total time: 5.742 s [INFO] Finished at:
> 2016-10-13T22:01:10+02:00 [INFO] Final Memory: 33M/369M [INFO]
> ------------------------------------------------------------------------ [ERROR] Failed to execute goal
> com.atlassian.maven.plugins:maven-jira-plugin:6.2.3:integration-test
> (default-integration-test) on project jira: Execution
> default-integration-test of goal
> com.atlassian.maven.plugins:maven-jira-plugin:6.2.3:integration-test
> failed. NullPointerException -> [Help 1] [

A: It was a problem with the version of the test plugin. Had to change it.


text:
Q: Disable checkboxes after fx. 5 checked boxes I tried to, what this script: http://www.javascriptkit.com/script/script2/checkboxlimit.shtml is to do, but i have an issue since i post my checkboxes to a PHP array
This is the code I'm using for the form:
<?php
$badges = get_user_badges($UserID, true, false);

$html='';
foreach ($badges as $Badge) {
    list($ID, $BadgeID, $Tooltip, $Name, $Image, $Auto, $Type, $Row,, $Show) = $Badge;
    if($Show == '1') $selected = ' checked'; else $selected = '';
    $html .= '<input id="showBadge" name="showBadge['. $ID .']" type="checkbox"'. $selected .'>   ';
}
echo $html;
?>

Using jQuery is NOT an option due to conflicting scripts

A: You can do this easily in jquery, but since you want it specifically in javascript, please see my answer below :
In PHP :
$html .= '<input id="showBadge" onclick="counter(this)" name="showBadge['. $ID .']" type="checkbox"'. $selected .'>   ';

In JS :
var count = 0;
function counter(element){
   if(count<5){
       //do something
   }else{
     element.checked = !element.checked;
   }
   count++;
   alert(count);
}

Fiddle : http://jsbin.com/OyIMebis/1
Update : To include the total number of checkboxes with checked status
var count = 0;

function counter(element) {
    if (count < 5) {
        //do something
    } else {
        element.checked = !element.checked;
    }
    count++;

    var inputElems = document.getElementsByTagName("input"),
        totalCount = 0;
    for (var i = 0; i < inputElems.length; i++) {
        if (inputElems[i].type === "checkbox" && inputElems[i].checked === true) {
            totalCount++;
        }
    }
    alert("Total Checkbox = "+totalCount);
}

Fiddle : http://jsbin.com/OyIMebis/2/
Update 2 :
Simply replace
var inputElems = document.getElementsByTagName("input")

with
var inputElems = document.getElementsByClassName("testing")

and you can select checkboxes with that specific class.
Fiddle : http://jsbin.com/OyIMebis/4/
Cheers

A: try this code: add a class for each check box.
$html .= '<input class="chk_bx" id="showBadge" name="showBadge['. $ID .']" type="checkbox"'. $selected .'>   ';

In js:
$(".chk_bx").live("click",function(){
if($('.chk_bx:checked').length == 5)
{
   $(".chk_bx:not(:checked)").attr("disabled", true);
}
else
{
  $(".chk_bx:not(:checked)").removeAttr("disabled");
}

});


text:
Q: Encrypt in Ruby and Decrypt in Java - Why is it not working? What am I doing wrong?  I expected the Java program to print "private".  My goal is to try to write the MessageEncryptor.decrypt ruby method in Java.
Ruby encryption (most code was taken from MessageEncryptor, but modified not to Marshal), but I've extracted it so that it's easier to see what's going on:
require 'openssl'
require 'active_support/base64'

@cipher = 'aes-256-cbc'
d = OpenSSL::Cipher.new(@cipher)
@secret = OpenSSL::PKCS5.pbkdf2_hmac_sha1("password", "some salt", 1024, d.key_len)
cipher = OpenSSL::Cipher::Cipher.new(@cipher)

iv = cipher.random_iv

cipher.encrypt
cipher.key = @secret
cipher.iv = iv

encrypted_data = cipher.update("private")
encrypted_data << cipher.final

puts [encrypted_data, iv].map {|v| ::Base64.strict_encode64(v)}.join("--")

Which printed:
tzFUIVllG2FcYD7xqGPmHQ==--UAPvdm3oN3Hog9ND9HrhEA==
Java code:
package decryptruby;

import java.security.spec.KeySpec;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

public class DecryptRuby {
    public static String decrypt(String encrypted, String pwd, byte[] salt)
            throws Exception {

        String[] parts = encrypted.split("--");
        if (parts.length != 2) return null;

        byte[] encryptedData = Base64.decodeBase64(parts[0]);
        byte[] iv = Base64.decodeBase64(parts[1]);

        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec spec = new PBEKeySpec(pwd.toCharArray(), salt, 1024, 256);
        SecretKey tmp = factory.generateSecret(spec);
        SecretKey aesKey = new SecretKeySpec(tmp.getEncoded(), "AES");

        Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
        cipher.init(Cipher.DECRYPT_MODE, aesKey, new IvParameterSpec(iv));

        byte[] result = cipher.doFinal(encryptedData);
        return result.toString();
    }

    public static void main(String[] args) throws Exception {
        String encrypted = "tzFUIVllG2FcYD7xqGPmHQ==--UAPvdm3oN3Hog9ND9HrhEA==";

        System.out.println("Decrypted: " + decrypt(encrypted, "password", "some salt".getBytes()));
    }
}

Which printed
Decrypted: [B@432a0f6c

A: This is the problem - or at least a problem:
byte[] result = cipher.doFinal(encryptedData);
return result.toString();

You're calling toString() on a byte array. Arrays don't override toString(). That won't give you what you want at all - as you can see. Instead, you need to write something like:
return new String(result, "UTF-8");

... but you need to know what encoding was used to turn the original string into bytes before encryption. It's not clear to me from the Ruby code what encoding is used, but if you can be explicit about it (ideally using UTF-8) it'll make your life a lot easier.
In short, I suspect this problem has nothing to do with encryption at all - it has everything to do with converting text to bytes in Ruby and then converting the same sequence of bytes back into a string in Java.
Of course the encryption may be failing as well but that's a different matter.


text:
Q: xlib / egl how to get VSync/swapInterval on eglSwapBuffers I'm wondering how to properly enable vsync with eglSwapBuffers when using xlib. It seems that calls to eglSwapInterval are simply ignored.
I'm running both in a windowed and full-screen mode. Is it possible that it simply isn't supported in the windowed mode?  In this case, what is a good way to reduce the frequency at which I render (sleeping tends to cause errative behaviour as there is no guarantee when it awakes).

A: Eventually I found this after a lot of googling:
http://lists.freedesktop.org/archives/mesa-commit/2010-May/021020.html

egl: Implement EGL_NOK_swap_region
This extension adds a new function which provides an alternative to
  eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in
  addition to those in eglSwapBuffers. The new parameters consist of a
  pointer to a list of 4-integer blocks defining rectangles (x, y,
  width, height) and an integer specifying the number of rectangles in
  the list.

And /usr/include/EGL/eglmesaext.h declares
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);

There's also some example usage here:
https://github.com/blazt/piglit/blob/master/tests/egl/egl-nok-swap-region.c
So I tried using it like this:
EGLint dirtyRect[4] = { 0, 0, 0, 0 };
PFNEGLSWAPBUFFERSREGIONNOK swap_buffers_region = (PFNEGLSWAPBUFFERSREGIONNOK)
    eglGetProcAddress("eglSwapBuffersRegionNOK");

and in my window resizing callback
dirtyRect[2] = windowWidth;
dirtyRect[3] = windowHeight;

and in my main loop
if (swap_buffers_region)
    swap_buffers_region(egl_dpy, egl_surf, 1, dirtyRect);
else
    eglSwapBuffers(egl_dpy, egl_surf);

It does seem smoother and slowed down the frame rate, but only down to the range of 180-200 FPS; so I still need to do a usleep between frames.  Maybe it only blocks swapping buffers during some short interval of critical GPU operations?  Or maybe I'm not doing it right.  Not sure.


text:
Q: Error in regex formulation for web scraping in python I am trying to scrape some information from a website. I require 8 fields of information, I have got it for 5 fields, but 3 fields are always coming empty. I think there is some mistake with my regular expression formulation. I am doing it in python and I don't have to use BS.
Here are the HTML fileds I need to scrape. This is example of one of the webpage.
enter code here

John Matthew Falletta, MD

Professor of Pediatrics

Professor in the School of Nursing

Department:

    	Pediatrics

Division:

    	Hematology/Oncology

Address:	Box 2991
DUMC
Durham, NC  27710

Phone:
       (919)
       668-5111

FAX:
        (919)
        688-5125

Here is my code containing respective regular expressions for each type of tag:
enter code here

patFinderFullname = re.compile('(.*)')
patFinderPTitle = re.compile('(.*)')
patFinderSTitle = re.compile('(.*)')
patFinderDepartment = re.compile('Department:\s+  \s+	(.*)	')
patFinderDivision = re.compile('Division:\s+  \s+	(.*)')

patFinderAddress = re.compile(' Address:\s+(.*)\s+	')
patFinderPhone = re.compile('Phone:	\s*(.*?)\s*
')
patFinderFax = re.compile('FAX:\s+	\s+(.*)	')

First five field results are coming correct, but the last three fields for Address, Phone and Fax are           returning always empty. Can anyone point out what I am missing? Or what is wrong with the regular expressions for the last three fields. I have posted an earlier [1][question], but these problems arrived later to that, so I am asking it in a different question.
[1] : How to scrape html tags spread over multiple lines in python?

A: patFinderAddress = re.compile('Address:	.*?	'
patFinderPhone  = re.compile('Phone:\s*	\s*^\s*.*\s*^\s*.*
',re.M)
patFinderFax = re.compile('FAX:\s*	\s*^\s*.*\s*^\s*.*	',re.M)

Here's the some regexs that work with your data.  The last two weren't working as the data spanned multiple lines. The first didn't work because it was wrong.
But, for html parsing, use an html parser as it's far more robust and gives you the data you want rather than this eyesore of html strings.


text:
Q: Remove empty bar space in Group bar chart using Plot.ly javascript? I have rendered a group bar chart with 3 bars in each group. But some times one or two bars could be empty. In that case, It's occupying space for ALL THREE bars.
How can I remove this 0 height bar's space?
I have used width: 0.1 and bargap: 0.6
Source link https://codepen.io/blacmoon/pen/MRqQoj
For ex: Check the 1997 in X,  Its having one bar value. But occupied 3bars space.

A: Late to this, but maybe it will help someone.  If you want the graph to show the "Rest of World" value in the same position, you need to provide a value for China and China Nation.  If there is no value, put null so plotly knows there is no value.  Put 0 if the value is in fact 0 which will show a slight bump where the bar would be see the difference in this Codepen for 1997.
Relevant parts:
var trace2 = {
  x: [1995, 1998, 1996, 1997, 1999, 2000, 2001, 2002, 2003],
  y: [0, 16, 0, null, 13, 10, 11, 0,0,0],
  name: 'China',

var trace3 = {
  x: [1997, 1998, 1999, 2000,2001, 2002, 2003],
  y: [0, 16, 13, 10, 11, 0,0,0],
  name: 'China Nation',


text:
Q: Algorithm for transforming polygon with points inside Sorry, if this is a duplicate. I was trying to find this in Google and Stackoverflow but I couldn't find it. Maybe I can't name correctly what I am looking for.
Let's say that I have a square and inside there are points. Than I change it's points to make quadrangle. How I can now get new coordinates of points after transform?

A: There exist a canonical method for a unit square (a square with one corner at origo and sides of length 1) because coordinates of a point (x,y) can be used directly for interpolating within a skewed quadrangle with points at q00 (which corresponds to origo (x=0, y=0)), q01 for (x=0, y=1), q10 for (x=1, y=0) and q11 for (x=1, y=1). The transformed point is the bilinear interpolation:
p = (1-x)*(1-y)*q00 + x*(1-y)*q10 + (1-x)*y*q01 + x*y*q11

A generalisation of this is to compute p as a weighted mean of the polygon corners (the weights must sum to 1). The weights for the quadrangle based on the unit square is:
w = { (1-x)*(1-y); x*(1-y); (1-x)*y; x*y }
q = { q00; q10; q01; q11 }
p = w * q

Where w * q is a dot product. Weights for a triangle are computed by solving p0 = w * q0 for sum(w)=1, where p0 is the original point and q0 are the original corner points.
The general case with a polygon has multiple solutions. One way that works quite ok (in a simple test I did) is to form triangles from all triplets of corners in the polygon that covers a given point, compute the weights of the triangles, and use their combined weight over all corners as w in p = w * q.


text:
Q: degenerate abelian surfaces I am wondering if the family of degenerate abelian surfaces constructed by K. Hulek, C. Kahn and S.H. Weintraub in "Moduli spaces of Abelian Surfaces: Compactification, Degenarations, and Theta Functions" is a toroidal degeneration, i.e. if we let
$\mathcal{X}_2 \to \mathcal{A}_2$ be the universal family of principally polarized abelian surfaces and
$\tilde{\mathcal{X}} \to \tilde{\mathcal{A}}$ its degenerate famiy (here $\tilde{\mathcal{A}}$ stands for the Igusa compactification) then is it true that $(\mathcal{X}, \mathcal{A})$ is a toroidal compactification?


text:
Q: SignalR with Ninject has stopped injecting hub dependencies Using the responses to other questions here on SO, I managed to get dependency injection working with SignalR using Ninject. But it's in a piece of my code that I was ignoring for a while, and after several weeks I'm back looking at it - and it appears to have stopped working, and I can't seem to figure out why.
I'm creating my Ninject kernel appropriately:
    private static IKernel CreateKernel()
    {
        var kernel = new StandardKernel();
        kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel);
        kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();

        RegisterServices(kernel);
        Kernel = kernel;
        return kernel;
    }

    private static void RegisterServices(IKernel kernel)
    {
        kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();
        kernel.Bind<ISessionWrapper>().To<SessionWrapper>();

        kernel.Bind<IPayboardEntities>().To<PayboardEntities>().InRequestScope();
        kernel.Bind<IAuthenticationService>().To<AuthenticationService>().InRequestScope();
        kernel.Bind<IAuthorizationService>().To<AuthorizationService>().InRequestScope();
        kernel.Bind<ITokenService>().To<TokenService>().InRequestScope();
        kernel.Bind<fsIntegrations.RealtimeService>().To<fsIntegrations.RealtimeService>().InRequestScope();

        kernel.Bind<IDataServiceFactory>()
            .To<fsIntegrations.DataServiceFactory>()
            .InSingletonScope()
            .WithConstructorArgument("kernel", kernel);

        kernel.Bind<IntegrationHub>().To<IntegrationHub>();
        kernel.Bind<CustomerHub>().To<CustomerHub>();
    }

I'm overriding the SignalR DependencyResolver in Global.asax.cs:
    protected void Application_Start()
    {
        XmlConfigurator.Configure();

        // To support Ninject with SignalR
        // See http://stackoverflow.com/questions/14706530/ninject-dependency-injection-for-signalr
        GlobalHost.DependencyResolver = new SignalRNinjectDependencyResolver(NinjectWebCommon.Kernel);

        // Register the default hubs route: ~/signalr
        RouteTable.Routes.MapHubs();

        AreaRegistration.RegisterAllAreas();

        WebApiConfig.Register(GlobalConfiguration.Configuration);
        FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
        RouteConfig.RegisterRoutes(RouteTable.Routes);
        BundleConfig.RegisterBundles(BundleTable.Bundles);
        BootstrapBundleConfig.RegisterBundles(BundleTable.Bundles);
        SimpleSocialAuthBundleConfig.RegisterBundles(BundleTable.Bundles);
    }

But when SignalR tries to create any of my hubs (I'm using constructor injection), it throws this exception:
System.MissingMethodException: No parameterless constructor defined for this object.
This used to work, and I don't think I've changed anything that would have broken it - though obviously something did.
Any suggestions as to what I'm doing wrong?

A: Sigh. Turns out I do this sort of thing too often. It was a stupid mistake on my part - though I do wish that there had been a better error message. Turns out that I hadn't registered with Ninject a class depended on by one of the classes depended on by one of the classes depended on by my hub. (Got that?)


text:
Q: Is it possible to reduce a Java Stream to a new Stream solely with the reduce function I am trying to reduce a stream of objects to a new stream of the same object type by removing duplicates based on specific properties and increment the value for those properties. In the animal example below I would be matching the typeOfAnimal then breed and summing the age in the new animal. So a list of:
[
  {"typeOfAnimal": "dog", "breed": "Labrador", "age": 5},
  {"typeOfAnimal": "dog", "breed": "Labrador", "age": 3},
  {"typeOfAnimal": "dog", "breed": "Poodle", "age": 7},
  {"typeOfAnimal": "cat", "breed": "Bengal", "age": 1}
]

The result should look like this:
[
  {"typeOfAnimal": "dog", "breed": "Labrador", "age": 8},
  {"typeOfAnimal": "dog", "breed": "Poodle", "age": 7},
  {"typeOfAnimal": "cat", "breed": "Bengal", "age": 1}
]

So far to achieve this result I have had to use the groupingBy and reducing collectors because I have been unable to write this as a single reducer operator. Here is my working example:
Stream<Animal> results = animals
    .stream()
    .collect(
        groupingBy(Animal::getTypeOfAnimal,
            groupingBy(Animal::getBreed,
                reducing(
                    new Animal().withAge(0),
                    (a,c) -> new Animal()
                        .withTypeOfAnimal(c.getTypeOfAnimal())
                        .withBreed(c.getBreed())
                        .withAge(c.getAge() + a.getAge())))))
    .values()
    .stream()
    .flatMap(a -> a.values().stream());

Does the reduce operator allow for this or do I need to stick with the current example? My preference for a single reducer function is because my actual code has more levels and therefore more groupingBy statements

A: Well, you are now grouping by a single property each time.
But you could also group by the desiring properties at once:
First, create a GroupingKey record:
public static record GroupingKey(String type, String breed) {
    public static GroupingKey of(Animal animal) {
        return new GroupingKey(animal.getTypeOfAnimal(), animal.getBreed());
    }
}

This helps us to define on which fields the animal is grouped.
Then we define a merge method, which helps to merge two animals.
private static Animal merge(Animal a, Animal b) {
    int age = (a != null ? a.getAge() : 0);
    return new Animal(b.getTypeOfAnimal(), b.getBreed(), age + b.getAge());
}

And then you could just reduce once:
Map<GroupingKey, Animal> map = animals.stream()
    .collect(groupingBy(GroupingKey::of, reducing(null, t -> merge(t))));

Then by calling values(), you could retrieve a Collection with all Animals.