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
=CRASH REPORT==== 21-Nov-2011::18:14:39 === | |
crasher: | |
initial call: couch_rep:init/1 | |
pid: <0.14013.0> | |
registered_name: [] | |
exception exit: {{badmatch,{error,{changes_error_code,400}}}, | |
[{couch_rep,do_init,1}, | |
{couch_rep,init,1}, | |
{gen_server,init_it,6}, | |
{proc_lib,init_p_do_apply,3}]} |
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
http://plnkr.co/edit/Kl0lYAY3O2goy5Ar4w6B?s=MJhcYoHefpn9524Z | |
fork from | |
http://plnkr.co/edit/fvD0FZBr81dtq3bjY15o?s=MJhcYoHefpn9524Z | |
deepzoom_image | |
wheel roll up/down functions work. watch seems to be not working. |
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
just in case, dzi example code below. | |
/******************************* index.html *****************************************/ | |
<!DOCTYPE html> | |
<html ng-app="angularjs-starter"> | |
<head lang="en"> | |
<meta charset="utf-8"> | |
<title>Custom Plunker</title> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script> |
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 | |
<select id="select_id" value=""> | |
<option value=""></option> | |
<option value="VALUE1">Value 1 for display</option> | |
<option value="VALUE2">Value 2 for display</option> | |
</select> | |
js | |
$("#select_id option[value=VALUE1]").prop('selected', true) |
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
gsettings set org.gnome.shell.overrides button-layout ':minimize,maximize,close' |
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
remove column from table | |
tableListSchedule.removeColumn(tableListSchedule.getColumnModel().getColumn(1)); |
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
//User Defined | |
DateTimeZone dtz = DateTimeZone.forID("America/New_York"); | |
//System Default TimeZone | |
DateTimeZone dtzz = DateTimeZone.forID(TimeZone.getDefault().getID()); |
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
/** GET TABLE COLUMN MODEL AND SET CELL RENDERER **/ | |
Color LIGHT_BLUE = new Color(176, 196, 222); | |
EmployeeDetailScheduleTableCellRenderer cellRenderer = new EmployeeDetailScheduleTableCellRenderer(LIGHT_BLUE); | |
TableColumnModel tcm =tableListDetailSchedule.getColumnModel(); | |
for(int i=2; i<=8; i++) { | |
TableColumn tm = tcm.getColumn(i); | |
tm.setCellRenderer(cellRenderer); | |
} | |
/** CREATE CELL RENDERER **/ |
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 getDateObjectFromTimeOnlyPart(default_date, timeString) { | |
// default_date : date object, timeString format "11:00" or "03:00 pm" | |
var time = new Date(default_date); | |
var hhmm = undefined; | |
var ampm = undefined; | |
if(_.str.contains(timeString.toLowerCase(), "m")) { | |
// am/pm format ex) 04:00 am | |
var timeStringArray = timeString.split(" "); | |
hhmm = (timeStringArray[0]).split(':'); | |
ampm = timeStringArray[1].toLowerCase(); |
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
// you can set border / cellpadding and other stuffs so that this content fits JTable or JLabel | |
"<html><table width=\"115\"; border=\"0\"; cellpadding=\"0\"; cellspacing=\"0\"; margin-top=\"0\"; margin-bottom=\"0\"; padding=\"0\" \"><tr><td align=\"center\">" + work_hour + "</td></tr><tr><td align=\"center\"><font size=\"2\">" + startTimeAMPM + "~" + endTimeAMPM + "</font></td></tr></table></html>" |
OlderNewer