HICTE Blog – Telegram
HICTE Blog
1.18K subscribers
383 photos
127 videos
8 files
618 links
گروهمون: @HicteGroup

دسته بندی پست‌ها: t.me/HicteBlog/743
Download Telegram
#میم

جاوا دولوپرا توی سمنان زندگی میکنن.

🚁 Hicte Blog
😁24👍2🤯1
[ Source >>  @geekalerts ]

#خبر

تم Material از گیت‌هاب و اکستنشن‌های VSCode به دلیل وجود بدافزار حذف شد. اگر حتی یک‌بار هم خواسته باشید از وی‌اس‌کد استفاده کنید می‌بینید که این تم یکی از محبوب‌ترین تم‌های این ادیتور بوده. حالا تیم وی‌اس‌کد با بررسی‌های امنیتی کدهای این اکستنشن فهمیدن که تعداد زیادی مشکلات امنیتی حاد و خطرناک داشته و از این‌رو عرضه‌کننده رو بن کردن و اگه متوجه شدید دیگه این اکستنشن روی ادیتورتون نیست به این خاطره که پاکش کردن. از طرفی احتمالا مایکروسافت سخت‌گیری بیشتری برای انتشار اکستنشن‌ها اعمال کنه.

🚁 Hicte Blog
👍14
🤣24😁1🐳1
[ Source >> @PinkOrca ]

#معرفی

‏Nim یک زبان برنامه‌نویسی سیستمی و کامپایلری هستش که در سال ۲۰۰۸ با نام Nimrod توسط Andreas Rumpf طراحی شد.

سینتکسی شبیه Python داره اما کدهاش به C کامپایل می‌شن و سرعت اجرای نزدیک به C دارن.
- یه Hello world تو نیم:
echo "Hello, World!"

کامپایلر Nim از یک رویکرد چند مرحله‌ای استفاده می‌کنه. اول کد رو به AST تبدیل می‌کنه، بعد اون رو به C می‌بره و در نهایت با استفاده از کامپایلرهای C مثل GCC یا Clang به کد باینری تبدیل می‌کنه. این زبان علاوه بر C، می‌تونه به ++C،‏ Objective-C، ‏JavaScript و WebAssembly هم کامپایل بشه.

یه سیستم تایپ قوی و استاتیک داره و از type inference هم پشتیبانی می‌کنه. این زبان از مفاهیم برنامه‌نویسی مدرن مثل generics،‏ pattern matching و multi-methods پشتیبانی می‌کنه. سیستم ماکروی Nim خیلی قدرتمنده و اجازه می‌ده در زمان کامپایل کد رو تغییر بدیم.

از نظر مدیریت حافظه، Nim چند گزینه داره. می‌تونه از garbage collector استفاده کنه یا با ARC (که در نسخه ۲.۰ اضافه شد) کار کنه. همچنین می‌شه memory management رو دستی انجام داد. این انعطاف‌پذیری باعث می‌شه برنامه‌نویس‌ها بتونن بین پرفورمنس و راحتی یکی رو انتخاب کنن.

پکیج‌منیجر رسمی Nim، ‏Nimble نام داره و از فرمت ‎.nimble برای تعریف dependency ها استفاده می‌کنه. این پکیج‌منیجر می‌تونه پکیج‌ها رو مستقیماً از GitHub و دیگر مخازن git نصب کنه.

کتابخونه استاندارد Nim شامل ماژول‌های متنوعی برای کار با فایل‌ها، شبکه، regex،‏ JSON و concurrent programming هستش. همچنین کتابخونه‌های third-party زیادی برای گرافیک (SDL2)، وب (Jester)، image processing و cryptography وجود دارن.

یکی از ویژگی‌های جالب Nim، سیستم Effect system هستش که به کامپایلر اجازه می‌ده side effects توابع رو در زمان کامپایل چک کنه. این سیستم می‌تونه خطاهای مربوط به I/O یا exception ها رو زودتر پیدا کنه.

👈 منابع برای یادگیری Nim


🚁 Hicte Blog
👍72🔥2
🤣22👍7😢1👌1💅1
اگه محتوایی دارین و میخواین تو روند چنل مشارکت کنین
میتونین بدین با اسم خودتون تو چنل بذارم در صورت قابل قبول بودنش

آیدی: @HicteGroup
👍6
👍16😁6💯1🤣1
#خبر

چندتا آسیب پذیری توی Django پیدا شده که اگه از نسخه‌های مورد اشاره استفاده میکنین بهتره آپدیت کنین.

نسخه‌های تحت تأثیر:
جنگو نسخه ۵.۱ قبل از ۵.۱.۷
جنگو نسخه ۵.۰ قبل از ۵.۰.۱۳
جنگو نسخه ۴.۲ قبل از ۴.۲.۲۰


🚁 Hicte Blog
👍8🤣21🙏1
Media is too big
VIEW IN TELEGRAM
#گوناگون

چرا به دکمه‌ی shift میگن shift؟

🚁 Hicte Blog
👍19
[ Source >> @SohrabContents ]

#نکته_لینوکس

اگر شماهم دوال بوت هستید و روی لینوکس و ویندوز همزمان می‌خواید از بلوتوث استفاده کنید (یک دستگاه رو وصل می‌کنید و بعدش روی جفتش میخواید قابل استفاده باشه) در اکثر مواقع به این مشکل برخورد می‌کنید که باید یا روی ویندوز یا روی لینوکس دوباره دستگاه رو جفت کنید.

