Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

Books vs. Audiobooks: Which One is Best?

Source: ChatGPT AI

Vanakkam Makkalayae!

In today’s digital age, traditional book learning might seem old-fashioned. With the rise of audiobooks, podcasts, and AI-powered tools like NotebookLM by Google, there are numerous ways to gain knowledge. But the big question remains: which one is best? Let’s dive into the discussion!

My Perspective on Books vs. Audiobooks

Nanba, as I mentioned earlier, we are living in a modern era, right? Reading physical books might seem outdated, but to be honest, it is a solid learning method that I personally prefer.

Why Do I Prefer Books?

I’ve listened to over 20+ audiobooks on finance, and I gained valuable insights on money management — how to spend, save, and invest wisely. However, whenever I try to explain these concepts to others, I sometimes struggle to recall the specific terminology. This is one drawback of audiobooks: they help in understanding ideas, but the retention of precise terms can be weaker in our minds.

On the other hand, I still remember the books which I read like Gandhiji’s Sathiya Sothanai, Nelson Mandela’s biography, and various poetry collections, my memory of them is significantly stronger compared to audiobooks. The depth of knowledge retained from reading a physical book feels more structured and lasting.

I have listened to audiobooks multiple times, often uploaded by different channels. Sometimes, they appear in the form of book summaries lasting 10 to 20 minutes. While these formats are useful. But, they don’t always provide the same deep connection and retention as reading a physical book.

The Power of Books

One book that completely transformed my perspective on finance is Rich Dad, Poor Dad.” I first listened to the audiobook twice, and it truly reshaped my understanding of money, especially the idea that “the rich don’t work for money, money works for the rich.” That concept stayed with me.

Because of the impact, I decided to buy the physical copy of Rich Dad, Poor Dad. Due to time constraints, I couldn’t complete the entire book, but the first three chapters stayed deeply embedded in my mind. This is the strength of books: they leave a lasting imprint that enhances understanding and retention.

Audiobooks vs. Books: A Balanced View

I’m not saying audiobooks are bad. They are great tools for learning, and they played a major role in shaping my financial knowledge. Podcasts, too, helped expand my perspective on startups and entrepreneurship. However, when compared to books, audiobooks have a slight disadvantage when it comes to deep retention and understanding.

Final Thoughts

This is purely my personal opinion on the debate between books and audiobooks. Both have their advantages, and choosing the best one depends on your learning style. Even I preferred audiobooks mostly due to time constraints. But literally, the book is best as always to learn deeply.

What do you think? I’d love to hear your perspective — drop your thoughts in the comments!

When you feel this content is valuable, follow me for more upcoming Blogs.

Connect with Me:

ChatGPT & RLHF

Source: itknowledgezone.com

Today I am back with an interesting topic, which I would like to share with you guys. Nowadays we all use AI as normal in our life. But actually, the use of AI begins with one AI. Which is ChatGPT. Did you think about it? How does the ChatGPT give more and more data as it is mostly accurate?

The Blog is about that only. Come on guys, have a joyful dive.

Source: upcoretech.com

The ChatGPT uses the technique or methodology of Reinforcement Learning From Human Feedback(RLFH). It looks complex, right? It’s a simple concept.

In our childhood, when we play in the ground we eat the sand right like God Krishna. But we do not show the whole universe in our mouths like them. I just take that example here. When Mother saw that they had beaten us and said not to do? Likewise in our school, when we got the first mark our mother appreciated us.

Here we learn what to do? by the feedback.

Here the AI should Rewarded(Positive Feedback) when they have perfectly done that or Otherwise they get Penalties(Negative Feedback). As a result, they change as per the feedback. The same thing here is done by Reinforcement Learning. They try a lot of things. This means here they give various results and get a lot of Feedback. By that, they learned, what need to do and don’t.

Now the question comes to your mind such as “How is this used by ChatGPT?”

We all know ChatGPT is used by a lot of people in various ways. We also know that it’s just an AI that replies to us as per the pre-trained data or already existing data. But people should ask the real-time data. For example, the model should be trained and launched during Joe Biden’s presidency. At the time, the model was fine-tuned to provide accurate and contextually relevant information about policies, initiatives, and events related to Joe Biden. However, after the next election, Donald Trump became the president. But still, the ChatGPT should give the same result as Joe Biden it’s an incorrect and also an outdated response right? To prevent that the methodology of Reinforcement Learning is used.

To give real-time data, they should not only use this RLHF method. They also use Web Scrapping to get data & more other things. But the RLHF is also an important thing to give Real-time data by the ChatGPT. Because now the ChatGPT is not only the Chatbot AI or just a text-based AI. Now the ChatGPT 4 is an Multimodal AI. To learn more about Multimodal AI check the link: https://cloud.google.com/use-cases/multimodal-ai

Source: https://medium.com/lansaar/understanding-multimodal-ai-6d71653994a2

For that, they should use various methodologies to tune the modal to give better results for the users. But this RLHF methodology is more interesting than others for me. So, I like to share it with you guys.

Note: Even the ChatGPT uses the methodology of Reinforcement Learning it’s trying to give more accuracy. But the result is not 100% perfect till now. Which means till 07/01/2025.

When feel this content is valuable follow me for more upcoming Blogs.

Connect with Me:

🎯 PostgreSQL Zero to Hero with Parottasalna – 2 Day Bootcamp (FREE!) 🚀

2 March 2025 at 07:09

Databases power the backbone of modern applications, and PostgreSQL is one of the most powerful open-source relational databases trusted by top companies worldwide. Whether you’re a beginner or a developer looking to sharpen your database skills, this FREE bootcamp will take you from Zero to Hero in PostgreSQL!

What You’ll Learn?

✅ PostgreSQL fundamentals & installation

