<?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 Shivanjan Chakravorty on Medium]]></title>
        <description><![CDATA[Stories by Shivanjan Chakravorty on Medium]]></description>
        <link>https://medium.com/@glitchfix?source=rss-964b0c85a13b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Shivanjan Chakravorty on Medium</title>
            <link>https://medium.com/@glitchfix?source=rss-964b0c85a13b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:32:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@glitchfix/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[Exploring eBPF: Harnessing the Power of In-Kernel Programmability]]></title>
            <link>https://medium.com/@glitchfix/exploring-ebpf-harnessing-the-power-of-in-kernel-programmability-90b7da691563?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b7da691563</guid>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[ebpf]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[linux-kernel-module]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 13:02:08 GMT</pubDate>
            <atom:updated>2023-06-10T13:02:08.112Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wished you could customize the behavior of your operating system without modifying its source code or rebooting the system? Look no further than eBPF (extended Berkeley Packet Filter), a revolutionary technology that brings in-kernel programmability to modern operating systems.</p><p><strong>Understanding eBPF</strong></p><p>At its core, eBPF is a virtual machine (VM) designed for in-kernel programmability. Initially developed for network packet filtering, eBPF has evolved to become a versatile tool for a wide range of system tracing, monitoring, and performance analysis tasks.</p><p><strong>Unleashing its Potential</strong></p><p>With eBPF, developers can write small programs, known as eBPF programs, that are loaded into the kernel. These programs can be executed on specific events or hooks, such as network packets, system calls, or kernel events, allowing for fine-grained monitoring and control of various aspects of the system.</p><p><strong>Safety and Flexibility</strong></p><p>One of the key advantages of eBPF is its focus on safety and isolation. eBPF programs are executed within a restricted virtual machine environment that enforces runtime safety checks. This ensures that these programs do not crash the system or compromise its stability, making eBPF a reliable and secure technology.</p><p>Moreover, eBPF programs offer flexibility by allowing developers to write code using a restricted set of instructions. They can be compiled from higher-level languages like C or Rust into a special bytecode, which is then loaded into the kernel. This dynamic loading of eBPF programs enables runtime customization without requiring a system reboot or modification of the kernel itself.</p><p><strong>Practical Applications</strong></p><p>eBPF has gained popularity due to its wide range of applications. It can be used for network traffic analysis, security monitoring, system tracing, performance analysis, and dynamic instrumentation. Its versatility enables the development of powerful tools like packet filters, network load balancers, performance profilers, and custom observability solutions.</p><p><strong>Linux Kernel Support</strong></p><p>eBPF is closely associated with the Linux kernel and has witnessed significant adoption within the ecosystem. It has been included in the mainline kernel since version 3.18 and has continued to evolve with ongoing development and improvements.</p><p><strong>Bridging the Gap between Kernel and User-Space</strong></p><p>eBPF programs can communicate with user-space applications through specialized interfaces provided by the kernel. For example, the bpf(2) system call or the libbpf library facilitates seamless integration between kernel-level tracing and user-level tools. This integration allows for powerful and comprehensive system analysis and monitoring.</p><p><strong>Embrace the Power of eBPF</strong></p><p>In conclusion, eBPF is a game-changing technology that empowers developers, system administrators, and researchers to extend and customize the behavior of the Linux kernel. Its versatility, safety, and performance make it a valuable tool for a wide range of use cases. So why not dive into the world of eBPF and explore its endless possibilities?</p><p>Start harnessing the power of eBPF today!</p><p>In conclusion, eBPF is a game-changing technology that empowers developers, system administrators, and researchers to extend and customize the behavior of the Linux kernel. Its versatility, safety, and performance make it a valuable tool for a wide range of use cases. So why not dive into the world of eBPF and explore its endless possibilities?</p><p>Start harnessing the power of eBPF today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b7da691563" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum Computing in Golang: An Introduction]]></title>
            <link>https://medium.com/@glitchfix/quantum-computing-in-golang-an-introduction-238ea9850278?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/238ea9850278</guid>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[qubit]]></category>
            <category><![CDATA[grovers-algorithm]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 12:57:41 GMT</pubDate>
            <atom:updated>2023-06-10T12:57:41.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum computing is an exciting and rapidly evolving field, with the potential to revolutionize industries ranging from pharmaceuticals to logistics. Golang, or Go, is a programming language that is growing in popularity due to its efficiency and versatility. In this post, we’ll explore how Golang can be used in the field of quantum computing.</p><h3>The Basics of Quantum Computing</h3><p>Quantum computing is a type of computing that uses quantum-mechanical phenomena, such as superposition and entanglement, to perform operations on data. In contrast to classical computing, which uses bits that can be either 0 or 1, quantum computing uses qubits, which can exist in a superposition of both 0 and 1 at the same time. This allows quantum computers to perform certain types of calculations faster than classical computers.</p><h3>Quantum Computing in Golang</h3><p>Golang is a popular programming language for quantum computing due to its performance and ease of use. The Quantum Development Kit (QDK), which is Microsoft’s quantum development framework, provides a Golang library for quantum computing. The QDK Golang library includes features such as qubit operations, quantum gates, and quantum circuits.</p><p>One example of a quantum computing algorithm that can be implemented in Golang is Grover’s algorithm, which is used for searching unsorted databases. Grover’s algorithm is faster than classical algorithms, and it has potential applications in fields such as cryptography and optimization.</p><h3>Challenges and Future Directions</h3><p>Quantum computing is still in its early stages, and there are many challenges that need to be addressed before it can become widely adopted. One challenge is the development of more powerful quantum hardware. Another challenge is the development of more efficient algorithms that can take advantage of the unique properties of quantum computing.</p><p>In the field of quantum computing in Golang, one challenge is the lack of a standardized quantum computing library. While the QDK Golang library provides many useful features, there is a need for a standardized library that can be used across different platforms.</p><h3>Conclusion</h3><p>Quantum computing is an exciting and rapidly evolving field, and Golang is a powerful programming language that can be used in this field. Golang’s performance and ease of use make it an attractive option for quantum computing developers. While there are still many challenges to overcome, the potential applications of quantum computing are vast, and Golang is well-positioned to play a role in this exciting new field.</p><p>Whether you’re a seasoned quantum computing developer or just starting out, Golang provides a powerful and versatile tool for exploring the possibilities of this fascinating field.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=238ea9850278" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking-Proof: The Security Features of Golang]]></title>
            <link>https://medium.com/@glitchfix/hacking-proof-the-security-features-of-golang-1fb88de4b21?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fb88de4b21</guid>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[memory-safety]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Thu, 13 Apr 2023 14:31:28 GMT</pubDate>
            <atom:updated>2023-04-13T14:31:28.515Z</atom:updated>
            <content:encoded><![CDATA[<p>Golang, or Go, is a programming language that is known for its simplicity, concurrency, and efficiency. However, Golang is also designed with security in mind, and includes several features that make it a secure choice for building applications.</p><h3>1. Memory Safety</h3><p>Golang includes built-in memory safety features that help prevent common security vulnerabilities such as buffer overflows and memory leaks. Golang’s garbage collector automatically manages memory allocation and deallocation, reducing the likelihood of these types of vulnerabilities.</p><h3>2. Strong Typing</h3><p>Golang is a strongly typed language, which means that the type of a variable must be specified at compile time. This helps prevent type-related security vulnerabilities such as SQL injection attacks.</p><h3>3. Native Concurrency</h3><p>Concurrency is a key feature of Golang, and it is designed to make it easy to write concurrent code without introducing vulnerabilities such as race conditions. Golang’s built-in concurrency primitives, such as goroutines and channels, help ensure that concurrent code is executed safely.</p><h3>4. Cryptography Libraries</h3><p>Golang includes several built-in cryptography libraries, such as the crypto and tls packages. These libraries provide secure implementations of common cryptographic algorithms and protocols, such as AES encryption and TLS.</p><h3>5. Code Analysis Tools</h3><p>Golang includes several tools that can be used to analyze code for security vulnerabilities. For example, the go vet tool can be used to detect potential issues in Go code, such as unused variables or incorrect function signatures.</p><h3>Conclusion</h3><p>Golang is a secure programming language that includes several built-in features that help prevent common security vulnerabilities. From memory safety to cryptography libraries to code analysis tools, Golang provides a solid foundation for building secure applications.</p><p>As with any programming language, it is still important to follow best practices for secure coding, such as input validation and proper error handling. However, by using Golang’s built-in security features, developers can build applications that are resistant to many common types of attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fb88de4b21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IPC: Shared memory concepts of C in Golang]]></title>
            <link>https://medium.com/@glitchfix/ipc-shared-memory-concepts-of-c-in-golang-f539001226dc?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f539001226dc</guid>
            <category><![CDATA[v-systems]]></category>
            <category><![CDATA[ipc]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Wed, 12 Apr 2023 16:26:58 GMT</pubDate>
            <atom:updated>2023-04-12T16:26:58.089Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we get started let’s get an insight on why IPC is needed. Inter Process Communication allows us to exchange information among two or more processes. This is important keep modularity intact.</p><p>The communication between two processes can be established via two methods:</p><ol><li>Message Passing</li><li>Shared memory</li></ol><p>In message passing you can communicate with processes using message queues, sockets or remote procedural calls. It’s all fun and games unless you require real time speed.</p><p>In shared memory, processes can share a common memory space that can be read from or write onto. This also reduces the number of read write operations in the communication. The OS provides system calls that allow us to manipulate the common memory space.</p><p>The way to do it is different in OS.</p><p>The <strong>POSIX</strong> way of doing it is using <strong>mmap</strong> but in <strong>System V </strong>we can attach using shmat. Although the System V API is more easy to implement the POSIX compliance is more widely used which can make your code run almost everywhere.</p><p>Don’t worry we will try all of them.</p><p><strong>Using System V Shared Memory API:</strong></p><pre>package main<br><br>import (<br>    &quot;fmt&quot;<br>    &quot;syscall&quot;<br>)<br><br>const SHMSIZE = 1024<br><br>func main() {<br>    // Create a shared memory segment<br>    shmid, err := syscall.Shmget(syscall.KEY_IPC_PRIVATE, SHMSIZE, 0666|syscall.IPC_CREAT)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br><br>    // Attach to the shared memory segment<br>    shmptr, err := syscall.Shmat(shmid, 0, 0)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br><br>    // Write to the shared memory segment<br>    message := []byte(&quot;Hello from process 1!&quot;)<br>    copy(shmptr, message)<br><br>    // Detach from the shared memory segment<br>    err = syscall.Shmdt(shmptr)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br>}</pre><p><strong>Using System V Shared Memory API:</strong></p><pre>package main<br><br>import (<br>    &quot;fmt&quot;<br>    &quot;os&quot;<br>    &quot;syscall&quot;<br>)<br><br>func main() {<br>    // Create a key to identify the shared memory segment<br>    key := 1234<br><br>    // Create the shared memory segment with a size of 4096 bytes<br>    shmid, err := syscall.Shmget(key, 4096, 0666|syscall.IPC_CREAT)<br>    if err != nil {<br>        fmt.Println(&quot;Error creating shared memory segment:&quot;, err)<br>        os.Exit(1)<br>    }<br><br>    // Attach to the shared memory segment<br>    data, err := syscall.Shmat(shmid, nil, 0)<br>    if err != nil {<br>        fmt.Println(&quot;Error attaching to shared memory segment:&quot;, err)<br>        os.Exit(1)<br>    }<br><br>    // Write a string to the shared memory segment<br>    message := &quot;Hello, World!&quot;<br>    copy(data, []byte(message))<br><br>    // Detach from the shared memory segment<br>    err = syscall.Shmdt(data)<br>    if err != nil {<br>        fmt.Println(&quot;Error detaching from shared memory segment:&quot;, err)<br>        os.Exit(1)<br>    }<br><br>    // Display the message read from the shared memory segment<br>    fmt.Println(&quot;Message read from shared memory segment:&quot;, string(data))<br>}</pre><p><strong>Using POSIX Shared Memory API:</strong></p><pre>package main<br><br>import (<br>    &quot;fmt&quot;<br>    &quot;os&quot;<br>    &quot;syscall&quot;<br>)<br><br>const SHMSIZE = 1024<br><br>func main() {<br>    // Create a shared memory segment<br>    shmid, err := syscall.ShmOpen(&quot;/myshm&quot;, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br><br>    // Map the shared memory segment to the process&#39;s address space<br>    shmptr, err := syscall.Mmap(int(shmid), 0, SHMSIZE, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_SHARED)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br><br>    // Write to the shared memory segment<br>    message := []byte(&quot;Hello from process 1!&quot;)<br>    copy(shmptr, message)<br><br>    // Unmap the shared memory segment<br>    err = syscall.Munmap(shmptr)<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br><br>    // Close the shared memory segment<br>    err = syscall.Close(int(shmid))<br>    if err != nil {<br>        fmt.Println(err)<br>        return<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f539001226dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Golang’s Efficient Garbage Collection Compared to Java]]></title>
            <link>https://medium.com/@glitchfix/golangs-efficient-garbage-collection-compared-to-java-549ae4cfb7dc?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/549ae4cfb7dc</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[garbage-collection]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 17:14:58 GMT</pubDate>
            <atom:updated>2023-04-11T17:15:22.997Z</atom:updated>
            <content:encoded><![CDATA[<p>As a software developer, I’ve worked with both Golang and Java, and I’ve noticed that Golang’s garbage collection system is more efficient than Java’s. In this post, I’ll explain why that is the case.</p><h3>Garbage Collection in Java</h3><p>Java’s garbage collection is managed by the Java Virtual Machine (JVM). However, the JVM’s garbage collection process can be slow and have a noticeable impact on program execution. One issue is that garbage collection in Java requires the program to stop its execution until the garbage collection process is complete. This can cause significant delays, especially for programs with high memory usage.</p><p>Another issue with Java’s garbage collection is the use of mark-and-sweep garbage collection. This process involves scanning the entire heap to mark objects that are still in use and then deallocating those that are not marked. This process can be slow, and it can also lead to memory fragmentation, where small, unused memory blocks are scattered throughout the heap.</p><h3>Garbage Collection in Golang</h3><p>Golang uses a different approach to garbage collection, called concurrent mark and sweep (CMS) garbage collection. Golang’s CMS garbage collection avoids the stop-the-world behavior of Java’s garbage collection by performing garbage collection in the background while the program is still running. This allows Golang programs to continue running smoothly while garbage collection is occurring.</p><p>Additionally, Golang’s garbage collector uses a technique called tri-color marking, which colors objects as white, grey, or black based on their accessibility. This approach allows the garbage collector to quickly identify which objects are still in use and which can be deallocated. As a result, Golang’s garbage collection is faster and leads to less memory fragmentation than Java’s garbage collection.</p><h3>Conclusion</h3><p>In conclusion, Golang’s garbage collection system is superior to Java’s due to its use of concurrent mark and sweep garbage collection and tri-color marking. Golang’s garbage collection system allows programs to avoid the pauses and delays caused by stop-the-world garbage collection, and it provides a more efficient method for managing memory allocation and deallocation.</p><p>As a developer who works with applications that require efficient memory management, I highly recommend Golang as a powerful option for this task.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=549ae4cfb7dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating Particle Motion in an Explosion: A Mathematical Approach]]></title>
            <link>https://medium.com/@glitchfix/simulating-particle-motion-in-an-explosion-a-mathematical-approach-77abc0e30615?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/77abc0e30615</guid>
            <category><![CDATA[explosion]]></category>
            <category><![CDATA[particle]]></category>
            <category><![CDATA[dynamics]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 16:45:58 GMT</pubDate>
            <atom:updated>2023-04-11T16:45:58.671Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, we will explore the mathematical equations and methods involved in simulating the motion of particles in an explosion. Specifically, we will discuss how to define the initial conditions, calculate the forces acting on each particle, and use numerical integration methods to calculate the position and velocity of each particle over time. We will also discuss the challenges and considerations involved in simulating such a complex system.</p><h3>Defining the Initial Conditions</h3><p>The first step in simulating particle motion in an explosion is to define the initial conditions. This includes setting the initial positions and velocities of the particles, defining the mass and size of each particle, and specifying the explosion parameters such as the location, energy, and duration.</p><p>Let’s consider a simplified example where we have a spherical explosive of radius R and total mass M. The initial positions of the particles are chosen randomly within the explosive volume. The initial velocities of the particles are given by the Maxwell-Boltzmann distribution, which describes the distribution of velocities of particles in a gas at a given temperature.</p><h3>Calculating the Forces Acting on Each Particle</h3><p>The next step is to calculate the forces acting on each particle. This includes the gravitational force based on the mass and position of each particle, the air resistance force based on the size, shape, and velocity of each particle, and any other external forces such as wind or electromagnetic forces.</p><p>The gravitational force on each particle can be calculated using Newton’s law of gravitation:</p><p>F_gravity = G * m_1 * m_2 / r²</p><p>where G is the gravitational constant, m_1 and m_2 are the masses of the particles, and r is the distance between them.</p><p>The air resistance force on each particle can be calculated using the drag force equation:</p><p>F_drag = 0.5 * rho * A * v² * C_d</p><p>where rho is the density of air, A is the cross-sectional area of the particle, v is the velocity of the particle relative to the air, and C_d is the drag coefficient which depends on the particle shape and Reynolds number.</p><h3>Calculating the Motion of Each Particle</h3><p>The motion of each particle is determined by the net force acting on it, which is calculated using Newton’s second law of motion:</p><p>F_net = m * a</p><p>where F_net is the net force on the particle, m is the mass of the particle, and a is its acceleration.</p><p>We can use numerical integration methods, such as the Euler or Verlet method, to calculate the position and velocity of each particle over time. These methods involve approximating the motion of the particles over small time increments and iterating through the time steps to update the position and velocity of each particle.</p><p>Let’s consider the Verlet method, which is a second-order method that is more accurate than the Euler method. The Verlet method involves the following steps:</p><ol><li>Calculate the acceleration of each particle based on the net force acting on it. a_i = F_net,i / m_i</li><li>Update the position of each particle based on its current position, velocity, and acceleration: r_i(t+dt) = 2r_i(t) — r_i(t-dt) + a_i*dt²</li><li>Calculate the new net force acting on each particle based on its updated position: F_net,i(t+dt) = m_i * a_i(t+dt)</li><li>Update the velocity of each particle based on its current velocity and the average acceleration over the time step: v_i(t+dt) = v_i(t) + 0.5*(a_i(t) + a_i(t+dt))*dt</li><li>Repeat steps 1–4 for each time step until the desired simulation time is reached.</li></ol><p>It’s important to note that the Verlet method and other numerical integration methods have limitations and errors that must be considered. For example, the time step size must be chosen carefully to balance accuracy and computational efficiency. Additionally, the Verlet method can accumulate errors over time due to numerical round-off and truncation errors.</p><h3>Conclusion</h3><p>In this post, we have discussed the mathematical equations and methods involved in simulating particle motion in an explosion. We started by defining the initial conditions, including the positions and velocities of the particles, and the explosion parameters. We then calculated the forces acting on each particle, including gravitational and air resistance forces. Finally, we used numerical integration methods to calculate the motion of each particle over time.</p><p>Simulating an explosion is a complex and challenging problem that requires careful consideration of various physical factors and computational methods. Nevertheless, with the proper mathematical tools and techniques, we can gain insight into the dynamics of particle motion in an explosion and improve our understanding of this complex phenomenon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77abc0e30615" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Signal Attenuation and Recovery in 5GHz WiFi: Understanding the Math Behind It]]></title>
            <link>https://medium.com/@glitchfix/signal-attenuation-and-recovery-in-5ghz-wifi-understanding-the-math-behind-it-95abd4de96d1?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/95abd4de96d1</guid>
            <category><![CDATA[signal]]></category>
            <category><![CDATA[radio]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[quality]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 16:38:23 GMT</pubDate>
            <atom:updated>2023-04-11T16:38:23.431Z</atom:updated>
            <content:encoded><![CDATA[<p>As more devices are being connected to WiFi networks, the demand for faster and more reliable connections is increasing. One way to improve the quality of WiFi signals is through the use of 5GHz frequencies. However, 5GHz WiFi signals have less range than 2.4GHz signals, and signal attenuation can be a challenge. In this article, we will explore the math behind signal attenuation and recovery in 5GHz WiFi.</p><h3>Understanding Signal Attenuation</h3><p>The strength of a WiFi signal is measured in decibels (dB). As the signal travels through space, it can be weakened by various factors, including distance, obstacles, and interference. This decrease in signal strength is known as attenuation, and it can be calculated using the following formula:</p><p>Attenuation (dB) = 10 log (P1/P2)</p><p>where P1 is the initial power level and P2 is the final power level.</p><h3>Techniques for Recovering Attenuated Signals</h3><p>There are several techniques that can be used to recover attenuated signals in 5GHz WiFi. Let’s explore some of these techniques and the math behind them.</p><h3>Multiple Antennas (MIMO)</h3><p>MIMO stands for multiple-input and multiple-output. This technique uses multiple antennas to transmit and receive signals, which can help to improve the range and reliability of the signal. The number of antennas used is represented by the variable “N”. The signal strength can be increased by a factor of N, which is represented by the variable “a”. The signal-to-noise ratio (SNR) can be improved by a factor of N, which is represented by the variable “b”. The data rate can also be increased by a factor of N, which is represented by the variable “c”. The overall improvement in signal quality can be represented by the following formula:</p><p>Improvement = N^(a+b+c)</p><h3>Beamforming</h3><p>Beamforming is a technique where the transmitter directs the signal towards the receiver by adjusting the phase and amplitude of the signal. The direction of the beam is represented by the variable “θ”. The signal strength can be increased by a factor of cos(θ), which is represented by the variable “a”. The signal-to-noise ratio (SNR) can be improved by a factor of cos(θ), which is represented by the variable “b”. The overall improvement in signal quality can be represented by the following formula:</p><p>Improvement = cos(θ)^(a+b)</p><h3>Channel Bonding</h3><p>Channel bonding is a technique where multiple channels are combined into a single, wider channel. The width of the channel is represented by the variable “W”. The data rate can be increased by a factor of W, which is represented by the variable “a”. The overall improvement in signal quality can be represented by the following formula:</p><p>Improvement = W^a</p><h3>Conclusion</h3><p>In conclusion, understanding the math behind signal attenuation and recovery in 5GHz WiFi can help to improve the quality and reliability of WiFi connections. Techniques such as MIMO, beamforming, and channel bonding can be used to recover attenuated signals and improve signal quality. By implementing these techniques, WiFi networks can provide faster and more reliable connections to users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95abd4de96d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Darknet: A Guide to Doing It Safely and Responsibly]]></title>
            <link>https://medium.com/@glitchfix/exploring-the-darknet-a-guide-to-doing-it-safely-and-responsibly-6ffd01601880?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ffd01601880</guid>
            <category><![CDATA[reddit]]></category>
            <category><![CDATA[anonymization]]></category>
            <category><![CDATA[darknet]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[tor]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 16:30:22 GMT</pubDate>
            <atom:updated>2023-04-11T16:30:22.154Z</atom:updated>
            <content:encoded><![CDATA[<p>The darknet, also known as the deep web or hidden web, is a part of the internet that is not indexed by traditional search engines and can only be accessed through specialized tools such as the Tor browser. While the darknet is often associated with illegal activities such as drug sales and cybercrime, there are also legitimate and legal uses for it, such as anonymous communication, secure file sharing, and access to censored information. If you are interested in exploring the darknet for legitimate purposes, here are some guidelines for doing it safely and responsibly.</p><h3>1. Use the Tor Browser</h3><p>The Tor browser is the most common tool used to access the darknet, as it is designed to provide anonymity and privacy. The Tor network works by routing your internet traffic through a series of servers, or nodes, before reaching its final destination. This makes it difficult for anyone to trace your online activity back to you. Make sure to use the latest version of the Tor browser, and keep it up to date to ensure maximum security.</p><h3>2. Research before You Explore</h3><p>Before you start exploring the darknet, it is important to do your research and understand the risks involved. Look for reputable sources of information and guidance on how to use the darknet safely and responsibly. Some good sources of information include the Tor Project website, Dark Web News, and Reddit’s r/onions subreddit. These sources can provide useful information and resources about how to use the Tor browser, how to stay safe and secure online, and what to expect when exploring the darknet.</p><h3>3. Use a VPN</h3><p>Using a virtual private network (VPN) can provide an additional layer of security and privacy when accessing the darknet. A VPN encrypts your internet traffic and hides your IP address, making it difficult for anyone to trace your online activity back to you. Make sure to choose a reputable VPN provider that does not log your activity.</p><h3>4. Stick to Reputable Websites</h3><p>While there are many illegal websites on the darknet, there are also legitimate and legal websites that can provide useful information and resources. Stick to reputable websites, and avoid engaging in any illegal activities on the darknet. Some good sources of legitimate and legal websites include The Hidden Wiki, the Darknet Market subreddit, and the Torch search engine. These websites can help you find useful resources and information without putting yourself at risk.</p><h3>5. Stay Anonymous</h3><p>When using the darknet, it is important to maintain your anonymity and privacy. Avoid sharing personal information or identifying details, as this can compromise your anonymity and put you at risk. Use a pseudonym or handle when communicating online, and avoid revealing any identifying information that could be used to trace your online activity back to you.</p><p>In conclusion, exploring the darknet can be risky and potentially illegal, but there are also legitimate and legal uses for it. By following these guidelines for doing it safely and responsibly, you can explore the darknet without putting yourself at risk. Remember to use good judgment, exercise caution, and avoid engaging in any illegal activities.</p><p><strong>Interesting links to explore</strong></p><ul><li>The Tor Project: <a href="https://www.torproject.org/">https://www.torproject.org/</a></li><li>Dark Web News: <a href="https://darkwebnews.com/">https://darkwebnews.com/</a></li><li>Reddit’s r/onions subreddit: <a href="https://www.reddit.com/r/onions/">https://www.reddit.com/r/onions/</a></li><li>Wired’s “The Beginner’s Guide to the Darknet”: <a href="https://www.wired.com/2014/11/the-beginners-guide-to-the-darknet/">https://www.wired.com/2014/11/the-beginners-guide-to-the-darknet/</a></li><li>PCMag’s “How to Access the Dark Web”: <a href="https://www.pcmag.com/how-to/how-to-access-the-dark-web">https://www.pcmag.com/how-to/how-to-access-the-dark-web</a></li><li>Lifehacker’s “How to Safely Access and Navigate the Dark Web”: <a href="https://lifehacker.com/how-to-safely-access-and-navigate-the-dark-web-1824582745">https://lifehacker.com/how-to-safely-access-and-navigate-the-dark-web-1824582745</a></li><li>SecurityTrails’ “Dark Web vs Deep Web: What’s The Difference?”: <a href="https://securitytrails.com/blog/dark-web-vs-deep-web">https://securitytrails.com/blog/dark-web-vs-deep-web</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ffd01601880" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Golang: Google Speech-to-Text and Text-to-Speech]]></title>
            <link>https://medium.com/@glitchfix/golang-google-speech-to-text-and-text-to-speech-36aa871b02?source=rss-964b0c85a13b------2</link>
            <guid isPermaLink="false">https://medium.com/p/36aa871b02</guid>
            <category><![CDATA[text-to-speech]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Shivanjan Chakravorty]]></dc:creator>
            <pubDate>Fri, 07 Jun 2019 09:34:34 GMT</pubDate>
            <atom:updated>2019-06-07T09:34:34.918Z</atom:updated>
            <content:encoded><![CDATA[<p>Well isn’t it great to have the power of Text-to-Speech and Speech-to-Text in your applications. Google does provide some cool APIs we can mess around with.</p><p>Configuring it from the docs has been a pain.</p><p>But no more….</p><p>Here we are going to see how we can implement the <a href="https://github.com/Glitchfix/googleapigo">googleapigo</a> package to create up and running applications.</p><p><strong>There are just two steps to set it up:</strong></p><ol><li>Get your RSA keys for the API from <a href="https://console.cloud.google.com/">Google Console</a>.</li></ol><p>2. go get <a href="https://github.com/Glitchfix/googleapigo">github.com/Glitchfix/googleapigo</a></p><p><strong>Code:</strong></p><pre>package main<br><br>import (<br>	&quot;fmt&quot;<br><br>	GoogleAPI &quot;github.com/Glitchfix/googleapigo/googleapi&quot;<br>)<br><br>func main() {<br>	//Google API Configuration<br>	apiConf := GoogleAPI.ClientConfig{<br>		Email:      &quot;YOUR CONFIG EMAIL&quot;,<br>		PrivateKey: &quot;YOUR RSA KEY&quot;,<br>	}<br><br>	//OAuth configured Google client<br>	googleClient := GoogleAPI.GetClient(apiConf)<br><br>	//AudioConfig for Google Speech-to-Text<br>	audioConf := GoogleAPI.AudioConfig{<br>		FilePath: &quot;brooklyn.flac&quot;,<br>	}<br><br>	textResponse, err := GoogleAPI.SpeechToText(googleClient, audioConf) //Returns the resulting transcript inside json<br>	if err != nil {<br>		fmt.Println(err)<br>	}<br>	fmt.Println(textResponse)<br><br>	textConf := GoogleAPI.TextConfig{<br>		Text: &quot;Hello, darkness my old friend!&quot;,<br>	}<br><br>	voiceResponse, err := GoogleAPI.TextToSpeech(googleClient, textConf) //Returns the resulting base64 of the audio file inside json<br>	if err != nil {<br>		fmt.Println(err)<br>	}<br>	fmt.Println(voiceResponse)<br>}</pre><p>That’s all folks. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36aa871b02" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>