Dev Perfects
40 subscribers
9.23K photos
1.26K videos
468 files
13K links
بخوام خیلی خلاصه بگم
این کانال میاد مطالب کانالای خفن تو حوزه تکنولوژی و برنامه نویسی رو جمع میکنه

پست پین رو بخونید
https://t.iss.one/dev_perfects/455


ارتباط:
https://t.iss.one/HidenChat_Bot?start=936082426
Download Telegram
Forwarded from Gopher Academy
بیشترین سوالات مصاحبه String + Array

String-Based Questions
1. Reverse a string — without using built-ins.
2. Is it a palindrome? Let's find out.
3. Remove duplicates from a string — efficiently.
4. First non-repeating character — who stands alone?
5. Count how many times each character appears.
6. Flip the words in a sentence, not the letters.
7. Are two strings anagrams? Prove it.
8. Longest substring without repeats — sliding window style.
9. Build your own atoi — string to integer.
10. Compress strings with run-length encoding.
11. Most frequent character — who dominates?
12. List all possible substrings of a string.
13. Is one string a rotation of another?
14. Strip all white spaces from a string.
15. Is this a valid shuffle of two strings?
16. Convert text to Title Case — properly.
17. Find the longest common prefix among words.
18. Break a string into a char array — without confusion.
19. Replace spaces with %20 — classic URL trick.
20. Turn full sentences into acronyms.
21. Check if the string is all digits — no alphabets allowed.
22. Count how many words are in the string.
23. Remove a specific character — cleanly.
24. Find the shortest word in a sentence.
25. Longest palindromic substring — two-pointer style.

Array-Based Questions
26. Reverse an array in-place.
27. Find the largest and smallest element.
28. Check for duplicates in an array.
29. Remove duplicates — return only unique values.
30. Find the missing number from 1 to N.
31. Move all zeros to the end — keep order.
32. Rotate the array left/right by K positions.
33. Find the Kth largest/smallest element.
34. Merge two sorted arrays — without using extra space.
35. Find the intersection of two arrays.
36. Sort 0s, 1s, and 2s without using sort().
37. Find subarrays with a given sum.
38. Detect if a subarray sums to 0.
39. Find the longest increasing subsequence.
40. Kadane’s Algorithm — maximum subarray sum.
41. Check if array is sorted and rotated.
42. Rearrange array in max-min order alternately.
43. Find leaders in an array (no greater element to the right).
44. Calculate frequency of all elements in O(n).
45. Product of all elements except self.

#تجربه
webinar_farsi
Forwarded from Morteza Bashsiz مرتضی باشسیز (Morteza Bashsiz)
ویدیو شماره ۸ - کار کردن با PDNS API

توی این ویدیو توضیح میدم که چگونه API سرویس PDNS رو فعال کنیم و همچنین چند مورد استفاده از این API رو توضیح دادم. راجع به اینکه کجاها میشه و باید از API استفاده کرد هم صحبت کردم

https://youtu.be/rl5ONREmHjM
Forwarded from Morteza Bashsiz مرتضی باشسیز (Morteza Bashsiz)
من اینو نمیدونستم
😁

As of January 10th, 2024, HashiCorp no longer publishes packages of our products for end-of-life (EoL) distributions to our production packaging sites and going forward will migrate EoL versions to our new archive site. HashiCorp no longer supports versions of Linux operating systems that have reached EoL status. These packages will be moved to the new Linux package archive site where users can continue to download them.

https://support.hashicorp.com/hc/en-us/articles/21890114850835-End-of-Life-Linux-Package-Archive-Site-FAQ
Forwarded from Linuxor ?
انواع شبکه های عصبی

@Linuxor
Forwarded from 🎄 یک برنامه نویس تنبل (  MΞ)
🔸Neural Network

@TheRaymondDev
Forwarded from Curious Geek ⚡️
اولین پلاک زندگیم 🤝
🆔 @Hiradsajde
Forwarded from Linuxor ?
یه چیت شیت پایتونی پیدا کردم برای کسایی که پایتون زبان اصلیشون نیست کامل همچی رو گفته :

gto76.github.io/python-cheatsheet

@Linuxor
Forwarded from Linuxor ?
این عکسایی که توی فضای مجازی از کد هاشون درست می‌کنن با این سایتس