✅ Postgres Architecture
✅ Writing optimized queries
✅ Indexing & performance tuning
✅ Transactions & locking mechanisms
✅ Advanced joins, CTEs & subqueries
✅ Real-world best practices & hands-on exercises

This intensive hands on bootcamp is designed for developers, DBAs, and tech enthusiasts who want to master PostgreSQL from scratch and apply it in real-world scenarios.

Who Should Attend?

🔹 Beginners eager to learn databases
🔹 Developers & Engineers working with PostgreSQL
🔹 Anyone looking to optimize their SQL skills

📅 Date: March 22, 23 -> (Moved to April 5, 6)
⏰ Time: Will be finalized later.
📍 Location: Online
💰 Cost: 100% FREE 🎉

🔗 RSVP Here

Prerequisite

  1. Checkout this playlist of our previous postgres session https://www.youtube.com/playlist?list=PLiutOxBS1Miy3PPwxuvlGRpmNo724mAlt

🎉 This bootcamp is completely FREE – Learn without any cost! 🎉

💡 Spots are limited – RSVP now to reserve your seat!

Ever Wonder How AI "Sees" Like You Do? A Beginner's Guide to Attention

By: angu10
19 February 2025 at 02:05

Understanding Attention in Large Language Models: A Beginner's Guide

Have you ever wondered how ChatGPT or other AI models can understand and respond to your messages so well? The secret lies in a mechanism called ATTENTION - a crucial component that helps these models understand relationships between words and generate meaningful responses. Let's break it down in simple terms!

What is Attention?

Imagine you're reading a long sentence: "The cat sat on the mat because it was comfortable." When you read "it," your brain naturally connects back to either "the cat" or "the mat" to understand what "it" refers to. This is exactly what attention does in AI models - it helps the model figure out which words are related to each other.

How Does Attention Work?

The attention mechanism works like a spotlight that can focus on different words when processing each word in a sentence. Here's a simple breakdown:

  1. For each word, the model calculates how important every other word is in relation to it.
  2. It then uses these importance scores to create a weighted combination of all words.
  3. This helps the model understand context and relationships between words.

Let's visualize this with an example:

Image description

In this diagram, the word "it" is paying attention to all other words in the sentence. The thickness of the arrows could represent the attention weights. The model would likely assign higher attention weights to "cat" and "mat" to determine which one "it" refers to.

Multi-Head Attention: Looking at Things from Different Angles

In modern language models, we don't just use one attention mechanism - we use several in parallel! This is called Multi-Head Attention. Each "head" can focus on different types of relationships between words.

Let's consider the sentence: The chef who won the competition prepared a delicious meal.

  • Head 1 could focus on subject-verb relationships (chef - prepared)
  • Head 2 might attend to adjective-noun pairs (delicious - meal)
  • Head 3 could look at broader context (competition - meal)

Here's a diagram:

Image description

This multi-headed approach helps the model understand text from different perspectives, just like how we humans might read a sentence multiple times to understand different aspects of its meaning.

Why Attention Matters

Attention mechanisms have revolutionized natural language processing because they:

  1. Handle long-range dependencies better than previous methods.
  2. Can process input sequences in parallel.
  3. Create interpretable connections between words.
  4. Allow models to focus on relevant information while ignoring irrelevant parts.

Recent Developments and Research

The field of LLMs is rapidly evolving, with new techniques and insights emerging regularly. Here are a few areas of active research:

Contextual Hallucinations

Large language models (LLMs) can sometimes hallucinate details and respond with unsubstantiated answers that are inaccurate with respect to the input context.

The Lookback Lens technique analyzes attention patterns to detect when a model might be generating information not present in the input context.

Extending Context Window

Researchers are working on extending the context window sizes of LLMs, allowing them to process longer text sequences.

Conclusion

While the math behind attention mechanisms can be complex, the core idea is simple: help the model focus on the most relevant parts of the input when processing each word. This allows language models to understand the context and relationships between words better, leading to more accurate and coherent responses.

Remember, this is just a high-level overview - there's much more to learn about attention mechanisms! Hopefully, this will give you a good foundation for understanding how modern AI models process and understand text.

📢 Python Learning 2.0 in Tamil – Call for Participants! 🚀

10 February 2025 at 07:58

After an incredible year of Python learning Watch our journey here, we’re back with an all new approach for 2025!

If you haven’t subscribed to our channel, don’t miss to do it ? Support Us by subscribing

This time, we’re shifting gears from theory to practice with mini projects that will help you build real-world solutions. Study materials will be shared beforehand, and you’ll work hands-on to solve practical problems building actual projects that showcase your skills.

🔑 What’s New?

✅ Real-world mini projects
✅ Task-based shortlisting process
✅ Limited seats for focused learning
✅ Dedicated WhatsApp group for discussions & mentorship
✅ Live streaming of sessions for wider participation
✅ Study materials, quizzes, surprise gifts, and more!

📋 How to Join?

  1. Fill the below RSVP – Open for 20 days (till – March 2) only!
  2. After RSVP closes, shortlisted participants will receive tasks via email.
  3. Complete the tasks to get shortlisted.
  4. Selected students will be added to an exclusive WhatsApp group for intensive training.
  5. It’s a COST-FREE learning. We require your time, effort and support.
  6. Course start date will be announced after RSVP.

📜 RSVP Form

☎ How to Contact for Queries ?

If you have any queries, feel free to message in whatsapp, telegram, signal on this number 9176409201.

You can also mail me at learnwithjafer@gmail.com

Follow us for more oppurtunities/updates and more…

Don’t miss this chance to level up your Python skills Cost Free with hands-on projects and exciting rewards! RSVP now and be part of Python Learning 2.0! 🚀

Our Previous Monthly meets – https://www.youtube.com/watch?v=cPtyuSzeaa8&list=PLiutOxBS1MizPGGcdfXF61WP5pNUYvxUl&pp=gAQB

