[sip-comm-dev] Re: GSoC 09- Progress


#1

Hi Damien,
               Sorry for getting back so late. jml took a lot of time due
to lack of proper documentation and javadocs. After a lot of help from
Damian, I was able to set avatar on MSN. Here also after testing I found
128x128 as the limit (though will confirm this and file size with Damian).
Next I will be moving on to joscar which also lacks proper documentations.
There too I will have to proceed using examples provided with the trunk.
Hope to finish that too before I formally start coding from 23rd.

And sorry Emil for forgetting about the dev list.

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi < > shashank.tyagi.cse06@itbhu.ac.in> wrote:

Hi Damien,
               Was able to successfully complete the avatar implementation
in smack. As for size limits I talked to some developers who were part of
XMPP protocol. According to them that as such there is no size limit as per
the protocol. Though at jabber they keep a size limit of 64K. I havent tried
for Jabber myself but for GoogleTalk the size limit is in pixel size at
128x128 which I verified by testing myself. Was unable to find the maximum
avatar file size for now.
Next am going to do the same for MSN (java-jml).

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
styagi@acm.org

On Tue, May 12, 2009 at 3:06 AM, Emil Ivov <emcho@sip-communicator.org>wrote:

Hey Shashank,

Could you please resend your mail to our dev list and we'll answer there.

Thanks
Emil

Shashank Tyagi wrote:
> Hi Damien,
> As I told you I was currently going through the code of
> GUI part of SC. Was doing it to get familiar with the structure of it.
> Now have found the part where the current avatar is displayed and was
> successful in adding additional Mouse Listeners to it.
>
> As per your timeline from now on I will devote my time for implementing
> mechanisms in different protocols.
> For doing this firstly I will test the individual protocol api's
without
> linking it with SC code. Will start this from tonight itself.
>
> Secondly, you were talking about picture in Contact List. Why do we
need
> to work there when we can provide the option by adding option menu in
> current avatar displayed for the account.
> Have marked the avatar I am talking about in the attached image.
>
> Will try to be active on the mailing list but to be honest am unable to
> understand what is going on there most of the time. I do try to go
> through and understand all the issues though.
>
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in <mailto:
shashank.tyagi.cse06@itbhu.ac.in>
> styagi@acm.org <mailto:styagi@acm.org>
>
>
>
> On Mon, May 11, 2009 at 2:45 PM, Damien Roth <damien.roth@gmail.com >>> > <mailto:damien.roth@gmail.com>> wrote:
>
> Hello,
>
> Don't worry, as we said your exams are top priority and I hope they
> went well.
>
> I'm working on Eclipse+Linux, since our project doesn't require
code
> for specific platform, it shouldn't be a problem.
> In any case, my main computer has Windows Vista as OS so I can
> switch to test.
>
> Last week, I had a chat with Emil and we come up with a timeline
for
> the project based on the one in your proposal :
> First term
> 1. Research mechanisms for all supported stacks to set the image
> (methods + max size).
> 2. Our picture in the contact list highlights on mouse over
> 3. Clicking on our picture opens a file chooser and selecting an
> image sets it for all protocols that support the operation
> 4. Implement support for picture setting in XMPP (and Google Talk
if
> different)
> 5. Implement support for picture setting in Yahoo!
> 6. Implement support for picture setting in MSN
> 7. Implement support for picture setting in ICQ (and AIM if
different)
>
> Second term
> 1. Create new interfaces in the media service that give access to
> the local video device
> 2. Implement the above interfaces
> 3. Create a new "Image Picker" service that allows retrieving and
> editing snapshots from the webcam or images selected with the file
> chooser
> 4. Provide an implementation for that service that includes:
> * A way for bundles to invoke it through a single method and
> receive an image as a result
> * An user interface inspired by the Adium "Image picker"
which
> allows users to take new snapshots
> * The possibility for the user to clip the image
>
> Optional
> 1. Store the last X images used (X is defined in the
configuration
> file)
> 2. Allow the user to set a specific image for an account
>
> The more important features are in the first term and in the first
> part of the second one.
> The optional part contains some ideas, if you finish before the end
> of the GSoC.
> This timeline will be put on the website so the other members can
> follow your progress.
>
> Since most of the GUI ideas comes from Adium (the mac version of
> pidgin), I will provide you with some screenshots.
>
> Another important part, I will ask you to :
> - Communicate regularly on the mailing list (announce your
progress
> according to the timeline, ask questions, reply if you can to other
> students)
> - Respect the code convention :
>
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
> - Provide a complete javadoc and comment you code
>
> Until the 23th, you can also start the first item from the first
term
> : Research mechanisms for all supported stacks to set the image
> (methods + max size).
> - methods : most of them are in your proposal, but I leave the
> conversion between a java object (Image, BufferedImage, ...) to a
> protocol object
> - max size : some protocols limit the size of the avatars, for
> example in XMPP it's 80x80 px (if my memory is correct)
>
> If you have any question about the timeline or for everything else,
> don't hesitate.
>
> Bye
>
> Damien
>
> 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
> <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
> > Hi Damien,
> > Sorry for not contacting you since quite some
time.
> Was busy
> > with my exams and stuff. Now college is over for summers and am
> right now at
> > home. So will be giving my full time to this project from now on.
> I have
> > started working from today and have got the observer status for
> SIP and have
> > compiled and ran the project from Netbeans. Will be using
Netbeans
> and using
> > platform Vista for the project. Hope its fine with you. If need
be can
> > switch to Linux but I would prefer Windows.
> > With project running my next step will be to locate code for the
> box where
> > currently the avatar is displayed.
> > Also as this is the first big project I am doing so am new to SVN
> and other
> > technologies used. So there may be a possibility that I will have
> some very
> > foolish doubts. Please dont mind that.
> >
> > For now this is all I have to report.
> > Will keep you updated of my progress in this thread only.
> > -----
> > Shashank Tyagi,
> > Computer Science(IDD),
> > Part III,
> > Institute of Technology,
> > Banaras Hindu University,
> > India.
> > +91-9651422932
> > +91-9235600751
> > shashank.tyagi.cse06@itbhu.ac.in
> <mailto:shashank.tyagi.cse06@itbhu.ac.in>
> > styagi@acm.org <mailto:styagi@acm.org>
> >
> >
>
>
>
>
------------------------------------------------------------------------
>

--
Emil Ivov, Ph.D. 30a rue de la Patrie
Founder and Project Lead 67300 Schiltigheim
SIP Communicator
emcho@sip-communicator.org FAX: +33.1.77.62.47.31
http://sip-communicator.org PHONE: +33.1.77.62.43.30


#2

Hi Shashank

Good job !

I have few Jabber accounts, if you send me you little app, I can do some tests.

For the other here is a recap of the tests :
Jabber : according to the developpers max size : 64kb
GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
MSN : max avatar dimension : 128x128
ICQ / AIM : currently testing
Yahoo : Our current library doesn't support user avatars

Bye

Damien

···

2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:

Hi Damien,
Sorry for getting back so late. jml took a lot of time due
to lack of proper documentation and javadocs. After a lot of help from
Damian, I was able to set avatar on MSN. Here also after testing I found
128x128 as the limit (though will confirm this and file size with Damian).
Next I will be moving on to joscar which also lacks proper documentations.
There too I will have to proceed using examples provided with the trunk.
Hope to finish that too before I formally start coding from 23rd.

And sorry Emil for forgetting about the dev list.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:

Hi Damien,
Was able to successfully complete the avatar
implementation in smack. As for size limits I talked to some developers who
were part of XMPP protocol. According to them that as such there is no size
limit as per the protocol. Though at jabber they keep a size limit of 64K. I
havent tried for Jabber myself but for GoogleTalk the size limit is in pixel
size at 128x128 which I verified by testing myself. Was unable to find the
maximum avatar file size for now.
Next am going to do the same for MSN (java-jml).

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
styagi@acm.org

On Tue, May 12, 2009 at 3:06 AM, Emil Ivov <emcho@sip-communicator.org> >>> wrote:

Hey Shashank,

Could you please resend your mail to our dev list and we'll answer
there.

Thanks
Emil

Shashank Tyagi wrote:
> Hi Damien,
> As I told you I was currently going through the code of
> GUI part of SC. Was doing it to get familiar with the structure of it.
> Now have found the part where the current avatar is displayed and was
> successful in adding additional Mouse Listeners to it.
>
> As per your timeline from now on I will devote my time for
> implementing
> mechanisms in different protocols.
> For doing this firstly I will test the individual protocol api's
> without
> linking it with SC code. Will start this from tonight itself.
>
> Secondly, you were talking about picture in Contact List. Why do we
> need
> to work there when we can provide the option by adding option menu in
> current avatar displayed for the account.
> Have marked the avatar I am talking about in the attached image.
>
> Will try to be active on the mailing list but to be honest am unable
> to
> understand what is going on there most of the time. I do try to go
> through and understand all the issues though.
>
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> <mailto:shashank.tyagi.cse06@itbhu.ac.in>
> styagi@acm.org <mailto:styagi@acm.org>
>
>
>
> On Mon, May 11, 2009 at 2:45 PM, Damien Roth <damien.roth@gmail.com >>>> > <mailto:damien.roth@gmail.com>> wrote:
>
> Hello,
>
> Don't worry, as we said your exams are top priority and I hope
> they
> went well.
>
> I'm working on Eclipse+Linux, since our project doesn't require
> code
> for specific platform, it shouldn't be a problem.
> In any case, my main computer has Windows Vista as OS so I can
> switch to test.
>
> Last week, I had a chat with Emil and we come up with a timeline
> for
> the project based on the one in your proposal :
> First term
> 1. Research mechanisms for all supported stacks to set the image
> (methods + max size).
> 2. Our picture in the contact list highlights on mouse over
> 3. Clicking on our picture opens a file chooser and selecting an
> image sets it for all protocols that support the operation
> 4. Implement support for picture setting in XMPP (and Google
> Talk if
> different)
> 5. Implement support for picture setting in Yahoo!
> 6. Implement support for picture setting in MSN
> 7. Implement support for picture setting in ICQ (and AIM if
> different)
>
> Second term
> 1. Create new interfaces in the media service that give access
> to
> the local video device
> 2. Implement the above interfaces
> 3. Create a new "Image Picker" service that allows retrieving
> and
> editing snapshots from the webcam or images selected with the file
> chooser
> 4. Provide an implementation for that service that includes:
> * A way for bundles to invoke it through a single method and
> receive an image as a result
> * An user interface inspired by the Adium "Image picker"
> which
> allows users to take new snapshots
> * The possibility for the user to clip the image
>
> Optional
> 1. Store the last X images used (X is defined in the
> configuration
> file)
> 2. Allow the user to set a specific image for an account
>
> The more important features are in the first term and in the first
> part of the second one.
> The optional part contains some ideas, if you finish before the
> end
> of the GSoC.
> This timeline will be put on the website so the other members can
> follow your progress.
>
> Since most of the GUI ideas comes from Adium (the mac version of
> pidgin), I will provide you with some screenshots.
>
> Another important part, I will ask you to :
> - Communicate regularly on the mailing list (announce your
> progress
> according to the timeline, ask questions, reply if you can to
> other
> students)
> - Respect the code convention :
>
> http://www.sip-communicator.org/index.php/Documentation/CodeConvention
> - Provide a complete javadoc and comment you code
>
> Until the 23th, you can also start the first item from the first
> term
> : Research mechanisms for all supported stacks to set the image
> (methods + max size).
> - methods : most of them are in your proposal, but I leave the
> conversion between a java object (Image, BufferedImage, ...) to a
> protocol object
> - max size : some protocols limit the size of the avatars, for
> example in XMPP it's 80x80 px (if my memory is correct)
>
> If you have any question about the timeline or for everything
> else,
> don't hesitate.
>
> Bye
>
> Damien
>
> 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
> <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
> > Hi Damien,
> > Sorry for not contacting you since quite some
> time.
> Was busy
> > with my exams and stuff. Now college is over for summers and am
> right now at
> > home. So will be giving my full time to this project from now
> on.
> I have
> > started working from today and have got the observer status for
> SIP and have
> > compiled and ran the project from Netbeans. Will be using
> Netbeans
> and using
> > platform Vista for the project. Hope its fine with you. If need
> be can
> > switch to Linux but I would prefer Windows.
> > With project running my next step will be to locate code for the
> box where
> > currently the avatar is displayed.
> > Also as this is the first big project I am doing so am new to
> SVN
> and other
> > technologies used. So there may be a possibility that I will
> have
> some very
> > foolish doubts. Please dont mind that.
> >
> > For now this is all I have to report.
> > Will keep you updated of my progress in this thread only.
> > -----
> > Shashank Tyagi,
> > Computer Science(IDD),
> > Part III,
> > Institute of Technology,
> > Banaras Hindu University,
> > India.
> > +91-9651422932
> > +91-9235600751
> > shashank.tyagi.cse06@itbhu.ac.in
> <mailto:shashank.tyagi.cse06@itbhu.ac.in>
> > styagi@acm.org <mailto:styagi@acm.org>
> >
> >
>
>
>
>
> ------------------------------------------------------------------------
>

--
Emil Ivov, Ph.D. 30a rue de la Patrie
Founder and Project Lead 67300 Schiltigheim
SIP Communicator
emcho@sip-communicator.org FAX: +33.1.77.62.47.31
http://sip-communicator.org PHONE: +33.1.77.62.43.30

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi,

about yahoo I just had a look at the library, yes its not implemented yet, but it can be easily added.
So when you come to that point you can call me :slight_smile:

Cheers
damencho

Damien Roth wrote:

···

Hi Shashank

Good job !

I have few Jabber accounts, if you send me you little app, I can do some tests.

For the other here is a recap of the tests :
Jabber : according to the developpers max size : 64kb
GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
MSN : max avatar dimension : 128x128
ICQ / AIM : currently testing
Yahoo : Our current library doesn't support user avatars

Bye

Damien

2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
  

Hi Damien,
               Sorry for getting back so late. jml took a lot of time due
to lack of proper documentation and javadocs. After a lot of help from
Damian, I was able to set avatar on MSN. Here also after testing I found
128x128 as the limit (though will confirm this and file size with Damian).
Next I will be moving on to joscar which also lacks proper documentations.
There too I will have to proceed using examples provided with the trunk.
Hope to finish that too before I formally start coding from 23rd.
      

And sorry Emil for forgetting about the dev list.
    

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >>> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
      

Hi Damien,
               Was able to successfully complete the avatar
implementation in smack. As for size limits I talked to some developers who
were part of XMPP protocol. According to them that as such there is no size
limit as per the protocol. Though at jabber they keep a size limit of 64K. I
havent tried for Jabber myself but for GoogleTalk the size limit is in pixel
size at 128x128 which I verified by testing myself. Was unable to find the
maximum avatar file size for now.
Next am going to do the same for MSN (java-jml).

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
styagi@acm.org

On Tue, May 12, 2009 at 3:06 AM, Emil Ivov <emcho@sip-communicator.org> >>>> wrote:
        

Hey Shashank,

Could you please resend your mail to our dev list and we'll answer
there.

Thanks
Emil

Shashank Tyagi wrote:
          

Hi Damien,
               As I told you I was currently going through the code of
GUI part of SC. Was doing it to get familiar with the structure of it.
Now have found the part where the current avatar is displayed and was
successful in adding additional Mouse Listeners to it.

As per your timeline from now on I will devote my time for
implementing
mechanisms in different protocols.
For doing this firstly I will test the individual protocol api's
without
linking it with SC code. Will start this from tonight itself.

Secondly, you were talking about picture in Contact List. Why do we
need
to work there when we can provide the option by adding option menu in
current avatar displayed for the account.
Have marked the avatar I am talking about in the attached image.

Will try to be active on the mailing list but to be honest am unable
to
understand what is going on there most of the time. I do try to go
through and understand all the issues though.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
<mailto:shashank.tyagi.cse06@itbhu.ac.in>
styagi@acm.org <mailto:styagi@acm.org>

On Mon, May 11, 2009 at 2:45 PM, Damien Roth <damien.roth@gmail.com >>>>>> <mailto:damien.roth@gmail.com>> wrote:

    Hello,

    Don't worry, as we said your exams are top priority and I hope
they
    went well.

    I'm working on Eclipse+Linux, since our project doesn't require
code
    for specific platform, it shouldn't be a problem.
    In any case, my main computer has Windows Vista as OS so I can
    switch to test.

    Last week, I had a chat with Emil and we come up with a timeline
for
    the project based on the one in your proposal :
    First term
      1. Research mechanisms for all supported stacks to set the image
    (methods + max size).
      2. Our picture in the contact list highlights on mouse over
      3. Clicking on our picture opens a file chooser and selecting an
    image sets it for all protocols that support the operation
      4. Implement support for picture setting in XMPP (and Google
Talk if
    different)
      5. Implement support for picture setting in Yahoo!
      6. Implement support for picture setting in MSN
      7. Implement support for picture setting in ICQ (and AIM if
different)

    Second term
      1. Create new interfaces in the media service that give access
to
    the local video device
      2. Implement the above interfaces
      3. Create a new "Image Picker" service that allows retrieving
and
    editing snapshots from the webcam or images selected with the file
    chooser
      4. Provide an implementation for that service that includes:
          * A way for bundles to invoke it through a single method and
    receive an image as a result
          * An user interface inspired by the Adium "Image picker"
which
    allows users to take new snapshots
          * The possibility for the user to clip the image

    Optional
      1. Store the last X images used (X is defined in the
configuration
    file)
      2. Allow the user to set a specific image for an account

    The more important features are in the first term and in the first
    part of the second one.
    The optional part contains some ideas, if you finish before the
end
    of the GSoC.
    This timeline will be put on the website so the other members can
    follow your progress.

    Since most of the GUI ideas comes from Adium (the mac version of
    pidgin), I will provide you with some screenshots.

    Another important part, I will ask you to :
      - Communicate regularly on the mailing list (announce your
progress
    according to the timeline, ask questions, reply if you can to
other
    students)
      - Respect the code convention :

http://www.sip-communicator.org/index.php/Documentation/CodeConvention
      - Provide a complete javadoc and comment you code

    Until the 23th, you can also start the first item from the first
term
    : Research mechanisms for all supported stacks to set the image
    (methods + max size).
     - methods : most of them are in your proposal, but I leave the
    conversion between a java object (Image, BufferedImage, ...) to a
    protocol object
     - max size : some protocols limit the size of the avatars, for
    example in XMPP it's 80x80 px (if my memory is correct)

    If you have any question about the timeline or for everything
else,
    don't hesitate.

    Bye

    Damien

    2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
    <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
    > Hi Damien,
    > Sorry for not contacting you since quite some
time.
    Was busy
    > with my exams and stuff. Now college is over for summers and am
    right now at
    > home. So will be giving my full time to this project from now
on.
    I have
    > started working from today and have got the observer status for
    SIP and have
    > compiled and ran the project from Netbeans. Will be using
Netbeans
    and using
    > platform Vista for the project. Hope its fine with you. If need
be can
    > switch to Linux but I would prefer Windows.
    > With project running my next step will be to locate code for the
    box where
    > currently the avatar is displayed.
    > Also as this is the first big project I am doing so am new to
SVN
    and other
    > technologies used. So there may be a possibility that I will
have
    some very
    > foolish doubts. Please dont mind that.
    >
    > For now this is all I have to report.
    > Will keep you updated of my progress in this thread only.
    > -----
    > Shashank Tyagi,
    > Computer Science(IDD),
    > Part III,
    > Institute of Technology,
    > Banaras Hindu University,
    > India.
    > +91-9651422932
    > +91-9235600751
    > shashank.tyagi.cse06@itbhu.ac.in
    <mailto:shashank.tyagi.cse06@itbhu.ac.in>
    > styagi@acm.org <mailto:styagi@acm.org>
    >

------------------------------------------------------------------------

--
Emil Ivov, Ph.D. 30a rue de la Patrie
Founder and Project Lead 67300 Schiltigheim
SIP Communicator
emcho@sip-communicator.org FAX: +33.1.77.62.47.31
http://sip-communicator.org PHONE: +33.1.77.62.43.30
          
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,
    Have attached the file along. The connection being made is for the gtalk
server currently. Will require smack api.

smack_dp.java (2.46 KB)

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi Shashank

Good job !

I have few Jabber accounts, if you send me you little app, I can do some
tests.

For the other here is a recap of the tests :
Jabber : according to the developpers max size : 64kb
GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
MSN : max avatar dimension : 128x128
ICQ / AIM : currently testing
Yahoo : Our current library doesn't support user avatars

Bye

Damien

2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>> Hi Damien,
>> Sorry for getting back so late. jml took a lot of time
due
>> to lack of proper documentation and javadocs. After a lot of help from
>> Damian, I was able to set avatar on MSN. Here also after testing I found
>> 128x128 as the limit (though will confirm this and file size with
Damian).
>> Next I will be moving on to joscar which also lacks proper
documentations.
>> There too I will have to proceed using examples provided with the trunk.
>> Hope to finish that too before I formally start coding from 23rd.
>
> And sorry Emil for forgetting about the dev list.
>>
>>
>> -----
>> Shashank Tyagi,
>> Computer Science(IDD),
>> Part III,
>> Institute of Technology,
>> Banaras Hindu University,
>> India.
>> +91-9651422932
>> +91-9235600751
>> shashank.tyagi.cse06@itbhu.ac.in
>> shashankt@acm.org
>>
>>
>> Sent from Lucknow, UP, India
>>
>>
>> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi > >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>>>
>>> Hi Damien,
>>> Was able to successfully complete the avatar
>>> implementation in smack. As for size limits I talked to some developers
who
>>> were part of XMPP protocol. According to them that as such there is no
size
>>> limit as per the protocol. Though at jabber they keep a size limit of
64K. I
>>> havent tried for Jabber myself but for GoogleTalk the size limit is in
pixel
>>> size at 128x128 which I verified by testing myself. Was unable to find
the
>>> maximum avatar file size for now.
>>> Next am going to do the same for MSN (java-jml).
>>>
>>> -----
>>> Shashank Tyagi,
>>> Computer Science(IDD),
>>> Part III,
>>> Institute of Technology,
>>> Banaras Hindu University,
>>> India.
>>> +91-9651422932
>>> +91-9235600751
>>> shashank.tyagi.cse06@itbhu.ac.in
>>> styagi@acm.org
>>>
>>>
>>>
>>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov <emcho@sip-communicator.org > > > >>> wrote:
>>>>
>>>> Hey Shashank,
>>>>
>>>> Could you please resend your mail to our dev list and we'll answer
>>>> there.
>>>>
>>>> Thanks
>>>> Emil
>>>>
>>>> Shashank Tyagi wrote:
>>>> > Hi Damien,
>>>> > As I told you I was currently going through the code
of
>>>> > GUI part of SC. Was doing it to get familiar with the structure of
it.
>>>> > Now have found the part where the current avatar is displayed and
was
>>>> > successful in adding additional Mouse Listeners to it.
>>>> >
>>>> > As per your timeline from now on I will devote my time for
>>>> > implementing
>>>> > mechanisms in different protocols.
>>>> > For doing this firstly I will test the individual protocol api's
>>>> > without
>>>> > linking it with SC code. Will start this from tonight itself.
>>>> >
>>>> > Secondly, you were talking about picture in Contact List. Why do we
>>>> > need
>>>> > to work there when we can provide the option by adding option menu
in
>>>> > current avatar displayed for the account.
>>>> > Have marked the avatar I am talking about in the attached image.
>>>> >
>>>> > Will try to be active on the mailing list but to be honest am unable
>>>> > to
>>>> > understand what is going on there most of the time. I do try to go
>>>> > through and understand all the issues though.
>>>> >
>>>> > -----
>>>> > Shashank Tyagi,
>>>> > Computer Science(IDD),
>>>> > Part III,
>>>> > Institute of Technology,
>>>> > Banaras Hindu University,
>>>> > India.
>>>> > +91-9651422932
>>>> > +91-9235600751
>>>> > shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>>> > styagi@acm.org <mailto:styagi@acm.org>
>>>> >
>>>> >
>>>> >
>>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth <damien.roth@gmail.com > >>>> > <mailto:damien.roth@gmail.com>> wrote:
>>>> >
>>>> > Hello,
>>>> >
>>>> > Don't worry, as we said your exams are top priority and I hope
>>>> > they
>>>> > went well.
>>>> >
>>>> > I'm working on Eclipse+Linux, since our project doesn't require
>>>> > code
>>>> > for specific platform, it shouldn't be a problem.
>>>> > In any case, my main computer has Windows Vista as OS so I can
>>>> > switch to test.
>>>> >
>>>> > Last week, I had a chat with Emil and we come up with a timeline
>>>> > for
>>>> > the project based on the one in your proposal :
>>>> > First term
>>>> > 1. Research mechanisms for all supported stacks to set the
image
>>>> > (methods + max size).
>>>> > 2. Our picture in the contact list highlights on mouse over
>>>> > 3. Clicking on our picture opens a file chooser and selecting
an
>>>> > image sets it for all protocols that support the operation
>>>> > 4. Implement support for picture setting in XMPP (and Google
>>>> > Talk if
>>>> > different)
>>>> > 5. Implement support for picture setting in Yahoo!
>>>> > 6. Implement support for picture setting in MSN
>>>> > 7. Implement support for picture setting in ICQ (and AIM if
>>>> > different)
>>>> >
>>>> > Second term
>>>> > 1. Create new interfaces in the media service that give access
>>>> > to
>>>> > the local video device
>>>> > 2. Implement the above interfaces
>>>> > 3. Create a new "Image Picker" service that allows retrieving
>>>> > and
>>>> > editing snapshots from the webcam or images selected with the
file
>>>> > chooser
>>>> > 4. Provide an implementation for that service that includes:
>>>> > * A way for bundles to invoke it through a single method
and
>>>> > receive an image as a result
>>>> > * An user interface inspired by the Adium "Image picker"
>>>> > which
>>>> > allows users to take new snapshots
>>>> > * The possibility for the user to clip the image
>>>> >
>>>> > Optional
>>>> > 1. Store the last X images used (X is defined in the
>>>> > configuration
>>>> > file)
>>>> > 2. Allow the user to set a specific image for an account
>>>> >
>>>> > The more important features are in the first term and in the
first
>>>> > part of the second one.
>>>> > The optional part contains some ideas, if you finish before the
>>>> > end
>>>> > of the GSoC.
>>>> > This timeline will be put on the website so the other members
can
>>>> > follow your progress.
>>>> >
>>>> > Since most of the GUI ideas comes from Adium (the mac version of
>>>> > pidgin), I will provide you with some screenshots.
>>>> >
>>>> > Another important part, I will ask you to :
>>>> > - Communicate regularly on the mailing list (announce your
>>>> > progress
>>>> > according to the timeline, ask questions, reply if you can to
>>>> > other
>>>> > students)
>>>> > - Respect the code convention :
>>>> >
>>>> >
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>>>> > - Provide a complete javadoc and comment you code
>>>> >
>>>> > Until the 23th, you can also start the first item from the first
>>>> > term
>>>> > : Research mechanisms for all supported stacks to set the image
>>>> > (methods + max size).
>>>> > - methods : most of them are in your proposal, but I leave the
>>>> > conversion between a java object (Image, BufferedImage, ...) to
a
>>>> > protocol object
>>>> > - max size : some protocols limit the size of the avatars, for
>>>> > example in XMPP it's 80x80 px (if my memory is correct)
>>>> >
>>>> > If you have any question about the timeline or for everything
>>>> > else,
>>>> > don't hesitate.
>>>> >
>>>> > Bye
>>>> >
>>>> > Damien
>>>> >
>>>> > 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>>>> > > Hi Damien,
>>>> > > Sorry for not contacting you since quite some
>>>> > time.
>>>> > Was busy
>>>> > > with my exams and stuff. Now college is over for summers and
am
>>>> > right now at
>>>> > > home. So will be giving my full time to this project from now
>>>> > on.
>>>> > I have
>>>> > > started working from today and have got the observer status
for
>>>> > SIP and have
>>>> > > compiled and ran the project from Netbeans. Will be using
>>>> > Netbeans
>>>> > and using
>>>> > > platform Vista for the project. Hope its fine with you. If
need
>>>> > be can
>>>> > > switch to Linux but I would prefer Windows.
>>>> > > With project running my next step will be to locate code for
the
>>>> > box where
>>>> > > currently the avatar is displayed.
>>>> > > Also as this is the first big project I am doing so am new to
>>>> > SVN
>>>> > and other
>>>> > > technologies used. So there may be a possibility that I will
>>>> > have
>>>> > some very
>>>> > > foolish doubts. Please dont mind that.
>>>> > >
>>>> > > For now this is all I have to report.
>>>> > > Will keep you updated of my progress in this thread only.
>>>> > > -----
>>>> > > Shashank Tyagi,
>>>> > > Computer Science(IDD),
>>>> > > Part III,
>>>> > > Institute of Technology,
>>>> > > Banaras Hindu University,
>>>> > > India.
>>>> > > +91-9651422932
>>>> > > +91-9235600751
>>>> > > shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>>> > > styagi@acm.org <mailto:styagi@acm.org>
>>>> > >
>>>> > >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
------------------------------------------------------------------------
>>>> >
>>>>
>>>> --
>>>> Emil Ivov, Ph.D. 30a rue de la Patrie
>>>> Founder and Project Lead 67300 Schiltigheim
>>>> SIP Communicator
>>>> emcho@sip-communicator.org FAX:
+33.1.77.62.47.31
>>>> http://sip-communicator.org PHONE:
+33.1.77.62.43.30
>>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi Shashank,

I've tested with my two jabber accounts.
With the one on jabber.org : I've got an exception when the save
method of the vcard was invoked.
With the one on jabber.nuxo.net : no problem with the dimension,
limited with the size : 64kb

What's the result with AIM / ICQ ?

Bye

Damien

···

2009/5/18 shashank <aug21st@gmail.com>:

Hi,
Have attached the file along. The connection being made is for the gtalk
server currently. Will require smack api.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi Shashank

Good job !

I have few Jabber accounts, if you send me you little app, I can do some
tests.

For the other here is a recap of the tests :
Jabber : according to the developpers max size : 64kb
GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
MSN : max avatar dimension : 128x128
ICQ / AIM : currently testing
Yahoo : Our current library doesn't support user avatars

Bye

Damien

2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>> Hi Damien,
>> Sorry for getting back so late. jml took a lot of time
>> due
>> to lack of proper documentation and javadocs. After a lot of help from
>> Damian, I was able to set avatar on MSN. Here also after testing I
>> found
>> 128x128 as the limit (though will confirm this and file size with
>> Damian).
>> Next I will be moving on to joscar which also lacks proper
>> documentations.
>> There too I will have to proceed using examples provided with the
>> trunk.
>> Hope to finish that too before I formally start coding from 23rd.
>
> And sorry Emil for forgetting about the dev list.
>>
>>
>> -----
>> Shashank Tyagi,
>> Computer Science(IDD),
>> Part III,
>> Institute of Technology,
>> Banaras Hindu University,
>> India.
>> +91-9651422932
>> +91-9235600751
>> shashank.tyagi.cse06@itbhu.ac.in
>> shashankt@acm.org
>>
>>
>> Sent from Lucknow, UP, India
>>
>>
>> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>>>
>>> Hi Damien,
>>> Was able to successfully complete the avatar
>>> implementation in smack. As for size limits I talked to some
>>> developers who
>>> were part of XMPP protocol. According to them that as such there is no
>>> size
>>> limit as per the protocol. Though at jabber they keep a size limit of
>>> 64K. I
>>> havent tried for Jabber myself but for GoogleTalk the size limit is in
>>> pixel
>>> size at 128x128 which I verified by testing myself. Was unable to find
>>> the
>>> maximum avatar file size for now.
>>> Next am going to do the same for MSN (java-jml).
>>>
>>> -----
>>> Shashank Tyagi,
>>> Computer Science(IDD),
>>> Part III,
>>> Institute of Technology,
>>> Banaras Hindu University,
>>> India.
>>> +91-9651422932
>>> +91-9235600751
>>> shashank.tyagi.cse06@itbhu.ac.in
>>> styagi@acm.org
>>>
>>>
>>>
>>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov >> >>> <emcho@sip-communicator.org> >> >>> wrote:
>>>>
>>>> Hey Shashank,
>>>>
>>>> Could you please resend your mail to our dev list and we'll answer
>>>> there.
>>>>
>>>> Thanks
>>>> Emil
>>>>
>>>> Shashank Tyagi wrote:
>>>> > Hi Damien,
>>>> > As I told you I was currently going through the code
>>>> > of
>>>> > GUI part of SC. Was doing it to get familiar with the structure of
>>>> > it.
>>>> > Now have found the part where the current avatar is displayed and
>>>> > was
>>>> > successful in adding additional Mouse Listeners to it.
>>>> >
>>>> > As per your timeline from now on I will devote my time for
>>>> > implementing
>>>> > mechanisms in different protocols.
>>>> > For doing this firstly I will test the individual protocol api's
>>>> > without
>>>> > linking it with SC code. Will start this from tonight itself.
>>>> >
>>>> > Secondly, you were talking about picture in Contact List. Why do we
>>>> > need
>>>> > to work there when we can provide the option by adding option menu
>>>> > in
>>>> > current avatar displayed for the account.
>>>> > Have marked the avatar I am talking about in the attached image.
>>>> >
>>>> > Will try to be active on the mailing list but to be honest am
>>>> > unable
>>>> > to
>>>> > understand what is going on there most of the time. I do try to go
>>>> > through and understand all the issues though.
>>>> >
>>>> > -----
>>>> > Shashank Tyagi,
>>>> > Computer Science(IDD),
>>>> > Part III,
>>>> > Institute of Technology,
>>>> > Banaras Hindu University,
>>>> > India.
>>>> > +91-9651422932
>>>> > +91-9235600751
>>>> > shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>>> > styagi@acm.org <mailto:styagi@acm.org>
>>>> >
>>>> >
>>>> >
>>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth <damien.roth@gmail.com >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>>>> >
>>>> > Hello,
>>>> >
>>>> > Don't worry, as we said your exams are top priority and I hope
>>>> > they
>>>> > went well.
>>>> >
>>>> > I'm working on Eclipse+Linux, since our project doesn't require
>>>> > code
>>>> > for specific platform, it shouldn't be a problem.
>>>> > In any case, my main computer has Windows Vista as OS so I can
>>>> > switch to test.
>>>> >
>>>> > Last week, I had a chat with Emil and we come up with a
>>>> > timeline
>>>> > for
>>>> > the project based on the one in your proposal :
>>>> > First term
>>>> > 1. Research mechanisms for all supported stacks to set the
>>>> > image
>>>> > (methods + max size).
>>>> > 2. Our picture in the contact list highlights on mouse over
>>>> > 3. Clicking on our picture opens a file chooser and selecting
>>>> > an
>>>> > image sets it for all protocols that support the operation
>>>> > 4. Implement support for picture setting in XMPP (and Google
>>>> > Talk if
>>>> > different)
>>>> > 5. Implement support for picture setting in Yahoo!
>>>> > 6. Implement support for picture setting in MSN
>>>> > 7. Implement support for picture setting in ICQ (and AIM if
>>>> > different)
>>>> >
>>>> > Second term
>>>> > 1. Create new interfaces in the media service that give
>>>> > access
>>>> > to
>>>> > the local video device
>>>> > 2. Implement the above interfaces
>>>> > 3. Create a new "Image Picker" service that allows retrieving
>>>> > and
>>>> > editing snapshots from the webcam or images selected with the
>>>> > file
>>>> > chooser
>>>> > 4. Provide an implementation for that service that includes:
>>>> > * A way for bundles to invoke it through a single method
>>>> > and
>>>> > receive an image as a result
>>>> > * An user interface inspired by the Adium "Image picker"
>>>> > which
>>>> > allows users to take new snapshots
>>>> > * The possibility for the user to clip the image
>>>> >
>>>> > Optional
>>>> > 1. Store the last X images used (X is defined in the
>>>> > configuration
>>>> > file)
>>>> > 2. Allow the user to set a specific image for an account
>>>> >
>>>> > The more important features are in the first term and in the
>>>> > first
>>>> > part of the second one.
>>>> > The optional part contains some ideas, if you finish before the
>>>> > end
>>>> > of the GSoC.
>>>> > This timeline will be put on the website so the other members
>>>> > can
>>>> > follow your progress.
>>>> >
>>>> > Since most of the GUI ideas comes from Adium (the mac version
>>>> > of
>>>> > pidgin), I will provide you with some screenshots.
>>>> >
>>>> > Another important part, I will ask you to :
>>>> > - Communicate regularly on the mailing list (announce your
>>>> > progress
>>>> > according to the timeline, ask questions, reply if you can to
>>>> > other
>>>> > students)
>>>> > - Respect the code convention :
>>>> >
>>>> >
>>>> > http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>>>> > - Provide a complete javadoc and comment you code
>>>> >
>>>> > Until the 23th, you can also start the first item from the
>>>> > first
>>>> > term
>>>> > : Research mechanisms for all supported stacks to set the image
>>>> > (methods + max size).
>>>> > - methods : most of them are in your proposal, but I leave the
>>>> > conversion between a java object (Image, BufferedImage, ...) to
>>>> > a
>>>> > protocol object
>>>> > - max size : some protocols limit the size of the avatars, for
>>>> > example in XMPP it's 80x80 px (if my memory is correct)
>>>> >
>>>> > If you have any question about the timeline or for everything
>>>> > else,
>>>> > don't hesitate.
>>>> >
>>>> > Bye
>>>> >
>>>> > Damien
>>>> >
>>>> > 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>>>> > > Hi Damien,
>>>> > > Sorry for not contacting you since quite some
>>>> > time.
>>>> > Was busy
>>>> > > with my exams and stuff. Now college is over for summers and
>>>> > am
>>>> > right now at
>>>> > > home. So will be giving my full time to this project from now
>>>> > on.
>>>> > I have
>>>> > > started working from today and have got the observer status
>>>> > for
>>>> > SIP and have
>>>> > > compiled and ran the project from Netbeans. Will be using
>>>> > Netbeans
>>>> > and using
>>>> > > platform Vista for the project. Hope its fine with you. If
>>>> > need
>>>> > be can
>>>> > > switch to Linux but I would prefer Windows.
>>>> > > With project running my next step will be to locate code for
>>>> > the
>>>> > box where
>>>> > > currently the avatar is displayed.
>>>> > > Also as this is the first big project I am doing so am new to
>>>> > SVN
>>>> > and other
>>>> > > technologies used. So there may be a possibility that I will
>>>> > have
>>>> > some very
>>>> > > foolish doubts. Please dont mind that.
>>>> > >
>>>> > > For now this is all I have to report.
>>>> > > Will keep you updated of my progress in this thread only.
>>>> > > -----
>>>> > > Shashank Tyagi,
>>>> > > Computer Science(IDD),
>>>> > > Part III,
>>>> > > Institute of Technology,
>>>> > > Banaras Hindu University,
>>>> > > India.
>>>> > > +91-9651422932
>>>> > > +91-9235600751
>>>> > > shashank.tyagi.cse06@itbhu.ac.in
>>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>>> > > styagi@acm.org <mailto:styagi@acm.org>
>>>> > >
>>>> > >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > ------------------------------------------------------------------------
>>>> >
>>>>
>>>> --
>>>> Emil Ivov, Ph.D. 30a rue de la Patrie
>>>> Founder and Project Lead 67300 Schiltigheim
>>>> SIP Communicator
>>>> emcho@sip-communicator.org FAX:
>>>> +33.1.77.62.47.31
>>>> http://sip-communicator.org PHONE:
>>>> +33.1.77.62.43.30
>>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hi,
   I will try with jabber accounts also.
