<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Engineering, SRE &amp; AI on Tuna Cinsoy</title><link>https://tunacinsoy.com/areas/engineering/</link><description>Recent content in Engineering, SRE &amp; AI on Tuna Cinsoy</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><lastBuildDate>Fri, 26 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tunacinsoy.com/areas/engineering/index.xml" rel="self" type="application/rss+xml"/><item><title>Software Testing</title><link>https://tunacinsoy.com/posts/software-testing/</link><pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/software-testing/</guid><description>&lt;p&gt;&lt;strong&gt;Q) What is Google Testing Pyramid? Which components does it include?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tunacinsoy.com/posts/software-testing/google-testing-pyramid.png" alt="testing-pyramid"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unit Tests&lt;/strong&gt;: Tests individual components of a software - a function, an API call etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Integration Tests&lt;/strong&gt;: Tests a combination of components of a software - two microservices communication, backend-to-db communication etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;End-to-End Tests&lt;/strong&gt;: Tests the whole system, from begining until the end - an order takes place, front-end to backend, microservices communication, write to db etc.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) What are the metrics for unit test?&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Harness Engineering</title><link>https://tunacinsoy.com/posts/harness-engineering/</link><pubDate>Tue, 23 Jun 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/harness-engineering/</guid><description>&lt;p&gt;&lt;strong&gt;Q) What are the five layers/components of harness engineering?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These are &lt;strong&gt;task specification (instructions), context provision with tools, execution environment, verification feedback and state management&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) What are the additional components that need to be in the repository?&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;General Files:
&lt;ul&gt;
&lt;li&gt;AGENTS.md -&amp;gt; It must contain information about the overall project, tech stack&lt;/li&gt;
&lt;li&gt;CONSTRAINTS.md -&amp;gt; Directives that start with &amp;ldquo;MUST&amp;rdquo; or &amp;ldquo;MUST NOT&amp;rdquo; - clearly define the hard constraints of the project. (can be embedded in AGENTS.md file too, if the line count does not exceed 200 in AGENTS.md)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Specific Files:
&lt;ul&gt;
&lt;li&gt;ARCHITECTURE.md -&amp;gt; File that contains description about each microservice&amp;rsquo;s, i.e. small executable component, responsibilities, dependencies and the state of readiness (which tests need to be passed, so that this microservice is ready for production?)&lt;/li&gt;
&lt;li&gt;PROGRESS.md -&amp;gt; Tracking the current microservice progress (could be in a checklist format, similar to what we have in spec-kit&amp;rsquo;s tasks phase)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) What are the features of AGENTS.md file?&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Cryptography</title><link>https://tunacinsoy.com/posts/cryptography/</link><pubDate>Mon, 15 Jun 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/cryptography/</guid><description>&lt;p&gt;&lt;strong&gt;Q) How does digital signature work?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s try to explain it with an example use case:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sender:&lt;/strong&gt; has a text “send 50k to a supplier” -&amp;gt; using a hashing algorithm, sha-256, create unique hash of it -&amp;gt; using private key, encrypt (sign) this hash, and create the digital signature -&amp;gt; send both the text and the digital signature&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Receiver:&lt;/strong&gt; receive “send 50k to a supplier” and a digital signature -&amp;gt; decrypt (verify) digital signature with public key of sender -&amp;gt; now receiver has a hash and and a text “send 50k to a supplier” -&amp;gt; using the same sha-256 hashing algorithm, create unique has of the text -&amp;gt; look if this hash and the hash received from sender match -&amp;gt; if yes, then the was not tampered&lt;/p&gt;</description></item><item><title>GitHub Copilot</title><link>https://tunacinsoy.com/posts/github-copilot/</link><pubDate>Thu, 23 Apr 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/github-copilot/</guid><description>&lt;p&gt;&lt;strong&gt;Q) How to use spec-kit templates from copilot-cli?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It is not possible to run the spec-kit commands such as &lt;code&gt;/speckit.specify&lt;/code&gt; directly from the github CLI - so the workaround is to attach another wrapper around the cmd.&lt;/p&gt;
&lt;p&gt;First of all, we need to initialize specify using:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;specify init . --integration copilot
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Afterwards, within github cli, we can invoke speckit prompts with the following text block:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="l"&gt;Follow instructions in speckit.&amp;lt;SPEC_KIT_PHASE&amp;gt;.prompt.md &amp;lt;PROMPT_IF_NEEDED&amp;gt;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&lt;/span&gt;&lt;span class="c"&gt;# Example&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&lt;/span&gt;&lt;span class="l"&gt;Follow instructions in speckit.plan.prompt.md &amp;#34;Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums are never in other nested albums. Within each album, photos are previewed in a tile-like interface.&amp;#34;&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;</description></item><item><title>Golang</title><link>https://tunacinsoy.com/posts/golang/</link><pubDate>Mon, 16 Feb 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/golang/</guid><description>&lt;p&gt;&lt;strong&gt;Q) How many different numeric types in Golang?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Go has 15 different numeric types that fall into the three categories: &lt;code&gt;int&lt;/code&gt;, &lt;code&gt;float&lt;/code&gt;, and &lt;code&gt;complex&lt;/code&gt;. That means there are fifteen different ways to describe a number in Go. This includes 11 different integer types, 2 different floating-point types, and 2 different complex number types.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tunacinsoy.com/posts/golang/e6ad92df970de1827d78a7b89ca549a9.png" alt=""&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) What is &lt;code&gt;defer&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We can delay a function call to the end of the current scope by using the &lt;code&gt;defer&lt;/code&gt; keyword. &lt;code&gt;defer&lt;/code&gt; tells Go to run a function, but at the end of the current function. This is useful for logging, file writing, and other utilities.&lt;/p&gt;</description></item><item><title>Python</title><link>https://tunacinsoy.com/posts/python/</link><pubDate>Mon, 16 Feb 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/python/</guid><description>&lt;p&gt;&lt;strong&gt;Q) What are the steps to run a python app locally?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In order to run a python application locally, firstly we need to activate venv using &lt;code&gt;python3 -m venv venv&lt;/code&gt; command. Then, we need activate it using &lt;code&gt;source venv/bin/activate&lt;/code&gt; command. And then, we can install &lt;code&gt;pip install -r requirements.txt&lt;/code&gt;, then we can run our app using &lt;code&gt;python3 app.py&lt;/code&gt; OR &lt;code&gt;flask run&lt;/code&gt;. After we are done with our app, we can &lt;code&gt;deactivate&lt;/code&gt; venv.&lt;/p&gt;</description></item><item><title>Large Language Models</title><link>https://tunacinsoy.com/posts/llm/</link><pubDate>Wed, 07 Jan 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/llm/</guid><description>&lt;p&gt;&lt;strong&gt;Q) What is &lt;code&gt;context window&lt;/code&gt;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The context window of a generative AI model refers to the maximum amount of information the model can consider at once when generating a response. It is usually measured in tokens (words and punctuation broken down into smaller chunks).&lt;/p&gt;
&lt;h3 id="examples"&gt;Examples:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Short Context Window (e.g., 512 tokens)&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Imagine you’re writing a story, but the model can only &amp;ldquo;remember&amp;rdquo; the last 512 tokens (roughly 300-400 words). As you keep adding text, the model starts to &amp;ldquo;forget&amp;rdquo; earlier parts of the story, which could lead to inconsistencies or a lack of coherence with the plot introduced earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Longer Context Window (e.g., 4096 tokens)&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Now, suppose the model can handle 4096 tokens (about 2500-3000 words). In this case, it could keep track of more details from the start of a conversation, a complex story, or a long document, allowing it to generate content that maintains a consistent narrative or answers questions based on previous information.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="real-world-use"&gt;Real-World Use:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Chat Applications&lt;/strong&gt;: In a long conversation with a chat model, a larger context window allows the model to recall earlier messages, making its responses relevant and coherent even after several exchanges.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Document Summarization&lt;/strong&gt;: For summarizing a long article, a model with a longer context window can process more of the content at once, producing a more accurate summary.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A larger context window improves the model&amp;rsquo;s ability to maintain focus and accuracy, but it also requires more computational power.&lt;/p&gt;</description></item><item><title>Grafana</title><link>https://tunacinsoy.com/posts/grafana/</link><pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/grafana/</guid><description>&lt;p&gt;&lt;strong&gt;Q) What is Grafana?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Grafana is a leading open source platform for observability and monitoring, offering dynamic dashboards and robust alerting capabilities. It enables users to visualize data from diverse sources while setting up alerts for proactive issue detection.&lt;/p&gt;
&lt;p&gt;Following two screenshots show how a sample &lt;strong&gt;dashboard&lt;/strong&gt; and an &lt;strong&gt;alert rule&lt;/strong&gt; look like in Grafana.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tunacinsoy.com/posts/grafana/dashboard.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://tunacinsoy.com/posts/grafana/alert-rules.png" alt=""&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;This&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;determines&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;traffic&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;all&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;transactions&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;passing&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;through&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Istio&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ingress&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;gateway&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;frontend&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;microservice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;This&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;measures&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Istio&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filtered&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;by&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;mutual&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TLS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;specific&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;source&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;over&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;last&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;grouped&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;by&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;source&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;workload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;and&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;then&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;rounds&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cleaner&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;presentation&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;&lt;/span&gt;&lt;span class="n"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;irate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;istio_requests_total&lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;&lt;span class="n"&gt;connection_security_policy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;mutual_tls&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;destination_service&lt;/span&gt;&lt;span class="o"&gt;=~&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;frontend.blog-app.svc.cluster.local&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;reporter&lt;/span&gt;&lt;span class="o"&gt;=~&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;destination&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;source_workload&lt;/span&gt;&lt;span class="o"&gt;=~&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;istio-ingress&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;source_workload_namespace&lt;/span&gt;&lt;span class="o"&gt;=~&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;istio-ingress&amp;#34;&lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;by&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source_workload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;source_workload_namespace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;response_code&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;001&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;</description></item><item><title>OAuth</title><link>https://tunacinsoy.com/posts/oauth/</link><pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/oauth/</guid><description>&lt;p&gt;&lt;strong&gt;Q) How does actual flow of OAuth look like?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s try to understand how that works with a sample scenario.&lt;/p&gt;
&lt;h3 id="the-actors"&gt;The Actors&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;User:&lt;/strong&gt; You&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Client App:&lt;/strong&gt; &amp;ldquo;PrintMaster&amp;rdquo; (The printing service)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Authorization Server:&lt;/strong&gt; Google (Issues the keys)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Resource Server:&lt;/strong&gt; Google Photos API (Holds the data)&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="step-1-the-authorization-request-browser"&gt;Step 1: The Authorization Request (Browser)&lt;/h4&gt;
&lt;p&gt;The app needs to send you to Google to ask for permission. This isn&amp;rsquo;t a background API call yet; it&amp;rsquo;s a URL your browser visits.&lt;/p&gt;</description></item><item><title>VS Code</title><link>https://tunacinsoy.com/posts/vscode/</link><pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/vscode/</guid><description>&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Comment out a block.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + k + c
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Uncomment selected block.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + k + u
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Indent code.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + Shift + I
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Select all occurrences of a word.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + Fn + F2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Open current file in separate split&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Search Copilot, and add or delete item for copilot completions&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Enable/Disable Copilot completion&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ctrl + ,
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Format the code&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Shift + Alt + F
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Site Reliability Engineering</title><link>https://tunacinsoy.com/posts/site-reliability-engineering/</link><pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/site-reliability-engineering/</guid><description>&lt;p&gt;&lt;strong&gt;Q) How do site reliability engineers differ from software engineers?&lt;/strong&gt;
For google, site reliability engineers should seek opportunities to automate manual tasks (toils), and they possess the requisite skills to develop software solutions, even when faced with complex challenges. So, SREs are software engineer that does the ops part.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) How to interpret SLO measurements?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;95th percentile of response time has exceeded the service-level objective (SLO) by %10&amp;rdquo; means that 5 percent of response times took more than 110 * SLO / 100 seconds. So if SLO is 1 second, 5 percent of response times took more than 1.1 seconds.&lt;/p&gt;</description></item><item><title>Concurrent &amp; Parallel Programming</title><link>https://tunacinsoy.com/posts/concurrent-parallel-programming/</link><pubDate>Sun, 09 Nov 2025 00:00:00 +0000</pubDate><guid>https://tunacinsoy.com/posts/concurrent-parallel-programming/</guid><description>&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) Example Multithreading Problems&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Producer-Consumer Problem&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Implement a multithreaded program where producer threads generate data and put it into a shared buffer, and consumer threads process the data.&lt;/li&gt;
&lt;li&gt;Use threading locks or semaphores to manage access to the shared buffer.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Thread-safe Data Structures&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Create a custom thread-safe data structure, like a stack or queue, without using built-in thread-safe classes.&lt;/li&gt;
&lt;li&gt;Implement synchronization to ensure data integrity during concurrent access.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multithreaded File Processing&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Write a program that reads and processes multiple files concurrently.&lt;/li&gt;
&lt;li&gt;For example, count word frequencies across multiple text files using multiple threads.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Simple Web Crawler&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Develop a multithreaded web crawler that fetches pages from a list of URLs concurrently.&lt;/li&gt;
&lt;li&gt;Handle issues like avoiding duplicate downloads and managing thread lifecycles.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parallel Computation Task&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Implement a computationally intensive task (e.g., calculating factorials or Fibonacci numbers) using multiple threads or processes to improve performance.&lt;/li&gt;
&lt;li&gt;Use the &lt;code&gt;multiprocessing&lt;/code&gt; module for CPU-bound tasks to bypass the Global Interpreter Lock (GIL).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Client-Server Application&lt;/strong&gt;:
&lt;ul&gt;
&lt;li&gt;Build a simple client-server application using sockets where the server can handle multiple clients concurrently.&lt;/li&gt;
&lt;li&gt;Utilize threading to manage multiple client connections.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Q) Multithreading vs. Multiprocessing&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>