schema.default=none not working - titan

I set:
schema.default=none
at the bottom of titan-cassandra-es.properties and restarted with bin/titan.sh start.
Then the following happened:
gremlin> g.addVertex(null,[name:"stephen"])
==>v[2560256]
Shouldn't it complain that the property key label 'stephen' hasn't been defined?

Related

AudioKit AKWaveTable initialization error

I am having a weird problem initializing AudioKit AKWaveTable node.
I am trying to change the sample rate of a sound on the fly and I thought AKWaveTable would be the best option to do this.
According to the documentation, this initialization function already sets default parameters for most of the parameters, so I would only need to give it a filename:
self.file=try AKAudioFile(readFileName: fileName)
self.player=AKWaveTable(file: self.file)
I get the following error upon running app:
2018-10-21 17:22:29.276450+0200 AKSoundPool[1479:44079] [default]
Unable to load Info.plist exceptions (eGPUOverrides) 2018-10-21
17:22:29.570701+0200 AKSoundPool[1479:44079] [AudioHAL_Client]
AudioHardware.cpp:666:AudioObjectGetPropertyData:
AudioObjectGetPropertyData: no object with given ID 0
AKWaveTable.swift:init(file:startPoint:endPoint:rate:volume:maximumSamples:completionHandler:loadCompletionHandler:):218:Parameter
Tree Failed 2018-10-21 17:22:29.607702+0200 AKSoundPool[1479:44079]
[avae] AVAEInternal.h:70:_AVAE_Check: required condition is false:
[AVAudioEngine.mm:393:AttachNode: (node != nil)] 2018-10-21
17:22:29.609506+0200 AKSoundPool[1479:44079] required condition is
false: node != nil
I also tried setting all of the other parameters to 0 but I get the same error, parameter tree failed.
Any hints? Am I on the wrong track?
Thank you
Try disabling App Sandbox in your project configuration.
In XCode it's under "capabilities".
I had the same issue and my app was in a sandbox where some key features needed for AudioKit were disabled.

How to log useful error if scala play config files missing?

Is it possible to give a better error message if the config filename is mistyped when using scala play.api.Configuration
e.g. if I run my application with sbt run -J-Dconfig.file=conf/my-config.conf but the file is actually called my_config.conf, there is no error raised about file not found, but instead the first time the error is raised is when applicationConfig.has(configPath) is called, at which point it is not clear how to determine programatically the difference between a missing config value in the file or a missing config file.
Here is what I do:
Wrap the configuration in a Config-Class.
Initialize that class on startup.
Log all property - values.
This will log exceptions on Startup. Here is an example: AdaptersContext.scala
As a remark:
If you have your config-file in the conf directory (on classpath), use:
config.resource=demo.conf

MATLAB 2015b (academic version) connector error when starting simulink

Whenever I try to run a simulink(.slx)-file I get this errors in my MATLAB command window:
Error using connector.ensureServiceOn
Error starting MATLAB Connector. Please check that port 31515 is available.
Error in slmsgviewer
Error in slmsgviewer/PersistentInstance
Error in slmsgviewer.processRecord
Error in slsfnagctlr
Error in slsfnagctlr
Error in slsfnagctlr
Error in slsfnagctlr
The simulink file does open but when I try to run, it just says "ready" without doing anything.
The solution that I found from people suffering the same problem was to add a new environment variable:
variable name: "JAVA_TOOL_OPTION"
variable Value: "-Djava.net.preferIPv4Stack=true"
After adding this environment variable and restarting I tried it again but I got the same error.
I also tried "JAVA_TOOL_OPTIONS" and "_JAVA_OPTIONS" with the same value but nothing seems to work.
Is there another way to get rid of these errors?
try to install jdk-7u79-windows-x64, it solved my problem!

specman error - Specman run reached the tick_max configuration limit

I am running a specman environment and I get the error:
"Specman run reached the tick_max configuration limit(10000) without a call to stop_run() "
How can I debug this error?
I guess I have some kind of an unresolved loop with no time progress. How can I find the place (file and row number) where the simulator is stuck?
I have tried to use break on error - but it does nothing...
Thanks
In addition to the previous comment about progressing of the simulation, you may want to try increasing the no. of ticks by the following command:
config run -tick_max=MAX_INT
and then hitting the interrupt button or Ctrl C when simualtion stop progressing and check the stack in specman debugger.

Felix Dependecy-Manager not creating GoGo-Command

I am trying to create a GoGo-Shell-Command using the Felix-Dependency-Manager (Version 3.2.0) without Annotations.
As far as I understand, the gogo-runtime uses the whiteboard-pattern and scans for services with Properties using the keys CommandProcessor.COMMAND_SCOPE and CommandProcessor.COMMAND_FUNCTION.
In my case, the bundle is started, the service is registered with the correct properties but my command is not listed under "help" nor does it work when I try to call it.
The following code registers the service within the BundleActivator (DependencyActivatorBase):
Properties props = new Properties();
props.put(CommandProcessor.COMMAND_SCOPE, "test");
props.put(CommandProcessor.FUNCTION_SCOPE, new String[] {"command"});
manager.add(createComponent()
.setInterface(Object.class.getName(), props)
.setImplementation(MyConsole.class)
.add(createServiceDependency()
.setService(MyService.class)));
The following bundles are listed with lb-Command when running my code.
org.apache.felix.gogo.command
org.apache.felix.gogo.runtime
org.apache.felix.gogo.shell
org.apache.felix.dependencymanager
org.apache.felix.dependencymanager.shell
mybundle.service
mybundle.api
mybundle.console
Development is done with BndTools.
Am I missing something here?
First of all, your assumption about how to register gogo commands is correct: a whiteboard pattern is used and the scope and function properties determine the commands.
You did not post the code for MyConsole. Does it actually contain a method called command? If not, that could be the problem.
Another potential problem could be that you did not actually add a Bundle-Activator line in your manifest.
If that's not it, use the dm notavail command to see if there are any unregistered components (because of missing dependencies).