Buscar este blog

viernes, 27 de septiembre de 2013

TEST EMPRENDEDORES

TRABAJAR CON JAVASCRIPT CON CSS

<!--COMO CAMBIAR UN CSS POR OTRO DISTINTO-->

<!DOCTYPE>
<html>
<head>
    <title>The best site ever</title>
    <link rel="stylesheet" href="css270913.css" id="css1" type="text/css" media=screen>
</head>

<body>
    <script>
    var mysection = document.createElement("section");
    mysection.id="PERRO";
    document.body.appendChild(mysection);
   
    var myheader = document.createElement("header");
    mysection.appendChild(myheader);
   
            var myH1 = document.createElement("h1");
            var textNode1 = document.createTextNode ("The best site ever");
            myH1.appendChild(textNode1);
            myheader.appendChild(myH1);
           
            var mydiv =document.createElement("div");
            mydiv.id="column1";
            var textNode2 = document.createTextNode ("just adding some content");
            mydiv.appendChild(textNode2);
            mysection.appendChild(mydiv);
           
                var myH2 = document.createElement("h2");
                var textNode3 = document.createTextNode ("well");
                myH2.appendChild(textNode3);
                mydiv.appendChild(myH2);
               
                    var myPe = document.createElement("p");
                    var textNode4 = document.createTextNode ("This was not so easy");
                    myPe.appendChild(textNode4);
                    myH2.appendChild(myPe);
       
        var mydiv2 =document.createElement("div");
        mydiv2.id="column2";
        mysection.appendChild(mydiv2);
       
        var mydiv3 =document.createElement("div");
        mydiv3.id="column3";
        mysection.appendChild(mydiv3);
       
        var divlimpiar=document.createElement("div");
        divlimpiar.id="limpiar";
        mysection.appendChild(divlimpiar);
       
        /*var aNode = document.body.children[1]
        var another = aNode.cloneNode(); //estamos clonando el Div entero
        document.body.appendChild(another);*/
       
        function changecss2() {
        document.getElementById('css1').href="css270913b.css";
        }
        function changecss1() {
        document.getElementById('css1').href="css270913.css";
        }
    </script>
    <button onclick="changecss2()">CHANGE TO CSS2!!</button>   
    <button onclick="changecss1()">CHANGE TO CSS1!!</button>   
       
</body>

</html>

css270913.css

#column1{
    width:200px;
    height:400px;
    float:left;
    background-color:#9a9;
}
#column2{
    width:200px;
    height:400px;   
    float:left;
    background-color:#a99;
}
#column3{
    width:200px;
    height:400px;
    float:left;
    background-color:#99a;
}
#limpiar{
    clear:both;

css270913b.css
#column1{
    width:100px;
    height:100px;
    float:left;
    background-color:#9a9;
}
#column2{
    width:200px;
    height:200px;   
    float:left;
    background-color:#a99;
}
#column3{
    width:400px;
    height:400px;
    float:left;
    background-color:#99a;
}
#limpiar{
    clear:both;

____________________________________________________________________




<!--COMO AGREGAR UN ESTILO CSS CON JAVASCRIPT-->

<!DOCTYPE>
<html>
<head>
    <title>The best site ever</title>
    <link rel="stylesheet" href="css270913.css" id="css1" type="text/css" media=screen>
</head>

