Can someone explain this parameter? - web-services

I was reading 5haked's research blog.
And it contained this particular part:
What is:
"#type":["GorillaHub\\SDK\\SDKBundle\\V0001\\ExceptionTransmitter"]
I have never seen this type of URL or parameter before. Google doesn't return any results.
Thanks.

Related

Where does "this.get('filter')" comes from?

I've been following tutorials from Embers website and at certain point they do:
let filterInputValue = this.get('value');
let filterAction = this.get('filter');
filterAction(filterInputValue).then((filterResults) => this.set('results', filterResults));
And as far as I know this.get('filter') is the same thing as doing this.filter or this['filter'], right? I've been looking to their documentation about Component and its base object, since attributes/functions can be inherited, to find out about this filter but was unable to find it.
So, where does filter comes from?
It refers to the action specified in the template. It's there in rentals.hbs in the very first code block of the page you linked:
{{#list-filter
filter=(action 'filterByCity')
edit: to answer your question about this.prop vs get(this, prop) or this.get(prop), this.prop is not the same. however, soon it may well be. check out this RFC for more info

How to get Facebook Page ID from Page URL

I need to get the Page ID from the Page URL. This is NOT from inside a page tab, that's easy. This is similar to what is being done here: http://findmyfbid.com
Any help would be appreciated as I have been searching for over an hour! Bonus points for showing how to do this in classic ASP. I have no issue getting signed requests & parsing them, the URL to ID portion is what is throwing me.
thanks :)
As noted above in 1st answer commments, that does work, but it's not the data that we want since it's an external url. THIS is the correct way to do it:
https://graph.facebook.com/v2.5/cocacola?access_token=[yourtoken]
OR
This works too:
https://graph.facebook.com/v2.5/https://www.facebook.com/cocacola?access_token=[yourtoken]
This is the way to do it: https://developers.facebook.com/docs/graph-api/reference/v2.0/url
if you are using a GET request, be sure to append access_token=appid|appsecret to the URL you are requesting and it will work.
Thanks for the tip to point me in the correct direction Alex!

Google form validate if submitted value matches list

My two questions are:
Can I check if a submitted value matches entries in a list of accepted answers with Google Forms?
What kind of solution would you recommend?
Explanation of my goal:
I would like visitors to go on to the second page ONLY if their first answer matches one of the expected answers from a predefined list. (email list for example, or identification name)
Only those who would fill in the field with an expected email address would go on to the second page.
Unwanted visitors would then be given an error message.
I was thinking of the regexp solution at first, but there is probably a much easier and better solution.
Thank you for your time and clues.
I managed to solve my problem, so here's is the solution for those who will try and do something similar.
Answer found here:
Google Forms : REGEX
So it's answer type SHORT ANSWER
-> advanced settings
REGEX -> MATCHES -> mail2#mail1.com|mail2#mail2.com|mail3#mail3.com
For a limited list of email addresses, this wors just fine :)
P.S.: Thank you James anyway!! I appreciated even your interest in this question, so thank you.

Inflection usage for fetching model in EmberJS

I am confused at how EmberJS uses inflection to fetch data from local database.
Given that I have a model called Post, I have seen instances of:
this.store.find('post', 1); //This one makese sense to me. Find a record of post with ID 1
I am more confused at when the tutorial starts adding/omitting 's'.
What are the differences between:
this.store.find('post');
this.store.find('posts');
this.store.all('post'); //This one also makes sense. Find all records of post.
The one that specifically confuses me is this.store.find('posts'); when I only have Post model, because it will actually throw an error telling me that No model was found: posts. Nonetheless, I still see it in the tutorial and getting started. Is this just a typo in the tutorial? This is the toturial that I am referring to:
http://emberjs.com/guides/routing/defining-your-routes/
and go to Dynamic Routes section.
Turning my previous comments into an answer in case someone else stumbles upon this before a fix is live.
I feel this has been wrongly downvoted. It is actually a mistake with the guides, as the singular form should be used throughout. The OP's confusion was entirely warranted.
The PR submitted to correct this issue has already been merged.

Graph API does not showing all public Posts based on keywords

I tried searching all public posts using "https://graph.facebook.com/search?q=keyword&type=post" as mentioned in the documentation. But the JSON result is missing some posts which are public. For example i posted or shared something on my wall and i tried searching d post having specific keyword using the above api but it did not show my post. I tried finding the reason for this problem but i could'nt get it anywhere. So friends if u know the reason or solution of this problem then please do answer.
Thanks in advance.