« first day (492 days earlier)      last day (2665 days later) » 

12:05
ublic class ClientSocket {

PriorityQueue<Integer> sample = new PriorityQueue<>();

public void start() {
new Thread(new Runnable() {
public void run() {
while(true) {

sample.add(new Integer(12));
System.out.println("Add=>"+sample.size());
}
}
}).start();
}

public void readList() {
System.out.println("Add size=>"+sample.size());
System.out.println(sample.poll());
}

public static void main(String args[]) {

ClientSocket cs = new ClientSocket();
cs.start();
cs.readList();
}
}
 
2 hours later…
13:53
1 message moved from Java
 
2 hours later…
16:16
function addApprovedToDropdown()
{

AvailableStatusesDataSource.add({ applicationStatusName: "Approve", applicationStatusValue: 2 });

$("#CurrentApplicationStatusText").val("Approve");


var len = AvailableStatusesData.dataSource.data().length - 1;

AvailableStatusesData.select(len);


AvailableStatusesDataSource = $('#AvailableStatuses').data().kendoComboBox.dataSource;
AvailableStatusesData = $("#AvailableStatuses").data("kendoComboBox");
}
function removeApprovedToDropdown() {
var dropdown = $("#AvailableStatuses").data("kendoComboBox");
var raw = dropdown.dataSource.data();
var length = raw.length;
var item, i;
for (i = length - 1; i >= 0; i--) {
item = raw[i];

if (item.applicationStatusName == "Approve") {
dropdown.dataSource.remove(item);
break;
}
}
AvailableStatusesData.select(0);
//AvailableStatusesData.dataSource.data.refresh();
//$("#AvailableStatuses").data("kendoComboBox").s
}
16:26
2 messages moved from C#
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa‌​aaaaaaaaaaaa
1 message moved from C#
16:52
@Nathvi function addApprovedToDropdown() {

AvailableStatusesDataSource.add({
applicationStatusName: "Approve",
applicationStatusValue: 2
});

$("#CurrentApplicationStatusText").val("Approve");

var len = AvailableStatusesData.dataSource.data().length - 1;

AvailableStatusesData.select(len);

}
function removeApprovedToDropdown() {
var dropdown = $("#AvailableStatuses").data("kendoComboBox");
var raw = dropdown.dataSource.data();
var length = raw.length;
var item, i;
for (i = length - 1; i >= 0; i--) {
item = raw[i];

if (item.applicationStatusName == "Approve") {
dropdown.dataSource.remove(item);
break;
}
}
AvailableStatusesData.select(0);
//AvailableStatusesData.dataSource.data.refresh();
//$("#AvailableStatuses").data("kendoComboBox").s
}
2 messages moved from C#

« first day (492 days earlier)      last day (2665 days later) »