<body>
    <script>
    var mysection = document.createElement("section");
    mysection.id="PERRO";
    document.body.appendChild(mysection);
   
    var myheader = document.createElement("header");
    mysection.appendChild(myheader);
   
            var myH1 = document.createElement("h1");
            var textNode1 = document.createTextNode ("The best site ever");
            myH1.appendChild(textNode1);
            myheader.appendChild(myH1);
           
            var mydiv =document.createElement("div");
            mydiv.id="column1";
            var textNode2 = document.createTextNode ("just adding some content");
            mydiv.appendChild(textNode2);
            mysection.appendChild(mydiv);
           
                var myH2 = document.createElement("h2");
                var textNode3 = document.createTextNode ("well");
                myH2.appendChild(textNode3);
                mydiv.appendChild(myH2);
               
                    var myPe = document.createElement("p");
                    var textNode4 = document.createTextNode ("This was not so easy");
                    myPe.appendChild(textNode4);
                    myH2.appendChild(myPe);
       
        var mydiv2 =document.createElement("div");
        mydiv2.id="column2";
        mysection.appendChild(mydiv2);
       
        var mydiv3 =document.createElement("div");
        mydiv3.id="column3";
        mysection.appendChild(mydiv3);
       
        var divlimpiar=document.createElement("div");
        divlimpiar.id="limpiar";
        mysection.appendChild(divlimpiar);
       
        /*var aNode = document.body.children[1]
        var another = aNode.cloneNode(); //estamos clonando el Div entero
        document.body.appendChild(another);*/
       
        function changecss2() {
        document.getElementById('css1').href="css270913b.css";
        }
       
        function changecss1() {
        document.getElementById('css1').href="css270913.css";
        }
        function addcss(css){
           
            var cssnuevo= document.createElement("link");
            cssnuevo.setAttribute("rel", "stylesheet");
            cssnuevo.setAttribute("type", "text/css");
            cssnuevo.setAttribute("href", css);
            document.head.appendChild(cssnuevo);
           
           
            }
    </script>
    <button onclick="changecss2()">CHANGE TO CSS2!!</button>   
    <button onclick="changecss1()">CHANGE TO CSS1!!</button>   
    <button onclick="addcss('cssii.css')">ADD CSS!!</button>       
</body>

</html>


cssii.css

*{
 
     background-color:#C8FE2E;
}

jueves, 26 de septiembre de 2013

CREAR PAGINA HTML CON JAVASCRIPT

   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <title>CREAR PAGINA CON SCRIPTS 26 septiembre 2013</title>
   
</head>

<body>
    <script>
    var myH1 = document.createElement("h1");
    var textNode1 = document.createTextNode ("An HTML Document");
    myH1.appendChild(textNode1);
    document.body.appendChild(myH1);
   
    var myP = document.createElement("p");
    var textNode2 = document.createTextNode ("This is a");
    myP.appendChild(textNode2);
    document.body.appendChild(myP);
   
   
   
    var textNode3 = document.createTextNode (" simple ");
    var textNode4 = document.createTextNode ("document");
   
    var myI = document.createElement ("i");
    myI.appendChild(textNode3);
   
    myP.appendChild(myI);
    myP.appendChild(textNode4);

    </script>
</body>

</html>


_________________________________________________________________
EJERCICIO 2:


<!DOCTYPE>
<html>
<head>
    <title>The best site ever</title>
<style>
#column1{
    width:200px;
    height:400px;
    float:left;
    background-color:#9a9;
}
#column2{
    width:200px;
    height:400px;   
    float:left;
    background-color:#a99;
}
#column3{
    width:200px;
    height:400px;
    float:left;
    background-color:#99a;
}
</style>
</head>

<body>
    <script>
    var mysection = document.createElement("section");
    document.body.appendChild(mysection);
   
    var myheader = document.createElement("header");
    mysection.appendChild(myheader);
   
            var myH1 = document.createElement("h1");
            var textNode1 = document.createTextNode ("The best site ever");
            myH1.appendChild(textNode1);
            myheader.appendChild(myH1);
           
            var mydiv =document.createElement("div");
            mydiv.id="column1";
            var textNode2 = document.createTextNode ("just adding some content");
            mydiv.appendChild(textNode2);
            myheader.appendChild(mydiv);
           
                var myH2 = document.createElement("h2");
                var textNode3 = document.createTextNode ("well");
                myH2.appendChild(textNode3);
                mydiv.appendChild(myH2);
               
                    var myPe = document.createElement("p");
                    var textNode4 = document.createTextNode ("This was not so easy");
                    myPe.appendChild(textNode4);
                    myH2.appendChild(myPe);
       
        var mydiv2 =document.createElement("div");
        mydiv2.id="column2";
        myheader.appendChild(mydiv2);
       
        var mydiv3 =document.createElement("div");
        mydiv3.id="column3";
        myheader.appendChild(mydiv3);
    </script>
</body>

</html>

 ________________________________________________________________________________

EJERCICIO 3 (duplicar página):

<!DOCTYPE>
<html>
<head>
    <title>The best site ever</title>
<style>
#column1{
    width:200px;
    height:400px;
    float:left;
    background-color:#9a9;
}
#column2{
    width:200px;
    height:400px;   
    float:left;
    background-color:#a99;
}
#column3{
    width:200px;
    height:400px;
    float:left;
    background-color:#99a;
}
#limpiar{
    clear:both;
}
</style>
</head>

