adding item to dynamic list (apple shortcuts) - ios

I have an apple shortcut that selects the next items from my calender and shows me a list to select from. When I select an item I'm shown the time it takes to get to that appointment and gives me the option to plan a route (using maps or google maps). This works great.
I would like to add a static address to this list to always have a "speed dial" to plan a route to that address (home for example). Is this possible?

Related

Populate list based on selection from separate list

There are a few topics that I have found while searching for an answer to this, but nothing that specifically helps my situation. Here's what I need to do and some background.
Web application has a field called "Requested by" that automatically inputs the logged in users name from Active Directory. This cannot be edited.
User selects a store location from the first list, this location is where the requested user will be setup for.
Second list needs to then populate with a list of potential approvers by first seeing which store was selected, then grabbing a list of names from an Active Directory group called "Store Managers"
Example
Bob Jones is requesting a new logon for Sally Smith who will work at Store 1.
Bob selects "Store 1" from the first dropdown list
List 2 populates a list of approvers who are in "Store 1" group AND "Store Managers" group.
Can someone please tell me where to start on this! Any help is very much appreciated!!
Within the function that is called whenever the first drop-down menu changed, ie. a new value has been selected (such as selecting a store), you can have a simple if-else structure that, depending on the newly selected drop-down menu item, checks for any valid values within your Active Directory.
That is as specific as I can be, seeing as you haven't posted any code along with your question.

Chart of Item Types in VSTS

I'm trying to convert a small team to the benefits of using TFS with Visual Studio Online. I've created a custom process and custom work item type. I've also adde a few 'custom' states for items (eg: 'In Test').
Is it possible to create a query/chart similar to below, with a count of each item type - as below?
Create a new query to retrieve necessary work items
Go to your team project Home page (e.g. Home=>Overview)
Click Edit Dashboard=>Add Widget
Select Char for Work Items=>Add
Click Configure to configure this widget
Select corresponding Query
Select Chart type (e.g. Column)
Select State in Group by list
Click Save
Yes, VSTS supports dashboards that you can easily add widgets to. You can add dashboards on the Home tab by clicking + New in the upper right, and edit with the checkmark in the lower right. Have a look at the Chart for Work Items widget. Given a query of work items, it supports various chart visualization that you can configure and show.

Does Google AdWords support automatically appending a different query string to a campaign's destination URLs for ads and sitelinks?

I have an existing Google ad campaign that geotargets a particular region. The destination URL of all the ads and sitelinks have the same query string appended to it ("area=astoria").
I now need to copy this campaign to 50 other campaigns, each of which will target a different region. Each campaign will have a different value for the area key, so for instance one campaign might use "area=manhattan" and another "area=bronx".
The campaign I'm cloning has many ads and sitelinks, all of which need to have the query string changed. I know how to manually change the destination urls, but it's an enormous amount of busy work...
As a workaround, is there a way to automatically append a different query string to all the destination URLs for ads and sitelinks in a particular campaign in Google AdWords?
To answer my own question, the answer is to use a Tracking Template on the Campaign level.
To do this, click into the Campaign you want to edit and click on the Settings tab. Then open the "Campaign URL options (advanced)" section and change the Tracking URL to something like this:
{lpurl}?area=whatever
You can click the TEST button to make sure your ads work. Your sitelinks should also have the same query string appended to it. (Note that a Campaign-level Tracking Template can be overridden at the Adgroup-, Ad-, or Sitelink-level, so those more specific Tracking Templates would have to not be used for a Campaign-level Tracking Template to be used.)

Algolia search with attribute name

Data on algolia is like this
objectID:3464542
Type:"Accelerator"
Country:"Germany"
City:null
Name:"ProsiebenSat1 Accelerator Batch #8"
I want to search any name which are in Germany. How I do that?
When I do Contact.raw_search("Batch"), I get all records even whose name include this even non-German. I want to get all those which are of specific country.
To do so, you'll first need to put the Country attribute in your attributesForFaceting list. You can do that using the REST API, your client of choice or from the Algolia Dashboard. Using the later one, go to the Indices page, select your index and click on the Display tab. Here, you could add your Country field to the Attributes for faceting list. After that, click on save and your index will be rebuild.
Now, your index is ready to filter the search queries according to the country you want. To perform the search query, you can use (using the Ruby client):
Contact.search("Batch", {
facets: ["Country"],
facetFilters: ["Country:Germany"]
})
For more informations about faceting, here is a quick intro from the FAQ and a more detailed guide in the documentation.

SurveyMonkey: How do you determine a survey's ID?

For a given survey, how do you determine its survey_id for use with the SurveyMonkey API?
A list of all IDs is returned by the API method get_survey_list, and you could subsequently call get_survey_details on each survey to determine which one is the intended one, but that seems needlessly complicated. There has to be a way to get a survey's ID from the My Surveys page, right?
Edit:
Whoops, get_survey_details isn't actually necessary, since get_survey_list can take a fields parameter that includes the survey's title.
If you want to get the survey ID via the web page you can:
Right click on the survey in the "ALL SURVEYS" surveys view, and press "Inspect Element" or "Inspect" depending on your browser.
In the bottom of the browser, you will see a highlighted block that starts with:
<a href="/summary/...
Scroll up a few lines until you see a line that starts with:
<tr class="survey-row" id=`
The number that follows id= is the survey id, which you can then use in the API.
Nothing much to add to what Tony & Miles said, just that my UI form contains these fields:
1) An Age limit - eg the past 365 days
2) A keyword in the title - typically all the surveys for one client have that client's name in the title. Hint: if you can be organised enough to enforce a convention, and put keywords in the nickname, the nickname is what the API looks in for Title, although what the user sees is the other title.
3) A start date to get responses only after a start date - the first day may have been only a test.
4) A combobox with all the matching surveys is presented showing the title, number of respondents, date created and date recently modified, pretty much the same as what appears in the SurveyMonkey web UI. That's where they pick the one they want.
HTH
Patrick

Resources