Saturday, August 09, 2008
 Saturday, July 05, 2008

Business lunch

Photos taken 2008 July 01

07012008115.jpg

07012008115.jpg

07012008115.jpg

07012008115.jpg

07012008115.jpg

#    Comments [0] |
 Friday, May 02, 2008

Opening right ports, or how to know what ports to open to access a remote service.

Today I wanted to make work the VMWare Remote Console from another computer, up to now we accessed the VMs running in VMWare server  right from the server console.

The first issue we had when trying opening the VM was that hostname couldn't be resolved, I googled the exact error text and that send right to the VMWare troubleshooting page so I fixed it adding an entry to the /etc/host file on my windows system.

The next stop was an error saying that remote party didn't respond properly in time, this is of course a connection timeout most likely a firewall problem. I completely deactivated the firewall at the server and then ran the remote console again just to make sure, when it worked I used task manager to see what PID (Process ID) has the console, writed the number down.

Using netstat -n -o I got a list of the connections from my computer whatched for all PIDs and matching my number I saw the services numbers where 8333  and 902, since 8333 was used several times and it also was a parameter of the connection I opened that alone first, since it didn't work then I added 902, armed the firewall again and thats it.

Hope this helps

#    Comments [0] |
 Thursday, April 17, 2008

News in MSTSC on Vista SP1, or how to mess with someone who uses mstsc

For unknown reasons, now to use mstsc (Microsoft terminal services client) if you wanted to connect to a remote computer's console (session 0) you used the command

mstsc /console

but now you have to use the /admin switch.

Why? why don't you at least warn me on this?

Maybe there will be the answer...

http://blogs.msdn.com/nickmac/archive/2007/11/28/mstsc-console-switch-in-windows-server-2008-and-windows-vista-sp1.aspx

#    Comments [1] |
 Tuesday, November 20, 2007

Generando cualquier cosa

En cualquier momento que hay que hacer codigo repetido es un buen momento para generar.

Hoy la tarea era escribir un codigo de esas caracteristicas. Lo que tenia que hacer era un codigo que llene propiedades de un arreglo, ese codigo seria estatico, o sea el valor de los elementos del arreglo no cambian.

Mas precisamente cargar dos arreglos, con datos que podia sacar de una base de datos con un query, 105 filas, daban ganas de generar.

Cualquier cosa para generar sirve, hasta un programa de consola de C# yo use un generador que tenia a mano y genere en media hora 400 lineas de codigo "error prone", claro que la generacion duro milisegundos, pero hay que tener en cuenta desde el tiempo en que empezas a escribir el query de la base de datos hasta el tiempo que realmente el codigo generado esta listo para usar.

Otra ventaja que le encuentro personalmente es que es mas divertido escribir el codigo generador, que escribir 105 veces 3 lineas "parecidas" de texto:

        while (dr.Read())
        {
            %>
me.InitialLocation[<%= item %>] = <%= dr.GetInt32(0).ToString() %>;
me.FinalLocation[<%= item %>] = <%= dr.GetInt32(1).ToString() %>;
me.IsValid[<%= item++ %>] = true;

            <%
        }

#    Comments [1] |
 Monday, November 05, 2007

Botnia

Ahora ya esta online la pagina de Botnia a ver si la visitan.

#    Comments [0] |
 Tuesday, September 25, 2007

Multiconfiguraciones en VS.NET

El combo de configuracion en Visual Studio que dice Debug/Release puede ser utilizado para muchas cosas...

Aca hay un post que explica como usar distintos archivos web.config para un proyecto y cambiarlo con este combo, yo lo voy a probar

http://www.hanselman.com/blog/ManagingMultipleConfigurationFileEnvironmentsWithPreBuildEvents.aspx

Enjoy

#    Comments [0] |
 Wednesday, August 22, 2007

Cuatro cuatros

Lei una vez que con cuatro cuatros se pueden formar los numeros del 1 al 100, o sea:

1 = 4/4 * 4/4;
2 = 4/4 + 4/4;
3 = sqrt(4*4) - 4/4
4 = 4! - (4*4) - 4
....

Las reglas son usar solo algunas operaciones mas 4 veces el digito 4. suma, resta multiplicacion, potencias, raices cuadradas, la forma y la cantidad de veces que quieras..

Aqui muestra del 0 al 116 como se calculan, vean el 27 o el 73... yummi

http://www.wheels.org/math/44s.html

#    Comments [0] |