Welcome to Foxite.COM Community Weblog Sign in | Join | Help

El nuevo reto.

Agradezco a los Coordinadores de Foxite por permitirme compartir mis conocimientos con la comunidad Fox.

Hoy he decidido empezar un nuevo blog en: http://fgarzonhz.blogspot.com/ , donde compartiré mis conocimientos sobre la tecnología .Net.

Los espero en mi nueva dirección.

 

Franklin Garzón

posted by frankling | 0 Comments
Filed Under:

VB Team Interview

Know the future of Vb is interesting, also the members behind, here you can see the interview to the VB Team

 

Frankln Garzon

MVP Visual FoxPro

 

posted by frankling | 0 Comments
Filed Under:

The text is more longer than the width of DropDownList?

In some cases the user can't see the complete text when the description of the text is more longer than the width of the DropdownList however we can implement an easy solution into VB2008 (this found into the old versions):

 

If Not Me.Page.IsPostBack Then

   For Each list As ListItem In Me.DropDownList1.Items

      list.Attributes.Add("title", list.Text)

   Next

End If

 

Franklin Garzón

MVP Visual FoxPro

posted by frankling | 0 Comments
Filed Under:

Talking with VB (Part 1)

When the machines record a voice and reproduce the human try to talking with the machines, so now with VB this is more easy, so I begin with a serie of posts begin to reproduce a voice until to talk with the machine, entire with VB.net 2008 code.

So, we are starting, the following code you can reproduce a voice and save the results, easy:

 

Dim SpSynt As New Speech.Synthesis.SpeechSynthesizer

Dim voces As ReadOnlyCollection(Of InstalledVoice) = SpSynt.GetInstalledVoices()

For Each vo As InstalledVoice In voces

Console.WriteLine("Motor: " + vo.VoiceInfo.Name + " Cultura: " + vo.VoiceInfo.Culture.TextInfo.CultureName)

Next

SpSynt.SelectVoice(voces(0).VoiceInfo.Name)

SpSynt.Volume = 100

SpSynt.Rate = -5

SpSynt.SetOutputToWaveFile("c:\test.wav")

SpSynt.SpeakAsync("Jessus is the best boide")

Console.Read()

 

Best Regards,

 

Franklin Garzón

MVP Visual FoxPro

posted by frankling | 0 Comments
Filed Under:

Parallel Extentions of .Net and Velocity Code Name (Net Rocks)

With VB2008 the bits are optimised to user multy-core processors however MS are thinking what we can manage our personal code to build special algorithms, also, we will development intuitively or with special functions to get full full the production of multy-core processors.

With Parallel extentions for example we can execute a For loop into pararel consum all process core and their full power.

For example:

In single Process:

Dim result = New Matrix(Of Double)(m1.Rows, m2.Columns)

   For i = 0 To m1.Rows - 1

      For j = 0 To m2.Columns - 1

         result(i, j) = 0

            For k = 0 To m1.Columns - 1

               result(i, j) += m1(i, k) * m2(k, j)

            Next

           Next

      Next

Return result

In Parallel Process:

   Dim result = New Matrix(Of Double)(m1.Rows, m2.Columns)

   Parallel.For(0, m1.Rows, Function(i) MultiplyParallelInner(i, m1, m2, result))

   Return result

---Multiply parallel function

   For j = 0 To m2.Columns - 1

         result(i, j) = 0

            For k = 0 To m1.Columns - 1

               result(i, j) += m1(i, k) * m2(k, j)

            Next

         Next

Return True

On my machine the I have arround 150% more speed into the process executed with Parallel extentions.

For mor information you can see here.

Download the CTP here.

