Tag: script

Stop Using dict[key] to Access Values in Python Dictionaries!

We probably learnt to use dict[key] to access a value in a dictionary at the start. But here’s a better way to do that. The original dict[key] method d = {'apple':4, 'orange':5, 'pear':6} x = d['apple'] # 4 y = d['orange'] # 5 ...

This Insane Script Summarizes Any PDF in Seconds!

In today’s fast-paced world, information overload is a common challenge we all face. With an abundance of documents and articles to read, it can be overwhelming to find the key insights and main points efficiently. However, with the power of Python and advanced AI techniques, summarizing PDFs ...

I embarrassed myself in front of a principal engineer because I couldn’t write a Bash script.

The lesson he taught me was super valuable. I’ve written on this blog before about scratchpads — scraps of code that can run your production code rapidly. Scratchpads are a big key to quick feedback loops and fast iteration. When you tighten feedback loops, you make yourself a bett...

Shell Script Functions and Arguments

Shell Scripting is a programming technique that involves writing scripts or programs in a shell language, which is a command-line interface used in Linux and Unix operating systems. Shell scripts are used to automate tasks, execute commands, and manipulate system resources through a set of commands ...

How Can You Ensure Your Server is Reachable or Unreachable with Ansible and Shell Script?

Managing a large number of servers can be a challenging task, and one of the routine tasks involves checking the connectivity of these servers. In this blog post, we’ll explore a practical way to automate server ping checks using Ansible and a shell script. This approach can save valuable time...

Easiest way to Run a Python Script in the Background

The easiest way of running a python script to run in the background is to use cronjob feature (in macOS and Linux). In windows, we can use Windows Task Scheduler. In Mac or Linux, open the terminal using the following command to check what jobs are running in the background crontab -l ...

Automating Ablation Studies of Deep Learning Models using Batch Script

In this article, we will look at a short example of how we can automate running ablation study experiments on our deep learning models using batch scripts in Windows. Step 1 Create a .bat file in your editor Step 2: Identify the hyper-parameters you want to sweep over in you...

Flip the Script — White Supremacy Culture

“Culture is powerful precisely because it is so present and at the same time so very difficult to name or identify. The characteristics listed are damaging because they are used as norms and standards without being pro-actively named or chosen by the group. They are damaging because they pro...

The Decline of the Baybayin Script During the Early Spanish Period and the Spanish Efforts for its Preservation (1593–1703)

Baybayin is one of the writing systems used in the pre-colonial Philippines. However, during the Spanish colonial period, the use of Baybayin declined throughout the archipelago. Some perceived that the Spaniards were responsible for the script’s eventual dormancy by destroying all existing na...