<body>
    <script>
    var mysection = document.createElement("section");
    mysection.id="PERRO";
    document.body.appendChild(mysection);
   
    var myheader = document.createElement("header");
    mysection.appendChild(myheader);
   
            var myH1 = document.createElement("h1");
            var textNode1 = document.createTextNode ("The best site ever");
            myH1.appendChild(textNode1);
            myheader.appendChild(myH1);
           
            var mydiv =document.createElement("div");
            mydiv.id="column1";
            var textNode2 = document.createTextNode ("just adding some content");
            mydiv.appendChild(textNode2);
            mysection.appendChild(mydiv);
           
                var myH2 = document.createElement("h2");
                var textNode3 = document.createTextNode ("well");
                myH2.appendChild(textNode3);
                mydiv.appendChild(myH2);
               
                    var myPe = document.createElement("p");
                    var textNode4 = document.createTextNode ("This was not so easy");
                    myPe.appendChild(textNode4);
                    myH2.appendChild(myPe);
       
        var mydiv2 =document.createElement("div");
        mydiv2.id="column2";
        mysection.appendChild(mydiv2);
       
        var mydiv3 =document.createElement("div");
        mydiv3.id="column3";
        mysection.appendChild(mydiv3);
       
        var divlimpiar=document.createElement("div");
        divlimpiar.id="limpiar";
        mysection.appendChild(divlimpiar);
       
        var aNode = document.body.children[1]
        var another = aNode.cloneNode(); //estamos clonando el Div entero
        document.body.appendChild(another);
    </script>
</body>

</html>

WORKING WITH NODES

VARIABLES AND SCOPE:

<!DOCTYPE>
<html>

<head>
 <title>Variables and Scope of the Variables</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>

<body>
 
<header>
<h1>
 Variables and Scope of the Variables
</h1>
</header>
Hello

<script>
 var global_es;
    function test(){
        var message = "HOLA"; //LOCAL variable (because of the var)
        alert(message);
        mensaje2 = "OTRO"; //GLOBAL VARIABLE
    }

    test();
    
    alert(mensaje2);
    var message3 = 6;
    function pr(){
  alert(message3);  
 }
 
    alert(message); //ERROR
    console.log(message);
    
    function test2(){
        message2 = "hi"; //global variable
    }
    test2();
    alert(message2); // message2 is a global variable
 console.log(message2);
     
       
</script> 
<br>
BYE
<script>
alert("SEGUIMOS "+message3);
</script>
</body>

</html>
 
 ____________________________________________________________________________
 
CREATE A NODE AND APPEND
<!DOCTYPE>
<html>

<head>
 <title>Create a Node with a text node inside and put it into a div</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>

<script>
 function alertContent(){
  var aNode = document.getElementById("myId");   // get a node by its ID
  var newNode = document.createElement("a");     // create a "a" element (<a>)
  var newText = document.createTextNode(" NEW content");  //create text node
  newNode.appendChild(newText);  //append a Child to the node to have this <a>NEW content</a>
  aNode.appendChild(newNode);    //append a Child to the <div id="myId"> the node that we created
 }
</script>

<body>
 
 <header>
  <h1>
   Create a Node with a text node inside and put it into a div
  </h1>
 </header>

 <div id="myId">
  SOME CONTENT
  <button onclick="alertContent()">
   show the name of the 
  </button>
 </div>
</body>

</html>

____________________________________________________________________________
CLONE NODE

<!DOCTYPE>
<html>

<head>
 <title>Variables and Scope of the Variables</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>

<script>
 function alertContent(){
  var aNode = document.getElementById("myId");
  var another = aNode.cloneNode();
  document.body.appendChild(another);
 }
</script>

<body>
 
 <header>
  <h1>
   Variables and Scope of the Variables
  </h1>
 </header>

 <div id="myId">
  SOME CONTENT
  <button onclick="alertContent()">
   show the name of the 
  </button>
 </div>
</body>

</html>




----------------------------------------------------
 VERSION 2.0

<!DOCTYPE>
<html>

<head>
 <title>Variables and Scope of the Variables</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>

<script>
 function alertContent(){
  var aNode = document.getElementById("myId");
  var another = aNode.firstChild.cloneNode();
  document.body.appendChild(another);
 }
</script>

<body>
 
 <header>
  <h1>
   Variables and Scope of the Variables
  </h1>
 </header>

 <div id="myId">
  SOME CONTENT
  <button onclick="alertContent()">
   show the name of the 
  </button>
 </div>
</body>

</html>
 
