24 feb 2010

google busca en RealTime


google busca en RealTime



?ui=2&view=att&th=127026f3813dab3a&attid=0.1&disp=attd&realattid=ii_127026f3813dab3a&zw

22 feb 2010

PM: 5 puntos claves a desarrollar par aun equipo Autoadministrados

5 puntos claves a desarrollar par aun equipo Autoadministrados








20 feb 2010

Codigo para toolbar para bajar de youtube



Codigo para toolbar para bajar de youtube

javascript:var%20video_id=null;var%20video_hash=null;var%20video_player=document.getElementById('movie_player');if(video_player){var%20flash_variables=video_player.attributes.getNamedItem('flashvars');if(flash_variables){var%20flash_values=flash_variables.value;if(flash_values){var%20video_id_match=flash_values.match(/[^a-z]video_id=([^(\&|$)]*)/);if(video_id_match!=null)video_id=video_id_match[1];var%20video_hash_match=flash_values.match(/[^a-z]t=([^(\&|$)]*)/);if(video_hash_match!=null)video_hash=video_hash_match[1]}}}if(video_id==null||video_hash==null){var%20args=null;try{args=yt.getConfig('SWF_ARGS')}catch(e){}if(args){video_id=args['video_id'];video_hash=args['t']}}if(video_id!=null&&video_hash!=null){var%20fmt='18';try{if(yt.getConfig('IS_HD_AVAILABLE'))fmt='22'}catch(e){}if(!document.getElementById('download-youtube-video')){var%20yt_mp4_path='http://www.youtube.com/get_video?fmt='+fmt+'&video_id='+video_id+'&t='+video_hash;var%20div_embed=document.getElementById('watch-embed-div');if(div_embed){var%20div_download=document.createElement('div');div_download.innerHTML='%3Cbr%20/%3E%20%3Cspan%20id=\'download-youtube-video\'%3E%20%3Ca%20href=\''+yt_mp4_path+'\'%20onclick=\'blur(this);\'%3EDownload%20as%20MP4%3C/a%3E%3C/span%3E';div_embed.appendChild(div_download);}if(navigator.appName!='Microsoft%20Internet%20Explorer'){document.location.href='http://www.youtube.com/get_video?fmt='+fmt+'&video_id='+video_id+'&t='+video_hash}}}void(0);






16 feb 2010

BPM - Space Invaders con Drools

Usando Drools en los juegos.

Space-Invaders-Enterprise-Edition-FPS_-89-500x398.png
 

rule "Reverse aliens if one reachs the edge of the screen"
    when
        $alien : AlienEntity()
        exists (AlienEntity(x < 10) or AlienEntity(x > 750))
    then
        $alien.setHorizontalMovement(-$alien.getHorizontalMovement());
        $alien.setY($alien.getY() + 10);
end
 
rule "Process bullets hitting aliens"
    when
        $shot : ShotEntity()
        $alien : AlienEntity(this != $shot, eval($shot.collidesWith($alien)))
        $otherAlien : AlienEntity()
    then
        game.getEntities().remove($shot);
        game.getEntities().remove($alien);
        $otherAlien.setHorizontalMovement($otherAlien.getHorizontalMovement() * 1.04);
end
 
rule "End the game when all aliens are killed"
    salience 1
    when
        not AlienEntity()
        exists ShipEntity()
    then
        game.notifyWin();
        game.getEntities().clear();
end
 
rule "End the game when an alien reaches the bottom"
    when
        exists AlienEntity(y > 570)
    then
        game.notifyDeath();
        game.getEntities().clear();
end


ref:

FeedCount

analytics

 
sfrede