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.

3369 questions
288
votes
18 answers

How to show the "Are you sure you want to navigate away from this page?" when changes committed?

Here in stackoverflow, if you started to make changes then you attempt to navigate away from the page, a javascript confirm button shows up and asks: "Are you sure you want to navigate away from this page?" blee blah bloo... Has anyone implemented…
Shimmy Weitzhandler
  • 92,920
  • 119
  • 388
  • 596
236
votes
13 answers

How to send email to multiple recipients using python smtplib?

After much searching I couldn't find out how to use smtplib.sendmail to send to multiple recipients. The problem was every time the mail would be sent the mail headers would appear to contain multiple addresses, but in fact only the first recipient…
user1148320
  • 2,361
  • 2
  • 12
  • 3
174
votes
14 answers

How do I raise the same Exception with a custom message in Python?

I have this try block in my code: try: do_something_that_might_raise_an_exception() except ValueError as err: errmsg = 'My custom error message.' raise ValueError(errmsg) Strictly speaking, I am actually raising another ValueError, not…
Kit
  • 26,307
  • 30
  • 94
  • 145
151
votes
3 answers

jQuery show for 5 seconds then hide

I'm using .show to display a hidden message after a successful form submit. How to display the message for 5 seconds then hide?
josoroma
  • 1,797
  • 2
  • 13
  • 16
150
votes
5 answers

Problems with entering Git commit message with Vim

OS: Windows I write $ git commit then "# Please enter the commit message" I write some text, like "Form validation added" Press Enter and not commited. Then i press Shift+Enter, Ctrl+Enter, Alt+Enter - still not commited. I think its stupid…
aTei
  • 1,804
  • 4
  • 15
  • 17
121
votes
3 answers

How do I reword the very first git commit message?

I have a working tree containing 3 commmits: ➜ ~myproject git:(master) git log commit a99cce8240495de29254b5df8745e41815db5a75 Author: My Name Date: Thu Aug 16 00:59:05 2012 +0200 .gitignore edits commit…
Henrik
  • 2,061
  • 4
  • 19
  • 29
117
votes
9 answers

Git commit with no commit message

How can I commit changes without specifying commit message? Why is it required by default?
Nik
  • 1,235
  • 2
  • 9
  • 3
107
votes
5 answers

Disable messages upon loading a package

I have a package in R (ROCR) that I need to load in my R environment. Upon loading the package, a set of messages are printed. This is ordinarily fine, but since the output of my R script is being used for further analysis I want to completely…
learner
  • 1,686
  • 2
  • 17
  • 21
103
votes
3 answers

What are the limits of messages, queues and exchanges in RabbitMQ?

What are the allowed types of messages (strings, bytes, integers, etc.)? What is the maximum size of a message? What is the maximum number of queues and exchanges?
tuchk4
  • 2,090
  • 4
  • 17
  • 32
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,959
  • 29
  • 109
  • 164
73
votes
6 answers

Do you end your exception messages with a period?

I've seen both exception messages with and without a period. And I can think of some reasons of why both could be good. No dot would give you the freedom to add the period or leave it out if you wanted to. Could be useful if the message was going…
Svish
  • 138,188
  • 158
  • 423
  • 589
72
votes
4 answers

exit with error message in bash (oneline)

Is it possible to exit on error, with a message, without using if statements? [[ $TRESHOLD =~ ^[0-9]+$ ]] || exit ERRCODE "Threshold must be an integer value!" Of course the right side of || won't work, just to give you better idea of what I am…
branquito
  • 3,276
  • 4
  • 28
  • 54
70
votes
8 answers

How to use the default git commit message after resolving merge conflicts?

After doing a merge and resolving conflicts, is there an "easy" way to just accept the default generated commit message from the command line? One of our developers will resolve all the conflicts, and then do a git commit -m"Merge Commit" which…
yoyodyn
  • 1,347
  • 1
  • 10
  • 9
64
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,340
  • 10
  • 31
  • 45
56
votes
10 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,546
  • 2
  • 16
  • 25
1
2 3
99 100