- #Grails and PostgreSQL http://t.co/CH8YK6GdZF 23:17:12, 2014-08-05
- @naresha_k Thanks for the follow 19:21:26, 2014-08-11
- I am at the Austin #Clojure group at @CapitalFactory 19:22:45, 2014-08-11
- Questions for people using static site generators: How do people contact you? How do people leave comments on your site? 19:24:32, 2014-08-11
- @sgillies Thanks for the follow 19:34:49, 2014-08-11
- @jeffcohen What are you writing? in reply to jeffcohen 20:14:11, 2014-08-11
- RT @auroraeosrose: "I can't find good devs" = "I can't find a talented, dumb kid to move where he can't afford, work too much for too litt… 20:24:09, 2014-08-11
At the last APUG meeting there was no set agenda or presentation. They just had a Q&A with whoever wanted to answer. The company that hosts the APUG is a heavy Postgres user.
I had a few questions. The basic thrust was: What are some things DBAs wish developers knew about databases or did differently?
One answer was that developers should learn to think in sets. If you need to change a bunch of records in the database, just run a query that will update them all at once. A lot of developers would get a query (with an ORM) that would put the objects into a list, then iterate through the list and update them one at a time. This would be a much heavier load on the database. Just run a query.
In GORM, you can call .withSession on your domain classes to get the Hibernate session, and use that to run queries.
Another suggestion was to deal with views instead of tables. I really do not have any knowledge about that WRT Grails.
The last thing that I remember is that you should not think that you are the only person who touches the database. Someone else will want to run queries, and perhaps add data to it. Many web frameworks (like Grails and Rails) have database constraints if you access the database through the web app. But outside the app, you are on your own.
One small project I will start is I will go through the Grails constraints (see here and here) and see how to create them in Postgres. I might do MySQL as well. There are a few that Grails will put in the database when it is generated by Grails, like uniqueness, foreign keys, and whether or not a field can be null. But for most of them, they only exist in Grails.
- @pledbrook I am attending Gr8ConfUS – any chance I could get some help w/Grails Shiro? 00:49:41, 2014-07-29
- Slides for #GR8Conf talks: https://t.co/DIXD9VFij0 #GroovyLang 16:51:14, 2014-08-01
- @pledbrook It turns out the shiro-ui plugin was causing some problems. Without that, examples work as expected in reply to pledbrook 09:19:16, 2014-08-02
I went to Gr8Conf last week.
I really cannot think of a whole lot to say at the moment. I am excited that there is a lot going in the Groovy and Grails space.
Right now I will have to go through all my Grails apps and change the controllers so the create, edit and delete actions in the controllers send their work to Grails services.
I have been working on using the Grails Shiro plugin. I asked for help with it from the guy who used to maintain it, Peter Ledbrook. I was not able to get examples from other apps to work. He was not able to get things running for me either. It turns out the app I was working with was also using the Shiro-UI plugin. There were two “Auth” controllers, and that was messing things up.
I have tried working with the Grails Spring Security Core plugin. It is easy to get up and running, but writing tests for an app that uses it is pretty hard. I got it working myself, but it took a lot of Googling (and as many of you know, you Google after you have driven yourself crazy trying to figure it out on your own). The way I got it to work was a bit of a jumble in my opinion, with some Spock mocking mixed in with some core Groovy mocking. I realized why it was so hard when one of the presenters said that services should only be called from controllers. Spring Security Core requires you to run the plugin as a service from your User domain classes.
I will try to write some tests for an application using the Shiro plugin. Hopefully it will be easier.
I think the reason I had so much grief with the Spring Security tests is because a lot of tutorials do not really cover services too much. Since they are not covered, I guess people don’t think about them too much. One person I talked to said that one reason for that might be that the controller generators do not put edit, save and delete in services, so people think they can get by without them.
I might post my notes online later.
- @RyanVanderwerf and I are about to get started at @AustinGGUG 19:01:31, 2014-07-23
- @kenkousen According to Star Trek site, it is "Jonathan" http://t.co/qLHVkmjMBe 16:34:58, 2014-07-28
- RT @hnycombinator: How to take over the computer of any Java (or Clojure or Scala) developer http://t.co/cJPgY5vMz1 (cmts http://t.co/Rx4jk… 18:06:44, 2014-07-28
- RT @RyanVanderwerf: Slides for my Getting Grails/Groovy Into the Enterprise Talk today https://t.co/UZNkd2L1N1 #gr8conf 18:09:58, 2014-07-28
- @jpalmer1026 @DivideBy0 are either of you going to @GR8confUS this year? 20:41:55, 2014-07-18
- Error With ForkedTomcatServer in #Grails – problem solved http://t.co/kOpZAXlkjF 23:34:55, 2014-07-18
- @erikweibust Thanks for the follow 22:03:38, 2014-07-20
- I am working on my presentation for the next @AustinGGUG meetup http://t.co/e6HZFdAbxY 22:04:45, 2014-07-20
Recently I had an issue with just about all of the Grails apps on my machine.
When I tried to run them, I was getting this error:
| Packaging Grails application..... | Error Tomcat plugin classes JAR grails-plugin-tomcat-7.0.42.jar not found | Running Grails application Error: Could not find or load main class org.grails.plugins.tomcat.fork.ForkedTomcatServer | Error Forked Grails VM exited with error
The number for the jar file would be different for different versions of Grails.
What I finally did to get rid of the error was:
- Run “grails clean; grails compile; grails list-plugins”
- Comment out the line for the Tomcat plugin in BuildConfig.groovy
- Run “grails clean; grails compile; grails list-plugins” again
- Uncomment the line for the Tomcat plugin
- Run “grails clean; grails compile; grails list-plugins” again
Maybe the first “grails clean; grails compile” is unnecessary. But this seemed to work.
I have no idea what caused it. It happened with various versions of Grails. I had no problem with new Grails apps, or with apps downloaded from Github.
This is a post to test the WordPress plugin.
- I will be presenting July 23 at @AustinGGUG http://t.co/e6HZFdAbxY with @RyanVanderwerf 23:39:17, 2014-07-10
- Using Groovy Validator on Immutable Objects http://t.co/fL51X0iwCZ 23:40:03, 2014-07-10
- MT: Forgot to tag with #GroovyLang : Using Groovy Validator on Immutable Objects http://t.co/fL51X0iwCZ in reply to EMacAdie 23:44:26, 2014-07-10
- RT @glaforge: A detailed introduction to the #spock testing framework http://t.co/ykUdYR7dBu #grooyvlang 23:51:19, 2014-07-10
- @jpalmer1026 How is the Chicago Groovy Users Group revival going these days? 23:53:07, 2014-07-10
- 6 Ways To Customize the Windows 8 Start Screen http://t.co/Km510T4Ix3 10:29:27, 2014-07-12
- Using #GroovyLang Validators in the Groovy Shell http://t.co/NOiCq34jjS 12:28:23, 2014-07-12
- I am at the #Clojure meetup at the @CapitalFactory – the speaker is @nickmbailey 19:09:25, 2014-07-14