If you want to display only a list of directories, enter the following command on the console.
ls -l | grep '^d'
If you want to show just a list of files, type the following command on the console.
ls -l | grep -v '^d'
Single quotes and double quotes in Python
In Python, single quotes and double quotes create the same kind of string. These two lines are equivalent:
foo = "bar"
foo = 'bar'
If Jupyter or the Python console shows the value as 'bar', that does not mean Python changed your double quotes into single quotes. The console is showing ...
sudo yum install gitk
Article 4: From Basic RAG to Agentic RAG: How Enterprise AI Systems Plan, Search, Validate, and Self-Correct
In recent years, Retrieval-Augmented Generation (RAG) has become the foundation of enterprise AI applications. Organizations have successfully used RAG to build document assistants, knowledge management platforms, customer support systems, and internal sear...
BDD in Rails
I created this mini series to highlight the importance of BDD in modern software development and why it matters for real teams. This guide explains how BDD improves communication between product, QA, and engineering by using shared behavior-focused language. It also shows how BDD helps teams reduce regressions, design cleaner code, and ship featur...
How to Make a Simple Caffeinate-Style Application for Windows
On macOS, the caffeinate command is commonly used to keep the system awake during long-running tasks. Developers use it when running scripts, downloads, uploads, builds, backups, or remote sessions that should not be interrupted by system sleep.
Windows does not provide the exact same everyday...
I tried it in Ubuntu 14.04.2 LTS, and it is working fine
Step 1: (the purpose of the first line in designating which interpreter to use for the rest of the file), and save the file as a hello-world.rb
#!/usr/bin/env ruby
puts "Hello World!"
Step 2: (make the file executable with the below command)
chmod u+x...
You can do a two-way
First way
There is a “Computer” icon on the Desktop, right-click on that and select “Properties”, see image below

So, the System Properties Dialog will be open, and you can see under th...
Article 1: Understanding Retrieval-Augmented Generation (RAG)
Retrieval-Augmented Generation (RAG) is an AI architecture pattern that combines the reasoning capabilities of Large Language Models (LLMs) with external knowledge sources. Instead of relying solely on information learned during model training, RAG retrieves relevant information from documents, database...
Article 2: Building a Managed RAG Platform with Amazon Bedrock
Amazon Bedrock provides managed services that simplify the implementation of Retrieval-Augmented Generation systems. Instead of building chunking, embeddings, retrieval, and orchestration from scratch, organizations can use Knowledge Bases for Amazon Bedrock with managed foundation models.
<s...
Article 3: Building a Self-Managed RAG Platform
A self-managed RAG platform gives an organization direct control over document processing, embeddings, retrieval, model serving, infrastructure, security, and optimization. Teams usually choose this approach when they need specialized models, strict data-control requirements, custom retrieval logic, or potential cost...
Open Command Prompt with administrator privileges. Please refer to the image below for more details. Right-click on Command Prompt and select Run as administrator.

...
./script/generate model mymodelname
./script/generate scaffold scaffoldname</pre...
Rails starts its web server on port 3000 by default. If you want to use a different port, such as 8888, run the command below.
ruby script/server -p 8888
SQL (Structured Query Language) categories in three languages
1. Data Definition Language (DDL)
Which is also known for Data Description Language used for specifying the database schema, like as creating, modifying, and destroying tables, views, indices, and stored procedures
Open http://nodejs.org/, then click on Download (http://nodejs.org/download/),
so you can view the following details on the screen.
<img src="https://s3.amazonaw...
Ruby - String Class
rails demo_apps
In this case, it will create a Rails application "apps" with the latest version installed on our machine.
If y...
<% .... %> is Scriptlet
and
<%= ... %> is Expression
To rollback your most recent migration, execute the command below
rake db:migrate:rollback
If you want to rollback a specific migration, you need to execute the command below
rake db:migrate VERSION=
In Ruby 2.4.0, the Fixnum and Bignum classes were merged into Integer, resolving a long-standing issue.
Let’s see this in action.
Ruby 2.3.3
<code class="h...