ᴅᴇᴠʟᴏꜱꜱᴏ
رفتن به کانال در Telegram
°-DevLosso-° 🌐 سورس کدهای کاربردی 📰 آخرین اخبار دنیای تکنولوژی 💻 آموزشها و نکات شبکه و برنامهنویسی 🚀 فروش سرور مجازی (VPS) 🛠️ انجام پروژههای تخصصی 👤 برای مشاوره و همکاری: @imlosso
نمایش بیشتر482
مشترکین
+524 ساعت
+287 روز
+5530 روز
آرشیو پست ها
483
user_input = input("Please enter a string: ")
s = user_input.lower()
is_palindrome = True
for i in range(len(s) // 2):
if s[i] != s[-(i + 1)]:
is_palindrome = False
break
if is_palindrome:
print("The entered string is a palindrome!")
else:
print("The entered string is not a palindrome.")
این برنامه یک رشته را از کاربر دریافت میکند و سپس بررسی میکند که آیا این رشته یک "پالیندرم" (کلمهای است که در هر دو طرف به یک شکل خوانده میشود، مانند "level" یا "radar") است یا خیر. برای این کار، ابتدا رشته را به حروف کوچک تبدیل میکند و سپس با استفاده از یک حلقه، حرف به حرف را از ابتدا و انتهای رشته با یکدیگر مقایسه میکند تا ببیند آیا رشته معکوس از ابتدایی آن یکسان است یا خیر. اگر همه حروف با یکدیگر مطابقت داشته باشند، برنامه پیام "The entered string is a palindrome!" را چاپ میکند و در غیر این صورت پیام "The entered string is not a palindrome." را چاپ میکند.⭐️ @DevLosso
483
ساخت اطلاعات فیک با پایتون👎🙃
from faker import Faker
fake = Faker()
print("Name:", fake.name())
print("Address:", fake.address())
print("Country:", fake.country())
print("Email:", fake.email())
print("Phone Number:", fake.phone_number())
print("Date of Birth:", fake.date_of_birth())
print("Job:", fake.job())
print("Company:", fake.company())
print("Username:", fake.user_name())
print("Website:", fake.url())
print("Text:", fake.text())
✅ @DevLosso483
🛜 حجم اینترنتت هی زود تموم میشه...؟!
📟اگه نمیدونی کدوم برنامهها بیصدا نتتو میبلعن، Glasswire دقیقاً همون ابزاریه که دنبالش بودی.
📊 با این اپ میتونی :
• مصرف اینترنت تکتک برنامهها رو دقیق ببینی
• مصرف لحظهای دیتای گوشیت رو چک کنی
• میزان استفاده وایفای و دیتای موبایل رو جداگانه کنترل کنی
• برای مصرف داده هشدار تنظیم کنی تا غافلگیر نشی
🌐@DevLosso
483
خب! اومدیم با ی سورس ساعت دیجیتال خوشگل ⏱🤦
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<!-- DevLosso - CodeHubIR -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>digital clock</title>
<!-- DevLosso - CodeHubIR -->
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #0f0c29, #1a1642, #24243e);
font-family: 'Segoe UI', Tahoma, sans-serif;
overflow: hidden;
}
.clock {
width: 420px;
height: 200px;
background: rgba(10, 15, 40, 0.7);
border-radius: 30px;
backdrop-filter: blur(12px);
border: 1px solid rgba(100, 200, 255, 0.25);
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.6),
0 0 40px rgba(80, 200, 255, 0.15);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
.clock::before {
content: '';
position: absolute;
inset: -100%;
background: conic-gradient(from 0deg at center, transparent, #00ffff15, transparent);
animation: rotate 25s linear infinite;
}
.time {
font-size: 68px;
font-weight: 600;
letter-spacing: 8px;
color: #e0f7ff;
text-shadow: 0 0 15px #FA4528, 0 0 30px #FA4528
;
z-index: 1;
}
.time span {
color: #FA4528;
animation: softBlink 2.5s ease-in-out infinite;
}
.date {
margin-top: 10px;
font-size: 24px;
color: #55FA28;
letter-spacing: 3px;
}
@keyframes softBlink {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
</style>
</head>
<body>
<!-- DevLosso - CodeHubIR -->
<div class="clock">
<div class="time" id="time"></div>
<div class="date" id="date"></div>
</div>
<!-- DevLosso - CodeHubIR -->
<script>
function updateClock() {
const now = new Date();
const h = String(now.getHours()).padStart(2, '0');
const m = String(now.getMinutes()).padStart(2, '0');
const s = String(now.getSeconds()).padStart(2, '0');
document.getElementById('time').innerHTML = h + '<span>:</span>' + m + '<span>:</span>' + s;
const day = String(now.getDate()).padStart(2, '0');
const month = String(now.getMonth() + 1).padStart(2, '0');
const year = now.getFullYear();
document.getElementById('date').textContent = year + '/' + month + '/' + day;
}
<!-- DevLosso - CodeHubIR -->
setInterval(updateClock, 1000);
updateClock();
</script>
<!-- DevLosso - CodeHubIR -->
</body>
</html>
🪐 @DevLosso483
♻️ عربستان اولین کامپیوتر کوانتومی خودش رو روشن کرد!
⏺عربستان رسماً وارد لیگ قدرتهای کوانتومی شد. شرکت آرامکو اعلام کرده اولین ابرکامپیوتر کوانتومی کشور در دیتاسنتر اختصاصیشون در ظهران راهاندازی شده.
⚫️مشخصات دستگاه
🔵ساخت شرکت فرانسوی Pasqal
🔵قدرت: 200 کیوبیت
🔵تکنولوژی: اتمهای خنثی
🔵قویترین سیستمی که Pasqal تا امروز ساخته
🗣آرامکو میگه این کامپیوتر صرفاً برای کارهای جدی صنعتی و علمی استفاده میشه ، مثل شبیهسازی سیستمهای انرژی ، کشف مواد جدید ، حل مسائل پیچیده مهندسی و تحقیقات سنگین در حوزه نفت، گاز و انرژی
⭕️ @DevLosso
483
⏺وب ویو (WebView)❔
🔤وب ویو یک کامپوننت نرمافزاری است که به توسعهدهندگان این امکان را میدهد تا صفحات وب را درون اپلیکیشنهای موبایل نمایش دهند. با استفاده از وب ویو، کاربران میتوانند بدون خروج از اپلیکیشن، به محتوای آنلاین دسترسی پیدا کنند. این ابزار در اکثر اپها برای نمایش صفحات ورود، فرمها، و محتوای وب استفاده میشود و به ایجاد تجربهای یکپارچه و کاربرپسند کمک میکند.🔤
✈️ ꜱʜᴀʀᴇ
🪐 @DevLosso
483
🤍 چطور بسازیم
⚪️ برای ساختش یک عکس معمولی از خودتون و پرامپت زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید ( الان بهترینش نانو بانانا پرو هست )
⚪️ پرامپت پسرونه :
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.
✔️@DevLosso483
ی ایمیل باکس خوشگل ، ساده برای حامیان چنل❤🍸
<!DOCTYPE html>
<html lang="en">
<!-- DevLosso --- CodeHubIR -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback Form</title>
<!-- DevLosso --- CodeHubIR -->
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(to right, #2c3e50, #34495e);
padding: 0;
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #ecf0f1;
}
.form-container {
background-color: #2c3e50;
padding: 40px;
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
max-width: 400px;
width: 100%;
text-align: center;
position: relative;
overflow: hidden;
}
h2 {
margin-bottom: 20px;
color: #1abc9c;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
input[type="email"],
textarea {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 1px solid #16a085;
border-radius: 5px;
box-sizing: border-box;
transition: border-color 0.3s, transform 0.2s;
background-color: #ecf0f1;
color: #2c3e50;
font-size: 14px;
}
input[type="email"]:focus,
textarea:focus {
border-color: #1abc9c;
outline: none;
transform: scale(1.01);
}
button {
background-color: #16a085;
color: #fff;
padding: 15px;
border: none;
border-radius: 5px;
cursor: pointer;
width: 100%;
font-size: 16px;
transition: background-color 0.3s, transform 0.2s;
}
button:hover {
background-color: #1abc9c;
transform: scale(1.05);
}
.footer {
position: absolute;
bottom: 10px;
left: 10px;
font-size: 12px;
color: #bdc3c7;
text-align: center;
}
.footer a {
color: #1abc9c;
}
</style>
<!-- DevLosso --- CodeHubIR -->
</head>
<body>
<!-- DevLosso --- CodeHubIR -->
<div class="form-container">
<h2>Feedback to Support</h2>
<form action="DevLosso_CodeHubIR@example.com" method="post" enctype="text/plain">
<input type="email" id="email" name="email" required placeholder="Enter your email">
<textarea id="message" name="message" rows="5" required placeholder="Enter your message"></textarea>
<!-- DevLosso --- CodeHubIR -->
<button type="submit">Send Feedback</button>
</form>
<div class="footer">
© 2025 DevLosso - CodeHubIR | <a href="#">Privacy Policy</a>
</div>
</div>
</body>
</html>
<!-- DevLosso --- CodeHubIR -->
❣ @DevLosso483
سورس کد انیمیشن برای دیزاین سایتتون✨🔥
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<title>CodeHub</title>
<style>
body {
margin: 0;
background: #150133;
}
#particles-js {
width: 100%;
height: 100vh;
background: #150133;
position: fixed;
top: 0;
left: 0;
}
</style>
</head>
<body>
<div id="particles-js"></div>
<!-- CDN لایبرری -->
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script>
particlesJS("particles-js", {
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": { "value": "#22CC43" },
"shape": { "type": "circle" },
"opacity": { "value": 1.5 },
"size": {
"value": 3,
"random": true
},
"line_linked": {
"enable": true,
"distance": 180,
"color": "#0FFF50",
"opacity": 0.7,
"width": 1
},
"move": {
"enable": true,
"speed": 3
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
}
},
"modes": {
"grab": {
"distance": 250,
"line_linked": {
"opacity": 1
}
}
}
},
"retina_detect": true
});
</script>
</body>
</html>
🔔 @DevLosso483
آدا لاولیس (Ada Lovelace)
🟠آدا لاولیس در ۱۰ دسامبر ۱۸۱۵ در لندن به دنیا آمد و دختر شاعر معروف لرد بایرون بود. او تحت تأثیر مادرش که به علوم و ریاضیات علاقهمند بود، به این حوزهها روی آورد.
🟠آدا با چارلز بابیج، "پدر کامپیوتر"، همکاری کرد و در سال ۱۸۴۳ مقالهای درباره ماشین تحلیلی او نوشت که شامل اولین الگوریتم برنامهنویسی تاریخ بود. به همین دلیل، او به عنوان اولین برنامهنویس شناخته میشود.
⏺آدا لاولیس در ۲۷ نوامبر ۱۸۵۲ در سن ۳۶ سالگی درگذشت، اما تأثیر او بر دنیای فناوری و علوم کامپیوتر همواره باقی مانده است. او نمادی از توانمندیهای زنان در این حوزه محسوب میشود.
⚜ @DevLosso
483
ی پروژه تمرینی باحال با پایتون 😉✨
کاربرد این پروژه اینه که مشخص کاربر تو مصرف انرژی در چه سطحی هست تو این پروژه میایم ی مقداریو مشخص میکنیم و اگر کاربر بیشتر از اون مقدار آب , برق , گاز مصرف کرده باشه بهش میگه مصرفتون زیاده و...
from colorama import Fore , init
init()
def home_calculator(power, water, gas):
limits = {"power": (power, 1100), "water": (water, 500), "gas": (gas, 500)}
over = [name for name, (value, limit) in limits.items() if value > limit]
if over:
return f"{Fore.RED}high consumption!\nconsumption in:{Fore.YELLOW}{', '.join(over)}"
return Fore.GREEN + "normal consumption"
print(home_calculator(120, 80, 51))
✅ @DevLosso483
🍏 رنگ جدید آیفون 17 پرو زیر دستمال مرطوب پاک میشود؟!
📲یک کاربر در شبکه اجتماعی X تصویری منتشر کرده که نشون میده رنگ «نارنجی کیهانی» آیفون 17 پرو بعد از تمیز کردن با یک دستمال مرطوب، از لبهها و بخشهایی از بدنه پاک شده.
🍏البته قبلتر هم گزارشهایی درباره اکسید شدن رنگ نارنجی و حساسیت بالای ماژول دوربین این مدل دیده شده بود، اما هنوز نمیشه گفت که این مشکل گستردهی؛ چون چنین موردی فقط یکبار گزارش شده و در منابع دیگر تکرار نشده.
⭐️ @DevLosso
483
📎 قابلیت چت گروهی به ChatGPT اضافه شد...!
🔴شرکت OpenAI یک ویژگی جدید برای ChatGPT معرفی کرده : چتهای گروهی. حالا کاربر میتونه یک گروه بسازه و تا 20 نفر رو دعوت کنه تا مثل یک گروه معمولی با هم صحبت کنن و برنامهریزی کنن.
🔴نکته جالب اینجاست که ChatGPT فقط وقتی وارد گفتگو میشه که لازم بدونه یا وقتی که کاربران مستقیماً تگش کنن ، مثلاً برای جواب دادن به یک سؤال، تحلیل کردن یک پیام یا حتی ساختن عکس.
🔤این قابلیت فعلاً آزمایشی و رایگانه و فقط برای کاربران ژاپن، نیوزیلند، کرهجنوبی و تایوان فعال شده.
🔤🔤🔤
@DevLosso
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