Our Previous Sessions,

Postgres – https://www.youtube.com/watch?v=04pE5bK2-VA&list=PLiutOxBS1Miy3PPwxuvlGRpmNo724mAlt&pp=gAQB

Python – https://www.youtube.com/watch?v=lQquVptFreE&list=PLiutOxBS1Mizte0ehfMrRKHSIQcCImwHL&pp=gAQB

Docker – https://www.youtube.com/watch?v=nXgUBanjZP8&list=PLiutOxBS1Mizi9IRQM-N3BFWXJkb-hQ4U&pp=gAQB

Note: If you wish to support me for this initiative please share this with your friends, students and those who are in need.

How to view manually installed packages in ubuntu

By: Hariharan
2 November 2024 at 18:49

Hi all in the blog post we are going to list down the packages we installed manually.

why we need that information?
when we set up a fresh Linux Distro or migrate existing or converting Linux installation into a docker image that will very helpful to us

how we are going to get this thing done?
using the aptitude (high-level package manager command-line interface)

install aptitude first if not present in your system

sudo apt install aptitude 

wait a few seconds to complete installation after completing the installation run the following command to find the manually installed packages after the initial run of the

comm -23 <(aptitude search '~i !~M' -F '%p' | sed "s/ *$//" | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)

Image description

Voila we did it!

ML Day 1: கற்கும் இயந்திரவியல் முதல் நாள் வகுப்பு

By: Hariharan
14 September 2024 at 17:39

பைத்தான் வகுப்பு முடிந்ததும் 7-8 நேரத்தை பிற நல்ல முறையில் பயன்படுத்த வேண்டும் என்ற ஆவல் இருந்தது.

அப்போது பைத்தான் வகுப்பு குழுவிலிருந்து ஒரு செய்தி வந்தது. கற்கும் இயந்திரவியலில் ஒரு அறிமுக 3 நாள் வகுப்பு தினமும் 8:30 – 9:30 என்ற அறிவிப்புதான் அது.

சரி இந்த முறையாவது அனைத்து வகுப்புகளையும் நேரலை அல்லாமல் நேரடியாக இணையவேண்டும் என்ற மன உறுதியுடன் வகுப்புகளில் இணைந்து வகுப்புகளை கவனித்தேன்.

இப்போது வகுப்பில் இருந்து கற்றவற்றை எளிதில் விளங்கும் கேள்வி பதிலாக தொகுத்து கூறும் முயற்சியில் இறங்கியுள்ளேன்.

  1. கற்கும் இயந்திரவியல் என்பது என்ன ?
  2. கற்கும் இயந்திரவியலை புரிந்து கொள்ள நமக்கு அடிப்படையாக தேவைப்படுபவை எவை?

மன்னிக்கவும்! .

இப்பதிவு இன்னும் முழுமையாக எழுதி முடிக்கப்படவில்லை.

Closing notes on 2 months online python course

8 September 2024 at 00:06

The past 2 months went with weekly 3 python classes in Tamil, from Kaniyam Foundation

We got around 3500 participants in 3 whatsapp groups. Initial days went with some 1000+ students.

As the classes are in Tamil, live streamed, many participants started to learn easily.

We asked to learn, take notes, write blog daily. Many of them started to write. You can see them all here – https://blogs.kaniyam.cloudns.nz/

I hope minimum 20 students learned python very well.

The project demo days at final weeks proved that within 2 months, anyone can learn python programming and do good projects. All we need is dedicated learning and practicing.

I thank Syed Jafer, who trained us in a easy way. Thanks to all participants for great enthusiasm and hard work on learning.

I got opportunity to handle few classes and few QA sessions. Enjoyed every discussions with the team. Happy to see the progress and read all your blog posts daily. Continue the learning and writing. It is a life long process.

Special Thanks to my ilugc friend Asokan. He is a trainer for 20+ years. He taught python around 2005 in our Chennai Linux Users Group meetings. Happy to learn again from him, on his special training sessions.

On our discussions, he explained how to train python for beginners. Learned on he importance of more good examples, how to explain basics etc.

We all wondered on various methods to solve the fizz buzz problem and the beauty of functional programming.

Thanks for Asokan for mentoring us and TalentSprint.com for providing Zoom for the classes.

The feedback session was interesting. Captured the notes here on the things to improve on the next classes.

Feedback from participants –

  • go little slow
  • more basics and examples
  • first week , explain programming basics for beginners
  • teach flow charting methods for basics.
  • try teaching scratch
  • weekend sessions batch
  • make more conversations by participants
  • make sub groups
  • get cheerleaders within the team to make the classes interactive
  • more promotion needed
  • give better examples
  • more QA sessions are required
  • each one should talk
  • showing face in video can help to get some personal connections.
  • run mini hackathons
  • make more interactions and connections between the participants
  • ask to write blogs daily
  • encourage to give talks in class and other communities

Few more learning’s

  • Don’t create whatsapp group for communications. It has 1024 members limit. Having multiple groups is a headache.
  • Telegram is fine for now. Try to explore mailing list too.
  • Mute the groups, if required, to avoid “hi,hello,good morning” messages.
  • Teach how to join for mailing list like chennaipy, kanchilug and how to ask in forums like https://forums.tamillinuxcommunity.org/
  • Teach how to create a free blog in dev.to or wordpress.com
  • Don’t spend much time on explaining all the things in the language. In 5th or 6th class, they have to write code for a small project. Explain things as solutions for the project ideas or problem statements.
  • Insist on using names when calling people, always. By habit, people will call as sir/madam. avoid that on any technical discussions. We all are equal.
  • Zoom is costly. Even though we invest time on training and money for zoom, only around 50 people will complete the training. Check for other platforms like jitsi or google meet too.

Will try to implement these in our upcoming classes.

