Wednesday, September 22, 2010

Spring.NET NHibernate Dynamic ConnectionString

Configuration cfg = new
Configuration().Configure("hibernate.cfg.xml");
cfg.SetProperty("connection.connection_string", "Data
Source=MI_BASE;User ID=ID_USUARIO; Password=PASS_USUARIO");



References
[1] The Spring.NET Framework
http://www.springframework.net/doc-latest/reference/html/index.html
[2] http://gist.github.com/432083 (src-best)
[3] Changing your connection string at runtime with Spring.Net (src)
http://blog.bennymichielsen.be/2009/03/24/changing-your-connection-string-at-runtime-with-spring-net/

[4]How to change a connection string at runtime? (src)
http://forum.springframework.net/showthread.php?t=3390&page=3

[5] Authentication, Impersonation, and Dynamic NHibernate Connection Strings
http://jasondentler.com/blog/2009/11/authentication-impersonation-and-dynamic-nhibernate-connection-strings/
[6] Setting and retrieving the database connectionstring in nHibernate
http://codebetter.com/blogs/peter.van.ooijen/archive/2008/03/07/setting-and-retrieving-the-database-connectionstring-in-nhibernate.aspx

Chat On Line

http://www.chatango.com/

Friday, September 17, 2010

Thursday, September 09, 2010

Funny links

http://www.pixyard.com/_Huge_dogs
http://smilepanic.com/funny-animals-8#67
http://www.weirdexistence.com/very-attractive-female-cartoons/
Hello World
http://artsyspot.com/hello-world/

http://www.funfani.com

http://www.weirdexistence.com/very-naughty-animals/
Bichos pelo mundo
http://g1.globo.com/mundo/fotos/2010/04/bichos-pelo-mundo.html

ReportViewer with ASP.NET/ASP.NET MVC in Local Mode

Source code of original tutorial How to create local reports RDLC featuring barcode images in ASP.NET[0] on [1].
And adapted for ASP.NET MVC on [2]





Reference
[0] http://neodynamic.com/ND/FaqsTipsTricks.aspx?tabid=66&prodid=1&sid=66#2
[1] ReportViewer ASP.NET Sample Local mode http://www.megaupload.com/?d=RMP2MMI1
[2] ReportViewer ASP.NET MVC Sample Local mode http://www.megaupload.com/?d=U4SCTYDG
[3]Understanding ASP.NET View State http://msdn.microsoft.com/en-us/library/ms972976.aspx
[4] Creating Charts Using Aspnet ReportViewer Control http://www.highoncoding.com/Articles/339_Creating_Charts_Using_Aspnet_ReportViewer_Control.aspx
[5] Microsoft Report Viewer Redistributable 2008 http://www.microsoft.com/downloads/en/details.aspx?familyid=cc96c246-61e5-4d9e-bb5f-416d75a1b9ef&displaylang=en

[6] Leveraging the ASP.NET ReportViewer Control http://www.devproconnections.com/article/aspnet2/leveraging-the-asp-net-reportviewer-control.aspx

Thursday, September 02, 2010

Flash tools freeware

Slides/Media Slide Show
http://www.flashxml.net/
mp3 player
http://www.colewebs.org/spip.php?article24

Flash Animations with XML
http://www.flashcomponents.net/components/free_flash_files.html

Tuesday, August 31, 2010

Php Cms Resources

CMS without database
1) 
http://get-simple.info/download/  (best for me)
     Themes http://get-simple.info/extend/all_themes.php
2) Cms from Scratch http://cmsfromscratch.com/user-guide/

https://code.google.com/archive/p/cmsfromscratch/downloads (2nd)

CMS with database
1) Drupal http://drupal.org/project
1.1) Languaje http://localize.drupal.org/translate/languages

CMS Related Resources
[1]CMS without database
http://www.makeuseof.com/tag/gpeasy-simple-cms-no-database/
http://forums.digitalpoint.com/showthread.php?t=1073287
[2] Build your CMS http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/


Plugins
[3] Rich text editor http://ckeditor.com/download

More resources:
https://www.cmscritic.com/top-10-simple-cms/

Windows XP/Linux Boot Desde USB

Windows XP USB Portable

