Friday, May 14, 2010

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

Music Online

[1] HQ mp3 https://hayqbhgr.slider.kz   #2023

[2] http://entuflow.net/Cumbia-Mexicana/

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

Odoo 17 - Custom adds

    [1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal