Compararalquilerdecoches.es busca las tarifas de alquiler de vehiculos más baratas de entre 550 agencias de alquiler de coches diferentes. Esto garantiza coches de alquiler a bajo precio. En nuestra oferta se también se incluye kilometraje ilimitado y el seguro obligatorio. http://www.compararalquilerdecoches.es/
Mini mensaje de navidad en consola en Python
mensajes=['','Hola ','','Este mensaje en Python es para desearte FELIZ NAVIDAD.', \ '','','',' Josue Basurto', \ ' @josuebasurto', \ ' josuebasurto.com'] nombre=raw_input('Ingresa tu nombre: ') for i in range(len(mensajes)): if i == 1: print mensajes[i] + nombre.upper else: print mensajes[i]
Una vez tenemos el documento un array de bytes podremos hacer lo que queramos con él.
public static byte[] leerDocumento(URL url) throws IOException { URLConnection connection = url.openConnection(); InputStream in = null; try { in = connection.getInputStream(); } catch (FileNotFoundException e) { return null; } catch (ConnectException e) { e.printStackTrace(); return null; } int contentLength = connection.getContentLength(); ByteArrayOutputStream tmpOut; if (contentLength != -1) { tmpOut = new ByteArrayOutputStream(contentLength); } else { tmpOut = new ByteArrayOutputStream(16384); } byte[] buf = new byte[512]; while (true) { int len = in.read(buf); if (len == -1) { break; } tmpOut.write(buf, 0, len); } in.close(); tmpOut.close(); byte[] array = tmpOut.toByteArray(); return array; }
solo tienes que reemplazar la ‘a’ por el texto que buscas, ejemplo ‘nombreusuario’ o ‘usuario’
DECLARE @txt VARCHAR(20) SET @txt = 'a' SELECT O.name + '.' + C.name AS Nombre, C.column_id AS NumeroColumna, sys.types.name AS TipoDeDato, sys.types.max_length TamanoMaximo, sys.types.PRECISION AS PRECISION, sys.types.scale AS Escala, sys.types.is_nullable AS Nullable, sys.types.is_user_defined AS DefinidoPorUsuario FROM sys.columns AS C INNER JOIN sys.objects AS O ON C.OBJECT_ID = O.OBJECT_ID INNER JOIN sys.types ON C.user_type_id = sys.types.user_type_id AND C.system_type_id = sys.types.system_type_id WHERE (C.name LIKE N'%' + @txt + '%') ORDER BY O.name, NumeroColumna
Una clase para simular (en parte) el objeto My de Visual Basic 2005
// Una clase para simular (en parte) el objeto My de Visual Basic 2005 static class My { public static Properties.Settings Settings { get { return Properties.Settings.Default; } } }
Me gustó que las etiquetas con los errores de validación se crearan en el momento de mostrar estas alertas y que además salieran con una sutil animación.
<p id="pnombre"> <label id="lnombre">Nombre:</label> <input type="text" id="inombre" name="nombre" /> </p> ... <p class="btn"><a id="send" href="#">[enviar]</a></p>
$(document).ready(function() { $("#send").click(function() { var oForm = document.forms[0]; var oNombre = oForm.elements["nombre"]; var bOk = true; $("p.error").remove(); if(oNombre.value=="") { oNombre.focus(); $("#pnombre" ).after("<p class='error'>Por favor, indíca tu nombre.</p>"); bOk = false; } ... $("p.error").slideDown(); if(bOk) oForm.submit(); return false; }); });
Se trata de un menú totalmente accesible.
Puede tener varios niveles.
Los enlaces a # desplegan un submenu y los enlaces a una página van a ella.
.submenu { display: none; }
<ul id="menu"> <li><a href="#">opcion 1</a><ul class="submenu"> <li><a href="opcion.php">opcion 1.1</a></li> </ul></li> <li><a href="#">opcion 2</a><ul class="submenu"> <li><a href="opcion.php">opcion 2.1</a></li> <li><a href="#">opcion 2.2</a><ul class="submenu"> <li><a href="opcion.php">opcion 2.2.1</a></li> <li><a href="opcion.php">opcion 2.2.2</a></li> </ul></li> </ul></li> </ul>
$(document).ready(function () { $("#menu a").click(fOption); }); function fOption() { var jThis = $(this); var href = jThis.attr("href"); if(href.indexOf("#")>-1) { $(".submenu").css({ display: "none" }); jThis.parent().children("ul").css({ display: "block" }); jThis.parents(".submenu").css({ display: "block" }); return false; } return true; }
xml es XmlDocument
foreach(XmlNode n in xml.ChildNodes) { if (n.NodeType == XmlNodeType.XmlDeclaration) n.ParentNode.RemoveChild(n); }
El siguiente es el Reset CSS de Eric Meyer:
/* v1.0 | 20080212 */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } /* remember to define focus styles! */ :focus { outline: 0; } /* remember to highlight inserts somehow! */ ins { text-decoration: none; } del { text-decoration: line-through; } /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse: collapse; border-spacing: 0; }
WMS / SAP Referencia Idoc
-- 76027871 SELECT * FROM SAP_EDIDCO where docnum = :DOC_NUM; select * from sap_ediddo where docnum = :DOC_NUM;