New_Era_New_Learning_Style

New_Era_New_Learning_Style WHO WE ARE,
BEING AN IT PROFESSIONAL WE MADE OUR GOAL TO
TRANSFER THE SKILLS TO THE UPCOMING LEARNER

The most regular asking questions like, 1. When a copy constructor invokes and what are the levels and types2. How to di...
04/06/2024

The most regular asking questions like,
1. When a copy constructor invokes and what are the levels and types
2. How to disable copy constructor
3. How to disable copy assignment

A very simple example attached

Do comments if needed clarity

Check your register information using gd with attached snap info
05/01/2023

Check your register information using gd with attached snap info

Core Pattern Attached snap is to check and change your core Pattern.
05/01/2023

Core Pattern
Attached snap is to check and change your core Pattern.

Valgrind tool-------------------How to make your code more robust, how can you avoid memory leaks in your code.Command: ...
05/01/2023

Valgrind tool
-------------------
How to make your code more robust, how can you avoid memory leaks in your code.

Command: valgrind --leak-check=full ./bin

By executing the above command, you can check your heap usage.

Attached snap for your reference.

Follow the below link to learn the memory layout in C language.https://www.scaler.com/topics/c/memory-layout-in-c/
30/11/2022

Follow the below link to learn the memory layout in C language.

https://www.scaler.com/topics/c/memory-layout-in-c/

Scaler Topics offers free certificate courses for all programming languages like Java, Python, C, C++, DSA etc. Learn from top MAANG experts and level up your skills. Explore now

06/10/2022

To generate the pstack from crash archive(core file), below are the set of instructions and useful gdb hacks :)

gdb core.xyz --tui
set logging on
thread apply all bt
set logging off
quit

above instruction will generate one file called gdb.txt (pstack).
Which will help you to analyze the crash.

Below grep pattern will help you to debug the interface level statistics.
06/10/2022

Below grep pattern will help you to debug the interface level statistics.

Uses of CPU core using top/htop attached below.
06/10/2022

Uses of CPU core using top/htop attached below.

06/10/2022

Create the below linux command as an alias and use it to find/kill the number of instances running of a process.

alias a='kill -9 `ps -eo '\''tty pid args'\'' | grep | grep -v grep | tr -s '\'' '\'' | cut -f2 -d '\'' '\''`'

alias b='ps -eo '\''tty pid args'\'' | grep | grep -v grep | tr -s '\'' '\'' | cut -f2 -d '\'' '\'''

Add the below functionality to improvise your findings in Linux.Add this in your Linux .bashrc filePing/comment here for...
24/05/2022

Add the below functionality to improvise your findings in Linux.
Add this in your Linux .bashrc file

Ping/comment here for uses of this functionality :)

Linux file system
19/04/2022

Linux file system

Basic use of macro at compilation level.Generally this macros and flags we use while enabling or disabling any features ...
22/02/2022


Basic use of macro at compilation level.
Generally this macros and flags we use while enabling or disabling any features at compilation time.

Attached the basic code snippet, think beyond and use in your code.

Compilation command :
gcc -D _ENABLE_ -g file.c

Address

Bangalore

Website

Alerts

Be the first to know and let us send you an email when New_Era_New_Learning_Style posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share