Sponsored Content
Full Discussion: picture
Contact Us Post Here to Contact Site Administrators and Moderators picture Post 26012 by Nisha on Friday 9th of August 2002 07:39:40 AM
Old 08-09-2002
Now finally what does it say??

I clicked the links and they are not showing me any selection of avatars, instead it shows me under maintenance .

Would be nice if we can upload our own Avatars.....

Thanks,
Nisha
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

open a picture file in unix (putty)

hi i'm logged on to my schools unix machine via putty. how do i open/view a jpg picture file that is there on my root catalog? (2 Replies)
Discussion started by: javatutor
2 Replies

2. Shell Programming and Scripting

PHP: display text and picture

Can someone give me a script in php to: Connect to Mysql: DB= content TABLE = message Enter text , about 3000 characters, and put a image either left or right, top or bottom or the text. Please someone make me this script, ive spent several hours trying to figure it out. (1 Reply)
Discussion started by: perleo
1 Replies

3. What is on Your Mind?

found a picture that discribe the rules!!

found a picture that discribe the rules!!! hehe (2 Replies)
Discussion started by: pressy
2 Replies

4. UNIX for Dummies Questions & Answers

Changing picture at banner?

On my Ultra 60, when booting and at the banner screen, on the top left is a picture of a globe. On another machine (Ultra 60) its a picture of a Sun. Is this something on the graphics card, or is this picture located somewhere else and able to be changed? (0 Replies)
Discussion started by: ridgeback00
0 Replies

5. UNIX for Dummies Questions & Answers

Need help! How to gnuplot a picture??

I would like to ask if I have already plot a graph using gnuplot, the setting(made by others) is in "gnuplot.defaults": gnuplot> load '<ParadisDir>/inputs/gnuplot.defaults' gnuplot> splot 'box.in' with lines, '0t0001' w lines How to transform it to bmp file? (or other types of pictures?) ... (2 Replies)
Discussion started by: kelvin490
2 Replies

6. Shell Programming and Scripting

Email with jpg picture embedded - inline

Hi - The below code works perfectly for e-mailing HTML embeded with JPG picture sendmail -t <<EOT TO: ABC.TO@abc.com FROM: ABC.FROM@abc.com SUBJECT: Embed image test MIME-Version: 1.0 Content-Type: multipart/related;boundary="XYZ" --XYZ Content-Type: text/html; charset=ISO-8859-15... (5 Replies)
Discussion started by: sivakumar121
5 Replies

7. Programming

Download http picture using C++

Dear all, I am working on writing the script which can read a file (having the html path for some pictures) and download those picture in the given local directory. Please find my iniatitve here, however I am still not able to figure out the 'download' command. Any help is appreciated. ... (1 Reply)
Discussion started by: emily
1 Replies
AnyEvent::XMPP::Ext::VCard(3pm) 			User Contributed Perl Documentation			   AnyEvent::XMPP::Ext::VCard(3pm)