If you are interested in teaching any open source technology in tamil, write to us at KaniyamFoundation@gmail.com It can be some 30 min talk or few months trainings.

Thanks for all people who are spreading the knowledge openly. you are the backbone of the life.

Links

All the training videos are here – https://www.youtube.com/watch?v=lQquVptFreE&list=PLiutOxBS1Mizte0ehfMrRKHSIQcCImwHL

Telegram Group – https://t.me/parottasalna

My slides in introduction to python – https://kaniyam.cloudns.nz/python-tips/python-tips.pdf

350 python tips – https://kaniyam.cloudns.nz/python-tips/python-tips.pdf

Syed’s website – https://parottasalna.com/

All our blog posts – https://blogs.kaniyam.cloudns.nz

Closing notes on 2 months online python course

8 September 2024 at 00:06

The past 2 months went with weekly 3 python classes in Tamil, from Kaniyam Foundation

We got around 3500 participants in 3 whatsapp groups. Initial days went with some 1000+ students.

As the classes are in Tamil, live streamed, many participants started to learn easily.

We asked to learn, take notes, write blog daily. Many of them started to write. You can see them all here – https://blogs.kaniyam.cloudns.nz/

I hope minimum 20 students learned python very well.

The project demo days at final weeks proved that within 2 months, anyone can learn python programming and do good projects. All we need is dedicated learning and practicing.

I thank Syed Jafer, who trained us in a easy way. Thanks to all participants for great enthusiasm and hard work on learning.

I got opportunity to handle few classes and few QA sessions. Enjoyed every discussions with the team. Happy to see the progress and read all your blog posts daily. Continue the learning and writing. It is a life long process.

Special Thanks to my ilugc friend Asokan. He is a trainer for 20+ years. He taught python around 2005 in our Chennai Linux Users Group meetings. Happy to learn again from him, on his special training sessions.

On our discussions, he explained how to train python for beginners. Learned on he importance of more good examples, how to explain basics etc.

We all wondered on various methods to solve the fizz buzz problem and the beauty of functional programming.

Thanks for Asokan for mentoring us and TalentSprint.com for providing Zoom for the classes.

The feedback session was interesting. Captured the notes here on the things to improve on the next classes.

Feedback from participants –

  • go little slow
  • more basics and examples
  • first week , explain programming basics for beginners
  • teach flow charting methods for basics.
  • try teaching scratch
  • weekend sessions batch
  • make more conversations by participants
  • make sub groups
  • get cheerleaders within the team to make the classes interactive
  • more promotion needed
  • give better examples
  • more QA sessions are required
  • each one should talk
  • showing face in video can help to get some personal connections.
  • run mini hackathons
  • make more interactions and connections between the participants
  • ask to write blogs daily
  • encourage to give talks in class and other communities

Few more learning’s

  • Don’t create whatsapp group for communications. It has 1024 members limit. Having multiple groups is a headache.
  • Telegram is fine for now. Try to explore mailing list too.
  • Mute the groups, if required, to avoid “hi,hello,good morning” messages.
  • Teach how to join for mailing list like chennaipy, kanchilug and how to ask in forums like https://forums.tamillinuxcommunity.org/
  • Teach how to create a free blog in dev.to or wordpress.com
  • Don’t spend much time on explaining all the things in the language. In 5th or 6th class, they have to write code for a small project. Explain things as solutions for the project ideas or problem statements.
  • Insist on using names when calling people, always. By habit, people will call as sir/madam. avoid that on any technical discussions. We all are equal.
  • Zoom is costly. Even though we invest time on training and money for zoom, only around 50 people will complete the training. Check for other platforms like jitsi or google meet too.

Will try to implement these in our upcoming classes.

If you are interested in teaching any open source technology in tamil, write to us at KaniyamFoundation@gmail.com It can be some 30 min talk or few months trainings.

Thanks for all people who are spreading the knowledge openly. you are the backbone of the life.

Links

All the training videos are here – https://www.youtube.com/watch?v=lQquVptFreE&list=PLiutOxBS1Mizte0ehfMrRKHSIQcCImwHL

Telegram Group – https://t.me/parottasalna

My slides in introduction to python – https://kaniyam.cloudns.nz/python-tips/python-tips.pdf

350 python tips – https://kaniyam.cloudns.nz/python-tips/python-tips.pdf

Syed’s website – https://parottasalna.com/

All our blog posts – https://blogs.kaniyam.cloudns.nz

Windows | command lines |

1 September 2024 at 16:37
Go forward : cd path\to\folder 
Go backward : cd ../..
Show lists of files and directories : dir
Show lists of files and directories with hidden files also : dir /a
Clearing screen : cls
Show specific type of files: dir *.png | dir *.jpg
Help for a specific command: ipconfig /? | cls /?
Create a new directory : mkdir myDir | mkdir path\to
Remove or delete directories: if your directory is empty rmdir myDir else rmdir /S myDir
Changing drivers : C: | D:
Show path variables: path
Show available drive names: wmic logicaldisk get name
Change color: color 0B | color 90 or back to default just use color
Creating a file : echo somecontent > file.txt
Deleting file: del filename.ext
Reading contents of a file: type file.ext\
Override to a file : echo newcontent > samefile.ext
Appending to a file : echo appendingcontent >> samefile.ext
Copying files: copy test.txt mydir
Introduction to Command Prompt:

The command line in Windows is also known as Command Prompt or CMD.

On Mac and Linux systems, it's called Terminal.

Image description

To open Command Prompt, follow these steps: Open Start, search for 'Command Prompt', and select it.

Alternatively, you can click the keyboard shortcut (Windows + R), type 'cmd', and press Enter.

Image description

Image description

The first line will indicate the version we are using and the current file location by default.

Image description

Right-click on the top title bar, and the Properties screen will appear. From there,

Image description

Image description

To move from one directory to another, use the cd command followed by the folder name.

