Swift Notifications Action - swift

I'm trying to add "actions" for the notifications like the below screenshot. It's simply a question and based on user tap action, either question is not asked again for a certain time or changes to be done in Settings to disable notifications.
I tried to search for a code sample, but could not find any.

After a very long search with different keywords, I came to know that this is a feature that was first introduced in iOS 12 as Provisional Authorization for Quiet Notifications.
I found a source code on github here that can be investigated further. Another tutorial can also be found here.

Related

How to hide followers/following on GitHub?

Is it possible to hide who follows me and who I follow from my profile? I feel like this should be an option for personal opsec. If not, is there anywhere I can request this feature?
UPDATE: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/setting-your-profile-to-private
As of now, there is no setting for this, to request feedback go to: https://github.com/github/feedback, specifically here, the profile help: https://github.com/github/feedback/discussions/categories/profile-feedback, or here, general feedback: https://github.com/github/feedback/discussions/categories/general-feedback, or even here: https://github.community/c/github-help/48.
I have tried my very best in searching, and the only profile items GitHub allows you to hide are 1) the PRO badge (this is the only one I have, not sure about other badges), and 2) your private contributions. I do not think there is a beta for this either.

How to mention a user in GitHub wiki?

I tried to type #username in a github wiki page but it didn't generate any link. Is there any way to do it without manually linking to a user's profile?
I think the only way to mention someone is :-
[#username] (https://www.github.com/username)
They never provided the support for this and most probably never will.
They have closed the issue ages ago. - https://github.com/github/markup/issues/209
Advantages:
Mentioning users in a README allows readers to immediately view the user, via click or hover over, which is very convenient
as consequence, user mentions will be used more often, making users more interconnected.
Disadvantages:
#username mentions cannot be clicked outside GitHub ([#username](https://github.com/username can be clicked).

How do you keep track of your comments on GitHub issues?

I want to find all the GitHub issues that I commented on. I tried searching for commenter:mbigras type:issue like the Searching issues and pull requests GitHub article suggests. But that method returns fewer results than the public activity section of my profile.
See both attached images:
Search method
Doesn't display current results:
Profile method
Gets mixed up with other public activity:
Is there a way to get the full history of my comments on GitHub?
EDIT
author:mbigras type:issue gives wider results but still not the full history:
What I'm looking for is a way to quickly view all my comment/issue history in all issues.
EDIT
I emailed GitHub about this. Search doesn't match the public activity section because search indexes issues by creation date and not last active date.
How do you keep organized about which issues you've commented on?
Search for commenter:username in the main Github search box.
For example commenter:gavinandresen
To see recent activity, select Recently updated from Sort dropdown
You can also narrow the search: is:issue commenter:gavinandresen
I have also been very frustrated when I could not find an issue that I have commented on a while ago. I even did not remember the project it was in. I knew only the problem I was referring to.
Then, I went to the Notification settings on Github and saw there is an Include your own updates option that is unchecked by default.
Once you check it, Github will send you an e-mail notification about every comment or PR you make. They you probably want to add an appropriate label and filter for emails so Github messages do not clutter an inbox.
My life has changed since then. Now, every time I want to find something I have written on Github, I just search for it in the e-mail notifications.
You can view all the issues on Github you have commented on by going to https://github.com/notifications/subscriptions and selecting Reason as Comment.
This will show all the issues that you've commented on.
You can also filter the issues by selecting other reason such as Assign, Author, Manual, Mention, etc. but you can select only one reason at a time. Also, you can filter the issues by repository by selecting the concerned repository from dropdown after clicking Repository
Search All GitHub using the search term is:issue author:#me
You can also check the following links.
For all your subscriptions
https://github.com/notifications/subscriptions
For all your issues
https://github.com/issues
For all your pull requests
https://github.com/pulls
In case someone is interested to know how to find these links, go to github's resi api documentation. The URL's are not explicitly described there. However, look for the page names bellow REFERENCE.
If you lowercase the relevant word (for example Issues become issues, Pulls become pulls) and put that after https://github.com/, you most probably will find what you are looking for.
This might be a little late, but there's also another way to find what issues/PRs you have participated in. This method also brings in a lot more things you might be interested in too!
When you are on the website main page, on github.com, use the keyboard shortcuts as described here to open your pull requests or issues. The shortcut for these is in particular [g, i] for issues and [g, p] for pull requests (I remember g by go, but whatever works for you.)
After you go to the page directed by these shortcuts you are greeted by an entire screen of goodies you can use! The search bar can be edited and the buttons can be used to make your experience fast!
Type involves:<your username> in the search box on the GitHub's main page. This will find all the issues that you commented on, was assigned to or mentioned in.
For example, if your username on GitHub is unclebob, the search query should look like:
involves:unclebob
Or if you're logged in to GitHub, then simply:
involves:#me
Note the difference between involves and similar search qualifiers - author and commenter:
author will find only the issues that were started by you; if you comment on the issue that was started by someone else, author query won't return it in the search results.
E.g., compare involves:unclebob and author:unclebob type:issue.
commenter will find only those issues where you commented second or later (creator of the first comment in an issue is considered its author and not a commenter); if you start an issue and then never comment on it, the commenter query won't return it in the search results.
E.g., compare involves:unclebob and commenter:unclebob.
In other words, when it comes to searching comments, author and commenter return only a subset of involves' results. So I recommend using involves not to miss anything.
Also, since Github is on the web, any HTTP search engine works, eg Google, Bing, etc. This works to the extent of your search engine's quality and the uniqueness of the writer name.
(Indeed, I actually do this all the time when I need to find any previously written web (engine)-accessible publication, including those on StackExchange. Names I use are 1 in probably an infinity, so Google often works better than forum search options.)
(Sample Google link.)
If you want to search for multiple users in a single search, use it like in the global search bar without the OR logical conjugation:
commenter:FantomX1 commenter:FantomX1-github
since the similar google way approach with 'OR' would not work
commenter:FantomX1 OR commenter:FantomX1-github

Google Forms Timer

I am looking to create a timer on a quiz that I am creating in Google Forms. I have found this post here - How to add a timer to Google Forms for a School Quiz? - from 2013 where it's mentioned that scripting might make this possible eventually. I am wondering if anyone has figured this out or has a solution. Ideally I would like to have the timer start when someone opens the form and auto submit or stop receiving submissions after a set elapsed time.
Thanks in advance :)
A Previous Question has mentioned this before. Right now you are correct, you cannot time a quiz using a script at the moment. Though this question does mention some "workarounds" such as using the Form Limiter tool posted in that question.
Also this was mentioned as a viable solution:
One way is to use Qualtrics. It has a "timing" question which can
automatically submit the page once the time is complete.
So, if your sections can be placed in 3 different pages, its quite
easy: Place a timing question on the top of each section with the time
settings.
And This link Tells you how to set the general settings of time limits (such as, open test on April 14th close on April 15th). You can set specific date limits but still no timer.
For Further Reference View this Google Product Forum.
Use an addon. Some work well, others don’t. A good one is Quilgo Time and Proctoring. But as with any addon, you have to sign in. If you decide to use a different addon, be wary of the requirements. You will also have to make a Quilgo account if you use the suggested addon. But to have it stop accepting responses, you can either use an addon (Form Limit Response - Limit Form Close) or just do it in the form settings (manual turn off). Where to find manual switch for turning off responses