For ICQ/AIM I am still trying to implement it using joustsim. Am going
through the joustsim example provided with SC. But for the limitations I was
able to implement it using the method provided with joscardemo. While using
AIM it has no limitations on image size but has only on file size. I was
able to upload a simple (plain red) image of 400x400 size even and a normal
image of size greater than 150x150 (all jpg). Will find out exactly what is
trhe limit of file size after am able to implement it using joustsim.

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Kanpur, UP, India

On Sun, May 24, 2009 at 2:16 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi Shashank,

I've tested with my two jabber accounts.
With the one on jabber.org : I've got an exception when the save
method of the vcard was invoked.
With the one on jabber.nuxo.net : no problem with the dimension,
limited with the size : 64kb

What's the result with AIM / ICQ ?

Bye

Damien

2009/5/18 shashank <aug21st@gmail.com>:
> Hi,
> Have attached the file along. The connection being made is for the
gtalk
> server currently. Will require smack api.
>
>
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> shashankt@acm.org
>
>
> Sent from Lucknow, UP, India
>
>
> On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> > wrote:
>>
>> Hi Shashank
>>
>> Good job !
>>
>> I have few Jabber accounts, if you send me you little app, I can do some
>> tests.
>>
>>
>> For the other here is a recap of the tests :
>> Jabber : according to the developpers max size : 64kb
>> GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
>> MSN : max avatar dimension : 128x128
>> ICQ / AIM : currently testing
>> Yahoo : Our current library doesn't support user avatars
>>
>> Bye
>>
>> Damien
>>
>> 2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>> >> Hi Damien,
>> >> Sorry for getting back so late. jml took a lot of time
>> >> due
>> >> to lack of proper documentation and javadocs. After a lot of help
from
>> >> Damian, I was able to set avatar on MSN. Here also after testing I
>> >> found
>> >> 128x128 as the limit (though will confirm this and file size with
>> >> Damian).
>> >> Next I will be moving on to joscar which also lacks proper
>> >> documentations.
>> >> There too I will have to proceed using examples provided with the
>> >> trunk.
>> >> Hope to finish that too before I formally start coding from 23rd.
>> >
>> > And sorry Emil for forgetting about the dev list.
>> >>
>> >>
>> >> -----
>> >> Shashank Tyagi,
>> >> Computer Science(IDD),
>> >> Part III,
>> >> Institute of Technology,
>> >> Banaras Hindu University,
>> >> India.
>> >> +91-9651422932
>> >> +91-9235600751
>> >> shashank.tyagi.cse06@itbhu.ac.in
>> >> shashankt@acm.org
>> >>
>> >>
>> >> Sent from Lucknow, UP, India
>> >>
>> >>
>> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi > >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>> >>>
>> >>> Hi Damien,
>> >>> Was able to successfully complete the avatar
>> >>> implementation in smack. As for size limits I talked to some
>> >>> developers who
>> >>> were part of XMPP protocol. According to them that as such there is
no
>> >>> size
>> >>> limit as per the protocol. Though at jabber they keep a size limit
of
>> >>> 64K. I
>> >>> havent tried for Jabber myself but for GoogleTalk the size limit is
in
>> >>> pixel
>> >>> size at 128x128 which I verified by testing myself. Was unable to
find
>> >>> the
>> >>> maximum avatar file size for now.
>> >>> Next am going to do the same for MSN (java-jml).
>> >>>
>> >>> -----
>> >>> Shashank Tyagi,
>> >>> Computer Science(IDD),
>> >>> Part III,
>> >>> Institute of Technology,
>> >>> Banaras Hindu University,
>> >>> India.
>> >>> +91-9651422932
>> >>> +91-9235600751
>> >>> shashank.tyagi.cse06@itbhu.ac.in
>> >>> styagi@acm.org
>> >>>
>> >>>
>> >>>
>> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov > >> >>> <emcho@sip-communicator.org> > >> >>> wrote:
>> >>>>
>> >>>> Hey Shashank,
>> >>>>
>> >>>> Could you please resend your mail to our dev list and we'll answer
>> >>>> there.
>> >>>>
>> >>>> Thanks
>> >>>> Emil
>> >>>>
>> >>>> Shashank Tyagi wrote:
>> >>>> > Hi Damien,
>> >>>> > As I told you I was currently going through the
code
>> >>>> > of
>> >>>> > GUI part of SC. Was doing it to get familiar with the structure
of
>> >>>> > it.
>> >>>> > Now have found the part where the current avatar is displayed and
>> >>>> > was
>> >>>> > successful in adding additional Mouse Listeners to it.
>> >>>> >
>> >>>> > As per your timeline from now on I will devote my time for
>> >>>> > implementing
>> >>>> > mechanisms in different protocols.
>> >>>> > For doing this firstly I will test the individual protocol api's
>> >>>> > without
>> >>>> > linking it with SC code. Will start this from tonight itself.
>> >>>> >
>> >>>> > Secondly, you were talking about picture in Contact List. Why do
we
>> >>>> > need
>> >>>> > to work there when we can provide the option by adding option
menu
>> >>>> > in
>> >>>> > current avatar displayed for the account.
>> >>>> > Have marked the avatar I am talking about in the attached image.
>> >>>> >
>> >>>> > Will try to be active on the mailing list but to be honest am
>> >>>> > unable
>> >>>> > to
>> >>>> > understand what is going on there most of the time. I do try to
go
>> >>>> > through and understand all the issues though.
>> >>>> >
>> >>>> > -----
>> >>>> > Shashank Tyagi,
>> >>>> > Computer Science(IDD),
>> >>>> > Part III,
>> >>>> > Institute of Technology,
>> >>>> > Banaras Hindu University,
>> >>>> > India.
>> >>>> > +91-9651422932
>> >>>> > +91-9235600751
>> >>>> > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth < > damien.roth@gmail.com > >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>> >>>> >
>> >>>> > Hello,
>> >>>> >
>> >>>> > Don't worry, as we said your exams are top priority and I
hope
>> >>>> > they
>> >>>> > went well.
>> >>>> >
>> >>>> > I'm working on Eclipse+Linux, since our project doesn't
require
>> >>>> > code
>> >>>> > for specific platform, it shouldn't be a problem.
>> >>>> > In any case, my main computer has Windows Vista as OS so I
can
>> >>>> > switch to test.
>> >>>> >
>> >>>> > Last week, I had a chat with Emil and we come up with a
>> >>>> > timeline
>> >>>> > for
>> >>>> > the project based on the one in your proposal :
>> >>>> > First term
>> >>>> > 1. Research mechanisms for all supported stacks to set the
>> >>>> > image
>> >>>> > (methods + max size).
>> >>>> > 2. Our picture in the contact list highlights on mouse over
>> >>>> > 3. Clicking on our picture opens a file chooser and
selecting
>> >>>> > an
>> >>>> > image sets it for all protocols that support the operation
>> >>>> > 4. Implement support for picture setting in XMPP (and
Google
>> >>>> > Talk if
>> >>>> > different)
>> >>>> > 5. Implement support for picture setting in Yahoo!
>> >>>> > 6. Implement support for picture setting in MSN
>> >>>> > 7. Implement support for picture setting in ICQ (and AIM if
>> >>>> > different)
>> >>>> >
>> >>>> > Second term
>> >>>> > 1. Create new interfaces in the media service that give
>> >>>> > access
>> >>>> > to
>> >>>> > the local video device
>> >>>> > 2. Implement the above interfaces
>> >>>> > 3. Create a new "Image Picker" service that allows
retrieving
>> >>>> > and
>> >>>> > editing snapshots from the webcam or images selected with the
>> >>>> > file
>> >>>> > chooser
>> >>>> > 4. Provide an implementation for that service that
includes:
>> >>>> > * A way for bundles to invoke it through a single
method
>> >>>> > and
>> >>>> > receive an image as a result
>> >>>> > * An user interface inspired by the Adium "Image
picker"
>> >>>> > which
>> >>>> > allows users to take new snapshots
>> >>>> > * The possibility for the user to clip the image
>> >>>> >
>> >>>> > Optional
>> >>>> > 1. Store the last X images used (X is defined in the
>> >>>> > configuration
>> >>>> > file)
>> >>>> > 2. Allow the user to set a specific image for an account
>> >>>> >
>> >>>> > The more important features are in the first term and in the
>> >>>> > first
>> >>>> > part of the second one.
>> >>>> > The optional part contains some ideas, if you finish before
the
>> >>>> > end
>> >>>> > of the GSoC.
>> >>>> > This timeline will be put on the website so the other members
>> >>>> > can
>> >>>> > follow your progress.
>> >>>> >
>> >>>> > Since most of the GUI ideas comes from Adium (the mac version
>> >>>> > of
>> >>>> > pidgin), I will provide you with some screenshots.
>> >>>> >
>> >>>> > Another important part, I will ask you to :
>> >>>> > - Communicate regularly on the mailing list (announce your
>> >>>> > progress
>> >>>> > according to the timeline, ask questions, reply if you can to
>> >>>> > other
>> >>>> > students)
>> >>>> > - Respect the code convention :
>> >>>> >
>> >>>> >
>> >>>> >
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>> >>>> > - Provide a complete javadoc and comment you code
>> >>>> >
>> >>>> > Until the 23th, you can also start the first item from the
>> >>>> > first
>> >>>> > term
>> >>>> > : Research mechanisms for all supported stacks to set the
image
>> >>>> > (methods + max size).
>> >>>> > - methods : most of them are in your proposal, but I leave
the
>> >>>> > conversion between a java object (Image, BufferedImage, ...)
to
>> >>>> > a
>> >>>> > protocol object
>> >>>> > - max size : some protocols limit the size of the avatars,
for
>> >>>> > example in XMPP it's 80x80 px (if my memory is correct)
>> >>>> >
>> >>>> > If you have any question about the timeline or for everything
>> >>>> > else,
>> >>>> > don't hesitate.
>> >>>> >
>> >>>> > Bye
>> >>>> >
>> >>>> > Damien
>> >>>> >
>> >>>> > 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>> >>>> > > Hi Damien,
>> >>>> > > Sorry for not contacting you since quite
some
>> >>>> > time.
>> >>>> > Was busy
>> >>>> > > with my exams and stuff. Now college is over for summers
and
>> >>>> > am
>> >>>> > right now at
>> >>>> > > home. So will be giving my full time to this project from
now
>> >>>> > on.
>> >>>> > I have
>> >>>> > > started working from today and have got the observer status
>> >>>> > for
>> >>>> > SIP and have
>> >>>> > > compiled and ran the project from Netbeans. Will be using
>> >>>> > Netbeans
>> >>>> > and using
>> >>>> > > platform Vista for the project. Hope its fine with you. If
>> >>>> > need
>> >>>> > be can
>> >>>> > > switch to Linux but I would prefer Windows.
>> >>>> > > With project running my next step will be to locate code
for
>> >>>> > the
>> >>>> > box where
>> >>>> > > currently the avatar is displayed.
>> >>>> > > Also as this is the first big project I am doing so am new
to
>> >>>> > SVN
>> >>>> > and other
>> >>>> > > technologies used. So there may be a possibility that I
will
>> >>>> > have
>> >>>> > some very
>> >>>> > > foolish doubts. Please dont mind that.
>> >>>> > >
>> >>>> > > For now this is all I have to report.
>> >>>> > > Will keep you updated of my progress in this thread only.
>> >>>> > > -----
>> >>>> > > Shashank Tyagi,
>> >>>> > > Computer Science(IDD),
>> >>>> > > Part III,
>> >>>> > > Institute of Technology,
>> >>>> > > Banaras Hindu University,
>> >>>> > > India.
>> >>>> > > +91-9651422932
>> >>>> > > +91-9235600751
>> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> > >
>> >>>> > >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
------------------------------------------------------------------------
>> >>>> >
>> >>>>
>> >>>> --
>> >>>> Emil Ivov, Ph.D. 30a rue de la Patrie
>> >>>> Founder and Project Lead 67300 Schiltigheim
>> >>>> SIP Communicator
>> >>>> emcho@sip-communicator.org FAX:
>> >>>> +33.1.77.62.47.31
>> >>>> http://sip-communicator.org PHONE:
>> >>>> +33.1.77.62.43.30
>> >>>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hi,
    Tried it with jabber account and it is working fine in my case.
Testing Scenario:
my jabber account (aug21st@jabber.org) was added in my gmail account (
aug21st@gmail.com).
gmail account was online using SC. jabber account was tested using my code.

Attached the file with modifications for jabber server.

It would be helpful if you can try using this file or post the error
details.

smack_dp.java (2.64 KB)

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Kanpur, UP, India

On Sun, May 24, 2009 at 2:21 PM, shashank <aug21st@gmail.com> wrote:

Hi,
   I will try with jabber accounts also.
For ICQ/AIM I am still trying to implement it using joustsim. Am going
through the joustsim example provided with SC. But for the limitations I was
able to implement it using the method provided with joscardemo. While using
AIM it has no limitations on image size but has only on file size. I was
able to upload a simple (plain red) image of 400x400 size even and a normal
image of size greater than 150x150 (all jpg). Will find out exactly what is
trhe limit of file size after am able to implement it using joustsim.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Kanpur, UP, India

On Sun, May 24, 2009 at 2:16 PM, Damien Roth <damien.roth@gmail.com>wrote:

Hi Shashank,

I've tested with my two jabber accounts.
With the one on jabber.org : I've got an exception when the save
method of the vcard was invoked.
With the one on jabber.nuxo.net : no problem with the dimension,
limited with the size : 64kb

What's the result with AIM / ICQ ?

Bye

Damien

