Saturday, December 06, 2008

Ya lo habian pensado!

Es algo muy curioso cuando te surge una necesidad y sabes por dentro que ha alguien ya le paso antes y por ende ya lo solucionaron. Teniendo en cuenta lo anterior, tuve el siguiente percance realizando unos calculos para las partes de una PC como la MainBoard, Memoria, Disco Duro, Procesadores(+ de 1), teniendo todo eso a mano me puse a realizar una simple lista de cosas para calcular el total, pero ahora si el dilema queria realizar una suma considerando un procesador (el quad core) y con el otro procesador Core 2 Duo, pero como lo tenia lista no era posible, la unica salida era realizar otro excel, pero me surgio la duda, si le pongo un flag, podria decirle a la funcion suma que tome el valor de un procesador o el otro, entonces buscando unos minutos en la web, con ayuda del ingles, encuentro lo siguiente:

La funcion SUMAR.SI

Sumar.Si( R1, V, R2 )

Donde:

R1: Es el rango con los flags, en este caso 1 o 0.
V: Es el valor que quieres que filtre en la suma, en este caso le pondrias 1.
R2: El mismo numero de filas que el Rango1, claro que en diferente columna.

En la siguiente imagen tenemos el calculo con la funcion Suma:



El resultado de aplicar la funcion Suma



Si deseamos sumar solo algunos valores de la lista utilizaremos la funcion Sumar.Si, en tal caso hacemos uso de una columna adicional en donde los valores de 1 nos indicara que valores a tomar en cuenta para la suma, asi como el parametro V=1, donde le indicamos que sume aquellas celdas cuya condicion sea 1.



Links Relacionados:
Url 1

Monday, November 17, 2008

Ejemplo T-Sql Pivot

DROP TABLE #Pivot
CREATE TABLE #Pivot
    (
      descripcion VARCHAR(100),
      idtipomonto INT,
      monto int
    )

INSERT  INTO #Pivot
        (
          descripcion,
          idtipomonto,
          monto
        )
VALUES  ( 'esteban', 10, 100 )
INSERT  INTO #Pivot
        (
          descripcion,
          idtipomonto,
          monto
        )
VALUES  ( 'isabel', 20, 200 )
INSERT  INTO #Pivot
        (
          descripcion,
          idtipomonto,
          monto
        )
VALUES  ( 'cristina', 30, 300 )


SELECT  *
FROM    #Pivot


SELECT  *
FROM    #Pivot PIVOT ( SUM(monto) FOR idtipomonto IN ( [10], [40] ) ) AS pvt

Wednesday, October 22, 2008

Concurso Imagine Cup 2009

Informacion del evento en español.

--
Esteban J. Alvino Quispe
Blog: http://esjeblog.blogspot.com/
Skype: ealvinoq
Cell Phone: 9 9475 6565

Thursday, October 09, 2008

Ms Sql Server, tutorial, con data

http://www.sqlbi.eu/Default.aspx?tabid=80

--
Esteban J. Alvino Quispe
Blog: http://esjeblog.blogspot.com/
Skype: ealvinoq
Cell Phone: 9 9475 6565

Thursday, September 18, 2008

SSIS, error

No se puede deployar el paquete de SSIS a SqlServer (msdb)?
No se cual sea el problema, dicen una corrupcion de dlls, pero porque se corrompen, no se, pero hay manera de arreglarlo y es registrando nuevamente dos dlls que tienen que ver con esa funcionalidad(dedusco).


regsvr32.exe msxml3.dll
regsvr32.exe msxml6.dll

Y en mi caso, fue un
Happy Ending.
----------------------
Source
------

Saturday, August 16, 2008

Map?

No tan bueno, no hay un preview del mapa, en el modo diseño. Ademas quiere cambiar de nombre al vinculo y se relentiza la maquina.

Posting desde Windows Live Writer

Bueno, probando como se ve un post desde este publicador, mas que nada ver como se exportan las imagenes y la edicion de texto.

canta fotos 233

En la edicion de texto como que se complica escribir parrafos, ya agregue la foto y la puso de un tamaño predeterminado, la subi desde mi pc, segun pude notar se hostea en el proveedor del servicio (blogger).

Eso es todo, y quiza busque mas adelante la opcion html, para editarlo ahi, y posteriormente dar un preview, al mismo estilo blogger.

z1

Lo respecto a vistas, el live writer lo tiene, ademas el post sale bastante bueno, en calidad y se cumple el WYSIWYG.

z2

Sunday, August 10, 2008

Explicacion de IDisposable (Level 5-5)

En el sgte link se explica:
Aqui.

Intentando replicar lo explicado en el link de arriba, el codigo:
Aqui

Interface IDisposable y el metodo Dispose()

IDisposable

El uso principal es liberar recursos no administrados, a travez de la implementacion del metodo Dispose.

Dispose

Explicitamente liberar recursos no manejados.



Link Source

Memory Leak

Asociado, con Consumo de memoria.

Memory leak
In computer science, a memory leak is a particular kind of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed. This condition is normally the result of a bug in a program that prevents it from freeing up memory that it no longer needs.

Saturday, August 09, 2008

Configuración del usuario IUSR_ en RS

