Jon Gorenflo’s tweet shares a handy SSH trick for dynamically adding port forwarding to an existing SSH session. I haven’t seen it anywhere else and wanted to share it here.. This technique allows users to set up port forwarding on-the-fly, without having to disconnect and reconnect. To use this trick: While in an SSH session, type ~C (tilde followed by … Read More
In software development, we often focus on the “happy path”. It’s the ideal route through a system when everything goes as planned. To create robust and user-friendly applications, we need to venture beyond this path and explore the paths of potential errors. This article discusses a proactive approach to error management that combines intentional error triggering with comprehensive error documentation … Read More
The Initial Setup I started by using Claude, an AI assistant, to generate the necessary Docker and build script files for my Android project. Claude provided a comprehensive setup that included: A Dockerfile to create the build environment A shell script to run the build process inside the Docker container A script to set up and run everything The initial … Read More
import io import os from openai import OpenAI from pydub import AudioSegment from pydub.playback import play client = OpenAI() def stream_and_play(text): response = client.audio.speech.create( model=”tts-1″, voice=”alloy”, input=text, ) # Convert the binary response content to a byte stream byte_stream = io.BytesIO(response.content) # Read the audio data from the byte stream audio = AudioSegment.from_file(byte_stream, format=”mp3″) # Play the audio play(audio) if … Read More
Karaoke is a fun and entertaining pastime, an opportunity to unleash your inner pop star, and a great way to bring people together. Whether you’re a karaoke pro or a bathroom singer, this guide will help you set up a DIY karaoke system that will level up your karaoke nights. For the longest time I wanted to get my own … Read More
Is your iPhone not as snappy as it used to be? Here’s a concise guide on three efficient tricks I employed to revive my slowing device:a simple restart, case removal for thermal management, and battery replacement. Each method yielded some results, enhancing the overall performance of my iPhone. 1. Execute a System Reboot Why: Temporary software glitches and memory leaks … Read More
How do computers think? This is precisely the question that brings us to an interesting branch of computer science known as computational thinking. Computational thinking is all about understanding how a computer’s “thought process” works and learning to think in a similar manner. In this blog post, we’ll dive into computational thinking and use some examples to illustrate its principles. … Read More
After having the pleasure of using a Luxafor focus light for a few weeks, tragedy struck. My coworker, who is also my former roommate and the person who introduced the idea to our department, told me I had to pass it on to someone else to try out. What is Luxafor? It’s a small LED device that attaches to your … Read More