chatroulette en français

le site www.chatroulette.fr, permet de dialoguer dialoguer en webcam chat avec des étrangers.

roulettechat

Rencontres par webcam avec d’autres personnes au hasard.

Roulette chat est simple : vous rentrez sur le chat et vous êtes mis en relation avec une personne au hasard parmi les connectés.

A vous de choisir avec qu ivous allez chatter: Vous pouvez à tout moment changer d’interlocuteur.

installer svn sur gentoo – ovh

1) apt-get install subversion

2)  svnadmin create svn/myProject1

3) editer /svn/myProject1/conf/svnserve.conf and  /svn/myProject1/conf/passwd

dans svnserv.conf

anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the conf
### directory.  If you don't specify an authz-db, no path-based access
### control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz

dans passwd:

[users]
#harry = harryssecret
# sally = sallyssecret
john = johnspass123
tom = tomspass123
wins = winspass123

dans authz

[groups]
myusers = john, tom, wins

[/]
@myusers = rw
wins = r

Démarrer svn avec : svnserve –d

avec tortoiseSVN, il ne reste plus qu’à fairer un checkout

svn://88.190.30.201:4443/svn/myProject1

 

addChild in Flex3 et Flex4

Flex3 : canvas1.rawChildren.addChild(st);

Flex4: utiliser <s:SpriteVisualElement> comme containeur

replace all: case insentitive

Fonction replaceAll

public static function StringReplaceAllCaseInensitive( source:String, find:String, replacement:String ) : String{
    var r:RegExp = new RegExp(find.toLocaleLowerCase(), "gi")
    return source.replace(r, replacement);
}

controlkids – logiciel de controle parental gratuit

contrloKidsSCreenshotLe logiciel controlkids, logiciel de contrôle parental a été mis à jour.

Il est désormais  désormais 100% gratuit et illimité, compatible tout navigateur (IE, fireffox, chrome) et ne nécessite plus aucun parametrage sur le web.

Essayez ce logiciel sur http://www.controlkids.com

Et n’oubliez pas: c’est 100% gratuit !

php, mysql et utf8

Pour faire cohabiter php, mysql et utf8, il existe la fonction php magique:

mysql_set_charset(’utf8′,$con1);

tester si le player flash est en mode dedug

 

Pour savoir si le player flash est en mode debug, il suffit d’interroger Capabilities.isDebugger

flex3->flex4.5 fonts et video HD

Voici les paramètres à inclure dans le compilateur Flex lors du passage d’un projet flex3 à flex4.5:

 

-managers=flash.fonts.AFEFontManager -swf-version=13

flex fonction replaceAll

Voici une fonction As3 rapide pour remplacer toutes les occurrences d’une chaine par une autre

 

public function StringReplaceAll( source:String, find:String, replacement:String ) : String {
    return source.split( find ).join( replacement );
}

amfphp + red5 : utiliser amfphp1.2: IRemotingCallback erreur sous amfphp1.2

Il ya une grosse incompatibilité entre red51.0 et amphp1.9.

En cas de callback, il faut utiliser amfphp1.2 car amfphp 1.9 n’arrive pas à typer correctement le résultat.

public void startPictionnary( IScope iscope) {
    if (pictonnaryStarted) return;
    if (usersInPictionnary.size()<2) return;
    RemotingClient client = new RemotingClient(amfphp);
    loginfo("setOnline RemotingClient getWord");
    Object[] args = new Object[]{};
    client.invokeMethod("maroc.chooseWord", args, new IRemotingCallback() {
          public void errorReceived(RemotingClient client, String method, Object[] params, Throwable error) {
              Application.loginfo("errorReceived1" + params[0]);
          }

          public void resultReceived(RemotingClient client, String method, Object[] params, Object result) {
              Application.loginfo("resultReceived method="+method+" resultType :" + result.getClass()+ " resultDATA :" + result);
              String pictionnayWord = result.toString();
              Application.loginfo("pictionnayWord="+pictionnayWord);
              pictonnaryStarted = true;
              Random generator = new Random();
              Object[] values = usersInPictionnary.values().toArray();
              Object randomUser = values[generator.nextInt(values.length)];
              drawer = ((User)randomUser).username;
              loginfo("pictionnaryStarted drawer="+drawer+" pictionnayWord="+pictionnayWord);

              ServiceUtils.invokeOnAllConnections(roomScope , "pictionnaryStarted",new Object[] {drawer,pictionnayWord});
              ServiceUtils.invokeOnConnection("pictionnaryStarted",new Object[] {drawer,pictionnayWord});                  

          }

    } );

}