Buenas,
Para la redirección de tu dominio.com a www.dominio.com, con prestashop bastará con ir
a PREFERENCIAS \ SEO + URL
Aquí encontraremos las opciones a modificar:
Dominio de la tienda dominio.com
Dominio ssl dominio.com
Nunca fue tan fácil, olvídate de .htaccess.
Posicionamiento web: Visítanos aquí
Carlos Javier Martín Cano
Buscar este blog
jueves, 17 de julio de 2014
martes, 1 de julio de 2014
File upload EXTJS
CLIENTE(JS)
this.PANELBASICO = Ext.create('Ext.form.Panel',
{ width: 500, frame: true, title: 'File Upload Form', bodyPadding: '10 10 0',
defaults:
{ anchor: '100%',
allowBlank: false,
msgTarget: 'side',
labelWidth: 50 },
items: [{
xtype: 'textfield',
fieldLabel: 'Name'
},
{ xtype: 'filefield',
id: 'form-file',
emptyText: 'Select an image',
fieldLabel: 'Photo',
name: 'photo-path',
buttonText: '',
buttonConfig:
{ iconCls: 'upload-icon' }
}], buttons:
[{ text: 'Save', handler: function()
{ var form = this.up('form').getForm();
if(form.isValid()){ form.submit(
{ url: '/NombreServlet', waitMsg: 'Uploading your photo...', success: function(fp, o)
{ msg('Success', 'Processed file "' + o.result.file + '" on the server'); } }); } } },
{ text: 'Reset', handler: function()
{ this.up('form').getForm().reset(); } }]
});
SERVIDOR(SERVLET)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
{
//RECUPERAMOS LOS FICHEROS
List items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
}
Posicionamiento web: Visítanos aquí
Carlos Javier Martín Cano
this.PANELBASICO = Ext.create('Ext.form.Panel',
{ width: 500, frame: true, title: 'File Upload Form', bodyPadding: '10 10 0',
defaults:
{ anchor: '100%',
allowBlank: false,
msgTarget: 'side',
labelWidth: 50 },
items: [{
xtype: 'textfield',
fieldLabel: 'Name'
},
{ xtype: 'filefield',
id: 'form-file',
emptyText: 'Select an image',
fieldLabel: 'Photo',
name: 'photo-path',
buttonText: '',
buttonConfig:
{ iconCls: 'upload-icon' }
}], buttons:
[{ text: 'Save', handler: function()
{ var form = this.up('form').getForm();
if(form.isValid()){ form.submit(
{ url: '/NombreServlet', waitMsg: 'Uploading your photo...', success: function(fp, o)
{ msg('Success', 'Processed file "' + o.result.file + '" on the server'); } }); } } },
{ text: 'Reset', handler: function()
{ this.up('form').getForm().reset(); } }]
});
SERVIDOR(SERVLET)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException
{
//RECUPERAMOS LOS FICHEROS
List
jueves, 26 de junio de 2014
TRIGGER ASIGNAR SECUENCIA A TABLA ORACLE
Para asignar secuencia a tabla, crearemos un Trigger:
create or replace TRIGGER xxNombreTriger
BEFORE INSERT ON xxNombreTabla REFERENCING
NEW AS NEW FOR EACH ROW BEGIN
if(:new.campoID is null) then
SELECT xxNombreSecuencia.nextval INTO :new.campoID FROM dual;
end if;
END;
Posicionamiento web: Visítanos aquí Carlos Javier Martín Cano
create or replace TRIGGER xxNombreTriger
BEFORE INSERT ON xxNombreTabla REFERENCING
NEW AS NEW FOR EACH ROW BEGIN
if(:new.campoID is null) then
SELECT xxNombreSecuencia.nextval INTO :new.campoID FROM dual;
end if;
END;
Posicionamiento web: Visítanos aquí Carlos Javier Martín Cano
miércoles, 25 de junio de 2014
Disabled/enabled CONSTRAINT de bd
Si queremos saber cuales son las sentencias a ejecutar para poner a disabled nuestras constraint, ejecuta:
select 'ALTER TABLE '||substr(c.table_name,1,35)|| ' DISABLE CONSTRAINT '||constraint_name||';'
from user_constraints c, user_tables u where c.table_name = u.table_name;
Si queremos saber cuales son las sentencias a ejecutar para poner a enabled nuestras constraint, ejecuta:
select 'ALTER TABLE '||substr(c.table_name,1,35)|| ' ENABLE CONSTRAINT '||constraint_name||' ;' from user_constraints c, user_tables u where c.table_name = u.table_name;
Posicionamiento web: Visítanos aquí Carlos Javier Martín Cano
select 'ALTER TABLE '||substr(c.table_name,1,35)|| ' DISABLE CONSTRAINT '||constraint_name||';'
from user_constraints c, user_tables u where c.table_name = u.table_name;
Si queremos saber cuales son las sentencias a ejecutar para poner a enabled nuestras constraint, ejecuta:
select 'ALTER TABLE '||substr(c.table_name,1,35)|| ' ENABLE CONSTRAINT '||constraint_name||' ;' from user_constraints c, user_tables u where c.table_name = u.table_name;
Posicionamiento web: Visítanos aquí Carlos Javier Martín Cano
Listar tablas de BD y ver número de registros
Para listar todas las tablas de nuestra BD, ejecutaremos:
SELECT * FROM ( SELECT TABLE_NAME, to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from '||TABLE_NAME)) ,'/ROWSET/ROW/C')) COUNT FROM user_tables ORDER BY TABLE_NAME ) c ORDER BY COUNT
Con la que obtendremos la tabla y el número de registros de dicha tabla.
Carlos Javier Martín Cano
SELECT * FROM ( SELECT TABLE_NAME, to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from '||TABLE_NAME)) ,'/ROWSET/ROW/C')) COUNT FROM user_tables ORDER BY TABLE_NAME ) c ORDER BY COUNT
Con la que obtendremos la tabla y el número de registros de dicha tabla.
Carlos Javier Martín Cano
Aumentar la secuencia de Oracle
Para incrementar la secuencia XXX_SEQUENCE en 100, tendremos que ejecutar la SQL que vemos a continuación:
ALTER SEQUENCE XXX_SEQUENCE INCREMENT BY 100;
Carlos Javier Martín Cano
Un saludo
sábado, 19 de abril de 2014
Desconfía de los SEO que dicen garantizar los primeros puestos en ranking Google
Buenas tardes,
Hoy me gustaría compartir con ustedes un artículo que me ha resultado bastante interesante, destaco esto que menciono a continuación ya que por desgracia hay muchísima gente utiliza estas tácticas comerciales:
Nadie puede garantizarle el primer puesto en la clasificación de Google.
Desconfía de los SEO que dicen garantizar las clasificaciones, que afirman tener una "relación especial" con Google o que dicen disponer de un sistema de "transferencia prioritaria" a Google. Google no hace distinción alguna. De hecho, la única manera de enviar un sitio directamente a Google es a través de nuestra páginaAñadir URL o enviando un Mapa del sitio, y lo puedes hacer tú mismo sin coste alguno.
Os paso el link completo al artículo https://support.google.com/webmasters/answer/35291?hl=es
Suscribirse a:
Entradas (Atom)