How to Create a new Repository in crx/explorer/ - aem

Am trying to use the crx/explorer to create a new workspace. Can any one help me how to use this UI for the creating a new workspace.?
Error while creating workspace 'test.workspace': javax.jcr.UnsupportedRepositoryOperationException: OAK-118: Workspace.createWorkspace

google search FTW.
Workspace Management (creating/deleting workspaces) is not implemented yet.
http://jackrabbit.apache.org/oak/docs/known_issues.html
https://issues.apache.org/jira/browse/OAK-118

Related

how to export then import a powerapps solution that has a canvas app using a custom component

I cannot seem to export then import a powerapps solution that has a canvas app that references a custom component. I'm using the powerapps portal to create the solution, where I add the canvas app that uses the custom component. When I export, download, and try to import the solution at this point it fails with the error:
error code 8004F036: The dependent component CustomControl (Id=xxx) does not exist. Failure trying to associate it with CanvasApp (Id=yyy) as a dependency. Missing dependency lookup type = EntityNameLookup.
If I first go to the solution and click 'add required objects' it will not add the custom component. If I manually add it, it shows it as added, but still after exporting, downloading, and importing, I get the same error. It would be great if someone knows the proper steps to get this working.
You will have to do this in 2 steps.
custom control (either you created on or you used from some 3 rd party) should be deployed (imported) to Target system. If it is managed solution from 3rd party then you might have solution.zip file use this and deploy to target system. If you created this custom control, then create separate solution and just add your custom control and deploy this solution.
Once custom control is imported, then deploy/import your powerapps solutions.

Creating moodle plugin to accept REST calls and create activities/notice/files

Im quite new to moodle development. Im trying to post activity/notice to a selected course. I could not find any webservice for creating activities within a course. Is there any way i could create a plug-in where i could make a REST call to the plug so that it would create a notice?. An example would help allot.
STEP 1
To create local plugin you can follow following folder structure according to Moodle documentation (https://docs.moodle.org/dev/Local_plugins)-
local/
yourplugin/
db/
access.php
install.php
install.xml
lang/
en/
yourplugin.php
index.php
settings.php
version.php
Meanwhile, creating local plugin does not always really solve all problems as there are limitation depending what you really want to achieve.
what worked for me was editing //moodle_dir/course/modedit.php file, and i was able to make REST Call to add scorm activity to any course i want.

Creating new form in moodle

I have created a new module in moodle from the link New Module. I have installed that as well and it is showing up in the Administration ->Activities.
How to add a new form against that module to get the user inputs?
Please check the mod_form.php in the documentation. This is used to add an instance of the new activity. Please check the existing modules also.

Google App Engine (GAE) WEB-INF/lib order

Hey guys i'm working on a project with Google App Engine. To get Data from my devices we're using MQTT. The org.eclipse.paho.client.mqttv3.* library starts a Thread with "client.connect()".
After some researches i found that you cant just simply create Threads when working with GAE. Following error is shown:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
So i continued searching and someone told to use following code instead of a "normal" Thread:
Thread monitoringThread = ThreadManager.createThreadForCurrentRequest( new Runnable() {..}
So i decompiled the paho library, looked up where the Thread is created and changed it.
I created a new class exported it as mymqttclient.jar
In eclipse i changed the order of my build at Properties -> Java Build Path -> Order and Export so mymqttclient.jar is loaded before the mqtt-client-0.4.0.jar So that it will use my created function with the monitoringThread.
But how can i change the order of the .jar's in the web-inf/lib ?
Thank you very much for your answers, i couldnt find something useful until now.
Firstly there is no need to decompile any of the Paho code it is all available from here.
Since you can now get the clean source, why not just modify the original class and rebuild the jar file, then you don't need to worry about messing with the Classpath to get your class to load first?

How can I create new Resource in Moodle?

I have to create new Resource in Moodle (currently available resources are Book, File, Label etc). I know how to create an activity module in Moodle. I think both activity and resource are created in similar way. Then how can I align the newly created resource below the RESOURCES section(while adding the activity/resource in course).
Please help me to find any link/suggestion regarding to create resources in Moodle....
In your plugin's PLUGINNAME_supports function, just return MOD_ARCHETYPE_RESOURCE when asked about feature FEATURE_MOD_ARCHETYPE.
See example at the start of the mod/page/lib.php file -https://github.com/moodle/moodle/blob/master/mod/page/lib.php