• AI & Python • – Telegram
• AI & Python •
20.7K subscribers
1.01K photos
381 videos
63 files
574 links
••• علاقه‌مند به دنیای هوش مصنوعی، تحول دیجیتال و زبان برنامه‌نویسی پایتون با نیم نگاهی به حوزه شبکه و
امنیت.

Library & archive: @SecBookSs

تبلیغات:
@n_h_raad


.
Download Telegram
• AI & Python •
یه وقتایی بهترین کد، کدیه که اصلاً نوشته نشه بعنوان برنامه‌نویس یاد گرفتم هرچی کمتـر بنویسی ولی تمیزتر، بهتره. کد کمتر = باگ کمتر پیچیدگی کمتر = دردسر کمتر گاهی یه تغییر تو معماری اونقدری تاثیر داره که ۲۰۰ خط کد غیرضروری رو حذف میکنه. این قانون تو آدم‌ها و…
همیشه سخت‌ترین قسمت کدنویسی، نوشتن اولین خطه
شروع کردن ترس داره:
مخصوصاً وقتی میخوای یه سیستم جدید بسازی
یا یه فیچر سنگین رو هندل کنی.
ولی تجربه نشون داده
وقتی اولین فانکشن یا اولین کلاس رو مینویسی،
بقیه مسیر خودش باز میشه.
انگار ذهن آدم منتظر همون قدم اوله.

#برنامه_نویسی
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍92
🤍 عکس با باب اسفنجی

⚪️ برا ساختش یک عکس معمولی و یکی از پرامپت های زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید

پرامپت اول :
A cozy, Pinterest-style scene with a soft, slightly messy white bedspread, multiple plush pillows, and casual, gently disheveled bedding for a stylish, relaxed, lived-in vibe. A young woman is sitting on the bed, wearing a loose, oversized, comfortable outfit. Her hair is styled in a messy bun. She is holding chopsticks with noodles in her hand, bringing noodles toward her mouth as if about to eat, looking directly at the camera with a natural, playful expression. No glasses. On the bed around her are plush toys including SpongeBob and Patrick, arranged in a cute, playful way. The background is soft and indistinct, keeping the focus on her and the cozy, Pinterest-style aesthetic. Soft natural light illuminates her face, the noodles, and the bedding, creating a warm, intimate, and fun atmosphere.”

پرامپت دوم :
A cozy, Pinterest-style scene with a slightly messy white bedspread, casual, slightly disheveled details suggesting a relaxed, lived-in vibe. A young woman is sitting on the bed, wearing a loose, oversized, comfortable outfit. Her hair is styled in a messy bun. She is looking directly at the camera with a natural, relaxed expression, holding a SpongeBob plush toy in her arms. No glasses. The background is soft and indistinct, keeping the focus on her and the aesthetic of the bed. Soft natural light illuminates her face and the bedding, creating a warm, intimate, and effortlessly stylish Pinterest look.”

پرامپت سوم :
A cozy, Pinterest-style scene with a soft, slightly messy white bedspread, multiple plush pillows, and casual, gently disheveled bedding for a stylish, relaxed, lived-in vibe. A young woman is sitting on the bed, wearing a loose, oversized, comfortable outfit. Her hair is styled in a messy bun. She is puckering her lips playfully for a kiss while looking directly at the camera. No glasses. On the bed around her are plush toys including SpongeBob and Patrick, arranged in a cute, playful way. The background is soft and indistinct, keeping the focus on her and the cozy, Pinterest-style aesthetic. Soft natural light illuminates her face and the bedding, creating a warm, intimate, and fun atmosphere.”

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
3👍3👎2
🤍 سه تا برنامه کاربردی برا وقتی که تو ماشینی

⚪️تو ماشین حالت بد میشه؟ راه‌حل چیه؟
وقتی توی خودرو با گوشی کار می‌کنید، گوش داخلی به مغز میگه در حال حرکتم، اما چشم ثابت بودن رو گزارش میده این تضاد باعث سردرد و حالت تهوع میشه. یک اپلیکیشن کمکی روی صفحه چند نقطه متحرک میاره و مغز رو فریب میده تا فکر کنه شما هم در حال حرکتید و حالت تهوع از بین میره.
آیفون: ابتدا ارتقا به iOS 18 (فعلاً بتا)، سپس:
settings » accessibility » motion » show Vehicle Motion cues

اندروید:
⚪️دانلود برنامه
مسیر یاب رو روی شیشه ماشین بینداز
ماشین‌های ایرانی آپشن HUD ندارن، ولی با این اپ میتونی مسیر رو روی شیشه جلو بندازی مسیر رو انتخاب کن، استارت بزن، صفحه رو از پایین به بالا بکش، گزینه Headup Display رو روشن کن. گوشی رو روی داشبورد بذار و مسیر رو از روی شیشه دنبال کن. امکاناتی مثل سخنگو هم داره.
⚪️لینک دانلود
مکانتو گم نکن
چند بار شد ماشین رو پارک کنی و یادت بره کجا گذاشتی؟ یا رفتی یه تفریحگاه و جای اقامتت یادت رفته؟ این اپلیکیشن قبل از دور شدن، مکان رو برات ذخیره می‌کنه و هنگام برگشت مسیر رو نشون میده.
⚪️لینک دانلود
@AIPyth0n
Please open Telegram to view this post
VIEW IN TELEGRAM
👍51
🤍 چطور بسازیم ؟

⚪️ یک عکس معمولی از خودتون همراه با پرامپت زیر رو بدید به یک هوش مصنوعی ادیت عکس مثل جمنای :
A 3-frame vertical image.
Cinematic shot of a girl in a golden wheat field at sunset, wearing a charming rural cottagecore outfit:
a soft cream linen blouse with slightly puffed sleeves and natural pleats, paired with a long flowy skirt in warm earthy tones (light brown / dusty beige).
Over the skirt she wears a thin rustic apron in pale oatmeal color with subtle texture.
Her look is simple, natural, and village-like — elegant but not modern.
Warm breeze moves her hair and rustles the wheat around her. Sunset haze adds a glowing, nostalgic atmosphere.
Frame 1 — Close-up, neck-angle up
She is “half-faced,” face softly lit by warm golden-hour sunlight. A few loose strands of hair flutter in the wind. The wheat behind her forms a blurred golden background.
A subtle amber lens flare crosses the upper corner, giving a dreamy rural mood.
Frame 2 — Chest-up
She stands calmly among tall wheat, gently holding the edge of her apron with one hand. The linen blouse catches warm sunlight, showing its handmade texture.
Soft haze spreads behind her as the wheat waves move slowly.
Her expression is peaceful, grounded and rustic.
Frame 3 — Waist-up sitting pose
She sits between tall wheat stalks, skirt and apron spread naturally around her.
Her hands rest lightly on her lap as she “gazes toward the distant sunset.”
Golden wheat surrounds her in soft motion blur; warm halo light outlines her silhouette.
The scene feels rural, poetic, timeless — like a countryside painting.
Overall tone:
Warm, rustic, nostalgic.
Colors:
Cream, beige, light brown, wheat-gold, soft amber.
Style:
Cottagecore, rural countryside aesthetic, soft haze, film grain, low contrast, diffused golden sunlight.
Aspect ratio:
16:9 (horizontal tri-fold layout).
Mood:
Calm, poetic, natural, simple village beauty.
((Do not change or modify the reference face and hair details.))

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍31
🤍 سرویس جدید گوگل مخصوص برنامه نویس هاست

⚪️اگه ریپوی گیت‌هابت همیشه شلوغ و بی‌نظم شده، اینو از دست نده  Google Code Wiki معرفی شد

⚪️کافیه بری داخل codewiki.google و لینک ریپوزیتوریتو بدی. خودش برات یه مستندات کامل، خوشگل و مرتب می‌سازه… از توضیح فایل‌ها بگیر تا نمودار معماری، ساختار کلاس‌ها و جریان کد

⚪️ کنار مستندات هم یه چت Gemini هست که هرچی از کد نفهمیدی رو خیلی ساده برات توضیح می‌ده.

نکتهٔ باحال؟
هر بار تو ریپو commit بزنی، کل مستندات به‌صورت خودکار آپدیت می‌شه برای ریپوهای عمومی هم فعلاً کاملاً رایگانه

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4
This media is not supported in your browser
VIEW IN TELEGRAM
حداقل سخت‌افزار لازم برای بالا آوردن لینوکس :)))

#Linux #لینوکس
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
😁103😍3
🤍مدل آفلاین جدیدی که غول‌های هوش مصنوعی رو شکست داد فقط با 3.5GB