NAME
AnyEvent::XMPP::Ext::VCard - VCards (XEP-0054 & XEP-0084) SYNOPSIS
use AnyEvent::XMPP::Ext::VCard; my $vcard = AnyEvent::XMPP::Ext::VCard->new; $con->reg_cb ( stream_ready => sub { $vcard->hook_on ($con) } ); $vcard->retrieve ($con, 'elmex@jabber.org', sub { my ($jid, $vcard, $error) = @_; if ($error) { warn "couldn't get vcard for elmex@jabber.org: " . $error->string . " "; } else { print "vCard nick for elmex@jabber.org: ".$vcard->{NICKNAME}." "; print "Avatar hash for elmex@jabber.org: ".$vcard->{_avatar_hash}." "; } }); $vcard->store ($con, undef, { NICKNAME => 'net-xmpp2' }, sub { my ($error) = @_; if ($error) { warn "upload failed: " . $error->string . " "; } else { print "upload successful "; } }); $disco->enable_feature ($vcard->disco_feature); DESCRIPTION
This extension handles setting and retrieval of the VCard and the VCard based avatars. For example see the test suite of AnyEvent::XMPP. METHODS
new (%args) Creates a new vcard extension. It can take a "cache" argument, which should be a tied hash which should be able to save the retrieved vcards. If no "cache" is set a internal hash will be used and the vcards will be retrieved everytime the program is restarted. The keys will be the stringprepped bare JIDs of the people we got a vcard from and the value will be a non-cyclic hash/array datastructure representing the vcard. About this datastructure see below at VCARD STRUCTURE. If you want to support avatars correctly make sure you hook up the connection via the "hook_on" method. hook_on ($con, $dont_retrieve_vcard) $con must be an object of the class AnyEvent::XMPP::Connection (or derived). Once the vCard extension has been hooked up on a connection it will add the avatar information to all outgoing presence stanzas. IMPORTANT: You need to hook on the connection BEFORE it was connected. The initial presence stanza needs to contain the information that we support avatars. The vcard will automatically retrieved if the session wasn't already started. Otherwise you will have to retrieve the vcard manually if you hook it up after the "session_ready" event was received. You can prevent the automatic retrieval by giving a true value in $dont_retrieve_vcard. However, just make sure to hook up on any connection before it is connected if you want to offer avatar support on it. Best is probably to do it like this: my $vcard = AnyEvent::XMPP::Ext::VCard->new; $con->reg_cb ( stream_ready => sub { $vcard->hook_on ($con) } ); my_vcard ($con) This method returns the vcard for the account connected by $con. This only works if vcard was (successfully) retrieved. If the connection was hoooked up the vcard was automatically retrieved. Alternatively $con can also be a string reprensenting the JID of an account. cache ([$newcache]) See also "new" about the meaning of cache hashes. If no argument is given the current cache is returned. store ($con, $vcard, $cb) This method will store your $vcard on the connected server. $cb is called when either an error occured or the storage was successful. If an error occured the first argument is not undefined and contains an AnyEvent::XMPP::Error::IQ object. $con should be a AnyEvent::XMPP::Connection or an object from some derived class. $vcard has a datastructure as described below in VCARD STRUCTURE. retrieve ($con, $jid, $cb) This method will retrieve the vCard for $jid via the connection $con. If $jid is undefined the vCard of yourself is retrieved. The callback $cb is called when an error occured or the vcard was retrieved. The first argument of the callback will be the JID to which the vCard belongs, the second argument is the vCard itself (as described in VCARD STRUCTURE below) and the thrid argument is the error, if an error occured (undef otherwise). VCARD STRUCTURE
As there are currently no nice DOM implementations in Perl and I strongly dislike the DOM API in general this module has a simple Perl datastructure without cycles to represent the vCard. First an example: A fetched vCard hash may look like this: { 'URL' => ['http://www.ta-sa.org/'], 'ORG' => [{ 'ORGNAME' => 'nethype GmbH' }], 'N' => [{ 'FAMILY' => 'Redeker' }], 'EMAIL' => ['elmex@ta-sa.org'], 'BDAY' => ['1984-06-01'], 'FN' => ['Robin'], 'ADR' => [ { HOME => undef, 'COUNTRY' => 'Germany' }, { WORK => undef, COUNTRY => 'Germany', LOCALITY => 'Karlsruhe' } ], 'NICKNAME' => ['elmex'], 'ROLE' => ['Programmer'] } The keys represent the toplevel element of a vCard, the values are always array references containig one or more values for the key. If the value is a hash reference again it's value will not be an array reference but either undef or plain values. The values of the toplevel keys are all array references because fields like "ADR" may occur multiple times. Consult XEP-0054 for an explanation what these fields mean or contain. There are special fields in this structure for handling avatars: "_avatar" contains the binary data for the avatar image. "_avatar_hash" contains the sha1 hexencoded hash of the binary image data. "_avatar_type" contains the mime type of the avatar. If you want to store the vcard you only have to set "_avatar" and "_avatar_type" if you want to store an avatar. EVENTS
The vcard extension will emit these events: TODO
Implement caching, the cache stuff is just a storage hash at the moment. Or maybe drop it completly and let the application handle caching. retrieve_vcard_error => $iq_error When a vCard retrieval was not successful, this event is emitted. This is neccessary as some retrievals may happen automatically. vcard => $jid, $vcard Whenever a vCard is retrieved, either automatically or manually, this event is emitted with the retrieved vCard. AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>" COPYRIGHT &; LICENSE Copyright 2007, 2008 Robin Redeker, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-19 AnyEvent::XMPP::Ext::VCard(3pm)
All times are GMT -4. The time now is 09:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy