Array.prototype.newMethod = function () {
return “this is an extended method for javascript array”;
};http://www.blogger.com/img/blank.gif
var js_array = new Array();
alert(js_array.newMethod());
references:
[1] Extend array functions http://blog.programmingsolution.net/javascript/javascript-array-extension/
[2] http://stackoverflow.com/questions/477700/array-functions-in-jquery
Wednesday, May 18, 2011
Wednesday, May 11, 2011
EMS SQL Manager configure for connect to Oracle
tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = x.x.x.x )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = ipc)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
USE_DEDICATED_SERVER = ON
USE_CMAN = TRUE
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST = x.x.x.x )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = ipc)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
USE_DEDICATED_SERVER = ON
USE_CMAN = TRUE
Tuesday, May 10, 2011
TeamViewer::Change ID after cloning
if you clone hardisk with Teamviewer is possible have same id's on many computer for regenerate ids's remove using regedit next key:
for 64 bit Windows 7:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer\VersionX
for 32 bit Windows 7:
HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\VersionX
References:
http://eatrocks.com/?p=166
for 64 bit Windows 7:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TeamViewer\VersionX
for 32 bit Windows 7:
HKEY_LOCAL_MACHINE\SOFTWARE\TeamViewer\VersionX
References:
http://eatrocks.com/?p=166
Wednesday, May 04, 2011
Quartz.Net IIS7
references:
[1] How to use IIS Manager to get Worker Processes http://blog.csdn.net/yefengmeander/archive/2010/11/08/5996291.aspx
[2] http://www.springframework.net/doc-latest/reference/html/index.html
[3]Forcing an ASP.NET Application to 'stay alive' http://www.west-wind.com/weblog/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive
[4] Scheduler for ASP.NET http://stackoverflow.com/questions/5577729/scheduler-for-asp-net
[5] Simulate a Windows Service using ASP.NET to run scheduled jobshttp://www.codeproject.com/KB/aspnet/ASPNETService.aspx
[6] The IIS 7.5 Application Warm-Up Module http://blogs.iis.net/thomad/archive/2009/10/14/now-available-the-iis-7-5-application-warm-up-module.aspx
resources:
http://quartznet.sourceforge.net/features.html
[1] How to use IIS Manager to get Worker Processes http://blog.csdn.net/yefengmeander/archive/2010/11/08/5996291.aspx
[2] http://www.springframework.net/doc-latest/reference/html/index.html
[3]Forcing an ASP.NET Application to 'stay alive' http://www.west-wind.com/weblog/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive
[4] Scheduler for ASP.NET http://stackoverflow.com/questions/5577729/scheduler-for-asp-net
[5] Simulate a Windows Service using ASP.NET to run scheduled jobshttp://www.codeproject.com/KB/aspnet/ASPNETService.aspx
[6] The IIS 7.5 Application Warm-Up Module http://blogs.iis.net/thomad/archive/2009/10/14/now-available-the-iis-7-5-application-warm-up-module.aspx
resources:
http://quartznet.sourceforge.net/features.html
Tuesday, May 03, 2011
VMWare 7.0::Snow Leopard 10.6.1-10.6.2
two comments:
first you need VMWare 7.0 and Snow Leopard iso.
second on boot: -v cpus=1 busratio=20
notes:
for active partition if not
after push F8 on boot prompt: -v -s cpus=1 busratio=20
and next you have prompt #fdisk -e /dev/rdisk0
:print --to display a list of partitions on the disk.
:flag n --n is the partition where you installed Mac OS X.
references
[1] http://cyberwarez.info/forum/showthread.php/2582692-CW-UPLOAD-MAC-OSX-Collection-2011?p=3775422&viewfull=1
[2] http://www.chw.net/foro/hackintosh-f179/887315-no-puedo-instalar-mac-os-leopard.html
[3] http://bobhood.wordpress.com/2009/06/12/installing-ideneb-1-4-under-vmware-6-5-2/
[4] http://cyberwarez.info/forum/showthread.php/2582692-CW-UPLOAD-MAC-OSX-Collection-2011?p=3775422&viewfull=1
[5] http://ayudalinux.wordpress.com/2007/02/03/instalar-macosx86-1045-sobre-vmware/
[6] OSx86 – How To install Mac OS X on VMware Server & AMD 64 http://asendure.wordpress.com/2006/10/01/osx86-how-to-install-mac-os-x-on-vmware-server-amd-64/
first you need VMWare 7.0 and Snow Leopard iso.
second on boot: -v cpus=1 busratio=20
notes:
for active partition if not
after push F8 on boot prompt: -v -s cpus=1 busratio=20
and next you have prompt #fdisk -e /dev/rdisk0
:print --to display a list of partitions on the disk.
:flag n --n is the partition where you installed Mac OS X.
references
[1] http://cyberwarez.info/forum/showthread.php/2582692-CW-UPLOAD-MAC-OSX-Collection-2011?p=3775422&viewfull=1
[2] http://www.chw.net/foro/hackintosh-f179/887315-no-puedo-instalar-mac-os-leopard.html
[3] http://bobhood.wordpress.com/2009/06/12/installing-ideneb-1-4-under-vmware-6-5-2/
[4] http://cyberwarez.info/forum/showthread.php/2582692-CW-UPLOAD-MAC-OSX-Collection-2011?p=3775422&viewfull=1
[5] http://ayudalinux.wordpress.com/2007/02/03/instalar-macosx86-1045-sobre-vmware/
[6] OSx86 – How To install Mac OS X on VMware Server & AMD 64 http://asendure.wordpress.com/2006/10/01/osx86-how-to-install-mac-os-x-on-vmware-server-amd-64/
Friday, April 29, 2011
Linux Fonts
Step 1: Download fonts from [1]
Step 2: unzip and copy to default fonts path
$cp -r /home/user/Desktop/Downloads/fontfolder /usr/share/fonts/
Step 3: Update fonts cache
$fc-cache /usr/share/fonts/fontfolder/
Resources:
[1] fonts http://www.portalplanetasedna.com.ar/fuentes1.htm
Step 2: unzip and copy to default fonts path
$cp -r /home/user/Desktop/Downloads/fontfolder /usr/share/fonts/
Step 3: Update fonts cache
$fc-cache /usr/share/fonts/fontfolder/
Resources:
[1] fonts http://www.portalplanetasedna.com.ar/fuentes1.htm
Thursday, April 28, 2011
Ghost::How to Clone Partition from Intel to Amd processor.
boot from windows xp cdrom, and select install(F8) and next repair(After copying the installation data to the drive, you should boot once again from the cdrom - not from your harddisk)
on second boot select Repair on first screen, login and execute next commands.
cd c:\windows\system32\drivers
c:\windows\system32\drivers>del intelide.sys
c:\windows\system32\drivers>del intelppm.sys
exit and wait reboot
Note:
I try delete files after clone(using external boot cd) and reset then works fine.
References:
[1]http://www.cpuhack.com/wordpress/?p=142
[2]using register mode http://support.microsoft.com/kb/314082
on second boot select Repair on first screen, login and execute next commands.
cd c:\windows\system32\drivers
c:\windows\system32\drivers>del intelide.sys
c:\windows\system32\drivers>del intelppm.sys
exit and wait reboot
Note:
I try delete files after clone(using external boot cd) and reset then works fine.
References:
[1]http://www.cpuhack.com/wordpress/?p=142
[2]using register mode http://support.microsoft.com/kb/314082
ASP.NET::The timeout period
The timeout period elapsed prior to completion of the operation or the server is not responding.
try below options, set command timeout parameter to 0. It will execute till the end. By default it will timeout in 30 secs.
Using Code:
sqlCommand.CommandTimeout = 0;
Using Connection String: Check the timeout in connection string, try setting it to max...
data source="ServerName;initial catalog=DataBaseName;uid=ID;pwd=Password;Connect Timeout=120"
Using Sql Server:On the SQL Server also you can set timeout of a query. Check with SQL Server DBA's to know the Query time out set on servers.
Using IIS: On IIS also you have timeout setting. In IIS --> Website tab --> Connection time out box . Set the max timeout value (in secs) IIS should maintain idle connection .
check all these possibilities
try below options, set command timeout parameter to 0. It will execute till the end. By default it will timeout in 30 secs.
Using Code:
sqlCommand.CommandTimeout = 0;
Using Connection String: Check the timeout in connection string, try setting it to max...
data source="ServerName;initial catalog=DataBaseName;uid=ID;pwd=Password;Connect Timeout=120"
Using Sql Server:On the SQL Server also you can set timeout of a query. Check with SQL Server DBA's to know the Query time out set on servers.
Using IIS: On IIS also you have timeout setting. In IIS --> Website tab --> Connection time out box . Set the max timeout value (in secs) IIS should maintain idle connection .
check all these possibilities
Wednesday, April 27, 2011
OpenSUSE::Install JRE1.6
Step 1:Download JRE from [2]
#wget ....
Step 2: Executing installer
#chmod +x jre-6-linux-i586.bin
#./jre-6-linux-i586.bin
Step 3:Move directory to common
#mv jre1.6.0 /usr/lib/jvm
Step 4:Set new Java to "alternatives of java":
#update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0/bin/java" 1
Step 5:Verify version
#java -version
references:
[1] Instalar JAVA JRE 1.6.0 en Firefox http://www.ubuntu-es.org/node/33116
[2] JRE repository
EShttp://www.java.com/es/download/linux_manual.jsp
ENhttp://www.java.com/en/download/linux_manual.jsp
#wget ....
Step 2: Executing installer
#chmod +x jre-6-linux-i586.bin
#./jre-6-linux-i586.bin
Step 3:Move directory to common
#mv jre1.6.0 /usr/lib/jvm
Step 4:Set new Java to "alternatives of java":
#update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0/bin/java" 1
Step 5:Verify version
#java -version
references:
[1] Instalar JAVA JRE 1.6.0 en Firefox http://www.ubuntu-es.org/node/33116
[2] JRE repository
EShttp://www.java.com/es/download/linux_manual.jsp
ENhttp://www.java.com/en/download/linux_manual.jsp
Tuesday, April 26, 2011
Google Earth::Aviones en vivo
Recursos:
[1]Google Earth http://www.google.es/intl/es/earth/index.html
[2]Archivo kmz http://spamloco.net/2009/06/ver-aviones-en-vivo-con-google-earth.html
[3]Tutorial como usar archivo http://www.youtube.com/watch?v=o2LJEuCF82Q
[4]Mas archivos http://flightwise.com/flighttracking/
Monday, April 25, 2011
Web Security
Articles : How to hack a website (Basic sql injection)
http://www.ecademy.com/node.php?id=76050
references:
http://www.thc.org/thc-hydra/
http://www.ecademy.com/node.php?id=76050
references:
http://www.thc.org/thc-hydra/
Enable/Disable Firefox Cookies
on url address put about:config and search next item.
network.cookie.alwaysAcceptSessionCookies //verify value is true
References:
http://support.mozilla.com/es/kb/Habilitar%20y%20deshabilitar%20cookies
network.cookie.alwaysAcceptSessionCookies //verify value is true
References:
http://support.mozilla.com/es/kb/Habilitar%20y%20deshabilitar%20cookies
Thursday, April 21, 2011
Wednesday, April 20, 2011
Geometria Computacional
Aplicaciones
http://www.dma.fi.upm.es/docencia/segundociclo/geomcomp/aplicaciones.html
[1] Algoritmos GeomƩtricos (pt) http://www.dcc.fc.up.pt/~apt/aulas/ALGOGEO/1213/
[2] Geometria computacional (pt) https://www.ime.usp.br/~freitas/gc/
http://www.dma.fi.upm.es/docencia/segundociclo/geomcomp/aplicaciones.html
[1] Algoritmos GeomƩtricos (pt) http://www.dcc.fc.up.pt/~apt/aulas/ALGOGEO/1213/
[2] Geometria computacional (pt) https://www.ime.usp.br/~freitas/gc/
Tuesday, April 19, 2011
Postgres::Drop connections
--List all of the open connections to a given database
select * from pg_stat_activity where datname='database';
--Drop all of the open connections to a given database:
select pg_terminate_backend(procpid) from pg_stat_activity where datname='database';
--More samples
select * from pg_stat_activity where date(backend_start)='2011-04-19';
select pg_terminate_backend(procpid) from pg_stat_activity where date(backend_start)='2011-04-19';
--One sample more specific
select * from pg_stat_activity where backend_start < '2011-05-04 10:00' and waiting=false order by backend_start desc
select pg_terminate_backend(procpid) from pg_stat_activity where backend_start < '2011-05-04 10:00' and waiting=false
select pg_terminate_backend(procpid) from pg_stat_activity where backend_start < '2011-08-05 07:00' and datname='' and waiting=false
References:
http://www.postgresql.org/docs/current/static/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE
http://www.postgresql.org/docs/8.4/static/monitoring-stats.html#MONITORING-STATS-VIEWS-TABLE
select * from pg_stat_activity where datname='database';
--Drop all of the open connections to a given database:
select pg_terminate_backend(procpid) from pg_stat_activity where datname='database';
--More samples
select * from pg_stat_activity where date(backend_start)='2011-04-19';
select pg_terminate_backend(procpid) from pg_stat_activity where date(backend_start)='2011-04-19';
--One sample more specific
select * from pg_stat_activity where backend_start < '2011-05-04 10:00' and waiting=false order by backend_start desc
select pg_terminate_backend(procpid) from pg_stat_activity where backend_start < '2011-05-04 10:00' and waiting=false
select pg_terminate_backend(procpid) from pg_stat_activity where backend_start < '2011-08-05 07:00' and datname='' and waiting=false
References:
http://www.postgresql.org/docs/current/static/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL-TABLE
http://www.postgresql.org/docs/8.4/static/monitoring-stats.html#MONITORING-STATS-VIEWS-TABLE
Monday, April 18, 2011
Friday, April 15, 2011
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/...
Ubuntu Forware port 80
#!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 iptables -t nat -A PREROUTING -i eth0 -p tc...