<?php
<!-- input from anywhere (browser, mobile app, postman, etc) -->
<!-- /api/v1/blogs/42/comments/7?sort=desc&limit=5&include=author,tags -->
<!-- output -->
<!-- {
"full_url": "/api/v1/blogs/42/comments/7?sort=desc&limit=5&include=author,tags",
"path_segments": ["api", "v1", "blogs", "42", "comments", "7"],
"resource": "blogs",নিশ্চয়! যেহেতু আপনি PHP এবং REST API style URL handling নিয়ে কাজ করছেন, আমি আপনাকে ৫টি প্র্যাকটিস টাস্ক দিচ্ছি যা real-world API parsing ও PHP array/json handling-এ সাহায্য করবে।
Task: একটি URL string নিয়ে লিখুন যে function:
- সব resource এবং sub-resource কে dynamically array আকারে বের করবে।
ইসলামিক বাংলা বইসমুহ - পরামর্শেঃ মনসুর আহমেদ from Dawahwise Bangla
- ১. যাদের দুআ আল্লাহ ফিরিয়ে দেন না - লিখেছেনঃ ইমাম জালালুদ্দীন সুয়ুতী রাহি - অনুবাদঃ হাফিজ আহমদ নাঈম
- ২. সফওয়াতুত তাফাসীর - লিখেছেনঃ শাইখ মুহাম্মাদ আলী আস সাবুনী রহ.
- ৩. হাদীস-শাস্ত্রের পারিভাষিক জ্ঞান - লিখেছেনঃ শায়খ আব্দুল হামিদ ফাইযী আল-মাদানী
- [৪. হাদীস অধ্যয়নের মূলনীতি - লিখেছেনঃ মাওলানা আবুল ফাতাহ মুহা. ইয়াহইয়া](https://www.rokomari.com/book/98310/%E0%A6%B9%E0%A6%BE%E0%A6%A6%E0%A7%80%E0%A6%B8-%E0%A6%85%E0%A6%A7%E0%A7%8D%E0%A6%AF%E0%A7%9F%E0%A6%A8%E0
This example demonstrates how to build a fully functional dialog/modal using only HTML and CSS.
<!-- HTML Structure for the Dialog -->
<input type="checkbox" id="dialog-toggle" class="hidden">
<label for="dialog-toggle" class="dialog-open">Open</label>
<div class="dialog-backdrop">browser-external:events:9 Module "events" has been externalized for browser compatibility. Cannot access "events.EventEmitter" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
i used this package to fix the problem: vite-plugin-node-polyfills
pnpm install --save-dev vite-plugin-node-polyfillsProblem: Property 'user' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'
When working with Express and jsonwebtoken, it's better to use res.locals to store user-related data rather than modifying the req object directly. This approach adheres to best practices and avoids potential issues with modifying the req object.
Here’s why:
- Separation of Concerns:
res.localsis designed for passing data to subsequent middleware or templates. It keeps the request object clean and unmodified. - Middleware-Safe: Using
res.localsensures that the data is available to other middleware without interfering with the original request object.
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))" | wl-copy| # fnm | |
| eval "$(fnm env)" | |
| # add fnm autocomplete | |
| fnm completions --shell=zsh > ~/.config/zsh/completions/_fnm # you can run this once and then comment out | |
| fpath+=~/.config/zsh/completions/_fnm | |
| autoload -U compinit | |
| compinit | |
| # autoload .nvmrc |