Export of all tags, not only your own - tags

When you get a list of files through the Box API, you also get the tags assigned to those files in string format. These tags include your own Box tags as well as shared tags (My Tags vs All Tags).
However, if you want to verify in a later phase if some of these tags have been deleted for instance, that seems not possible. The 'export tags' API method only returns your own tags.
This makes it really difficult to keep tags in sync, and I don't see a good reason why you would be able to see tags in the Box UI but not in the API. In the end it's just another representation of the same data, or that's what you would expect.
Anyone knows a possible workaround for this?

There isn't a known workaround for this at this time, but we're in the process of building out tags support in our V2 API and will take this use case into consideration.

Related

Changing a text in multiple AEM pages at multiple locations

I have a website hosted on AEM. I want to change a text that is present in almost all pages (say I want to change my product name which is present in all pages) . How can i do it. It can either be a Groovy/Java code or an ondeploy script or anything else. Because doing it manually on all pages at multiple locations is not feasible. Will AEM Bulk Editor solve the purpose?
Its like Find and replace functionality in office
Yes, you will need to have a set of queries to find most of the references and then make a POST to these pages with the new value.
Example with: curl -u $USER:$PASSWORD -F"PROPERTY=new value" "http://$HOST/content/mysite/en/page/jcr:content"
Of course, you can do it with Java, Groovy (look for Groovy Console for AEM, which is very convenient), or even bash for simpler cases.
You can write a query using the query builder api to get all the nodes where your particular property is present.
Then once you get the path to that property you can update that using the node api.

internal links in Lektor's markdown blocks

I want to build a website, maybe similar to a movie database, where every page has, say, actors, director, year (it seems that Lektor can deal very well with such structured metadata), and I am thinking about how to realize internal links between pages on that site.
Say I have a text such as
just like in [his previous movie](link), he shows again ...
then I guess I could use the absolute path of the linked page as link target, but that makes me very inflexible with respect to changing URL structure. Can I somehow just use the ID of the target content?
Or, better yet, can I somehow automatically obtain the title of the linked page?
just like in his previous movie <<link:title>>, he shows again ...
Can I use the standard Markdown blocks for that or would I have to add some handcrafted database lookup logic?
if some contents will be changed in future. I think you can use the databag feature to implement it. you just modify the databg in case changed is need.

Determining how many people have been added to a facebook group by a single member

I am the admin of a Facebook group and am trying to keep track of how many people each user has added. I cannot seem to nail down how I can easily write a script to:
Determine how many people a User has added.
Echo that to a file in the format $User:$number_of_added_members.
I've been made aware I cannot do this with the API, I am banging my head against a wall here. If anyone could at least point me in the right direction it would be much appreciated.
I just did this...
actually i am a programmer and did it in the hard way because i needed group by users. I hoped that the graph api at least give me an xml of user with added by in order to make my code read it but it did not so what i did is just to copy the table on the members page and paste it on a txt file and make a python code read it and make a dictionary of user: number_of_users_he_added.
it was quick but there is a problem that the members page does not give u all the results, its infinity scroll and i have a lot of members.
u can write a js script that read the dom instead of copy paste or even a chrome extension but still have the problem with the infinity scroll.
if facebook provide the added by field in their graph it will be great
Maybe you can work with the site which lists all members and look for the string below the member which says "added by on " But I'm not sure, how long this stays before it switches to "in the group since"
Edit
Use a crawler software like the one in Symfony to traverse the HTML of the page. You will need a PHP CLI for this tool. DOMCrawler from Symfony

Google Rich Snippets warnings for hCard

I get the following errors from the Google Rich Snippet Tool for my website http://iancrowther.co.uk/
hcard
Warning: This information will not appear as a rich snippet in search results results, because it seems to describe an organization. Google does not currently display organization information in rich snippets
Warning: At least one field must be set for Hcard.
Warning: Missing required field "name (fn)".
Im experimenting with vcard and Schema.org and am wondering if I'm missing something or the validator is playing up. I have added vcard and Schema.org markup to the body which may be causing confusion. Also, I am making the assumption I can use both methods to markup my code.
Update:
I guess with the body tag, I'm just trying to let Google discover the elements which make up the schema object within the page. I'm not sure if this is a good / bad way to approach things? However it lets my markup be free of specific blocks of markup. I guess this is open to discussion but I like the idea of having a natural flow to the content that's decorated in the background. Do you think there is any negative impact? I'm undecided.
I am in favour of the Person structure, this was a good call as this is more representative of the current site content. I am a freelance developer and as such use this page as my Organisation landing page, so I guess I have to make a stronger decision of the sites goals and tailor the content accordingly, ie Organisation or Person.
I understand that there is no immediate rich snippet gains, but im a web guy so have a keen interest in these kind of things.
With schema testing, I find it easiest to start from the most obvious problem, and try to work our way deeper from there. Note, I have zero experience with hcard, but I don't believe the error you mentioned actually has anything to do with your hcard properties.
The most obvious problem I see, is that your body tag has an itemtype of schema.org\Organization. When you set an itemtype on a dom element, you are saying that everything inside of that element is going to help describe that itemtype. Since you've placed this on your body element, you are quite literally telling Google that your entire page is about an organization.
From the content of your page, I would recommend changing that itemtype to schema.org\Person. This would seem to be a more accurate description. Once you make that change and run the scanner again, you may see more errors relating to the schema and we can work through those too (for example, you'll probably need to set familname and givenName).
With all of that said, you should know that currently there are no rich snippets that you will gain from adding this schema data. Properly setting this up on your page, is only good to do, especially since we don't know what rich snippets Google or others will expose in the future, but currently you won't see any additional rich snippets in Google search results from adding these tags. I don't want to discourage you from setting this up properly but I just want to set your expectations.

Attaching a tag

What is the actual procedure for attaching multiple tags to a particular content in a project development. What is this tagging all about???
I need to create a tag cloud for my project in .NET using c#. Help me out as a beginner for basic tagging concept.
Tags are key words add information about the item being tagged. Tags add semantic information about something in an effort to further it.
For instance, A picture of your father on his birthday could be tagged 'dad','family','event','birthday' etc...
By adding tags to the picture you add context and make the image more easily indexable, sortable and searchable.
Tags are purposely generic and flexible because different people can place different personal meaning to the same artifact, or the same person may apply different meaning in different contexts - like adding the same picture to a stock photography web site or checking it into a source code repository as part of a project.
Generally the procedure is to ask the owner of the item to add a list of tags in a text field. Some sites like stackoverflow constrain (most) users to use existing tags, others like delicious make the tags up to the user.
A tag in the software context typically means a meaningful name or attribute being assigned to that software. In version control scenarios a tag is a meaningful name given to a particular state of the files represented by that name. For example the tag 20090401 might be assigned to the source code as it looked on April 1, 2009. Tagging something can also mean describing it or categorizing it. For example software such as IE8, Chrome, or Firefox might all be tagged "Browsers" to categorize them on a download page. Allowing users to create tags and use existing tags is a powerful method to categorize content and help people zero in on items of interest. A tag is simply an extra tidbit of information a person can gain insight into data with.
Multiple tagging is useful for many reasons in software development. For example in my git repository I have a habit of creating tags based on date which can easily be ordered and parsed by a computer. I can also give changes a more human consumable name such as the tag "Deleted_Duplicates", or "RC1", or "V1_Delievered_To_Michigan". This allows for an understanding while also allowing for machine processing.