
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (107)
-
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (11431)
-
Memcached protocol support
15 novembre 2013, par Mikko Koppanen — ImagickFor the past few days I’ve been adding Memcached binary protocol support to PECL memcached extension. The protocol handler provides a high-level abstraction for acting as a memcached server. There are quite a few things still missing and only binary protocol is supported at the moment, but the code seems to work reasonably well in small-scale testing.
I am not sure whether this is useful for anyone, but at least it allows things such as quick prototyping of network servers, exposing sqlite database over memcached protocol etc.
The code is quite simple and implementing a simple server responding to get and set would look roughly like the following :
-
< ?php
-
// Create new server instance
-
$server = new MemcachedServer() ;
-
-
// Create a simple storage class
-
class Storage {
-
private $values = array () ;
-
-
public function set ($key, $value, $expiration) {
-
$this->values [$key] = array (’value’ => $value,
-
’expires’ => time () + $expiration) ;
-
}
-
-
public function get ($key) {
-
if (isset ($this->values [$key])) {
-
if ($this->values [$key] [’expires’] < time ()) {
-
unset ($this->values [$key]) ;
-
return null ;
-
}
-
return $this->values [$key] [’value’] ;
-
}
-
else
-
return null ;
-
}
-
}
-
-
$storage = new Storage () ;
-
-
// Set callback for get command
-
$server->on (Memcached: :ON_GET,
-
function ($client_id, $key, &$value, &$flags, &$cas) use ($storage) {
-
echo "Getting key=[$key]" . PHP_EOL ;
-
if (($value = $storage->get ($key)) != null)
-
return Memcached: :RESPONSE_SUCCESS ;
-
-
return Memcached: :RESPONSE_KEY_ENOENT ;
-
}) ;
-
-
// Set callback for set command
-
$server->on (Memcached: :ON_SET,
-
function ($client_id, $key, $value, $flags, $expiration, $cas, &$result_cas) use ($storage) {
-
echo "Setting key=[$key] value=[$value]" . PHP_EOL ;
-
$storage->set ($key, $value, $expiration) ;
-
return Memcached: :RESPONSE_SUCCESS ;
-
}) ;
-
-
// Run the server on localhost, port 3434. Will block
-
$server->run ("127.0.0.1:3434") ;
-
?>
And the client that communicates with the server :
-
< ?php
-
-
$cache = new Memcached() ;
-
$cache->setOption(Memcached: :OPT_BINARY_PROTOCOL, true) ;
-
$cache->setOption(Memcached: :OPT_COMPRESSION, false) ;
-
$cache->addServer(’localhost’, 3434) ;
-
-
$cache->set (’set_key1’, ’This is the first key’, 10) ;
-
var_dump ($cache->get (’set_key1’)) ;
-
-
$cache->set (’set_key2’, ’This is the second key’, 2) ;
-
var_dump ($cache->get (’set_key2’)) ;
-
?>
The code is still work in progress but it’s available in github : https://github.com/mkoppanen/php-memcached/tree/feature-server. Note that you need to compile libmemcached with –enable-libmemcachedprotocol and the PECL memcached extension with –enable-memcached-protocol.
-
-
Revision 672ba3ddf5 : Unifying tile decoding for both direct and inverse tile order. Now tile decodin
7 novembre 2013, par Dmitry KovalevChanged Paths :
Modify /vp9/decoder/vp9_decodframe.c
Unifying tile decoding for both direct and inverse tile order.Now tile decoding consists of two stages :
1. Find tile buffer start and its size, put this info into tile_buffers.
2. Decode each tile based on information from tile_buffers.It seems that stage 1 can also be reused by multithreaded tile decoder.
Change-Id : If0cdaefdd6d10bb41c63561346c9ae4cfac081dd
-
Running FFMPEG in Android [duplicate]
1er février 2013, par user2028081Possible Duplicate :
ffmpeg for a android (using tutorial : “ffmpeg and Android.mk”)I have tried several things running FFMPEG in android, searched around the whole net,No fruitful or direct solutions available. Refereed this and related was very helpful though.
Moreover currently I am able to build the FFMPEG in Ubuntu 12. Created all the .SO binary everything.
My question is, how do I change the ffmeg.c file which will enable me to pass ffmpeg commands ?
According to this by following steps this is possible.
With the design above, the change for ffmpeg.c is simple.
Change the main(int argc, char **argv) function prototype to a java JNI interface prototype that Android java code can call.
Change the output to stdout to the text files we created.
Comment out a few lines that cause the compilation error.But I'm unable to change the main and how it would be.
Please help me on this. If somebody have already achieved this thing.