به این علت رخ میده که کلید‌های جفت‌سازی روی لینوکس شما با ویندوز فرق می‌کنه.

برای اینکه این مشکل رو نداشته باشید، ویکی آرچ یک راه حل ساده داره که دیگه پیش نیاد:

https://wiki.archlinux.org/noscript/Bluetooth#Dual_boot_pairing

🚁 Hicte Blog
👍10
#کتاب

x64 Assembly Language Step-by-Step: Programming with Linux

Author: Jeff Duntemann
Edition: 4th
Date: October 2023
Publisher: Wiley
Length: 640 pages


Amazon 👀
Download 😉

🚁 Hicte Blog
🔥21👍1
HICTE Blog
#کتاب x64 Assembly Language Step-by-Step: Programming with Linux Author: Jeff Duntemann Edition: 4th Date: October 2023 Publisher: Wiley Length: 640 pages Amazon 👀 Download 😉 🚁 Hicte Blog
توضیحات:

The long-awaited x64 edition of the bestselling introduction to Intel assembly language

In the newly revised fourth edition of x64 Assembly Language Step-by-Step: Programming with Linux, author Jeff Duntemann delivers an extensively rewritten introduction to assembly language with a strong focus on 64-bit long-mode Linux assembler. The book offers a lighthearted, robust, and accessible approach to a challenging technical discipline, giving you a step-by-step path to learning assembly code that’s engaging and easy to read.

x64 Assembly Language Step-by-Step makes quick work of programmable computing basics, the concepts of binary and hexadecimal number systems, the Intel x86/x64 computer architecture, and the process of Linux software development to dive deep into the x64 instruction set, memory addressing, procedures, macros, and interface to the C-language code libraries on which Linux is built.

You’ll also find:

    A set of free and open-source development and debugging tools you can download and put to use immediately
    Numerous examples woven throughout the book to illustrate the practical implementation of the ideas discussed within
    Practical tips on software design, coding, testing, and debugging

A one-stop resource for aspiring and practicing Intel assembly programmers, the latest edition of this celebrated text provides readers with an authoritative tutorial approach to x64 technology that’s ideal for self-paced instruction.
1
#کتاب

Fundamentals of Software Architecture: An Engineering Approach

Author: Mark Richards and Neal Ford
Edition: 1st
Date: March 2020
Publisher: O'Reilly Media
Length: 422 pages


Amazon 👀
Download 😉

🚁 Hicte Blog
👍3🔥1
HICTE Blog
#کتاب Fundamentals of Software Architecture: An Engineering Approach Author: Mark Richards and Neal Ford Edition: 1st Date: March 2020 Publisher: O'Reilly Media Length: 422 pages Amazon 👀 Download 😉 🚁 Hicte Blog
توضیحات:

This book provides the first comprehensive overview of software architecture's many aspects. Aspiring and existing architects alike will examine architectural characteristics, architectural patterns, component determination, diagramming and presenting architecture, evolutionary architecture, and many other topics.

Mark Richards and Neal Ford-hands-on practitioners who have taught software architecture classes professionally for years-focus on architecture principles that apply across all technology stacks. You'll explore software architecture in a modern light, taking into account all the innovations of the past decade.

This book examines:

    Architecture patterns: The technical basis for many architectural decisions
    Components: Identification, coupling, cohesion, partitioning, and granularity
    Soft skills: Effective team management, meetings, negotiation, presentations, and more
    Modernity: Engineering practices and operational approaches that have changed radically in the past few years
    Architecture as an engineering discipline: Repeatable results, metrics, and concrete valuations that add rigor to software architecture
#علوم_کامپیوتر

عملگر XOR یه عملگر منطقی هست که تنها در صورتی خروجیش true میشه که ورودی هاش مشابه نباشن.
1 XOR 1 —> 0
0 XOR 0 —> 0
1 XOR 0 —> 1
0 XOR 1 —> 1

همچنین این عملگر خاصیت جابجایی داره.
یعنی A XOR B و B XOR A هیچ فرقی با هم ندارن.

توی زبان‌های برنامه نویسی مثل C و Python این عملگر رو با استفاده از علامت ^ نشون میدن. وقتی بیایم روی دو رشته از بیت‌ها از این عملگر استفاده کنیم، بیت‌های متناظر با هم بررسی میشن و خروجی نهایی محسابه میشه.
101 ^ 111 —> 010

// xor.c

#include <stdio.h>

int main() {
    int a = 0B101;
    int b = 0B111;
    int c = a ^ b;

    printf("%03b\n", c);

    return 0;
}

——————————————————
gcc xor.c && ./a.out
010

در کل این عملگر توی زبان‌های برنامه نویسی bitwise هست و روی حالت باینری مقادیر متغیرهای شما اعمال میشه.
# xor.py

a = 5 # 101
b = 3 # 011

c = a ^ b # 110 (6 in decimal)
print(c)

——————————————————
python xor.py
6


توی پست بعدی یه الگوریتم ساده و کاربردی با استفاده از XOR رو بررسی میکنیم.

🚁 Hicte Blog
👍121🔥1💅1
This media is not supported in your browser
VIEW IN TELEGRAM
#خبر

Anthropic CEO Dario Amodei:

"If I look at coding, programming, which is one area where AI is making the most progress. What we are finding is that we're 3 to 6 months from a world where AI is writing 90% of the code. And then in 12 months, we may be in a world where AI is writing essentially all of the code."

یه پیام زماندار برای یکسال دیگه ست کردم تا اونموقع بیاین کامنت بزنین :)

🚁 Hicte Blog
😁10👍1