Instagram comment breaking Community Guidelines - instagram

I'm trying to post a comment via the Instagram API on a specific picture, and I get the following error:
APIInvalidParametersError
Your comment goes against our Community Guidelines.
I have tried the following:
Posting another comment using the same account, to another users picture. Works fine.
Posting the exact same comment using another account, to another users picture. Works fine!!
So it seems that the comment itself or the posting account isn't where the problem lies, but with the account receiving the comment.
The rules for a comment are the following according to the developer documentation (and I do not break any of them):
The total length of the comment cannot exceed 300 characters.
The comment cannot contain more than 4 hashtags.
The comment cannot contain more than 1 URL.
The comment cannot consist of all capital letters.
I have no idea what it is in this particular case that goes against the Community Guidelines, and I have no idea on how to find out what it is.
Has anybody experienced anything similar and knows a solution?
Unfortunately I can't show you the actual comment since it is actually a client trying to post it, and it might contain some sensitive information.

Related

How to get a link to a gitlab comment (inside a merge reqeust) that I wrote?

edit: Clarified that comments are in the context of a merge requests.
screen shot: available icons on right of one of my merge request comments
This screenshot shows a fragment of a merge request comment (not publicly available) that I wrote, note lack of vertical "three dots" on right as shown in Sakura's screen short below. My just shows a pencil for editing.
I want to reference arbitrary discussion comments on some source code in merge requests.
edit: generalized my "my comments I created" to "general comments", added screenshot of an example from gitlab:
screen shot: example comment from publicly accessible gitlab merge request #523
Here is a publicly visible merge request at gitlab.com, I just chose this merge request at random because it had a fair number of comments. I chose this particular comment more or less randomly, and because the associated code fragment was short.
If you search that merge request for this text you'll find a discussion matching the above comment.
Toon Claes OOO
#toon started a discussion on an old version of the diff 1 month ago
Resolved by Toon Claes OOO 1 month ago
Original description:
Let me explain what I mean by link.
Gitlab sends me an email when other people make discussion comments, like
this example from a merge request discussion:
(i) | Samantha Q. commented on a discussion about a/b/c/foo.py:
| 123 - # some ugly code
| 123 + # some cleaner code
| Some insightful comment here.
The a/b/c/foo.py in (i) above is a hyperlink like this:
a/b/c/foo.py
Which is sort of ok for comments other people write, because I can copy the link from the email (assuming I still have it). But I don't see a way to get this kind of link from discussion comments anybody wrote (originally emphasized comments that I wrote).
Can you tell me how to get a link like (i) from the gitlab user interface?
workaround: I can manually hack up a link by digging the note id #note_18536 part out of view source, but that seems harder than it needs to be.
edit: also, this work around doesn't appear to work on possibly newer version of gitlab becuase when I go to search for the comment in view-source I can't find it, I don't know why - maybe it is dynamically populating the page via javascript.
On gitlab, when you wrote a comment, you have a menu on the right of the comment header (see image):
On these menu, you have two options:
If you're the poster, you have the option for copy link, and delete comment.
If you aren't the poster, you can report comment, or copy link.
I think that's resolves your question.

Cannot use the Knowledge academic API

