w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
List of chat room members
This question is old but I recently encountered this exact issue (xmppRoom:didFetchMembersList: is passed an empty array). In my case the problem was that when users got invited to the room they would have a role of "participant" and an affiliation of "none". The fetchMembersList method in XMPPRoom looks for items with an affiliation of "member". You can change the affiliation like so: [xmppRoom editRoomPrivileges:@[[XMPPRoom itemWithAffiliation:@"member" jid:userJID]]]; For details on roles and affiliations, see XEP-0045.

Categories : Iphone

chat room displaying for two users
It would make the whole thing easier if you added ID's for messages. make a column called ID and use it to identify the message. $query="SELECT * FROM chat1 WHERE sender='$sender' AND receiver='$receiver'" This code will get all messages posted by the two users. but if you want to find out which message got posted when, then you will have to do this> $query="SELECT * FROM chat1 WHERE sender='$sender' AND receiver='$receiver' ORDER BY id" This will get message by message and order them by the ID. ID will be set to auto_incrediment in the table. if you want only the two of them to see the message, then you will have to do something like this: if($_SESSION['current_user']=="$sender" OR $_SESSION['current_user']=="receiver") { //If the visitor is the sender or receriver }

Categories : PHP

Quickblox, chat room does not sends push notification
Push messages does not sends automatically. If you know your recipient user's ID you can send push message manually - you should call method provided below: [QBMessages TSendPushWithText:@"text" toUsers:(int)userId delegate:nil];

Categories : Iphone

How to implement dynamic chat application in Ios using php, Something related to Skype like application
As you know that without getapi.php it is not possible to update chat list so you need to make management something like: you need to use NSTimer and with the help of timer you need to call your getapi.php service after certain time interval let say after 2min so that chat can be refresh and user get the reply this is the only possible way at my knowledge.

Categories : PHP

Creating chat application on XMPP using php
For working with XMPP on client side, you can either use websockets or http bind(aka bosh) based on your requirements and support from the xmpp server. I have tried and experimented with trophyjs and Candy.Js. Candy being slightly better in terms of plugins and support if you like chat rooms.

Categories : PHP

Signal R Chat application on IIS not working
I think you have to remove all the leading slashes "/" (Ans maybe also upgrade to at least jquery-1.9.1) <link type="text/css" rel="stylesheet" href="Css/ChatStyle.css" /> <link rel="stylesheet" href="Css/JQueryUI/themes/base/jquery.ui.all.css" /> <!--Script references. --> <!--Reference the jQuery library. --> <script src="Scripts/jquery-1.9.1.min.js"></script> <script src="Scripts/ui/jquery.ui.core.js"></script> <script src="Scripts/ui/jquery.ui.widget.js"></script> <script src="Scripts/ui/jquery.ui.mouse.js"></script> <script src="Scripts/ui/jquery.ui.draggable.js"></script> <script src="Scripts/ui/jquery.ui.resizable.js"></script> <!--Reference the SignalR library. --> <script

Categories : Asp Net

Chat application in android without a server
Yes it is possible thats how I made my Phd project. When my application is started it asks the user to chose if it will be a "server" or client. And on the second phone it choses the other. But there is nothing in the middle of the communication.

Categories : Android

Why can't I authenticate to Facebook Chat in my iOS application?
I found my answer. In case anyone else runs into this same problem: I never actually told my XMPPStream to connect. I had tried all of the connect methods before, but they never worked. I now realize that I simply did not wait for them to finish connecting. Here is what I ended up changing: NSError *error; NSError *err; [_xmppStream connectWithTimeout:10.00 error:&err]; [_xmppStream authenticateWithFacebookAccessToken: FBSession.activeSession.accessTokenData.accessToken error:&error]; while (error) { sleep(1); [_xmppStream authenticateWithFacebookAccessToken: FBSession.activeSession.accessTokenData.accessToken error:&error]; } I realize that it's not the most elegant solution, but it works.

Categories : Iphone

What is the best way to test a video chat application locally?
Just make sure your web server is listening on a routable IP like "0.0.0.0", which you specify when you call http.createServer(port, ip, handler). Then point the browsers at the server's IP address such as http://192.168.1.1:3000 (fill in your specific IP and port). You can use the command ifconfig -a on linux or osx to get your server's local IP address, and ipconfig on windows.

Categories : Node Js

