prayag@Prayag:~/workspace_grails$ cp emacs-grails-mode/*.* /usr/share/emacs23/site-lisp/
prayag@Prayag:~/workspace_grails$ ls -l /usr/share/emacs23/site-lisp/
total 36
lrwxrwxrwx 1 root root 39 Feb 5 15:21 debian-startup.el -> ../../emacs/site-lisp/debian-startup.el
-rw-r--r-- 1 root root 3013 Feb 5 15:21 debian-startup.elc
drwxr-xr-x 2 root root 4096 Feb 5 15:21 dictionaries-common
Create-app
prayag@Prayag:~/workspace_grails/school$ grails run-app
| Resolving plugin JAR dependencies.....
> You currently already have a version of the plugin installed [resources-1.1.6]. Do you want to update to [resources-1.2.RC2]? [y,n] n
| Compiling 11 source files
| Compiling 149 source files
Note: Some input files use unchecked or unsafe operations.
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
syntax enable | |
set background=dark | |
let g:solarized_termcolors= 16 | |
let g:solarized_termtrans =16 | |
let g:solarized_contrast = "high" | |
let g:solarized_visibility= "high" | |
colorscheme solarized | |
execute pathogen#infect() |
[1] Installation
Reference http://dba.stackexchange.com/a/1288/6710
[2] Add rule
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
prayag@Prayag:~$ cat /proc/swaps | |
Filename Type Size Used Priority | |
/dev/sda5 partition 2928636 1365180 -1 | |
http://askubuntu.com/a/159792/37643 | |
prayag@Prayag:~$ swapon -s | |
Filename Type Size Used Priority | |
/dev/sda5 partition 2928636 810536 -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
Spring-GWT i18n | |
[1] How do you enable LocaleInterceptor to change the locale in spring-security login page?, http://stackoverflow.com/questions/5244776/how-do-you-enable-localeinterceptor-to-change-the-locale-in-spring-security-logi | |
/** | |
* Spring conf | |
*/ | |
<!-- controllers.xml --> | |
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"> | |
<property name="paramName" value="lang" /> |
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
prayag@Prayag:~/workspace_erujopmoc/korma-lobos-tpl$ lein repl | |
REPL started; server listening on localhost port 11138 | |
korma-lobos-tpl.server=> (use 'lobos.core 'lobos.connectivity 'lobos.migration 'lobos.config 'lobos.migrations) | |
(open-global sqldb) | |
(migrate) | |
(use 'korma-lobos-tpl.entities.users) | |
(create-new-user "WARNING: alter already refers to: #'clojure.core/alter in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.core/alter | |
WARNING: drop already refers to: #'clojure.core/drop in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.core/drop | |
WARNING: complement already refers to: #'clojure.core/complement in namespace: korma-lobos-tpl.server, being replaced by: #'lobos.migration/complement | |
WARNING: alter already refers to: #'clojure.core/alter in namespace: lobos.config, being replaced by: #'lobos.core/alter |
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
prayag@Prayag:~/workspace_erujopmoc/korma-lobos-tpl$ lein repl | |
Exception in thread "main" java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at jline.ConsoleRunner.main(ConsoleRunner.java:69) | |
Caused by: java.lang.Exception: Couldn't connect (NO_SOURCE_FILE:0) | |
at clojure.lang.Compiler.eval(Compiler.java:5440) | |
at clojure.lang.Compiler.eval(Compiler.java:5391) |
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
$ lsPCI | |
05:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01) | |
prayag@prayag:~$ lsmod | |
Module Size Used by | |
rfcomm 38139 0 | |
parport_pc 32114 0 | |
ppdev 12849 0 |