Add-to-timeline deprecation on Facebook. How to replace it?

According to the docs, the "Add to Timeline" button will be deprecated as of August 2012. Unfortunately, there is no guidance on how to achieve the same functionality. Perplexingly, the Open Graph tutorial uses the button (which seems unwise given that it will be broken in a couple months). Since I'm writing a new implementation of actions/timeline right now, I'm not going to include something that I'll have to delete in a couple months. Everything works fine with AJAX and the PHP-SDK and only two issues remain unresolved (which I imagine the button would handle):
No way to tell if an action is posted already. I have "unique" enabled already but I have no way to hide the "Add to timeline" option if it's already posted.
No nice visual. I could render the current (soon to be deprecated) button and steal the image but I'd prefer to use something that will look the same as other sites and make users comfortable that they know what will happen when they click.
Does Facebook have a replacement for this button? Or are all timeline posts supposed to be taking place silently after an initial permission grant? I thought Facebook encouraged more user approval for Timeline actions--where is that control supposed to go? To third party UI elements? Doesn't that undermine some of the power of the Facebook ecosystem--the fact that it's the same buttons with the same behavior everywhere on the web? It's kind of frustrating the way it's presented now--pushing you in one direction in the tutorial only to tell you that the feature will be deprecated within months. I've mostly given up hope for problem #1 but is there an official non-deprecated button that will give me a nice comforting visual?
Also, are there other features that this button does that are being/have been transitioned to other plugins?
EDIT: Does it make sense to link the "Like" button to a timeline event? It seems like semantically that would make sense but there doesn't seem to be any built-in way to do it.