I have a problem when I try to use the function similarity proposed in the academic knowledge API.
I tested the following commad to compute the similarity between two string:
curl -v -X GET "https://api.labs.cognitive.microsoft.com/academic/v1.0/similarity?s1={string}&s2={string}" -H "Ocp-Apim-Subscription-Key: {subscription key}"
The error that I get is :
{"error":{"code":"Unspecified","message":"Access denied due to invalid
subscript ion key. Make sure you are subscribed to an API you are
trying to call and provi de the right key."}}
Curl_http_done: called premature == 0
Connection #0 to host (nil) left intact
Can you tell how can I generate the Ocp-Apim-Subscription-Key?
At the moment I used the key generated automatically when I visit the following url : https://labs.cognitive.microsoft.com/en-us/subscriptions?productId=/products/5636d970e597ed0690ac1b3f&source=labs
Thank you for your help
Unfortunately, primarily not an answer to your question, but rather a warning for all with the "same" problem, who could came across the original question like me, as the question helped me to solve a very, very similar problem: check whether you are using api.labs.cognitive.microsoft.com instead of westus.api.cognitive.microsoft.com. But may be you need the opposite.
It seems the whole project has been moved inside Microsoft (see https://www.microsoft.com/en-us/research/project/academic/articles/sign-academic-knowledge-api/, I would bet that this blogpost was at the top of some "entrypoint" blog even yesterday morning, but now I am not able to find this blog, perhaps the things are changing right now) and may be the project is somewhere in the middle of the transition process and not all documentation etc. corresponds with the new state. E.g. https://learn.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/home, in the submenu Reference, links to two "versions" of API which seem to be almost same except for the URLs westus.api... and api.labs..., respectively. But there seem to be no info what is the difference, which one should be preferred etc.
My original keys expired yesterday, thus I generated new ones and was not able to use them until I have changed the URL to api.labs..., thanks to your question. May be you have the opposite problem, that you still have the "old" keys, so you need to use the "old" url westus.api..., but I am not able to test it, as my original keys which worked with westus.api... are expired.
Both your query and your link where to get keys are OK and work for me. Just one additional detail: did you try the circle arrow next to the key value, which generates a new key? May be your key is somehow broken or expired and this could solve your problem. You can also try to create a completely new account at MS site.
PS: I have added microsoft-cognitive tag as MS refers to https://stackoverflow.com/questions/tagged/microsoft-cognitive from many pages related to Cognitive Services
I think you need to sign up for a free account, there is a link you can follow from here:
https://westus.dev.cognitive.microsoft.com/docs/services/56332331778daf02acc0a50b/operations/58076bdadcf4c40708f83791
Except for the invalid key, you curl-call looks right.
You need a valid subscription key to be able to make API calls.
Production key
Have a look at this page on how to created the needed services in the Azure portal and how to find the endpoint, as well as they key from there.
Trial key
However, if you just want to try out the service, you can create a temporary key here. This key is very limited in use but it should get you up and running.
Limitations are:
50,000 transactions per month, up to 20 per second.
Trial keys expire after a 90 day period.

Anchor Text issue in ebay listing template [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
This may be simple question. But i did quite a bit research on Google, Stack-overflow & ebay for last 2 days before posting here.
Scenario
My company sells items via ebay. I am working on a new listing template (HTML page which describes about selling item).
Please see http://www.ebay.com.au/itm/4x-SAMSUNG-CLP-680DW-680DN-CLP680-CLT-506S-CLT506-506-CLTK-506-TONER-REFILLS-/380697552903
In the listing, blue color portion is the template created by me.
Problem
I have 5 Anchor links (PAYMENTS, POSTAGE & HANDLING, OUR LISTINGS, WARRANTY & RETURNS, CONTACT US) on top of the template, which takes customers quickly to corresponding sections on the listing.
Actually listing template itself is a html file, which we used to modify as per product spec and upload together with ebay listing. All works fine on me local PC.
Once uploaded in to ebay, Ebay amends with some wired URL and navigation doesn't work at all. In ebay, once i hoover over the link, it shows following link,
example for PAYMENT,
http://vi.raptor.ebaydesc.com.au/ws/eBayISAPI.dll?ViewItemDescV4&item=380697552903&t=1376555146000&tid=-1&category=16204&seller=tonerstop&excSoj=1&rptdesc=1&excTrk=1&lsite=15#pay
I can see # tag is appended correctly. But somehow its not functioning as expected.
Interesting Finding
Adding more complexity, this issue apparently not consistent too. Sometimes it works as well. In some situation it forms a complete different link and works. See example below.
example for PAYMENT,
http://www.ebay.com.au/itm/4x-SAMSUNG-CLP-680DW-680DN-CLP680-CLT-506S-CLT506-506-CLTK-506-TONER-REFILLS-/380697552903?#pay
But once you refresh the browser, it stops working again.
Tried Solutions
1.Rename anchor text assuming there may be other anchor text with same name. Didn't work.
2.Tried java script. But its not supported by ebay listing.
3.Looking for slimier template on ebay to see if those working. (Still looking)
Questions
Why its happening intermittently?
Is there any special ebay requirement for anchor texts?
Am i missing (of course) any thing here?
More Info
Issue still exists. Did check with 20+ different vendor's listing.
Had a long chat/email communication with ebay. But couldn't get passed to a developer other than customer support team.
So no choice for me other than to remove all the anchor menus.
I got the same problem and solved it by using another method:
onclick="document.getElementById('XXXXX').scrollIntoView(true); return false;" href="#XXX
etc. like a normal anchor.
Bye!

How to open webpage in HIDDEN default browser, C++?

Disclaimer:
I am aware there is a duplicate for this question but it has no answers. Craig Peterson, Mason Wheeler and other 13 people were wondering why the person who asked a question may need the answer. They said:
because trying to open a webpage and hide it from the user sounds kinda suspicious, and we're honorable coders here who don't want to help anyone write malware. So please convince us you've got some legitimate reason to want to do this, or you're not likely to get any answers.
I tried to edit the original message in order to provide such reason and hopefully get the answer but the modification had been rejected by dgw and albertjan, saying:
This edit is incorrect or an attempt to reply to or comment on the existing post
So I am providing the reason for the question again, I believe it is pretty valid.
The reason:
This may be needed for running a specific Javascript lib, which cannot run on server. For example, for Google Analytics code, which must be run in the default browser (to avoid cookie confusion). And of course, we do not want to open any pages on user desktop although there is nothing to hide really.
Please advise.

How to get a description of a URL

I have a list of URLs and am trying to collect their "descriptions." By description I mean what comes up, for example, if you Googled the link. For example, http://stackoverflow.com">Google: http://stackoverflow.com shows the description as
A language-independent collaboratively
edited question and answer site for
programmers. Questions and answers
displayed by user votes and tags.
This the data I'm trying to accumulate for the URLs I have.
I tried parsing the URL's meta-descriptions, however most of them are lacking a meta-description (yet Google and other search engines manage to get a description somehow).
Any ideas? Should I just "google" each link and scrape the data? I have a feeling Google wouldn't like this...
Thanks guys.
Different search engines have different algorithms to get the description out of the page if/when they are lacking the description meta tag. Some ignore the tag even it it's there.
If you want the description Google has, the most accurate way to get it would be to scrape it. Otherwise, you could write your own or look around on the web for code that does it.
These are called snippets.
Google use proprietary (and possibly patented) methods to garner this information, so there is no simple answer.
As you suggest, they will use meta-description information if it is there. (How to set the meta-information to help Google.)
They will also honour requests from the page authors to NOT include snippets. (How to prevent Google from displaying snippets) You should probably respect this too (as well as robots.txt, of course.)
You may have some luck with existing auto-summary packages, such as OTS.
You may want to check AboutUs.org (i.e. http://www.aboutus.org/StackOverflow.com).
But, there's little chance that the site will have an aboutus page and not have a meta description.
Some info that might explain how google does this:
Webmasters/Site owners Help
Adding a URL to google
I am not familiar with Google APIs, but perhaps there is an official way to get such information.
Interesting. some sources are better than others.
For "audiotuts.com" google has a worse description than AboutUs.com.
Google
Nov 18th in General by Joel Falconer ·
1. Recently, an AUDIOTUTS reader asked me about creative process. While this
is a topic that can’t be made into a
...
AboutUs.com:
AUDIOTUTS is a blog/tutorial site for
musicians, producers and audio
junkies! It is the sister site of the
popular PSDTUTS, VECTORTUTS and
NETTUTS.
I hate problems like these... they should be trivial but they aren't!
If you can assume English content, you can first look for Meta Description, and if that doesn't work, you can look for the first two or three sentence-like word sequences.
A product I worked on looked for the first P or DIV that contained more than one sequence of > n "words" delimited by periods. It would use the two or three sentence-like sequences, up to x total words, as a summary paragraph. It wasn't 100% accurate, but good enough for the average case. The number of words was adjusted a few times to eliminate things like navigation elements.

Resources