Pageable support for Neo4j version 4.0 - spring-data-neo4j

With the new 4.0 release of Neo4J a number of deprecated features have been removed, most notably the old {parameter} reference. If you have a Neo4jRepository with a Pageable query and upgrade your Neo4j to version 4.0+ you will get the following exception:
The old parameter syntax `{param}` is no longer supported. Please use `$param` instead (line 3, column 15 (offset: 168))
"return o SKIP {sdnSkip} LIMIT {sdnLimit}"
I'm interested to know if the Spring Data Neo4J team is aware of this and working to fix the issue. And also if they plan to support both styles of parameter referencing, or only $param going forward.
The only possible workaround today is to avoid Pageableand specify SKIP and LIMIT explicitly in queries.
/Klaus

Thanks to you mentioning this, we created https://jira.spring.io/browse/DATAGRAPH-1300 and this will get fixed with the next (service) releases.
Most of the heavy lifting gets done by Neo4j Object Graph Mapper.
This includes creating queries.
There are some places in Spring Data Neo4j we have not yet updated that create queries by themself and pass those on to the OGM.

It will be part of next week‘s Spring Data Moore SR 6. Since the Spring Boot starter is part of the Spring Boot releases, you need to manually upgrade Spring Data until there is an updated starter.

Related

Example of running a ray.rllib model in a JAX environment?

I am trying to train a DQN agent in an environment coded in JAX, but the initialization of the trainer fails when it first tries to reset the environment (with a not-valid JAX type error). Before getting into the debugging process, I thought of looking for example projects but I cannot find anything so i am wondering whether interfacing them is not possible.
Currently there is no example in RLlib right out of the box that supports jax envs. I think the main functionalities should be there, it was just never tested with Jax envs to figure out the feature requirements and the missing parts. I encourage you to give it a try and create a feature request for it on ray's issue tracker on github and if you have bandwidth give it a try and make a contribution. You can also let the RL team know about the missing features for enabling RLlib to work on JAX envs.

PostgreSQL-9.1 watching the schema changes

ALL,
I am writing a software using C++ which will connect to the database and perform some operations and then disconnect. The program will be using different DBMSs and it will be cross-platform. The software should check for the schema changes and if there is a table creation / modification / deletion, act accordingly.
One of the challenges I'm currently facing is this:
I'm trying to test the software on one of the old Mac computers with the PostgreSQL-9.1 installed. The newer versions of PostgreSQL supports writing the function which will look for the schema changes and notify the client. But this feature is available from the version 9.3.
Is there an easy and simple way to get such notification for PG-9.1 and 9.2? Or the only way is to work with the log file and do the polling of it?
TIA!
There's also infromation_schema which presents a standardized representation of the shape of the database, you could query that and compare before and after results.

Redmine Custom Calculated Fields

Using Redmine v3.3, is it possible to have a custom calculated field based on data in two other custom fields?
e.g. Duration = Date 2 - Date 1
Specifically, I am attempting to calculate the days between two dates as a performance metric. More generally, we will be looking to eventually using other custom calculated fields (simple additions, multiplications, etc.).
It would be preferable to keep this to the "vanilla" Redmine v3.3 without additional plugins but all suggestions are of course welcome.
Not in Vanilla Redmine as of 3.3, unfortunately.
It has been requested and there was some discussion about it. The feature wasn't rejected but nobody has gotten around to building it for Redmine. You can follow the discussion/development here:
http://www.redmine.org/issues/1712
A plugin is discussed in that issue as well but - as with all plugins - a thorough check will be required if it matches your stability/security expectations.
Such feature request has been filed 11 years ago (2008-7-30), while not yet enhanced.
At the moment, you can try Computed Custom Field plugin.
Although it shows "This project is no longer maintained", it stated that it is comptatible with latest stable version of Redmine 4.0.4 (2019-06-10).
Current version: 1.0.7 (2019-01-14)
Compatible with: Redmine 4.0.x, 3.4.x, 3.3.x, 3.2.x, 3.1.x, 3.0.x, 2.6.x, 2.5.x

Sitecore Items conversion from version 6.5 to version 6.6

I'm in the middle of developing a website using Sitecore 6.5 and when my company knew that Sitecore released version 6.6 they want to use the new version instead for the project, Is there a way to convert my Items created using sitecore 6.5(webform) to sitecore 6.6(mvc) so I wont redo my work?
General content items are not affected by switching to MVC .. it would be any presentation items that you would need to update if you did make a move to MVC. As #JayS says MVC is not mandatory and you can actually mix MVC and Webforms layouts within the solution so if you wanted to convert to MVC slowly over time it would be a possibility.
Just wanted to note that there is no such thing as 'recommended releases' any more (see: http://sdn.sitecore.net/support/versioning%20policy.aspx). Lots of customers already using 6.6 in production. The upgrade from 6.5 -> 6.6 should be straightforward (but this obviously depends on the complexity of your solution).
From my understanding, you do not need to use MVC in 6.6 if you do not want to. John West has a blog about the installer and how it enables MVC. You should be able to port your existing solution up to 6.6 relatively easily, but if you wish to take advantage of MVC you'll need to alter your solution.
Note, I believe that Sitecore has not marked 6.6 as a recommended release, so you may wish to inform your company of that.
UPDATE: Thanks to Stephen for pointing out that Sitecore has discontinued using the recommended release tagging. Some of their documentation online still needs to be updated regarding this :)

ilog jrules and database connection

I am using IBM ilog jrules 7.1 trial for doing a POC.I am using decision tables to check customer registration data.
my ilog decision table rule is -- If a customer's state is any of CA,IL,AL then set status as 'eligible' else make the customer as 'ineligible' for the offer.
In a happy path , I can add the state codes as domain literals and the rule will work fine.
But I need to load this domain values dynamically from a database ( mysql ) using some IRL code. Has anyone done a similar requirement like mine , It would be very helpful if someone can point me in the right direction.
One of the general principles of JRules is, that you should call the rules engine with all the necessary information if possible. From a performance perspective, accessing the database during rule execution isn't a good idea. You might also lose the ability to use your rule app in a clustered environment. Also, decisions are less traceable and reproducible because it's harder to know what's in your database at any given moment.
Depending on how often your data changes, I suggest you add these values as a second input parameter and retrieve the data before you call the rules engine. The second possibility is to use the dynamic domain plugin to load those values from the database prior to deployment. But you would have to redeploy the ruleApp every time the data changes. With the dynamic domain plugin you can specify a data provider (e.g. Excel, MySQL etc.) and populate your BOM with the attributes contained in the database. These dynamic domain values show up as attributes and can be synced from the BOM-view in rule studio as well as from the teamserver:
In WODM (the successor of JRules 7.1) this functionality is build in, it's possible that this plugin is not part of the demo and has to be added to 7.1 individually.