lunes, 21 de diciembre de 2015

La dirección del primer sitio web en internet

Primera pagina web

En este computador, Berners-Lee creó la primera página web hace 25 años.

El 20 de diciembre de 1990, Tim Berners-Lee, un científico de origen británico con voz suave y figura desgarbada, puso a prueba un invento en el que venía trabajando desde marzo de 1989: un sistema de información distribuida. Berners-Lee formaba parte de la plantilla de la Organización Europea de Investigación Nuclear (Cern por sus siglas en inglés), la misma entidad que, en la actualidad, lleva las riendas del Gran Colisionador de Hadrones.

En sus inicios, la World Wide Web fue desarrollada para que las universidades y los científicos del mundo compartieran información de forma automatizada.

Berners-Lee pulió los detalles de la innovación, en 1990, con ayuda del ingeniero de sistemas belga Robert Cailliau. “El documento describía un proyecto hipertextual, llamado WorldWideWeb, en el cual la web, de documento hipertextuales podía visualizarse por medio de navegadores”, se señala en la página web del Cern.

Para el final de 1990, un prototipo del sistema de software que soportaba la web estuvo listo para ser puesto a prueba. Los primeros ejemplos de página web fueron desarrollados en computadores NeXT.

La dirección del primer sitio web fue http://info.cern.ch/hypertext/WWW/TheProject.html

miércoles, 19 de agosto de 2015

Taller

Taller, una empresa contrata los servicios profesionales de un analista programador para el diseño de una base de datos sobre un sistema de información de nomina.
Una de las tablas obtenidas tiene la siguiente estructura.
Datos
Identificacion
Nombre del empleados
Cargo
Sueldo
Fecha nacimiento
Sexo.
Valor prestamo
Valor Abonado.
Con esta información desarrolle lo siguiente:
1. Cree la tabla
2. Inserte la información

Identificacion Nombre Cargo Sueldo Fecha Nac Sexo Prestamo Abono
E09 ABC UBc gERENTE 12000000 22-AGO-1960 M 20000000 5000000
E01 eeee UXXX SECRETARIA 4000000 10-ENE-1970 F 3000000 NULL
E02 xxx sssss CONTADOR 5000000 21-OCT-1976 M 14000000 NULL
E08 WWW ttt GERENTE VENTA 4300000 19-FEB-1985 M NULL NULL
E03 pqw Eka Portero 644000 01-mar-1990 M 1000000 50000
E04 ooo aaaa Jefe PRODUCCION 3400000 01-JUL-1980 F 1000000 NULL
E05 PPP ÑÑÑ CONDUCTOR 1200000 07-JUL-1981 NULL 2000000 NULL
3. Produzca  consultas sobre la información, aplicacando funciones.

1. Texto, caracter o cadena
2.  Fecha
3. Numericas



jueves, 25 de junio de 2015

Paquete de procedimientos en oracle

CREATE OR REPLACE PACKAGE pk_paises AS  -- Esta es la cabecera del paquete se deben DECLARAR LOS PROCEDIMIENTOS DEL PAQUETE
   PROCEDURE sp_paises_grabar(p_codpais Varchar2,p_nombre Varchar2);
   PROCEDURE sp_paises_consultaruno (p_codpais varchar2);
END pk_paises;

CREATE OR REPLACE PACKAGE BODY pk_paises AS  -- Cuerpo del paquete

   PROCEDURE sp_paises_grabar(
      p_codpais VARCHAR2,
      p_nombre  VARCHAR2) IS
   BEGIN
      INSERT INTO tbl_paises (fld_codpais, fld_nombre) Values
       (p_codpais,p_nombre);
   END sp_paises_grabar;

   PROCEDURE sp_paises_consultaruno (p_codpais varchar2) IS
   BEGIN
        select fld_codpais,fld_nombre from tbl_paises where fld_codpais=p_codpais;
   END sp_paises_consultaruno;
END pk_paises;

lunes, 22 de junio de 2015

Archivo para crear el config.xml en PhoneGap

Ejemplo del archivo AndroidManifest.xml

Tomar una foto con la camara del celular



<!DOCTYPE html>
<html>
  <head>
    <title>Capture Photo</title>

    <script type="text/javascript" charset="utf-8" src="cordova-2.3.0.js"></script>
    <script type="text/javascript" charset="utf-8">

    var pictureSource;   // picture source
    var destinationType; // sets the format of returned value

    // Wait for Cordova to connect with the device
    //
    document.addEventListener("deviceready",onDeviceReady,false);

    // Cordova is ready to be used!
    //
    function onDeviceReady() {
        pictureSource=navigator.camera.PictureSourceType;
        destinationType=navigator.camera.DestinationType;
    }

    // Called when a photo is successfully retrieved
    //
    function onPhotoDataSuccess(imageData) {
      // Uncomment to view the base64 encoded image data
      // console.log(imageData);

      // Get image handle
      //
      var smallImage = document.getElementById('smallImage');

      // Unhide image elements
      //
      smallImage.style.display = 'block';

      // Show the captured photo
      // The inline CSS rules are used to resize the image
      //
      smallImage.src = "data:image/jpeg;base64," + imageData;
    }

    // Called when a photo is successfully retrieved
    //
    function onPhotoURISuccess(imageURI) {
      // Uncomment to view the image file URI
      // console.log(imageURI);

      // Get image handle
      //
      var largeImage = document.getElementById('largeImage');

      // Unhide image elements
      //
      largeImage.style.display = 'block';

      // Show the captured photo
      // The inline CSS rules are used to resize the image
      //
      largeImage.src = imageURI;
    }

    // A button will call this function
    //
    function capturePhoto() {
      // Take picture using device camera and retrieve image as base64-encoded string
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
        destinationType: destinationType.DATA_URL });
    }

    // A button will call this function
    //
    function capturePhotoEdit() {
      // Take picture using device camera, allow edit, and retrieve image as base64-encoded string
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
        destinationType: destinationType.DATA_URL });
    }

    // A button will call this function
    //
    function getPhoto(source) {
      // Retrieve image file location from specified source
      navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
        destinationType: destinationType.FILE_URI,
        sourceType: source });
    }

    // Called if something bad happens.
    //
    function onFail(message) {
      alert('Failed because: ' + message);
    }

    </script>
  </head>
  <body>
    <button onclick="capturePhoto();">Capture Photo</button> <br>
    <button onclick="capturePhotoEdit();">Capture Editable Photo</button> <br>
    <button onclick="getPhoto(pictureSource.PHOTOLIBRARY);">From Photo Library</button><br>
    <button onclick="getPhoto(pictureSource.SAVEDPHOTOALBUM);">From Photo Album</button><br>
    <img style="display:none;width:60px;height:60px;" id="smallImage" src="" />
    <img style="display:none;" id="largeImage" src="" />
  </body>
</html>

viernes, 5 de junio de 2015

Ejemplos de alter

Alter table

Sirve para cambiar la definición de una tabla. Podemos cambiar tanto columnas como restricciones :
Sintaxis General
ALTER TABLE [esquema.]tabla {ADD|MODIFY|DROP}...

Ejemplos:

Añadir una columna:
ALTER TABLE T_PEDIDOS ADD TEXTOPEDIDO Varchar2(35);

Cambiar el tamaño de una columna:
ALTER TABLE T_PEDIDOS MODIFY TEXTOPEDIDO Varchar2(135);

Hacer una columna obligatoria convirtiendola en NOT NULL:
ALTER TABLE T_PEDIDOS MODIFY (TEXTOPEDIDO NOT NULL);

Eliminar una Columna:
ALTER TABLE T_PEDIDOS DROP COLUMN TEXTOPEDIDO;

Valor por defecto de una columna:
ALTER TABLE T_PEDIDOS MODIFY TEXTOPEDIDO Varchar2(135) DEFAULT 'ABC...';

Añadir dos columnas:
ALTER TABLE T_PEDIDOS
      ADD (SO_PEDIDOS_ID INT, TEXTOPEDIDO Varchar2(135));

jueves, 12 de marzo de 2015

Efectos al pasar el mouse sobre un boton con CSS



style="background-color:#eeeeee;border-style:outset"
onmouseover="this.style.backgroundColor='cyan'"
onmouseout="this.style.backgroundColor='#eeeeee'"
onclick="this.style.borderStyle='inset';alert('¡Ho la!')"
value="Prueba de botón">

style="background-color:#eeeeee;border-style:outset"
onmouseover="this.style.backgroundColor='blue'"
onmouseout="this.style.backgroundColor='#eeeeee'"
onclick="this.style.borderStyle='inset';alert('¡Ho la!')"
value="Prueba de botón">

style="background-color:#eeeeee;border-style:outset"
onmouseover="this.style.backgroundColor='red'"
onmouseout="this.style.backgroundColor='#eeeeee'"
onclick="this.style.borderStyle='inset';alert('¡Ho la!')"
value="Prueba de botón">

style="background-color:#eeeeee;border-style:outset"
onmouseover="this.style.backgroundColor='yellow'"
onmouseout="this.style.backgroundColor='#eeeeee'"
onclick="this.style.borderStyle='inset';alert('¡Ho la!')"
value="Prueba de botón">



Trabajo final de excel intermedio

 Se recibe un archivo con la información de la estadistica de venta en formato plano Con estos datos realice lo siguiente: 1. Importe la inf...