gmail – How can I reverse moving messages from archive to trash?

Concerned about space in my gmail I just took a rash and stupid action, and “deleted” everything from the “archive.” I did this on mozilla thunderbird on my mac. It’s clear to me I haven’t lost the messages (They’re now in my gmail trash, plus I have a second laptop that until it syncs has everything where it belongs, and time machine backups from a couple weeks ago….), but I am unsure how to restore the messages (i.e. get them all back in their appropriate folders). I would be happy with either

1) the best way to restore my gmail based on the version sitting on thunderbird on another computer or time machine backup

2) the best way to reverse this mass “deletion”

Do you have suggestions?

java – Buffered reader end of stream and empty messages while reading from socket

I read message from socket and append to my queue for processing. I need to know the difference between when empty message is received or what does end of stream means in my case. Sometimes, I receive empty messages that makes socket dirty and as a result the connection is terminated after specific number of tries. Is below piece of code correct or is there anything I need to consider.

public class SocketEOF {

private int invalidMsgCount = 0;

private BufferedReader reader = null;


public void receiveMessages(Socket client) throws IOException {
    while (true) {
        try {

            String response = (String) readMessage(client);
            if (invalidMsgCount > 0) {
                invalidMsgCount = 0;
                System.out.println("Problem resolved in attempts: " + invalidMsgCount);
            }

            appendMsgAndNotifyToQueue(response);
        }
        catch (InvalidMessageException ex) {
            invalidMsgCount++;
            System.out.println("Invalid Message received at socket: " + client);
            if (invalidMsgCount >= 20) {
                System.err.println("Socket broken. Connection lost.");
                closeSocketGracefully();
            }
        }
    }
}


public Object readMessage(Socket client) throws IOException, InvalidMessageException {
    String msgStr = null;
    if (null == reader) {
        reader = new BufferedReader(new InputStreamReader(client.getInputStream(), StandardCharsets.ISO_8859_1));
    }

    char() charBuf = new char(5);
    int noOfchar = reader.read(charBuf);

    if (noOfchar > 0) {
        msgStr = new String(charBuf);
        msgStr = msgStr.substring(0, noOfchar);

        System.out.println("Message Received at " + client.toString() + ": " + msgStr);
    }
    else {
        throw new InvalidMessageException("Invalid message of -1 length received at " + client.toString());
    }

    return msgStr;
}

Looking for social medias (like discord / matrix-made stuff / …) that would accept messages formatted in HTML/CSS

as the title suggest, I’m looking for a social media that allows users to send messages formated in HTML/CSS. Possibly having a desktop/smartphone version instead of just a web app.

example of usage:

  • sending something like that (in an alternative HTML editor for instance):
<div style="background-color:black;color: white; border-radius: 5px;">
    <p style="padding:5px">hi, this is a picture of a duck</p>
    <img src="https://i.ytimg.com/vi/gAGLWUvobZY/hqdefault.jpg" width="100%">
</div>

would render the message on the screen of the receiver as formatted.

I really don’t know where to search such things, I looked on alternativeto.net but didn’t found a thing even close to that,

PS: I’m aware that because of the security issues that may come with it and the lack of potential users, this thing might simply not exist, but with all these things being made with electron, I think it’s just a matter of time before someone makes it.

aircrack ng – Failing to capture messages 1 and 3 of WPA2 4-way handshake?

Trying to demo cracking a WPA2 protected AP using the aircrack suite, but the results seem to be nondeterministic (i.e. not good for demos).

Did some detective work with Wireshark and observed that after the authentication and association conversations, my monitoring interface only captured the client portion of the 4-way handshake (messages 2 and 4) and not the AP messages approximately 95% of the time.

The device I’m monitoring with is about 15 feet away from the device I’m deauthenticating, and the router is in another room probably about 20 or so feet away from both devices, if positioning is a factor here. I’ve tried deauthenticating a smart phone and a laptop with similar outcomes. Any explanation or suggestions would be appreciated.

Outlook for Mac – Messages in Sent Not Actually Sent

Environment: Outlook 2016 for Mac. Outlook 2016 for Windows on Windows 2016 Server using RDS. Problem: A message is sent from Outlook on the Mac and goes into the Sent folder on the Mac. The message is not really sent. Looking in Outlook for Windows on the RDS server shows the “sent” message in the Drafts folder. Opening OWA shows the message in the Drafts folder. If Outlook on the RDS server is not open, this problem does not occur.

parallelism – Processing messages in parallel with Kafka & Akka

We have data in Kafka which we need to export to multiple destinations. Each message key is to be exported to one destination.

A destination can be a REST endpoint, a file, a database etc.

Each exporter can have its own speed or rate limits and one exporter should not slow down the other.

In Kafka, the parallelism is dependent on the number of partitions, rather on the no. of messages.

Approach #1

We decided to use Akka where we read each message from the Kafka topic and tell to the exporter actors each of which will export to their respective destination like REST, file, database etc.

Problem: At-most once semantics only. The problem here is that, we have to commit the messages in Kafka. When we tell to an actor, we do not know, whether that actor has processed that message or not. It may still lie in the mailbox and we may commit that message. These committed messages are not read again after process restart.

while(true) {
    consumer.poll().forEach( record -> { 
        getExporter(record.key()).tell(record, ActorRef.noSender()));
    });
    consumer.commitAsync();
}

Approach #2

Read each message, store it in a persistent file, export it and remove it from the persistent file after export.

We need a persistent actor for this, for whom we need to tell to. So, we may use ask for this and wait till the actor puts it into the map and then tell it to the exporter.

Are there any better ways of doing this? Are there any reference architectures?

buttons – Showing edit mode for messages

I’m working on a desktop UI that has a notes section which allows the user to submit notes and edit them afterwards. When I go into edit mode, the “save” button shows up, and I worry that it competes against the submit button (we’re not doing a return to submit, so we need to have the submit button).

I can’t decide if I should be turning it into a modal edit, or whether it’s technically ok to keep the edit mode inline like this? I’m worried that the buttons are competing. Is there anything out there that does something similar?

modal edit

exchange 2013 – On-premises users aren’t getting email messages from Office 365 users

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Is there a way to block people using GBWhatsApp from sending me WhatsApp messages?

More or less the title itself. I don't want to simply block them using the blocking option on WhatsApp because they will know. I don't know if it is possible or not, but if you have any idea on how to do it please help me.

icloud – Recovering WhatsApp messages after iPhone failed

The following happened, I would be very grateful if you could help me:

  • April 29: latest WhatsApp backup
  • May 6 night: iPhone ICloud latest backup
  • I don't open WhatsApp for a whole day and most of my conversations are muted
  • May 7: iPhone fails, there is nothing to do about it
  • May 8: I get a new iPhone, ICloud restores everything
  • I received messages from my family while the old phone was failing. I also have text messages from April 30, May 1, etc., so after the last WhatsApp backup
  • I have no text messages between May 6 at night and May 7. So between the last iPhone backup and the lock. There is only one person who could have written to me, but they were silenced and I never opened. Is it possible that you have lost / lost your (possible) message?