I want to generate Captcha code in play framework with scala.
Please tell me how to solve this problem, I am not able to find the Image.captcha in my play.libs._ package.
I suppose you are talking about play.libs.Images which is relevant for Play framework 1.x only. Play framework 2.x has no built in captcha-generating mechanism so you should use some external captcha generators.
Consider reading this post: How to use Captcha in Play Framework 2.1.3
Related
We've recently upgraded from ASP.NET Core 1.0 to 3.1.
And in our code we're using the interface INodeServices and call its InvokeAsync method to activate some JavaScript library. After the upgrade to Core 3.1 the compiler complains that INodeServices is obsolete and should be replaced with 'Microsoft.AspNetCore.SpaServices.Extensions', but I couldn't find any type within this library that I could use instead of INodeServices, and I also coudn't find any documentation about it. What is the replacement for INodeServices.InvokeAsync in ASP.NET Core 3.1?
Thanks,
ashilon
Consider using this library instead https://github.com/JeringTech/Javascript.NodeJS
For more detailed informations and to see what other people did, i suggest you give a look at this thread https://github.com/dotnet/AspNetCore/issues/12890
I'm migrating an Play 2.4 application to 2.5 and now play.Play.application().isProd is deprecated. I use this in various places in scala.html templates. (To decide weather or not to use minimized javascript.)
It seems unreasonable to pass this in as parameters into every template.
Is there a way to inject the Application into the template directly?
I used the same method in 2.4, in 2.5 I switched to play.Environment.simple().isProd
I'm using Play framework 2.2.x and I'm looking for some plugin/lib for generating PDF.
I found this plugin:
https://github.com/joergviola/play20-pdf,
but it's for Java and is not supported already
Do u know some repository with this library? Or some alternatives for Scala and Play Framework?
=== Update
I found some fork, but still no working repository
https://github.com/alias1/play2pdf
Try this one https://github.com/Kaliber/scala-pdf. It is really easy to use, and you can define your own css or even use bootstrap.
This seems to be a very good solution : https://github.com/cloudify/sPDF
Otherwise, I highly recommend http://www.html2pdf.it/
Well javascript can be easy solution . You can use jspdf .
Since I am already implementing the old version of mongodb from alexbilbie, but the current mongoDB driver newer than 1.3 for php is not compatible anymore except I am migrating to alexbilbie’s new library called mongoQB, anyone has experience with that or could give a sample procedure to integrate this mongoQB to codeigniter? I am scratching my head currently…
I know I could also use a native implementation of mongoDB to php but I have already made many models based on alexbilbie’s old version and it would be better for me to change syntax names than to rewriting all the models
I have forked mongoqb and modified it a bit to integrate it with codeigniter. You can find the library here mongoci
I need to be able to write and read from a rtf file in iOS.
The omnigroup framework has the 2 classes i am looking for :
OmniUI/iPad/RTF/OUIRTFReader
OmniUI/iPad/RTF/OUIRTFWriter
I managed to build the frameworks but i cant figure out how to integrate theses classes in my own project.
I had the following frameworks to my project :
OmniAppKit.framework
OmniFoundation.framework
OmniBase.framework
I still get some undefined identifier such as :
RCS_ID("$Id$");
OBINITIALIZE
OMNI_POOL_START
Has anybody been able to use the omnigroup framework in your own project ?
Thanks,
Vincent
We do need some better documentation for this, but the TextEditor example app in OmniUI/iPad/Examples/TextEditor may be a good starting point for seeing how we include the frameworks in our apps.
In this particular case, you may prefer to pull out the OUIRTFReader class and any dependencies it needs from OmniAppKit and OmniFoundation into your project. updating the #imports to be "..." instead of <OmniThis/AndOmniThat.h>.
Perhaps you could try following the instructions given as part of this thread on the Omni Group forums. They appear to have been able to build the framework under the iOS 4.2 SDK.
I don't think you want the OmniAppKit framework, as that is just for the Mac.