FAQ Database Discussion Community


How to store messages between users in database?

mysql,database,storage,messages
I am building a small e-mail like messaging app for a project, where a user would send out a message to another with information like meeting times and such, and I'm wondering about how to store all the messages exchanged. My issues are: Should I store all messages between all...

erlang processes and message passing architecture

concurrency,process,erlang,messages
The task I have in hand is to read the lines of large file, process them, and return ordered results. My algorithm is: start with master process that will evaluate the workload (written in the first line of the file) spawn worker processes: each worker will read part of the...

RabbitMQ receive messages sequentially after ACK

node.js,rabbitmq,amqp,messages
I am looking to get the following pattern to receive messages "sequentially" with RabbitMQ. I use Node.js framework as consumer. Lets say there are 3 messages in the queue, I need this pattern: receive msg#1 -> process -> send ACK -> receive msg#2 -> process -> send ACK receive msg#3...

Customize Form Error Messages in Rails

ruby-on-rails,messages
So, I'm trying to come up with a way to customize the error messages in form_for's. The most elegant way to do this, in my opinion, would be inside the text area itself. So far, any method I've tried messes up the form completely. Please share your thoughts and methods....

boto.sqs: read and write SQS messages

boto,messages,amazon-sqs
I would like to read messages from one que and write them to another que. But, the message class is custom format and I am not sure how to write a message class and import it. That is, the structure follows as: import boto.sqs #read messages from one que conn...

Duplicate Google cloud message account registered when app re-install

android,android-gcm,messaging,messages,amazon-sns
I am working on integrate GCM to the android app, my working flow is first whenever the user enter the app, it check whether the share pref. has the gcm id, if not , then reg and save to share pref. The problem is, it seems the id is duplicate...

Setting permissions to broadcast messages across multiple desktops

c++,winapi,privileges,messages
Hi, I'm trying to send messages between applications that are located on different desktops. In order to accomplish this, I'm using BroadCastSystemMessage using BSM_ALLDESKTOPS set for LPDWORD lpdwRecipients parameter. As the MSDN documentation says, BSM_ALLDESKTOPS - Broadcast to all desktops. Requires the SE_TCB_NAME privilege. In order to meet this...

Python IRC bot for Twitch receiving two messages in one output

python,chat,bots,irc,messages
So I've created a Chat bot for Twitch.tv which has been working fine for multiple months until a couple of days ago. Either the chat is too flooded or twitch changed something with the way they send messages. Either way, in every message received I add a new line when...

Messaging between users with node application

node.js,encryption,user,messages
I want to implement in-app messaging in my iOS and Android application, and I am unsure about how the backend functionality should be created. From before my backend is running with Node.js and users etc. are stored with MongoDB. I figure that I quite easily could implement messaging just by...

Form1 does not start

c#,forms,server,messages
So I'm developing an Server-Client app, and yesterday I solved a problem with the messages. (Server side not reading message correctly) Today, I'm facing a new problem. My objective is to click in a website button by his ID, using messages that come from the Client. So I created a...

Show global faces message only in first h:messages component

jsf,jsf-2,messages
I have two global message components in one JSF page: This <h:messages id="msg1" layout="table" globalOnly="true" showDetail="true" showSummary="false"/> And this: <h:messages id="msg2" layout="table" globalOnly="true" showSummary="true" showDetail="true"/> The first one is initiate here: FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "", "No result")); And second message initiated here: FacesContext.getCurrentInstance().addMessage(null, new...

aspx.cs (.net version 1.0 legacy) constructor causes message not to appear

c#,asp.net,debugging,constructor,messages
I am working on a legacy .net version 1.0 aspx.cs project for web development. To debug the code, I use a series of Response.Write statements such as: string strMessage = "Reached start of method A"; Response.Write("<script>alert('"+strMessage+"');</script>"); These work; however, when I get to a new constructor: MyObject myObject1 = new...

IF in WHERE clause

if-statement,delete,chat,where,messages
del=0 - not deleted, del=1 - sender and reciever deleted message, del=2 - sender deleted message, del=3 - receiver deleted message. My code is SELECT * FROM messages WHERE (`from` = :owner AND `to` = :partner) OR (`from` = :partner AND `to` = :owner) AND IF(`from` = :owner,`del`=3 OR `del`=0,`del`=2...

How to query for objects which has certain parse objects contained in a relation

parse.com,messages
I have a messaging system in Parse, a Message class and a User class. Each Message has a relation called senders to multiple users. How do I query for all messages for a single user?...

Why do some windows not receive Windows messages

windows,messages,windows-messages
Using Spy++ tool on Visual Studio I can see that windows like the Desktop or Explorer(The File Explorer thing) receive WM_ messages, but windows like Firefox or Visual Studio do not receive messages. Why do some receive messages and others don't. (By WM_ messages, I mean things like, WM_MOUSELEAVE or...

Storing all conversations in a table

mysql,messages
I'm trying to build something like a message board, just for learning PHP and MySql. I've been watching some tutorials about conversation systems and in one of them the guy was storing ALL of the conversations in the same table. All the messages stored together. Is that a good idea?...