For example, to move to the 'Desktop' directory from C:\user\ranjith, type cd desktop.

C:\user> ranjith >
Cd space desktop 

To go to the 'python' folder inside 'Desktop', type cd desktop\python.

C:\user> ranjith >
Cd desktop > python

To return to the parent directory, use cd ... For example, if you are in C:\user\ranjith\desktop\python and want to go back two levels to

C:\user\ranjith, 
type cd ..\.. 

To navigate directly to a specific directory in one line, you can provide the full path.

For example, to go directly to C:\user\ranjith\desktop\python,

you can type cd 

C:\user\ranjith\desktop\python.

Image description
To list files and directories :

use the dir command.

For example, C:\user\ranjith> dir

will show the files, folders, free space, and storage details in the current directory.

Image description

To view the contents of a specific folder, use dir followed by the folder path.

 For example, C:\user\ranjith>dir 

Image description

Image description

Desktop\Python will display all files and folders in the Python folder on the Desktop.

Image description

To view hidden or system files, you can use the dir /a command.

 For example,

 C:\user\ranjith>dir /a

will display all files, including hidden and system files.

Image description

To clear the command prompt screen, use the cls command.

For example, 

C:\user\ranjith> cls 

Image description
will clear the screen and remove previous command outputs.

Opening Files and Viewing History:

To list files of a specific type in a directory, use the dir command with a filter.

For example, 

C:\user\ranjith>dir *.png will list all PNG 

Image description

image files in the current directory.

To open a specific file, enter its filename.

Image description

For instance,

C:\user\ranjith\python>binary_search.png would open the binary_search.png file.

Image description

To navigate through your command history, use the Up and Down arrow keys. Pressing the Up arrow key will cycle through previous commands, while the Down arrow key will move forward through the commands.


To get help on a command, use the /? option.

Image description

For example,

C:\user\ranjith>ipconfig /? will show help for the ipconfig command.

Creating and Removing Folders:

To create a new folder, use the mkdir command followed by the folder name.

For example,

C:\user\ranjith>python>mkdir temp will create a folder named temp.

Image description

Image description
To remove a folder, use the rmdir command followed by the folder name.

For example,

C:\user\ranjith>python>rmdir temp will delete the temp folder.

Image description
Note that the rm command is used for files in some systems, but in Command Prompt, you use del for files and rmdir for directories.

Creating and removing directories:

To create a directory, use the command mkdir txt. 
To remove a directory and its contents, use rmdir /s txt.

This will delete all files and subfolders in the directory as well as the directory itself.

Image description

Use Ctrl + Left Arrow to move the cursor to the beginning of the line and Ctrl + Right Arrow to move it to the end. 

Image description

Image description

To check the version, use var.

Image description

 To start multiple command boxes, use Start.

Image description

Image description

To exit, use Exit.

Image description


Drives and Color Commands:

To list all drives, use: wmic logicaldisk get name. This will show all available drives.

c:\user> ranjith > 
wmic logicaldisk get name

Image description

To switch to a different drive, type the drive letter followed by a colon (e.g., E:).

C:\user> ranjith >  E:

To list files in the current drive, use: dir.

E :\> dir

To view hidden files, use: dir /a.

E :\> dir /a

Image description

To see a directory tree, use: tree.

Image description

E :\> tree 

Changing Text and Background Colors:

E :\> color /?

Image description

Image description

To change the color of text and background, use: color /? to see help options.

For example, color a changes the text color to green.

Image description

E :\> color
E :\> color a

color fc sets a bright white background (if 'f' is not given, it defaults to black) and changes text color to bright red.

Image description

E :\> color fc

Image description

These commands help manage files and customize the appearance of your command prompt

File Attributes:

To view file attributes and get help, use: attrib /?.

Image description

C:\user> ranjith >  YouTube > attrib /? 

Image description
To see the attributes of a file, use: attrib sample.txt.

Image description

Image description

C:\user> ranjith >  Desktop >youtube >
attrib sample. txt

Replace sample.txt with your file name.
To add the "hidden" attribute to a file, use: attrib +h sample.txt.

Image description

C:\user> ranjith >  Desktop >youtube >
attrib +h sample. txt 

To remove the "hidden" attribute, use: attrib -h sample.txt.

Image description

Image description

C:\user> ranjith >  Desktop >youtube >
attrib +r - h sample. txt

Deleting and Creating Files:

To delete a file, use: del sample.txt.

Image description

C:\user> ranjith >  Desktop >youtube >
del sample. txt

del - delete <FileName >

To create a new file, use: echo. > sample.txt. This creates an empty file.

Image description

C:\Users\mrkis\Desktop\Youtube>
echo > sample.txt

To write text to a file, use: echo Kishore > sample.txt. This writes "Kishore" to the file.

Image description

Image description

C:\Users\mrkis\Desktop\Youtube>
echo Kishore > sample.txt

Image description

Image description

C:\Users\mrkis\Desktop\Youtube>
type sample.txt

To view the contents of the file, use: type sample.txt.
Appending Text to Files:

Image description

C:\Users\mrkis\Desktop\Youtube>echo hello>sample.txt

To add text to the end of a file without overwriting existing content, use: echo world >> sample.txt.

C:\Users\mrkis\Desktop\Youtube>type sample.txt

This will add "world" to the end of sample.txt.

Image description

To see the updated content, use: type sample.txt.
Copying Files:

To copy a file to another location or with a new name, use: copy sample.txt test2.txt. This copies sample.txt to a new file named test2.txt in the same directory. If you want to specify a different directory, provide the path instead of just the filename.

Image description

Image description

C:\Users\mrkis\Desktop\Youtube>
copy sample.txt test2

This guide helps with managing file attributes, performing file operations, and

Copying Files Between Disks:

