Questions tagged [message]

For questions regarding Facebook messages, JavaScript messages, mobile messages (Android, iOS, windows-phone), etc. Not for use for error messages. Include additional tags to indicate messaging platform, programming language, etc.

Questions about sending and receiving messages of any kind. As this tag is vague, use a more specific tag instead if possible. For example, most questions about Facebook messages should have the tag for the programming language, , and possibly a tag for the API or framework you're using. If your question is about a , an , a window, a , an , … then use the appropriate tag instead. Do not use this tag (or any tag) to indicate that you tried something and got an error message.

4541 questions
84
votes
10 answers

Cheapest way to send SMS for number verification?

My application needs to verify phone numbers that are provided by the user. What is the absolute cheapest way to send an SMS to a phone? Which company/API should I go to? I'm not looking for a hack solution to send out 10 SMS a month kind of thing,…
erotsppa
  • 14,248
  • 33
  • 123
  • 181
66
votes
5 answers

SignalR + posting a message to a Hub via an action method

I am using the hub- feature of SignalR (https://github.com/SignalR/SignalR) to publish messages to all subscribed clients: public class NewsFeedHub : Hub public void Send(string channel, string content) { …
ollifant
  • 8,576
  • 10
  • 35
  • 45
61
votes
9 answers

Django override default form error messages

How can I overwrite the default form error messages (for example: need them in other language) for the all apps in my project (or at least for 1 app) Thanks!
Brock
  • 1,635
  • 2
  • 18
  • 27
57
votes
17 answers

Android - Hide all shown Toast Messages

How do I remove all toast messages currently displayed? In my App, there is a list, when a user clicks on an item, a toast message is displayed, 10 items - 10 toast messages. So if the user clicks 10 times, then presses the menu button, they have to…
crazyV
  • 571
  • 1
  • 4
  • 3
52
votes
3 answers

Toastr: How to prevent fade out with sticky toast on mouseover?

I've been playing with toastr and have successfully set the timeout to 0 so the toast remains sticky, however the toast disappears when I mouse out of the toast. I'd like to override this so the toast only goes away if the user clicks it - ideal…
SB2055
  • 12,272
  • 32
  • 97
  • 202
51
votes
4 answers

Updating GUI: Runnables vs Messages

To update the GUI from other threads, there are basically two main approaches: Use java.lang.Runnable with any of these methods: Activity.runOnUiThread(Runnable) View.post(Runnable) View.postDelayed(Runnable, long) Handler.post(Runnable) Use…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
47
votes
1 answer

Vim: Showing an error message from a Vim Script

I am trying to show an error message in a Vim script: function! Foo() " ... endfunction au BufWritePost *.py silent call Foo() The "throw" keyword works, but is probably not the right way to do this. I found references to "echomsg", but this…
knipknap
  • 5,934
  • 7
  • 39
  • 43
46
votes
7 answers

Get all messages from Whatsapp

I'm trying to implement an app that will show in a textview all the messages received from Whatsapp. Is there any way to do it? Is it possible to extract all the messages from Whatsapp?
user1141833
  • 479
  • 1
  • 5
  • 4
46
votes
4 answers

WCF Error : Manual addressing is enabled on this factory, so all messages sent must be pre-addressed

I've got a hosted WCF service that I created a custom factory for, so that this would work with multiple host headers: /// /// Required for hosting where multiple host headers are present /// public class…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
46
votes
4 answers

Ruby on Rails i18n - Want To Translate Custom Messages in Models

I have attributes with special validation where I use the message clause to display a special message just for that validation. Here is one example: validates :email, presence: true, length: { maximum: 60 }, format: { with:…
46
votes
2 answers

Chrome extension: Get current tab from popup

I'm writing a Chrome extension and, in one part of it, I need to get the current tab's title and URL when a button on the popup page is clicked. I've worked with Chrome's message passing system before and, after much effort, managed to get it to…
mythofechelon
  • 3,692
  • 11
  • 37
  • 48
42
votes
1 answer

How to move multiple messages in mutt

Before all of my messages were in one maildir. Now I want move all arch-general mail to another one. From here, I see: "move" as we know it from other places is "save" in mutt. "save" as we know it from other places is "copy" in mutt. ~e EXPR …
Paul Yin
  • 1,753
  • 2
  • 13
  • 19
41
votes
9 answers

Why don't my Django unittests know that MessageMiddleware is installed?

I'm working on a Django project and am writing unittests for it. However, in a test, when I try and log a user in, I get this error: MessageFailure: You cannot add messages without installing…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
40
votes
17 answers

Getting rid of "There is no source code available for the current location."

OK, this is my own fault, but I can't seem to rescue myself. Whenever I try to step into a class that has fields with assignments calling into .NET code, I get a dialog box that contains the text "There is no source code available for the current…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
38
votes
11 answers

Get MD5 String from Message Digest

I understand how it works but if I want to print out the MD5 as String how would I do that? public static void getMD5(String fileName) throws Exception{ InputStream input = new FileInputStream(fileName); byte[] buffer = new byte[1024]; …
Tom
  • 765
  • 2
  • 8
  • 8