⚪️یه مدل تازه منتشر شده که با وجود حجم خیلی کم، تو تست‌ها عملکردش از مدل‌های بزرگ مثل Claude، Gemini، Qwen و DeepSeek بهتر بوده یعنی یه هوش مصنوعی سبک، ولی در حد مدل‌های رده‌بالا

چی کار می‌تونه بکنه؟
تولید متن حرفه‌ای

تحلیل‌های پیچیده و دقیق

کدنویسی و تکمیل کد

قابل اجرا روی کامپیوترهای معمولی، سرورهای کوچک و حتی گوشی


لینک مدل (برای اجرای آفلاین)
دانلود برنامه‌های اجراکننده مدل اندروید
ویندوز (LM Studio)

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍51
♨️‏ Grok 4.1 منتشر شد
حرف‌هاش طبیعی‌تر و انسانی‌تره، خلاق و پر حس، کمی شر و شیطون هم هست
امنیتش کمتر شده و راحت‌تر میشه با Prompt Injection گولش زد، اما هم‌اکنون روی وب و اپ برای همه بازه.

‏✦ xAI مربی‌های انسانی تخصصی آورده تا پاسخ‌ها شبیه یک آدم واقعی باشن، نه ربات خشک❗️

#هوش_مصنوعی #Nano_Banana #Grok4 #xAI #AI #Grok #AI  #ChatGPT #Artificial_Intelligence #OpenAI
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍5🔥21
💬 ایلان ماسک: به‌زودی می‌تونید یه ریکاوری از ذهنتون توی ربات Optimos بگیرید ؛)

🔴ماسک گفته ظرف 20 سال آینده انسان‌ها قادر خواهند بود ذهن و هویت خودشون رو داخل ربات Optimus ذخیره و بارگذاری کنن.

+ به‌گفته اون، این فناوری می‌تونه مفهوم «انسان بودن» و حتی ساختار شغل‌ها رو زیرورو کنه...!

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍74🗿1
🤍معرفی ۴ ابزار فوق‌العاده برای ترجمه و ساخت زیرنویس (همه رایگان و متن‌باز)

⚪️اگه با ویدیو کار می‌کنی چه تدوین‌گری، چه تولید محتوا یا حتی فقط فیلم‌بینی این ۴ ابزار کار ترجمه و ساخت زیرنویس رو به‌طرز عجیبی ساده می‌کنن:

⚪️فقط فایل زیرنویس رو آپلود می‌کنی و چند ثانیه بعد نسخه ترجمه‌شده رو تحویل می‌گیری. بدون نصب، سریع و دقیق:
لینک سایت

⚪️نسخه متن‌باز همین ابزار اگه می‌خوای روی سیستم خودت اجراش کنی یا تغییرش بدی، کد کاملش اینجاست:
لینک سایت

⚪️ برنامه دسکتاپ برای ترجمه زیرنویس یک نرم‌افزار ویندوز/لینوکس که کار ترجمه زیرنویس رو به‌صورت محلی انجام می‌ده. سرعت بالا + کنترل کامل:
لینک سایت

⚪️ ساخت زیرنویس از صفر (بدون داشتن SRT!) اگه ویدیو زیرنویس نداره، این ابزار خودش از روی صدا زیرنویس می‌سازه برای یوتوبرها و تدوین‌گرها فوق‌العاده است:
لینک سایت

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
4👍3
🤍 چطور بسازیم

⚪️ برای ساختش یک عکس معمولی از خودتون و پرامپت زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید ( الان بهترینش نانو بانانا پرو هست )

⚪️ پرامپت پسرونه :
A photorealistic winter-lifestyle portrait of the same man from the uploaded photo, perfectly matching his real facial features, haircut, and body proportions. He is sitting on the open trunk of a car in a snowy clearing beside a pine forest, with soft snow drifting in the air.
He wears layered winter clothing in a masculine style: cream/ivory knit sweater, a fitted winter jacket, dark winter pants, a ribbed beanie hat, and sturdy black-and-white winter boots. His pose is relaxed and natural, seated confidently without drawing attention to the lower body. He holds a white paper cup with both hands, faint steam rising. Optional small deer near the tree line.
35–50 mm look, f/2.8–4, shallow depth of field, soft overcast daylight, warm luxury winter palette, lifelike skin and fabric texture, clean composition.
Presentation lock: replicate his exact appearance from the uploaded photo.
Wardrobe integrity: keep winter clothing consistent with his masculine style.