____________________________________________________________________________
CHANGE CSS

<!DOCTYPE html>

<html>
<head>
<style>
.classOne{
    background-color:#9A9;
    height:100px;
}

.classTwo{
 font-size:20px;
 
 width:350px;
}
</style>

<script>
function changeCssClass(){
    var aClassNode = document.getElementsByClassName("classOne");
 aClassNode[0].className += " classTwo";  // we select aClassNode first child and put in the className the same one and a new one (classOne classTwo)
}
</script>
</head>

<body">
<div class="classOne">
With this code we can change the class or add a new class to a Node
</div>
<button onclick="changeCssClass()">
Change CSS!!
</button>

</body>
</html>

____________________________________________________________________________

CARS TRAINS AND PLANES

 
<!DOCTYPE html>
<html>
<head>
<title>||Working with elements||</title>
</head>

<script>
var my_div = null;
var newDiv = null;
var c = 0;
var p = 0;
var t = 0;


function addElementV() {
  // create a new div element
  // and give it some content
  var newDiv = document.createElement("div");
  var newContent = document.createTextNode("NEW " + arguments[0] + " ! " + arguments[1]);
  newDiv.style.backgroundColor = "#CCC";
  newDiv.appendChild(newContent); //add the text node to the newly created div.

  // add the newly created element and its content into the DOM
  myCarDiv = document.getElementById(arguments[0]);
  myCarDiv.appendChild(newDiv);
  
}

function borrarVehic(){
 var myVehicDiv = document.getElementById(arguments[0]);
 myVehicDiv.removeChild(myVehicDiv.lastChild);
 
}
</script>

<body>
<a href="http://www.w3schools.com/dom/dom_nodes_navigate.asp"> DOM NODES NAVIGATION -- http://www.w3schools.com/dom/dom_nodes_navigate.asp </a><br><br>
 <button onclick="c++; addElementV('car', c)"> NEW CAR!</button>
 <button onclick="p++;addElementV('plane', p)"> NEW PLANE!</button>
 <button onclick="t++;addElementV('train', t)"> NEW TRAIN!</button>
 <button onclick="borrarVehic('car', 2)"> DELETE CAR!</button>
 <button onclick="borrarVehic('plane')"> DELETE PLANE!</button>
 <button onclick="borrarVehic('train')"> DELETE TRAIN!</button>

<div id="car" class="vehiculos" style="background-color:#f99">
 CARS
</div>
<div id="plane" class="vehiculos" style="background-color:#99f">PLANES</div>
<div id="train" class="vehiculos" style="background-color:#9f9">TRAINS</div>
</body>
</html>
 






martes, 24 de septiembre de 2013

OPERADORES PHP (ejercicios)

<?php
//Dado un número entero positivo determine si es par o impar.
$numero = 1230;

if($numero%2 == 0 )
{
    echo ("el numero $numero es par");
}
else
{
    echo("el numero $numero es impar");
}
?>

 ______________________________________________________________

<?php
//Obtener el mayor de dos números enteros positivos.
$numero1 = 223;
$numero2 = 223333;
if($numero1>$numero2)
{
    echo ("el numero $numero1 es mayor que $numero2");
}
else
{
    if($numero1<$numero2)
    {
        echo ("el numero $numero1 es menor que $numero2");
    }
    else {
        echo("los dos numeros son iguales");
    }
}
?>

 ______________________________________________________________
 <?php
//Dado un número del 1 al 7 indique a que día de la semana corresponde..
$numero = 1;
switch ($numero){
    case "1":
        echo("el dia es lunes");
        break;
    case "2":
        echo("el dia es martes");
        break;
    case "3":
        echo("el dia es miercoles");
        break;
    case "4":
        echo("el dia es jueves");
        break;
    case "5":
        echo("el dia es viernes");
        break;
    case "6":
        echo("el dia es sabado");
        break;
    case "7":
        echo("el dia es domingo");
        break;
}
?>

 ______________________________________________________________
 <?php
/*Sabiendo que la función rand nos retorna un valor a
leatorio entre un rango
de dos enteros: $num=rand(1,100);
En la variable $num se almacena un valor entero que
la computadora genera en forma
aleatoria entre 1 y 100.
Hacer un programa que lo muestre por pantalla al va
lor generado. Mostrar además si
es menor o igual a 50 o si es mayor.
Para imprimir el contenido de una variable también
utilizamos el comando echo:
echo $nu*/
$numero = rand(0, 100);
if($numero > 50 )
{
    echo ("el numero $numero es mayor a 50");
}
else
{
    echo("el numero $numero es igual o menor a 50");
}
?>

 ______________________________________________________________