To copy a file from one disk to another, use: copy sample.txt E:. This copies sample.txt from the current location to the E: drive.
Using XCOPY for Copying Directories:

To copy files and directories, including subdirectories, use: xcopy test1 test2 /s. This copies test1 (which can be a file or directory) to test2, including all subfolders and files.
Moving Files:

C:\Users\mrkis\Desktop\Youtube>
copy sample.txt e:
E - another disk

To move files from one location to another, use: move test1 test2. This command moves test1 to test2. If test2 is a folder, test1 will be moved into it. If test2 is a file name, test1 will be renamed to test2.
In summary:

C:\Users\mrkis\Desktop\Youtube>
xcopy test1 test2 /s
copy sample.txt test2
Sample. txt - endha file ah copy seiya vendum. 

S - sub files

copy source destination copies files.
xcopy source destination /s copies files and directories, including subdirectories.
move source destination moves files or renames them

Image description

Image description
Image description

js | Functions |

31 August 2024 at 16:16

Functions

Functions are pieces of code that we can reuse again and again in our code

Function Declaration - JavaScript Hoisting

syntax:
function functionName( ){

// code block

}

functionName()  //calling function
Example:
function msg( ){

console.log("Hii...Hello");

}

msg()  //calling function
//msg()
output:

Hii...Hello
//Hii...Hello

A function declaration defines a named function.It's hoisted,
meaning you can call it before it's defined.

Calling the function:
HOSTING
msg()  // valid  HOSTING
function msg( ){

console.log("Hii...Hello");


}
output:

Hii...Hello

Function Parameters and Arguments

syntax:

                        //input 
function functionName( parameter ){

// code block   //output

}

functionName( arguments)  //calling function

Functions can take parameters, which act as placeholders for the values
that will be passed to the function.The passing value is called an argument.

function msg( name ){

console.log("Hii...Hello" + name);

}

msg( "ranjith") ;
msg( "kumar") ;


output:

Hii...Hello ranjith
multiple parameters
function msg( name ,age){

console.log("Hii", + name +" my age"+age);

}

msg( "ranjith",25) ;
msg( "kumar",20) ;

Default Parameter

function printer(color){

console.log("print document in ${color} color");

}

//printer("blue") 
printer("blue") 
output:

document coloe blue color
//red override
function printer(color="black"){

console.log("print document in ${color} color");

}

//printer("red") 
printer( ) 
output:

//document coloe red color

document coloe black color

 Function with Return Type
function add( a,b){
     return a+b;

}

 let sum = add(10,20); //variable vechu assign panni print pannrom
 console.log(sum);  //30

 //console.log(add(10,20);   check pls
 Function Expression
A function expression defines a function inside an expression.
It's not hoisted, so you can't call it before it's defined.
syntax:

    variable      keyword
let functionName=function ( ){

   //code block

}

functionName()   // calling function

Ex:

           //don't change 
 let msg = function( ){   // function() indha typelaa kandippa irukkanum

 console.log("good morning");

}

msg( ) ;  //good morning 
With Argument
//msg( "ranjith") ;   // exp not hositing

let msg = function( name ){

console.log("good morning ${name}");

}

msg( "ranjith") ;  //good morning ranjith
Function Expression with Return Type
let mul = function (a,b){
   return a*b;

};

