WebSocket communication for Sharing Line status
08:
Playframework
H2console
- Go to localhost:9000/@db
- Choose the Generic H2 Server option in the first box
- For the url enter jdbc:h2:file:c:/play/myapp/db/h2/play
- Username is sa password is blank
WebSocket communication for Sharing Line status
08:
Playframework
H2console
grails install-plugin dbunit-operator.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
1: dataSource {
2: pooled = true
3: driverClassName = "net.sourceforge.jtds.jdbc.Driver"
4: username = "trainingadmin"
5: password = "trainingpw"
6: dbunitXmlType = "flat"
7:
8: }
9:
10: hibernate {
11: cache.use_second_level_cache=true
12: cache.use_query_cache=true
13: cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'
14: }
15: // environment specific settings
16: environments {
17: development {
18: dataSource {
19: dbCreate = "create-drop" // one of 'create', 'create-drop','update'
20: url = "jdbc:jtds:sqlserver://localhost:1433/TRAINING"
21: initialData = "data/dev/training.xml" // dbunit-operator Flat-XML or XML data file
22: initialOperation = "CLEAN_INSERT" // dbunit-operator operation
23: }
24: }
25: test {
26: dataSource {
27: dbCreate = "update"
28: url = "jdbc:hsqldb:mem:testDb"
29: }
30: }
31: production {
32: dataSource {
33: dbCreate = "update"
34: url = "jdbc:hsqldb:file:prodDb;shutdown=true"
35: }
36: }
37: }
line
6: must specify like this to use xml data file
21: you can specific initial data here. WARNING this point you can only specific 1 data file. If you have any data file, specified at BootStrap.groovy, I will show you later in this post.
22: initialOperation: ???
3. conf/BootStrap.groovy : specific DbUnit action here, in init{}
- you can put more data file here
- can create object here
ex:BootStrap.groovy
1: import com.nic.*2:3: class BootStrap {4: /*5: def init = { servletContext ->6: }7: */8:9: def init = {servletContext ->10: DbUnitOperator.create()11: DbUnitOperator.operate("data/dev/employee.xml","CLEAN_INSERT")12:13: def bu1 = new BusinessUnit(buNo:'002', name: 'Accounting', buType:BusinessUnitType.DEPARTMENT)14: bu1.save()15:16: }17: def destroy = {18: }line
10 need let bootStrap to Create DbUnit (Need) 11 opt DbUnitOperator.operate("data/dev/employee.xml","CLEAN_INSERT") // this is the way you can add more data file. each file can edit (just edit, cannot change structure) via Excel 2007.
13, 14 opt Another way you can create and save object. You can call object that already created by xml data file.
Grails Lazily Initialize error
<br />in SMS system, when level need to retrieve
use Eager fetch like this example
class Person {
String firstName
static hasMany = [addresses:Address]
static mapping = {
addresses lazy:false
}
}
class Address {
String street
String postCode
}
เข้า NIC 9:45
ทำระบบ SMS ให้รองรับ Level ต่างๆ เสร็จประมาณ 70% ตอนนี้ เหลือ Controller ในการ Update Group SMS ซึ่งต้องไล้ทุก personLevel
พัสดุให้นำเครื่อง printer ที่เสียทั้งหมด ออกมาแสดงให้ Yamamoto ดูในวันพรุ่งนี้
วันพรุ่งนี้เข้า Software Park
Normal
0
false
false
false
EN-US
X-NONE
TH
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:”";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
mso-pagination:widow-orphan;
font-size:11.0pt;
mso-bidi-font-size:14.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
เข้า NIC
9:45
ทำระบบ
SMS ให้รองรับ Level ต่างๆ เสร็จประมาณ 70% ตอนนี้ เหลือ Controller ในการ Update Group SMS ซึ่งต้องไล้ทุก personLevel
พัสดุให้นำเครื่อง
printer ที่เสียทั้งหมด ออกมาแสดงให้
Yamamoto ดูในวันพรุ่งนี้
วันพรุ่งนี้เข้า
Software Park
ํYou must add content to let alfresco know this file formats belong to OpenOfficce
ref:
http://forums.alfresco.com/en/viewtopic.php?f=3&t=16210
<!– Add these lines –>
<document-format><name>Microsoft Word 2007</name>
<family>Text</family>
<mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
<file-extension>docx</file-extension>
<export-filters>
<entry><family>Text</family><string>MS Word 97</string></entry>
</export-filters>
</document-format>
<document-format><name>Microsoft Excel 2007</name>
<family>Spreadsheet</family>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
<file-extension>xlsx</file-extension>
<export-filters>
<entry><family>Spreadsheet</family><string>MS Excel 97</string></entry>
</export-filters>
</document-format>
<document-format><name>Microsoft Powerpoint 2007</name>
<family>Presentation</family>
<mime-type>application/vnd.openxmlformats-officedocument.presentationml.presentation</mime-type>
<file-extension>pptx</file-extension>
<export-filters>
<entry><family>Presentation</family><string>MS PowerPoint 97</string></entry>
</export-filters>
</document-format>
This help my life from 3 days unhappiness.
Prerequired
Component to Install
Configuration to allow network usage
ทำระบบตอบรับอัตโนมัติ รองรับการที่ไม่มี Operator
ให้พูดว่า ติดต่อแผนก บัญชีกด 1 แล้วเบอร์มา Run กันที่ 720 721
ระบบรับ Fax อัตโนมัติ
2. ระบบกล้องวงจรปิด และหน้าจอให้ทาง รปภ ดูที่ป้อมยาม ทั้ง NIC และ บนล.
3. เตรียมแผนงานในการเปิดระบบ Computer กรณีฉุกเฉิน
ไปดูกล้องวงจรปิดที่ SNF สายขาดในที่ กล้องป้อมยามทั้งสองตัว
เสนอใช้งบโปรแกรมเครื่องชั่ง 12,000
สัญญาณ Andon MB ไม่เข้า พรุ่งนี้เข้าไปตรวจสอบกับ ช่างชัย
Theme: Shocking Blue Green. Blog at WordPress.com.