<?php
/*Generar un valor aleatorio entre 1 y 3.
Luego imprimir en castellano el número (Ej. si se g
enera el 3 luego mostrar en la página
el string "tres").
Para ver si una variable es igual a cierto valor de
bemos plantear una condición similar
a:
if ($valor==3)
{
//algoritmo }*/
$numero = rand(1, 3);
switch ($numero){
    case "1":
        echo("el numero es uno");
        break;
    case "2":
        echo("el numero es el dos");
        break;
    case "3":
        echo("el numero es el tres");
        break;}
?>
_____________________________________________________________________-
<?php
//Mostrar la tabla de multiplicar del 2. Emplear while.
$numero = 0;

while ($numero <= 10 )
{
    $resultado= 0;
    $resultado=2*$numero;
    echo (" 2 x $numero= $resultado </br>");
    $numero++;
}

?>
________________________________________________________
<?php
//Mostrar la tabla de multiplicar del 2. Emplear for.
$numero = 0;

for ($numero=0; $numero<=10; $numero++)
{
    $resultado= 0;
    $resultado=2*$numero;
    echo (" 2 x $numero= $resultado </br>");

}

?>
_____________________________________________________________________
<?php
//Mostrar la tabla de multiplicar del 2. Emplear do while.
$numero = 0;

do
{
    $resultado= 0;
    $resultado=2*$numero;
    echo (" 2 x $numero= $resultado </br>");
    $numero++;
}while ($numero <= 10 )

?>



EJERCICIOS TEMA 3

Ejercicio 1

<?php
$salariotrabajador = 1000.2;
$impuesto = 16;

$sueldoreal = $salariotrabajador - (($salariotrabajador/100) * $impuesto);

echo("el sueldo es de: $sueldoreal ");
?>


Ejercicio 2

<?php
$base= 1000.2;
$altura = 16;

$areatriangulo = ($base * $altura)/2;

echo("el area del triangulo es de: $areatriangulo ");

?>

Ejercicio 3

<?php
$numero1 = 1000.2;
$numero2 = 16;

$suma = $numero1 + $numero2;
$resta = $numero1 - $numero2;
$multiplicacion = $numero1 * $numero2;
$division = $numero1 / $numero2;
$modulo = $numero1 % $numero2;

echo("la suma de $numero1 y $numero2 es $suma ");
echo("la resta de $numero1 y $numero2 es $resta ");
echo("la multiplicacion de $numero1 y $numero2 es $multiplicacion ");
echo("la division de $numero1 y $numero2 es $division ");
echo("el modulo de $numero1 y $numero2 es $modulo ");

?>


CREATE ELEMENT

Recomendado instalar:
firebug
webdeveloper
wappalyzer


Developer Mozilla --> document create element.


var element = document.createElement(tagname);


https://developer.mozilla.org/en-US/docs/Web/API/document.createElement
 ___________________________________________________________________________
<!DOCTYPE html>

<body>

<header>
  <h1>1 Title</h1>
  <nav><ul>
  </ul></nav>
</header>

<section id='content'>
  <article class='blog-post'>
    <h1>2 Blog Post</h1>
  </article>
</section>
<script>
    var nodeInfo = document.createElement("p"); //create a <p> node
    var nodeText = document.createTextNode("info"); // text node
    nodeInfo.appendChild(nodeText);// append the text node to the p node
    //(the text node becomes child of the p node)
    document.body.appendChild(nodeInfo); // append the p node to the body node
    //(the p node becomes child of the body node)
    //var esteElemento = document.getElementById("content");
    //document.body.insertBefore(nodeInfo, esteElemento);
</script>
    <br>
3 Aqui sigue la pagina

<script>
    nodeInfo.appendChild(nodeText);// append the text node to the p node
    //(the text node becomes child of the p node)
    document.body.appendChild(nodeInfo); // append the p node to the body node
    //(the p node becomes child of the body node)
    //var esteElemento = document.getElementById("content");
    //document.body.insertBefore(nodeInfo, esteElemento);
</script>
</body>

</html>


_________________________________________________________________________


<!DOCTYPE html>
<html>
<head>
<title>||Working with elements||</title>
</head>

<script>
var my_div = null;
var newDiv = null;

