๐น dependencies
Packages your app needs to run in production.
-
Used in the app's runtime code
-
Installed on both development and production environments
-
Example: Frameworks, HTTP clients, database drivers
Example:
dependencies
Packages your app needs to run in production.
Used in the app's runtime code
Installed on both development and production environments
Example: Frameworks, HTTP clients, database drivers
Example:
"dependencies": { "express": "^4.18.2",
"axios": "^1.6.0"
}
In the world of investing and trading, there are multiple vehicles to grow your money — but they’re not all the same. Here's a clear comparison to help you understand which instrument suits your needs, skills, and risk profile.
Feature | Mutual Funds | Equity (Stocks) | Futures | Options |
---|---|---|---|---|
Ownership | Indirect (via fund manager) | Direct (you own shares) | Contract-based (buy/sell later) | Right to buy/sell, not obligation |
Capital Required | Low (₹500 SIP possible) | Moderate (per share price) | High (lot size × price) | Low (just the premium) |
Risk Level | Low to Medium | Medium to High | High | Very High |
Return Potential | Moderate, stable | High (if selected well) | High but risky | Very high (or zero) |
Time Involvement | Passive | Moderate (needs research) | Active, short-term | Very active, time-sensitive |
Charges | Fund fees, exit load | STT, brokerage, taxes | STT, brokerage, margin fees | STT, premium cost, brokerage |
Who Manages It? | Professional fund manager | You | You | You |
Leverage | No | No | Yes (margin) | Yes (in-built) |
Best For | Passive long-term investors | Active long-term investors | Experienced short-term traders | Speculators, hedgers |
Most beginners enter the stock market dreaming of financial freedom. They follow YouTube gurus, try "proven" intraday strategies, and set out to double their capital.
But soon, reality hits — not because they are wrong in analysis, but because the game is rigged with charges that no one talks about.
Let’s say you do a basic intraday Nifty options trade:
Charge Type | Approx. Amount |
---|---|
Brokerage (₹20 x 2) | ₹40 |
STT (on Sell) | ₹19.69 |
Exchange Transaction Charges | ₹5.62 |
GST (18% on ₹45.62) | ₹8.21 |
SEBI Charges | ₹0.15 |
Stamp Duty (Buy side only) | ₹4.50 |
Total Charges | ₹78.17 |
Net Profit | ₹296.83 |
๐ป So, even when you're right, you lose 20%+ of your profits to charges.
NgZone vs ChangeDetectorRef (CDR) in Angular
Both NgZone and ChangeDetectorRef (CDR) help with change detection, but they serve different purposes.
NgZone is a service that controls how Angular detects changes globally across the application. It helps manage execution inside or outside Angular's change detection system.
NgZone
?setTimeout
, WebSockets, or third-party libraries) inside change detection.run(callback)
→ Forces Angular to detect changes.runOutsideAngular(callback)
→ Runs code outside change detection (for performance).Let’s compare .some(), .includes(), and .findIndex() to see why .some() is the best choice in this case.
Why Not .includes()?
How .includes() Works
.includes(value) only works for exact matches in an array.
It checks if the array contains the exact string or number.
Why It Won’t Work Here
Your case needs partial matching (window.location.hostname.includes(host)), but .includes() only checks for exact matches.
๐ด Example: Doesn't Work for Partial Matching
const hosts = ["localhost", "127.0.0.1"];
const isLocal = hosts.includes(window.location.hostname);
console.log(isLocal);
❌ This only works if window.location.hostname is exactly "localhost" or "127.0.0.1", but it fails if the hostname is "localhost:4200" (which is common in Angular development).
Open the Registry Editor:
Win + R
, type regedit
, and press Enter
.Navigate to:
HKEY_CURRENT_USER\SOFTWARE\Fortinet\FortiClient\Sslvpn\Tunnels\<VPN_NAME>
Find the show_remember_password
entry:
show_remember_password
entry under the <VPN_NAME>
tunnel configuration.Change the value:
show_remember_password
from 0
to 1
.Save your changes:
Replace <VPN_NAME>
with the actual name of your VPN configuration. This change will allow your FortiClient to remember your password for future sessions.
Docker and Kubernetes are both essential tools in the container ecosystem, but they serve different purposes and are often used together in modern software development and deployment. Here’s a breakdown of each and a comparison of their functionalities and roles.
Docker is a platform for developing, shipping, and running applications in containers. Containers are lightweight, portable units that package application code along with all its dependencies, making it easy to run applications consistently across different environments.
Key Docker components:
Kubernetes is a container orchestration platform designed to manage, scale, and deploy containerized applications across clusters of machines. While Docker handles individual containers, Kubernetes automates the deployment, scaling, and management of containerized applications across multiple hosts, ensuring high availability and scalability.
Key Kubernetes components: