Spring Security Reference 3.2.4 documentation in PDF format - spring-security

With Spring Security 3.1.x in the URL for documentation under reference there used to be a folder or file for the PDF version of the Spring Security Reference. In version 3.2.4 of the Spring Security Reference I only see a location for the htmlsingle folder which contains the reference documentation in 1 long html file.
What happened to the pdf version of the reference and where may I acquire it? No google search was able to enlighten me on that subject.
Thanks

Have you tried using a PDF generator such as the Save as PDF Chrome extension?

It looks like PDF support was removed in the Spring Security 3.2.x series due to an issue with the plugin. Take a look at this commit:
https://github.com/spring-projects/spring-security/commit/c135179029343d4856e4be8d637ca36b5d49bb30
The last series that still supported PDF's was 3.2.0.CI-SNAPSHOT.pdf. There are 220 commits since that and the 3.2.0. Alternatively you can access the PDF of version 4.0.0.RC1 which is only 78 commits away from 3.2.0.RELEASE and does not have that many changes that actually affect docs files.

Related

Renaming the path for asset_url in rails

I am using the WickedPDF gem and it does not properly render images within PDF files unless the URL to the image is pointing to http:// instead of https://. Since my rails application uses HTTPS, I am trying to figure out how to manipulate asset_url to point to http://localhost rather than https://path-to-my-site/asset/image.png.
Is there currently any way to do this with asset_url?
To my knowledge this is an old issue, and should easily be solved by using a more recent version of wkhtmltopdf-binary?
See the link to an issue from 2014: https://github.com/mileszs/wicked_pdf/issues/344
In the issue they mention the wkhtmltopdf-binary-edge gem, however when I upgraded to it I had a lot of weird cosmetic changes.
I opted to use the
gem "wkhtmltopdf-heroku"
even though I do not deploy on heroku but on a ubuntu 18.04 machine.

How do I edit .xslm file in ruby/rails without losing VBA macros?

I have some .xslm files in my project which I have to edit. My application is written in Rails. I know macro enabled files can not be edited with rubyXL or roo gem, somehow I have to edit them using Ruby/Rails gems or any tool which can be incorporated within Rails app. The application is hosted on AWS, does aws have any tool to do the same ? Plus the requirement is the macros be retained.
It turns out it is not possible to edit macro enabled excel sheets (.xlsm) files in Rails. Even though you tweaked the file somehow, MS Office will treat it as a corrupt file.

Rails 4 - Adding JS assets via gem

I am using a gem that somebody else wrote to serve the fabric javascript library. The gem is using an old version of the library (1.3) and I'd like to be using 1.4 (the latest version). I haven't found any other gems using this version. My question is, is this the best way to load assets, or is there a more preferred method? And, if so, how would I go about building this gem with the latest version of this library?
In my opinion, it is good to do so in most cases.
In your situation, depending on how much time you have, you may want to do one of the following:
1. Contribute to the gem
If the gem is open source, you may fork it, update to the newest version, and do a pull request.
By this way you also give contribution to the rails whole and the others who are facing the same problem as well.
Downside is this takes time. You have to wait for the author to accept the pull request and wait for the next version of the gem. But you can point your Gemfile to use your forked version until the new version is out ;)
2. Write your own gem
Writing a gem for rails providing assets is actually not difficult. You may follow other existing gem's structure and should be easy to understand.
A good example is https://github.com/rails/jquery-rails
Downside is you have to maintain the gem. Otherwise when fabric 1.5 is out, another one would ask the same question as yours again.
3. Put the assets in your vendor directory
Rails project by default do have a vendor directory. It's ok to put external assets here as well.
The above are my preferred way to manage external assets.

Grails Spring Security Login/Logout Controllers not generated

I am trying to learn Grails along with the Spring Security plugin. I am using Grails 2.3.0 with springsecurity-RC2 plugin and following the guide on the Grails website.
The issue I am running into is that the generated LoginController.groovy and LogoutController.groovy files from the s2-quickstart script are not being generated in the grails-app/controller, instead they are in target/work/springsecurity/grails-app/controller.
This issue does not seem to occur in grails 2.1.5 but does in 2.2.4.
Is there anyway for me to fix these issues or do I not need them?
This is by design. The files aren't generated anymore, they're included in the plugin itself. If you need to modify them, copy the controller and/or GSPs to your project in the same location under grails-app and make your changes there. Apps can always override plugin classes using this approach since Grails compiles plugins first, then the app.

Using CkEditor in Rails how do I enable image upload from local file system?

i have a rails application using PaperClip with CKEditor version 3.7.
i would like to enable upload of images from the local file system. i see i can use FCKEditor but all i can see is it's applicable for PHP and ASP.Net.
is that another option or do i need to do custom integration?
You can integrate elfinder into ckeditor.
http://elfinder.org/
https://github.com/Studio-42/elFinder/wiki/Integration-with-CKEditor
https://github.com/phallstrom/el_finder
https://github.com/phallstrom/el_finder-rails-example
Disclaimer - I wrote the Rails connector. It's meant for 1.x elfinder, but will work with 2.x using the translater (not everything is supported yet though). I'm working on pure 2.x support now.

Resources