CHAR_WIDTH = REPORT_WIDTH / MAX_CHAR_PER_ROW=524 / 80 = 6.55 //6
CHAR_HEIGHT = REPORT_HEIGHT / MAX_CHAR_PER_COL =524 / 44 = 11.9 //11//10
JRTextExporter exporter = new JRTextExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "c:\\textreport1.txt");
exporter.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new Integer(6));
exporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Integer(11));
exporter.exportReport();
References
[1]http://www.coderanch.com/t/62982/open-source/Jasper-Report-Text-Exporter
[2] http://www.cepeu.edu.py/LIBROS_ELECTRONICOS_3/lpcu089%20-%2001.pdf
[3] http://chuwiki.chuidiang.org/index.php?title=Ejemplo_b%C3%A1sico_con_Jasper_Report
Monday, March 14, 2011
PostgreSql Date Format
If you need change date format into postgres database, need execute next commands
SET DATESTYLE TO Postgres,US;
or
SET DATESTYLE TO iso,dmy --dd/mm/yyyy
this setting apply to current session; for permanent change modify postgresq.conf, section Locale and Formatting:
datestyle = 'iso, mdy'
Now you need reestart database
#service postgresql restart
Reload config settings without restarting database
If you are making modifications to the file postgresql.conf (or similar), and you want to new settings to take effect without needing to restart the entire database, there are two ways to accomplish this.
Option 1: From the command-line shell
#su - postgres
$/usr/bin/pg_ctl reload
Option 2: Using SQL
SELECT pg_reload_conf();
Using either option will not interrupt any active queries or connections to the database.
References:
[1] SET http://www.commandprompt.com/ppbook/r28464
[2] http://heatware.net/databases/postgresql-reload-config-without-restarting/
SET DATESTYLE TO Postgres,US;
or
SET DATESTYLE TO iso,dmy --dd/mm/yyyy
this setting apply to current session; for permanent change modify postgresq.conf, section Locale and Formatting:
datestyle = 'iso, mdy'
Now you need reestart database
#service postgresql restart
Reload config settings without restarting database
If you are making modifications to the file postgresql.conf (or similar), and you want to new settings to take effect without needing to restart the entire database, there are two ways to accomplish this.
Option 1: From the command-line shell
#su - postgres
$/usr/bin/pg_ctl reload
Option 2: Using SQL
SELECT pg_reload_conf();
Using either option will not interrupt any active queries or connections to the database.
References:
[1] SET http://www.commandprompt.com/ppbook/r28464
[2] http://heatware.net/databases/postgresql-reload-config-without-restarting/
Friday, March 11, 2011
Salesforce::ApexPage::Retrieve remote data
Http Request
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http.htm
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm
Xml DOM
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_xml_dom_xmlnode.htm
Test Methods and Apex Callouts
http://wiki.developerforce.com/index.php/An_Introduction_to_Apex_Code_Test_Methods
references
[1] On Line Json Viewer http://jsonviewer.stack.hu/
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http.htm
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm
Xml DOM
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_xml_dom_xmlnode.htm
Test Methods and Apex Callouts
http://wiki.developerforce.com/index.php/An_Introduction_to_Apex_Code_Test_Methods
references
[1] On Line Json Viewer http://jsonviewer.stack.hu/
Thursday, March 10, 2011
AFPs y EsSalud
Averigüe si está afiliado al Sistema Privado de Pensiones (SPP)
http://www.sbs.gob.pe/0/modulos/JER/JER_Interna.aspx?ARE=0&PFL=1&JER=250
https://www2.sbs.gob.pe/afiliados/paginas/Consulta.aspx
EsSalud
http://ww4.essalud.gob.pe:7777/acredita/
https://dondemeatiendo.essalud.gob.pe
Reniec (Número y Nombre solamente)
https://portaladminusuarios.reniec.gob.pe/validacionweb/index.html
Sunat (padron_reducido_ruc.zip) ~ 280M
https://www.sunat.gob.pe/descargaPRR/mrc137_padron_reducido.html
Monday, March 07, 2011
Saturday, March 05, 2011
Postgres Backup CentOS
#su postgres
$ pg_dump -Ft mydb > db.tar
$ pg_restore -d newdb db.tar
References:
[1]http://linux.die.net/man/1/pg_dump
[2]http://linux.die.net/man/1/pg_restore
$ pg_dump -Ft mydb > db.tar
$ pg_restore -d newdb db.tar
References:
[1]http://linux.die.net/man/1/pg_dump
[2]http://linux.die.net/man/1/pg_restore
Tuesday, March 01, 2011
Como importar::referencias
Averiguar subpartida nacional (partida arancelaria)
http://www.siicex.gob.pe/siicex/portal5ES.asp?_page_=234.00000
http://www.aduanet.gob.pe/itarancel/arancelS01Alias
Luego en la misma pagina
http://www.aduanet.gob.pe/itarancel/arancelS01Alias
ingresar el codigo y saldrán los aranceles a pagar
mas referencias:
http://www.pymex.pe/emprendedores/tramites/4857-importacion-definitiva-aduanera.html
http://soloempresas.ning.com/profiles/blogs/despacho-simplificado-de?xg_source=activity
http://www.siicex.gob.pe/siicex/portal5ES.asp?_page_=234.00000
http://www.aduanet.gob.pe/itarancel/arancelS01Alias
Luego en la misma pagina
http://www.aduanet.gob.pe/itarancel/arancelS01Alias
ingresar el codigo y saldrán los aranceles a pagar
mas referencias:
http://www.pymex.pe/emprendedores/tramites/4857-importacion-definitiva-aduanera.html
http://soloempresas.ning.com/profiles/blogs/despacho-simplificado-de?xg_source=activity
Saturday, February 26, 2011
Friday, February 25, 2011
Thursday, February 24, 2011
Tuesday, February 22, 2011
Monday, February 21, 2011
Salesforce::ApexPage::Retrieve data from cross domain
Calling a REST Web Service (JSON) with Apex
http://blog.jeffdouglas.com/2010/01/06/calling-a-json-rest-web-service-with-apex/
Related:
[1] Passing parameters to VFP
http://www.forcetree.com/2009/06/passing-parameters-to-visualforce-page.html
http://blog.jeffdouglas.com/2010/01/06/calling-a-json-rest-web-service-with-apex/
Related:
[1] Passing parameters to VFP
http://www.forcetree.com/2009/06/passing-parameters-to-visualforce-page.html
Friday, February 18, 2011
Thursday, February 17, 2011
Wireless Metrics
dBm is defined as power ratio in decibel (dB) referenced to one milliwatt (mW). It is an abbreviation for dB with respect to 1 mW and the "m" in dBm stands for milliwatt.
dBm is different from dB. dBm represents absolute power, whereas dB is a ratio of two values and is used to represent gain or attenuation. For example, 3 dBm means 2 mW, and 3 dB means a gain of 2. Similarly, -3 dBm means 0.5 mW, whereas -3 dB means attenuation of 2.
The formula to calculate dBm from mW is:
dBm = 10 log10( P )
1mW
Table of dBm and mW
http://www.guatewireless.org/internetworking/redes/wireless/tabla-de-relacion-entre-dbm-y-potencia-de-transmision-wlan/
dBm is different from dB. dBm represents absolute power, whereas dB is a ratio of two values and is used to represent gain or attenuation. For example, 3 dBm means 2 mW, and 3 dB means a gain of 2. Similarly, -3 dBm means 0.5 mW, whereas -3 dB means attenuation of 2.
The formula to calculate dBm from mW is:
dBm = 10 log10( P )
1mW
Table of dBm and mW
http://www.guatewireless.org/internetworking/redes/wireless/tabla-de-relacion-entre-dbm-y-potencia-de-transmision-wlan/
Wednesday, February 16, 2011
Salesforce Apexpages jQuery
References:
[1]
http://code.google.com/apis/libraries/devguide.html
[2] jQuery UI for Salesforce
http://www.titaniainc.com/ui-enhancements/jquery-enhanced-components-release/
[3] Dependent Multilevel Selectlists
http://blog.jeffdouglas.com/2008/11/25/dependent-multilevel-selectlists/
[4] Salesforce Form Validation Enhanced
http://th3silverlining.com/2010/03/02/visualforce-form-validation-enhanced/
[5] Make select list with ApexClass
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectList.htm
[1]
http://code.google.com/apis/libraries/devguide.html
[2] jQuery UI for Salesforce
http://www.titaniainc.com/ui-enhancements/jquery-enhanced-components-release/
[3] Dependent Multilevel Selectlists
http://blog.jeffdouglas.com/2008/11/25/dependent-multilevel-selectlists/
[4] Salesforce Form Validation Enhanced
http://th3silverlining.com/2010/03/02/visualforce-form-validation-enhanced/
[5] Make select list with ApexClass
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectList.htm
Salesforce Apexpages Styles
Debugging Visualforce Pages with custom Styles for UI compatibility
http://www.forcetree.com/2010_06_01_archive.html
http://www.forcetree.com/2010_06_01_archive.html
Subscribe to:
Posts (Atom)
-
Resources: [1] Hela https://ome.grc.nia.nih.gov/iicbu2008/hela/index.html
-
en inglés se llama “A potentially dangerous Request.Form value was detected from the client”. varias páginas indican dos cosas: 1. agrega...
-
mas plugins http://devsnippets.com/reviews/using-jquery-to-style-design-elements-20-impressive-plugins.html http://www.extjs.com/deploy/dev/...
Odoo 17 - Custom adds
[1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal