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
1. Reuse existing playframework 1.x building system | |
pros: | |
- smooth migration to existing play1.x users | |
- zero effort because of reusing | |
cons: | |
- big distribution package (even contains a python implementation on windows) | |
- (potential) legal issue as a fairly big number of jars are packaged inside | |
- needs to maintain python libraries |
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.util.*; | |
import java.io.*; | |
public class templates_stocks_rythm_html__R_T_C__ extends com.greenlaw110.rythm.template.TagBase { | |
@Override public java.lang.String getName() { | |
return "templates_stocks_rythm_html__R_T_C__"; | |
} | |
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
@fieldSet("Dimension") { | |
<a class="btn icon dim" data-type="max" data-dim="width" title="all to max width"><img src="/img/nui/editor/icons/dim-max-width.png"></a> | |
<a class="btn icon dim" data-type="avg" data-dim="width" title="all to average width"><img src="/img/nui/editor/icons/dim-ave-width.png"></a> | |
<a class="btn icon dim" data-type="min" data-dim="width" title="all to min width"><img src="/img/nui/editor/icons/dim-min-width.png"></a> | |
<a class="btn icon dim" data-type="max" data-dim="height" title="all to max height"><img src="/img/nui/editor/icons/dim-max-height.png"></a> | |
<a class="btn icon dim" data-type="avg" data-dim="height" title="all to average height"><img src="/img/nui/editor/icons/dim-ave-height.png"></a> | |
<a class="btn icon dim" data-type="min" data-dim="height" title="all to min height"><img src="/img/nui/editor/icons/dim-min-height.png"></a> | |
} |
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 com.greenlaw110.utils.S | |
@args { | |
String field | |
String label | |
boolean showErrorMsg | |
Object value | |
boolean select = false | |
boolean text = true | |
boolean textarea | |
boolean password |
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 com.google.code.morphia.annotations.Id; | |
import org.bson.types.ObjectId; | |
@Entity | |
public class User extends Model { | |
//@Id | |
//ObjectId id = new ObjectId(); |
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
engine.registerTemplateClassEnhancer(new ITemplateClassEnhancer() { | |
@Override | |
public byte[] enhance(String className, byte[] classBytes) throws Exception { | |
ApplicationClasses.ApplicationClass applicationClass = new ApplicationClasses.ApplicationClass(); | |
applicationClass.javaByteCode = classBytes; | |
applicationClass.enhancedByteCode = classBytes; | |
File f = File.createTempFile("rythm_", className.contains("$") ? "$1" : "" + ".java", Play.tmpDir); | |
applicationClass.javaFile = VirtualFile.open(f); | |
try { | |
new TemplatePropertiesEnhancer().enhanceThisClass(applicationClass); |
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
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved) | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable) | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] MTRR default type: write-back | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] MTRR fixed ranges enabled: | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] 00000-9FFFF write-back | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] A0000-BFFFF write-combining | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] C0000-FFFFF write-back | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] MTRR variable ranges enabled: | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] 0 base 00F0000000 mask FFF8000000 uncachable | |
Jan 27 17:46:18 vmx9382 kernel: [ 0.000000] 1 base 00F8000000 mask FFFC000000 uncachable |
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
play.exceptions.JavaExecutionException: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject | |
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237) | |
at Invocation.HTTP Request(Play!) | |
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject | |
at com.google.code.morphia.mapping.Mapper.fromDb(Mapper.java:487) | |
at com.google.code.morphia.mapping.Mapper.fromDBObject(Mapper.java:267) | |
at com.google.code.morphia.query.MorphiaIterator.convertItem(MorphiaIterator.java:66) | |
at com.google.code.morphia.query.MorphiaIterator.processItem(MorphiaIterator.java:53) | |
at com.google.code.morphia.query.MorphiaIterator.next(MorphiaIterator.java:48) | |
at com.google.code.morphia.query.QueryImpl.get(QueryImpl.java:365) |
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
@extends(main) | |
@if (isMobile()) { | |
@layout.mobile() | |
} else { | |
@layout.desktop() | |
} |
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
grammar RL; | |
report | |
: REPORT ('(' REPORT_NAME ')')? BEGIN END | |
; | |
REPORT : 'Report'; | |
BEGIN : 'Begin'; | |
END : 'End'; | |
NAME : LETTER (LETTER | DIGIT | '_')*; |