need some tutorials on Grails Shiro Security [closed] - grails

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
hey all
i need some good tutorials demonstrating all the aspects of grails shiro securty, that how to use them using some example.
i already have read the tutorials explained in grails site but i need some tutorials with examples.
Please help friends...
m waiting for some positive response.

the shiro-plugin is great regarding it's functionality, but not too well documented - I agree.
So I guess you will not find any additional tutorials beyond what you already know.
As with most of the plugins, they are mostly simple wrappers around the main library, so a good start to understand shiro is the shiro documentation.
Next problem is to understand how Peter Ledbrook mapped the shiro functionality to grails features. For me, the most important thing was that shiro methods like SecurityUtils.subject.isPermitted are mapped to the methods you'll find in the realm. By modifying the realm file, you'll be able to do nearly all tricks you need to do (for instance get some permissions through LDAP).
If you could be more specific on what you need to know about shiro in detail, maybe I could give you a better answer :-)

You might check out the nimble plugin (http://www.grails.org/plugin/nimble). It uses Shiro and would probably be a good example.

You can find a sample app on the Grails site you just need to check out.
another one is here and here and some Videos on google

I know I am late but I actually had the same question today and following Ralf answer lead me here: http://shiro.apache.org/10-minute-tutorial.html, which I think is the best place to start

Related

What I need to know before Learning Grails? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a student now, and I like grails.
I have a bit experience with java, but not that much.
I know a bit of the java stack technologies
What technologies I should understand before going to developing websites with the Grails framework?
I would advise you to learn the Spring MVC Framework prior to Grails because Grails is based on this framework. So if you encounter an error you will have to check the stacktrace and understand what is going on.
You can start learning Spring MVC by reading Introduction to Spring Web MVC framework.
have you tried going through the getting started guide for grails? that should get you going, and you can pick up anything extra you need along the way...
It's worth knowing about the the technologies Grails is using under the hood:
Hibernate
Spring (especially MVC)
Groovy
It is also worth being familiar with the design patterns that Grails uses, in particular model-view-controller.
Some basic knowledge of relational databases will also be useful.

Reference material for JQuery [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Hi although this is not technical question, it is important to know where can someone find best from the experts.I am new in JQuery, I am using http://jquery.com/ for learning purposes. But it would be appreciable if I could have some better reference learning site for JQuery where videos and demos are available
So presuming you're somewhat familiar with jQuery, I would advise starting with JavaScript.
Code Academy run through the whole thing and you will understand JavaScript
jQuery's official site has a long, comprehensive list of tutorials. Pick the ones you think are down your alley and run with it.
After that, there are many, many good sites dedicated to jQuery.
Some that you might like are:
http://www.learningjquery.com/
http://jqueryfordesigners.com/
http://visualjquery.com/1.1.2.html (doesn't teach, just think of it as visual docs for the framework)
The New Boston jQuery Video Tutorials
This is a very good site.
I have gone through many tutorials and they are extremely helpful
Just try few videos first and see how much you get from it.
http://listic.ru/jQuery_Cookbook.pdf
found this quite organised and useful.

Resources for Grails Best Practices [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
This question is too general for answers directly in stackoverflow (see this closed question) however I think the community would beneift from having starting points for high quality external articles which can dive into the topic in more detail.
I'd like to see the most informative article on Grails 'Best Practices' based on the following criteria:
how to split tasks between controllers/views/services/domain objects
testing
security
when to use plugins
database design considerations
topics specific to Groovy or Grails that would not be part of general best practice guides
Please answer with a link to an external article adding just a short summary. Please do NOT comment too much on whether you think individual ideas/patterns are good otherwise this question will be closed for 'soliciting debate and discussions'
This InfoQ article on Grails best practices has an excellent list of how to split logic between controllers/views/services/domain, testing, config and other Grails specific considerations.
It's a short article and I'd recommend it to any Grails developer
The GrailsPodcast website just had a good 'best practice' session: http://www.grailspodcast.com/blog/id/249 (currently offline)
There is a presentation by grails persistence expert Burt Beckwith explaining potential performance issues with out-of-the-box usage of hasMany/belongsTo mappings in GORM:
http://burtbeckwith.com/blog/files/169/gorm%20grails%20meetup%20presentation.pdf
Here's an example of how to apply one of the cases that Burt exposes:
https://mrpaulwoods.wordpress.com/2011/02/07/implementing-burt-beckwiths-gorm-performance-no-collections/

GWT, RoRails or Grails for a "Social Network" [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Am thinking about building a social networking site,that can function more like an application then a site,thus giving it better performance and user interface.
what am stuck up with here is which would be the best framework to try this out?
GWT-i have some experience(about 2 years) with Java and it looks easy but the forum appears dead.
Ruby on Rails- i visited the website today,went through a few tutorials and it looks easy to learn,but i never programmed on this 1 before.
Grails - i have heard that this is a very god framework and based on java,but i've never personally tried it.
What would you think would be the right choice?
it would be cool if you consider factors like performance,scalability and the widgets already available.I don't really care about the development time...i've got more than 2months!
Especially with a Java background, Grails would be a good choice. Grails is built on top of Spring and Hibernate, but makes using them much easier. No painful editing of XML config files.
Although, I'd make sure you evaluate using Ning and the existing open source projects before you bother building another one from scratch.
I'm not sure what you mean by "more like an application then a site". If what you mean is give the app a desktop application feel, then I think GWT fits more. Though if you want to have something really fast, (half the development time that you'd use to develop it in GWT), then I'd recommend rails. I haven't tried Grails before but it seems neat.
The best for you to use is ruby on rails if it about performance,scalability and the widgets
then you have no problem at all. It also has lots of gems/plugins that can help you so much
Read this book Grails in action.
It shows you how to make a social networking site using grails.
It uses an old version of Grails but you can adapt it.

Are there any good Pascal Script resources/documentation? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I started playing around with Pascal Script today and I cannot find any good documentation. I found these (one, two) articles. The are helpful but they are just examples.
edit: Separated this into two questions. New question is here.
I don't know if this will help but last week, I started working with FastScript. The first kinds of errors I ran into were the same as what you are seeing. After studying the slightly helpful documentation and the much more helpful code, I saw that I needed to add a constructor for a class by using an AddConstructor call and any other methods of a class with a call to AddMethod. I'm getting a better idea of just how their parsing works and it looks like I can assemble a reference to an arbitrarily complex class just by mirroring it with a series of calls to AddMethod, AddProperty, AddIndexProperty and so on. Just like in Pascal, you start first by defining the simpler class and then use that simpler class in your more complex class.
Thinking about it over the weekend, it seems like this is one very practical way to build a scripter. It could be that PascalScript has the same arrangement although undoubtedly, the names will be different.
I decided to add some documentation of my own. Its not very thorough but it should help out anyone who is new to Pascal Script.
Heres the link.
Some of us are using PascalScript here but docs are a little thin. You can take a look at the source of Innosetup (the installer) since this uses an editor and script engine from PascalScript to provide its own pascal scripting.
Brian
The samples folder that comes with PascalScript is very useful, and performs reasonably well as a form of applied documentation.

Resources