let result = mul( 5,2 ){
console.log(result); //10

 //console.log(mul(4,7));
 Arrow Function
 Arrow functions provide a concise syntax and do not bind their own 'this'. They are not hoisted.
 syntax:


    variable      keyword
let functionName=( ) =>{

   //code block

}

functionName()   // calling function

Example:
let evening = ( ) =>{

 console.log("good evening everyone");

}

evening ()   // good evening everyone 
With Argument
//not hoisting
let evening = ( name ) =>{

 console.log("good evening " + name);

}

evening ("ajith")   // good evening ajith
 Arrow Function with Return Type


 let sub =( a,b ) =>{
    return a - b ;
 };

  console.log( sub(10,6); // 4
Shorter Way
let sub =(a,b) => a-b;

console.log(sub(10,6)); //4
Function Calling Other Function
                       //ranjith
 function welcomeShopper(name){

 console.log(" welcome ${name} ! enjoy yoyr shopping experience")

}              //ranjith
    function main(name){

   // welcomeShopper(name); // direct calling
                   //ranjith
   let ShopperName-name;  // variableassign and after calling
                   //ranjith
   welcomeShopper(ShopperName); // calling top welcomeshopper

  };

  main("ranjith")  // welcome ranjith ! enjoy your.....
Anonymous Functions: Later on Course on Arrays
serTimeout(() => {

   console.log(" anonymous function executed");

 },2000 // 2sec delay  

 output: anonymous function executed
Scope of variables will on functions and loops
var: Function scoped.
Ex:
function demo(){
    var a =20;
    console.log(a); 

  }
demo();
console.log(a)  //error function outside calling
let: Block scoped.
const: Block scoped.
 Ex:

 function demo(){
     var a =20;
     console.log(a); 

   if (true){

   var x = "var";
   let y = "let";
   const z = ""const;     /// block scop

   console.log(x);
   console.log(y);    // all working good ...if block
   console.log(z);

  }
   console.log(x); // outer block code run successfully  (var)   
   console.log(y);   // error  (let)
   console.log(z);   // error not defienfd  (const)

 demo();

console.log(a)

Js | Truthy & Falsy |

31 August 2024 at 09:48

Truthy and Falsy Values:

in Javascript, truthy and falsy values are used to determine whether a value evaluate to true or false in a boolean
context.this concept is crucial for controlling the flow of your program using conditions like if statement.

Falsy Values: 0," ",null,NaN,false,undefined 
console.log(Boolean(0)); //false
console.log(Boolean(undefined)); //false

console.log(Boolean(' '));  //empty false

console.log(Boolean(null)); //false

console.log(Boolean(NaN)); //false not a number

console.log(Boolean(false)); //false

Truthy Values: any value that is not Falsy :

console.log(Boolean(1)); //true
console.log(Boolean(1833933)); //true
console.log(Boolean(-1)); //true
console.log(Boolean("hello")); //true
console.log(Boolean(1)); //true
console.log(Boolean([])); //true empty array
console.log(Boolean({})); //true empty object
console.log(function (){}); //true
Example:
           t     f
let cash =255  //0 ; 
    //conditions false  statement block not run
if (cash){
  console.log("you can buy burger with drink"); 
}else{
   console.log("you can buy burger"); 
}else{
   console.log("you don't have money"); 
}
let a;
console.log(a); //false
output:
undefined 
let a = 10;
console.log(a); //true
let a = null;
console.log(a); //false

Js | Decision Making: | if | if Else | Else if |

31 August 2024 at 09:15

Decision Making: if, if...else, else if


Decision making or control flow in programmming is the way we coontrol the execution
of code based on certain conditions.this allows the program to make choicces and execute diff code paths.

Example 1: if statement
syntax:
if (condition){

  //code block 

}

Example:

             f    f   t
let temp =  #24  #25  25;


if (temp>=25);
{

console.log("it is hot outside");

} 

Example 2: if...else statement

syntax:

if (condition){

  //code block 

}
else{

   //code block 

}
Example 1:
if (temp>=25);

{

console.log("it is hot outside");

}
else{

console.log("it is cold outside");

}
Example 2:
let isRaining= #true false;

if (isRaning);
{

console.log("take an umbrella");

}
else{

console.log(" you don't need an umbrella");

}
Example 3: else if statement
syntax:
if (condition){

  //code block 

}
else if(condition){

   //code block 

}
else{

   //code block 

}
Example:
let time=14;

if (time<12){

console.log("good morning"); 

}
else if(time<18){

 console.log("good afternoon");  

}
else{

 console.log("good evening");  

}
Example 4: Nested if statements
Variables
let age= 16;
let iswithparents=true;
let idproof=true;
Decision logic

if (age>=18);{

  if(idproof);
    console.log("you can visit the mall and can able to watch the movie"); 
  } else{
     console.log("you can visit te mall"); 
  }
}else{
     if(iswithparents);
        console.log("you can visit the play area"); 
  } else{
     console.log("you are not allowed in the play are"); 
  }

}
Example:
let day=1;

if(day===1){
  console.log("monday"); 
}
else if(day===2){
  console.log("thuesday"); 
}
else if(day===3){
  console.log("wenday"); 
}
else if(day===4){
  console.log("thuesday"); 
}
else if(day===5){
  console.log("friday"); 
}
else{
console.log("in valid"); 
}
Switch Statement
syntax:
switch(vale){
  case 1:
     //code block  
      break;
  case 2:    
    //code block  
       break;
  case 3:
      //code block  
       break;
  Default:
      //code block  
       break;
}
Exmple1:
let day=3;

switch(day){

  case 1:
      console.log("monday"); 
      break;
  case 2:
      console.log("thuesday"); 
      break;
  case 3:
      console.log("wensday"); 
      break;
  case 4:
      console.log("thresday"); 
      break;
  case 5:
      console.log("friday"); 
      break;
   default:
      console.log("invalid"); 
}

output:

wensday
Exmple2:
let choice='tea';

switch(choice){

   case 'coffee':
      console.log("you choose coffee monday"); 
      break;
   case 'tea':
      console.log(" you choose tea thuesday"); 
      break;
    case 'water':
      console.log(" you choose water thuesday"); 
      break;
    default:
      console.log("invalid"); 
}

output:

you choose tea 
Ternary Operator
short hand if else
let isadmin =true;

/*if(isadmin){
  console.log("am  admin");
}
else{
   console.log("am  user");
} */
                 true        .
let userrole = isadmin ? " am admin ":" am user ";
console.log(userrole);

let mark=60;
     var        cond      if       else
let result = mark>=30 ? " pass ":" fail ";
              //true
//let result = 25>=30 ? " pass ":" fail ";

console.log(result); 

output:

pass

Js | DataTypes |

30 August 2024 at 18:13

Datatypes

  • Javascript is Dynamic Typing

  • Primitive and Object Type

Primitive Data Types:

1.Number - Represents both integer and floating-point numbers.

let age=10;  #equal two apram enna num,str,bool ex...automatic convert pannikum enna datatype nu.
console.log(age);
console.log(typeof age); 

output:
10
number
age="25";
console.log(age);
console.log(typeof age); 

output:
string

float number:

let price=19.99;
console.log(price);
console.log(typeof price); 

output:
19.999
number

2.String - Represents a sequence of characters.

let greeting="Hello World.!"
console.log(greeting);
console.log(typeof greeting); 

output:
string

3.Boolean - Represents a logical entity and can have two values: true or false.

let isActive=true;
console.log( isActive);
console.log(typeof  isActive);
let isActive=false;
console.log( isActive);
console.log(typeof  isActive); 

4.Undefined - A variable that has been declared but not assigned a value.

let name;  #Error undefined
console.log( a);
console.log(typeof a); 

5.Null - Represents the intentional absence of any object value.

let name-null:
console.log(name);
console.log(typeof name); 

6.Symbol - Represents a unique and immutable value, often used as object property keys.

let unique=symbol("key"); #custom symbol
console.log(unique);
console.log(typeof unique); 

output:
symbol("key")

7.BigInt - Represents whole numbers larger than 2^53 - 1 (the largest number JavaScript can reliably represent with the Number type).


let largeNumber=BigInt(68690356789000833);
let largeNumber=68690356789000833n; #using the n notation

console.log( largeNumber);
console.log(typeof largeNumber); 

output:
68690356789000833n

Non-Primitive Data Types

1.Object

Represents a collection of properties, each consisting of a key (usually a string)
and a value (which can be any data type, including another object.

let person={

  name-'ranjith'.
  age=25,
  isEmployed=true;
}

console.log( person); //total laa print agum
console.log( person .name);  // name only
console.log( person .age);  // age only
console.log( person .isEmployed);

console.log(typeof  person); 

2.Array

A special type of object used for storing ordered collections of values.

let number=[1,2,5,4,8];
console.log( number);

let mixdata=[1,'2',true,false,null,[1,2,'5',"str"] ,undefined ];
console.log( mixdata);

3.Function

A special type of object that is callable and can perform an action.

function invite( ){
   console.log( "you are invitd");
}
invite()
**4.Date - A built-in object for handling dates and times.**

let now- new Date;
console.log( now);

outut:
date wed jul 24 2024 09.00:51 Gmt( indian stamdard)

July 8, 2024 Python Meet & Greet - Part 2

By: Vishal J
8 August 2024 at 09:57

This is a series of Python learning blog from parottosalna community by kaniyam foundation

This blog is based on this video "Python Meet & Greet - Part 2 | Parotta Salna" - Day 1 of Python learning Introduction class

To watch the full series check this youtube playlist

Objectives

  1. Introduction to Python Program
  2. About Linux user groups and their activites in Tamilnadu
  3. Contact numbers and links
  4. Forum questions asking methods
  5. Today Tasks
  • Linux groups and meetups in tamilnadu

  • To get updates for the linux meetups you can check the kaniyam.com website calender

  • The know for meetups check for meetup.com

  • These groups are volunteer group for knowledge sharing

  • GNU Linux

  • Windows or Mac are properaty software

  • Linux is made by the people for the people

  • GNU image for alternative photoshop

  • The only thing is after modify the software, it should be reelase it with original license

  • muthuramalingam tamil python - Youtube channel

  • To eliminate Thayakkam

    • This is what i know, and I am sharing it with you
  • By asking questions in forums you are creating a knowledge database

  • Ask questions in mailing list in chennaipy.org

  • By using tanglish you are not strong in either english or in tamil.

  • Things to remember when asking question

    • Don't ask your questions in one line
    • If possible add error code
    • If you have any question, always ask in public
  • Programming is like cooking

  • UI/UX - Javascript or HTML or CSS

  • Srinivasan is using Ubuntu KDE distribution of Linux

  • Srinivasan's Phone number: 9841795468

  • Dhanasekaran and Srinivasan is organising the class

  • Every week saturday teaching reactJS

  • Today Exercise

    • Install Python
    • Login in colab
  • Freetamilebook.com

  • python books

  • Telegram link: https://t.me/+2Q_uTW7j9xtkMmVl

July 8, 2024 Python - Meet & Greet - Part 1

By: Vishal J
8 August 2024 at 09:47

This is a series of Python learning blog from parottosalna community by kaniyam foundation

This blog is based on this video "Python - Meet & Greet - Part 1 | ParottaSalna" - Day 1 of Python learning Introduction class

To watch the full series check this youtube playlist

Objectives:

  1. Why Python ?
  2. Course Syllabus
  3. Python Installation - Windows, Linux
  4. Collab Notebook
  5. Where to see updates & recordings.
  6. Where to ask questions ?
  7. Our Expectations
  8. Basic Print Command
  9. About FOSS, FOSS Communities.
  • Applications of Python language

  • Syllabus

  • Resources provided the team

    1. Blog
    2. Infographic PDF with important concepts
    3. Quiz
    4. Task like exercises
  • Learn -> Write blog -> Teach someone

  • python is open source

  • Python Colab in google for temperavery

    • Each program set is called cell
  • To ask questions

    • Ask in Tamil linux forum
    • Direct question in whatsup after class upto 2 hours
    • Few minutes before the class
  • To check updates for class

    • Check in Kaniyam website
    • Check in python syllabus session
    • Youtube channel live notification
    • Direct message to mentors
  • To find answer for my question

    1. First check in google search
    2. Then ask question
  • Expectations

    • To write blog notes after each classes
  • Programming

    • Print command
      • print("") this the format of the print command
      • To run the code python print or python print.py
  • Python is ready install in linux, if not install it with brew command

  • Mentor will use VScode and colob for teaching

  • Telegram link: https://t.me/+2Q_uTW7j9xtkMmVl

Python - List Methods & Tasks II

By: SM
1 August 2024 at 01:22

Even though I had done the tasks beforehand, watching them being done in class today taught me new things.

I learned that I could use Python's in-built list methods more, instead of falling back to for loop all the time.

For example, I could use the extend method (rather than for loop and append method) to expand a list with the contents of another list. Likewise, I could use the clear method (rather than for loop and remove method) to empty a list.

Unless there is a specific need for using the for loop, like I need to check a condition on individual elements before adding them to or removing them from the list, the code looks much cleaner this way.

Python: print() methods

17 July 2024 at 10:58

Hi all,
Today, I learned about the Python print statement. It is fascinating to know that Python has so much functionality.I will share some of the thing i learned today

  1. sep, the sep parameter is used with the print() function to specify the separator between multiple arguments when they are printed.
  2. escape sequence like \n (new line), \t(adds space), \b(removes previous character).
  3. concatenation which adds two different strings.
  4. concatenating str and int which combine string and integer by converting integer into string by typecasting.
  5. Raw string A raw string in Python is defined by prefixing the string literal with an 'r' or 'R'.Raw strings are often used when working with regular expressions or when dealing with paths in file systems to avoid unintended interpretation of escape sequences.
  6. Format the format() method is used to format strings by replacing placeholders {} in the string with values passed as arguments.
  7. string multiplication here you can multiply strings by using the *operator. This operation allows you to multiply string a specified number of times.
❌
❌