10 errores que puedes estar comentiendo en PHP

febrero 25th, 2009 | Posted by alegg in PHP - (0 Comments)

Interesante lista de 10 errores comunes que se realizan en PHP.  El que más me ha llamado la atención y que no tenia idea es 1. Según el articulo, el utilizar comillas simples es mucho menos costoso que las comillas dobles.

Link aqui

Saber si una peticion es AJAX

febrero 18th, 2009 | Posted by alegg in Codigo | Javascript - (0 Comments)

Leyendo http://icebeat.bitacoras.com/blog/tag/AJAX di con esta sencilla función para saber si tus peticiones vienen de AJAX o no. Para que funcionen tienes que saber si tu framework envía esa cabecera.

function is_ajax(){
return (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest');
}

Si utilizas tu propia clase tienes que enviarla

this.transport.setRequestHeader('X-Requested-With', 'XMLHttpRequest');

Cinco formas para mejorar nuestro codigo CSS

febrero 17th, 2009 | Posted by alegg in CSS - (0 Comments)

Interesante articulo que muestra algunos ejemplos para hacer nuestro código CSS mejor y mas eficiente.

Link al articulo

Obtener la extension de un archivo en PHP

febrero 15th, 2009 | Posted by alegg in Codigo | PHP - (0 Comments)
$ext = pathinfo('nombredearchivo.jpg');
echo $ext['extension']; // imprimira 'jpg'  

Listas las variables de servidor en PHP

febrero 14th, 2009 | Posted by alegg in Codigo | PHP - (0 Comments)
foreach($_SERVER as $key=>$valor)
echo $key . " = " . $valor . "<br>";

Esta lista puede hacerte ahorrar algunos minutos de debug…

· background –> background
· background-attachment –> backgroundAttachment
· background-color –> backgroundColor
· background-image –> backgroundImage
· background-position –> backgroundPosition
· background-repeat –> backgroundRepeat
· border –> border
· border-bottom –> borderBottom
· border-bottom-color –> borderBottomColor
· border-bottom-style –> borderBottomStyle
· border-bottom-width –> borderBottomWidth
· border-color –> borderColor
· border-left –> borderLeft
· border-left-color –> borderLeftColor
· border-left-style –> borderLeftStyle
· border-left-width –> borderLeftWidth
· border-right –> borderRight
· border-right-color –> borderRightColor
· border-right-style –> borderRightStyle
· border-right-width –> borderRightWidth
· border-style –> borderStyle
· border-top –> borderTop
· border-top-color –> borderTopColor
· border-top-style –> borderTopStyle
· border-top-width –> borderTopWidth
· border-width –> borderWidth
· clear –> clear
· clip –> clip
· color –> color
· cursor –> cursor
· display –> display
· filter –> filter
· font –> font
· font-family –> fontFamily
· font-size –> fontSize
· font-variant –> fontVariant
· font-weight –> fontWeight
· height –> height
· left –> left
· letter-spacing –> letterSpacing
· line-height –> lineHeight
· list-style –> listStyle
· list-style-image –> listStyleImage
· list-style-position –> listStylePosition
· list-style-type –> listStyleType
· margin –> margin
· margin-bottom –> marginBottom
· margin-left –> marginLeft
· margin-right –> marginRight
· margin-top –> marginTop
· overflow –> overflow
· padding –> padding
· padding-bottom –> paddingBottom
· padding-left –> paddingLeft
· padding-right –> paddingRight
· padding-top –> paddingTop
· page-break-after –> pageBreakAfter
· page-break-before –> pageBreakBefore
· position –> position
· float –> styleFloat
· text-align –> textAlign
· text-decoration –> textDecoration
· text-decoration: blink –> textDecorationBlink
· text-decoration: line-through –> textDecorationLineThrough
· text-decoration: none –> textDecorationNone
· text-decoration: overline –> textDecorationOverline
· text-decoration: underline –> textDecorationUnderline
· text-indent –> textIndent
· text-transform –> textTransform
· top –> top
· vertical-align –> verticalAlign
· visibility –> visibility
· width –> width
· z-index –> zIndex

Fuente: http://blog.oridoki.com/

Ya esta disponible JavaFX v1.1

febrero 13th, 2009 | Posted by alegg in General - (0 Comments)

Fuente a la noticia. http://www.javahispano.org/contenidos/es/javafx_v1_1_disponible/

Retornan los Frames

febrero 12th, 2009 | Posted by alegg in HTML - (0 Comments)

Hace algunos años, era bastante usual utilizar frames en las paginas. En el último tiempo y por distintas razones el uso de frames ha ido desapareciendo.

Al parecer, en HTML5 trae mejores usos para los frames.

Enlaces sobre el tema.

http://annevankesteren.nl/2009/02/html5-frames

http://www.w3schools.com/tags/html5_frame.asp

Muy interesante la  lista que publican en 97 Things

De la lista, creo ue la número 38 es la que mas en representa…

Nuevo Formato para los anuncios de Google?

febrero 10th, 2009 | Posted by alegg in SEO - (0 Comments)

Google AdSense podria estar testiendo un nuevo formato para sus anuncios. Hay una discusión en DigitalPoint Forums sobre esta información

googlenuevo