SpeechKit/SpeechKit In Extension App like Custom Keyboard - keyboard

I have tried any posible way of importing this framework in my custom extension keyboard, but I have failed all the trials that I think is possible.
1st.
I have tried it in full swift code, importing that framwork using bridging header. But, Most of its command isn't compatible with swift, got an error in enumeration -> NSUInteger in ObjC -> swift always complains, can't even use convert type.
2nd
I have also tried full Objective-C coding. Implementing its function was easy task. But Fails to use this framework. Can't import it in extension App. I have also use bridging header but got an error. "File not found" even though if you do command click, you'll be jumped to its framework. (means indexing is success. and xcode find it clear.). In the end, I think this framework doesn't work with extension, so far.
so, Any idea of how to implement this correctly? advice will be appreciated. Thanks in advance :)

Related

NetSuite 2015_2 PHP-SDK Two Factor Authentication

We currently have Two Factor Authentication working in the 2017_2 release of the NetSuite PHP Toolkit, but we have some code that has broken due to changes between 2015_2 and 2017_2. It seems that in 2017_2 it is also far easier to set up Two Factor Authentication.
Looking at the code, however I do see references to TokenPassport and TokenPassportSignature, which tells me that I should be able to get TBA working in 2015_2, which would give us time to figure out the rest of the issues.
My question is: How would I actually go about that? I have set $service->passport to the generated TokenPassport object. I know that my TokenPassport object works in 2017_2, and I assume it would be the same, but I don't know for sure, and I can't seem to find any information up on Elgoog.
ETA: I have seen examples of this working in 2015_2 in Ruby, but not in PHP. The backend is there, but I can't seem to be able to do this in PHP, and the Ruby examples were only snippets.
Okay, so I solved this for myself, but I may not have done it the "right" way. Here's what I did:
I took the makeSoapCall and setTokenGenerator methods from the new instance of NSPHPClient.php, and I added them to the OLD version. I had to modify the setTokenGenerator method to not require an instance of iTokenPassportGenerator, but I could have just as easily copied over that interface as well.
Basically, all that needs to happen is that we need to send the tokenPassport header, which the older version of the SDK can generate but doesn't have a method to actually send that I could find.

Resolving warnings when building Azure SDK 2.3 project?

I'm getting 110 warnings in my build after installing Azure SDK 2.3 that I don't recall seeing before. They are all for the file "Microsoft.WindowsAzure.targets".
An example of one such warning is:
The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'CloudToolsVersion'.
Has anyone else encountered this problem or know the right way to fix it?
Well, it looks like I just needed to close any open editors for msbuild project files to get those to disappear. Other answers I found suggested on the web were to disable schema validation or to extend the schema myself.
Very scary! From your solution and hints from other similar questions, I think I know what's going on: When any build script file (such as a .props) is open in a text editor, it turns on /validate. This is used to see red wavies in the editor and gives the warnings when the project is loaded by any MSBuild task. The schema holds the various element used by the MS targets infrastructure, and doesn't know anything else. I'm not sure what good that is, but there you have it.

Intellisense not working properly for SPOCK framework in Eclipse Indigo

On Pageclasses (e.g LogInExample.groovy) user-defined or inbuilt methods or variables are not auto populated due to which it seems difficult to code.
For example when we write Checkbox. after putting this dot inbuilt methods should be auto populated which has not been done. Refer the attached screenshot for more information.
Intellisense not working properly
Intellisense is working fine for me in Keplar 4.3. Perhaps you want to try an upgrade of your IDE.

webstorm autocomplete for require(.json)

Webstorm is pretty smart when providing auto completion for node.js modules.
unfortunatelly for some reason if the required module is a json file i.e
var settings = require('./settings.json);
it does require it and build an object with the data but, no autocomplete is provided in the editor.
Anyone have any solutions for that?
Thanks.
Looks like it was a bug, logged as WEB-10568.
The issue has been marked as Fixed since this answer was originally posted.

Screen capture on failure (Mac OS using Cucumber/Capybara/Selenium-webdriver for Android & iOS)

There seems to be a lot of information on screen capture on failure when using Selenium-webdriver however a lot of it differs and all (of what i've tried) does not work. I am testing on iOS and android using Capybara/web-driver. I understand that when using Capybara it has the capabilities of screen capture by accessing the underlying selenium-driver for example page.driver.browser.save_screenshot('file.png').
An example of my code:
After do |scenario|
if(scenario.failed?)
page.driver.browser_save_screenshot("html-report/#{scenario._id_}.png")
embed("#{scenario._id_}.png", "image/png", "SCREENSHOT")
end
end
The above correctly creates the HTML report however the screenshot is missing. From doing a bit of research it seems like it may be because I am using a scenario outline and its not supported? At least thats what ive found with Watir-webdriver.
Has anyone actually managed to get this working? Any help appreciated, thanks.
I have similar code working with a Scenario and am about to refactor to a Scenario Outline (so I haven't tried a solution I found here). HTH.

Resources