⚪️ پرامپت دخترونش :
A photorealistic winter-lifestyle portrait of the same woman from the uploaded photo, matching her real facial features, hair length/style, and body proportions. She is sitting on the open trunk of a car in a snowy clearing beside a pine forest, soft snow drifting in the air.She wears cream/ivory knit winter layers (sweater and feminine winter bottoms that match her reference style), a ribbed pom-pom hat, and black-and-white winter boots. Her pose is modest and relaxed, legs positioned naturally without drawing attention to the lower body. She holds a white paper cup with both hands, faint steam rising. Optional small deer near the tree line.35–50 mm look, f/2.8–4, shallow DoF, soft overcast daylight, warm luxury palette, lifelike skin and fabric texture, clean composition.Presentation lock: replicate her exact appearance from the uploaded photo.Wardrobe integrity: keep winter clothing consistent with her style.


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍42
• AI & Python •
یه وقتایی بهترین کد، کدیه که اصلاً نوشته نشه بعنوان برنامه‌نویس یاد گرفتم هرچی کمتـر بنویسی ولی تمیزتر، بهتره. کد کمتر = باگ کمتر پیچیدگی کمتر = دردسر کمتر گاهی یه تغییر تو معماری اونقدری تاثیر داره که ۲۰۰ خط کد غیرضروری رو حذف میکنه. این قانون تو آدم‌ها و…
هیچ‌چیزی اندازه یه dependency اشتباه، حال آدم رو خراب نمیکنه
تو زندگی هم همین‌طوریه…
اگه تکیه‌ت رو یه چیز (یا یه آدم) اشتباه بذاری،
کل سیستم از هم میپاشه.
برای همین همیشه با احتیاط install میکنم،
چه تو پروژه، چه تو زندگی :)

#برنامه_نویسی
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍5😁2
⌨️#Python_Quiz

خروجی این کد پایتون چیه؟ 🤔

#برنامه_نویسی #پایتون #Python #Programming #quiz
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍5
🟣 Options:
Anonymous Quiz
12%
A
10%
B
34%
C
45%
D
🤍کدهایی که هوش مصنوعی برات می‌نویسه، به راحتی تبدیل به اپلیکیشن کن

⚪️ وقتی وارد ChatGPT یا هر هوش مصنوعی دیگه‌ای می‌شی و می‌گی کد یک ماشین حساب ساده بنویس یا هر چیز دیگه ، کد رو برات تولید می‌کنه. اما برای استفاده، باید روی هاست اجراش کنی. این سایت کدت رو تبدیل به اپلیکیشن می‌کنه تا بتونی تست و استفاده کنی. حتی سایتت هم می‌تونه تبدیل به اپ بشه

⚪️ فقط HTML، CSS و JS خام رو پشتیبانی می‌کنه و کد باید یکپارچه باشه. محیط کاربری خیلی آسونه، هم برای اندروید و هم آیفون و رایگان

لینک سایت

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍31
This media is not supported in your browser
VIEW IN TELEGRAM
اگه دولوپر فرانت‌اند یا بک‌اندی، بهتره بدونی این المان‌های UI مثل radio button ها، snackbar ها، carousel ها، toast ها و بقیه‌شون از کجا اومدن و اصل داستانشون چیه؟! 🤔

#Developer #Programming #برنامه‌نویسی
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍52
🤍 چطور بسازیم ؟

⚪️ برای ساختش یک عکس معمولی از خودتون و پرامپت زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید ( الان بهترینش نانو بانانا پرو هست )

