I would like get query execution time in response. I'm using OrientDB 3.0 with official driver https://github.com/orientechnologies/OrientDB-NET.binary for .NET.
How can I do that?
c# together with .net core is not supported, they stopped.
When I studied the project, I was happy. When I looked for support and saw all the issues, wrong links, scattered groups... I decided to go for neo4j.
I think OrientDb is good, but the documentation and links sucks.
I downloaded https://github.com/orientechnologies/OrientDB.Net and it works except I had to change something. I could connect but if you look at:
throw new NotImplementedException(); then my pants went off.
In OrientDBBinaryConnectionStream replace
if (ConnectionMetaData.ProtocolVersion < 27)
ConnectionMetaData.UseTokenBasedSession = false;
with
ConnectionMetaData.UseTokenBasedSession = true
Success with this unfinished business and keep me informed
Related
In ASP.Net Core 2 web site we are using the latest (4-alpha9) MiniProfiler to see the SQL being generated.
Beside generated SQL, I also see a lot of calls to Connection Close()/Connection Open():
They are fast and logging them seems useless to me.
Can I filter them out?
Some of them can be filtered out using options.ExcludedMethods.Add("ConnectionOpening"); but not all of them.
Also, these calls seem to ignore options.TrivialDurationThresholdMilliseconds = 3; setting, that I also tried.
Are there any other options?
These timings cannot be turned off in the version you're using. We added the timings because they help show getting a connection from the pool, delays there, etc. But, I totally see how they can be noisy for a ton of use cases and agree this would be annoying.
I've just added an option to control this in MiniProfiler. If you grab latest from MyGet (the build should finish shortly) or NuGet later this week, you'll be able to use:
options.TrackConnectionOpenClose = false;
Having progressed my initial test of getting c#, R to work in our MVC web environment. I was trying to get the following code to work (taken from -> http://rdotnet.codeplex.com/)
To investigate this so far I have launched R from a cmd prompt and proven that I can enter these statements in R and get results, so I know that R is working. I have also run a very simple "Hello World" example proving that I can launch the R engine and get results back.
Then I wanted to go to a more complex question and I thought of Doing the Code from the codeplex.com page. To do something a bit more worthwhile than saying hello...
This is the snippet below. The Engine has already been created and I know is functioning from a previous test.
NumericVector group1 = Engine.Evaluate("group1 <- c( 30.02, 29.99, 30.11, 29.97, 30.01, 29.99)").AsNumeric();
NumericVector group2 = Engine.Evaluate("group2 <- c( 29.89, 29.93, 29.72, 29.98, 30.02, 29.98)").AsNumeric();
// Test difference of mean and get the P-value.
// what is in testResult
var testResult = Engine.Evaluate("t.test(group1, group2)").ToList();
at this point it errors and I get the message "Error in the application" and the following stack trace...
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>c__Iterator4.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)
So my multiple questions on this are: -
is the example in the codeplex page Wrong? have I not done something? What does it mean? I feel that "error in the application" is not helping me find what I should do... Should I try some other examples or is the opinion of Dieter Menne in this stack overflow question the prevalent stance "unable to connect to R from c#" and I should move to the COM approach found here http://www.codeproject.com/Articles/25819/The-R-Statistical-Language-and-C-NET-Foundations
Although I am more interested in the mathematic and statistical rather than graphing.... I do want to make RDotNet work.... in c#
To answer your several questions:
R.NET is a work in progress, a lot has happened in the past 3-4 months and is currently happening, so I would not base my judgment solely on stances in previous stackoverflow posts that are many months old, when the work had been less active for quite some time prior to that.
Technically, and more to the point of your question: usually the ParseError with 1.5.5 occurs when forgetting to call engine.Initialize(). I agree the lack of message is irritating; this is being worked on for the next release.
There may be inherent issues with calling R.NET from a 'Web' environment. Very unfamiliar with is, but there are several reports: most recently https://rdotnet.codeplex.com/discussions/463226, and in particular https://rdotnet.codeplex.com/discussions/462947 sounds a lot like yours. I have successfully used R.NET as a back-end in R to Shiny, but cannot comment on ASP.NET.
Documentation and latest developments:
To get started, there are several sample projects on a git repo as I started an Onboarding guide. It is linked from the R.NET codeplex site. If this is where you got it and nevertheless have this ParseException issue, then let me know.
I've focussed my recent R.NET recent contributions around usability and robustness. I can propose, if your issue still persists, that you try to get the latest branch named 'jperraud' to compile R.NET. Happy to get feeback. The 'Onboarding guide has a branch https://github.com/jmp75/rdotnet-onboarding/tree/rdotnet-dev
Hope this helps.
I'm working on an asp.net content management system and we need to have Flesch-Kincaid grade level stats available to the users. I've done quite a bit of searching and I haven't found any viable ways to implement this. The closest I've come is the MS Word ReadabilityStatistics Property. I can get this to work great in a console app but support for the dll in asp.net isn't supported and I get an access denied error whenever I try to leverage it from my asp.net application. I spent 8 hours the other day trying to get that to work from asp.net with no luck.
Does anyone know of another dll or method to get a FK value? We do tell our content users that the FK value is from MS word, so that'd be best, but really anything which is close would be appreciated at this point. Even an js version would be adequate.
If you're happy translating PHP, the work has been done for you.
I am relatively new to FB development, but I have managed to do what I wanted, which was to get a list of friends, and from each of them, get their work history. I accomplished this by using Facebook's own C# SDK, and using the Get method on each of my friends, basically doing: _fa.Get("/").
This worked perfectly up until a couple of days ago, where it suddenly stopped working, and now I no longer have the work history (and education for that matter) available to me in the JSONObject which is returned from the Get method. One other thing of note is that a couple of my friends who installed the app I am developing (as a means of testing), do return their work history, but other friends (who have not installed the app), and do have a work history open (which I can see if I look at their profile by browsing into it with my browser) do not return it in my Get call...
The obvious explanation is that FB changed something, and now applications can no longer access this information unless installed on a specific user profile (hence the odd behavior).
Has anyone else encountered the same thing? Am I doing something wrong?
Any help would be appreciated!
Many thanks,
As you said, the answer appears obvious and is probably some change in default privacy settings that have been rolled out. Note that Facebook has introduced a couple of new features this week, most notably the "places" stuff. Most likely work history is not shared anymore by default. You probably only had access because the work history was publicly visible anyway.
Update
Seems to me, the best places to check for changes is the developer blog and the developer roadmap.
Ok,
I was eagerly awaiting the release of subsonic 3.0 to use as my low-level data layer, and now its out. I'm currently using the ActiveRecord templates (having tried both the repository and advanced templates) and I have one HUGE request and a few questions:
Request: Other than bug fixes, Rob please spend the time to provide documentation. I don't mean 5 examples, I mean API complete documentation. Here's why:
I'm testing subsonic by writing ASP.NET MembershipProvider and RoleProvider classes and simple questions continually slow me up using subsonic:
Q. Assuming I have a class 'User' and I update/save/delete a record using
user.Save();
I need information on how to get success/failure? Do I look for an exception on failure or can I get a count of 'affected' records (old school?)
Q. If I get an exception, which exception(s) can I expect?
I'll have more issues, but I really believe a good functional API documentation would solve the problem.
If the answer is 'read the source code', then I'm sure you're going to chase quite a few developers away from subsonic. I really want to use the library, but the point is "use" the library, not reverse engineer it.
-Jeff
Q. I need information on how to get success/failure? Do I look for an exception on failure or can I get a count of 'affected' records (old school?)
If it doesn't throw an exception then it's worked
Q. If I get an exception, which exception(s) can I expect?
You can expect a DbException
We don't use custom exceptions. I spent 5 weeks writing docs - so yah I did spend some time on this. You could also find your answer there as well: http://subsonicproject.com/docs
3.0 is a little too buggy for me so far. I think I am going back to 2.x for now, thanks for all the hard work though.