How to automate a chat application using Selenium/Webdriver?
If you dont have to test it on same browser, then refer to this post on how to open multiple browser windows for testing - How to switch instances in WebDriver.

Categories : Java

Chat application erlang ruby on rails
I think, The best aproach would be to let erlang serve the chat server itself. You could run your rails app and your reverse proxy would serve your chat server from a specific url. Also, if you serve your chat application through your rails application, Your chat application speed will be the speed of your rails app.

Categories : Ruby On Rails

how to make a popup chat application without using ajax
You could do this using WebSockets, but that requires both a server implementation and a web browser that supports it. Another technique is to use Long Polling, but again, this requires work on both the client and the server. The advantage is that this is a cross browser compatible technique.

Categories : PHP

C# Multi-Client socket Chat Application
Take a look at ZeroMQ. It was designed for applications like you're describing, works very well, and is free.

Categories : C#

Stuck with Multi-Client Chat Application
Your code looks like it could be improved quite a bit. Your main method for instance should have none of that code in it. It should start your Server class, and that's it (and note that class names should begin with an upper case letter as per Java standards which I strongly advise you to follow). I'm trying to make a MultiClient Chat Application in which a Server does nothing but listen and create connections. The Server is going to have to do more than that. It will need to create Clients, it will need to maintain a collection such as an ArrayList of Clients such as an ArrayList<ChatappClient> Otherwise how do you expect the Server to connect two Clients together? I think that in all you're going to need to think the structure and connections of this program out in more de

Categories : Java

What component should be used to display messages in a chat application?
I would use a JList for this. Your renderer could allow for the display of multiple lines as your GUI shows, and a JList has improved efficiencies over say a JPanel with lots of JLabels since it doesn't display actual components but rather the rendering of a component. A JTextPane could work as well, but I don't think is necessary since the text in the display should not be directly editable. Rather the JTextField or JTextArea at the bottom is where the editing and input should occur. Another option is to use a JTable with a single column -- same idea as above, but allows for editing of cells as needed. Edit You state: But how would i create the Name - Date (newline) message part in a JList? Would that be 1 list item? No, the cell renderer would use a component that allowed for

Categories : Java

How to make voice chat between two application over internet?
Yes. push notifications are the best way. find a nice tutorial here For voice chat, Twilio Client iOS VoIP SDK will be the best choice. It will also support text chatting. You can find docs also here. Dont worry. Everything is free. enjoy coding

Categories : IOS

NoSuchAlgorithmException when using aSmack 0.8.3 for XMPP chat application
This is how I handle it ConnectionConfiguration config = new ConnectionConfiguration("your_server", port_no); config.setSASLAuthenticationEnabled(true); config.setCompressionEnabled(true); config.setSecurityMode(SecurityMode.enabled); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { config.setTruststoreType("AndroidCAStore"); config.setTruststorePassword(null); config.setTruststorePath(null); } else { config.setTruststoreType("BKS"); String path = System.getProperty("javax.net.ssl.trustStore"); if (path == null) path = System.getProperty("java.home") + File.separator + "etc" + File.separator + "security" + File.separator + "cacerts.bks"; config.setTruststorePath(path); }

Categories : Android

How to create a standalone SQL DB file to use with my java chat application?
I am not sure if I understand your question properly, but reading about Minecraft plugins and SQL file somehow tells me that you actually miss some basic knowledge about the databases and server communication and that is what the question is really about. So to clarify. Databases: If you have a file which contains a database it is the SQLite Database. Here is the homepage of the project: LINK. You can do further googling about the project to fully understand it. However mySql is a separate database type, not based on sql files itself. In both databases (and others too) communication with the database, when using java or other programming language does not imply sql files to be created and managed, but is usually done through ORM link mechanism such as Hibernate homepage (for Java). T

Categories : Java

Approach for cross platform chat application with back-end in c#
You could do it with HTTP, but I'd suggest using TCP instead. There's a very solid base for a C# based TCP server on codereview right here which will outline how to deal with Socket objects how to handle connections properly. The main perk of going about it this way is that you can connect your client to the server, and the client can be virtually any language, it doesn't have to be C# - as long as the language supports sockets, you'll be fine. On top of that you can have the client listen to the server, which removes the need of polling the server for new messages every couple of seconds; the client socket will receive data when the server sends it, and you can handle it right away, nearly in real-time, whereas if you'd poll the server for new messages over HTTP every - say 3 seconds -

Categories : C#

