I have made my first .Net Remoting application with Visual Studio 2003. I know Remoting has been around since the beginning of the .net framework, but for some reason I'd never used it before. Actually, now I know why I never used it, I did not quite understand what was is it useful for. But a few days ago, while working on Philippides a friend of mine (Carlitos) asked my if I was making all the communication via remoting and I said no, I was using TcpClient and NetworkStream objects in order to send messages.
At first I sent some text (csv) with the info I wanted to send to the other client. Right now I "created" my own SOAP protocol, it's just plain text sent as xml.
What I need to do is to send objects itself to the other client and I need that the receiver can understand the sent object and access its members.
Well, remoting does that for you. In my previous test I managed to send some native types as strings and integers to the server. In this example you'll see that I managed to send an object from a class I created.
So check it out! You can downloading from here or go to the post on the Sandbox ( Channel9).
Acabo de hacer mi primer aplicación .Net Remoting con Visual Studio 2003. Sé que Remoting es bastante "viejo" ya, pero por alguna razón nunca antes lo había usado. En realidad, ahora sé por qué no nunca lo usé, nunca entendí exactamente para qué me podía servir. Pero hace unos días, mientras trabajaba en el Philippides un amigo (Carlitos) me preguntó si todas las comunicaciones las hacía con Remoting y le dije que no, estaba utilizando objetos TcpClient y NetworkStream para enviar mensajes.
Al principio enviaba text (csv) con la información que quería enviar al cliente. En la actualidad utilizo un protocolo SOAP "propietario", es simplemente texto plano enviado como xml.
Lo que necesito hacer es enviar objetos mismos al otro cliente y que este último entienda el objeto y pueda acceder a sus miembros (que fea traducción).
Justamente, Remoting hace eso. En los tests anteriores había logrado enviar tipos nativos de .Net a un servidor como ser string e integers. En este ejemplo verán que pude enviar un objeto de una clase creada por mi.
Asique víchenlo! Pueden bajarlo de aquí o ir al post en el Sandbox ( Channel9).
Read Full Post
Summary only...
Some time ago I received an email from Microsoft inviting me to participate in a developing contest. I've never done that, I thought, so I entered. I created an Windows app with Visual Studio 2005 (C#) which saves encrypted password to a file. The whole idea behind it is not remember every password you have, but to remember just one, the one that opens your file. I don't know if everybody can download it cause the contest is for latin america only, but if you want the app to check it out I'll be pleased to send it to you.
Hope to read your comments about it!
Hace algún tiempo recibí un mail de Microsoft invitándome a un concurso de desarrollo. Nunca entré a uno pensé, y me metí. Cree una aplicación Windows con Visual Studio 2005 (C#) que guarda contraseñas encriptadas en un archivo. La idea es no tener que recordar todas las contraseñas que uno maneja sino que recordar solo una, la que abre el archivo. Para verla y evaluarla pueden ir a www.desarrollonet2005.com , ahí pueden bajar la mía y las de los otros participante, si la mía (YAPS, así es el nombre) le parece buena, por favor vótela, ya que el premio mayor son U$S 2000.
Espero sus comentarios!
--
http://sgomez.blogspot.com
Read Full Post
Summary only...
First post of 2006, so first of all, Happy New Year everybody!
This post is gonna be about the new generation of web sites and how new technologies like Ajax or even Flash have changed the way Internet looks and feels in a way we never've dreamed of.
The first site I want to take a look at is Gmail, they changed the way we were used to read mail. I have to say at the beginning I didn't like it, that "conversation" way of showing your emails seemed harder, but now I have to say I wish my Outlook at work worked the same way.
The Gmail site is a good example of Ajax at its best, but as a teacher at university used to say "not because you have a hammer, you'll hammer everything" (that's actually my english translation). Even though Google made a great breakthrough with GMail, their blog reader (Google Reader) is a different story. It sucks! it's the most difficult site to read, I think I used it a couple of times thinking "it's just different and I'll end up getting used to it, just like Gmail", well I didn't! and still using the simple and yet great Bloglines site.
Some other cool sites to check are Flickr, 30boxes and Gtalkr. Gtalkr is a flash made site with the best of all worlds, it's like live from Microsoft but waaay cooler and with more stuff.
People in Uruguay!, since all the maps sites on the Internet don't care about us, there's a couple of guys developing a very cool site with maps from Uruguay. You can drag around the maps and get your way through the cities. It's not online yet but check it out soon at www.mapio.info.
¡Primer post de 2006, por lo que antes que nada, Feliz Año Nuevo para todos! Este post va a ser sobre la nueva generación de los sitios de la red y cómo las nuevas tecnologías como Ajax o Flash han cambiado Internet en una manera que nunca antes nos imaginamos. El primer sitio es Gmail, ellos cambiaron la forma a la que estábamos acostumbrados a leer mails. Tengo que decir que al principio no me convencía su formato "conversación", pero ahora me gustaría que mi Oulook en el trabajo los mostrara de la misma forma.
El sitio de Gmail es un buen ejemplo de Ajax bien utilizado, pero como un profesor de la universidad decía, "no por tener un martillo vamos a martillar todo". A pesar de que Google hizo un gran avance con Gmail su sitio de lectura de RSS (Google Reader) es una historia diferente. Es una cagada! Es el sitio mas complicado para leer que hay en la vuelta, creo que lo utilicé un par deveces pensando "bueno, me acostumbraré como lo hice con Gmail", pero no! y todavía utilizo la grandiosa y sencilla interface de bloglines.
Otro sitios muy buenos son flickr, 30boxes y Gtalkr. Gtalkr es un sitio hecho en flash con lo mejor de todos, es como el live de Micorosoft pero muuucho mejor y con mas cosas interesantes.
Gente de Uruguay!, dado que a los sitios de mapas del mundo no les interesamos como mercado hay un par de locos que están desarrollando un sitio muy bueno con mapas de Uruguay. Se pueden arrastrar los mapas y revolverse en las ciudades sin problemas. Todavía no está online pero prueben dentro de poco en www.mapio.info.
Read Full Post
Summary only...
I've recently got hands on Visual Studio 2005 (beta 2).
There are a lot of cool new features for win forms apps. But the the best stuff are definitely for ASP.Net 2.0.
First of all, you don't need IIS in order to run your web applications. Visual Studio 2005 comes with a personal web server so can keep your source files under the folder you want and not inetpub/wwwroot like VS 2003 used to. So now, what do I need XP Pro for, I can develop with my XP Home Edition.
The second cool feature are the Master Pages. Once you have your master page the way you want it, your other pages will have your master page as a "frame", so they will all look the same. I know you could do this in the past, but trust me, now is a lot easier.
And the last feature, which in my opinion is the coolest, is the amount of new controls and teir databinding capabilities. They say they've reduced the needed code about 70%, I built my first ASP.Net 2.0 site with master page (good look and feel) and data access with not a single line of code.
I know there are some arquitectural issues around that solution, people say "your presentation layer go straigth to your data". I say, "I know, isn't my data access encapsulated in a single component?, isn't that even better?, how about performance?"
Recientemente me metí a vichar el Visual Studio 2005 (beta 2).
Hay unas cuantas nuevas funcionalidades para aplicaciones win form. Pero las mejores cosas son definitivamente para ASP.Net 2.0.
Primero que nada, no es necesario contar con un IIS para correr aplicaciones web. Visual Studio 2005 viene con un web server personal y permite a uno mantener sus fuentes en una carpeta independiente del IIS, y no en inetpub/wwwroot como antes.
La segunda funcionalidad interesante son las Master Pages. Estas son páginas que permiten a uno diseñar el look and feel de sus páginas y esto después se vé como marco de todas las páginas. Esto ya se podía hacer, pero ahira es mucho mas fácil.
Y lo último, que para mi es lo mejor, es la cantidad controles nuevos y sus capacidades de databinding. Dicen que ahora se necesita un 70% menos de código que antes con VS2003. Yo hice un pequeño sitio con acceso a datos sin escibir una sola linea de código.
Sé que hay algunos "temas" de diseño en estas soluciones, hay gente que dice "la capa de presentación accede directamente a los datos", y yo digo "ya sé, pero no queda de esta forma también encapsulado mi acceso a datos?, no es esto aún mejor?, y que hay sobre la performance?"
Read Full Post
Summary only...

They've made every electronic gadget I have, they don't deserve what's going on with Google Local. As you can see in this picture and you can check it out for yourself, when you search Taiwan at Google Local, it says Taiwan "Province of China".
I can only imagine how angry taiwanese people must be. According to the BBC they've already complained at Google, but the legend is still there.
Support Taiwan! they might get so angry they won't sell any electronics to us anymore.
Hey Taiwan!!! In Uruguay we know you are an independent country so keep the electronics coming.
Imagine Uruguay appeared as a province of Argentina!!! I'd be pissed!
Ellos han hecho todos los aparatos electronicos que tengo, no se merecen lo que está pasando con Google Local. Como se puede apreciar en esta foto y puede verificarlo useted mismo, cuando uno busca Taiwan en Google Local, dice Taiwan "Provincia de China".
Solo me puedo imaginar el enojo de los taiwaneses. Según la BBC ya se han quejado con Google pero la leyenda sigue ahí.
Che Taiwan!!! En Uruguay sabemos que son un pais independiente asique sigan mandando los electrodomésticos.
Imaginense que Uruguay apareciera como provincia de Argentina!!! Yo estaría re caliente!
Read Full Post
Summary only...