How can I add an XQuery function library to a BaseX database I have running in standalone mode via the command line? Specifically I want to add the FunctX library which I have downloaded the functions into a text file.
Related
My .py files in Robot-Framework allows me to introduce breakpoints but .robot file it doesn't allow. How do i introduce and toggle breakpoints in my .robot test files for debugging?
Nohow - you can't add a Pycharm breakpoint in a .robot file.
The reason is your test script is not a real python code. When a run is started, Pycharm runs the entry point of the robot module - which reads the file's text, parses it in its internal structures and "converts" to python code (in quotes, as it really doesn't convert anything, makes RF objects and constructs a flow b/n them).
The actual python code that is ran is in the robotframework package (and any other py packages & modules it imports). For both the framework and Pycharm the .robot file is just a text file - thus no breakpoints are effective.
You can add a breakpoint inside a py file - one of the framework's, or in a library of yours, and it will be honored.
Or, you can use the Debug library - once it hits the point where you've put the Debug keyword, it gives you an interactive shell with full context at the current point (e.g. you can CRUD variables, or run available keywords).
It is possible to add breakpoints to both .py and .robot files with Robot Framework Language Server.
There are plugins for both PyCharm and VS Code.
I seek for a way to aggregate some XQuery files to package file (like JAR file in java).
I want to insert it to another project and use it as an external black-box code.
I'm using Saxon XQuery processor.
Thanks.
Saxon doesn't have this capability for XQuery. It does so only for XSLT. You can however include the source query modules in a JAR file and resolve their references to each other when compiling the query.
I have developed a plugin for Adobe Illustrator and I am trying to use sqlite3 or better-sqlite3 node packages instead of mySQL. But I am getting following errors on Mac and Windows.
Windows (using sqlite3)
Uncaught Error: A dynamic link library (DLL) initialization routine failed.
Mac (using better-sqlite3)
Uncaught Error: dlopen(...): no suitable image found.
Did find: [...] code signature in (...) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
Is it possible to use sqlite3 or better-sqlite3 in Adobe plugins?
Welcome here,
This is not possible because Sqlite3 and all its wrapper uses Node C++ Addon and not js package. C++ addons are not supported by CEP as per the official word.
Link for the reference
https://github.com/Adobe-CEP/CEP-Resources/issues/70
Is it possible to convert a pentaho job to jar file? if it so please tel me how? i tried to convert a job to jar but failed due to the class problems.
In JAR, we aggregate many Java class files. But in PDI Jobs, the files are in XML files. Pentaho uses its DI Engine to read these XML files. Hence we cannot create JAR files out of an XML file.
You can run an ETL job from java code, using kettle's api. You can't convert a job into a jar.
If you launch a job or a transformation in batch mode, you have to use the scripts kitchen or pan (with sh or bat extension dopending on the OS). Actually those scripts run a java program inside, using the parameters that you pass to it. One of the parameters has to be the path of the file .Kjb (extension of a job), which is a regular xml file. So the xml files are necessary, but you can launch directly the java command (the one inside of the sh/bat script) passing the required paramenters to it. To see which parameters it needs you will have to do a reverse engineering work on the kitchen/pan script, which are really simple and short inside.
I created a Qt static library following the instruction here:
http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application
Then I tried to link the library with my own (non-Qt) application, and GCC complained about undefined references. Examining the library content using Linux nm utilty I found the function I intend to call has cryptic letters added before and after it.
Reading the instruction from the instruction link more closely, it suggests that I need to use use an import define so the right Qt macro can be called to import the function (which I assume renames the function to match the naming scheme in the library). But I don't really want to introduce Qt dependency in my main application.
What I really want to do is to build a UI frontend library with Qt, and my main application will simply link to it without having any Qt dependency. Is this possible? Or am I using Qt in an unintended manner?
Thanks.
It sounds like you're running into C++ namespace mangling. Try adding an 'extern "C" {}' block around your libraries export.
The main point of the QLibrary::resolve function is to provide an abstraction layer so you don't have to worry about the win32 command or the linux command for resolving a symbol. It shouldn't be necessary to use a library created with Qt.