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
899
votes
9 answers

MySQL: Large VARCHAR vs. TEXT?

I've got a messages table in MySQL which records messages between users. Apart from the typical ids and message types (all integer types) I need to save the actual message text as either VARCHAR or TEXT. I'm setting a front-end limit of 3000…
Tom
  • 30,090
  • 27
  • 90
  • 124
313
votes
17 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
  • 101,809
  • 122
  • 424
  • 632
288
votes
18 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,881
  • 2
  • 14
  • 3
260
votes
16 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
  • 30,365
  • 39
  • 105
  • 149
160
votes
4 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,887
  • 2
  • 14
  • 16
154
votes
10 answers

Git commit with no commit message

How can I commit changes without specifying commit message? Why is it required by default?
Nik
  • 1,605
  • 2
  • 11
  • 4
154
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,844
  • 4
  • 15
  • 17
149
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,421
  • 4
  • 25
  • 33
127
votes
18 answers

Java, How to get number of messages in a topic in apache kafka

I am using apache kafka for messaging. I have implemented the producer and consumer in Java. How can we get the number of messages in a topic?
Chetan
  • 4,735
  • 8
  • 48
  • 57
124
votes
6 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,895
  • 2
  • 19
  • 21
110
votes
3 answers

What are the limits of messages, queues and exchanges?

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,270
  • 5
  • 21
  • 34
105
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,864
  • 5
  • 35
  • 60
94
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
  • 152,914
  • 173
  • 462
  • 620
89
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,587
  • 1
  • 11
  • 9
85
votes
5 answers

What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?

I was wondering what the difference between the WM_QUIT, WM_CLOSE, and WM_DESTROY messages in a windows program, essentially: when are they sent, and do they have any automatic effects besides what's defined by the program?
user98188
1
2 3
99 100