This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [val, i] = closest(haystack, needle) | |
[~, i] = min(abs( ... | |
repmat(reshape(haystack,numel(haystack),1),1,numel(needle)) - ... | |
repmat(reshape(needle,1,numel(needle)),numel(haystack),1) ... | |
), [], 1); | |
val = reshape(haystack(i), size(needle)); | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script> | |
<style type="text/css"> | |
</style> | |
<script type="text/javascript"> | |
function make_bugs() { | |
$('#container').html( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IPP Printer : HL2240D-local | |
IPP Printer : HL2240D | |
IPP Printer : HP-LaserJet-4050 | |
printDataTransferCompleted | |
106 | |
PrintEvent on sun.print.UnixPrintJob@107ebe1 | |
printDataTransferCompleted | |
106 | |
PrintEvent on sun.print.UnixPrintJob@107ebe1 | |
PrintJobEvent: printJobNoMoreEvents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.net.URI; | |
import java.util.Date; | |
import java.util.Locale; | |
import javax.print.Doc; | |
import javax.print.DocFlavor; | |
import javax.print.DocPrintJob; | |
import javax.print.PrintException; |
NewerOlder