Is there a way to get the app config settings from inside my Trigger.io app without having to repeat the values in the parameters module? Specifically, I'm looking to grab the version number.
I've had success (today) with using forge.config.version
Example:
alert(forge.config.version)
This returned the value I had entered into the app's configuration.
It used to be available under forge.config in Javascript, but isn't anymore. For a while it wasn't available under this key (around v. 1.2). It has since reappeared.
Related
I have a test in JMeter to update details which have many query parameters
I prefer sending them in path instead of create line for each parameter,
The problem that I have more than 256 characters overall (~450) which make Path field not displaying the text content:
Is there a max parameter I can change? Am I'm doing something wrong or it's a bug/limitation in JMeter/Swing component?
As per JMeter version 3.3 you can scroll "Path" with keyboard or mouse, if you don't see a part of your query string - don't worry, it's still there, you can verify it using View Results Tree listener.
Another option is investing into a higher-resolution display.
Third option is looking into UrlConfigGui class, there is a following line there:
path = new JLabeledTextField(JMeterUtils.getResString("path"), 80); //$NON-NLS-1$
You can try playing with this 80 number, however it will require recompiling JMeter and given the nature of your request I strongly doubt you're capable of this
Since JMeter 4.0 I don't have this issue, I can write in field any number of characters and it's still visible.
I didn't find specific change in version 4, but there were UX improvements that may fix this issue.
I am trying to update my app in the windows store with a new version. I am getting the error message in the UI:
This package is superseded by one or more higher-ranked packages.
The version number of the new binary is higher than the existing one. Here is what the version numbers look like in the store UI:
How can I raise the rank of the new version so that the store accepts it? What are the elements to package rank? I searched online for this but could not find the answer.
Thanks.
A day after first having the problem, I submitted a package numbered 2.0.6, which I had tried yesterday, and it went right in.
I tried to delete the original submission as suggested above, before trying submitting 2.0.6, but couldn't find a delete button. Maybe by opening the older one up in the UI I made the UI realize it was older. dunno.
I have created a framework which I want to use in my OS X app. Since updating to Xcode 7 on El Capitan, when I try to command-click on the import statement, Xcode goes to the following view.
How can I get Xcode to display the Swift representation properly?
I've had it happen before, and my solution was to recreate every project file which I don't want to do again.
From my experience there are two possible causes for this issue.
The first one is that your framework can't be located. To fix this you need to go to target's Build Settings and add a path to Framework Search Paths either an absolute:
/Users/{user}/path-to-framework-parent-directory
or relative to project directory:
$(PROJECT_DIR)/path-to-framework-parent-directory
Another possible cause is that the path to your framework contains a space in it. I found that it doesn't matter whether you try to escape it with backslash ../Project\ Name/frameworks or take the whole path in double-quotes "../Project Name/frameworks". The result would be that SourceKit could not load the module.
Note that $(PROJECT_DIR) could expand to a path with a space in it and it would too result in the same error. So it looks like a bug in Xcode/SourceKit (I tried the latest Xcode 7.2-beta3 and the bug is still there).
My repository was on the second hard drive /Voluems/Macintosh HD/Repos. I just renamed the hard drive to HD, so the path looks like /Volumes/HD/Repos and the problem was gone.
Max S. answer pointed me in the right direction, however I was using the 'recursive' option for my framework path.
To get things to work I had to explicitly add a path to directly the framework in question's immediate parent directoy (as oposed to just having a path to one of its higher up directories with the 'recursive' option set).
HTH
I had this problem too and the other solutions didn't work. I finally figured it out in my case:
The target name cannot have a space in it either
To rename it:
Go to your project settings
Expand the target list column on the left if not already there
Click on the relevant target once (or press Enter or Tab when having it selected) and type in the new name without the space
Weirdly, just changing the name of my folder from 'Developer' to 'Development' fixed the issue from me.
Running Product->Clean, Product->Build is what worked for me.
In my case, I have created a framework for my SDK along with podspec for making it cocoa pod.
I had the same problem when i use my SDK and it fixed when I imported Foundation API to the file where I am consuming my SDK
import Foundation
Here is another potential solution - one that worked for me:
After importing the framework I never built for simulator, only for real devices. Swift Modules were not showing up, same error. Then I built for Simulator and it suddenly worked, I could see the Swift Modules.
The reason is that when I make my framework, I have a step that copies the swift modules from the iphonesimulator build to the universal build, but does nothing with the modules from the iphoneos build. So my guess is that this is why it didn't work.
Note: once I selected simulator and built it started working all the time, regardless of the build destination.
Using the v2 Box API, how do I set the most recent version of a file? This is with a premium account. I see that there is the /versions resource, for downloading a specific version of a file, and that now works. But, If I want to progmatically set an older version as the latest version, how do I do it?
Just to clarify, I don't want to upload a new version, I want to set an older version as the most current.
Reference: http://developers.box.com/docs/
We have not yet implemented this in the V2 API. It is on our backlog, and will probably be something we deliver in about a month.
It would be good to get your feedback on what your intended use of the API is. For example, if you do a GET on /files//versions and get an array of 5 versions (numbered 1-5). Then do a PUT on /files/ and specify that you want what WAS version 3 to now be the current version, should the update timestamp on V3 be changed to be ? Or should we just re-order the versions? Would it make sense for a call to /files//versions give you 3,5,4,2,1 as the order instead of the previos 5,4,3,2,1.
If you just want to work with Box's version history and perform the "Make current Version" operation (making an old version of a file the most recent version), the V1 API has a make_current_version method (http://developers.box.net/ApiFunction_make_current_version). An equivalent method will be made available in the V2 API soon, but you can use some V1 calls in the meantime.
I need to get all configuration settings (current role or all roles not matter) from Azure cscfg file. I want to do this because i dont want to get all values one by one via RoleEnvironment.GetConfigurationSettingValue(key) method.
Is there any way to do this?
Regards
The short answer is 'no' the RoleEnvironment does not support getting all the configuration setting values.
A slightly longer answer is that getting configuration settings from the role environment in the current implementation is done through a call to native code. The separation of Windows Azure Application from Windows Azure Configuration and the ability to swap settings on a running application is at the root of this somehow. This is done inside of msshrtmi.dll (which should mean something like Microsoft Shared Runtime Managed Interop). This is the only reference Microsoft.WindowsAzure.ServiceRuntime.dll has apart from standard references to .NET.
Here is the method call to native code (I have not gone further than this):
[MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType=MethodCodeType.Native), SuppressUnmanagedCodeSecurity, DllImport("", EntryPoint="", CallingConvention=CallingConvention.StdCall, SetLastError=true)]
internal static extern unsafe int modopt(IsLong) modopt(CallConvStdcall) RdGetApplicationConfigurationSetting(ushort modopt(IsConst), ushort*);
It might seem like a slightly round-about way of doing it, but if you want to get the configurations for all the roles in a deployment you can use the management api.
Kudu has an API for this.
You get to Kudu like via App Services > Advanced Details > Go
https://{app-service-name}.scm.azurewebsites.net/
or
https://{app-service-name}-{slot-name}.scm.azurewebsites.net/
The Url for the settings API is:
https://{app-service-name}.azurewebsites.net/api/settings or https://{app-service-name}-{slot-name}.scm.azurewebsites.net/