(In many cases I think, what will happen if VFP go to into .net? really it's will very crazy, will very good .... :-), however now with VB2008 we will have all power of the VFP Team+)

Best Regards,

Franklin Garzón

MVP Visual FoxPro

posted by frankling | 0 Comments
Filed Under:

Best work and performance with VB2008

You can see many tests from MS about VB2005 and VB2008, great comparations.

 

http://blogs.msdn.com/vbteam/archive/2008/01/04/vb2008-outperforms-vb2005-lisa-feigenbaum.aspx

 

Best Regrads,

 

Franklin Garzón

 

MVP Visual FoxPro.

MCITP SQLServer

posted by frankling | 0 Comments
Filed Under:

Gift to AJAX (VB2008)

When we work with Ajax over vb2008 we find 2 things, 1: Speed and performance, 2: nice view when the page are working, so you can generate the gif and dowload directly from: http://www.ajaxload.info .

 

 Prosessing...

 

Best Regards,

 

Franklin Garzón.

MVP Visual FoxPro.

 

posted by frankling | 0 Comments
Filed Under:

Updating GridView with Datasource

Hi, the last days we need edit a row into GridView only with DataSourse, so in many places any body has a entire solution to this, then, I decided post the code to solution this.

( Note: In VFP this is easy, only a cursor, a grid and one append and replace or updatetable, easy.)

 

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not Me.IsPostBack Then

Dim dv As New Data.DataView

Dim sql As New SqlDataSource(ConfigurationManager.ConnectionStrings.Item("demoConnectionString").ToString(), "select * from empleados")

dv = sql.Select(UI.DataSourceSelectArguments.Empty)

Me.GridView1.DataSource = dv

Me.GridView1.DataBind()

End If

End Sub

Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating

Dim gv As GridView = DirectCast(sender, GridView)

For i As Integer = 0 To GridView1.Columns.Count - 1

Dim cell As DataControlFieldCell = TryCast(gv.Rows(e.RowIndex).Cells(i), DataControlFieldCell)

gv.Columns(i).ExtractValuesFromCell(e.NewValues, cell, DataControlRowState.Edit, True)

Next

End Sub

Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing

Dim gv As GridView = DirectCast(sender, GridView)

gv.EditIndex = e.NewEditIndex

gv.DataBind()

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.GridView1.EditIndex = 1

End Sub

End Class

 

 

Best Regards

 

Franklin Garzón

 

MVP Visual FoxPro

MCITP SQLServer

 

posted by frankling | 0 Comments
Filed Under: ,

Sync - VB2008/SQL2005 and VFP.

With VB2008 we can explore more potentials issues to our new developments, easy, power and extensibility.

Now you can see the new synchronization technique with VB2008 and SQL2005.

 

 

Dim sinc As New CacheSyncAgent

sinc.Synchronize()

 

 Its use the restrictions and mechanics of Compact SQL.

We can work a similar strategie into VFP9 using XML local with cursoradapter class.

 

(Para hacer un mix adjunto el link de mi entravista desde MS: aqui, también pueden ver entrevistas de otros MVPs)

 

Best Regards.

Franklin Garzón

posted by frankling | 0 Comments
Filed Under: ,

Ribbon y LINQ con VB2008

The CLR integration into Office 2007 and VB2008 is great, we can use all options between tecnologies, in this example you can see LINQ also.

Here you can see a pictures:

Best regards community.

 

Franklin Garzón

MVP Visual FoxPro

MCITP SQLServer

posted by frankling | 0 Comments
Filed Under:

Extending methods into VB2008

With VB2008 we can explote all advantages from our potencial, so, we can extend methods, all methods not hiericals, such as string.

 

(I think that any thing of extensión today was acquired from VFP, Ken Levy show this working over VSx - Visual Studio Extension, nice)

 

Saludos,

Franklin Garzón

 

MVP Visual FoxPro

MCIT SQLServer

posted by frankling | 0 Comments

Microsoft garantiza la interoperabilidad de su tecnología

Hoy en día el bum de open source esta por todos lados donde se está acentuado la discusión entre open source y propietary source.

 

Muchos dicen preferir el código abierto porque no necesita pagar una licencia por equipo, otros dicen porque pueden entrar ver y modificar el código, y otros dicen simplemente porque tiene la palabra mágica “abierto”.

 

El problema de fondo no está en que si es abierto o no, en que si es económico o no, está en que si es funcional o no.

 

Para que cualquier programa sea funcional debe ser compatible, permitir interacción interna y externa, admitir plataformas de terceros y sobre todo obtener resultados óptimos, eficientes y eficaces.

 

Es hacia donde apunta la nueva filosofía de Microsoft, esta ha sido concebida de tal forma que permitirá exponer la gran mayoría de sus sistemas por medio de APIs que permitirán la interacción entre todos sus sistemas y programas, además de una amplia documentación para la utilización de estas APIs.

 

Si bien es cierto seguiremos sin tener acceso a su código fuente, también en cierto que la aplicación de esta nueva disponibilidad de la tecnología va a ser de mucha ayuda y productividad para las empresas privadas y estatales.

 

De donde nace la necesidad del código abierto? La raíz de todo nace de las limitaciones de las herramientas Microsoft, la complejidad para extender una determinada funcionalidad y los mitos con los que los programadores debían enfrentarse para solucionar un problema insignificante. Ahora con esta nueva filosofía creo que vamos a poder explotar en verdad toda la plataforma Microsoft donde vamos a salir ganando todos.

 

A continuación tendrán los detalles desde Redmond: http://www.microsoft.com/spain/prensa/noticias/2008/febrero/n17.mspx

 

Saludos,

 

Franklin Garzón

MVP Visual FoxPro

From c# to VB.Net

In many cases we need send or convert any code in c# to VB, is important that we learn c# however not all people have the enought time to learn when the chief need this as quickly as possible.

So, you can get this functionality in:

http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx

 

Best Regards

 

Franklin Garzón

MVP Visual FoxPro

posted by frankling | 0 Comments
Filed Under:

Windows Vista Dialogs in Vb.net and Sedna.

Such as Sedna enable Windows Vista Dialogs (great featue add-ons), I review this features with VB.net and we take more things that we can control and implement.

You can see this graphics.

(normal progress)

(error progress)

With Sedna you only put this code lines:

dialog=CREATEOBJECT("VistaDialogs4COM.taskdialog")

dialog.Caption="Desde VFP"

...

dialog.Show

 

Best Regards

Franklin Garzon

posted by frankling | 4 Comments
Filed Under: ,

Two Features In SQL2008

In this case we can see two features en SQL2008, no more interesting but functionalities.

New datatype , date and intellisense in code editor.

 

posted by frankling | 1 Comments
Filed Under:
More Posts Next page »