function addElement () {
  // create a new div element
  // and give it some content
  var newDiv = document.createElement("div");
  var newContent = document.createTextNode("Hi there and greetings!");

  newDiv.appendChild(newContent); //add the text node to the newly created div.

  // add the newly created element and its content into the DOM
  my_div = document.getElementById("org_div1");
  document.body.insertBefore(newDiv, my_div);
}

</script>

<body onload="addElement()">
<div id='org_div1'> The text above has been created dynamically.</div>
<div id='org_div1'> The text above has been created dynamically.</div>
<div id='org_div1'> The text above has been created dynamically.</div>
<div id='org_div1'> The text above has been created dynamically.</div>
</body>
</html>
________________________________________________________________________







<!DOCTYPE html>
<html>
<head>
<title>||Working with elements||</title>
</head>

<script>
var my_div = null;
var newDiv = null;
var coche=0;
var avion=0;
var barco=0;




function agregarcoche() {
  // create a new div element
  // and give it some content
  var newDiv = document.createElement("div");
  var newContent = document.createTextNode("Coche nuevo numero" + coche++);
  newDiv.appendChild(newContent); //add the text node to the newly created div.
  // add the newly created element and its content into the DOM
  my_div = document.getElementById("org_divc");
  document.body.insertBefore(newDiv, my_div);
}
function agregaravion() {
  // create a new div element
  // and give it some content
  var newDiv = document.createElement("div");
  var newContent = document.createTextNode("Avion nuevo numero" + avion++);
  newDiv.appendChild(newContent); //add the text node to the newly created div.
  // add the newly created element and its content into the DOM
  my_div = document.getElementById("org_diva");
  document.body.insertBefore(newDiv, my_div);
}
function agregarbarco() {
  // create a new div element
  // and give it some content
  var newDiv = document.createElement("div");
  var newContent = document.createTextNode("Barco nuevo numero" + barco++);
  newDiv.appendChild(newContent); //add the text node to the newly created div.
  // add the newly created element and its content into the DOM
  my_div = document.getElementById("org_divb");
  document.body.insertBefore(newDiv, my_div);
}

</script>

<body onload="addElement()">
    <button onclick="agregarcoche()">+coche</button>   
        <div id='org_divc'> Estos son los coches creados.</div>
    <button onclick="agregaravion()">+avion</button>
        <div id='org_diva'> Estos son los aviones creados.</div>
    <button onclick="agregarbarco()">+barco</button>
        <div id='org_divb'> Estos son los barcos creados.</div>
</body>
</html>

lunes, 23 de septiembre de 2013

VERSIONES DE ANROID

PRINCIPALES NOVEDADES EN LAS DIFERENTES VERSIONES ANDROID.

2.2 FROYO:
-Soporte para adobe flash.
-Opción de deshabilitar datos móviles.
-Integración de JavaScript 8 para Chrome.
-Incorporación de notificaciones PUSH.
-Instalación de APPs memoria expandible.
-Actualización del market ahora conocido como Google Play.
- Tethering.

2.3 GingerBread:
-Rediseño de la interfaz, más rápida, más eficiente y más fácil.
-Permite copiar textos solo presionando sobre el texto que se quiere copiar.
-Aparece un acceso directo para la gestión de las aplicaciones.
-Permite llamadas por VOIP.
-Aparece el control por Voz.
-Aparece la tecnología NFC.
-Detención de energía auto-mejorada.
-Primera aparición de las sugerencias de teclado.

3.x HoneyComb.
-Adapta el sistema operativo a la resolución de las tablets.
-Aparecen los efectos 3D.
-Conexión USB con cualquier dispositivo externo.

4.0 IceCreamSandwich:
-La pantalla de bloqueo ahora permite realizar mas acciones.
-Mejoran en gran medida la accesibiladad para usuarios ciegos o con impedimentos visuales, nuevo modo de explorar por touch.
-Permite crear carpetas en la pantalla de inicio.
- Permite trabajar sin botones físicos.
-Face Unlock desbloqueo mediante reconocimiento facial.

4.1-4.3 Jelly Bean
-Velocidad aumentada de la CPU al tocar la pantalla.
-Dictado por voz mejorado sin necesidad de estar conectado a internet.
-Actualización del Kernel.
-Funcionalidad Multi-usuarios.
-Utilización de multihilos (ejecuciones paraleleas).

VISIÓN GENERAL Y ENTORNOS DE DESARROLLO



