<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Buğra Öztürk on Medium]]></title>
        <description><![CDATA[Stories by Buğra Öztürk on Medium]]></description>
        <link>https://medium.com/@sbozturk?source=rss-462b5e14140------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*l_h-IC7u1mtHcsKtbncGzQ.jpeg</url>
            <title>Stories by Buğra Öztürk on Medium</title>
            <link>https://medium.com/@sbozturk?source=rss-462b5e14140------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:01:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sbozturk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Guide for MQTT Between Ubuntu Machines]]></title>
            <link>https://medium.com/@sbozturk/simple-guide-for-mqtt-on-ubuntu-6139b5b8ba2a?source=rss-462b5e14140------2</link>
            <guid isPermaLink="false">https://medium.com/p/6139b5b8ba2a</guid>
            <category><![CDATA[paho]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[mosquitto]]></category>
            <dc:creator><![CDATA[Buğra Öztürk]]></dc:creator>
            <pubDate>Sun, 22 Jan 2023 19:06:03 GMT</pubDate>
            <atom:updated>2023-01-22T19:09:15.438Z</atom:updated>
            <content:encoded><![CDATA[<p>MQTT (Message Queuing Telemetry Transport) is a lightweight, publish-subscribe messaging protocol that is designed for use on low-bandwidth networks. It is often used in Internet of Things (IoT) and other distributed systems to enable communication between devices, sensors, and other systems.</p><p>In MQTT, there are three main components: clients, brokers, and topics. Clients are devices or systems that publish data or subscribe to receive data. Brokers are servers that receive data from clients and route it to other clients that have subscribed to the same topics. Topics are used to categorize and filter data that is published and subscribed to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*5JNGVLZTOXQ97_On2a7x-A.jpeg" /><figcaption>MQTT working diagram.</figcaption></figure><p>MQTT has a number of features that make it well-suited for use in IoT and other distributed systems:</p><ul><li>It uses a publish-subscribe model, which allows clients to send and receive data without the need for a direct connection between them.</li><li>It is designed to be lightweight, with a small code footprint and low overhead, making it suitable for use on devices with limited resources.</li><li>It supports different quality of service (QoS) levels, allowing clients to specify the level of reliability they need for their data transmission.</li><li>It has built-in security features, including support for TLS (Transport Layer Security) encryption and authentication.</li></ul><p>Overall, MQTT is a widely-used protocol that enables communication and data exchange in IoT and other distributed systems.</p><blockquote>To use MQTT on to different devices, you need Mosquitto and Paho Library for Python on both.</blockquote><h3><strong>Mosquitto Installation</strong></h3><p>Mosquitto is an open source message broker that implements the MQTT protocol. Here is a general guide on how to install and set up Mosquitto on Ubuntu:</p><pre>sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa<br>sudo apt-get update<br>sudo apt-get install mosquitto<br>sudo apt-get install mosquitto-clients</pre><p>To enable the Mosquitto service to start automatically on boot. You can do this using the following command:</p><pre>sudo systemctl enable mosquitto</pre><p>To start the Mosquitto service. You can do this using the following command:</p><pre>sudo systemctl start mosquitto</pre><p>To check the status of the Mosquitto service. You can do this using the following command:</p><pre>sudo systemctl status mosquitto</pre><p>This should show you whether the Mosquitto service is running and any relevant log messages.</p><p>Lastly, to stop the Mosquitto service, you can use the following command:</p><pre>sudo systemctl stop mosquitto</pre><h3>Paho Library Installation</h3><p>The Paho Python Client is a client library for the MQTT (Message Queueing Telemetry Transport) protocol, which is a lightweight, publish-subscribe messaging protocol that is designed for use on low-bandwidth networks. The Paho library provides an easy-to-use API for clients to connect to an MQTT broker and publish or subscribe to messages.</p><p>The Paho library is open source and available under the Eclipse Public License. It is supported on a number of platforms, including Python 2.7 and 3.x, and can be used in a variety of applications, including IoT devices, messaging systems, and other distributed systems.</p><p>To use the Paho library in Python, you will need to install it first. You can do this using the pip package manager by running the following command:</p><pre>pip install paho-mqtt</pre><p>Once the Paho library is installed, you can use it in your Python code to connect to an MQTT broker, publish and subscribe to messages, and manage the connection. For example, here is a simple Python script that publishes a message:</p><pre>import paho.mqtt.client as mqtt<br><br># Callback function for when the client connects to the broker<br>def on_connect(client, userdata, flags, rc):<br>    print(&quot;Connected with result code &quot; + str(rc))<br><br># Create a new MQTT client<br>client = mqtt.Client()<br># Set the callback function for when the client connects to the broker<br>client.on_connect = on_connect<br># Connect to the broker<br>client.connect(&quot;localhost&quot;, 1883)<br><br>while True:<br>    # Publish a message to the &quot;test&quot; topic<br>    client.publish(&quot;test&quot;, &quot;Hello, world!&quot;)<br>    # Wait 5 seconds before publishing the next message<br>    time.sleep(5)</pre><p>Here is a simple Python script that connects to a broker:</p><pre>import paho.mqtt.client as mqtt<br><br># Callback function for when the client connects to the broker<br>def on_connect(client, userdata, flags, rc):<br>    print(&quot;Connected with result code &quot; + str(rc))<br>    # Subscribe to the &quot;test&quot; topic<br>    client.subscribe(&quot;test&quot;)<br><br># Callback function for when a message is received from the broker<br>def on_message(client, userdata, msg):<br>    print(f&quot;Received message &#39;{msg.payload}&#39; on topic &#39;{msg.topic}&#39;&quot;)<br><br># Create a new MQTT client<br>client = mqtt.Client()<br># Set the callback functions<br>client.on_connect = on_connect<br>client.on_message = on_message<br># Connect to the broker<br>client.connect(&quot;localhost&quot;, 1883)<br># Run the client loop to process MQTT events<br>client.loop_forever()</pre><p>Note that in this example, both devices are connecting to a local MQTT broker running on the same machine. In a real-world scenario, the devices would likely be connecting to a remote MQTT broker over the network.</p><p>Finally, if you are getting a connection refused error, you should edit configuration file in <strong>/etc/mosquitto/conf.d/mosquitto.conf</strong> directory and add those lines:</p><pre>allow_anonymous true<br>listener 1883 0.0.0.0</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6139b5b8ba2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Word’e Yeni Referans Stili Ekleme]]></title>
            <link>https://medium.com/@sbozturk/microsoft-worde-yeni-referans-stili-ekleme-b4a90a05cc5b?source=rss-462b5e14140------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4a90a05cc5b</guid>
            <category><![CDATA[referans]]></category>
            <category><![CDATA[reference]]></category>
            <category><![CDATA[microsoft-word]]></category>
            <dc:creator><![CDATA[Buğra Öztürk]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 08:57:27 GMT</pubDate>
            <atom:updated>2021-09-27T08:57:27.953Z</atom:updated>
            <content:encoded><![CDATA[<p>Bir süredir yüksek lisans tezimi yazıyorum. Üniversitemin tez yazım kılavuzunda istenilen referans stili APA7 fakat Microsoft tarafında hala APA6 kullanılıyor. Microsoft forumlarında referans stili güncellemesiyle ilgili bir tarih verilmiyor ve APA7 referans stilini Word’e nasıl entegre edilebileceği paylaşılmıyor. Bu yazıda Word’e nasıl referans stili ekleyebileceğinizi paylaşacağım.</p><p>Öncelikle eklemek istediğiniz referans stilini internetten xsl formatında indirmeniz gerekiyor. Daha sonra indirdiğiniz dosyayı işletim sisteminize veya Microsoft Office versiyonunuza göre aşağıdaki dizine kopyalamınız lazım.</p><h3>MacOS:</h3><blockquote>/Applications/Microsoft Word.app/Contents/Resources/Style,</blockquote><h3>Windows:</h3><h4>Office 13 öncesi:</h4><blockquote>/Program Files/Microsoft Office/OfficeX /Bibliography/Style,</blockquote><h4>Office 13 sonrası:</h4><blockquote>C:\Users\THE_USERNAME*\AppData\Roaming\Microsoft\Bibliography\Style</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*UU0Fh_mVNz9SXQEfN-hDZw.png" /><figcaption>APA7 eklenmiş referans stilleri listesi.</figcaption></figure><p>Word’e tekrar giriş yaptığınız zaman eklemiş olduğunuz referans stilini bulabilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4a90a05cc5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Wear 2.0'da ki yenilikler]]></title>
            <link>https://medium.com/@sbozturk/android-wear-2-0da-ki-yenilikler-96557fce0f68?source=rss-462b5e14140------2</link>
            <guid isPermaLink="false">https://medium.com/p/96557fce0f68</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[wearables]]></category>
            <dc:creator><![CDATA[Buğra Öztürk]]></dc:creator>
            <pubDate>Sun, 22 May 2016 23:05:18 GMT</pubDate>
            <atom:updated>2016-05-22T23:05:18.405Z</atom:updated>
            <content:encoded><![CDATA[<p>Teknolojinin gelişmesiyle beraber akıllı saatlerde hayatımızda hızlıca yer edindi. Günümüzde nereye bakarsak bakalım bu saatlerden bir tane görmemiz mümkün. Tabii ki akıllı saatlerin bu kadar yaygınlaşmasıyla birlikte, bu saatlerin nasıl olması gerektiği ve nasıl çalışması gerektiği hakkında birçok fikir ortaya atıldı. Büyük firmalar bu fikirleri değerlendirip, üretimlerini bu yönde yapsalarda kullanıcıların “Akıllı saatler çok karışık” ya da “Akıllı saatler zaten telefonun aynısı, ne gerek var?” yorumlarından kurtulamadılar.</p><p>Google’da diğer firmalar gibi eleştirilerden kurtulamadı. Piyasadaki ürünlerin büyük çoğunluğunda kullanılan Android Wear platformu kullanıcılar tarafından karmaşık bulundu, üçüncü şahıs geliştiriciler tarafından fazla desteklenmedi.</p><p>Google geçtiğimiz günlerde Android Wear 2.0&#39;ı tanıtarak bu şikayetler üzerinde durduğunu kullanıcılara gösterdi. Google, Android Wear 2.0&#39;a yeni özellikler ekleyip, telefona benzemesini sağlamak yerine, önceden de saatte bulunan özellikleri alıp geliştirmeyi tercih etmiş.</p><h4>Bağımsız Uygulamalar</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1bcsIX1pHlg555GCDzKEg.png" /></figure><p>Bu yeniliklerden ilki Android Wear 2.0 güncellemesinden önce saat telefona bağlı olmak zorundaydı. Bağlantı kesildiği zaman saat aksesuar olmaktan öteye geçemiyordu. Güncellemeyle birlikte gelen bulut özelliği sayesinde saatte bulunan uygulamalar telefona ihtiyaç duymadan çalışabilecek. Google attığı bu adım sayesinde saatin bir aksesuardan fazlası olduğunu bizlere gösterdi.</p><h4>Mesajlaşma</h4><p>Kullanıcının yaşadığı en büyük sorunlarından bir tanesi gelen mesajlara ya da maillere saat üzerinden sadece konuşarak cevap verebilmesiydi. Ortamın gürültülü olması durumda ise cevap vermek imkansız hale geliyordu. Bu yüzden kullanıcılar üçüncü parti yazılımlar yükleyip, bu sorunu çözmeye çalışıyordu. Gelen güncellemeyle birlikte üçüncü parti bir uygulamaya gerek duymadan el yazısıyla ya da klavye yardımıyla cevap verebiliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*mIMrq_6wf2MdQb0_HgdzXQ.jpeg" /><figcaption>Şimdilik Türkçe’yi desteklemese de gelecek güncellemelerle birlikte Türkçe dil desteği gelebilir.</figcaption></figure><h4>Fitness</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*VeckPIjWh6wN6eWldfiTIw.png" /></figure><p>Güncelleme öncesinde yaşanan bir diğer problem ise kullanıcı spor aktivitelerini takip etmek için yaptığı aktiviteyi seçmek zorunda kalıyordu. Yoksa koşması durumunda bile saat bunu yürüme olarak algılayabiliyordu. Artık kullanıcı hiçbir değişiklik yapmadan, Google Fit aktiviteleri algılayıp, bunun doğrultusunda verileri depolayabilecek.</p><h4>Kullanıcı Arayüzü</h4><p>Google’ın yaptığı değişikler sadece bunlarla da kısıtlı kalmadı. Android Wear’da kullandığı kullanıcı arayüzünü de değiştirdi. Güncellemeyle birlikte kullanıcıyı farklı bir bildirim ekranı ve uygulama menüsü karşılıyor. Yeni arayüzde dikkat çeken ilk şey tabii ki kullanılan koyu tema ve sonrasında ise yeni uygulama menüsü oldu. Kullanışsız ve sıradan uygulama menüsü yerini daha kullanışlı bir menüye bıraktı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0Fsv0aFj2BWaGCF868QoA.jpeg" /></figure><h4>Bildirimler</h4><p>Google’ın arayüzde yaptığı bir diğer tasarım ise bildirim ekranına oldu. Güncelleme öncesinde bildirimler saat yüzünün yarısını kaplayan kartlarla geliyordu ve kullanıcı onlara bakmadan gitmiyordu. Yeni güncellemeyle birlikte, gelen bildirim ekranda bir kez gözüküyor ve göz ardı etmemiz durumunda ise kayboluyor. Saate sonradan bakılması durumunda küçük bir ikon beliriyor ve kullanıcının bildirimi unutmamasını sağlıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FHShx4PW4cdGLH19xLvQag.png" /></figure><h4>Saat Yüzü</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*WJ_zKZlcMnK9WrJEfmMq9g.jpeg" /></figure><p>Tasarım konusunda yapılan bir diğer değişiklik ise saat yüzlerinin daha kullanışlı hale getirilmesi oldu. Güncelleme öncesinde kullanıcı saat yüzlerinde bir değişiklik yapamıyordu. Saat yüzünde adım sayısı, tarih gibi özellikler olmaması durumda, kullanıcı bu bilgileri kontrol etmek için uygulamaya girmek zorundaydı. Güncellemeyle birlikte bu sıkıntıyı ortadan kaldıran Google, kullanıcıya arayüzlerde değişiklik yapma şansı tanıdı. Bu sayede kullanıcı sıradan bir saat yüzünü, istediği uygulamadan bilgiler göstererek işlevsel bir yüze dönüştürebilecek.</p><p>Google’ın yaptığı son değişiklik ise kaydırma hareketlerini kaldırması. Kullanıcı artık uygulama menüsüne girmek istediğinde veya herhangi bir uygulamadan çıkmak istediğinde kaydırmak yerine saatte bulunan tuşa basmak zorunda. Yapılan değişikliklerden sonra bu değişikliği görmezden gelmek mümkün bence.</p><blockquote>Android Wear 2.0 hakkında daha fazla bilgi almak veya geliştirici önizlemesini indirmek için <a href="http://g.co/wearpreview">Android Developers sitesini</a> ziyaret edebilirsiniz.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FL_Z3gSXGsyI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DL_Z3gSXGsyI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FL_Z3gSXGsyI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ab4e142ab662b3b1e9d1e0b81dd5ce0/href">https://medium.com/media/9ab4e142ab662b3b1e9d1e0b81dd5ce0/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96557fce0f68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>