Compare commits

...

4 Commits

Author SHA1 Message Date
2acf391f7d Merge branch 'prod' into dev 2025-08-04 21:35:33 +05:30
a8b466c8db update 2025-08-04 20:55:27 +05:30
7bd7fa90c4 Merge pull request 'update post details' (#4) from dev into prod
Reviewed-on: #4
2025-01-06 00:01:25 +05:30
33b8e61f42 update post details 2025-01-05 23:44:37 +05:30
8 changed files with 49 additions and 4 deletions

View File

@ -0,0 +1,28 @@
---
title: "Part 1: Getting Started with Python"
description: Kick off your Python journey! Learn what Python is, set up your environment, and write your first program. Perfect for beginners—lets start coding!
date: 2025-02-02T16:59:46.763Z
tags: []
categories: []
image:
path: /assets/img/posts/python-getting-started.png
disable-ty: false
series: "Python Practical Guide: A Beginner's Journey"
slug: part-1-started-python
---
## What is Python?
Python is a versatile, high-level programming language known for its simplicity and readability. Its used for:
- Web development
- Data analysis and visualization
- Artificial intelligence and machine learning
- Automation and scripting
- Game development
- And much more!
## Why Learn Python?
1. **Beginner-Friendly**: Easy-to-read syntax makes it perfect for first-time coders.
2. **Versatile**: Use it for almost any type of project or industry.
3. **In-Demand Skill**: Python developers are highly sought after in the job market.
4. **Huge Community**: Tons of resources, libraries, and frameworks to help you learn and grow.
5. **Fun and Powerful**: Automate tasks, analyze data, or build apps—Python makes it easy!

View File

@ -0,0 +1,12 @@
---
title: "Part 2: Python Basics - Syntax and Fundamentals"
description: "Learn Pythons building blocks: variables, data types, input/output, and basic operations. Start writing clean, readable code today!"
date: 2025-02-02T18:04:14.853Z
tags: []
categories: []
image:
path: /assets/img/posts/python-logo.jpg
disable-ty: true
series: "Python Practical Guide: A Beginner's Journey"
slug: part-2-python-basics-syntax-fundamentals
---

View File

@ -37,7 +37,6 @@
.then(function (result) {
if (result != "N/A") {
var response = JSON.parse(result);
setPostMetrics(response);
if(!response.postExists){
postDetails.likes = postDetails.views = postDetails.comments = 0;
if(Number(likes.innerText) !== NaN){
@ -49,15 +48,15 @@
if(postDetails.modifiedDate === ""){
postDetails.modifiedDate = postDetails.createdDate;
}
}
ajax(serviceUrl + "/CreatePost", "POST", postDetails)
ajax(serviceUrl + "/CreatePost", "POST", postDetails)
.then(function (result) {
if(result != "N/A"){
var response = JSON.parse(result);
setPostMetrics(response);
}
});
}
}
});

View File

@ -13,7 +13,7 @@
<div id="post-series">
<div class="card">
<div>
<h3>{{ page.series }}</h3>
<h3>{{ page.series }} ({{ posts | size }} - Part Series)</h3>
<ol>
{% assign posts = site.posts | where: "series", page.series | sort: "date" %}
{% for post in posts %}

View File

@ -115,6 +115,7 @@ Allowing Traffic to a Specific Port and IP
For more granular control, you can specify both source IP and destination port:
```terminal
sudo ufw allow from 192.168.0.100 to any port 22
sudo ufw allow from 192.168.0.0/24 to any port 22 proto tcp
```
### Using Application Profiles
UFW supports application profiles to simplify rule management for common services. List available profiles with:

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -49,6 +49,11 @@
"title": "disable-ty",
"name": "disable-ty",
"type": "boolean"
},
{
"title": "series",
"name": "series",
"type": "string"
}
]
}