2009/5/18 shashank <aug21st@gmail.com>:
> Hi,
> Have attached the file along. The connection being made is for the
gtalk
> server currently. Will require smack api.
>
>
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> shashankt@acm.org
>
>
> Sent from Lucknow, UP, India
>
>
> On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> >> wrote:
>>
>> Hi Shashank
>>
>> Good job !
>>
>> I have few Jabber accounts, if you send me you little app, I can do
some
>> tests.
>>
>>
>> For the other here is a recap of the tests :
>> Jabber : according to the developpers max size : 64kb
>> GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
>> MSN : max avatar dimension : 128x128
>> ICQ / AIM : currently testing
>> Yahoo : Our current library doesn't support user avatars
>>
>> Bye
>>
>> Damien
>>
>> 2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>> >> Hi Damien,
>> >> Sorry for getting back so late. jml took a lot of
time
>> >> due
>> >> to lack of proper documentation and javadocs. After a lot of help
from
>> >> Damian, I was able to set avatar on MSN. Here also after testing I
>> >> found
>> >> 128x128 as the limit (though will confirm this and file size with
>> >> Damian).
>> >> Next I will be moving on to joscar which also lacks proper
>> >> documentations.
>> >> There too I will have to proceed using examples provided with the
>> >> trunk.
>> >> Hope to finish that too before I formally start coding from 23rd.
>> >
>> > And sorry Emil for forgetting about the dev list.
>> >>
>> >>
>> >> -----
>> >> Shashank Tyagi,
>> >> Computer Science(IDD),
>> >> Part III,
>> >> Institute of Technology,
>> >> Banaras Hindu University,
>> >> India.
>> >> +91-9651422932
>> >> +91-9235600751
>> >> shashank.tyagi.cse06@itbhu.ac.in
>> >> shashankt@acm.org
>> >>
>> >>
>> >> Sent from Lucknow, UP, India
>> >>
>> >>
>> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >> >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>> >>>
>> >>> Hi Damien,
>> >>> Was able to successfully complete the avatar
>> >>> implementation in smack. As for size limits I talked to some
>> >>> developers who
>> >>> were part of XMPP protocol. According to them that as such there is
no
>> >>> size
>> >>> limit as per the protocol. Though at jabber they keep a size limit
of
>> >>> 64K. I
>> >>> havent tried for Jabber myself but for GoogleTalk the size limit is
in
>> >>> pixel
>> >>> size at 128x128 which I verified by testing myself. Was unable to
find
>> >>> the
>> >>> maximum avatar file size for now.
>> >>> Next am going to do the same for MSN (java-jml).
>> >>>
>> >>> -----
>> >>> Shashank Tyagi,
>> >>> Computer Science(IDD),
>> >>> Part III,
>> >>> Institute of Technology,
>> >>> Banaras Hindu University,
>> >>> India.
>> >>> +91-9651422932
>> >>> +91-9235600751
>> >>> shashank.tyagi.cse06@itbhu.ac.in
>> >>> styagi@acm.org
>> >>>
>> >>>
>> >>>
>> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov >> >> >>> <emcho@sip-communicator.org> >> >> >>> wrote:
>> >>>>
>> >>>> Hey Shashank,
>> >>>>
>> >>>> Could you please resend your mail to our dev list and we'll answer
>> >>>> there.
>> >>>>
>> >>>> Thanks
>> >>>> Emil
>> >>>>
>> >>>> Shashank Tyagi wrote:
>> >>>> > Hi Damien,
>> >>>> > As I told you I was currently going through the
code
>> >>>> > of
>> >>>> > GUI part of SC. Was doing it to get familiar with the structure
of
>> >>>> > it.
>> >>>> > Now have found the part where the current avatar is displayed
and
>> >>>> > was
>> >>>> > successful in adding additional Mouse Listeners to it.
>> >>>> >
>> >>>> > As per your timeline from now on I will devote my time for
>> >>>> > implementing
>> >>>> > mechanisms in different protocols.
>> >>>> > For doing this firstly I will test the individual protocol api's
>> >>>> > without
>> >>>> > linking it with SC code. Will start this from tonight itself.
>> >>>> >
>> >>>> > Secondly, you were talking about picture in Contact List. Why do
we
>> >>>> > need
>> >>>> > to work there when we can provide the option by adding option
menu
>> >>>> > in
>> >>>> > current avatar displayed for the account.
>> >>>> > Have marked the avatar I am talking about in the attached image.
>> >>>> >
>> >>>> > Will try to be active on the mailing list but to be honest am
>> >>>> > unable
>> >>>> > to
>> >>>> > understand what is going on there most of the time. I do try to
go
>> >>>> > through and understand all the issues though.
>> >>>> >
>> >>>> > -----
>> >>>> > Shashank Tyagi,
>> >>>> > Computer Science(IDD),
>> >>>> > Part III,
>> >>>> > Institute of Technology,
>> >>>> > Banaras Hindu University,
>> >>>> > India.
>> >>>> > +91-9651422932
>> >>>> > +91-9235600751
>> >>>> > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth < >> damien.roth@gmail.com >> >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>> >>>> >
>> >>>> > Hello,
>> >>>> >
>> >>>> > Don't worry, as we said your exams are top priority and I
hope
>> >>>> > they
>> >>>> > went well.
>> >>>> >
>> >>>> > I'm working on Eclipse+Linux, since our project doesn't
require
>> >>>> > code
>> >>>> > for specific platform, it shouldn't be a problem.
>> >>>> > In any case, my main computer has Windows Vista as OS so I
can
>> >>>> > switch to test.
>> >>>> >
>> >>>> > Last week, I had a chat with Emil and we come up with a
>> >>>> > timeline
>> >>>> > for
>> >>>> > the project based on the one in your proposal :
>> >>>> > First term
>> >>>> > 1. Research mechanisms for all supported stacks to set the
>> >>>> > image
>> >>>> > (methods + max size).
>> >>>> > 2. Our picture in the contact list highlights on mouse
over
>> >>>> > 3. Clicking on our picture opens a file chooser and
selecting
>> >>>> > an
>> >>>> > image sets it for all protocols that support the operation
>> >>>> > 4. Implement support for picture setting in XMPP (and
Google
>> >>>> > Talk if
>> >>>> > different)
>> >>>> > 5. Implement support for picture setting in Yahoo!
>> >>>> > 6. Implement support for picture setting in MSN
>> >>>> > 7. Implement support for picture setting in ICQ (and AIM
if
>> >>>> > different)
>> >>>> >
>> >>>> > Second term
>> >>>> > 1. Create new interfaces in the media service that give
>> >>>> > access
>> >>>> > to
>> >>>> > the local video device
>> >>>> > 2. Implement the above interfaces
>> >>>> > 3. Create a new "Image Picker" service that allows
retrieving
>> >>>> > and
>> >>>> > editing snapshots from the webcam or images selected with
the
>> >>>> > file
>> >>>> > chooser
>> >>>> > 4. Provide an implementation for that service that
includes:
>> >>>> > * A way for bundles to invoke it through a single
method
>> >>>> > and
>> >>>> > receive an image as a result
>> >>>> > * An user interface inspired by the Adium "Image
picker"
>> >>>> > which
>> >>>> > allows users to take new snapshots
>> >>>> > * The possibility for the user to clip the image
>> >>>> >
>> >>>> > Optional
>> >>>> > 1. Store the last X images used (X is defined in the
>> >>>> > configuration
>> >>>> > file)
>> >>>> > 2. Allow the user to set a specific image for an account
>> >>>> >
>> >>>> > The more important features are in the first term and in the
>> >>>> > first
>> >>>> > part of the second one.
>> >>>> > The optional part contains some ideas, if you finish before
the
>> >>>> > end
>> >>>> > of the GSoC.
>> >>>> > This timeline will be put on the website so the other
members
>> >>>> > can
>> >>>> > follow your progress.
>> >>>> >
>> >>>> > Since most of the GUI ideas comes from Adium (the mac
version
>> >>>> > of
>> >>>> > pidgin), I will provide you with some screenshots.
>> >>>> >
>> >>>> > Another important part, I will ask you to :
>> >>>> > - Communicate regularly on the mailing list (announce your
>> >>>> > progress
>> >>>> > according to the timeline, ask questions, reply if you can
to
>> >>>> > other
>> >>>> > students)
>> >>>> > - Respect the code convention :
>> >>>> >
>> >>>> >
>> >>>> >
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>> >>>> > - Provide a complete javadoc and comment you code
>> >>>> >
>> >>>> > Until the 23th, you can also start the first item from the
>> >>>> > first
>> >>>> > term
>> >>>> > : Research mechanisms for all supported stacks to set the
image
>> >>>> > (methods + max size).
>> >>>> > - methods : most of them are in your proposal, but I leave
the
>> >>>> > conversion between a java object (Image, BufferedImage, ...)
to
>> >>>> > a
>> >>>> > protocol object
>> >>>> > - max size : some protocols limit the size of the avatars,
for
>> >>>> > example in XMPP it's 80x80 px (if my memory is correct)
>> >>>> >
>> >>>> > If you have any question about the timeline or for
everything
>> >>>> > else,
>> >>>> > don't hesitate.
>> >>>> >
>> >>>> > Bye
>> >>>> >
>> >>>> > Damien
>> >>>> >
>> >>>> > 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>> >>>> > > Hi Damien,
>> >>>> > > Sorry for not contacting you since quite
some
>> >>>> > time.
>> >>>> > Was busy
>> >>>> > > with my exams and stuff. Now college is over for summers
and
>> >>>> > am
>> >>>> > right now at
>> >>>> > > home. So will be giving my full time to this project from
now
>> >>>> > on.
>> >>>> > I have
>> >>>> > > started working from today and have got the observer
status
>> >>>> > for
>> >>>> > SIP and have
>> >>>> > > compiled and ran the project from Netbeans. Will be using
>> >>>> > Netbeans
>> >>>> > and using
>> >>>> > > platform Vista for the project. Hope its fine with you. If
>> >>>> > need
>> >>>> > be can
>> >>>> > > switch to Linux but I would prefer Windows.
>> >>>> > > With project running my next step will be to locate code
for
>> >>>> > the
>> >>>> > box where
>> >>>> > > currently the avatar is displayed.
>> >>>> > > Also as this is the first big project I am doing so am new
to
>> >>>> > SVN
>> >>>> > and other
>> >>>> > > technologies used. So there may be a possibility that I
will
>> >>>> > have
>> >>>> > some very
>> >>>> > > foolish doubts. Please dont mind that.
>> >>>> > >
>> >>>> > > For now this is all I have to report.
>> >>>> > > Will keep you updated of my progress in this thread only.
>> >>>> > > -----
>> >>>> > > Shashank Tyagi,
>> >>>> > > Computer Science(IDD),
>> >>>> > > Part III,
>> >>>> > > Institute of Technology,
>> >>>> > > Banaras Hindu University,
>> >>>> > > India.
>> >>>> > > +91-9651422932
>> >>>> > > +91-9235600751
>> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> > >
>> >>>> > >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
------------------------------------------------------------------------
>> >>>> >
>> >>>>
>> >>>> --
>> >>>> Emil Ivov, Ph.D. 30a rue de la
Patrie
>> >>>> Founder and Project Lead 67300 Schiltigheim
>> >>>> SIP Communicator
>> >>>> emcho@sip-communicator.org FAX:
>> >>>> +33.1.77.62.47.31
>> >>>> http://sip-communicator.org PHONE:
>> >>>> +33.1.77.62.43.30
>> >>>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hi

Here is the exception

32630
true
No response from server on status set.:
  at org.jivesoftware.smackx.packet.VCard.save(VCard.java:512)
  at imagetest.<init>(smack_dp.java:52)
  at smack_dp.main(smack_dp.java:79)

The image used is :
type : png
dimension : 96x96
size : 20526 octets

···

2009/5/24 shashank <aug21st@gmail.com>:

Hi,
Tried it with jabber account and it is working fine in my case.
Testing Scenario:
my jabber account (aug21st@jabber.org) was added in my gmail account
(aug21st@gmail.com).
gmail account was online using SC. jabber account was tested using my code.

Attached the file with modifications for jabber server.

It would be helpful if you can try using this file or post the error
details.
-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Kanpur, UP, India

On Sun, May 24, 2009 at 2:21 PM, shashank <aug21st@gmail.com> wrote:

Hi,
I will try with jabber accounts also.
For ICQ/AIM I am still trying to implement it using joustsim. Am going
through the joustsim example provided with SC. But for the limitations I was
able to implement it using the method provided with joscardemo. While using
AIM it has no limitations on image size but has only on file size. I was
able to upload a simple (plain red) image of 400x400 size even and a normal
image of size greater than 150x150 (all jpg). Will find out exactly what is
trhe limit of file size after am able to implement it using joustsim.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Kanpur, UP, India

On Sun, May 24, 2009 at 2:16 PM, Damien Roth <damien.roth@gmail.com> >> wrote:

Hi Shashank,

I've tested with my two jabber accounts.
With the one on jabber.org : I've got an exception when the save
method of the vcard was invoked.
With the one on jabber.nuxo.net : no problem with the dimension,
limited with the size : 64kb

What's the result with AIM / ICQ ?

Bye

Damien

