VERİTABANI OLUŞTURMA VE VERİ EKLEME (SQL E GİRİŞ)







SQL SERVER 2012 Yİ BURAYA TIKLAYARAK İNDİREBİLİRSİNİZ

SQL SERVER 2012 KURULUMU İÇİN BURADAN YARDIM ALABİLİRSİNİZ





SQL NEDİR ? 

VERİ TABANI OLUŞTURMA VE VERİ EKLEME


DATABASE KISMINDAN NEW DATABASE YE TIKLAYIP VERİ TABANIMIZA İSMİNİ VERDİK.









SONRA KURDUĞUMUZ VERİ TABANINA TIKLAYIP ORADAN YENİ BİR TABLO OLUŞTURDUK.BU TABLO VERİ TABANIMIZA GİRECEĞİMİZ BİLGİLERİ İÇİN GEREKLİ.
DAHA SONRA VERİ BAŞLIKLARIMIZI GİRDİK VERİ TİPLERİNİ BİR SONRAKİ YAYINLARDA GÖRECEĞİZ.






 
VE SON OLARAK TA VERİ EKLEMESİ YAPTIK BÖYLECE SQL İ KURUP KÜÇÜK BİR GİRİŞ YAPTIK DAHA SONRAKİ YAYINLARDA VERİ TİPLERİNİ VE KODLAR İLE VERİ TABANI OLUŞTURMA GİBİ YAYINLAR PAYLAŞACAĞIM...

İŞLETİM SİSTEMİ YAPILARI

-YAPILARINA GÖRE İŞLETİM SİSTEMLERİ
-GERÇEKLEŞTİRDİKLERİ İŞLEMLERE GÖRE İŞLETİM SİSTEMLERİ

1)YAPILARINA GÖRE İŞLETİM SİSTEMLERİ

A)BASİT (MONOLİTİK CEKİRDEK)

B)MİKRO CEKİRDEK (MİCROKERNEL)

C)HİBRİT CEKİRDEK

D)MODÜLER

E)SANAL MAKİNELER (VİRTUAL MACHİNES)

F)DIŞ CEKİRDEK (EXOKERNEL)

G)KATMANLI YAPI

H)SUNUCU-İSTEMCİ YAPISI

2)GERÇEKLEŞTİRDİKLERİ İŞLEMLERE GÖRE İŞLETİM SİSTEMLERİ

A)ANAÇATI (MAİNFRAME) SİSTEMLER

B)SUNUCU SİSTEMLERİ

C)ÇOK İŞLEMCİLİ SİSTEMLER
   
    C-1)ASİMETRİK ÇOKLU İŞLEMCİLİ SİSTEMLER
    C-2)SİMETRİK ÇOKLU İŞLEMCİLİ SİSTEMLER

D)KİŞİSEL BİLGİSAYAR İŞLETİM SİSTEMİ
 
    D-1)TEK KULLANICILI TEK İŞLEMLİ SİSTEMLER
    D-2)TEK KULLANICILI ÇOK İŞLEMLİ SİSTEMLER
    D-3)ÇOK KULLANICILI SİSTEMLER

E)GERÇEK ZAMANLI SİSTEMLER
 
    E-1)KATI GERÇEK ZAMANLI SİSTEMLER
    E-2)ESNEK GERÇEK ZAMANLI SİSTEMLER

F)KÜMELENMİŞ SİSTEMLER
 
    F-1)ASİMETRİK KÜMELENMİŞ
    F-2)SİMETRİK KÜMELENMİŞ

G)DAĞINIK SİSTEMLER

H)GÖMÜLÜ SİSTEMLER

I)AKILLI KART SİSTEMLERİ

İŞLETİM SİSTEMLERİNE GİRİŞ

1)LİNUX İŞLETİM SİSTEMİ

    Linux işletim sistemi çekirdek ve sistem çağrıları olmak üzere ikiye ayrılır.İşletim sisteminin uygulama yazılımları , bazı sistem yazılımları ve kabuk ile olan arayüzüne sistem çağrıları denir.Sistem yazılımlarının uygulama yazımlımlarından farklı olarak çekirdek aracılığıyla donanıma erişimi aşağıdaki şekilde gösterilmiştir.


2)WİNDOWS İŞLETİM SİSTEMİ

    Aşağıdaki şekilde yer alan Windows işletim sistemi çekirdek, NT sistem servisleri ve
API(Application Programming Interface - Uygulama Programlama Arayüzü) kısımlarından oluşmaktadır.


    Windows işletim sisteminde kabuk, bazı sistem programları ve uygulama yazılımları API aracılığıyla işletim sistemine ulaşır.Windows ortamında sistem çağrılarına karşılık gelen kavram NT sistem servisleridir.Bu servislere ancak windows sürücü geliştirme kitleri(WDDK) ile doğrudan ulaşılabilir.Bu konumda geliştirilen yazılımlar, Sistem yazılımları kategorisindedir.Son olarak çekirdek aracılığıyla yine sistem yazılımı olan fiziksel donanıma ulaşmak mümkündür.Bir çok veri tabanı geliştirme yazılımı veri ortamının yönetilmesi ve güvenliğini doğrudan çekirdeğe ulaşım ile kendisi sağlamaktadır.




C# (FORMLAR ARASI VERİ AKTARIMI 2)
















/*PROGRAMIMIZ 2.FORUMDAN COMBOBOX IMIZA YEMEKHANE FİYATLARINI EKLİYOR ÖRNEĞİN ÖĞRENCİ 10 TL BİLGİSİNİ FORM 1 E GÖNDERİP ORADA GEREKLİ HESAPLAR YAPILIYOR */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication8
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            ctur.Text = "Seciniz";

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void bekle_Click(object sender, EventArgs e)
        {
            int adet;
            bool k = Int32.TryParse(tadet.Text, out adet);
            if (k && ctur.SelectedIndex > -1)
            {
                ltur.Items.Add(ctur.Text);
                ladet.Items.Add(adet);
                double birimfiyat = (double)lf.Items[ctur.SelectedIndex];
                double tutar = adet * birimfiyat;
                ltutar.Items.Add(tutar);
                ctur.Text = "Seçiniz";
                tadet.Clear();
                guncelle();
            }

        }
        private void guncelle()
        {
            double tutar = 0;
            int adet = 0;
            for (int i = 0; i < ltur.Items.Count; i++)
            {
                tutar += (double)ltutar.Items[i];
                adet += (int)ladet.Items[i];
            }

            latoplam.Text = "Toplam: " + tutar;
            laadet.Text = "Adet: " + adet;
        }

        ListBox lt = new ListBox();
        ListBox lf = new ListBox();
        private void bsil_Click(object sender, EventArgs e)
        {
            int secilen = ltur.SelectedIndex;
            if (secilen > -1)
            {
                ltur.Items.RemoveAt(secilen);
                ladet.Items.RemoveAt(secilen);
                ltutar.Items.RemoveAt(secilen);
                guncelle();
            }
        }

        private void btanımla_Click(object sender, EventArgs e)
        {
            Form2 frm = new Form2(lt, lf);
            frm.ShowDialog();

            ctur.Items.Clear();
            for (int i = 0; i < lt.Items.Count; i++)
                ctur.Items.Add(lt.Items[i]);

            ctur.Text = "Seçiniz";
        }

    }
}
//FORM-2
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication8
{
    public partial class Form2 : Form
    {
        ListBox lf, lt;
        public Form2(ListBox _lt,ListBox _lf)
        {
            InitializeComponent();
            lt = _lt;
            lf = _lf;
            for (int i = 0; i < lt.Items.Count; i++)
            {
                ltur.Items.Add(lt.Items[i]);
                lfiyat.Items.Add(lf.Items[i]);
            }
        }

        private void bekle_Click(object sender, EventArgs e)
        {
            double fiyat;
            bool kontrol = Double.TryParse(tfiyat.Text, out fiyat);
            if (kontrol && ttur.Text.Length > 0)
            {
                ltur.Items.Add(ttur.Text);
                lfiyat.Items.Add(fiyat);

                lt.Items.Add(ttur.Text);
                lf.Items.Add(fiyat);
                ttur.Clear();
                tfiyat.Clear();
            }
        }

        private void bkapat_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

C# (FORMLAR ARASI VERİ AKTARIMI)
















using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
     
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 frm=new Form2(listBox1);
            frm.ShowDialog();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            int secilen = listBox1.SelectedIndex;
            if (secilen > -1)
                listBox1.Items.RemoveAt(secilen);
            }
    }
}
//FORM2
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form2 : Form
    {
        ListBox lx;
        public Form2(ListBox lb)
        {
            InitializeComponent();
            lx = lb;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length > 0)
            {
                lx.Items.Add(textBox1.Text);
                textBox1.Clear();
               
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

C# (KULLANICI ADI VE ŞİFRE İLE FORMLAR ARASI GEÇİŞ)




using System; //FORM-1
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
       
            Form2 dgrfrm = new Form2();
        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text=="Admin" && textBox2.Text=="gkhan496")
            {
                dgrfrm.Show();  
            }
        }
    }
}
FORM-2
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
           
        }

        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form1 frm1 = new Form1();
            frm1.Show();
        }
    }
}