Just downloaded the Scala Lift chat application and use the instructions to run it, but it fails
In versions of SBT newer than 0.10.0, ~jetty-run has been removed in favour of: container:start container:stop deployment // compiles the changes made while jetty is running.

Categories : Scala

html dangerous tags to avoid while developing a chat application
You should never use any black-list approach (which basically bans bad items), because there is always a chance that you either forget something, or that hackers will find a way to bypass your blacklist (eg. by using unicode). Instead, try using white-list approach, that is, create a set of acceptable tags and ban everything else.

Categories : HTML

c# Skype application send text to current chat on trigger
private void skype_MessageStatus(ChatMessage msg, TChatMessageStatus status) { if (msg.Body.Contains("faty")) { skype.SendMessage(msg.Sender.Handle,"Go away fatty!"); } } skype.MessageStatus += new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus); Thats a basic outline of what you can do, its easy to expand from there. Hope this clears things up.

Categories : C#

Java Group Chat Application: Knowing if groups have users currently active
You could have an arraylist for every group that holds the names of every player in that group. Then you could easily get the names of people in the group and the number of people in it. so if you have a class named Group you could have something like: class Group { private ArrayList<String> users; // or instead of String if you have a User class use that public Group(Type par) { users = new ArrayList<String>(); } public static void addUser(String userName) { users.add(userName); updateUsers(); } public static void removeUser(String userName) { for(int i = 0; i < users.size(); i++) { if(users.get(i).equalsIgnoreCase(userName)) { users.remove(i); } } updateU

Categories : Java

Adding private chat functionality to simple twisted chat server
Actually I figured it out by changing the for loop in handle_CHAT. As I want the program to send the message to the specific user, a "talkwith" string can be added to the class and this string can hold that specific user's name. Then this change turns the program from public to private chatting. msg = "<%s> %s" % (self.name,msg) for name,protocol in self.users.iteritems(): if name == self.talkwith: protocol.sendLine(msg)

Categories : Python

Swing chat window creates extra chat windows
Just remove the static keyword from private static UDPCS1 chat = new UDPCS1(); and no more chat windows will be there... Hoping it helped... Helped in my case i was doing something too,...

Categories : Java

implement own smileys icons for sending and receiving (i have my own designed images ) for iPhone chat application
Step by step implementation of smileys icons for sending in the app. Put all smileys icons in your project resources with a specific unique name. Now with pen & paper decide a unique code for every smileys icon. Be careful that code should be such that not used in the chatting generally. When a user select a icon in chat then before sending this message another side scan it & replace it via code(via identifing it's unique name). And at the receiver side before showing this message to user repalce code with the image. So there is no need to send images over communication , it will increase the load on message size. From user prespective , user will feel like that icons sends over the communication but actually it will be from local resoures. Hope this helps you. Any thing you w

Categories : IOS

PHP AJAX chat - Chat commands logic?
You need to define a syntax for your commands yourself. For example /ban <username> for a ban. First you check whether the message begins with a slash. If so it is a command. Now search for the first space, everything after the slash and in front of the space is the command name. Pass everything after the first space to the command. In this case the username. The command handles the parameters on it's own. It could look like this: $message = '/ban TimWolla'; if (substr($message, 0, 1) === '/') { // $message is a command $firstSpace = strpos($message, ' '); $command = substr($message, 1, $firstSpace); $parameters = substr($message, $firstSpace + 1); if (!hasPermission($command)) error('Permission denied'); switch ($command) { case 'ban':

Categories : PHP

which is faster, saving chat history in a text file and display it or using mysql db to save chat history
For a real-world implementation, I wouldn't consider either one of these a good option, but it definitely could be fun to play with. Using files isn't going to scale as well as the db,well... as easily. But really, I'd look into just setting up a jabber server and play with that. Or maybe look into node.js.

Categories : PHP

Simple chat application in java using JMS(Java messaging Service)
I hope the followings will give you a better idea. java technology for chat application chat application in java? no output for java client/server app http://oreilly.com/catalog/javmesser/chapter/ch02.html This is probably help you to learn the configurations https://java.net/projects/messageapi/pages/Demo

Categories : Java

How to run android chat application in android phones?
You have to change your host address to 10.0.2.2. Because for android emulators host address are different. You can read more about it here.

Categories : Java

Pop up chat box on new chat message
Web sockets tends to be the way to go for chat applications, in your case it sounds like server sent events could be perfect (as from what it sounds you're only receiving events, for two way communication you'll be good using web sockets), both lack support in older browser. So if you need to support older browsers you can go with long polling which out of your choices has the least load on the server as it's one request for every response. See this post: What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet? for more info on the specific technologies

Categories : PHP

Socket.io how to get room id
I'm not 100% sure what you need here. Do you want to return an array of room names? If so, you can just get the keys from the object returned by io.sockets.manager.rooms, e.g. using a helper function provided by Underscore: socket.emit('rooms', _.keys(io.sockets.manager.rooms) ); EDIT: I've used Underscore here, but you can also code your own keys function, by looping through the objects properties, with something like this: var keys = function( object ) { if ( !(object && typeof object === 'object') ) { return null; } var result = []; for (var key in object) { if (object.hasOwnProperty(key)) { result.push(key) } } return result; } Note that this might miss some edge cases, but you get the idea

Categories : Javascript

IRC bot to auto-ban spammers in a room?
Instead of using low level TCP communication, take a look at this IRC Library. It makes writing IRC software in managed .NET code a lot easier, including channel and users manipulation.

Categories : Dotnet

Maintaining room connection
I had this same issue, though for me it was when a user rotated their device (the activity would be destroyed, and along with it the connection to Google Play Services). I think my solution should work for you too. I answered my own question here: In a nutshell, here's the verbal explanation (see link for code samples): A device orientation change will destroy the MainActivity extends BaseGameActivity, and with it your game state (ie. your connection to Google Play Services). However, we can put all our GameHelper code into a 'headless' Fragment (a fragment without a UI), with setRetainInstance(true) declared. Now, when our MainActivity extends FragmentActivity is destroyed on an orientation change, the headless fragment gets stopped, and even detached, but not destroyed! (onDestroy() i

Categories : Android

Designing a 3D room in openSceneGraph
I would look at the openscenegraph website. Here: http://www.openscenegraph.org/index.php/documentation/getting-started

Categories : C++

0 x 0 Relative Div Still Taking Up Room
Inline block elements will render the spacing between the tags. Check this out: http://jsfiddle.net/sznH2/4/ <button>Hello world!</button><div class="outer-relative"><div class="inner-relative"><span>XXX</span> Remove the spaces and you're good to go

Categories : HTML

XMPPFramework - How to Add Users to MUC Room
I fixed this issue by doing as follows: Create the room first -(void) CreateRoom { XMPPJID *roomRealJid = [XMPPJID jidWithString:jidRoom];// Room name ex. abc@conference.xyz.biz XMPPRoom *newXmppRoom = [[XMPPRoom alloc] initWithRoomStorage:[[self appDelegate] xmppRoomStorage] jid:roomRealJid dispatchQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0)]; [newXmppRoom activate: [[self appDelegate] xmppStream]]; [newXmppRoom fetchConfigurationForm]; [newXmppRoom addDelegate:[self appDelegate] delegateQueue:dispatch_get_main_queue()]; [newXmppRoom joinRoomUsingNickname:nickName history:nil password:[[NSUserDefaults standardUserDefaults] stringForKey:kXMPPmyPassword]]; } Send invitations // Once the room created, we get some responses from server.

Categories : IOS

tag move down when there is not enough room at screen
This depends tremendously on what specifics you need. If you just need two square content blocks side-by-side that stack vertically with a small enough window, use display: inline-block on those blocks. http://jsfiddle.net/sHNjm/

Categories : HTML

mysql hotel room availability
You want something like this: select room_id from availability a where avail_date between $start and $end group by room_id having count(*) = datediff($end, $start) + 1; The having clause is counting the number of rows during that period to see if it matches the number of days you need. This is "inclusive" logic, so if $start = $end, then it assumes you need the room on that date.

Categories : Mysql

Transfer speed over wifi and 3G within the same room
Wifi speed in the same room would operate at the maximum connection speed of the signal allowed, split between the number of active devices. This would generally be considered quite high although not as high as a network cabled series of devices. When sending a file over wifi to a remote host, the exchange goes from your computer through a series of hops on its route to the destination so the initial wifi speed is only in transferring the file to the server. It is then server dependent on how fast it transfers between computers, since they can't have a direct wifi connection. 3G locally is faster than between cities because, as you say, it interacts with the local host tower rather than then moving beyond that to the next tower and so forth. 3G would be slower than wifi initially, but wh

Categories : Networking



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.