Using media query to manage media item picker selected collections? - mpmediapickercontroller

In the iPod Library Access Guide, at page 16 (where it explains about media query usage) there is a description like this, after describing the usage for MPMediaQuery:
You can construct your own collections as well. This can be useful,
for example, for managing the selections a user has made with a media
item picker. Note, however, that collections are not mutable.
Filtering and grouping a mediapicker selected item collection - is this really possible?
I looked at the guide thoroughly but could not find a sample for this...
Any help is appreciated - thank you very much in advance!

Related

Grouping raw datasets in a kedro visualization

I am looking for a way to group all of the raw datasets in a kedro pipeline visualization into one collapsible/expandable "node", similar to the way that namespaces are collapsible/expandable. In order to do this with a namespace, however, it seems that you need a function with inputs and outputs, which obviously would not be applicable at the raw data stage.
Here is my current visualization:
enter image description here
I would like datasets 0-5 to be grouped together into an expandable "node" called "raw data".
I have searched stackoverflow, the kedro docs, and the community forum on github for ways to accomplish this, without finding much that is relevant. The closest concept I found is namespaces, but again it seems these need a function, input, and output.
So the start and the end of namespaced visualisation will not be collapsed, it's not something that's configurable

Two different Autodesk Forge apps are running same code

Please, it looks to me that I am asking a very basic question; however I could not find an explanation yet. I used .NET and both exercises for view models and modify models work great individually. I mean that I found no problems testing view models when this one was the only example available or modifying models when this one was the only example available. However, when both examples are available, doesn't matter which was the example selected and executed from inside Visual Studio that always goes to modifying models. Please notice that I created two different apps (obviously with different ClientId and secret key). Maybe not quite a good understanding of Autodesk Forge apps? Any help to understand what is going on?
Thank you very much!
If the two projects are in one solution you can specify which one to run as the default project as well as several projects at once and their order - see here and here...
Looks like this is rather a question on VS than Forge so I'd suggest to remove the autodesk-forge tag...

Trying to search WikiNews

I'm trying to search WikiNews, both for specific news stories and for the latest headlines. I've been reading about the MediaWiki API (https://www.mediawiki.org/wiki/API:Main_page), but it doesn't seem to map to what I'm trying to do.
Taking two examples, I need to be able to get the latest headlines (ideally for a specific region (United States, France, Great Britain etc) and for a specific topic (Finance, Sport, Media etc), but right now I'd settle for just getting the latest stories regardless. I've tried a couple of things:
https://en.wikinews.org/w/api.php?action=query&prop=categories&clprop=timestamp&format=json
just returns batchcomplete
http://en.wikinews.org/w/api.php?action=query&list=recentchanges&rnnamespace=0 looks like it might be more promising, but only if I could filter only to show news stories - and show a good deal more than it currently does. Clearly it would also be desirable to add parameters for location / story type in the query rather than filtering them after the list is received.
With regard to searching, I've had even less luck. I've tried searching on a topic that I know is ~~causing trouble~~ making the news:
https://en.wikinews.org/w/api.php?action=query&titles=Donald_Trump&prop=revisions&rvprop=content&format=json&redirects&continue the return is not a list of stories!
Has anyone searched WikiNews? Does anyone have any suggestions to achieve what I need to do?
action=query&format=json&list=search&redirects=1&srsearch="Donald Trump" -incategory:disputed incategory:"August_25, _2016|August_24,_2016|August_23,_2016|August_22,_2016|August_21,_2016|August_20,_2016|August_19,_2016|August_18,_2016"&srnamespace=0&srenablerewrites=1 will search for articles from the last few days mentioning Trump. (See full docs on what keywords can be used in a search query.)
Most of your examples do not actually generate a list (you can see from the lack of a list parameter); they expect one or more article name via the titles parameter and return information about those. Your second example is valid (except the correct parameter name is rcnamespace) but that returns recently edited articles, which is a very random way of trying to find news on a topic.
In general it seems like you are trying to randomly guess what the API modules do. Did you miss the docs and sandbox?

Create team sections (or segregated areas)

I'm considering using mediawiki as my company's internal knowledge base and am trying to understand how to build out effective team sections. Unfortunately, I'm not finding much information on this.
Ideally we'd have a separate knowledge base sections for devs, product, design and HR; all in the same system with the ability to cross-link. Each of these sections would be able to have it's own landing page and we could search for content specifically within that section.
It looks like using categories might work, but initially this feels clunky and I'm not sure if it provides the level of hierarchy I'm looking for. I would love to get your ideas and any links to examples that have done this well.
Thank you!
If by segregation you mean limited visibility (ie. team members generally shouldn't be able to see other members' content), then MediaWiki is probably not the right choice for you as it does not have granular read access control.
If you are simply looking for content organization, namespaces provide an ugly but easy way of partitioning (almost everything supports filtering by namespace). Categories are more elegant but not so well integrated - you can filter search results by category but you can't do it for most other things like recent changes or user contributions.

html category / sub-category best view

I have a mysql database populated with categories/subcategories, and I'm on the way to build a php/html/css presentation module to show the hierarchy above mentioned.
My objective is to have a simple and clean way to list those categories, widthout getting to confuse to the client (note that there's no "level" limit to the subcategories, so there may be 1 or 100).
I'd like you guys to advise me some visual examples on how to display my categories.
Thank you in advance!
You could emulate Mac OS's Finder:
(source: novamedia.de)
How about a windows-like tree view? People are used to that.