carbon.now.sh

@Linuxor
انتظار اینو نداشتم دیگه :))))))))

روی این بزرگوار درحالت عادی باید روی دپندنسی‌ها عذاب بکشی حالا روی عذاب بزرگ بیای عذاب نصب کنی برای خودت.


@SohrabContents
اوضاع از وقتی که مایکروسافت انتشار در استور رو !رایگان کرده اینطوریه که فردا میای می‌بینی RedStar os wsl هم توی استور هست.

@SohrabContents
Forwarded from Abolfazl Devs (Abolfazl)
😁🤝
Forwarded from Linuxor ?
فرانت کاری و خوشت از بکند نمی‌آد! چرا هر بار برای یه پروژه ساده باید Auth، DB و Storage رو از صفر پیاده کنی؟ Appwrite این تیکه‌های تکراری رو کامل از سر راهت برمی‌داره. مخصوصاً اگه با Flutter، React یا حتی فقط Node کار می‌کنی.

مناسب تیمای کوچیک، فریلنسرها یا هرکی می‌خواد سریع MVP بده بیرون بدون درگیر شدن با زیرساخت.

appwrite.io

@Linuxor
Forwarded from Linuxor ?
شرکت فریم ورک که لپ تاپ های ماژولی تولید می‌کنه یه عکس گذاشته و جمله معروف

I use Arch btw.

@Linuxor
Forwarded from Linuxor ?
نوشتن اسکریپت‌های bash بدون ShellCheck مثل رانندگی بدون آینه است.

این ابزار دقیقاً نقش همون آینه‌ رو داره؛ ایرادای سینتکس، استفاده خطرناک از متغیرها، و حتی مسائل امنیتی رایج رو درمیاره. هر sysadmin یا devops حرفه‌ای باید ازش استفاده کنه، مخصوصاً توی automation و CI/CD.

www.shellcheck.net

@Linuxor
Forwarded from Linuxor ?
وقتی می‌دونی لینوکست رو آپدیت کنی قراره درایور یه جاییت از کار بیفته ولی نمی‌تونی ثابتش کنی

@Linuxor
Forwarded from Linuxor ?
Media is too big
VIEW IN TELEGRAM
بزرگ‌ترین فرق DragGAN با ابزارهای دیگه تولید عکس اینه که اینجا فقط یه پرامپت نمی‌دی و دعا کنی نتیجه شبیه چیزی بشه که می‌خوای؛ اینجا توی روند خلق تصویر دخیل می‌شی. نقطه به نقطه، مثل طراحی دستی.

این ابزار ایده‌آل برای کساییه که خروجی تصویری براشون اهمیت جزئی داره؛ مثل تیم‌های طراحی محصول، طراحان بازی، یا حتی معمارهایی که رندر می‌خوان بسازن.

ران کردنش هم بسیار سادس :

github.com/XingangPan/DragGAN


@Linuxor
Forwarded from linuxtnt(linux tips and tricks) (hosein seilany https://seilany.ir/)
🔰 راه‌های تشخیص ماشین مجازی یا فیزیکی (دستورات نیاز به دسترسی روت) دارند
نصب برنامه ها

# برای سیستم‌های مبتنی بر Debian/Ubuntu:

sudo apt install dmidecode lshw facter imvirt virt-what


# برای سیستم‌های مبتنی بر RHEL/CentOS:

sudo yum install dmidecode lshw facter imvirt virt-what



🔹روش 1: بررسی سازنده سیستم
sudo dmidecode -s system-manufacturer

🔹روش 2: مشاهده اطلاعات سخت‌افزار سیستم
sudo lshw -class system | grep -i "product\|vendor"

🔹روش 3: تشخیص محیط مجازی با facter
sudo facter virtual

🔹روش 4: تشخیص با ابزار imvirt
sudo imvirt

🔹 روش 5: تشخیص نوع ماشین مجازی
sudo virt-what

🔹روش 6: تشخیص با systemd (در سیستم‌های جدید)
sudo systemd-detect-virt

نویسنده: حسین سیلانی
اخبار و آموزش های بیشتر در کانال:
https://t.iss.one/linuxtnt