I recently generated promo codes for the iOS app store and at least one contains some combinations of letters that you better not pronounce on TV (to say the least). Is there any way to return or change such codes? I mean, I can't send that code to a reviewer, not even to a friend.
Edit: with "generated" I mean that I used iTunes Connect to get promo codes, i.e. Apple creates them and I just download them as a text file. One of the codes reads xxMFxxxxANAL. No joke! (x=arbitrary character not disclosed here). Not exactly the kind of code you want to send to somebody whom you would like to review your app...
Is there anything I can do about this? For example returning the code and getting a new one? And do you have to check every code Apple gives you by hand? If you want to give a batch to a website to give them out to their users, such a code could slip through easily.
Remove vowels from your character set?
Before returning the generated promo code, check it against a list of words you don't want to send. If it is in that list, regenerate it.
EDIT
However, that is really not the best solution. It might serve you well to change how you generate the code.
One possibility: in C# there is a Guid class that generates a guaranteed unique string. You may be able to use a subset of a Guid as your promo code.
Another Possibility: You could alternate letters and numbers.
Related
When an user enters a number into a field (representing the number of persons in a group), I want to have a section of google forms to be multiplied that many times - one for each person. In each such section I need to enter their details. Anybody did something similar to this ?
I think what you're trying to do isn't possible (without using App Scripts) but I have built a little example of something that might work for you. Please see if this will work and get back to ASAP.
Pretty much it has a title page asks the user how many people they want to sign up. Then, depending on the answer, the form directs them to a section with the appropriate number of sign-ups.
I am writing an Instagram client for Ubuntu in Vala. And I'm using Gtk.Labels to display post title, comments etc. Problem is, sometimes received data contains special symbols like smiles etc. And currently they are displayed incorrectly, like in the picture (these squares containing 6 hex numbers):
I guess that's not the problem of my application because I've seen such behavior in other apps (for example, Pantheon Files). But anyway, this is not the way I want my program to behave, I want these symbols to be displayed correctly.
So, my question is: is it possible to achieve the behavior I want? And if it is possible, then how?
There was indeed an issue with the font I'm using. I just installed ttf-ancient-fonts package (according to the https://www.kirsle.net/blog/entry/make-emoji-work-in-linux) and now it is working.
Recently I've seen some people using a string of code in their comment or wall post in order to do something interesting, such as hyperlinking the whole text. It looks quite fun though, but I don't know whether it's Facebook-defined code or any kind of language behind.
For example: ##+[0:[158038637615605:0: YOUR TEXT HERE ]]
I guess the number 158038637615605 could be an app's ID.
Any idea?
The code seems to be how Facebook is able to encode links in text without having to store any additional meta data. I assume they expect the format to be so strange as to not occur in a persons normal updates. The syntax was probably released by an engineer, or gleamed by someone examining the JavaScript operations as a user goes about tagging something.
A similar thing I've been seeing goes along the lines of:
Your phone has a name. To figure it out, you take the last three digits of your phone number - for example 635 and type it the comment section of this post like #*[635:0] and then remove the * and post, and you get your phone's name.
I suspect they're making exceptions now to prevent the user from typing it manually.
Site note; 158038637615605 seems to be the ID of a Facebook page.
Is it possible to create a hyperlink in an sms in an iPhone?
For example, if I want the word 'foo' hyperlinked in HTML then I'll write foo in a normal situation.
If I want to have a certain word in my sms to be hyperlinked to something, is there any way I can do this? Like "I have a surprise for you" and the receiver taps on the hyperlinked word 'surprise' which will take the user to the destined page.
Any suggestions as to how this can be done? Examples and samples welcome!
Thanks in advance :)
No, you cannot use html tags in sms / text messages. All you can do is insert the URL without the tag. It then depends on the receivers device whether the URL is presented to the user as link or as plain text.
I experimented with exactly this just yesterday. It seems you can't include a nicely formatted hyperlink, unfortunately. I hope to be proven wrong by somebody else, though :-)
However, as you've probably seen yourself, iPhone is able to recognize an URL and you can tap on it to open the URL in Safari (or tap the disclosure button next the message to get more options on what to do with the URL). As far as I can tell the only thing you can do is format your SMS accordingly: "I have a surprise for you: http://foo.com" even though that might spoil the surprise ;-)
No, you can't do this due to privacy issues. Apple thinks that giving you this ability would allow you to link users to malware and such. Sorry!
i don't think it's possible to create hyperlinks in SMS.
The only way is to send an URL, and the iPhone will convert it to a link...
Use a tiny url from tinyurl.
It doesn't allow you to do exactly what you are wanting but it at least can be used to cover up the long link.
This is the closest thing I figure out to do. I was wanting to use the "
No, you can not do this. However you could use tinyurl and format it like this
http://whateverYouWantToSay#tinyurl.com
Web browsers usually ignore anything before an # therefore you could effectively hide the actual site being linked to, as long as your friend does not know that.
What actually happens is the data before the # is submitted to the web site in the form username:password. However it must be a site that requires authentication to access, or the site will normally just ignore it.
If this helps, I've noticed that a custom hyperlink is possible on the OS X Messages app, but they have to be copied and pasted. To replicate this right click on a hyperlink in your browser and hit copy link. Then paste into Messages.
Uhhh this is possible here is a screenshot of an example - I copied a link from email and pasted in a new SMS - though it appears you cannot type html to create a link....
Would pasteboard.numberOfItems (in the code below) ever be greater than 1? How would the user cause this to happen?
UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
pasteBoard.numberOfItems
Note that I'm not asking if a single pasteboard item can have more than one representation type. That they can is clear.
Update: I understand that programmatically one could put more than one item in the pasteboard (using addItems as Kevin Ballard points out, or by setting the items property to an array containing more than one dictionary). But could the user do this using any of the built-in apps? I suppose one could easily write an app that puts more than one item in the pasteboard (so for my app to be robust, it should handle that situation).
There's an -addItems: method on UIPasteboard, so I think it's pretty clear that it's certainly possible to have multiple items.
Not with Apple's provided apps. It's entirely possible for a third party app to add multiple items as far as I know.
EDIT: On second thought, I may have had multiple items a few times while testing my app, but I didn't determine from where, or whether it was an Apple app. In either case, I'd write a test for it. My app -- right now -- only looks at the first item, and I've never had problems with built in apps in testing.
The built-in Photos app allows you to place multiple photos on the general pasteboard. Just use the "Share" button, select several photos, and then press "Copy".
The general pasteboard will then have each photo as an item with two representations: "public.jpeg" and "public.utf8-plain-text". The second representation (text) seems to be a file name, however in this case Photos always returns "image" plus a sequential number (i.e. image1.jpg, image2.jpg, etc.).
In addition, the user may use a clipboard app (several of which are present in the App store) to place multiple items in the general pasteboard. I'm currently building a clipboard sharing app.