Actividades - Cuestiones

UD1. VISIÓN GENERAL Y ENTORNOS DE DESARROLLO


  1. Existen diferentes plataformas para dispositivos móviles, como pueden ser Android, Apple IOS, Symbian, Windows Phone o Blackberry. Contesta las siguientes preguntas:
    1. ¿Qué es una arquitectura ARM? ¿Por qué está indicada para pequeños dispositivos?
      es el conjunto de instrucciones de 32 bits más ampliamente utilizado en unidades producidas.
    2. ¿Qué dos plataformas mencionadas previamente son de software libre? 
      Android, Symbian.
    3. ¿Qué es WebKit?
      Es una plataforma para aplicaciones que funciona como base àra Safari, Opera, Chrome entre otros
    4. ¿Qué plataforma no utiliza WebKit? 
      Explorer y Mozilla.

  1. La arquitectura Android se compone principalmente de cuatro capas, donde una se subdivide en dos. Contesta las siguientes preguntas:
    1. ¿Qué nombre reciben esas capas?
      Aplicación, Framework, Librerías y Núcleo de Linux.
    2. Un fabricante de móviles modifica principalmente una de las capas de la arquitectura Android ¿cuál? 
      Motorola y la capa corresponde al núcleo de Linux.
    3. Para diseñar una aplicación ¿qué capa ha de modificar un desarrollador?  
      Entorno de Aplicación.
    4. Una de las capas ha sido desarrollada principalmente por Google ¿cuál de ellas? 
      Librerías nativas y Núcleo de Linux.
    5. ¿Qué capa está relacionada con el concepto "WebKit"?
       
      Librerías nativas.
    6. ¿Qué capa está relacionada con el concepto "Content Provider"? Entorno de aplicación.

  1. La primera versión de Android nació en septiembre de 2008, siendo sucedida por múltiples versiones hasta llegar a la actual. Contesta las siguientes preguntas:
    1. Una de las versiones de Android fue creada exclusivamente para el uso de tabletas ¿cuál? 
      Android3.0 Honeycomb

  1. En el aula utilizamos la herramienta Eclipse como desarrollador de aplicaciones Android.
    1. Indica otro desarrollador de aplicaciones Android.
      Motodev.
    2. ¿Qué es MOTODEV?
      Es un software destinado a desarrollar aplicaciones de Android.
    3. Indica una ventaja y un inconveniente de MOTODEV.Permite más opciones de configuración si tu dispositivo es Motorola pero existen problemas de compatibilidad para Sistemas Operativos diferentes a Windows.

  1. Un proyecto Android está formado básicamente por un descriptor de la aplicación (AndroidManifest.xml), el cñodigo fuente en Java y una serie de ficheros con recursos.
    1. Los recursos de una aplicación ¿en qué carpetas se almacenan?En assets y en res.
    2. Los ficheros en formato XML ¿en qué carpetas de recursos almacena? res
    3. ¿Qué diferente existe en almacenar un recurso en assets y en res? 
La principal diferencia entre assets y res es que nunca se modifica el contenido de los ficheros de esta carpeta ni se les asociará un identificador.
  1. Existen una serie de elementos clave que resultan imprescindibles para desarrollar aplicaciones en Android. Contesta las siguientes preguntas:
    1. ¿Cuáles son?
      Vista (view), Layout, Actividad (activity), Servicio (service), Intención (intent) , Receptor de Anuncios(Broadcast receiver) y Proveedor de contenido (content Provider).
    2. De todos los componentes, ¿cuáles se utilizan para compartir información? Intención (intent), Receptor de Anuncios (Broadcast receiver) y Proveedor de contenido (content Provider).
    3. De todos los componentes, ¿cuáles se utilizan en el diseño del interfaz de usuario?Vista (View), Layout
    4. De todos los componentes, ¿cuáles se utilizan para iniciar acciones? Servicios (services) e Intención (intent)


martes, 17 de septiembre de 2013

A PANCHOFCOUD (primera parte a bunch of code)

Introducción a Javascript:


https://tiendaonline.amena.com/form/index/
http://rickharrison.github.io/validate.js/
http://www.creativebloq.com/web-design/examples-of-javascript-1233964

(web presentación interna)
http://128.1.96.100/dwec/presentaciones/

http://www.netmagazine.com/features/top-20-html5-games

http://threejs.org/
https://github.com/kripken/emscripten/wiki
http://www.meteor.com/