2009/5/18 shashank <aug21st@gmail.com>:
> Hi,
> Have attached the file along. The connection being made is for the
> gtalk
> server currently. Will require smack api.
>
>
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> shashankt@acm.org
>
>
> Sent from Lucknow, UP, India
>
>
> On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> >>> > wrote:
>>
>> Hi Shashank
>>
>> Good job !
>>
>> I have few Jabber accounts, if you send me you little app, I can do
>> some
>> tests.
>>
>>
>> For the other here is a recap of the tests :
>> Jabber : according to the developpers max size : 64kb
>> GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
>> MSN : max avatar dimension : 128x128
>> ICQ / AIM : currently testing
>> Yahoo : Our current library doesn't support user avatars
>>
>> Bye
>>
>> Damien
>>
>> 2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>> >> Hi Damien,
>> >> Sorry for getting back so late. jml took a lot of
>> >> time
>> >> due
>> >> to lack of proper documentation and javadocs. After a lot of help
>> >> from
>> >> Damian, I was able to set avatar on MSN. Here also after testing I
>> >> found
>> >> 128x128 as the limit (though will confirm this and file size with
>> >> Damian).
>> >> Next I will be moving on to joscar which also lacks proper
>> >> documentations.
>> >> There too I will have to proceed using examples provided with the
>> >> trunk.
>> >> Hope to finish that too before I formally start coding from 23rd.
>> >
>> > And sorry Emil for forgetting about the dev list.
>> >>
>> >>
>> >> -----
>> >> Shashank Tyagi,
>> >> Computer Science(IDD),
>> >> Part III,
>> >> Institute of Technology,
>> >> Banaras Hindu University,
>> >> India.
>> >> +91-9651422932
>> >> +91-9235600751
>> >> shashank.tyagi.cse06@itbhu.ac.in
>> >> shashankt@acm.org
>> >>
>> >>
>> >> Sent from Lucknow, UP, India
>> >>
>> >>
>> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >>> >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>> >>>
>> >>> Hi Damien,
>> >>> Was able to successfully complete the avatar
>> >>> implementation in smack. As for size limits I talked to some
>> >>> developers who
>> >>> were part of XMPP protocol. According to them that as such there
>> >>> is no
>> >>> size
>> >>> limit as per the protocol. Though at jabber they keep a size limit
>> >>> of
>> >>> 64K. I
>> >>> havent tried for Jabber myself but for GoogleTalk the size limit
>> >>> is in
>> >>> pixel
>> >>> size at 128x128 which I verified by testing myself. Was unable to
>> >>> find
>> >>> the
>> >>> maximum avatar file size for now.
>> >>> Next am going to do the same for MSN (java-jml).
>> >>>
>> >>> -----
>> >>> Shashank Tyagi,
>> >>> Computer Science(IDD),
>> >>> Part III,
>> >>> Institute of Technology,
>> >>> Banaras Hindu University,
>> >>> India.
>> >>> +91-9651422932
>> >>> +91-9235600751
>> >>> shashank.tyagi.cse06@itbhu.ac.in
>> >>> styagi@acm.org
>> >>>
>> >>>
>> >>>
>> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov >>> >> >>> <emcho@sip-communicator.org> >>> >> >>> wrote:
>> >>>>
>> >>>> Hey Shashank,
>> >>>>
>> >>>> Could you please resend your mail to our dev list and we'll
>> >>>> answer
>> >>>> there.
>> >>>>
>> >>>> Thanks
>> >>>> Emil
>> >>>>
>> >>>> Shashank Tyagi wrote:
>> >>>> > Hi Damien,
>> >>>> > As I told you I was currently going through the
>> >>>> > code
>> >>>> > of
>> >>>> > GUI part of SC. Was doing it to get familiar with the structure
>> >>>> > of
>> >>>> > it.
>> >>>> > Now have found the part where the current avatar is displayed
>> >>>> > and
>> >>>> > was
>> >>>> > successful in adding additional Mouse Listeners to it.
>> >>>> >
>> >>>> > As per your timeline from now on I will devote my time for
>> >>>> > implementing
>> >>>> > mechanisms in different protocols.
>> >>>> > For doing this firstly I will test the individual protocol
>> >>>> > api's
>> >>>> > without
>> >>>> > linking it with SC code. Will start this from tonight itself.
>> >>>> >
>> >>>> > Secondly, you were talking about picture in Contact List. Why
>> >>>> > do we
>> >>>> > need
>> >>>> > to work there when we can provide the option by adding option
>> >>>> > menu
>> >>>> > in
>> >>>> > current avatar displayed for the account.
>> >>>> > Have marked the avatar I am talking about in the attached
>> >>>> > image.
>> >>>> >
>> >>>> > Will try to be active on the mailing list but to be honest am
>> >>>> > unable
>> >>>> > to
>> >>>> > understand what is going on there most of the time. I do try to
>> >>>> > go
>> >>>> > through and understand all the issues though.
>> >>>> >
>> >>>> > -----
>> >>>> > Shashank Tyagi,
>> >>>> > Computer Science(IDD),
>> >>>> > Part III,
>> >>>> > Institute of Technology,
>> >>>> > Banaras Hindu University,
>> >>>> > India.
>> >>>> > +91-9651422932
>> >>>> > +91-9235600751
>> >>>> > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth >>> >> >>>> > <damien.roth@gmail.com >>> >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>> >>>> >
>> >>>> > Hello,
>> >>>> >
>> >>>> > Don't worry, as we said your exams are top priority and I
>> >>>> > hope
>> >>>> > they
>> >>>> > went well.
>> >>>> >
>> >>>> > I'm working on Eclipse+Linux, since our project doesn't
>> >>>> > require
>> >>>> > code
>> >>>> > for specific platform, it shouldn't be a problem.
>> >>>> > In any case, my main computer has Windows Vista as OS so I
>> >>>> > can
>> >>>> > switch to test.
>> >>>> >
>> >>>> > Last week, I had a chat with Emil and we come up with a
>> >>>> > timeline
>> >>>> > for
>> >>>> > the project based on the one in your proposal :
>> >>>> > First term
>> >>>> > 1. Research mechanisms for all supported stacks to set
>> >>>> > the
>> >>>> > image
>> >>>> > (methods + max size).
>> >>>> > 2. Our picture in the contact list highlights on mouse
>> >>>> > over
>> >>>> > 3. Clicking on our picture opens a file chooser and
>> >>>> > selecting
>> >>>> > an
>> >>>> > image sets it for all protocols that support the operation
>> >>>> > 4. Implement support for picture setting in XMPP (and
>> >>>> > Google
>> >>>> > Talk if
>> >>>> > different)
>> >>>> > 5. Implement support for picture setting in Yahoo!
>> >>>> > 6. Implement support for picture setting in MSN
>> >>>> > 7. Implement support for picture setting in ICQ (and AIM
>> >>>> > if
>> >>>> > different)
>> >>>> >
>> >>>> > Second term
>> >>>> > 1. Create new interfaces in the media service that give
>> >>>> > access
>> >>>> > to
>> >>>> > the local video device
>> >>>> > 2. Implement the above interfaces
>> >>>> > 3. Create a new "Image Picker" service that allows
>> >>>> > retrieving
>> >>>> > and
>> >>>> > editing snapshots from the webcam or images selected with
>> >>>> > the
>> >>>> > file
>> >>>> > chooser
>> >>>> > 4. Provide an implementation for that service that
>> >>>> > includes:
>> >>>> > * A way for bundles to invoke it through a single
>> >>>> > method
>> >>>> > and
>> >>>> > receive an image as a result
>> >>>> > * An user interface inspired by the Adium "Image
>> >>>> > picker"
>> >>>> > which
>> >>>> > allows users to take new snapshots
>> >>>> > * The possibility for the user to clip the image
>> >>>> >
>> >>>> > Optional
>> >>>> > 1. Store the last X images used (X is defined in the
>> >>>> > configuration
>> >>>> > file)
>> >>>> > 2. Allow the user to set a specific image for an account
>> >>>> >
>> >>>> > The more important features are in the first term and in
>> >>>> > the
>> >>>> > first
>> >>>> > part of the second one.
>> >>>> > The optional part contains some ideas, if you finish before
>> >>>> > the
>> >>>> > end
>> >>>> > of the GSoC.
>> >>>> > This timeline will be put on the website so the other
>> >>>> > members
>> >>>> > can
>> >>>> > follow your progress.
>> >>>> >
>> >>>> > Since most of the GUI ideas comes from Adium (the mac
>> >>>> > version
>> >>>> > of
>> >>>> > pidgin), I will provide you with some screenshots.
>> >>>> >
>> >>>> > Another important part, I will ask you to :
>> >>>> > - Communicate regularly on the mailing list (announce
>> >>>> > your
>> >>>> > progress
>> >>>> > according to the timeline, ask questions, reply if you can
>> >>>> > to
>> >>>> > other
>> >>>> > students)
>> >>>> > - Respect the code convention :
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>> >>>> > - Provide a complete javadoc and comment you code
>> >>>> >
>> >>>> > Until the 23th, you can also start the first item from the
>> >>>> > first
>> >>>> > term
>> >>>> > : Research mechanisms for all supported stacks to set the
>> >>>> > image
>> >>>> > (methods + max size).
>> >>>> > - methods : most of them are in your proposal, but I leave
>> >>>> > the
>> >>>> > conversion between a java object (Image, BufferedImage,
>> >>>> > ...) to
>> >>>> > a
>> >>>> > protocol object
>> >>>> > - max size : some protocols limit the size of the avatars,
>> >>>> > for
>> >>>> > example in XMPP it's 80x80 px (if my memory is correct)
>> >>>> >
>> >>>> > If you have any question about the timeline or for
>> >>>> > everything
>> >>>> > else,
>> >>>> > don't hesitate.
>> >>>> >
>> >>>> > Bye
>> >>>> >
>> >>>> > Damien
>> >>>> >
>> >>>> > 2009/5/9 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>> >>>> > > Hi Damien,
>> >>>> > > Sorry for not contacting you since quite
>> >>>> > some
>> >>>> > time.
>> >>>> > Was busy
>> >>>> > > with my exams and stuff. Now college is over for summers
>> >>>> > and
>> >>>> > am
>> >>>> > right now at
>> >>>> > > home. So will be giving my full time to this project from
>> >>>> > now
>> >>>> > on.
>> >>>> > I have
>> >>>> > > started working from today and have got the observer
>> >>>> > status
>> >>>> > for
>> >>>> > SIP and have
>> >>>> > > compiled and ran the project from Netbeans. Will be using
>> >>>> > Netbeans
>> >>>> > and using
>> >>>> > > platform Vista for the project. Hope its fine with you.
>> >>>> > If
>> >>>> > need
>> >>>> > be can
>> >>>> > > switch to Linux but I would prefer Windows.
>> >>>> > > With project running my next step will be to locate code
>> >>>> > for
>> >>>> > the
>> >>>> > box where
>> >>>> > > currently the avatar is displayed.
>> >>>> > > Also as this is the first big project I am doing so am
>> >>>> > new to
>> >>>> > SVN
>> >>>> > and other
>> >>>> > > technologies used. So there may be a possibility that I
>> >>>> > will
>> >>>> > have
>> >>>> > some very
>> >>>> > > foolish doubts. Please dont mind that.
>> >>>> > >
>> >>>> > > For now this is all I have to report.
>> >>>> > > Will keep you updated of my progress in this thread only.
>> >>>> > > -----
>> >>>> > > Shashank Tyagi,
>> >>>> > > Computer Science(IDD),
>> >>>> > > Part III,
>> >>>> > > Institute of Technology,
>> >>>> > > Banaras Hindu University,
>> >>>> > > India.
>> >>>> > > +91-9651422932
>> >>>> > > +91-9235600751
>> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
>> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
>> >>>> > >
>> >>>> > >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > ------------------------------------------------------------------------
>> >>>> >
>> >>>>
>> >>>> --
>> >>>> Emil Ivov, Ph.D. 30a rue de la
>> >>>> Patrie
>> >>>> Founder and Project Lead 67300 Schiltigheim
>> >>>> SIP Communicator
>> >>>> emcho@sip-communicator.org FAX:
>> >>>> +33.1.77.62.47.31
>> >>>> http://sip-communicator.org PHONE:
>> >>>> +33.1.77.62.43.30
>> >>>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail:
>> dev-help@sip-communicator.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hi,
   I was able to generate the same response! This is due to file size only.
The code I gave interpolates image to size of 128x128. The length of the
byte[] is given in output which in your case is 32630.
For the same jpg image file i tried different sizes and here is the result:
For the size in which length was 10281 image was successfully updated.

The next size I got was 10409 which gave an error. Any size greater than
this gave an error.

So the limit is somewhere in between.

And it has nothing to do with the image type as I uploaded a png file too.

Another thing. There is no restriction on image size in jabber.org server.
Uploaded my simple red image at size 200x200.

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Sun, May 24, 2009 at 8:42 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi

Here is the exception

32630
true
No response from server on status set.:
       at org.jivesoftware.smackx.packet.VCard.save(VCard.java:512)
       at imagetest.<init>(smack_dp.java:52)
       at smack_dp.main(smack_dp.java:79)

The image used is :
type : png
dimension : 96x96
size : 20526 octets

2009/5/24 shashank <aug21st@gmail.com>:
> Hi,
> Tried it with jabber account and it is working fine in my case.
> Testing Scenario:
> my jabber account (aug21st@jabber.org) was added in my gmail account
> (aug21st@gmail.com).
> gmail account was online using SC. jabber account was tested using my
code.
>
> Attached the file with modifications for jabber server.
>
> It would be helpful if you can try using this file or post the error
> details.
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> shashankt@acm.org
>
>
> Sent from Kanpur, UP, India
>
>
> On Sun, May 24, 2009 at 2:21 PM, shashank <aug21st@gmail.com> wrote:
>>
>> Hi,
>> I will try with jabber accounts also.
>> For ICQ/AIM I am still trying to implement it using joustsim. Am going
>> through the joustsim example provided with SC. But for the limitations I
was
>> able to implement it using the method provided with joscardemo. While
using
>> AIM it has no limitations on image size but has only on file size. I was
>> able to upload a simple (plain red) image of 400x400 size even and a
normal
>> image of size greater than 150x150 (all jpg). Will find out exactly what
is
>> trhe limit of file size after am able to implement it using joustsim.
>>
>> -----
>> Shashank Tyagi,
>> Computer Science(IDD),
>> Part III,
>> Institute of Technology,
>> Banaras Hindu University,
>> India.
>> +91-9651422932
>> +91-9235600751
>> shashank.tyagi.cse06@itbhu.ac.in
>> shashankt@acm.org
>>
>>
>> Sent from Kanpur, UP, India
>>
>>
>> On Sun, May 24, 2009 at 2:16 PM, Damien Roth <damien.roth@gmail.com> > >> wrote:
>>>
>>> Hi Shashank,
>>>
>>> I've tested with my two jabber accounts.
>>> With the one on jabber.org : I've got an exception when the save
>>> method of the vcard was invoked.
>>> With the one on jabber.nuxo.net : no problem with the dimension,
>>> limited with the size : 64kb
>>>
>>> What's the result with AIM / ICQ ?
>>>
>>> Bye
>>>
>>> Damien
>>>
>>> 2009/5/18 shashank <aug21st@gmail.com>:
>>> > Hi,
>>> > Have attached the file along. The connection being made is for
the
>>> > gtalk
>>> > server currently. Will require smack api.
>>> >
>>> >
>>> > -----
>>> > Shashank Tyagi,
>>> > Computer Science(IDD),
>>> > Part III,
>>> > Institute of Technology,
>>> > Banaras Hindu University,
>>> > India.
>>> > +91-9651422932
>>> > +91-9235600751
>>> > shashank.tyagi.cse06@itbhu.ac.in
>>> > shashankt@acm.org
>>> >
>>> >
>>> > Sent from Lucknow, UP, India
>>> >
>>> >
>>> > On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com> > >>> > wrote:
>>> >>
>>> >> Hi Shashank
>>> >>
>>> >> Good job !
>>> >>
>>> >> I have few Jabber accounts, if you send me you little app, I can do
>>> >> some
>>> >> tests.
>>> >>
>>> >>
>>> >> For the other here is a recap of the tests :
>>> >> Jabber : according to the developpers max size : 64kb
>>> >> GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
>>> >> MSN : max avatar dimension : 128x128
>>> >> ICQ / AIM : currently testing
>>> >> Yahoo : Our current library doesn't support user avatars
>>> >>
>>> >> Bye
>>> >>
>>> >> Damien
>>> >>
>>> >> 2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>>> >> >> Hi Damien,
>>> >> >> Sorry for getting back so late. jml took a lot of
>>> >> >> time
>>> >> >> due
>>> >> >> to lack of proper documentation and javadocs. After a lot of help
>>> >> >> from
>>> >> >> Damian, I was able to set avatar on MSN. Here also after testing
I
>>> >> >> found
>>> >> >> 128x128 as the limit (though will confirm this and file size with
>>> >> >> Damian).
>>> >> >> Next I will be moving on to joscar which also lacks proper
>>> >> >> documentations.
>>> >> >> There too I will have to proceed using examples provided with the
>>> >> >> trunk.
>>> >> >> Hope to finish that too before I formally start coding from 23rd.
>>> >> >
>>> >> > And sorry Emil for forgetting about the dev list.
>>> >> >>
>>> >> >>
>>> >> >> -----
>>> >> >> Shashank Tyagi,
>>> >> >> Computer Science(IDD),
>>> >> >> Part III,
>>> >> >> Institute of Technology,
>>> >> >> Banaras Hindu University,
>>> >> >> India.
>>> >> >> +91-9651422932
>>> >> >> +91-9235600751
>>> >> >> shashank.tyagi.cse06@itbhu.ac.in
>>> >> >> shashankt@acm.org
>>> >> >>
>>> >> >>
>>> >> >> Sent from Lucknow, UP, India
>>> >> >>
>>> >> >>
>>> >> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi > >>> >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>>> >> >>>
>>> >> >>> Hi Damien,
>>> >> >>> Was able to successfully complete the avatar
>>> >> >>> implementation in smack. As for size limits I talked to some
>>> >> >>> developers who
>>> >> >>> were part of XMPP protocol. According to them that as such there
>>> >> >>> is no
>>> >> >>> size
>>> >> >>> limit as per the protocol. Though at jabber they keep a size
limit
>>> >> >>> of
>>> >> >>> 64K. I
>>> >> >>> havent tried for Jabber myself but for GoogleTalk the size limit
>>> >> >>> is in
>>> >> >>> pixel
>>> >> >>> size at 128x128 which I verified by testing myself. Was unable
to
>>> >> >>> find
>>> >> >>> the
>>> >> >>> maximum avatar file size for now.
>>> >> >>> Next am going to do the same for MSN (java-jml).
>>> >> >>>
>>> >> >>> -----
>>> >> >>> Shashank Tyagi,
>>> >> >>> Computer Science(IDD),
>>> >> >>> Part III,
>>> >> >>> Institute of Technology,
>>> >> >>> Banaras Hindu University,
>>> >> >>> India.
>>> >> >>> +91-9651422932
>>> >> >>> +91-9235600751
>>> >> >>> shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>> styagi@acm.org
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov > >>> >> >>> <emcho@sip-communicator.org> > >>> >> >>> wrote:
>>> >> >>>>
>>> >> >>>> Hey Shashank,
>>> >> >>>>
>>> >> >>>> Could you please resend your mail to our dev list and we'll
>>> >> >>>> answer
>>> >> >>>> there.
>>> >> >>>>
>>> >> >>>> Thanks
>>> >> >>>> Emil
>>> >> >>>>
>>> >> >>>> Shashank Tyagi wrote:
>>> >> >>>> > Hi Damien,
>>> >> >>>> > As I told you I was currently going through
the
>>> >> >>>> > code
>>> >> >>>> > of
>>> >> >>>> > GUI part of SC. Was doing it to get familiar with the
structure
>>> >> >>>> > of
>>> >> >>>> > it.
>>> >> >>>> > Now have found the part where the current avatar is displayed
>>> >> >>>> > and
>>> >> >>>> > was
>>> >> >>>> > successful in adding additional Mouse Listeners to it.
>>> >> >>>> >
>>> >> >>>> > As per your timeline from now on I will devote my time for
>>> >> >>>> > implementing
>>> >> >>>> > mechanisms in different protocols.
>>> >> >>>> > For doing this firstly I will test the individual protocol
>>> >> >>>> > api's
>>> >> >>>> > without
>>> >> >>>> > linking it with SC code. Will start this from tonight itself.
>>> >> >>>> >
>>> >> >>>> > Secondly, you were talking about picture in Contact List. Why
>>> >> >>>> > do we
>>> >> >>>> > need
>>> >> >>>> > to work there when we can provide the option by adding option
>>> >> >>>> > menu
>>> >> >>>> > in
>>> >> >>>> > current avatar displayed for the account.
>>> >> >>>> > Have marked the avatar I am talking about in the attached
>>> >> >>>> > image.
>>> >> >>>> >
>>> >> >>>> > Will try to be active on the mailing list but to be honest am
>>> >> >>>> > unable
>>> >> >>>> > to
>>> >> >>>> > understand what is going on there most of the time. I do try
to
>>> >> >>>> > go
>>> >> >>>> > through and understand all the issues though.
>>> >> >>>> >
>>> >> >>>> > -----
>>> >> >>>> > Shashank Tyagi,
>>> >> >>>> > Computer Science(IDD),
>>> >> >>>> > Part III,
>>> >> >>>> > Institute of Technology,
>>> >> >>>> > Banaras Hindu University,
>>> >> >>>> > India.
>>> >> >>>> > +91-9651422932
>>> >> >>>> > +91-9235600751
>>> >> >>>> > shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>> >> >>>> > styagi@acm.org <mailto:styagi@acm.org>
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth > >>> >> >>>> > <damien.roth@gmail.com > >>> >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>>> >> >>>> >
>>> >> >>>> > Hello,
>>> >> >>>> >
>>> >> >>>> > Don't worry, as we said your exams are top priority and I
>>> >> >>>> > hope
>>> >> >>>> > they
>>> >> >>>> > went well.
>>> >> >>>> >
>>> >> >>>> > I'm working on Eclipse+Linux, since our project doesn't
>>> >> >>>> > require
>>> >> >>>> > code
>>> >> >>>> > for specific platform, it shouldn't be a problem.
>>> >> >>>> > In any case, my main computer has Windows Vista as OS so
I
>>> >> >>>> > can
>>> >> >>>> > switch to test.
>>> >> >>>> >
>>> >> >>>> > Last week, I had a chat with Emil and we come up with a
>>> >> >>>> > timeline
>>> >> >>>> > for
>>> >> >>>> > the project based on the one in your proposal :
>>> >> >>>> > First term
>>> >> >>>> > 1. Research mechanisms for all supported stacks to set
>>> >> >>>> > the
>>> >> >>>> > image
>>> >> >>>> > (methods + max size).
>>> >> >>>> > 2. Our picture in the contact list highlights on mouse
>>> >> >>>> > over
>>> >> >>>> > 3. Clicking on our picture opens a file chooser and
>>> >> >>>> > selecting
>>> >> >>>> > an
>>> >> >>>> > image sets it for all protocols that support the
operation
>>> >> >>>> > 4. Implement support for picture setting in XMPP (and
>>> >> >>>> > Google
>>> >> >>>> > Talk if
>>> >> >>>> > different)
>>> >> >>>> > 5. Implement support for picture setting in Yahoo!
>>> >> >>>> > 6. Implement support for picture setting in MSN
>>> >> >>>> > 7. Implement support for picture setting in ICQ (and
AIM
>>> >> >>>> > if
>>> >> >>>> > different)
>>> >> >>>> >
>>> >> >>>> > Second term
>>> >> >>>> > 1. Create new interfaces in the media service that give
>>> >> >>>> > access
>>> >> >>>> > to
>>> >> >>>> > the local video device
>>> >> >>>> > 2. Implement the above interfaces
>>> >> >>>> > 3. Create a new "Image Picker" service that allows
>>> >> >>>> > retrieving
>>> >> >>>> > and
>>> >> >>>> > editing snapshots from the webcam or images selected with
>>> >> >>>> > the
>>> >> >>>> > file
>>> >> >>>> > chooser
>>> >> >>>> > 4. Provide an implementation for that service that
>>> >> >>>> > includes:
>>> >> >>>> > * A way for bundles to invoke it through a single
>>> >> >>>> > method
>>> >> >>>> > and
>>> >> >>>> > receive an image as a result
>>> >> >>>> > * An user interface inspired by the Adium "Image
>>> >> >>>> > picker"
>>> >> >>>> > which
>>> >> >>>> > allows users to take new snapshots
>>> >> >>>> > * The possibility for the user to clip the image
>>> >> >>>> >
>>> >> >>>> > Optional
>>> >> >>>> > 1. Store the last X images used (X is defined in the
>>> >> >>>> > configuration
>>> >> >>>> > file)
>>> >> >>>> > 2. Allow the user to set a specific image for an
account
>>> >> >>>> >
>>> >> >>>> > The more important features are in the first term and in
>>> >> >>>> > the
>>> >> >>>> > first
>>> >> >>>> > part of the second one.
>>> >> >>>> > The optional part contains some ideas, if you finish
before
>>> >> >>>> > the
>>> >> >>>> > end
>>> >> >>>> > of the GSoC.
>>> >> >>>> > This timeline will be put on the website so the other
>>> >> >>>> > members
>>> >> >>>> > can
>>> >> >>>> > follow your progress.
>>> >> >>>> >
>>> >> >>>> > Since most of the GUI ideas comes from Adium (the mac
>>> >> >>>> > version
>>> >> >>>> > of
>>> >> >>>> > pidgin), I will provide you with some screenshots.
>>> >> >>>> >
>>> >> >>>> > Another important part, I will ask you to :
>>> >> >>>> > - Communicate regularly on the mailing list (announce
>>> >> >>>> > your
>>> >> >>>> > progress
>>> >> >>>> > according to the timeline, ask questions, reply if you
can
>>> >> >>>> > to
>>> >> >>>> > other
>>> >> >>>> > students)
>>> >> >>>> > - Respect the code convention :
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>>> >> >>>> > - Provide a complete javadoc and comment you code
>>> >> >>>> >
>>> >> >>>> > Until the 23th, you can also start the first item from
the
>>> >> >>>> > first
>>> >> >>>> > term
>>> >> >>>> > : Research mechanisms for all supported stacks to set the
>>> >> >>>> > image
>>> >> >>>> > (methods + max size).
>>> >> >>>> > - methods : most of them are in your proposal, but I
leave
>>> >> >>>> > the
>>> >> >>>> > conversion between a java object (Image, BufferedImage,
>>> >> >>>> > ...) to
>>> >> >>>> > a
>>> >> >>>> > protocol object
>>> >> >>>> > - max size : some protocols limit the size of the
avatars,
>>> >> >>>> > for
>>> >> >>>> > example in XMPP it's 80x80 px (if my memory is correct)
>>> >> >>>> >
>>> >> >>>> > If you have any question about the timeline or for
>>> >> >>>> > everything
>>> >> >>>> > else,
>>> >> >>>> > don't hesitate.
>>> >> >>>> >
>>> >> >>>> > Bye
>>> >> >>>> >
>>> >> >>>> > Damien
>>> >> >>>> >
>>> >> >>>> > 2009/5/9 Shashank Tyagi <
shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>>> >> >>>> > > Hi Damien,
>>> >> >>>> > > Sorry for not contacting you since quite
>>> >> >>>> > some
>>> >> >>>> > time.
>>> >> >>>> > Was busy
>>> >> >>>> > > with my exams and stuff. Now college is over for
summers
>>> >> >>>> > and
>>> >> >>>> > am
>>> >> >>>> > right now at
>>> >> >>>> > > home. So will be giving my full time to this project
from
>>> >> >>>> > now
>>> >> >>>> > on.
>>> >> >>>> > I have
>>> >> >>>> > > started working from today and have got the observer
>>> >> >>>> > status
>>> >> >>>> > for
>>> >> >>>> > SIP and have
>>> >> >>>> > > compiled and ran the project from Netbeans. Will be
using
>>> >> >>>> > Netbeans
>>> >> >>>> > and using
>>> >> >>>> > > platform Vista for the project. Hope its fine with you.
>>> >> >>>> > If
>>> >> >>>> > need
>>> >> >>>> > be can
>>> >> >>>> > > switch to Linux but I would prefer Windows.
>>> >> >>>> > > With project running my next step will be to locate
code
>>> >> >>>> > for
>>> >> >>>> > the
>>> >> >>>> > box where
>>> >> >>>> > > currently the avatar is displayed.
>>> >> >>>> > > Also as this is the first big project I am doing so am
>>> >> >>>> > new to
>>> >> >>>> > SVN
>>> >> >>>> > and other
>>> >> >>>> > > technologies used. So there may be a possibility that I
>>> >> >>>> > will
>>> >> >>>> > have
>>> >> >>>> > some very
>>> >> >>>> > > foolish doubts. Please dont mind that.
>>> >> >>>> > >
>>> >> >>>> > > For now this is all I have to report.
>>> >> >>>> > > Will keep you updated of my progress in this thread
only.
>>> >> >>>> > > -----
>>> >> >>>> > > Shashank Tyagi,
>>> >> >>>> > > Computer Science(IDD),
>>> >> >>>> > > Part III,
>>> >> >>>> > > Institute of Technology,
>>> >> >>>> > > Banaras Hindu University,
>>> >> >>>> > > India.
>>> >> >>>> > > +91-9651422932
>>> >> >>>> > > +91-9235600751
>>> >> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>> >> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
>>> >> >>>> > >
>>> >> >>>> > >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
------------------------------------------------------------------------
>>> >> >>>> >
>>> >> >>>>
>>> >> >>>> --
>>> >> >>>> Emil Ivov, Ph.D. 30a rue de la
>>> >> >>>> Patrie
>>> >> >>>> Founder and Project Lead 67300
Schiltigheim
>>> >> >>>> SIP Communicator
>>> >> >>>> emcho@sip-communicator.org FAX:
>>> >> >>>> +33.1.77.62.47.31
>>> >> >>>> http://sip-communicator.org PHONE:
>>> >> >>>> +33.1.77.62.43.30
>>> >> >>>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >>
---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
>>> >> For additional commands, e-mail:
>>> >> dev-help@sip-communicator.dev.java.net
>>> >>
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
>>> > For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
>>> For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hi,
   I was able to integrate my code for Jabber in SC and as required in my