C# (RANDOM KOMUTUYLA YAPILAN 2 OYUN)



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();


        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int sayac = 1;
            Random rastgele = new Random();
            int deger;
            for (int i = 0; i < 6; i++)
            {
                deger = rastgele.Next(1, 49);
                if (sayac == 1)
                    label1.Text = deger.ToString();
                if (sayac == 2)
                    label2.Text = deger.ToString();
                if (sayac == 3)
                    label3.Text = deger.ToString();
                if (sayac == 4)
                    label4.Text = deger.ToString();
                if (sayac == 5)
                    label5.Text = deger.ToString();
                if (sayac == 6)
                    label6.Text = deger.ToString();
                sayac++;

            }
        }
        int tur = 0;
        int sayac = 1;
        int o1 = 0;
        int o2 = 0;
        private void button2_Click(object sender, EventArgs e)
        {
            int tursayisi;
            tur++;
            Random zarsayi = new Random();
            int zar;
            label14.Text = tur.ToString();
            bool t = Int32.TryParse(textBox1.Text, out tursayisi);

            if (t)
            {

                if (sayac == 1)
                {
                    zar = zarsayi.Next(1, 7);
                    o1 += zar;
                    label10.Text = o1.ToString();
                    sayac++;
                    label13.Text = "OYUNCU-2";
                }
                if (sayac == 2)
                {
                    zar = zarsayi.Next(1, 7);
                    o2 += zar;
                    label11.Text = o2.ToString();
                    sayac--;
                    label13.Text = "OYUNCU-1";
                }
            }
            if (tur == tursayisi)
            {
                if (o1 > o2)
                    MessageBox.Show("1.OYUNCU KAZANDI");
                else
                    MessageBox.Show("2.OYUNCU KAZANDI");
                button2.Visible = false;
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            button2.Visible = true;
            label10.Text = "0";
            label11.Text = "0";
            tur = 0;
            textBox1.Text=" ";
            label14.Text = "0";
            o1 = 0;
            o2 = 0;
           
        }

    }
}
KODTA ANLAMADIĞINIZ YERİ İLETİŞİM BÖLÜMÜNDEN SORABİLİRİSİNİZ EN KISA ZAMANDA YANIT GELİR YETER Kİ DOĞRU MAİL OLSUN...

C# (AT YARIŞI OYUNU)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int birinciatsolauzaklik, ikinciatsolauzaklik, ucuncuatsolauzaklik;
        Random rastgele = new Random();
        private void Form1_Load(object sender, EventArgs e)
        {
            birinciatsolauzaklik = pictureBox1.Left;
            ikinciatsolauzaklik = pictureBox2.Left;
            ucuncuatsolauzaklik = pictureBox3.Left;

        }
        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            pictureBox1.Location = new Point(12, 49);
            pictureBox2.Location = new Point(12, 177);
            pictureBox3.Location = new Point(12, 319);

        }


        private void timer1_Tick(object sender, EventArgs e)
        {
            int birinciatingenisligi = pictureBox1.Width;
            int ikinciatingenisligi = pictureBox2.Width;
            int ucuncuatingenisligi = pictureBox3.Width;
            pictureBox1.Left += rastgele.Next(5, 16);
            pictureBox2.Left += rastgele.Next(5, 16);
            pictureBox3.Left += rastgele.Next(5, 16);
            int bitisuzakligi = label5.Left;
            if (birinciatingenisligi + pictureBox1.Left >= bitisuzakligi)
            {
                timer1.Enabled = false;
                MessageBox.Show("1.AT KAZANDI");
            }
            if (ucuncuatingenisligi + pictureBox3.Left >= bitisuzakligi)
            {
                timer1.Enabled = false;
                MessageBox.Show("3.AT KAZANDI");
            }
            if (ikinciatingenisligi + pictureBox2.Left >= bitisuzakligi)
            {
                timer1.Enabled = false;
                MessageBox.Show("2.AT KAZANDI");
            }
        }
    }
}
Gerekli açıklamaları yapayım...
Öncelikle 3 tane atımız var bu atlar birer hareketli gif bunları http://www.hareketligifler.net/ bulabilirsiniz...Yarışımızı sınırlamak için label lar kullandık Labelın autosize değerini false ten true ya getirdik böylece boyutunu ayarlayıp rengini değiştiridik.
Bu atları birer picture box kullanarak formumuza ekliyoruz.
Daha sonra uzaklık ve genişlik değişkenlerini belirliyoruz bu kazanan atın hangisi olduğunu ve atları hareket ettirmek için gerekli.
Bunun için timer kullanıyoruz ve kodlarımızı timerin içine yazıyoruz
Timer bize sürekli aynı kodu çalıştırıcak.
Ve sonrada picture box umuzu hareket ettirmek için rastgele adında random değer alacağımız bir değişken tanımlayıp random değer aldırdık 5 ile 16 arasında böylece ilk at 7 ikinci at 8 değerini alırsa 2. at önde olacaktır bu olay finish çizgisine yani label5 e yetişene kadar sürecek.
Tekrar oyna butonuna ise picture boxların ilk konumlarını yazdık böylece herşey baştan başlayacak
Sağlıcakla kalın...

