chatroom

Batch .txt reader

别来无恙 提交于 2020-08-05 06:14:08
问题 So, basically I want a Batch file to read a .txt. The problem is that the Batch file needs to update everytime a new line gets written to the .txt @echo off set "pc=%1" FOR /F "delims=:" %%A IN ('findstr /N .* "%pc%"') DO set "zeilen=%%A" type %pc% set /A zeilen1=%zeilen% :loop if not %zeilen% == %zeilen1% ( set "line=" set zeilen2=%zeilen% - 1 for /f %%a in ('more/e +%zeilen2% ^< %pc%') do ( if not defined line set "line=%%a" ) echo %line% set /A zeilen+=1 ) FOR /F "delims=:" %%A IN (

Is there a way to determine which Mulit User Conferences (MUC) a user has joined?

我的梦境 提交于 2020-01-29 05:17:32
问题 I wonder if there is a way to query the XMPP server (passing user JID?) to find out what chat room(s) this user is currently in? If not, can we query jabber server to get a list of all active chat rooms? BTW we're running ejabber enabled for multiuser chat. A solution using a java library (smack?) would be ideal. 回答1: As mentioned by Joe Hildebrand, there is no such a standard feature as it is a privacy violation to allow that over XMPP, so you cannot expect to do that from Smack. Maybe with

JTextPane or JEditorPane for a Chatroom

空扰寡人 提交于 2020-01-15 04:38:04
问题 I have to make a chatroom like this one : The message displayed also have to show the smileys and everything myst be copy/pastable like in Skype. I don't know what to choose between the JEditor and JTextpane. I tried both I faced the following difficulties : JEditorPane : Copy/Pastable, can show the smileys and copy paste them. I can't set the leftIndent of the message when I set the content to text/html JTextPane : I can set the leftIndent Can't copy/paste the smiley Icons when I set the

Is it possible JIDs with only different resources joining same multi-user chat room

爱⌒轻易说出口 提交于 2020-01-05 04:25:12
问题 In xmpp, following 2 users could join multi-user chat(MUC) or subscribe to same pub-sub node? public@service.com/user1 public@service.com/user2 回答1: When joining an anonymous MUC room, a room where others do not know the "real" JID of others in the room, the connecting user provides their own JID. When joining a non-anonymous room the users provide their full JID which is transmitted then to all occupants. In either case there is nothing to prevent the user from joining with the same bare JID

Ajax jabber/XMPP client recommendations (real experience only please) ! [closed]

我与影子孤独终老i 提交于 2019-12-29 16:24:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . i'm setting up a chat system for my niche social site and have decided on ejabberd for the server side, but i cannot find any decent web-based ajax clients. most seem to be abandoned years ago or simply do not work. i've looked at every single one here : http://xmpp.org/xmpp-software/clients/ Is anyone running a

Will polling from a SQL DB instead of a file for chat application increase performance?

雨燕双飞 提交于 2019-12-25 07:49:39
问题 I'm working on a chat application which I would love to use a SQL db for. My problem is, after a few google searches, i have people telling me from one site, that using a DB would be much slower then using a normal file (e.g Text or JSON file), but then on some other sites, people are saying the complete opposite. And I don't know about you guys, but when it comes to creating web apps for users, the users always come first. So as much as I'd love to use a SQL DB as 1.) I have good experience

Implement group chat using ejabberd [closed]

假装没事ソ 提交于 2019-12-23 03:02:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago . I want to implement group chat like What's App MUC(room chat) has some limitations: 1. user can not get the history of which rooms he has joined. 2. if the invited user is not online, then the user can not join the room and get the message. Multi cast XEP-0033, seem good solution

XMPP Room Invitation

前提是你 提交于 2019-12-21 21:38:46
问题 In my chatting application I want to implement Group Chatting functionality. For the same I want to create rooms and send the invitations to my friends to join the room. Here is my code to join and invite the friend to room. To Create the Room //Create Room btn_CreateRoom = (Button)findViewById(R.id.btn_usermenu_CreateRoom); btn_CreateRoom.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub try { muc = new MultiUserChat

Long polling (pending request) for JSF

人盡茶涼 提交于 2019-12-13 02:37:00
问题 I need to implement long polling or pending request for a chatroom. I tried a4j:push, but it seems doesn't work like a real long polling approach (see the following discussion: https://community.jboss.org/message/16614). The question is: which alternatives do I have to realize long polling? I'm using JSF 1.2, JAVA EE 6 and RichFaces 3.3.2. Thaks in advance! 回答1: You need to use the a4j:poll component from RichFaces. The exadel live demo has a very nice sample and explains the main properties.

Problem with creating chat room application

ⅰ亾dé卋堺 提交于 2019-12-11 18:49:00
问题 I am trying to create a chatroom like application for some website. For this I am having two options: To use socket programming and open a socket at server and connect this to all the clients who are in that chat room. for this client first download the applet of the chat room. just to send requests to server with Ajax continuously with 1 second interval and refreshing the chat content area of page. I can't decide which stretagy will be better. So if anyone tell me which will be less resource