first phase was able to upload an image for the account. The program
structure I have followed is given below and I would like to know whether is
it correct or not:

Created a new Operation Set OperationSetImageUpload

First it registers the same in ProtocolProviderServiceJabberImpl
There is an interface OperationSetImageUpload in service.protocol and its
Jabber implementation OperationSetImageUploadJabberImpl in
impl.protocol.jabber. They have the function uploadImage which takes byte[]
as input.

In GUI part:
in AccountStatusPanel I have added a MouseListener to accountImageLabel. On
mouse click we get File Chooser. The image is converted to byte[].
For all protocols that are currently registered we invoke the function
uploadImage.

I have followed the same structure as was present for setting Status
Messages. Please tell me if this is correct or not. Will continue for other
protocols if correct.

···

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

On Sun, May 24, 2009 at 9:10 PM, shashank <aug21st@gmail.com> wrote:

Hi,
   I was able to generate the same response! This is due to file size only.
The code I gave interpolates image to size of 128x128. The length of the
byte[] is given in output which in your case is 32630.
For the same jpg image file i tried different sizes and here is the result:
For the size in which length was 10281 image was successfully updated.

The next size I got was 10409 which gave an error. Any size greater than
this gave an error.

So the limit is somewhere in between.

And it has nothing to do with the image type as I uploaded a png file too.

Another thing. There is no restriction on image size in jabber.org server.
Uploaded my simple red image at size 200x200.
-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in
shashankt@acm.org

Sent from Lucknow, UP, India

On Sun, May 24, 2009 at 8:42 PM, Damien Roth <damien.roth@gmail.com>wrote:

Hi

Here is the exception

32630
true
No response from server on status set.:
       at org.jivesoftware.smackx.packet.VCard.save(VCard.java:512)
       at imagetest.<init>(smack_dp.java:52)
       at smack_dp.main(smack_dp.java:79)

The image used is :
type : png
dimension : 96x96
size : 20526 octets

