Seinfeld & Superman
...just the best of two worlds ;)
Check out this videos and you'll see what I'm talking about... (yeap, a little off dev topic I know)
The Green Lantern
Episode 1
Episode 2
I'm a Software Engineer at Genexus R+D team.
...just the best of two worlds ;)
Check out this videos and you'll see what I'm talking about... (yeap, a little off dev topic I know)
The Green Lantern
Episode 1
Episode 2
Labels: internet 0 comments
I try to listen every now and then some interesting podcast, but this one I believe it's the best podcast around.Obviously I haven't heard'em all, so feel free to recommend all the podcast you'll find interesting.Understand that the wide concept of interesting, from this one (diggnation) to the TikiBar (watch the videos).
Diggnation is about two guys that read and comment the top dug stories of the week in digg.comSo chek'em out, they are funny as hell, if you can try to downloads their videos.
The banner above is a game made by one of the fans, play with Alex and try to beat Kevin in this drinking contest. Click on Johny Johny (Tiki Bar) to get shots.
Labels: internet 0 comments
Localization, that's pretty much what I've been doing since I got in the DeKlarit team. I've been working on it for win and web forms and I must say that it's really simple in .net framework 2.0.
There are different techniques in order to achieve that, one of them is to generate a resource file for every form in your app. Even though this approach is less complex, I don't like the idea of having as many resource files as forms in my application, so I'll describe how to achieve localization with a different approach.
First of all, create a simple win app and add some controls to the main Fomr (Form1). Add some labels some buttons and what ever you want.
Now create a resource file and name it StringResources.resx. Edita that file with VS2005 and add all the strings you want to localize, ok, cancel, HelloWorld, etc...
In order to localize your form create a method (called form the Page_Load method) where all texts are going to be set. In order to do that write the following sentence for every control you may have in your form:
btnOK.Text = StringResources.NewCaption;
Once you run the application you should see every text you've entered in your resource file.
I now what you're going to say, so, this is the cool part? nope, this is the hard part, to cool part is coming right now. From the Solution Explorer Copy and Paste your resource file and rename it as StringResource.es.resx. Change the values of that file to spanish, Aceptar, Cancelar, HolaMundo, etc. Now change you regional settings so your default language is spanish.
Rerun you app and that's it!, your app should now be displaying all the controls in spanish, or what ever you've entered in the resource file.
In order to get the same result for web applications you can do two things. One is to do exactly what we just did and the other one is to set the "call" to the resource file right on you aspx of ascx file. To do that just change the text attribute of the control for something like this:
Text="<%$Resources:StringResources,NewCaption%>"
You may need to Databind the control in order for the text to be displayed.
So there yo have it, your own application with localization features. Start playing with it and add it to your applications, you never know where's your next buyer from ;)
Labels: dotNet 1 comments

You're probably aware that Robert Scoble left Microsoft, also there's a "rumour" that Gates is leaving Microsoft, and now I'm leaving The Soupreme Court of Justice for DeKlarit ( www.deklarit.com). LOL!
This is a big opportunity to me and I'm very excited about it. DeKlarit is a Visual Studio add-in used world wide and it's used to develop .Net applications (win, web, mobile) faster than ever. You take care of your businness rules and let DeKlarit create the tables needed to model your application reality.
I'll start working in a big software company and thats really exciting to me, cause our business is about biulding software.
I'll be bloging about it soon so stick around.
Also, no more spanish, I'm tired of translating and keeping in mind that most of my visitors are english speaking peple and that english is the official interenet languagge there'll be no spanish from now on. Sorry to those who do not understand english... you need to start learning english right away.
Labels: DeKlarit 3 comments
Well, now with LINQ you can use the classic SQL syntax like SELECT, FROM and WHERE. The only difference is the order you use with those "commands". expr = from s in myStrings foreach (string item in expr) Isn't that great?! And trust me, this is the simples dumbed example, you can do amazing things with it, like creating classes for your application in runtime. In this example we're just selecting text, but let's say you want to select many attributes from a User table like Name, Address, and Phone. You can select those attributes and "declare them" as a class called Clients and you can reference that Client class later on in your code. Bien, pues ahora con LINQ usted podrá utilizar la clásica sintaxis de SQL como ser SELECT, FROM, y WHERE. La única diferencia es el orden en el que uno escribe estos comandos. expr = from s in myStrings foreach (string item in expr) No es bárbaro?! Y créeanme que este es el ejemplo mas choto que existe, uno puede hacer cosas asombrosas con esto, como crear clases para su aplicación en tiempo de ejecución. En este ejemplo simplemente estamos seleccionando texto, pero digamos que usted quiere seleccionar varios atributos de una tabla Usuarios como ser Nombre, Dirección, y Teléfono. Usted puede seleccionar esos atributos y "declararlos" como una clase llamada Clientes y puede referenciar esa clase mas adelante en su código.
I recently tried The LinQ Project. LINQ stands for Language Integrated Query and it is just great, at least for me. What's the best way to manage data? If you didn't say SQL stop reading!
The best way to explain LINQ is with examples, so here I go. Imagine you have an array of strings (string[]) and yo want to print every string which length is longer than 5 characters, and you want to print'em in upper case.
You would probably do something like this:
foreach (string s in myStrings)
{
If (s.Length > 5)
Console .WriteLine(s.ToUpper()); //What if you want'em ordered?
}
Let's write the same example using LINQ.
where s.Length > 5
orderby s //Ordering here!!!
select s.ToUpper();
Console.WriteLine(item);
I hope I made myself clear, go to the LINQ Project home page and also download Anders' video from Channel9.
La mejor forma de explicar LINQ es mediante ejemplos, asi que aquí voy. Imagine que tiene un arreglo de strings (string[]) y quiere imprimir todas las cadenas cuyo largo sea mayor que 5 caracteres, y quiere imprimirlas en mayúscula.
Probablemente ud. haría algo como esto:
foreach (string s in myStrings)
{
If (s.Length > 5)
Console .WriteLine(s.ToUpper()); //Qué pasa si quisiera ordenarlos??
}
Escribamos el mismo ejemplo utilizando LINQ.
where s.Length > 5
orderby s //Ordenado desde aquí!!!
select s.ToUpper();
Console.WriteLine(item);
Espero haberme hecho entender, vaya a la página del LINQ Project y bájese el video de Ander de Channel9.
Labels: dotNet 1 comments