Move it
September 27, 2006
since we’re going to use jabber.org as the server for the application (not google’s server anymore), our application will also support creation of accounts on the server. this would not be a problem because jabber.org is one of the public servers provided in the Jabber website that allows creation and deletion of accounts through client applications.
c/o ariel
real-time XMPP
September 25, 2006
i’ve found an article explaining why XMPP sends messages near real-time. according to the article, XMPP follows the architecture of the e-mail which uses a network of servers for communication. but, e-mail does not deliver messages close-to-real-time. why? e-mail uses a store-and-forward system, in which the messages is first sent to a near station for verification of its integrity and after that it will be sent to its destination. this system is use when end-to-end connection is not available. unlike e-mail, xmpp has this presence feature which allows it to know the availability of its users, thus allowing it to deliver messages instantly. it does not need to authenticate each messages because authentication happens when an XMPP streams are being set-up. then after that series of messages may be sent unlimitedly. also, the protocol uses a TCP connection, an end-to-end connection.
reah and i would research more about this “power of presence”…. that’s all for now.
source: http://www.jabber.org/about/techover.shtml#intro
c/o hannah
Google Server doesn’t support MUC
September 24, 2006
great, just when thought i could progress further in the project, i just found out that the google server doesn’t have support for multi-user chat. although i’ve been informed that i could use jabber.org as the server, but i’m still figuring out how to implement it so i could start working on the multi-user chat feature.
c/o ariel
I hear ya…
September 22, 2006
I was able to do the “receiving messages” part in communicating with a user of a gmail account that has logged in to gtalk. I used the same user names as the one I used in the “sending messages” part in the previous post. My task now is to use “Pisara” as the resource so I could test if the sending and receiving of messages will be delivered in our application’s IM feature. I’m also going to use a sample window which would simulate our IM window.
I hope I could finish these tasks before the sun sets, so I could move on to doing the Multi-user chat/Group chat for our application.
c/o ariel (still excited and happy, and now I’m more hopeful than ever and nervous at the same time )
Connecting… in 3… 2… 1…
September 20, 2006
… and we’re right back on track. yeah well maybe this was kind of a “very late” update, but i’m very glad i was able to do the first step.
yes. i was able to connect and send my very first message to a gtalk account. i’ve created a temporary gmail account, ariel(dot)dapito[at]gmail(dot)com (well, not really since it’s my name, so that means i’m going to use it some time later), with a password that my groupmates know so they can use the account for this project of ours.
after some battle with netbeans, then transferring to jCreator and shifting to notepad and then back, i’ve done all the necessary stuff to include the smack codes in the development of the project. i coded a sample program that will log me in to the given gmail account and send a “hello” message to my other gmail account, master(dot)bacarra[at]gmail(dot)com, which i also logged on to so i could receive the message, just in case the test works.
i’ve coded first the part where i need to input the username and password and log myself in using the strongest authentication possible (or something… i think it was mentioned in the smack javadocs and codes). so yeah, after waiting for netbeans to compile the sample program, i’ve already eaten my dinner and then some (or maybe too much). after it finished compiling, i ran the program and it waited for some time again, and it just said that the build was a success, so i assumed it did work. i then continued to code on the part where i would send a “hello” message after i log in. compiled and ran it again. then it just said that the build was successful. i was like “okay… then what?”. i checked the other account (i was logged onto the mail not gtalk, since the IM feature in the mail is the same as that of gtalk, so i assumed that the message will still be received), and to my surprise, the tab (the tab in mozilla browser) was blinking, indicating that there was a message. and it was indeed the message i sent using the program. YES! let’s rejoice!
hehehe, forgive me for the long post. i guess i was rambling too much. but can you blame me? i mean after weeks of reading the code and trying it out for myself, i figured it out somehow. reading the test case of smack helped me as well.
and as much as i hated netbeans and it being a slowpoke, i think it’s the only way we could work on this project. a friend of mine even gave me a comment that netbeans is only for those who are not good in programming [sic]. i do admit that i’m not really good in java. heck, i’d be stupid if i said it’s easy.
next stop, receiving messages… i’ll update as soon as i can.
mood: happy, excited
c/o ariel
public static void main(String[] args)
September 8, 2006
After hours of hypnotizing this laptop, I have increased my chances of understanding the code of Smack (API for IM); although I think I have some problems…
public. As much as I love working/studying here in JRDC, I feel like the pace of my progress is similar to that when I work/study at home.
static. I’m stuck. I don’t know how I’m going to start doing the programmin. I mean, I do have an idea on how the code of Smack works, after all, 5 years in UP should at least give me the ability to read a Java code.
void. And since I’m already working three days in a row with some few hours of sleep (I guess if I sum up all the minutes all my naps took), I feel like there’s a huge blank space in between my ears.
main(String[] args). Or maybe it’s just me. I dunno… (Apparently, the words in bold didn’t have any connection with what I just said.)
c/o ariel
2-cents worth
September 7, 2006
I got some tips (well, not really tips… more like hints) from Sir Aldwin (the new manager of JRDC). When he knew that our task before the semester ends is implementing the IM feature for our application, he said that it was “easy”. Of course the meaning of the word depends on every individual, but then again…
He told me that I could read on codes of Jabber-implemented IM clients (which I’m doing right now on Spark/Smack codes) to know how the “connecting to the Google server” works. I have at least a small idea, although understanding the codes for the client is kinda difficult, it’s like understanding someone’s handwriting or something like that. He also bragged that it could be done in just a night, although i don’t think that would be applicable to me.
c/o ariel
progress report for 8/28 – 9/03
September 4, 2006
the group prepared the report and the slides for the class presentation. the members have finished the application user interface draft. they have also been reading JEP’s. ariel has been doing research on connecting to a Jabber server i.e, the GTalk server.
The group will be working in JRDC this tuesday-wednesday to start on the primary implementation of the Pisara Editor application.