C# (MEDİA PLAYER KULLANIMI VE RADYO YAPIMI)
















ÖNCELİKLE BOŞ BİR FORM AÇIYORUZ SONRA TOOLBOXA GELİP SAĞ TIKLIYORUZ ORDAN CHOOSE ITEMS A TIKLIYORUZ VE SONRA COM COMPONENTS TEN WİNDOWS MEDİAPLAYER İ SECİYORUZ...

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Media_Player
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            axWindowsMediaPlayer1.URL = "C:\\Users\\k\\Desktop\\model.mp3";
            /*Media playerda oynatmak istediklerinizi bu şekilde ekleyebilirsiniz
            dikkat edilmesi gereken yerler url nin uzantısı ve slash işaretleri
            */
           
        }

        private void button2_Click(object sender, EventArgs e)
        {
            axWindowsMediaPlayer1.URL = "http://kralpopwmp.radyotvonline.com:80 ";
            //mms adresini url kısmına yapıştırırsanız o radyo veya televizyon kanalına gider
            //Bu şekilde kendinize beğenidiğiniz radyo kanallarını ekleyebilirsiniz
            //Güncel radyo frekansları için http://radyodelisi.blogspot.com.tr/ ziyaret edebilrisiniz.
        }
    }
}

C# (TİMER KULLANIMI)
















using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Timer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Enabled = true; //Timer ı butondan başlattık isterseniz properties tende true olarak seçebilirsiniz
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Text = DateTime.Now.Second.ToString(); //Bu fonksiyonları kullanabilirsiniz
            //Veya kendinizin belirlediği bir sayi ile de çalıştırabilirisinz
        }

        private void button2_Click(object sender, EventArgs e)
        {
            timer2.Enabled = true;
        }
        int sayi = 0; //bu tip değişkenleri fonksiyon dışında tanımlamımız gerekir başlangıç değerleri döngü içinde yazılmaz.
        private void timer2_Tick(object sender, EventArgs e)
        {
         
            label2.Text = sayi.ToString(); //labela integer yazdıramayız...
            sayi++ //İnterval bölümünden hızını ayarlayabilirsiniz...

        }


    }

}

C# (TOOLBOXLARI ÖĞRENMEK İÇİN BASİT BİR UYGULAMA)
















using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication12
{
    public partial class Form1 : Form
    {
        double toplamF = 0.0;
        string[] meyveler = { "Elma", "Armut", "Domates", "Patlican", "Portakal" };
        double[] meyveF = { 1.0, 2.5, 2.0, 2.5, 3.0 };
     
        public Form1()
        {
            InitializeComponent();
            for (int i = 0; i < meyveler.Length;i++ )
                comboBox1.Items.Add(meyveler[i]);
            comboBox1.Text = "Seçiniz";
        }
        public void Bekle_Click(object sender, EventArgs e)
        {
         
            int kg;
            bool kadet = Int32.TryParse(textBox2.Text, out kg);

            if (kadet && kg > 0 && comboBox1.Text.Length > 0 && textBox2.Text.Length > -1)
            {
                Lav.Items.Add(comboBox1.Text);

                Lkg.Items.Add(kg + "Kg");

                for (int i = 0; i < meyveler.Length; i++)
                {
                    if (comboBox1.Text == meyveler[i])
                    {
                        LtoplamF.Items.Add(kg * meyveF[i] + "TL");
                        toplamF += meyveF[i] * kg;
                        Latutar.Text = toplamF.ToString() + "TL";
                    }

                }
                comboBox1.Text = "Seçiniz";
                textBox2.Text = "";
            }
        }
private void button1_Click_1(object sender, EventArgs e)
        {
            this.Close();
        }
         private void button2_Click(object sender, EventArgs e)
         {

             int secilen=Lav.SelectedIndex;
           
             if(secilen >-1)
             {
                 double t;
                 double k = (double)LtoplamF.Items[secilen];
                 bool kb = double.TryParse(Latutar.Text, out t);
                 t-=k;
                 Latutar.Text=t.ToString();
                 Lav.Items.RemoveAt(secilen);
                 Lkg.Items.RemoveAt(secilen);
                 LtoplamF.Items.RemoveAt(secilen);
                 
             }
         }
    }
}

Spring Boot Uygulamasını Heroku üzerinde Deploy Etme

Bu yazımızda sizlere spring boot ile yazılmış basit bir Rest api'nin heroku üzerinde nasıl deploy edebileceğimizi göstereceğim. Önce ...