How do i use codeanywhere snippets - code-snippets

How do i use code anywhere snippets? I have entered a snippets but i am not sure how the "name" or tab "trigger" is used. I have entered "parseget" as name, 1 as tab trigger (because I was not sure how it was used).
I have searched the web and read the very short doc on codeanywhere. I have also have even put in a support ticket with no reply (maybe because I have a free account).
Is anyone familiar with using snippets on codeanywhere?
Thanks

I also put in a support request (having had exactly the same issue!) and the docs on snippets have now been updated- see http://docs.codeanywhere.com/preferences/snippets.html

updating link as the above is now 404.
https://docs.codeanywhere.com/#snippets
doesnt really explain it though, the tabtrigger input box defines the snippet you want to use, for example if you enter newclass and then just type newclass in your file and press enter you will get your snippet.
does seem to support tabbing though variable names though unfortunately.
also doesnt matter if you have a free account or paid account, CA are the worst at replying to tickets or even acknowledging you exist. took me 2 months to get a reply to a ticket once and it wasnt even a solution.

Related

Anatomy of a Porch.com SMS lead alert

I would like to design the SMS referral link for a lead alerts application. (So the pro would receive the SMS message on their device with a link to click through to the job request details.) I'd like to make it secure and scalable. The link below arrives in the SMS as a shortened URL. That much I understand.
Porch.com does something similar and I'd like to know what the strategy is behind each segment in the URL (or your best estimation). Can someone help me understand?
Here is an example: (Thanks Porch.com)
https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
Twilio developer evangelist here.
First of all, this isn't really a question for Stack Overflow. This is a place for asking questions about code that doesn't work in order to get it to work.
Having said that, the more I looked at the URL as I was commenting on this question, the more I feel I worked out. This is my idea of what the URL is saying.
Here's the URL again: https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
The random string in the URL, 3fd55669-d7cf-4655-892e-252080c34a79, looks like it is the identifier for the project itself. It's long and random, like a uuid, so it would be hard to guess, but can uniquely identify the project.
The email is presumably the email address of the pro that the SMS was sent to, so that the return on sending SMS projects to them can be measured.
The referrerSource is then used to measure how each of their referring sources is performing.
The only parameter that is impossible to really guess at is the c. Removing it (in fact, removing any or all of the query parameters) didn't change the result of loading the page. This implies that it is just another tracking parameter.
Hope that helps.

How do I retain a fixed drop down value in creating a link for submit?

I am new to the community and I am in no way an advanced programmer. I am a support in a company and would like to make our job easy in any way I can. In regards to this, could you please help me with my problem?
I have created a link wherein I want to automatically disable a program, but to do so, all values must be present. And in order to do that, I have to inspect the elements of the page and include each item in the link I am making. Here is an example below.
(WEBSITE)frmTarget=PROGRAM&frmOption=EDIT&program_ident=xxxxx&status=D&labor_console_mode=D
With the link provided above, the labor_console_mode part is what I want to retain. Each program_ident has a different value when it comes to the labor_console_mode part; sometimes it has A value, sometimes it has C value. My question is, how do I retain the value of the labor_console_mode part without changing its value in the link and being able to submit the whole URL.
Let us say:
C=Scheduled
A=Auto
D=Disabled
Something like, labor_console_mode=selected is what I thought would work but it didn't. If I remove it from the equation, the page loads saying that the labor_console_mode is missing. It frustrates me as to why I cannot find any answers online or if I am wrongly searching for the phrase. Please help me. I would greatly appreciate any help I can get regarding this matter.
Thank you!

Formatting of #HtmlTextBoxFor MVC Visual Basic Webpage