FuƩ creado con el PE-Builder, ocupa ~ 150 megabytes
Secuencia:
- Seleccionar como opciĆ³n de booteo el dispositivo USB.
- Descargar paquete [2],[3],[4]
- Formatear USB/Pendrive con HP USB Disk Storage format Tool(HPUSBFW.EXE) en FAT
- Copiar todos los archivos a nuestro pendrive
- Reiniciar

Linux USB Portable

Secuencia:
- Descargar http://unetbootin.sourceforge.net/ (Win/Linux)
- Ejecutar UNetbootin con opciĆ³n Disk image para copiar .ISO al USB
- Ejecutar bootinst.bat/bootinst.sh segĆŗn donde lo estes creando


Crear instalador Windows XP/Vista/7 Desde USB
WinToFlash[1] inicia un asistente que te ayudarĆ” a extraer el contenido de una ventana de instalaciĆ³n de CD o DVD y lo transfiere a una unidad USB para convertirse en un sustituto de arranque para la unidad Ć³ptica.


Referencias:
[1]http://wintoflash.com/download/es/
[2] http://rapidshare.com/files/79488093/WinXP-USB-www.DraxOfAvalon.com.rar
[3]http://www.x-caleta.com/software/20557-windows-xp-usb-portable-espasol.html
[4] http://rapidshare.com/files/137088930/Windows_XP_USB_Flash_Vagoneta_Edition.rar
Usar PeToUSB.exe, Quick format, Enable File Copy.

Friday, August 20, 2010

Cross-Domain & jsonp (java struts, php, asp.net mvc, otros )

Cross-Domain Proxy
En el caso de Ajax, por seguridad sĆ³lo se permite acceder al mismo dominio origen de la pĆ”gina web que realiza la peticiĆ³n. Si se necesita acceder a otros servicios localizados en otros dominios, se instala un Cross-Domain proxy en el dominio origen que recibe las peticiones ajax y las reenvia a los dominios externos.

Con jsonp es posible la llamada cross-domain, debido a que no es una llamada ajax sino una carga de un script js completo que lanza una funciĆ³n que definimos en la url y que actĆŗa como callback.

Mientras que por motivos de seguridad es lĆ³gico que Ajax no funcione en dominios distintos al que lanza la web; con esta tĆ©cnica JSON con Padding se genera un archivo JSON dinĆ”micamente dejandolo abierto en el script que lo crea. Una variable que podemos definir nosotros mismos en la url serĆ” colocada antes del objeto Json, asĆ­ al crear el script Json decidimos que variable "callback" usar.


Referencias

[1] jQuery y Strust
http://blog.pontt.com/json-con-java/generar-respuesta-en-java-struts-para-getjson-de-jquery/
[2] jQuery y php http://www.9lessons.info/2009/12/display-cross-domain-data-json-callback.html
[3] jQuery y Asp.Net Mvc (cross-domain JSON to ASP.NET MVC with jQuery)
http://www.integratedwebsystems.com/2010/07/cross-domain-jsonp-using-asp-net-mvc-and-jquery/
[4] cross-domain JSON to ASP.NET MVC with jQuery II
http://stackoverflow.com/questions/2022878/posting-cross-domain-json-to-asp-net-with-jquery
[5] Genericos(muy buenos)
http://www.ibm.com/developerworks/library/wa-aj-jsonp1/
http://ox.no/posts/ajast-cross-domain-rest-calls-using-json-injection
[6] Json to JsonP (easy)
http://www.codeproject.com/KB/aspnet/JSONToJSONP.aspx
http://www.codedigest.com/Articles/jQuery/310_Calling_a_WebService_using_jQuery_in_ASPNet.aspx
[7] Cross-site data retrieval using JSONP http://www.stpe.se/2008/10/cross-site-data-retrieval-using-jsonp/

Thursday, August 12, 2010

Traductores offline pdf

Systran Premium Translator 6.0(52 idiomas, traduce archivos pdf)
http://www.megaupload.com/?d=ZZGWBBP1
http://www.megaupload.com/?d=A0L0AB3P
http://www.megaupload.com/?d=JYZ034B0
http://www.megaupload.com/?d=ZC9SC0MQ
http://www.megaupload.com/?d=BK06MWND
http://www.megaupload.com/?d=G6A68ZUY
http://www.megaupload.com/?d=UDPG3S6P
http://www.megaupload.com/?d=2GCNMLO7
http://www.megaupload.com/?d=C7SY8H9T
http://www.megaupload.com/?d=P8RJ2OKX
http://www.megaupload.com/?d=X5IXRC3M

