Guías de referencia (cheat sheets) lenguajes de programación (desarrollo)
Una recopilación con cheet sheets para varios lenguajes (php,java,asp,html,etc), nunca esta mal tenerlas a mano.
Una recopilación con cheet sheets para varios lenguajes (php,java,asp,html,etc), nunca esta mal tenerlas a mano.
Editar el archivo /etc/apt/sources.list con cualquier editor de texto
nano /etc/apt/sources.list
Agregar la siguiente dirección:
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu edgy main
Guardar y salir (CTRL+O) y (CTRL X).
Actualizar los repositorios:
apt-get update
Instalar los paquetes:
apt-get install tinyos tinyos-avr tinyos-msp430 tinyos-tools nesc
Aquí indico como hacer una conexión a mysql (BD) usando PHP
Primero debemos configurar la Base de datos, es decir, tener creada una BD (miBD) con un usuario(miUSER) y contraseña (miPASS) con permisos para leer y escribir dentro de ella, sabiendo esto, y alguna tabla conocida previamente creada ejm: ‘documents’, se utilizarán 2 archivos:
1 _bd.php : Contiene los datos de conexión a la BD y funciones que buscan, eliminan y modifican en la BD.
2 prueba.php : Éste archivo llama a la función de _bd.php y despliega en pantalla el resultado de la búsqueda BD.
Validaciones en upload.php
< ?php //Limita el tamaño máximo del archivo que se sube a 10M, en código upload.php //to lowerCase //Para dejar todo en minúsculas $tipo_archivo= strtolower($tipo_archivo); //Valida para saber si el archivo esta en el directorio temporal (directorio temporal revisa php.ini) if (!($HTTP_POST_FILES['doc_file']['tmp_name']!='')){ echo 'without file'; //cuando se carga mal un archivo exit(); } //validación para verificar la extensión del archivo //TODO //validación para limitar el tamaño del archivo if (($tamano_archivo > $filesize_limit_upload)) { echo "The file size is upper the limit, the max size allowed is $filesize_limit_upload bytes"; exit(); } if (move_uploaded_file($HTTP_POST_FILES['doc_file']['tmp_name'], $dir_base_uploadDoc.$doc_filename)){ }else{ print("Some error can´t complete your requirement"); exit(); } ?>
Problems while uploading the document (problemas al tratar de cargar el archivo):
Warning: fread(): supplied argument is not a valid stream resource in
Warning: fclose(): supplied argument is not a valid stream resource in
Chech (Revisar) php.ini
upload_max_filesize = 2M; post_max_size = 8M;
También revisar las siguientes variables (Also check if):
(post_max_size > upload_max_filesize).
Pasos para seguridad al utilizar PHP en un servidor que está en internet (sitio público).
1. Deshabilitar las URL remotas para funciones que manejen archivos:
1. allow_url_fopen = Off
2. Register Globals
1. register_globals = Off (more…)
Conexión MySQL Client
mysql -u -h -P -p
Ejemplo de conexión utilizando usuario “root” desde la consola:
#$ mysql -u root -p
Enter password: #####
Welcome TO the MySQL monitor. Commands end WITH ; OR g.
Your MySQL connection id IS 89 TO server version: 4.1.11-Debian_4-log
Type 'help;' OR 'h' FOR help. Type 'c' TO clear the buffer.
mysql>
Trabajando con Bases de Datos – Creación de BBDD
(more…)
UTF-8 en inglés
UTF-8 en español
UTF-8 (8-bit Unicode Transformation Format) es una norma de transmisión de longitud variable para caracteres codificados utilizando Unicode, creada por Rob Pike y Ken Thompson. UTF-8 usa grupos de bytes para representar el estándar de Unicode para los alfabetos de muchos de los lenguajes del mundo. Es especialmente útil para la transmisión sobre sistemas de correo de 8 bits. (more…)

Well if you wanna try some example of adobe flex, you need the last flash player version 9
Una nueva noticia, adobe ha lanzado una nueva versión beta de flash player, con soporte para H264. Calidad HD (HD-DVD y Blue Ray) (more…)
Saludos, esta es una prueba la cual demuestra que teniendo Word 2007 y una cuenta en WordPress blog, hay como publicar entradas directamente.
Jejej …. Y funciona…….
Los pasos, son simples solamente.
When you installed Oracle XE by default in your pc (win and linux), the XE have one utility(the web-app service from oracle is running. to access by WEB using the port http:8080, http://127.0.0.1:8080/apex user: SYSTEM and password: “of the installation”, well if you dont have any other service running on the 8080 port, works fine!!! but if you have………. for example (web server – tomcat(8080) or any other running on the same port), you should change one of this, the tomcat port or the second way change the oracle port:
The second way:
The steps to change oracle http Port:
Open the command line of the oracle:
SQL>connect system
SQL>Enter the password"of the installation"
1) Necesitamos el plugin SWT, descargarlo de www.eclipse.org para la plataforma específica y descomprimirlo en en temporal, en mi caso:yo descargué: swt-M20070212-1330-gtk-linux-x86.zip
2) Crear un proyecto java, importar el archivo anterior descomprimido. referencia eclipse paso a paso (more…)
Para crear una aplicación con GUI “ventanas” usando JAVA: Elegir entre AWT, SWING, o SWT:
La descripción de cada una: (more…)
[lang_en]Abrir consola, y convertirse en usuario root o usar sudo:
grub> root (hd0,1) grub>; setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub>
ver Artículo Reinstalar GRUB[/lang_en]
TheBuckmaker.com Wordpress Themes | Geld von Privat, Streaming Audio
футбол онлайн,
live football,
canlı izle,
football streaming,
football forum,
football forums,
canlı maç,
football highlights,
maç özeti,
live football streaming,
stream live football,
free football streaming,