2009/5/24 shashank <aug21st@gmail.com>:
> Hi,
> Tried it with jabber account and it is working fine in my case.
> Testing Scenario:
> my jabber account (aug21st@jabber.org) was added in my gmail account
> (aug21st@gmail.com).
> gmail account was online using SC. jabber account was tested using my
code.
>
> Attached the file with modifications for jabber server.
>
> It would be helpful if you can try using this file or post the error
> details.
> -----
> Shashank Tyagi,
> Computer Science(IDD),
> Part III,
> Institute of Technology,
> Banaras Hindu University,
> India.
> +91-9651422932
> +91-9235600751
> shashank.tyagi.cse06@itbhu.ac.in
> shashankt@acm.org
>
>
> Sent from Kanpur, UP, India
>
>
> On Sun, May 24, 2009 at 2:21 PM, shashank <aug21st@gmail.com> wrote:
>>
>> Hi,
>> I will try with jabber accounts also.
>> For ICQ/AIM I am still trying to implement it using joustsim. Am going
>> through the joustsim example provided with SC. But for the limitations
I was
>> able to implement it using the method provided with joscardemo. While
using
>> AIM it has no limitations on image size but has only on file size. I
was
>> able to upload a simple (plain red) image of 400x400 size even and a
normal
>> image of size greater than 150x150 (all jpg). Will find out exactly
what is
>> trhe limit of file size after am able to implement it using joustsim.
>>
>> -----
>> Shashank Tyagi,
>> Computer Science(IDD),
>> Part III,
>> Institute of Technology,
>> Banaras Hindu University,
>> India.
>> +91-9651422932
>> +91-9235600751
>> shashank.tyagi.cse06@itbhu.ac.in
>> shashankt@acm.org
>>
>>
>> Sent from Kanpur, UP, India
>>
>>
>> On Sun, May 24, 2009 at 2:16 PM, Damien Roth <damien.roth@gmail.com> >> >> wrote:
>>>
>>> Hi Shashank,
>>>
>>> I've tested with my two jabber accounts.
>>> With the one on jabber.org : I've got an exception when the save
>>> method of the vcard was invoked.
>>> With the one on jabber.nuxo.net : no problem with the dimension,
>>> limited with the size : 64kb
>>>
>>> What's the result with AIM / ICQ ?
>>>
>>> Bye
>>>
>>> Damien
>>>
>>> 2009/5/18 shashank <aug21st@gmail.com>:
>>> > Hi,
>>> > Have attached the file along. The connection being made is for
the
>>> > gtalk
>>> > server currently. Will require smack api.
>>> >
>>> >
>>> > -----
>>> > Shashank Tyagi,
>>> > Computer Science(IDD),
>>> > Part III,
>>> > Institute of Technology,
>>> > Banaras Hindu University,
>>> > India.
>>> > +91-9651422932
>>> > +91-9235600751
>>> > shashank.tyagi.cse06@itbhu.ac.in
>>> > shashankt@acm.org
>>> >
>>> >
>>> > Sent from Lucknow, UP, India
>>> >
>>> >
>>> > On Mon, May 18, 2009 at 6:58 PM, Damien Roth <damien.roth@gmail.com >> > >> >>> > wrote:
>>> >>
>>> >> Hi Shashank
>>> >>
>>> >> Good job !
>>> >>
>>> >> I have few Jabber accounts, if you send me you little app, I can do
>>> >> some
>>> >> tests.
>>> >>
>>> >>
>>> >> For the other here is a recap of the tests :
>>> >> Jabber : according to the developpers max size : 64kb
>>> >> GoogleTalk : max avatar dimension : 128x128 (max size 64 kb?
>>> >> MSN : max avatar dimension : 128x128
>>> >> ICQ / AIM : currently testing
>>> >> Yahoo : Our current library doesn't support user avatars
>>> >>
>>> >> Bye
>>> >>
>>> >> Damien
>>> >>
>>> >> 2009/5/17 Shashank Tyagi <shashank.tyagi.cse06@itbhu.ac.in>:
>>> >> >> Hi Damien,
>>> >> >> Sorry for getting back so late. jml took a lot of
>>> >> >> time
>>> >> >> due
>>> >> >> to lack of proper documentation and javadocs. After a lot of
help
>>> >> >> from
>>> >> >> Damian, I was able to set avatar on MSN. Here also after testing
I
>>> >> >> found
>>> >> >> 128x128 as the limit (though will confirm this and file size
with
>>> >> >> Damian).
>>> >> >> Next I will be moving on to joscar which also lacks proper
>>> >> >> documentations.
>>> >> >> There too I will have to proceed using examples provided with
the
>>> >> >> trunk.
>>> >> >> Hope to finish that too before I formally start coding from
23rd.
>>> >> >
>>> >> > And sorry Emil for forgetting about the dev list.
>>> >> >>
>>> >> >>
>>> >> >> -----
>>> >> >> Shashank Tyagi,
>>> >> >> Computer Science(IDD),
>>> >> >> Part III,
>>> >> >> Institute of Technology,
>>> >> >> Banaras Hindu University,
>>> >> >> India.
>>> >> >> +91-9651422932
>>> >> >> +91-9235600751
>>> >> >> shashank.tyagi.cse06@itbhu.ac.in
>>> >> >> shashankt@acm.org
>>> >> >>
>>> >> >>
>>> >> >> Sent from Lucknow, UP, India
>>> >> >>
>>> >> >>
>>> >> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi >> >>> >> >> <shashank.tyagi.cse06@itbhu.ac.in> wrote:
>>> >> >>>
>>> >> >>> Hi Damien,
>>> >> >>> Was able to successfully complete the avatar
>>> >> >>> implementation in smack. As for size limits I talked to some
>>> >> >>> developers who
>>> >> >>> were part of XMPP protocol. According to them that as such
there
>>> >> >>> is no
>>> >> >>> size
>>> >> >>> limit as per the protocol. Though at jabber they keep a size
limit
>>> >> >>> of
>>> >> >>> 64K. I
>>> >> >>> havent tried for Jabber myself but for GoogleTalk the size
limit
>>> >> >>> is in
>>> >> >>> pixel
>>> >> >>> size at 128x128 which I verified by testing myself. Was unable
to
>>> >> >>> find
>>> >> >>> the
>>> >> >>> maximum avatar file size for now.
>>> >> >>> Next am going to do the same for MSN (java-jml).
>>> >> >>>
>>> >> >>> -----
>>> >> >>> Shashank Tyagi,
>>> >> >>> Computer Science(IDD),
>>> >> >>> Part III,
>>> >> >>> Institute of Technology,
>>> >> >>> Banaras Hindu University,
>>> >> >>> India.
>>> >> >>> +91-9651422932
>>> >> >>> +91-9235600751
>>> >> >>> shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>> styagi@acm.org
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov >> >>> >> >>> <emcho@sip-communicator.org> >> >>> >> >>> wrote:
>>> >> >>>>
>>> >> >>>> Hey Shashank,
>>> >> >>>>
>>> >> >>>> Could you please resend your mail to our dev list and we'll
>>> >> >>>> answer
>>> >> >>>> there.
>>> >> >>>>
>>> >> >>>> Thanks
>>> >> >>>> Emil
>>> >> >>>>
>>> >> >>>> Shashank Tyagi wrote:
>>> >> >>>> > Hi Damien,
>>> >> >>>> > As I told you I was currently going through
the
>>> >> >>>> > code
>>> >> >>>> > of
>>> >> >>>> > GUI part of SC. Was doing it to get familiar with the
structure
>>> >> >>>> > of
>>> >> >>>> > it.
>>> >> >>>> > Now have found the part where the current avatar is
displayed
>>> >> >>>> > and
>>> >> >>>> > was
>>> >> >>>> > successful in adding additional Mouse Listeners to it.
>>> >> >>>> >
>>> >> >>>> > As per your timeline from now on I will devote my time for
>>> >> >>>> > implementing
>>> >> >>>> > mechanisms in different protocols.
>>> >> >>>> > For doing this firstly I will test the individual protocol
>>> >> >>>> > api's
>>> >> >>>> > without
>>> >> >>>> > linking it with SC code. Will start this from tonight
itself.
>>> >> >>>> >
>>> >> >>>> > Secondly, you were talking about picture in Contact List.
Why
>>> >> >>>> > do we
>>> >> >>>> > need
>>> >> >>>> > to work there when we can provide the option by adding
option
>>> >> >>>> > menu
>>> >> >>>> > in
>>> >> >>>> > current avatar displayed for the account.
>>> >> >>>> > Have marked the avatar I am talking about in the attached
>>> >> >>>> > image.
>>> >> >>>> >
>>> >> >>>> > Will try to be active on the mailing list but to be honest
am
>>> >> >>>> > unable
>>> >> >>>> > to
>>> >> >>>> > understand what is going on there most of the time. I do try
to
>>> >> >>>> > go
>>> >> >>>> > through and understand all the issues though.
>>> >> >>>> >
>>> >> >>>> > -----
>>> >> >>>> > Shashank Tyagi,
>>> >> >>>> > Computer Science(IDD),
>>> >> >>>> > Part III,
>>> >> >>>> > Institute of Technology,
>>> >> >>>> > Banaras Hindu University,
>>> >> >>>> > India.
>>> >> >>>> > +91-9651422932
>>> >> >>>> > +91-9235600751
>>> >> >>>> > shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>> >> >>>> > styagi@acm.org <mailto:styagi@acm.org>
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth >> >>> >> >>>> > <damien.roth@gmail.com >> >>> >> >>>> > <mailto:damien.roth@gmail.com>> wrote:
>>> >> >>>> >
>>> >> >>>> > Hello,
>>> >> >>>> >
>>> >> >>>> > Don't worry, as we said your exams are top priority and
I
>>> >> >>>> > hope
>>> >> >>>> > they
>>> >> >>>> > went well.
>>> >> >>>> >
>>> >> >>>> > I'm working on Eclipse+Linux, since our project doesn't
>>> >> >>>> > require
>>> >> >>>> > code
>>> >> >>>> > for specific platform, it shouldn't be a problem.
>>> >> >>>> > In any case, my main computer has Windows Vista as OS so
I
>>> >> >>>> > can
>>> >> >>>> > switch to test.
>>> >> >>>> >
>>> >> >>>> > Last week, I had a chat with Emil and we come up with a
>>> >> >>>> > timeline
>>> >> >>>> > for
>>> >> >>>> > the project based on the one in your proposal :
>>> >> >>>> > First term
>>> >> >>>> > 1. Research mechanisms for all supported stacks to set
>>> >> >>>> > the
>>> >> >>>> > image
>>> >> >>>> > (methods + max size).
>>> >> >>>> > 2. Our picture in the contact list highlights on mouse
>>> >> >>>> > over
>>> >> >>>> > 3. Clicking on our picture opens a file chooser and
>>> >> >>>> > selecting
>>> >> >>>> > an
>>> >> >>>> > image sets it for all protocols that support the
operation
>>> >> >>>> > 4. Implement support for picture setting in XMPP (and
>>> >> >>>> > Google
>>> >> >>>> > Talk if
>>> >> >>>> > different)
>>> >> >>>> > 5. Implement support for picture setting in Yahoo!
>>> >> >>>> > 6. Implement support for picture setting in MSN
>>> >> >>>> > 7. Implement support for picture setting in ICQ (and
AIM
>>> >> >>>> > if
>>> >> >>>> > different)
>>> >> >>>> >
>>> >> >>>> > Second term
>>> >> >>>> > 1. Create new interfaces in the media service that
give
>>> >> >>>> > access
>>> >> >>>> > to
>>> >> >>>> > the local video device
>>> >> >>>> > 2. Implement the above interfaces
>>> >> >>>> > 3. Create a new "Image Picker" service that allows
>>> >> >>>> > retrieving
>>> >> >>>> > and
>>> >> >>>> > editing snapshots from the webcam or images selected
with
>>> >> >>>> > the
>>> >> >>>> > file
>>> >> >>>> > chooser
>>> >> >>>> > 4. Provide an implementation for that service that
>>> >> >>>> > includes:
>>> >> >>>> > * A way for bundles to invoke it through a single
>>> >> >>>> > method
>>> >> >>>> > and
>>> >> >>>> > receive an image as a result
>>> >> >>>> > * An user interface inspired by the Adium "Image
>>> >> >>>> > picker"
>>> >> >>>> > which
>>> >> >>>> > allows users to take new snapshots
>>> >> >>>> > * The possibility for the user to clip the image
>>> >> >>>> >
>>> >> >>>> > Optional
>>> >> >>>> > 1. Store the last X images used (X is defined in the
>>> >> >>>> > configuration
>>> >> >>>> > file)
>>> >> >>>> > 2. Allow the user to set a specific image for an
account
>>> >> >>>> >
>>> >> >>>> > The more important features are in the first term and in
>>> >> >>>> > the
>>> >> >>>> > first
>>> >> >>>> > part of the second one.
>>> >> >>>> > The optional part contains some ideas, if you finish
before
>>> >> >>>> > the
>>> >> >>>> > end
>>> >> >>>> > of the GSoC.
>>> >> >>>> > This timeline will be put on the website so the other
>>> >> >>>> > members
>>> >> >>>> > can
>>> >> >>>> > follow your progress.
>>> >> >>>> >
>>> >> >>>> > Since most of the GUI ideas comes from Adium (the mac
>>> >> >>>> > version
>>> >> >>>> > of
>>> >> >>>> > pidgin), I will provide you with some screenshots.
>>> >> >>>> >
>>> >> >>>> > Another important part, I will ask you to :
>>> >> >>>> > - Communicate regularly on the mailing list (announce
>>> >> >>>> > your
>>> >> >>>> > progress
>>> >> >>>> > according to the timeline, ask questions, reply if you
can
>>> >> >>>> > to
>>> >> >>>> > other
>>> >> >>>> > students)
>>> >> >>>> > - Respect the code convention :
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
http://www.sip-communicator.org/index.php/Documentation/CodeConvention
>>> >> >>>> > - Provide a complete javadoc and comment you code
>>> >> >>>> >
>>> >> >>>> > Until the 23th, you can also start the first item from
the
>>> >> >>>> > first
>>> >> >>>> > term
>>> >> >>>> > : Research mechanisms for all supported stacks to set
the
>>> >> >>>> > image
>>> >> >>>> > (methods + max size).
>>> >> >>>> > - methods : most of them are in your proposal, but I
leave
>>> >> >>>> > the
>>> >> >>>> > conversion between a java object (Image, BufferedImage,
>>> >> >>>> > ...) to
>>> >> >>>> > a
>>> >> >>>> > protocol object
>>> >> >>>> > - max size : some protocols limit the size of the
avatars,
>>> >> >>>> > for
>>> >> >>>> > example in XMPP it's 80x80 px (if my memory is correct)
>>> >> >>>> >
>>> >> >>>> > If you have any question about the timeline or for
>>> >> >>>> > everything
>>> >> >>>> > else,
>>> >> >>>> > don't hesitate.
>>> >> >>>> >
>>> >> >>>> > Bye
>>> >> >>>> >
>>> >> >>>> > Damien
>>> >> >>>> >
>>> >> >>>> > 2009/5/9 Shashank Tyagi <
shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
>>> >> >>>> > > Hi Damien,
>>> >> >>>> > > Sorry for not contacting you since
quite
>>> >> >>>> > some
>>> >> >>>> > time.
>>> >> >>>> > Was busy
>>> >> >>>> > > with my exams and stuff. Now college is over for
summers
>>> >> >>>> > and
>>> >> >>>> > am
>>> >> >>>> > right now at
>>> >> >>>> > > home. So will be giving my full time to this project
from
>>> >> >>>> > now
>>> >> >>>> > on.
>>> >> >>>> > I have
>>> >> >>>> > > started working from today and have got the observer
>>> >> >>>> > status
>>> >> >>>> > for
>>> >> >>>> > SIP and have
>>> >> >>>> > > compiled and ran the project from Netbeans. Will be
using
>>> >> >>>> > Netbeans
>>> >> >>>> > and using
>>> >> >>>> > > platform Vista for the project. Hope its fine with
you.
>>> >> >>>> > If
>>> >> >>>> > need
>>> >> >>>> > be can
>>> >> >>>> > > switch to Linux but I would prefer Windows.
>>> >> >>>> > > With project running my next step will be to locate
code
>>> >> >>>> > for
>>> >> >>>> > the
>>> >> >>>> > box where
>>> >> >>>> > > currently the avatar is displayed.
>>> >> >>>> > > Also as this is the first big project I am doing so am
>>> >> >>>> > new to
>>> >> >>>> > SVN
>>> >> >>>> > and other
>>> >> >>>> > > technologies used. So there may be a possibility that
I
>>> >> >>>> > will
>>> >> >>>> > have
>>> >> >>>> > some very
>>> >> >>>> > > foolish doubts. Please dont mind that.
>>> >> >>>> > >
>>> >> >>>> > > For now this is all I have to report.
>>> >> >>>> > > Will keep you updated of my progress in this thread
only.
>>> >> >>>> > > -----
>>> >> >>>> > > Shashank Tyagi,
>>> >> >>>> > > Computer Science(IDD),
>>> >> >>>> > > Part III,
>>> >> >>>> > > Institute of Technology,
>>> >> >>>> > > Banaras Hindu University,
>>> >> >>>> > > India.
>>> >> >>>> > > +91-9651422932
>>> >> >>>> > > +91-9235600751
>>> >> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
>>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in>
>>> >> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
>>> >> >>>> > >
>>> >> >>>> > >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
>>> >> >>>> >
------------------------------------------------------------------------
>>> >> >>>> >
>>> >> >>>>
>>> >> >>>> --
>>> >> >>>> Emil Ivov, Ph.D. 30a rue de la
>>> >> >>>> Patrie
>>> >> >>>> Founder and Project Lead 67300
Schiltigheim
>>> >> >>>> SIP Communicator
>>> >> >>>> emcho@sip-communicator.org FAX:
>>> >> >>>> +33.1.77.62.47.31
>>> >> >>>> http://sip-communicator.org PHONE:
>>> >> >>>> +33.1.77.62.43.30
>>> >> >>>
>>> >> >>
>>> >> >
>>> >> >
>>> >>
>>> >>
---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
>>> >> For additional commands, e-mail:
>>> >> dev-help@sip-communicator.dev.java.net
>>> >>
>>> >
>>> >
>>> >
---------------------------------------------------------------------
>>> > To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
>>> > For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
>>> For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#11

Hi,

I think its ok, except the new OperationSet. I don't know have you discussed this with any mentor but there is already an operation set for this and its OperationSetServerStoredAccountInfo. And this is also implemented for jabber. You must just fill the methods addDetail and replaceDetail and make them work for parameters of type ServerStoredDetails.ImageDetail. I think this is preffered method for setting the display picture as this OperationSet is already implemented in some of the protocols. And also this operation set is used to display account picture if any.
What do you think?

damencho

shashank wrote:

···

Hi,
   I was able to integrate my code for Jabber in SC and as required in my first phase was able to upload an image for the account. The program structure I have followed is given below and I would like to know whether is it correct or not:

Created a new Operation Set OperationSetImageUpload

First it registers the same in ProtocolProviderServiceJabberImpl
There is an interface OperationSetImageUpload in service.protocol and its Jabber implementation OperationSetImageUploadJabberImpl in impl.protocol.jabber. They have the function uploadImage which takes byte[] as input.

In GUI part:
in AccountStatusPanel I have added a MouseListener to accountImageLabel. On mouse click we get File Chooser. The image is converted to byte[].
For all protocols that are currently registered we invoke the function uploadImage.

I have followed the same structure as was present for setting Status Messages. Please tell me if this is correct or not. Will continue for other protocols if correct.

-----
Shashank Tyagi,
Computer Science(IDD),
Part III,
Institute of Technology,
Banaras Hindu University,
India.
+91-9651422932
+91-9235600751
shashank.tyagi.cse06@itbhu.ac.in <mailto:shashank.tyagi.cse06@itbhu.ac.in>
shashankt@acm.org <mailto:shashankt@acm.org>

On Sun, May 24, 2009 at 9:10 PM, shashank <aug21st@gmail.com > <mailto:aug21st@gmail.com>> wrote:

    Hi,
       I was able to generate the same response! This is due to file
    size only. The code I gave interpolates image to size of 128x128.
    The length of the byte[] is given in output which in your case is
    32630.
    For the same jpg image file i tried different sizes and here is
    the result:
    For the size in which length was 10281 image was successfully updated.

    The next size I got was 10409 which gave an error. Any size
    greater than this gave an error.

    So the limit is somewhere in between.

    And it has nothing to do with the image type as I uploaded a png
    file too.

    Another thing. There is no restriction on image size in jabber.org
    <http://jabber.org> server. Uploaded my simple red image at size
    200x200.

    -----
    Shashank Tyagi,
    Computer Science(IDD),
    Part III,
    Institute of Technology,
    Banaras Hindu University,
    India.
    +91-9651422932
    +91-9235600751
    shashank.tyagi.cse06@itbhu.ac.in
    <mailto:shashank.tyagi.cse06@itbhu.ac.in>
    shashankt@acm.org <mailto:shashankt@acm.org>

    Sent from Lucknow, UP, India

    On Sun, May 24, 2009 at 8:42 PM, Damien Roth > <damien.roth@gmail.com <mailto:damien.roth@gmail.com>> wrote:

        Hi

        Here is the exception

        32630
        true
        No response from server on status set.:
               at
        org.jivesoftware.smackx.packet.VCard.save(VCard.java:512)
               at imagetest.<init>(smack_dp.java:52)
               at smack_dp.main(smack_dp.java:79)

        The image used is :
        type : png
        dimension : 96x96
        size : 20526 octets

        2009/5/24 shashank <aug21st@gmail.com <mailto:aug21st@gmail.com>>:
        > Hi,
        > Tried it with jabber account and it is working fine in
        my case.
        > Testing Scenario:
        > my jabber account (aug21st@jabber.org
        <mailto:aug21st@jabber.org>) was added in my gmail account
        > (aug21st@gmail.com <mailto:aug21st@gmail.com>).
        > gmail account was online using SC. jabber account was tested
        using my code.
        >
        > Attached the file with modifications for jabber server.
        >
        > It would be helpful if you can try using this file or post
        the error
        > details.
        > -----
        > Shashank Tyagi,
        > Computer Science(IDD),
        > Part III,
        > Institute of Technology,
        > Banaras Hindu University,
        > India.
        > +91-9651422932
        > +91-9235600751
        > shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        > shashankt@acm.org <mailto:shashankt@acm.org>
        >
        > Sent from Kanpur, UP, India
        >
        > On Sun, May 24, 2009 at 2:21 PM, shashank <aug21st@gmail.com > <mailto:aug21st@gmail.com>> wrote:
        >>
        >> Hi,
        >> I will try with jabber accounts also.
        >> For ICQ/AIM I am still trying to implement it using
        joustsim. Am going
        >> through the joustsim example provided with SC. But for the
        limitations I was
        >> able to implement it using the method provided with
        joscardemo. While using
        >> AIM it has no limitations on image size but has only on
        file size. I was
        >> able to upload a simple (plain red) image of 400x400 size
        even and a normal
        >> image of size greater than 150x150 (all jpg). Will find out
        exactly what is
        >> trhe limit of file size after am able to implement it using
        joustsim.
        >>
        >> -----
        >> Shashank Tyagi,
        >> Computer Science(IDD),
        >> Part III,
        >> Institute of Technology,
        >> Banaras Hindu University,
        >> India.
        >> +91-9651422932
        >> +91-9235600751
        >> shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >> shashankt@acm.org <mailto:shashankt@acm.org>
        >>
        >> Sent from Kanpur, UP, India
        >>
        >> On Sun, May 24, 2009 at 2:16 PM, Damien Roth > <damien.roth@gmail.com <mailto:damien.roth@gmail.com>> > >> wrote:
        >>>
        >>> Hi Shashank,
        >>>
        >>> I've tested with my two jabber accounts.
        >>> With the one on jabber.org <http://jabber.org> : I've got
        an exception when the save
        >>> method of the vcard was invoked.
        >>> With the one on jabber.nuxo.net <http://jabber.nuxo.net> :
        no problem with the dimension,
        >>> limited with the size : 64kb
        >>>
        >>> What's the result with AIM / ICQ ?
        >>>
        >>> Bye
        >>>
        >>> Damien
        >>>
        >>> 2009/5/18 shashank <aug21st@gmail.com
        <mailto:aug21st@gmail.com>>:
        >>> > Hi,
        >>> > Have attached the file along. The connection being
        made is for the
        >>> > gtalk
        >>> > server currently. Will require smack api.
        >>> >
        >>> > -----
        >>> > Shashank Tyagi,
        >>> > Computer Science(IDD),
        >>> > Part III,
        >>> > Institute of Technology,
        >>> > Banaras Hindu University,
        >>> > India.
        >>> > +91-9651422932
        >>> > +91-9235600751
        >>> > shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> > shashankt@acm.org <mailto:shashankt@acm.org>
        >>> >
        >>> > Sent from Lucknow, UP, India
        >>> >
        >>> > On Mon, May 18, 2009 at 6:58 PM, Damien Roth > <damien.roth@gmail.com <mailto:damien.roth@gmail.com>> > >>> > wrote:
        >>> >>
        >>> >> Hi Shashank
        >>> >>
        >>> >> Good job !
        >>> >>
        >>> >> I have few Jabber accounts, if you send me you little
        app, I can do
        >>> >> some
        >>> >> tests.
        >>> >>
        >>> >> For the other here is a recap of the tests :
        >>> >> Jabber : according to the developpers max size : 64kb
        >>> >> GoogleTalk : max avatar dimension : 128x128 (max size
        64 kb?
        >>> >> MSN : max avatar dimension : 128x128
        >>> >> ICQ / AIM : currently testing
        >>> >> Yahoo : Our current library doesn't support user avatars
        >>> >>
        >>> >> Bye
        >>> >>
        >>> >> Damien
        >>> >>
        >>> >> 2009/5/17 Shashank Tyagi
        <shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>>:
        >>> >> >> Hi Damien,
        >>> >> >> Sorry for getting back so late. jml
        took a lot of
        >>> >> >> time
        >>> >> >> due
        >>> >> >> to lack of proper documentation and javadocs. After
        a lot of help
        >>> >> >> from
        >>> >> >> Damian, I was able to set avatar on MSN. Here also
        after testing I
        >>> >> >> found
        >>> >> >> 128x128 as the limit (though will confirm this and
        file size with
        >>> >> >> Damian).
        >>> >> >> Next I will be moving on to joscar which also lacks
        proper
        >>> >> >> documentations.
        >>> >> >> There too I will have to proceed using examples
        provided with the
        >>> >> >> trunk.
        >>> >> >> Hope to finish that too before I formally start
        coding from 23rd.
        >>> >> >
        >>> >> > And sorry Emil for forgetting about the dev list.
        >>> >> >>
        >>> >> >> -----
        >>> >> >> Shashank Tyagi,
        >>> >> >> Computer Science(IDD),
        >>> >> >> Part III,
        >>> >> >> Institute of Technology,
        >>> >> >> Banaras Hindu University,
        >>> >> >> India.
        >>> >> >> +91-9651422932
        >>> >> >> +91-9235600751
        >>> >> >> shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> >> >> shashankt@acm.org <mailto:shashankt@acm.org>
        >>> >> >>
        >>> >> >> Sent from Lucknow, UP, India
        >>> >> >>
        >>> >> >> On Wed, May 13, 2009 at 1:29 PM, Shashank Tyagi > >>> >> >> <shashank.tyagi.cse06@itbhu.ac.in > <mailto:shashank.tyagi.cse06@itbhu.ac.in>> wrote:
        >>> >> >>>
        >>> >> >>> Hi Damien,
        >>> >> >>> Was able to successfully complete
        the avatar
        >>> >> >>> implementation in smack. As for size limits I
        talked to some
        >>> >> >>> developers who
        >>> >> >>> were part of XMPP protocol. According to them that
        as such there
        >>> >> >>> is no
        >>> >> >>> size
        >>> >> >>> limit as per the protocol. Though at jabber they
        keep a size limit
        >>> >> >>> of
        >>> >> >>> 64K. I
        >>> >> >>> havent tried for Jabber myself but for GoogleTalk
        the size limit
        >>> >> >>> is in
        >>> >> >>> pixel
        >>> >> >>> size at 128x128 which I verified by testing myself.
        Was unable to
        >>> >> >>> find
        >>> >> >>> the
        >>> >> >>> maximum avatar file size for now.
        >>> >> >>> Next am going to do the same for MSN (java-jml).
        >>> >> >>>
        >>> >> >>> -----
        >>> >> >>> Shashank Tyagi,
        >>> >> >>> Computer Science(IDD),
        >>> >> >>> Part III,
        >>> >> >>> Institute of Technology,
        >>> >> >>> Banaras Hindu University,
        >>> >> >>> India.
        >>> >> >>> +91-9651422932
        >>> >> >>> +91-9235600751
        >>> >> >>> shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> >> >>> styagi@acm.org <mailto:styagi@acm.org>
        >>> >> >>>
        >>> >> >>> On Tue, May 12, 2009 at 3:06 AM, Emil Ivov > >>> >> >>> <emcho@sip-communicator.org > <mailto:emcho@sip-communicator.org>> > >>> >> >>> wrote:
        >>> >> >>>>
        >>> >> >>>> Hey Shashank,
        >>> >> >>>>
        >>> >> >>>> Could you please resend your mail to our dev list
        and we'll
        >>> >> >>>> answer
        >>> >> >>>> there.
        >>> >> >>>>
        >>> >> >>>> Thanks
        >>> >> >>>> Emil
        >>> >> >>>>
        >>> >> >>>> Shashank Tyagi wrote:
        >>> >> >>>> > Hi Damien,
        >>> >> >>>> > As I told you I was currently
        going through the
        >>> >> >>>> > code
        >>> >> >>>> > of
        >>> >> >>>> > GUI part of SC. Was doing it to get familiar
        with the structure
        >>> >> >>>> > of
        >>> >> >>>> > it.
        >>> >> >>>> > Now have found the part where the current avatar
        is displayed
        >>> >> >>>> > and
        >>> >> >>>> > was
        >>> >> >>>> > successful in adding additional Mouse Listeners
        to it.
        >>> >> >>>> >
        >>> >> >>>> > As per your timeline from now on I will devote
        my time for
        >>> >> >>>> > implementing
        >>> >> >>>> > mechanisms in different protocols.
        >>> >> >>>> > For doing this firstly I will test the
        individual protocol
        >>> >> >>>> > api's
        >>> >> >>>> > without
        >>> >> >>>> > linking it with SC code. Will start this from
        tonight itself.
        >>> >> >>>> >
        >>> >> >>>> > Secondly, you were talking about picture in
        Contact List. Why
        >>> >> >>>> > do we
        >>> >> >>>> > need
        >>> >> >>>> > to work there when we can provide the option by
        adding option
        >>> >> >>>> > menu
        >>> >> >>>> > in
        >>> >> >>>> > current avatar displayed for the account.
        >>> >> >>>> > Have marked the avatar I am talking about in the
        attached
        >>> >> >>>> > image.
        >>> >> >>>> >
        >>> >> >>>> > Will try to be active on the mailing list but to
        be honest am
        >>> >> >>>> > unable
        >>> >> >>>> > to
        >>> >> >>>> > understand what is going on there most of the
        time. I do try to
        >>> >> >>>> > go
        >>> >> >>>> > through and understand all the issues though.
        >>> >> >>>> >
        >>> >> >>>> > -----
        >>> >> >>>> > Shashank Tyagi,
        >>> >> >>>> > Computer Science(IDD),
        >>> >> >>>> > Part III,
        >>> >> >>>> > Institute of Technology,
        >>> >> >>>> > Banaras Hindu University,
        >>> >> >>>> > India.
        >>> >> >>>> > +91-9651422932
        >>> >> >>>> > +91-9235600751
        >>> >> >>>> > shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>>
        >>> >> >>>> > styagi@acm.org <mailto:styagi@acm.org>
        <mailto:styagi@acm.org <mailto:styagi@acm.org>>
        >>> >> >>>> >
        >>> >> >>>> > On Mon, May 11, 2009 at 2:45 PM, Damien Roth > >>> >> >>>> > <damien.roth@gmail.com > <mailto:damien.roth@gmail.com> > >>> >> >>>> > <mailto:damien.roth@gmail.com > <mailto:damien.roth@gmail.com>>> wrote:
        >>> >> >>>> >
        >>> >> >>>> > Hello,
        >>> >> >>>> >
        >>> >> >>>> > Don't worry, as we said your exams are top
        priority and I
        >>> >> >>>> > hope
        >>> >> >>>> > they
        >>> >> >>>> > went well.
        >>> >> >>>> >
        >>> >> >>>> > I'm working on Eclipse+Linux, since our
        project doesn't
        >>> >> >>>> > require
        >>> >> >>>> > code
        >>> >> >>>> > for specific platform, it shouldn't be a
        problem.
        >>> >> >>>> > In any case, my main computer has Windows
        Vista as OS so I
        >>> >> >>>> > can
        >>> >> >>>> > switch to test.
        >>> >> >>>> >
        >>> >> >>>> > Last week, I had a chat with Emil and we
        come up with a
        >>> >> >>>> > timeline
        >>> >> >>>> > for
        >>> >> >>>> > the project based on the one in your proposal :
        >>> >> >>>> > First term
        >>> >> >>>> > 1. Research mechanisms for all supported
        stacks to set
        >>> >> >>>> > the
        >>> >> >>>> > image
        >>> >> >>>> > (methods + max size).
        >>> >> >>>> > 2. Our picture in the contact list
        highlights on mouse
        >>> >> >>>> > over
        >>> >> >>>> > 3. Clicking on our picture opens a file
        chooser and
        >>> >> >>>> > selecting
        >>> >> >>>> > an
        >>> >> >>>> > image sets it for all protocols that support
        the operation
        >>> >> >>>> > 4. Implement support for picture setting
        in XMPP (and
        >>> >> >>>> > Google
        >>> >> >>>> > Talk if
        >>> >> >>>> > different)
        >>> >> >>>> > 5. Implement support for picture setting
        in Yahoo!
        >>> >> >>>> > 6. Implement support for picture setting
        in MSN
        >>> >> >>>> > 7. Implement support for picture setting
        in ICQ (and AIM
        >>> >> >>>> > if
        >>> >> >>>> > different)
        >>> >> >>>> >
        >>> >> >>>> > Second term
        >>> >> >>>> > 1. Create new interfaces in the media
        service that give
        >>> >> >>>> > access
        >>> >> >>>> > to
        >>> >> >>>> > the local video device
        >>> >> >>>> > 2. Implement the above interfaces
        >>> >> >>>> > 3. Create a new "Image Picker" service
        that allows
        >>> >> >>>> > retrieving
        >>> >> >>>> > and
        >>> >> >>>> > editing snapshots from the webcam or images
        selected with
        >>> >> >>>> > the
        >>> >> >>>> > file
        >>> >> >>>> > chooser
        >>> >> >>>> > 4. Provide an implementation for that
        service that
        >>> >> >>>> > includes:
        >>> >> >>>> > * A way for bundles to invoke it
        through a single
        >>> >> >>>> > method
        >>> >> >>>> > and
        >>> >> >>>> > receive an image as a result
        >>> >> >>>> > * An user interface inspired by the
        Adium "Image
        >>> >> >>>> > picker"
        >>> >> >>>> > which
        >>> >> >>>> > allows users to take new snapshots
        >>> >> >>>> > * The possibility for the user to clip
        the image
        >>> >> >>>> >
        >>> >> >>>> > Optional
        >>> >> >>>> > 1. Store the last X images used (X is
        defined in the
        >>> >> >>>> > configuration
        >>> >> >>>> > file)
        >>> >> >>>> > 2. Allow the user to set a specific image
        for an account
        >>> >> >>>> >
        >>> >> >>>> > The more important features are in the first
        term and in
        >>> >> >>>> > the
        >>> >> >>>> > first
        >>> >> >>>> > part of the second one.
        >>> >> >>>> > The optional part contains some ideas, if
        you finish before
        >>> >> >>>> > the
        >>> >> >>>> > end
        >>> >> >>>> > of the GSoC.
        >>> >> >>>> > This timeline will be put on the website so
        the other
        >>> >> >>>> > members
        >>> >> >>>> > can
        >>> >> >>>> > follow your progress.
        >>> >> >>>> >
        >>> >> >>>> > Since most of the GUI ideas comes from Adium
        (the mac
        >>> >> >>>> > version
        >>> >> >>>> > of
        >>> >> >>>> > pidgin), I will provide you with some
        screenshots.
        >>> >> >>>> >
        >>> >> >>>> > Another important part, I will ask you to :
        >>> >> >>>> > - Communicate regularly on the mailing
        list (announce
        >>> >> >>>> > your
        >>> >> >>>> > progress
        >>> >> >>>> > according to the timeline, ask questions,
        reply if you can
        >>> >> >>>> > to
        >>> >> >>>> > other
        >>> >> >>>> > students)
        >>> >> >>>> > - Respect the code convention :
        >>> >> >>>> >
        http://www.sip-communicator.org/index.php/Documentation/CodeConvention
        >>> >> >>>> > - Provide a complete javadoc and comment
        you code
        >>> >> >>>> >
        >>> >> >>>> > Until the 23th, you can also start the first
        item from the
        >>> >> >>>> > first
        >>> >> >>>> > term
        >>> >> >>>> > : Research mechanisms for all supported
        stacks to set the
        >>> >> >>>> > image
        >>> >> >>>> > (methods + max size).
        >>> >> >>>> > - methods : most of them are in your
        proposal, but I leave
        >>> >> >>>> > the
        >>> >> >>>> > conversion between a java object (Image,
        BufferedImage,
        >>> >> >>>> > ...) to
        >>> >> >>>> > a
        >>> >> >>>> > protocol object
        >>> >> >>>> > - max size : some protocols limit the size
        of the avatars,
        >>> >> >>>> > for
        >>> >> >>>> > example in XMPP it's 80x80 px (if my memory
        is correct)
        >>> >> >>>> >
        >>> >> >>>> > If you have any question about the timeline
        or for
        >>> >> >>>> > everything
        >>> >> >>>> > else,
        >>> >> >>>> > don't hesitate.
        >>> >> >>>> >
        >>> >> >>>> > Bye
        >>> >> >>>> >
        >>> >> >>>> > Damien
        >>> >> >>>> >
        >>> >> >>>> > 2009/5/9 Shashank Tyagi
        <shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>>>:
        >>> >> >>>> > > Hi Damien,
        >>> >> >>>> > > Sorry for not contacting
        you since quite
        >>> >> >>>> > some
        >>> >> >>>> > time.
        >>> >> >>>> > Was busy
        >>> >> >>>> > > with my exams and stuff. Now college is
        over for summers
        >>> >> >>>> > and
        >>> >> >>>> > am
        >>> >> >>>> > right now at
        >>> >> >>>> > > home. So will be giving my full time to
        this project from
        >>> >> >>>> > now
        >>> >> >>>> > on.
        >>> >> >>>> > I have
        >>> >> >>>> > > started working from today and have got
        the observer
        >>> >> >>>> > status
        >>> >> >>>> > for
        >>> >> >>>> > SIP and have
        >>> >> >>>> > > compiled and ran the project from
        Netbeans. Will be using
        >>> >> >>>> > Netbeans
        >>> >> >>>> > and using
        >>> >> >>>> > > platform Vista for the project. Hope its
        fine with you.
        >>> >> >>>> > If
        >>> >> >>>> > need
        >>> >> >>>> > be can
        >>> >> >>>> > > switch to Linux but I would prefer Windows.
        >>> >> >>>> > > With project running my next step will be
        to locate code
        >>> >> >>>> > for
        >>> >> >>>> > the
        >>> >> >>>> > box where
        >>> >> >>>> > > currently the avatar is displayed.
        >>> >> >>>> > > Also as this is the first big project I am
        doing so am
        >>> >> >>>> > new to
        >>> >> >>>> > SVN
        >>> >> >>>> > and other
        >>> >> >>>> > > technologies used. So there may be a
        possibility that I
        >>> >> >>>> > will
        >>> >> >>>> > have
        >>> >> >>>> > some very
        >>> >> >>>> > > foolish doubts. Please dont mind that.
        >>> >> >>>> > >
        >>> >> >>>> > > For now this is all I have to report.
        >>> >> >>>> > > Will keep you updated of my progress in
        this thread only.
        >>> >> >>>> > > -----
        >>> >> >>>> > > Shashank Tyagi,
        >>> >> >>>> > > Computer Science(IDD),
        >>> >> >>>> > > Part III,
        >>> >> >>>> > > Institute of Technology,
        >>> >> >>>> > > Banaras Hindu University,
        >>> >> >>>> > > India.
        >>> >> >>>> > > +91-9651422932
        >>> >> >>>> > > +91-9235600751
        >>> >> >>>> > > shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>
        >>> >> >>>> > <mailto:shashank.tyagi.cse06@itbhu.ac.in
        <mailto:shashank.tyagi.cse06@itbhu.ac.in>>
        >>> >> >>>> > > styagi@acm.org <mailto:styagi@acm.org>
        <mailto:styagi@acm.org <mailto:styagi@acm.org>>
        >>> >> >>>> > >
        >>> >> >>>> >
        ------------------------------------------------------------------------
        >>> >> >>>> >
        >>> >> >>>>
        >>> >> >>>> --
        >>> >> >>>> Emil Ivov, Ph.D. 30a
        rue de la
        >>> >> >>>> Patrie
        >>> >> >>>> Founder and Project Lead 67300 Schiltigheim
        >>> >> >>>> SIP Communicator
        >>> >> >>>> emcho@sip-communicator.org
        <mailto:emcho@sip-communicator.org> FAX:
        >>> >> >>>> +33.1.77.62.47.31
        >>> >> >>>> http://sip-communicator.org PHONE:
        >>> >> >>>> +33.1.77.62.43.30
        >>> >> >>>
        >>> >> >>
        >>> >> >
        >>> >>
        ---------------------------------------------------------------------
        >>> >> To unsubscribe, e-mail:
        dev-unsubscribe@sip-communicator.dev.java.net
        <mailto:dev-unsubscribe@sip-communicator.dev.java.net>
        >>> >> For additional commands, e-mail:
        >>> >> dev-help@sip-communicator.dev.java.net
        <mailto:dev-help@sip-communicator.dev.java.net>
        >>> >>
        >>> >
        ---------------------------------------------------------------------
        >>> > To unsubscribe, e-mail:
        dev-unsubscribe@sip-communicator.dev.java.net
        <mailto:dev-unsubscribe@sip-communicator.dev.java.net>
        >>> > For additional commands, e-mail:
        dev-help@sip-communicator.dev.java.net
        <mailto:dev-help@sip-communicator.dev.java.net>
        >>> >
        >>>
        ---------------------------------------------------------------------
        >>> To unsubscribe, e-mail:
        dev-unsubscribe@sip-communicator.dev.java.net
        <mailto:dev-unsubscribe@sip-communicator.dev.java.net>
        >>> For additional commands, e-mail:
        dev-help@sip-communicator.dev.java.net
        <mailto:dev-help@sip-communicator.dev.java.net>
        >>>
        >>
        >
        ---------------------------------------------------------------------
        > To unsubscribe, e-mail:
        dev-unsubscribe@sip-communicator.dev.java.net
        <mailto:dev-unsubscribe@sip-communicator.dev.java.net>
        > For additional commands, e-mail:
        dev-help@sip-communicator.dev.java.net
        <mailto:dev-help@sip-communicator.dev.java.net>
        >

        ---------------------------------------------------------------------
        To unsubscribe, e-mail:
        dev-unsubscribe@sip-communicator.dev.java.net
        <mailto:dev-unsubscribe@sip-communicator.dev.java.net>
        For additional commands, e-mail:
        dev-help@sip-communicator.dev.java.net
        <mailto:dev-help@sip-communicator.dev.java.net>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net