Friday, August 06, 2010

Event Scheduler - Cron Tables (Crontab) in Suse-openSUSE

Cron is the Unix/Linux event scheduler.

Features:
Execute on background: Cron is the daemon to execute scheduled commands. It's actions are determined by a Cron Table or "crontab".

Who Can Access Cron Tables: There are two files these are /etc/cron.allow and /etc/cron.deny.


A Look at a Cron Table Entry:

* * * * * cp /home/myname/source/* /home/myname/destination (execute every minutes)

The Timing String:

Minutes: 0 -> 59
Hours: 0 -> 23
Days of month:1 -> 31
Months: 1 -> 12 or jan -> dec
Days of week: 0 -> 7 or sun -> sun

15 6 * * * mpg123 /home/myname/Music/"When She's Gone.mp3" (play mp3 at 6.15 a.m every days)

Editing the Cron Table: crontab -e
Viewing and Purging Cron Jobs: crontab -l
Remove all your cron tasks you issue this command: crontab -r

References:
http://www.linuxtotal.com.mx/index.php?cont=info_admon_006
http://www.nagios.org/documentation

Thursday, July 29, 2010

Instalar conexiĆ³n a escritorio remoto (Remote Desktop Connection)

Generalmente se encuentra en Inicio/Programas/Accesorios/Comunicaciones; sino extuviere entonces deemos buscarlo el ejecutable es mstsc.exe

Sino estuviera en disco entonces procedemos a instalar la aplicaciĆ³n siguiendo las referencias debajo.

Referencias:
Windows XP Remote Desktop Connection software
http://www.microsoft.com/windowsxp/downloads/tools/rdclientdl.mspx
http://www.microsoft.com/downloads/en/confirmation.aspx?familyId=80111f21-d48d-426e-96c2-08aa2bd23a49&displayLang=en

Monday, July 26, 2010

Traducir pdf en linea ( Translate pdf file online)

Paso 1:
Click en el siguiente link http://viewer.zoho.com/home.do

Paso 2: Click en Browse/Explorar y seleccionar el fichero
Paso 3: Una vez seleccinado el archivo, click en View/Ver
Zobyhost cargarĆ” el archivo y luego en la barra de direcciones debe aparecer algo como lo siguiente http://viewer.zoho.com/docs/vyAdi.
seleccionar la direccion y copiar(click en la direcciĆ³n+click derecho luego opciĆ³n copiar)
Paso 4: Click en la siguiente direcciĆ³n http://www.google.com.pe/language_tools?hl=es
Paso 5: En el casillero que titula "traducir una pagina web" borrar el contenido y click derecho luego opciĆ³n pegar.
Paso 6: Finalmente click en translate/traducir

Thursday, July 15, 2010

Winamp Gracenote tools not installed?

The MusicID libraries aren't installed on Winamp Lite, only for Full version.

First:
Download dll files
Second:
Register dll files
regsvr32 "C:\Archivos de programa\Winamp\Plugins\Gracenote\CddbMusicIDWinamp.dll"
regsvr32 "C:\Archivos de programa\Winamp\Plugins\Gracenote\cddbcontrolwinamp.dll"

Resources:
dll files http://www.megaupload.com/?d=EQOWXQPC

Monday, July 12, 2010

Power Line Communication (Dispositivos)

Power Line Communication
http://listado.mercadolibre.com.pe/Adaptador-Plc-Ethernet

Mikrotik

Software
http://www.taringa.net/posts/downloads/1679987/Mikrotik-firmware-3_2.html

Tutoriales
http://mum.mikrotik.com/presentations/AR09/Rediamerica.pdf
http://wiki.mikrotik.com/wiki/Dude_usage_notes

Friday, July 09, 2010

Violentar Windows XP SP2

1. Inicio, Ejecutar, regedit
2. Localizar HKEY_LOCAL_MACHINE/Sofware/Microsoft/Windows NT/CUrrentVersion/WPAEvents
3. Editar, eliminar 'fd'
4. Cerrar regedit.
5. Inicio, Ejecutar, oobe/msoobe /a
6. Seleccionar cambiar la clave del producto y luego mƩtodo del telefono.
7. Introducir clave valida por ejmplo: GDFJC-Y292J-R332C-MXRDX-XT6GY
8. Aceptar y reiniciar
9. Inicio, Ejecutar, oobe/msoobe /a
10. Eres un delincuente informƔtico mas


Eliminar ampay de copia pirata(estrellita) via script

----------------------VilentarXpSp2-2.cmd-------------------------------------
taskkill /im wgatray.exe
Del c:\Windows\System32\WgaTray.exe
Del c:\Windows\System32\dllcache\WgaTray.exe
echo Windows Registry Editor Version 5.00 >%temp%\WGANFIX.REG
echo. >>%temp%\WGANFIX.REG
echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\WgaLogon] >>%temp%\WGANFIX.REG
regedit /s %temp%\WGANFIX.REG
del %temp%\WGANFIX.REG
del c:\windows\system32\wgalogon.dll
del c:\windows\system32\dllcache\wgalogon.dll

Windows 10 - Jun-2018
QJNXR-YD97Q-K7WH4-RYWQ8-6MT6Y

Tuesday, July 06, 2010

ConfiguraciĆ³n conector DB15 para Monitor LG 500G

No siempre todos los fabricantes siguen el standard, asi q despues de 8hr de jugar con el cautil logrĆ© encontrar esta configuraciĆ³n.

Rosado (en el tuyo rojo) = pin 1
Verde = pin 2
Azul = pin 3
Tierra = pin 4
Negro delgado = pin 5

Tierra = pin 6
Morado = pin 9

Tierra = pin 11 (este es el que va al zocalo)
Anaranjado = pin 12
Transparenete/Gris = pin 13
Amarillo = pin 14
Blanco = pin 15

C++ IDE

http://zinjai.sourceforge.net/

Tuesday, June 22, 2010

Exploits documentaciĆ³n

Stack overflow referencia prƔctica
http://www.elgaragevirtual.com.ar/2009/05/exploits-y-stack-overflows-en-windows.html

Referencias
Estadisticas desde ESET NOD32
http://blogs.eset-la.com/laboratorio/2010/04/05/problemas-paquetes-vulnerabilidades-exploits/

Aurora en acciĆ³n
http://blog.metasploit.com/2010/01/reproducing-aurora-ie-exploit.html


Testeados
http://www.clshack.it/es/guida-alluso-di-metasploit.html

Recursos
http://www.dragonjar.org/reemplazo-de-milw0rm.xhtml
http://sebug.net/
http://www.pentester.es/2009/11/por-que-no-consigo-shell-con-mi.html

Saturday, June 19, 2010

Linux wireless LAN support

http://linux-wless.passys.nl/query_hostif.php?hostif=USB

TL-WN722N

Driver compatible bajo Linux
http://linuxwireless.org/en/users/Drivers/ath9k_htc
http://linuxwireless.org/en/users/Drivers/ath9k_htc/devices TL-WN721N (Sin adap. externo)

Notas:
El adaptador TP-WN722N tiene un "hermanito", el WN721N. Los dos son reconocidos como "man: 0cf3 - dev: 9271".

Wednesday, June 16, 2010

Security tools

Recovery Tools
http://www.nirsoft.net
http://www.nirsoft.net/packages/passrec.zip

Cross-site data retrieval

Using jQuery for load webService on Same domain
http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/

Using Proxy
http://www.west-wind.com/weblog/posts/324917.aspx

Flicker service
http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=jQueryAjaxRESTfulWebServiceJSON

C++ USB

http://www.alanmacek.com/usb/

Tuesday, June 15, 2010

Links necesarios

pagina blancas directo
http://paginasblancas.com.pe/resultados.asp?t=225151

guid
http://createguid.com/

firefox personal addon
http://foro.elhacker.net/programacion_general/howto_crear_extensiones_para_firefox-t127159.0.html

Firefox Developer

Addon make new addons
http://ted.mielczarek.org/code/mozilla/extensiondev/

How To Disable ‘will not be installed because it does not provide secure updates’ Warning in Firefox 3



By default, Firefox 3 prevents users from installing any extensions that do not offer a secure connection for automatic updates. This prevents users from being victims of hijacked update URLs.

But for developers or people installing extensions they know they can trust, it is a pain.

Luckily it is easily disabled by:

1. Enter ‘about:config’ into address bar, hit go
2. Right click somewhere in the list of keys below. Select New->Boolean
3. Enter ‘ extensions.checkUpdateSecurity ‘ as the name
4. Select false as the value
5. Reattempt installation of your plugin.

Ran into this problem when installing Extension Developer’s Extension while working on Read It Later.

Found the solution at MozillaZine (via Google)

Saturday, June 12, 2010

DNS IP Tools

Dns verifyier
https://www.dns-oarc.net/oarc/services/dnsentropy

IP Information Country/City/Map and more...
http://whatismyipaddress.com/ip-lookup

IP tools
http://www.iptools.com/

TCPView Similarly
http://www.nirsoft.net/utils/cports.html

InformaciĆ³n de host

show variables like 'host%'

Tuesday, June 08, 2010

ASP.NET HttpException: Maximum request length exceeded

Limite por defecto para uploads en Web.Config es 4096 (4 megabytes)

Las siguientes lineas cambian a 20MB

<configuration>
...
<system.web>
...
<httpRuntime maxRequestLength="20480" />
</system.web>
</configuration>


Otras Configuraciones

<httpRuntime executionTimeout="300" maxRequestLength="51200"/>
<httpRuntime
executionTimeout="1200"
maxRequestLength="102400"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />

Nota:
maxRequestLength<=1048576 (1 GB) para .NET Framework 1.0/1.1 y
maxRequestLength<=2097151 (2 GB) for .NET Framework 2.0.

Referencias
FileUpEE - Large Uploads in ASP.NET:
http://support.softartisans.com/docs/fileupeev4/doc/dotnet/aspdotnet_largeuploads.asp

FileUpSE - large uploads in ASP.NET:
http://support.softartisans.com/docs/fileupv4/prog_g_dotnet_largeuploads.htm

Thursday, June 03, 2010

Modern Talking

http://www.taringa.net/posts/musica/1518848/Discografia-de-Modern-Talking.html

Monday, May 24, 2010

SyntaxHighlighter on Web & Blogger

1. Download the latest version
2. Unrar to a temp folder. ex: c:\temp\syntaxhighlighter
3. Transfer the folders (Scripts and Styles) to a web server. I use google code to host my files.
4. Open blogger.com and sign in.
5. Goto "Template" and choose "Classic" layout.
6. Goto Edit Html.
7. After <head> insert the following:

<link href="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Styles/SyntaxHighlighter.css" type="text/css" rel="stylesheet" /> </link>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shCore.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushCSharp.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushXml.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushCss.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushJScript.js"></script>
<script language="javascript" src="http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/shBrushSql.js"></script>

8. And before </body> insert:

<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = 'http://mortenlyhr.googlecode.com/svn/trunk/SyntaxHighlighter/Scripts/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>

or
<script language='javascript'>
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>

Fuente:
http://morten.lyhr.dk/2007/12/how-to-get-syntax-highlighting-in.html
http://code.google.com/p/syntaxhighlighter/w/list
for Blogger
http://yacoding.blogspot.com/2008/05/how-to-add-syntax-highlight-to-blogger.html

C# Resize image


public void ResizeImage(string OriginalFile, string NewFile, int NewWidth, int MaxHeight, bool OnlyResizeIfWider)
{
System.Drawing.Image FullsizeImage = System.Drawing.Image.FromFile(OriginalFile);

// Prevent using images internal thumbnail
FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);
FullsizeImage.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);

if (OnlyResizeIfWider)
{
if (FullsizeImage.Width <= NewWidth)
{
NewWidth = FullsizeImage.Width;
}
}

int NewHeight = FullsizeImage.Height * NewWidth / FullsizeImage.Width;
if (NewHeight > MaxHeight)
{
// Resize with height instead
NewWidth = FullsizeImage.Width * MaxHeight / FullsizeImage.Height;
NewHeight = MaxHeight;
}

System.Drawing.Image NewImage = FullsizeImage.GetThumbnailImage(NewWidth, NewHeight, null, IntPtr.Zero);

// Clear handle to original file so that we can overwrite it if necessary
FullsizeImage.Dispose();

// Save resized picture
NewImage.Save(NewFile);
}


Resources
=========
C#: Resize An Image While Maintaining Aspect Ratio and Maximum Height

http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing

Sunday, May 23, 2010

Encriptar/Desencriptar texto

http://online.arredemo.org/codificar/

Lugares interesantes

Correo anonimo
http://superpatanegra.com/correoanonimo/index.php
Invertir teto
http://generadores.arredemo.org/girartexto/
flv player
http://superpatanegra.com/banners/index-video.php
http://superpatanegra.com/textoaimagen/image.php
email a imagen
http://superpatanegra.com/email/

Saturday, May 22, 2010

Recovery Password

http://mediakey.dk/~cc/howto-how-to-reset-the-mysql-root-password/

Targetas de crƩdito

Bancos
http://en.wikipedia.org/wiki/List_of_Bank_Identification_Numbers

Generador de nĆŗmeros de targeta de crĆ©dito validas aleatorias
http://mediakey.dk/~cc/wp-dyn/credit-card-number-generator.php

http://www.darkcoding.net/credit-card-generator/

Genera codigo vv2
http://www.xonico.com.ar/index.php?s=CodigoCC

http://generadores.arredemo.org/ccgenerador/

Thursday, May 20, 2010

Great design and scripts

http://www.cssplay.co.uk/menus/
http://blogvecindad.com/lista-completa-de-menus-con-css-para-diseandores-web/2007/06/05
http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm
http://www.javascriptkit.com/script/cutindex16.shtml
http://www.creativeprogramming.it/blogs/wp/index.php/2009/08/19/gwt-ext-how-to-programmatically-swap-themes/#tb
http://www.daniweb.com/forums/thread127263.html

JavaScript Resources

http://www.dynamicdrive.com/dynamicindex16/
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
http://www.quizzpot.com/2009/10/combo-box-loaded-dynamically-and-remotely/

Tuesday, May 18, 2010

Erotic pictures gallery

This summary is not available. Please click here to view the post.

Friday, May 14, 2010

Restaurando VS2008

Si perdiste tus templates los puedes restaurar asi

>devenv /ResetSettings
En mi caso fue asi.
>C:\Archivos de programa\Microsoft Visual Studio 9.0\Common7\IDE>devenv /resetset
tings

Ayuda ASP.NET MVC2

http://feeds.feedburner.com/climens_aspnetmvc

NHibernate

NHibernate y localizaciĆ³n
http://codelog.climens.net/2010/03/16/nhibernate-y-localizacion/

Thursday, May 13, 2010

jQuery para iframe

http://huuah.com/jquery-and-iframe-manipulation/

Trabajando con Delegados en C#

Codigo 1
==========================================
public delegate void DelegateType(string message);


Codigo 2
==========================================

public static void Method(string message)
{
System.Console.WriteLine(message);
}

FunciĆ³n cualquiera con la misma firma que DelegateType es decir void xxx(string yyy)

Codigo 3
==========================================

DelegateType handler = Method; //Esto es posible xq DelegateType es una referencia
//a funciones con la firma void xxx(string yyy).

handler("Hello World"); //Llama a Method

Codigo 4
==========================================

public void MethodWithCallback(int param1, int param2, DelegateType callback)
{
callback("The number is: " + (param1 + param2).ToString());
}


Codigo 5
==========================================
MethodWithCallback(1, 2, handler); //Llamada enviando una referencia a Method

Codigo 6
==========================================
public void Method1(string message) { }
public void Method2(string message) { }

DelegateType d1 = Method1;
DelegateType d2 = Method2;
DelegateType d3 = Method;
DelegateType allMethodsDelegate = d1 + d2;//assigna referencia a d1 y d2
allMethodsDelegate += d3; //agrega referencia a una tercera funcion


Codigo 8
==========================================
allMethodsDelegate -= d1; //elimina d1 de la lista de referencias
DelegateType oneMethodDelegate = allMethodsDelegate - d2; //Copia todos menos d2

Codigo 9
==========================================
int invocationCount = d1.GetInvocationList().GetLength(0); //Cantidad de referencias

Codigo 10
==========================================


using System.Reflection;

namespace DemoDelegate
{
public delegate void D();

public class ComprobaciĆ³nDelegados

{

public static void Main()
{

Type t = typeof(ComprobaciĆ³nDelegados);
MethodInfo m = t.GetMethod("Metodo1");
D obj = (D) Delegate.CreateDelegate(typeof(D), m);
obj();
}



public static void Metodo1()

{ Console.WriteLine("Ejecutado MĆ©todo1"); }



public static void Metodo2(string s)

{ Console.WriteLine("Ejecutado MĆ©todo2");
}

}
}

Wednesday, May 05, 2010

Tuesday, May 04, 2010

C# Report with Images

Show images into reports on C# (ReportViewer)

Mime types

http://www.ltsw.se/knbase/internet/mime.htp

VPN Linux & Windows

Acceso telefonico a redes TELMEX
http://www.deperu.com/internetgratis/Windows_XP.htm

OpenVPN
http://www.alcancelibre.org/staticpages/index.php/openvpn-clientes-win-linux-shorewall-P2
http://peloenpecho.blogcindario.com/2008/05/00003-armando-una-vpn-cliente-servidor-con-linux.html

Friday, April 23, 2010

Grids

http://www.hasankoroglu.com/demos/flexigrid/
http://pixelco.us/blog/240-plugins-para-jquery/
http://code.google.com/p/flexigrid/
http://www.dataprix.com/blogs/magm/plugin-eglu-jquery-flexigrid-2-versi-n-01-documentaci-n
http://www.extjs.com/deploy/dev/examples/grid/grid-plugins.html
http://www.extjs.com/deploy/dev/examples/
http://www.trirand.com/blog/jqgrid/jqgrid.html

El API de Java

http://www.scribd.com/doc/2621827/Tutorial05api

Shared Library
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html

On Windows too
http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/stepbystep/step5.html
http://www.javaworld.com/javaworld/javatips/jw-javatip23.html

Load C++ LIbrary from Java
http://www.nag.co.uk/industryArticles/CallingCLibraryRoutinesfromJava.pdf
How to write shared Library
http://people.redhat.com/drepper/dsohowto.pdf

Ringtones alta calidad

http://www.zedge.net/ringtones/3-6-1/

Thursday, April 22, 2010

JavaScript Debug en IE

http://www.my-debugbar.com/wiki/CompanionJS/HomePage

Microondas

http://casaames.com/index2.php?option=com_content&task=view&id=48
http://casaames.com/index2.php?option=com_content&do_pdf=1&id=48

Wednesday, April 21, 2010

Networking Linux

Monitorizar red desde Linux, no necesarimente funciona en debian
http://www.ex-parrot.com/pdw/iftop/

$ sudo iftop -i eth0

Tuesday, April 20, 2010

Drawing

http://www.midtel.net/~imaginee/the_drawing_board.html

Friday, April 16, 2010

Servicio Web

Servicios Web libres en la red
http://www.webservicex.net/WS/CATs.aspx?CATID=12&DESC=Utilities

Implementar un WebService desde php
http://ityprogramacion.blogspot.com/2005/12/como-crear-un-web-service-en-php.html


Creando proxy apartir de un WSDL

C:\Archivos de programa\Microsoft SDKs\Windows\v6.0A\Bin>wsdl /l:cs /protocol:SOAP http://www.kusaconsultores.es/services/impuestos.php?wsdl

Utilidades en la Web

JPG a Texto
http://www.pcworld.com/article/171435-2/19_free_web_services_that_keep_saving_you_money.html

Deploying a Java Web Start Application

http://java.sun.com/docs/books/tutorial/deployment/webstart/deploying.html

Tuesday, March 30, 2010

Friday, March 26, 2010

Mobile OS and SDKs

http://en.wikipedia.org/wiki/Mobile_operating_system

http://www.forum.nokia.com/info/sw.nokia.com/id/05c63dfd-d6e9-4c0e-b185-d365e7001aeb/S60-SDK-0548-3.0-f.3.215f.zip.html

http://blog.neuronaltraining.net/?p=1117

http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/6a5af8f7-9cb6-457a-b97c-efa199171a6b

http://www.forosdeelectronica.com/f24/uso-celular-gsm-pic-pc-2730/

http://www.ozekisms.com/

http://www.ozekisms.com/p_61-it-system-interface-sms.html7&info=product-manual/index.php?ow_page_number=315

http://www.emant.com/681002.page

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...