Twitter Click when you like the shock, how to achieve - shake

Twitter Click when you like the shock/vibrator, how to achieve,
I only know there is this
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);

Already . fixed .
import
AudioServicesPlaySystemSound(1519);//1520//1521

Related

How to predefine a message and send it in Slack chat?

Let's say I have a message which I constantly send, "Can you please update the status of the project?". Is there a way to save this message somewhere and send it using a Slash command like /proj-status . Or is there any other way to achieve this?
Thanks in advance!
I use small workflows like this. To use it I hit the shortcut icon in the #support channel then "Please open a ticket" and it posts that boilerplate message "Click on the question mark etc etc". It's handy if you're repeating yourself a lot, but also if you want to spend time once writing a careful reply and reuse it.

A way to open up Slack Search UI (in a browser) from a URL

I was trying to see if there was a way to open up the new Slack Search UI, in a browser, from a URL.
For example, in Microsoft Teams, you can open up the following link https://teams.microsoft.com/_#/apps/a2da8768-95d5-419e-9441-3b539865b118/search?q=yourQueryHere in a new tab, and it would open up your Teams and open up the search UI with yourQueryHere results already listed.
Is there something similar for Slack? So far I do not believe it is possible because Slack does not have routes for search pages.
Let's say we are here: https://company.slack.com/messages/channelId/.
We then type something in the search bar and press search. The URL stays constant.
Note that Slack seems (?) to have deeplinking for search (slack://) according to their docs, but there are no examples (I tried slack://search/hello, slack://search).
I had the same question for Slack support earlier - it looks like they removed Slack deep search linking via the slack://search URL after they released their new search functionality:
I am sorry to report that we currently do not support search deep linking at the moment. We previously did but it needed to be removed while our improved search was being worked on and released.
The docs you linked to used to have a better description further up the page about how to use this deep link and the required syntax. It looks like the example workflows section you link to is a remnant of that.
I am really sorry that the docs mislead you. I will contact the API docs team and ask them to remove those references. Hopefully in the future we can reinstate this ability once again.
It seems that the last parameter from the search URL -https://app.slack.com/client/.../search/search-eyJ... - is Base64 encoding over a JSON string:
{
"d": "search query goes here",
"q": "... (not sure what this is used for, can be disregarded)",
"r": "search query goes here"
}
So I'm using this method and it works fine:
# search.py
import sys
import base64
import os
import json
from urllib.parse import quote
query = sys.argv[1]
search_data = json.dumps({
"d": quote(query),
"r": quote(query)
})
qhash = base64.b64encode(search_data.encode()).decode()
url = f'https://app.slack.com/client/.../search/search-{qhash}'
os.system(f'open "" {url}')
And then:
./search.py "my search query"
I'm afraid to say that there's no way at the moment to do what you describe, but it's a pretty cool idea! I'm not sure how we could cleanly manage such a change in light of our recent adjustments to the search UI (it's not in the side pane anymore!), but I'll pass your desire for such a thing along to the rest of the team here.
Thanks for writing in about this! Please let me know if you happen to think of anything similar you'd like to see changed or added to the app, and I'll be happy to make sure the right folks hear about it.
I've sent a message to the Slack team, and they've responded extremely fast. Unfortunately, there is no way at the moment.

Create new button not working - eZ Publish

I have multiple language on site , so in Admin panel not work button "Create new" in ger-DE but working in eng-GB
i have no idea what is reason of this issue.
It is my siteAccess for ger-DE
[RegionalSettings]
Locale=ger-DE
ContentObjectLocale=ger-DE
SiteLanguageList[]
SiteLanguageList[]=eng-GB
SiteLanguageList[]=ger-DE
if i will change like this
[RegionalSettings]
Locale=ger-DE
ContentObjectLocale=ger-DE
SiteLanguageList[]
SiteLanguageList[]=ger-DE
SiteLanguageList[]=eng-GB
Than it working. but half of admin panel is on english . what i`m do wrong ?
You need to set TextTranslation option to enabled, too which enables translating the interface. Complete example:
[RegionalSettings]
Locale=ger-DE
ContentObjectLocale=ger-DE
SiteLanguageList[]
SiteLanguageList[]=ger-DE
SiteLanguageList[]=eng-GB
TextTranslation=enabled
Note that you also need to clear ALL the caches for this change to work.
I translate all classes to all languages and it`s work now!

How to test sending email in Laravel 5 using Behat?

I've just started learning to work with Behat in Laravel 5 and wonder how I could verify email sending. I tried this tutorial but it did not work (maybe it's out of date?). I also tried googling but couldn't find many sources. If you could show me how to achieve this, or direct me to a nice tutorial, I'd be really grateful.
Thanks!
I personally use mailtrap instead of mocking. I find it very usefull.
If you have set all the requirements, you can fetch your last sent mail by this method:
$lastEmail = $this->fetchInbox()[0];
Then you can retrieve let's say the title like this:
$subject = $lastEmail['subject'];
For a nice and clean tutorial watch: https://laracasts.com/lessons/trapping-your-email
I hope it helps!

Add file via button using Dropzone plugin

Is it possible to use an external button to add file using Dropzone plugin?
I found this documentation but it doesn't answer my question.Indeed, I can't be able to add file using an handler event such as click. Is there a solution?
I guess you want your button to have the clickable option, isn't it?
If so you should configure your Dropzone for this like that:
Dropzone.options.validationForm = {
clickable: "#your_button_id",
//rest of your code
}
If it isn't the answer you're looking for maybe you could try explain better what you want or put a snippet of your code :)

Resources