How to install Ruby 1.8.7 on CentOS 5.5 Linux

ruby, php, java, python code

Have you tried doing yum install ruby in CentOS 5.5? If you have the default repositories configured, you will notice that it installs the ancient Ruby 1.8.5. Not ready to move up to Ruby 1.9, but would like to install Ruby 1.8.7 – well here is how to do it! Install Ruby 1.8.7 on CentOS … Read more

How to disable ‘Last Login’ welcome message in Linux

last login message

When you log into a Linux system, especially via SSH, you might notice a message displaying the time and date of your last login. This feature, while useful for tracking access and detecting unauthorized logins, may not be necessary for everyone. Some users prefer a cleaner terminal interface without distractions. In this guide, we’ll show … Read more

Solved! Installing sqlite3-ruby gem – extconf.rb mkmf LoadError

ruby on rails

Are you attempting to install the sqlite3-ruby gem and you are receiving this error? Building native extensions. This could take a while… ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:3:in `require’: no such file to load — mkmf (LoadError) from extconf.rb:3 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.3 for … Read more

How to install RubyGems on Linux (Ubuntu & Other)

RubyGems is a package management application for Ruby that is used to quickly and easily distribute Ruby/Rails applications and libraries. If you are planning on doing any development in Ruby, this is a must have. RubyGems is for Ruby as apt-get and yum are to Linux operating systems. This article will show you various ways … Read more

How to SSH to a server using Ruby

ruby on rails

Welcome to this tutorial that will describe how to SSH to a Linux, Windows, etc. server using Ruby. This post will give you a complete code example to get you up and running right away! The code below will connect to the server specific and run the ls -al command. Be sure to change the … Read more

4 Free Ways to Convert a PDF to Text File on Linux

convert pdf

Converting a PDF to a plain text file on Linux doesn’t have to be complicated. Whether you’re dealing with reports, documents, or something else, there are a few free tools that can get the job done quickly. Here are four great options you can try, with simple steps to follow. 1. Convert PDFs with pdftotext … Read more

How to Create Thousands/Millions Files in Linux

bash, command-line, linux

Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it! There are two parts to creating these … Read more

PostgreSQL: How to reload config settings without restarting database

postgresql active queries

Reloading PostgreSQL settings without restarting keeps your database running smoothly. It ensures updates to files like postgresql.conf and pg_hba.conf apply right away without stopping queries or breaking connections. This guide explains three methods to reload settings, shares useful tips, and offers troubleshooting advice. Why Reload PostgreSQL Configurations? When you update files such as: changes don’t … Read more

How to view table/row locks in PostgreSQL?

postgresql active queries

This article will show you how to see a list view a list of locks that are currently open (or waiting) on your database rows and tables. This information is beneficial when debugging timing-related errors and data inconsistencies. Login to the PostgresSQL command-line interface psql -U [username] [database_name] Run the following query: select t.relname,l.locktype,page,virtualtransaction,pid,mode,granted from … Read more

How to see active SQL queries and open connections in Postgres?

postgresql active queries

If you’re working with a PostgreSQL database, keeping tabs on active queries is a must to keep things running smoothly. Let it slide, and you could end up with sluggish performance—or even a database that stops working altogether. The upside? PostgreSQL has built-in features to help you stay on top of what’s happening. This guide … Read more

How to find when PostgreSQL Vacuum and Analyze were run?

postgresql vaccuum, postgres autovacuum, postgres vacuum

This article will show you how to determine when your database tables were last vacuumed, auto-vacuumed, analyzed, and auto-analyzed on a PostgresSQL database. Performing these operations are critical in keeping the database optimized and performant. What is the purpose of PostgreSQL Vacuum? PostgreSQL’s “VACUUM” is a maintenance operation designed to reclaim storage occupied by expired … Read more

Examples of Linux ‘head’ Command to Preview a File

linux, shell bash, ubuntu

This article will show you how to use the head command in Linux. head is used to print out the beginning of a file. For example, this is useful when you have a giant text file and you want to preview the contents without attempting to open the entire file. Here are some common examples … Read more

How to add “Run…” option to Windows 7 Start menu

If you recently upgraded from Windows XP to Windows 7, you may be wondering where the Run… option in the Start menu went. I use this option in XP regularly to quickly launch programs like Notepad and the Command Prompt, so it was annoying when I tried doing this in Windows 7 only to find … Read more

How to add a Windows/Linux network printer in Ubuntu 9.10

add a printer, install a printer, ubuntu, printer

This article will show you how to add a network printer on a Ubuntu 9.10 system. Let’s go ahead and get started… Navigate to System –> Administration –> Printing Then choose Server –> New –> Printer from the Printer configuration window The New Printer wizard will be displayed. Here you can add either local or … Read more

How to Kill All Processes in Linux with a Single Command

kill processes linux, stop script execution

Linux is a highly efficient and flexible operating system, but there are times when processes can misbehave, slow down the system, or consume excessive resources. In such cases, it may be necessary to terminate one, multiple, or even all processes. This guide provides a detailed explanation of how to kill all processes in Linux using … Read more

How to change screen/display resolution in Ubuntu 9.10

If you’re running Ubuntu 9.10 and want to tweak your display settings, adjusting the screen resolution is a quick fix. Whether you’re trying to match your monitor’s native resolution or just make things look sharper, Ubuntu 9.10 has tools to help you get it done. Let’s walk through the steps to change the screen resolution, … Read more

How to Disable Aero Snap in Windows 7

Aero Snap, introduced with Windows 7, is a feature designed to improve multitasking by allowing users to quickly resize and arrange windows by dragging them to the edges of the screen. While this can be a productivity booster for many, some users find it disruptive or unnecessary. If you’re among those who prefer a traditional … Read more

How to Download & Read Kindle Books for FREE on your PC

read kindle books on pc

If you love reading Kindle books but don’t own a Kindle device, don’t worry! You can access your Kindle library on your PC without spending a dime. Whether you want to enjoy a novel, a textbook, or a technical guide, Amazon offers several free options to make reading easy and accessible. Here’s how you can … Read more

Fixing Overscan in Windows 10: A Comprehensive Guide

logo, microsoft, windows

Overscan can be a frustrating issue for Windows 10 users, causing portions of the screen to appear cut off or distorted. It’s especially common when connecting your computer to a TV or using older monitors. Thankfully, there are straightforward solutions to this problem. This guide walks you through what overscan is, its symptoms, causes, and—most … Read more

Free Photoshop Alternative for Windows – Paint.NET

Adobe Photoshop, a household name in the realm of image editing, has been setting the standard for photo manipulation and digital artistry since its inception. Its unrivaled suite of features, coupled with a robust and flexible workspace, has made it a go-to choice for professionals across the graphic design, photography, and digital marketing industries. Photoshop’s … Read more

How to Use the Snipping Tool in Windows 7: A Comprehensive Guide

What Is the Snipping Tool? The Snipping Tool in Windows 7 is a handy built-in utility that lets you capture screenshots easily. Whether you’re creating a tutorial, troubleshooting a problem, or saving an image for future reference, this tool is a lifesaver. Unlike the traditional Print Screen method, the Snipping Tool allows you to grab … Read more

How to disable password prompts (UAC) in Ubuntu

ubuntu linux prompt

This article will show you are to disable UAC (User Access Controls) aka those pesky popup dialogs where you must enter your password in Ubuntu Linux! As many of you know, this feature was implemented in Windows Vista but went horribly wrong and is the reason it has been removed in Windows 7. Linux, which … Read more

How to Install SSHD service on Ubuntu Linux in Seconds

Secure Shell (SSH) is a critical tool for Linux users, enabling secure remote access to servers and facilitating encrypted file transfers. Ubuntu, being one of the most popular Linux distributions, offers seamless compatibility with SSH. This guide will walk you through the steps to install, configure, and manage SSH on Ubuntu, ensuring secure and efficient … Read more

How to Open & Edit .PSD Files for Free Without Adobe Photoshop

Adobe Photoshop is the industry standard for graphic design, widely known for its powerful features and capabilities. However, its cost can be a barrier for hobbyists, students, or small businesses. Fortunately, there are several free alternatives available that allow you to open, view, and edit PSD (Photoshop Document) files without the need for a Photoshop … Read more