1. Crear un ODBC en el servidor de base de datos, que apunte a MySql (usar el cliente de MySql ODBC 5.1)
2. Crear el linked server en MSSQL con este script (revisar usuario y password)
/****** Object: LinkedServer [MySql] Script Date: 03/26/2012 14:17:36 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'NOMBRE_DEL_LINKED_SERVER', @srvproduct=N'NOMBRE_DEL_LINKED_SERVER', @provider=N'MSDASQL', @datasrc=N'NOMBRE_DEL_LINKED_SERVER', @provstr=N'DRIVER={MySQL ODBC 5.1 Driver};SERVER=SERVIDOR_MYSQL;PORT=PUERTO_MYSQL;DATABASE=NOMBRE_BASE; USER=usuario;PASSWORD=password;OPTION=3;'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'rpc out', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'NOMBRE_DEL_LINKED_SERVER', @optname=N'use remote collation', @optvalue=N'true'
3. Ir a sql y probar el linked server:
select * from openquery(NOMBRE_DEL_LINKED_SERVER, 'select * from tabla_de_mysql')
4. Importacion de datos:
SELECT * INTO base_sql.dbo.nombre_de_tabla FROM openquery(NOMBRE_DEL_LINKED_SERVER, 'SELECT * FROM tabla_mysql');
Tiempo de carga de las baterias
En primer lugar hay dos formas de cargar una bateria una lenta que puede llegar hasta 15 hrs y otra rapida que tarda solo unas 4 o 5, estas formas son determinadas por el cargador eliminador o la cajita que se conecta a la luz, dependiendo de su mAh y al mAh de la bateria.
ahora ¿como saber cuantas horas cargar tu pila? existen dos formas de saberlo, la primera es la mas sencilla y es que normalmente la bateria en si trae escrito cuantoas horas debes de cargarla, por ejemplo la mia que es una estandar que venia con mi g36c dice "carga estandar 14-15hrs a 110mA" y "carga rapida 2.0-2.5 hrs a 550mA" eso significa que con un cargador de 110mA necesito dejarla conectada entre 14 y 15 horas y que con un cargador de 550mA solo necesito dejarla menos de 3 horas.
pero ¿que pasa si la pila dice que use un cargador de tantos mAh y el que tengo es de otros distintos? bien para eso existe la segunda forma para calcular el tiempo de carga y es por medio de una sencilla ecuacion matematica que dice:
mAh de la batería x 1,4
----------------------- = tiempo de carga
mAh del cargador
Recuerden que siempre es mejor cargar la bateira en un tiempo estandar o modo lento para que se cargue adecuadamente ademas de que evitas que se caliente la bateria exesivamente y se queme o lo que es igual, tiempo lento de carga es igual a mas tiempo de vida util de la bateria.
tanto la bateria como le cargador traen escritos sus mAh, es recomendable comprar un buen cargador con un mAh para cargas lentas.
Como conectar el LCD serial a Arduino
Arduino IIC/I2C/TWI 16 x 2 Characters LCD Module Yellow Green
Con el Library Manager de Arduino, instalar la versino 1.1.2 de LiquidCrystal I2C.
IIC/I2C interface
So the 5V interface of Arduino should connect VCC on the LCD module .
the GND interface of Arduino should connect GND on the LCD module .
SI ES ARDUINO LEONARDO, SDA VA EN SDA Y SCL VA EN SCL!!!
Con el Library Manager de Arduino, instalar la versino 1.1.2 de LiquidCrystal I2C.
IIC/I2C interface
So the 5V interface of Arduino should connect VCC on the LCD module .
the GND interface of Arduino should connect GND on the LCD module .
SI ES ARDUINO LEONARDO, SDA VA EN SDA Y SCL VA EN SCL!!!
SINO:
the "Analog in 4" interface of Arduino should connect SDA on the LCD module .
the "Analog in 5" interface of Arduino should connect SCL on the LCD module .
-----------------------------------------------------------------------------
the "Analog in 4" interface of Arduino should connect SDA on the LCD module .
the "Analog in 5" interface of Arduino should connect SCL on the LCD module .
-----------------------------------------------------------------------------
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Prueba linea 1");
lcd.setCursor(0, 1);
lcd.print("Linea 2");
lcd.setCursor(14, 1);
lcd.print("OK");
}
void loop()
{
lcd.setCursor(9, 1);
lcd.print("es");
delay(100);
}
Leer excel con ADODB
Dim str_Conexion As String
Dim ado_Conexion As ADODB.Connection
Dim rs As ADODB.Recordset
Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
str_Conexion = "Data Source=" & f & ";"
Set ado_Conexion = CreateObject("ADODB.Connection")
ado_Conexion.Provider = "Microsoft.ACE.OLEDB.12.0"
str_Conexion = str_Conexion & "Extended Properties=Excel 12.0"
ado_Conexion.Open str_Conexion
'obtengo el nombre de la 1er hoja
Set objExcel = CreateObject("Excel.Application")
Set objWorkBook = objExcel.Workbooks.Open(f)
nombre_hoja = objWorkBook.Worksheets(1).Name
objWorkBook.Close
Set objExcel = Nothing
Set objWorkBook = Nothing
str_Consulta = _
"SELECT * from [" & nombre_hoja & "$]"
Set rs = CreateObject("ADODB.Recordset")
rs.Open str_Consulta, ado_Conexion
Cells.Select
Selection.ClearContents
Dim fila As Integer
fila = 1
While Not rs.EOF
Cells(fila, 1).Value = rs.Fields(0)
Cells(fila, 7).Value = rs.Fields(6)
fila = fila + 1
rs.MoveNext
Wend
Set rs = Nothing
Set ado_Conexion = Nothing
Dim ado_Conexion As ADODB.Connection
Dim rs As ADODB.Recordset
Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
str_Conexion = "Data Source=" & f & ";"
Set ado_Conexion = CreateObject("ADODB.Connection")
ado_Conexion.Provider = "Microsoft.ACE.OLEDB.12.0"
str_Conexion = str_Conexion & "Extended Properties=Excel 12.0"
ado_Conexion.Open str_Conexion
'obtengo el nombre de la 1er hoja
Set objExcel = CreateObject("Excel.Application")
Set objWorkBook = objExcel.Workbooks.Open(f)
nombre_hoja = objWorkBook.Worksheets(1).Name
objWorkBook.Close
Set objExcel = Nothing
Set objWorkBook = Nothing
str_Consulta = _
"SELECT * from [" & nombre_hoja & "$]"
Set rs = CreateObject("ADODB.Recordset")
rs.Open str_Consulta, ado_Conexion
Cells.Select
Selection.ClearContents
Dim fila As Integer
fila = 1
While Not rs.EOF
Cells(fila, 1).Value = rs.Fields(0)
Cells(fila, 7).Value = rs.Fields(6)
fila = fila + 1
rs.MoveNext
Wend
Set rs = Nothing
Set ado_Conexion = Nothing
Mover un archivo con FTP en VB.NET
Sub RenameFileName(ByVal dir_actual As String, ByVal agente As String, ByVal archivos As ArrayList)
Dim currentFilename As String = ""
Dim newFilename As String = ""
Dim reqFTP As FtpWebRequest = Nothing
Dim ftpStream As Stream = Nothing
For i As Integer = 0 To archivos.Count - 1
currentFilename = "ftp://direccion-del-servidor-ftp/" & agente.Trim & "/" & dir_actual & "/" & archivos(i).ToString.Trim
newFilename = "../directorio-destino/" & dir_actual & "/" & archivos(i).ToString.Trim
Try
reqFTP = DirectCast(FtpWebRequest.Create(New Uri(currentFilename)), FtpWebRequest)
reqFTP.Method = WebRequestMethods.Ftp.Rename
reqFTP.RenameTo = newFilename
reqFTP.UseBinary = True
reqFTP.KeepAlive = False
reqFTP.Credentials = New NetworkCredential("usuario-ftp", "password-ftp")
reqFTP.Proxy = Nothing
Dim response As FtpWebResponse = DirectCast(reqFTP.GetResponse(), FtpWebResponse)
ftpStream = response.GetResponseStream()
ftpStream.Close()
response.Close()
Catch ex As Exception
If ftpStream IsNot Nothing Then
ftpStream.Close()
ftpStream.Dispose()
End If
Throw New Exception(ex.Message.ToString())
End Try
Next
End Sub
Dim currentFilename As String = ""
Dim newFilename As String = ""
Dim reqFTP As FtpWebRequest = Nothing
Dim ftpStream As Stream = Nothing
For i As Integer = 0 To archivos.Count - 1
currentFilename = "ftp://direccion-del-servidor-ftp/" & agente.Trim & "/" & dir_actual & "/" & archivos(i).ToString.Trim
newFilename = "../directorio-destino/" & dir_actual & "/" & archivos(i).ToString.Trim
Try
reqFTP = DirectCast(FtpWebRequest.Create(New Uri(currentFilename)), FtpWebRequest)
reqFTP.Method = WebRequestMethods.Ftp.Rename
reqFTP.RenameTo = newFilename
reqFTP.UseBinary = True
reqFTP.KeepAlive = False
reqFTP.Credentials = New NetworkCredential("usuario-ftp", "password-ftp")
reqFTP.Proxy = Nothing
Dim response As FtpWebResponse = DirectCast(reqFTP.GetResponse(), FtpWebResponse)
ftpStream = response.GetResponseStream()
ftpStream.Close()
response.Close()
Catch ex As Exception
If ftpStream IsNot Nothing Then
ftpStream.Close()
ftpStream.Dispose()
End If
Throw New Exception(ex.Message.ToString())
End Try
Next
End Sub
control de gastos
PROPORCIONES
Cada 100g de caucho, 5g de catalizador! (para asegurar que frague, se recomienda 10%)Hay que mezclar MUY bien para que funcione!!
Dirección:
http://www.saxonn.com/informacion/index.php?CategoryId=2&InfoId=8
Venta al por menor:
8 de octubre 4772 esq. Vicenza - Montevideo
Horario de atención al público:
De Lunes a Viernes de 8.30 a 12.30 hs y de 13.00 a 18.30 hs
Sábados de 9 a 13 hs
Jose De Bejar 2686 | Telefono:(598) 2507 3922*
Desmoldante
Vaselina líquida
Tips
No tirar el caucho directamente sobre la pieza, rellenarlo por un costado y siempre por el mismo lado, lentamente
Links
http://www.youtube.com/watch?
Precios
Saxon:
200g $342
500g $850
con catalizador incluido
La casa del artesano:
Goma para moldes (no caucho):
1/2lt. $219
1lt. $389
no precisa catalizador
Listar tabla, campo, tipo y tamaño en SQL Server
use [base]
SELECT
so.name AS Tabla,
sc.name AS Columna,
st.name AS Tipo,
sc.max_length AS Tamaño
FROM
sys.objects so INNER JOIN
sys.columns sc ON
so.object_id = sc.object_id INNER JOIN
sys.types st ON
st.system_type_id = sc.system_type_id AND
st.name != 'sysname'
WHERE
so.type = 'U'
ORDER BY
so.name,
sc.name
SELECT
so.name AS Tabla,
sc.name AS Columna,
st.name AS Tipo,
sc.max_length AS Tamaño
FROM
sys.objects so INNER JOIN
sys.columns sc ON
so.object_id = sc.object_id INNER JOIN
sys.types st ON
st.system_type_id = sc.system_type_id AND
st.name != 'sysname'
WHERE
so.type = 'U'
ORDER BY
so.name,
sc.name
Sweet painted lady
G I'm back on dry land once again Gmaj7 Opportunity awaits me like a rat in the drain Dm G7 C We're all hunting honey with money to burn Cm G\B Am D Just a short time to show you the tricks that we've learned G If the boys all behave themselves here Gmaj7 Well there's pretty young ladies and beer in the rear Dm G7 C You won't need a gutter to sleep in tonight Cm G\B Am D Oh the prices I charge here will see you alright G So she lays down beside me again Gmaj7 My sweet painted lady, the one with no name Dm G7 C Many have used her and many still do C G\B Am D There's a place in the world for a woman like you G F# Oh sweet painted lady F E7 Seems it's always been the same Am7 D Getting paid for being laid G Am7 Guess that's the name of the game G F# Oh sweet painted lady F E7 Seems it's always been the same Am7 D Getting paid for being laid G Am7 D Guess that's the name of the game G D7 Oh! G Forget us we'll have gone very soon Gmaj7 Just forget we ever slept in your rooms Dm G7 C And we'll leave the smell of the sea in your beds Cm G\B Am D Where love's just a job and nothing is said G So she lays down beside me again Gmaj7 My sweet painted lady, the one with no name Dm G7 C Many have used her and many still do C G\B Am D There's a place in the world for a woman like you (REPEAT) G F# F E7 Am7 D G Am7 D G F# F E7 Am7 D G Am7 D G
Eliminar un Team Project
En versiones anteriores a 2008 la funcion tf destroy no esta disponible.
Para poder eliminar definitivamente un team project y limpiar la base de datos:
1. Ir a consola de visual studio (2008 o 2010)
2. Ejecutar:
tf destroy "$/nombre_del_team_project" /startcleanup
Para poder eliminar definitivamente un team project y limpiar la base de datos:
1. Ir a consola de visual studio (2008 o 2010)
2. Ejecutar:
tf destroy "$/nombre_del_team_project" /startcleanup
3. Ejecutar:
tfsdeleteproject
/server:http://servidor:8080/tfs/defaultcollection "nombre_del_team_project"
Carreras
| Carrera | año | Numero | P.Gral. | P.Cat. | Corredor | Tiempo |
| San Felipe | 2011 | 1003 | 966 | 284 | RUSSO, CARLOS | 00:52:33 |
| Malvin 10k | 2011 | 1505 | 571 | 159 | RUSSO, CARLOS | 00:52:29 |
| Nike | 2011 | 6044 | 2356 | 617 | RUSSO, CARLOS | 0:50:42 |
| M4 Nativa | 2007 | 6646 | 1738 | 285 | RUSSO, CARLOS | 0:51:06 |
| Nike | 2005 | 2390 | 1928 | 605 | RUSSO CARLOS MARCELO | 0:51:43 |
| Nike | 2006 | 2401 | 2213 | 736 | RUSSO, CARLOS | 0:54:29 |
| Nike | 2007 | 2583 | 2290 | 689 | RUSSO CARLOS | 0:52:54 |
| M4 Nativa | 2006 | 847 | 2745 | 845 | RUSSO, CARLOS | 0:55:16 |
| M4 Nativa | 2006 | 1360 | 2629 | 821 | GRIMALDI MONTAGNO, ANDRES | 0:54:45 |
song for guy
2da parte:
sol si re sol
mi lab si mi
fa la re
sol sib mib sol x3
fa si re sol
fa si re fa
sol do mi
sol si re sol
mi lab si mi
fa la re
sol sib mib sol x3
fa si re sol
fa si re fa
sol do mi
Retornar un valor desde una funcion con llamado a jQuery.Ajax
int a;
String j;
void main()
{
int j;
}
function existeRolUsuario(usuario, rol)
{
var url_ws
url_ws = "http://" + window.self.location.hostname + "/wsPRUEBA/Seguridad.asmx/ExisteRolUsuario";
var response = jQuery.ajax({
type: "POST",
timeout: 5000,
url: url_ws,
data: "{'usuario': '" + usuario + "', 'rol': '" + rol + "'}",
contentType:"application/json; charset=utf-8",
dataType:"json",
async: false,
cache: false,
success: function(response) {
},
error: function(xhr, ajaxOptions, thrownError) {
alert("error!");
}
}).responseText;
var j = eval('(' + response + ')');
var v = getJSON(j);
if (v.datos[0].existe == "true")
return true;
else
return false;
}
---------------------------------------------------------------------------------------
Otra forma:
function InvocarAjax()
{
rnd = '&random=' + Math.floor(Math.random()*9999999999);
jQuery.ajax({
data: "parametro1=valor1¶metro2=valor2" + rnd,
type: "GET",
dataType: "json",
url: "ajax.php",
success: function(response){
procesarRespuesta(response);
}
});
}
function procesarRespuesta(response)
{
alert("Respuesta: " + response.prueba);
}
Suscribirse a:
Entradas (Atom)


