Script para crear indices espaciales (Oracle 11g):
Los indices espaciales son necesarios para poder efectuar cálculos sobre los campos geometry de Oracle .
Paso 1:
Debe asegurarse estar logeado como owner del esquema donde desea asignar
Paso 2:
INSERT INTO user_sdo_geom_metadata a
(TABLE_NAME, COLUMN_NAME, DIMINFO,SRID)
Values
('<TABLA_QUE_CONTIENE_CAMPO_GEOMETRY>', 'GEOMETRY',
"MDSYS"."SDO_DIM_ARRAY"(
"MDSYS"."SDO_DIM_ELEMENT"('Longitude',-81,-68,0.1),
"MDSYS"."SDO_DIM_ELEMENT"('Latitude',-19,0,0.1)), 4248);
Paso 3:
CREATE INDEX <ESQUEMA>.<NOMBRE_INDICE_GEOMETRY>
ON <ESQUEMA>.<TABLA_QUE_CONTIENE_CAMPO_GEOMETRY>
(GEOMETRY)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
NOPARALLEL;
viernes, 19 de junio de 2015
Postgres SELECT UTF8 TO ASCII
ERROR: la conversión de codificación de UTF8 a ASCII no está soportada
Solución:
Funcion para convertir ascii:
CREATE OR REPLACE FUNCTION sp_ascii(character varying)
RETURNS text AS
$BODY$
SELECT TRANSLATE
($1,
'áàâãäéèêëíìïóòôõöúùûüÁÀÂÃÄÉÈÊËÍÌÏÓÒÔÕÖÚÙÛÜçÇ',
'aaaaaeeeeiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcC');
$BODY$
LANGUAGE 'sql' IMMUTABLE;
Aplicando la funcion:
Select * from pais where sp_ascii(nombre)='Perú';
miércoles, 17 de junio de 2015
HTTP Error 500.19 and error code : 0x80070021
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
______________________________________________________________
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \?\C:\inetpub\wwwroot\APITeslin\web.config
______________________________________________________________
Solución:
Activar los características completas del IIS (World Wide Web Services)
Espero sea de su utilidad.
InkaConf 2015
InkaConf 2015 se realizara este 24 de Setiembre, estarán presentes grandes expositores de tecnologías como Ruby, Python, Go, JavaScript entre otros.
Lugar: Pontificia Universidad Católica del Perú - Law Auditorium
Av. Universitaria 1801 - Lima, Peru
Comparto el link para mas detalles y registro:
https://inkaconf.org/
Lugar: Pontificia Universidad Católica del Perú - Law Auditorium
Av. Universitaria 1801 - Lima, Peru
Comparto el link para mas detalles y registro:
https://inkaconf.org/
Preparacion para un proyecto .net 2013
Información de Arquitectura de un Proyecto .Net:
Productos utilizados:
GhostDoc 4.9.15086
Documentación del Sistema
http://submain.com/products/ghostdoc.aspx
Npgsql 2.2.5.0
Conexión a la base de datos Postgres
https://github.com/npgsql/npgsql
NLog 3.2.1.0
Log de Sistema
http://nlog-project.org/
Localization 1.0.7
MultiIdiomas
https://www.nuget.org/packages/Localization/
Microsoft.Owin 3.0.1.0
Microsoft.Owin.Security.Cookies 3.0.1.0
Bootstrap v3.3.4
Microsoft.AspNet.Web.Optimization v1.1.3
Datepicker for Bootstrap v1.4.0
Modernizr v2.8.3
Arquitectura Capas:
-------------------------------------------------------------
BL: Logica del Negocio (Business Logic)
ET: Entidades del Sistema (Entities)
DAL: Capa de Acceso a Datos ( Data Access Logic)
Productos utilizados:
GhostDoc 4.9.15086
Documentación del Sistema
http://submain.com/products/ghostdoc.aspx
Npgsql 2.2.5.0
Conexión a la base de datos Postgres
https://github.com/npgsql/npgsql
NLog 3.2.1.0
Log de Sistema
http://nlog-project.org/
Localization 1.0.7
MultiIdiomas
https://www.nuget.org/packages/Localization/
Microsoft.Owin 3.0.1.0
Microsoft.Owin.Security.Cookies 3.0.1.0
Bootstrap v3.3.4
Microsoft.AspNet.Web.Optimization v1.1.3
Datepicker for Bootstrap v1.4.0
Modernizr v2.8.3
Arquitectura Capas:
-------------------------------------------------------------
BL: Logica del Negocio (Business Logic)
ET: Entidades del Sistema (Entities)
DAL: Capa de Acceso a Datos ( Data Access Logic)
Suscribirse a:
Entradas (Atom)
