Bu kod robotsuz çalışıyor mu?
Bu kod robotsuz çalışıyor mu?
Sezai Bey merhaba
oncelikle gmail ayarlarim sizin resimde belirttiginiz yonlendirme ve /pop imap kismi gibi idi. maili kendi gmail adresimden tekrar ayni gmailime atmak istedim. kodu calistirmamla ayni anda gmailden bahsettigim uyarisini aldim ve malesef gelen uyari ekraninda hicbir sekilde izin verme ile alakali bir link veya baska bir alternatif bi cozum yolu yoktu.
Veri akisinda bi sikinti var sanki.
bang bang you shot me down..
oturum açtıktan sonra;
https://myaccount.google.com/lesssecureapps?pli=1
![]()
Son düzenleme : Orhan AKDOĞAN; 29-08-2018 saat: 18:22.
Mail ile bilgi almakdan daha iyi yöntemler var aslında.
Anlık bilgilendirmeleri Telegram ile alıyorum. User.dll kullanan arkadaşlara öneririm.
1- Telegramda botfather ile keyleri alın.
2- nuget ile Telegram.Bot apisini projeye dahil edin.
3-Bot.SendTextMessageAsync metodu ile size ait bot ile kendi telegram hesabınıza mesaj atabilirsiniz.
Aynı adres gönderen ve alan şeklinde olunca zaten mail gitmeyecek , hata da vermiyor sanırım o durumda . telegram usulünü öğrenmiş olduk arada , teşekkürler
ekran başında değilseniz ve alarm için kullanıyosanız( bağlantı sorunları , gerçekleşmeyen emirler , sıradışı durumlar falan için) sms gönderimini de düşünmekte fayda var. data kesintisi durumunda dahi sms dağda bayırda bi şekilde ulaşıyor
Degerli idealciler size guzel bir haberim var. uzun cabalar sonunda C# dilinde matriks veri terminalinde bulunan ama idealde olmayan N bar uygulamasini yazdik. Bunu ideale cevirecek bir babayigit ariyorum![]()
using System;
namespace beta3
{
class Program
{
static void Main(string[] args)
{
//list for 1min and global variables
//double[,] list = new double[7, 5] { { 10.00, 16.68, 16.74 , 16.74, 16.65 },
//{ 10.01, 16.75, 16.78 , 16.78, 16.75 },
//{ 10.02, 16.78, 16.79 , 16.80, 16.76 },
//{ 10.03, 16.80, 16.78 , 16.80, 16.78 },
//{ 10.04, 16.77, 16.77 , 16.77, 16.77 },
//{ 10.05, 16.77, 16.76 , 16.77, 16.76 },
//{ 10.06, 16.20, 16.30 , 16.40, 16.10 }
//};
// Create Random matrix
double[,] list = new double[425, 5];
Random rnd = new Random();
int xDimension = list.GetUpperBound(0) + 1;
int yDimension = list.GetUpperBound(1) + 1;
int newXdimension;
for (int i = 0; i < xDimension; i++)
{
for (int j = 1; j < yDimension; j++)
{
int rastgele = rnd.Next(1, 1000);
list[i, j] = rastgele;
}
}
double start_time = 10.00;
int x;
for (int i = 0; i < xDimension; i++)
{
start_time = Math.Round(start_time, 2);
list[i, 0] = start_time;
start_time = start_time + 00.01;
x = Convert.ToInt32(start_time * 100);
if ((x == 1060) || (x == 1160) || (x == 1360) || (x == 1460) || (x == 1560) || (x == 1660) || (x == 1760))
{
start_time = start_time - 00.60;
start_time = start_time + 01.00;
//Console.WriteLine(Convert.ToString(start_time));
}
if (x == 1260)
{
start_time = 14.00;
}
}
int n;
int count = 0;
// with n-bar calculate new list
while (true)
{
try
{
Console.WriteLine("Enter your n-bar");
n = Convert.ToInt32(Console.ReadLine());
break;
}
catch (FormatException)
{
Console.WriteLine("Lütfen bir tam sayı giriniz!");
}
}
newXdimension = xDimension / n;
double[,] newArray = new double[newXdimension, yDimension];
double[,] high = new double[newXdimension, n];
double[,] low = new double[newXdimension, n];
//Console.WriteLine(newXdimension);
//Console.WriteLine(yDimension);
for (int i = 0; i < newXdimension; i++)
{
newArray[i, 0] = list[count, 0];
newArray[i, 1] = list[count, 1];
newArray[i, 2] = list[(count + n) - 1, 2];
count = count + n;
}
int a = 0;
for (int i = 0; i < newXdimension; i++)
{
for (int j = 0; j < n; j++)
{
high[i, j] = list[a, 3];
low[i, j] = list[a, 4];
a = a + 1;
}
}
int high_low_Xdimension = high.GetUpperBound(0) + 1;
int high_low_Ydimension = low.GetUpperBound(1) + 1;
double[] max = new double[high_low_Xdimension];
double[] min = new double[high_low_Xdimension];
for (int i = 0; i < high_low_Xdimension; i++)
{
min[i] = 99999999999;
}
for (int i = 0; i < high_low_Xdimension; i++)
{
for (int j = 0; j < high_low_Ydimension; j++)
{
if (max[i] < high[i, j])
{
max[i] = high[i, j];
}
newArray[i, 3] = max[i];
if (min[i] > low[i, j])
{
min[i] = low[i, j];
}
newArray[i, 4] = min[i];
}
}
//------ the last version list print
int rowLength = newArray.GetLength(0);
int colLength = newArray.GetLength(1);
string[] title = new string[5] { "Time", "Start", "Finish", "High", "Low" };
for (int i = 0; i < title.Length; i++)
{
Console.Write(string.Format("{0}\t", title[i]));
}
Console.WriteLine();
for (int i = 0; i < rowLength; i++)
{
for (int j = 0; j < colLength; j++)
{
Console.Write(string.Format("{0}\t", newArray[i, j]));
}
Console.WriteLine();
}
}
}
}
Yer İmleri