This is my first post here although I use this forum all the time and it usually provides me with a solution, however I've searched all over the web for an answer to this and I can't find anything.
I'm developing a website which provides software support. Users log on to it and add a "support call" which a member of a support team will answer.
The problem I am facing is that when users describe their problem (inside the TextBoxFor shown below), they can type out their problem, and format the text as they please, however when the call is submitted, sometimes (it appears randomly) the formatting just disappears, e.g. some spacing and paragraph use just disappears, here is an example:
Correct formatting:
Hi I'm having difficulty with x, and y and I need some assistance.
Could somebody help me out?
How it appears sometimes:
Hi I'm having difficulty with x,and y and I need some assistance.Could somebody help me out?"
This, of course is highly simplified, and some people have to write many paragraphs and text lines.
Here is the code for the textbox (in the view):
#Html.TextBoxFor(Function(model) model.SupportCall.Subject, New With {.maxLength = "254", .style = "width:500px;"})
It is worth mentioning that when a support call is submitted, it goes to a folder which is picked up by another internal piece of software, which then creates a database record for the call, meaning that an email notification can be sent to the support team, then the list of calls to be answered is updated from that database model, therefore I'm pretty sure it's possible that this process could be what is changing the text formatting.
A reason why this is happening is just as useful as a solution to me so any input is welcome.
use
<pre></pre>
prepend and append it.

Facebook Graph API changed results from /posts today?

I have an iOS app that has been fetching the user's Facebook status updates and location checkins using "/me/posts" for several months. After today's "breaking changes" update, "/me/posts" only returns recent "Like"s. It looks like "/me/statuses" and "/me/checkins" are the new proper places to check for these things. I guess that makes sense, but I saw no documentation anywhere describing these changes or saying that they would happen today. The original documentation about what is specifically returned from the graph API also seems pretty slim.
So my questions are: is this an official change to the API? Where was it specified? Where should I look so I can stay on top of these things and not have my app break for hundreds of users?
Perhaps more importantly: are "/me/statuses" and "/me/checkins" the new proper ways to get this information? Or is there something else?
Always good to keep a (sharp) eye on the Developer Roadmap. These types of changes happen often, but FB usually does a good job of calling them out ahead of time. You've answered your own question as far as whether or not it's an "official" change - you're seeing it in the wild - insofar as how Facebook works, it's official.
Try using the Graph API Explorer. It could be an access token issue.
FYI: I see a similar issue with my application, and I am able retrieve the posts only when I use the Graph API Explorer and the token I get from there.
Update: I found where some of the problems lived. In the app profile in Facebook, pick "Edit Settings" and then go to "Advanced" where you'll see a section called "Migrations". This is mostly switches to show compatibility for various "breaking changes" updates, but it also includes an option for "Include Checkins with Statuses".
Now I know where to look, things are making a bit more sense.

Is there any way to restrict how many item returned by CodeCentral Web Service

I am building web client for CodeCentral web service from CodeGear web site.
I need to restrict number of items return by Search operation of CodeGear web service, say it, 10 per page. This way I can minimize loading of my web page.
I just don't know how to do it. Any ideas?
Sorry, I don't know the answer off hand.
I would suggest you contact John Kaster of CodeGear. He would know all the ins and outs of that. I haven't seen him posting here. Usually the email is [first initial][last name]#codegear.com. You might also try posting in the Developer Network / CodeCentral forum which I imagine John and his team will be monitoring.
You're right. The search form on the CodeCentral page lists the maximum number of entries as an option (the "Show" option), but does not allow you to select the option. And trying various obvious parameter values doesn't work.
I haven't tried it, but what might help you is if you research the CodeCentral Expert, which is a package to help search the CodeCentral website from within Delphi and C++ Builder: http://dn.codegear.com/article/23023
The package seems to be quite old, since comments on that page date from 2000, so there's no guarantee that it will work with the new site. However, checking through archive.org, it appears that the CodeCentral search page has remained the same for quite a number of years, and the search page, and even the missing "Show" option, has not changed over that time.
Even if the package doesn't work, maybe the package will give you the correct parameters you need for the calls to their search.
Otherwise, you'll have to send an email as previously answered.

Resources