Definición del problema:

Problema de acceso a localhost/reports y localhost/reportserver, obtenia el aviso que el usuario IUSR_Machine no tenia los niveles necesarios de acceso.


Los permisos otorgados al usuario 'ESTEBAN\IUSR_Machine' son insuficientes para realizar esta operación



En el reportServer:



En el reportS:


Deployando los reportes:


La sólucion

Detallada en el siguiente link: click aqui

1. Configura el IIS para ingresar con Seguridad Integrada de Windows, es decir con la cuenta administrador, ya que me logueo con dicha cuenta es esa cuenta con la que se levanta el sitio Web Reports y ReportServer. Se desea dar un detalle en las siguientes imagenes:







2. Despues de realizar lo del paso anterior, visualizar como se puede ingresar al sitio web y desplegar reportes en el servidor. Se pretenda dar un buen detalle con las sgtes imagenes:





3. Despues de estos paso proceder a realizar los pasos que indican el link de ayuda. Se pretende dar un detalle con las sgtes imagenes(empezar en http://localhost/Reports):

















4. Por ultimo ingresar a iis y cambiar la seguridad a "Seguridad Anonima"

Friday, August 08, 2008

Derived Class ( Clase Derivada )

Link
Ahora a buscar en que se diferencia con una SubClase.

Tuesday, July 08, 2008

left outer join y el where (borrador)

post left outer join y el where

tengo una tabla t1 y una tabla t2

t1
c1
1
2
3

t2
c1 c2
1 1
2 1
3 1

entonces hago un T1 left outer join T2
on t2.c1 = t2.c1
and t2.c2 = 1
que creen que saldra?

bueno en el left outer join, hace las consultas para cada tabla

1ro para la t2, que trae todos los registros con c2 = 1
Luego procede a hacer el left y nos da
0 null null (no correspondio con ningun valor en T2)
1 1 1
2 2 1
3 3 1

Ahora que paso cuando cambias la condicion t2.c2 = 1, en el where


entonces hago un T1 left outer join T2
on t2.c1 = t2.c1
where t2.c2 = 1

como se puede decir, el left tiene mas prioridad que el where(osea este se realiza al ultimo)
1. realizandose priemro el left tendriamos
t1.c1 t2.c1 t2.c2
0 null null (no correspondio con ningun valor en T2)
1 1 1
2 2 1
3 3 1

2. Luego realizar el where t2.c2 =1, sobre lo anterior
t1.c1 t2.c1 t2.c2
1 1 1
2 2 1
3 3 1

Se filtro el registro que tenia t2.c2 = null, ya que la condicion en el where era t2.c2 = 1

Habra mas cosas sobre estas, espero sea todo, porque ese era uno de las cosas raras que no entendia, espero haberlo entendido bien y si no lo es, y sabes que hay algo mas oculto, hasmelo saber, te lo agradecere de alma =)

bye

Thursday, July 03, 2008

Time Sindrome

From someplace.

Getting ConnectionString in a package in runtime

I had a question, if i have to get the id country from a connection string, so i said yes, but i haven't done never, so i start to search in google, and in a few minutes i found the answer in this link.

So i create a simple package and start to prove, mi package look like this:



then, i add a script component



then, the code, re-very little =)



then, it works =)



thats all, read the link.

@@ERROR in t-sql @_@

Well, i have a stored procedure that fail in some part, in a delete statement, but the sp continue running, and execute the next sp, something like that
CREATE PROC _SP_WRAP_ALLSP AS
EXEC SP1
EXEC SP2
.
.
.

Well, if a error ocurred in SP1, the _SP_WRAP_ALLSP continue with the next SP2,
then if you want to find a error, you have to use @@ERROR, like this link mentioned, and something else you get a code error, but what does it means? well sys.messages answer your question.

Bye

Sunday, June 29, 2008

Newbie in MIRC

So i start telling my experience on MIRC.

How start that?
Well i have a work in a course at the UNI, in Knowledge Management, so in my group have to investigated about Joomla ( a CMS ), so i go to these page.
And i follow the first link showed below (the part here and here).



The link here bring me to a explanation about IRC on wiki, so i decided to read, and a try to capture some of the information inside of me improving my hability of internalization, so i declared that i need help with the english so i must supported in that online translator.



i used the third view, because these show you the original version of the page, and if you need help with a strange word, you can put the mouse pointer over a portion of text and then appear floating the traslation in the language that you choosen.





After that i proceed to installed MIRC from here, after of the usual "nexts", i have MIRC on mi Pc.



Well, now i have MIRC, now i have to reach to talk with s.o, well so how i have to start, i try few things, then in the wiki page i read something Search Engines, so i think, ahhhh, search for channels, so i try googling for spider and crawler and anything, then i said maybe in the main page of MIRC, and in the communities find that i want.





So, i reached to this link.



Ok, i have the program and the channels.





the last thing is to join to a channel, so we must to know, the key word reserverd
"/join channelname" and the channel name is #irchelp.
And we have to write /join #irchelp, next press enter button.



I make a friend Vunn, he is from Thailand, wow, very far country, that was very interesting and cool. He was very nice, he offered his help desisteresting, i hope can help like him.

Thank you
That's all. =)