How to use layout of grails?

Define a layout file

There is a main.gsp file in view/layout by default. You can also define your own one.

The most important tags will be used to define a layout.

  1. <g:layoutTitle> => the title of the actual gsp file
  2. <g:layoutHead> => the content of head of the actual gsp file
  3. <g:layoutBody> => the content of body of the actual gsp file

The simplest layout file is like:

<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title><g:layoutTitle default="Blog"/></title>
    <g:layoutHead/>
</head>
<body>
    <g:layoutBody/>
</body>
</html>

To use the layout file

To use a layout file, just include <meta name="layout" value="name of layout file"> in the head of gsp files.

Only the head and body of gsp files will be merged into final results whereas DOCTYPE defined in gsp files won’t.

2013年目标

2013年目标

终于可以开始写今年的目标了,虽然今年已经过去了1/4。之前因为找工作的原因,也没办法来想今年的目标。

首先,工作部分。我还是希望可以很好的帮助到他们。一方面,对自己是提升。另一方面,希望可以获得双赢的机会。所以这段时间,更加需要虚心学习。同时要多努力。而且,平时要注意总结。每天应该坚持写工作日记。

工作的时候,要集中注意力,提高上班时间的工作效率。因为晚上回家基本上没有精力和时间来学习或者再处理工作上的事情。

然后,通过这次找工作的经历,也让我明白了英语的重要性。而且要求不仅仅是可以侥幸通过面试的那种,而是需要很有把握的。换句话说,自己心里应该有底。

技术上,今年的目标是能够把web application从头到尾真正的搞熟悉,包括javascript和CSS。如果有部署和监控的机会的话,也要把性能这部分搞熟悉。同时SQL的部分,需要把learn SQL the hard way看完。

其他的东西,暂时只要求能够把scala看完就可以了。看完的具体要求就是,能用scala写一个大一点的项目。敢在简历上写熟悉scala。

具体到行动:

  1. 每天坚持写工作日记。
  2. 每天两课赖世雄,今年要把美语从头学的中级学完。如果能坚持完成,考虑给自己一份奖励。比如说x100s。
  3. Learn SQL the hard way学完。
  4. 上完scala的课程,scala programmino看完。写一个大一点的scala项目。

从未来来看,下面的几项技术是需要学习的。所以今年也应该时刻关注。

  1. 移动
  2. 云计算,尤其是openstack
  3. 大数据,hadoop
  4. 机器学习和数据分析

I want a x100s!!

My favorite android apps

  • Swiftkey: best English input method. With it, writing something in English is really enjoyable.
  • Anki: best flash card app and it is free. iOS version is really expensive.
  • 百度地图: android version is better than iOS version and I don’t know why
  • catch: just as its name, to capture ideas, catch is simpler and faster than Evernote. Especially the widget on android make it even faster than iOS version

muszeresz replied to your quote: muszeresz replied to your photo: aham. és ez mit…
passz, lehet, hogy fals pozitív. szignatúrák alapján detektál, és egyezést talált.
értem. köszönöm :)
(Reblogged from viteez)
(Reblogged from rememberaaronsw)
(Reblogged from notch)

我觉得福特在国内最终的发动机可能是:
新嘉年华,低配1.5, 高配1.0t
新福克斯,低配1.0t,高配1.6t
蒙迪欧,低配1.6t,高配2.0t

2012-10-24 胖子满月了

pangziriji:

2012年10月24日,胖子满月了。

今天到李叔叔(乔治)家吃饭,抱下楼就开始睡。到李叔叔家,一直表现良好。既不哭,也不闹。

(Reblogged from pangziriji)
But sometimes, we just have to be happy with what people can offer us. Even if it’s not what we want, at least it’s something. You know?
Sarah Dessen, Lock and Key (via creatingaquietmind)
(Reblogged from quote-book)