Using a Watson knowledge-studio model directly - ibm-watson

Has anyone ever tried to use the model that has been generated by the Watson Knowledge studio outside of the Alchemy language API?
Or do I always need to upload the model to knowledge studio and from then on talk to the api?

Though I have always used my Knowledge Studio based models on Natural Language Understanding, I believe it's possible to deploy these models to Discovery and Watson Explorer as well for text extraction.
Check this documentation for details on how to deploy the model to different components.

Related

Salesforce's APEX language specification

I'd like to find out exact APEX language specification (with all that grammars, etc.) but I've spent half a day and ended with almost nothing.
I know that APEX is Java-based language, but compiling it's spec on my own from Java spec and exclusively APEX things will be a pain.
Is there any place where I can get APEX language specification?
For those not familiar with them - I'm looking for a such document http://docs.oracle.com/javase/specs/jls/se7/html/index.html for it.
Thanks in advance!
My understanding is that Salesforce haven't currently published such a document. Instead they want you to use the Tooling API to get the tokens etc...
See Grammar for creating an Apex parser
Depending on your scenario you might find the Apex Language Server a useful tool. It does the Apex parsing etc... behind the scenes for the current VSCode tooling.
Incidentally, the Salesforce StackExchange site linked above is a great place to ask Salesforce specific questions.
Actually, Salesforce does publish a detailed Apex developer guide.
The current 2017 document can be found here :
https://resources.docs.salesforce.com/208/latest/en-us/sfdc/pdf/salesforce_apex_language_reference.pdf
This document and it's location could be updated frequently, so you can also Google 'Apex Developer Guide' to get here :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm
Once here, click the PDF button to generate/view the latest PDF, or use the available content options to view online.

JSPs for a simple Project Reporting Web App?

I'm about to start developing a simple reporting tool for tasks in international projects. In a nutshell: using the tool, a project is created, defining team members, tasks, and work packages. Team members will be asked to periodically submit reports on the work they've done (related to tasks and/or work packages). These reports will be stored and accessed trough the tool.
I'll use Google App Engine (client requirement) and its datastore (using JDO). But I want to ask you for advice on the frontend part: JSP looks pretty messy for non Java developers... any other idea???
Thanks!!!
Seems like at the moment it's either java or python. However, you may want to look at Grails. GSPs might looks a little less 'messy'. I'm suggesting Grails based on your description of the project, that I suspect will turn out anything but simple later on. You might end up being glad for the mix of constraints and flexibility that Grails will afford.
JSP doesn't need to be any messier than other similar HTML presentation frameworks, it really comes down to implementation. That being said, it is old Java technology which means it's not being kept up to date, and finding a good single source of documentation is difficult.
If you don't want to use JSP, there are other frameworks you can use, you just need to make sure they're compatible with Google App Engine.
The new kid on the block is the Play framework, and that's a Java MVC framework similar to Ruby on Rails. You can find a tutorial here: http://viralpatel.net/blogs/first-play-framework-gae-siena-application-tutorial-example/
If you're going to use Spring, check out this question: Alternatives to JSP for Spring MVC view layer
For a front end developer, if the code is separated correctly, you won't have to know anything about Java since there shouldn't be any Java mixed in with the HTML. If that's your only worry, then I would just go with JSP to keep things simple unless the team has experience with another technology.

Possible to embed WinForms into a VCL Delphi application?

We have a VCL Delphi 2005 application, and would like to use DevExpress's XtraReports components, which is for .NET. Is it possible to use it without converting the VCL Delphi application?
Perhaps by converting the components as COM objects, or creating a WinForms application, and somehow embed the form into a VCL form?
Doesn't sound too easy, but just want to know what possible solutions are available.
Yes, its possible. You need to host the CLR from your Delphi app to do it.
There are some examples on MSDN on how to do this (the examples are using C++ though, so you would need to translate)
Or you could use the Jedi jclClrHost unit from the JEDI site. (see this question for some details)
Robo, you can use the RemObjects Hydra 3.0 components, to integrate Delphi and .Net technologies using plugins.
This is a bad idea. Yes you can do this. No you should not.
First look at Developer Express "Express Printing System", and Fast Reports. The first is a document/component print solution, the best one out there, and the latter is the best database reporting component set out there, which also handles non-database (code-based) reporting/printing with great flexibility and style.
I have first-hand experience using Express Printing System to print spreadsheet documents that are based on Developer Express Spreadsheet component, and the combination is very powerful, and easy to use. Both Developer Express and Fast Reports have very active development, and good technical support.

How to localize MVC with database backed resources

I have read most of the literature Google and SO provides on this (correct me if I've missed something).
What I am trying to do is to localize an MVC site using resources, I want the compiletime safety of strongly typed resource files (ResX) but the flexibility of the ASP.NET 2.0 Resource-Provider Model, or something similar to that. I dont mind doing some work but it seems all paths I've researched lead to a dead end.
For displaying localized text in views I can hack together a helper to pull resources from HttpContext.Get(Global|Local)ResourceObject but that gets me nowhere when it comes to model validation and scaffolding, I suppose I could subclass the attributes and provide data but since it means pulling stuff from HttpContext I doubt that is available at the time the attributes are activated.
Since the direction localization in MVC seems to be toward ResX files and away from the 2.0 Resource-Provider model I could try to inject myself in the classes generated by the ResXFileCodeGenerator with a custom ResXFileCodeGenerator to provide my own ResourceProvider but that is terribly hackish involving custom Visual Studio Addins and codegeneration.
So my question is basically, what's the story with flexible MVC localization?
The referenced literature below:
http://adamyan.blogspot.com/2010/02/aspnet-mvc-2-localization-complete.html
http://msdn.microsoft.com/en-us/library/aa905797.aspx
http://www.eworldui.net/blog/post/2008/10/ASPNET-MVC-Simplified-Localization-via-ViewEngines.aspx
http://ryanrivest.com/blog/archive/2010/01/15/reusable-validation-error-message-resource-strings-for-dataannotations.aspx
http://www.codeproject.com/KB/dotnet/ResXFileCodeGeneratorEx.aspx
A resource provider should work fine (i.e. http://msdn.microsoft.com/en-us/library/aa905797.aspx). I've been using this in some projects with a SQL Server backed provider, works fine. It allows you to use all ASP.NET localization features and all the validation attribute translations using resources as well.
Please try a dedicated NuGet package for localization of MVC applications with database resources:
Globsite.Globalization.Mvc
It is built on the native ASP.NET Resource-Provider Model, so it can be integrated with your application in the similar way like standard ResX resources.
What is more, the library allow you to generate Strongly Typed Resources just with a single click, if you need.
The project site with more details:
globsite.net/GlobsiteGlobalizationLibrary

linq to sql , model first development?

Is is it possible to use l2s in model first approach?
Here's the think i want to achieve:
I want to write my app in TDD manner, so I want to write some domain specific objects first and then base on that generate database model.
One solution is to l2s as DAL but and map linq generated entities to my custom domain objects(I Rob C. in Storefront app did), but i would like to use l2s objects directly
Other solution is to use T4 Toolbox: LINQ to SQL schema generator but it is based on visual team system IDE, which I don't have access to
Last solution i found is to use Close2Poco
Have you tried any of this solutions ?
Is it easy to achieve with l2s?
P.S.
Sorry for my english
Not with the current version. Visual Studio 2010 will support this. There's currently a preview release available from Microsoft here:
http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx

Resources