⚪️ پرامپت پسره :
Make this with the reference photo's face details: A boy sits on a snowy balcony. He sits on the black metal railing and has his hands loosely clasped together. He looks at the camera with carefree confidence and pride. His hair is partially covered by his hoodie. He is wearing a thick beige puffer jacket layered over a brown hooded hoodie and loose dark brown pants. The scene is a winter mountain resort with a snow-covered yard pine forests and large mountains in the background under a cold cloudy sky. Natural daylight soft winter lighting sharp and realistic details. Camera: Front angle eye-level view 35mm lens. ((Do not change or modify the reference hair face details.))
⚪️ پرامپت دختره وسطی :
Create a real, lifelike photo of a woman (based on the uploaded photo) wearing a glamorous vintage clown costume.
Studio scene with a dark purple–indigo gradient backdrop, soft cinematic lighting: blue key light from the left and magenta rim light from the right. Subtle circus-style bokeh lights in the background.
The woman has fair glowing skin, platinum-blonde curly pigtails with large blue satin bows, and bright blue eyes.
Makeup: porcelain base, blue clown triangles above/below eyes, winged liner, long lashes, pink-violet shadow, glossy cherry-red lips, and a small round red nose.
Wardrobe: blue–red–white striped satin clown blouse, puffed sleeves, large white ruffled collar, gold stud earrings, crimson metallic nails.
She holds a white clown mask (red mouth, blue eyes, red nose) near her cheek and an orange-white glossy circus ball in the other hand.
Pose: half-body, facing camera, playful yet mysterious expression.
Camera: 85mm f/2, ISO 400.
Style: high-end editorial, vivid electric colors (blue, crimson, magenta), natural skin highlights, detailed textures (satin, hair, mask).

⚪️ پرامپت دختر آخریه :
A spontaneous, ultra-realistic outdoor photograph taken with an iPhone-style wide lens capturing from the photo i uploaded standing in front of a dramatic mountain range featuring Mount Fitz Roy's jagged snow-covered peaks. The woman wears a navy blue oversized sweater with abstract orange patterns visibly textured in knit fabric, loose olive green cargo pants with authentic fabric grain, black boots with worn leather detail, and a black baseball cap allowing natural hair strands to peek through. She stand on uneven ground with realistic patches of grass, rocks, and low bushes, captured with sharp texture and natural variation. The background showcases a lush green valley extending toward the towering, snow-dusted rocky mountains, with partly cloudy sky allowing sunlight to break through, producing a balanced natural daylight and a subtle HDR effect characteristic of iPhone photography.


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
5👍3
🔥یه پرامپت Nano Banana Pro دیگه باهم ببینیم...!

اگه گفتین این تصویری که گذاشتم مربوط به کدوم شهر و کدوم حادثه‌ای هست؟!
آفرین این تصویر مربوط به حادثه دلخراش پلاسکویه و این عکس هم نانو بنانا ساخته ، شاید فکر کنی بهش گفتم یه عکس از ساختمون پلاسکو بساز که داره میسوزه...

ولی نه! بهش تاریخ، ساعت و مختصات ساختمون پلاسکو رو دادم و اونم همچین نتیجه‌ای به من داد :) واقعا دیگه چی از این خفن ترررر

مثلاً لحظه دقیق سقوط پلاسکو :

35.6917° N, 51.4251° E, January 19, 2017, 11:33:00

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5🤯21💔1
توابع پایه پایتون
نسخه خلاصه و کاربردی


‏⦿ print(): چاپ خروجی روی صفحه؛ بهترین ابزار دیباگ.

‏⦿ len(): تعداد عناصر یک لیست یا رشته.

‏⦿ type(): نوع داده رو نشون میده.

‏⦿ input(): دریافت ورودی از کاربر.

‏⦿ int() / float() / str(): تبدیل مقدار به عدد صحیح، اعشاری یا رشته.

‏⦿ list() / dict() / set(): ساخت یا تبدیل داده به لیست، دیکشنری یا مجموعه.

‏⦿ range(): تولید بازه عددی (معمولاً برای حلقه‌ها).

‏⦿ sum() / max() / min(): جمع، بیشینه و کمینه‌ی مقادیر.

‏⦿ sorted(): برگردوندن نسخه مرتب‌شده از داده‌ها.

‏⦿ abs(): مقدار مطلق.

‏⦿ round(): گرد کردن عدد.

‏⦿ enumerate(): اضافه کردن ایندکس هنگام حلقه.

‏⦿ zip(): جفت‌کردن چند iterable با هم.

‏⦿ map() / filter(): اعمال تابع روی آیتم‌ها یا فیلتر کردنشون.

‏⦿ any() / all(): بررسی True بودن حداقلی یا کامل آیتم‌ها.

‏⦿ help(): نمایش راهنمای توابع.

‏⦿ id(): آدرس حافظه شیء.

#برنامه_نویسی #پایتون #Python #ML #NLP #Programming #Chatbot
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍54