This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo aptitude install php5-sqlite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// | |
| /// Sample library for using IFilter to read text from any registered filter type. | |
| /// | |
| /// Helpful links: | |
| /// http://msdn.microsoft.com/en-us/library/ms691105(VS.85).aspx | |
| /// http://ifilter.codeplex.com/ | |
| /// http://www.pinvoke.net/default.aspx/query/LoadIFilter.html | |
| /// | |
| /// Code here is taken from a combination of the project located at http://ifilter.codeplex.com/ | |
| /// as well as definitions taken from p-invoke.net. License is MS-PL so enjoy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo aptitude install php5 php5-cli php-pear php5-gd php5-xsl php5-curl php5-mysql libapache2-mod-php5 | |
| [sudo] password for ...: | |
| Se instalarán los siguiente paquetes NUEVOS: | |
| apache2-mpm-prefork{ab} libapache2-mod-php5 php5 | |
| 0 paquetes actualizados, 3 nuevos instalados, 0 para eliminar y 46 sin actualizar. | |
| Necesito descargar 2947kB de archivos. Después de desempaquetar se usarán 8020kB. | |
| No se satisfacen las dependencias de los siguientes paquetes: | |
| apache2-mpm-prefork: Entra en conflicto: apache2-mpm que es un paquete virtual. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // instalación | |
| $ sudo aptitude search php5-xdebug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- http://stackoverflow.com/questions/639854/tsql-check-if-a-row-exists-otherwise-insert | |
| IF NOT EXISTS (SELECT * FROM Bookings WHERE FLightID = @Id) | |
| BEGIN | |
| --UPDATE HERE | |
| END | |
| ELSE | |
| BEGIN | |
| -- INSERT HERE | |
| END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE Proyecto.Proyecto | |
| SET Estado = CASE WHEN EnEjecucion = '1' THEN 'e' ELSE NULL END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Crear tabla temporal con los valores actuales del campo EnEjecucion | |
| -- eliminando si existe | |
| IF OBJECT_ID( N'tempdb..#ProyectoEnejecucionEstado') IS NOT NULL | |
| DROP TABLE #ProyectoEnejecucionEstado; | |
| GO | |
| -- creando la tabla temporal | |
| CREATE TABLE #ProyectoEnejecucionEstado ( | |
| CodigoProyecto CHAR(6), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://www.meiocodigo.com/projects/meiomask/ | |
| // alterando la configuracion de meio mask para | |
| // usar () espacio y - en las cajas de texto | |
| $.mask.options = { | |
| attr: 'alt', // an attr to look for the mask name or the mask itself | |
| mask: null, // the mask to be used on the input | |
| type: 'fixed', // the mask of this mask | |
| maxLength: -1, // the maxLength of the mask | |
| defaultValue: '', // the default value for this input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://www.codeproject.com/KB/webforms/SelChkboxesDataGridView.aspx | |
| for (int i = 0; i < GridView1.Rows.Count; i++) | |
| { | |
| GridViewRow row = GridView1.Rows[i]; | |
| bool isChecked = ((CheckBox) row.FindControl("chkSelect")).Checked; | |
| if (isChecked) | |
| { | |
| // Column 2 is the name column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:jd-team/jdownloader | |
| sudo apt-get update && sudo apt-get install jdownloader |