HICTE Blog – Telegram
HICTE Blog
1.18K subscribers
382 photos
126 videos
8 files
616 links
گروهمون: @HicteGroup

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

یکی از چیزایی که توی استاندارد C23 اضافه شد Bit-precise integer types هست.

میتونی با
_BitInt(width)
یه اینتیجر با اندازه دلخواه داشته باشی و اندازه‌ش لزوما توانی از دو نباشه.

مثلا بسته به نیازت یه اینتیجر 3 بیتی تعریف کنی:
_BitInt(3) my_var = 3;

همینطور طبیعتا
unsigned _BitInt()
هم داریم:
unsigned _BitInt(3) my_var = 7;


و با ماکروی BITINT_MAXWIDTH از limits.h میتونین حداکثر اندازه‌ش توی پلتفرم مشخص رو بدست بیارین.

البته کاربرد اصلی این ویژگی افزایش قابل حمل بودن کدهاتون هست و میتونین این تضمین رو دریافت کنین که تایپتون روی پلتفرمای مختلف اندازه‌ی N بیت ثابت داشته باشه.

مطالعه‌ی بیشتر

🚁 Hicte Blog
👍5🔥1👌1👨‍💻1
#کتاب

Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software

Author: Eric Freeman and Elisabeth Robson
Edition: 2nd
Date: December 2020
Publisher: O'Reilly Media
Length: 669 pages


Amazon 👀
Download 😉

🚁 Hicte Blog
👍3
HICTE Blog
#کتاب Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software Author: Eric Freeman and Elisabeth Robson Edition: 2nd Date: December 2020 Publisher: O'Reilly Media Length: 669 pages Amazon 👀 Download 😉 🚁 Hicte Blog
توضیحات:

What will you learn from this book?

You know you don't want to reinvent the wheel, so you look to Design Patterns: the lessons learned by those who've faced the same software design problems. With Design Patterns, you get to take advantage of the best practices and experience of others so you can spend your time on something more challenging. Something more fun. This book shows you the patterns that matter, when to use them and why, how to apply them to your own designs, and the object-oriented design principles on which they're based. Join hundreds of thousands of developers who've improved their object-oriented design skills through Head First Design Patterns.

What's so special about this book?

If you've read a Head First book, you know what to expect: a visually rich format designed for the way your brain works. With Head First Design Patterns, 2E you'll learn design principles and patterns in a way that won't put you to sleep, so you can get out there to solve software design problems and speak the language of patterns with others on your team.
#میم

Average Gentoo users.

🚁 Hicte Blog
🤣10
#گوناگون

بدرد نخور ترین دکمه‌ی کیبورد.

امروز ریمپش کردم به win بلکه یکم از بیکاری در بیاد.

🚁 Hicte Blog
👍7😁2😡1
#والپیپر

نکته۱: بهتره align icons to grid رو غیر فعال کنین برای دسکتاپ تا بشه راحت جای آیکون‌ها رو مشخص کرد.

نکته۲: برای نشون ندادن اسم‌ها هم اول یه نوت پد باز کنین کلید Alt رو نگه دارین و 255 رو با کلیدای numpad بزنین و کاراکتری که ایجاد میشه رو توی کلیپ بورد ذخیره کنین. حالا موقع rename آیکون‌ها به ترتیب n بار این کاراکتر رو paste کنین. مثلا اسم آیکون اول رو یه کاراکتر و دومی رو دو کاراکتر و ... قرار بدین.

🚁 Hicte Blog
🔥5👍31
#کتاب

Pointers in C Programming: A Modern Approach to Memory Management, Recursive Data Structures, Strings, and Arrays

Author: Thomas Mailund
Edition: 1st
Date: April 2021
Publisher: Apress
Length: 552 pages


Amazon 👀
Download 😉

🚁 Hicte Blog
👍6🔥2
HICTE Blog
#کتاب Pointers in C Programming: A Modern Approach to Memory Management, Recursive Data Structures, Strings, and Arrays Author: Thomas Mailund Edition: 1st Date: April 2021 Publisher: Apress Length: 552 pages Amazon 👀 Download 😉 🚁 Hicte Blog
توضیحات:

Gain a better understanding of pointers, from the basics of how pointers function at the machine level, to using them for a variety of common and advanced scenarios. This short contemporary guide book on pointers in C programming provides a resource for professionals and advanced students needing in-depth hands-on coverage of pointer basics and advanced features. It includes the latest versions of the C language, C20, C17, and C14.

You’ll see how pointers are used to provide vital C features, such as strings, arrays, higher-order functions and polymorphic data structures. Along the way, you’ll cover how pointers can optimize a program to run faster or use less memory than it would otherwise.

There are plenty of code examples in the book to emulate and adapt to meet your specific needs.

What You Will Learn

    Work effectively with pointers in your C programming
    Learn how to effectively manage dynamic memory
    Program with strings and arrays
    Create recursive data structures
    Implement function pointers

Who This Book Is For

Intermediate to advanced level professional programmers, software developers, and advanced students or researchers. Prior experience with C programming is expected.
👍2
#معرفی

میتونین OST اکثر ویدئوگیم‌ها رو تو این سایت پیدا و دانلود کنین.

[همچنین sound effect های سیستم عاملای مختلف ویندوز رو هم داره.]

https://downloads.khinsider.com

🚁 Hicte Blog
👍6
#نکته_لینوکس

ممکنه اگه Hyprland دارین و با nwg-look برای cursor تم ست کردین وقتی نشانگر رو روی تصویر دسکتاپ میبرین تم ریست بشه به Adwaita که برای حل این مشکل با hyprctl تنظیمات cursor رو اعمال کنین:
$ hyprctl setcursor THEME SIZE
که بجای THEME اسم تم مورد نظر و بجای SIZE اندازه نشانگر رو قرار بدین. مثلا:
$ hyprctl setcursor Dracula-cursors 24

🚁 Hicte Blog
👍6
#کتاب

Domain-Driven Design with Golang: Use Golang to create simple, maintainable systems to solve complex business problems

Author: Matthew Boyle
Edition: 1st
Date: December 2022
Publisher: Packt Publishing
Length: 204 pages


Amazon 👀
Download 😉

🚁 Hicte Blog
👍3
HICTE Blog
#کتاب Domain-Driven Design with Golang: Use Golang to create simple, maintainable systems to solve complex business problems Author: Matthew Boyle Edition: 1st Date: December 2022 Publisher: Packt Publishing Length: 204 pages Amazon 👀 Download 😉 🚁 Hicte…
توضیحات:

Understand the concept of Domain-driven design and build two DDD systems from scratch that can be showcased as part of your portfolio

Key Features

    Explore Domain-driven design as a timeless concept and learn how to apply it with Go
    Build a domain-driven monolithic application and a microservice from scratch
    Leverage patterns to make systems scalable, resilient, and maintainable

Book Denoscription

Domain-driven design (DDD) is one of the most sought-after skills in the industry. This book provides you with step-by-step explanations of essential concepts and practical examples that will see you introducing DDD in your Go projects in no time. Domain-Driven Design with Golang starts by helping you gain a basic understanding of DDD, and then covers all the important patterns, such as bounded context, ubiquitous language, and aggregates. The latter half of the book deals with the real-world implementation of DDD patterns and teaches you how to build two systems while applying DDD principles, which will be a valuable addition to your portfolio. Finally, you'll find out how to build a microservice, along with learning how DDD-based microservices can be part of a greater distributed system. Although the focus of this book is Golang, by the end of this book you'll be able to confidently use DDD patterns outside of Go and apply them to other languages and even distributed systems.

What you will learn

    Get to grips with domains and the evolution of Domain-driven design
    Work with stakeholders to manage complex business needs
    Gain a clear understanding of bounded context, services, and value objects
    Get up and running with aggregates, factories, repositories, and services
    Find out how to apply DDD to monolithic applications and microservices
    Discover how to implement DDD patterns on distributed systems
    Understand how Test-driven development and Behavior-driven development can work with DDD

Who this book is for

This book is for intermediate-level Go developers who are looking to ensure that they not only write maintainable code, but also deliver great business value. If you have a basic understanding of Go and are interested in learning about Domain-driven design, or you've explored Domain-driven design before but never in the context of Go, then this book will be helpful.

Table of Contents

    A brief history of Domain Driven Design
    Understanding Domains, Ubiquitous Language, and Bounded Contexts
    Aggregates, Entities & Value Objects
    Factories, Repositories & Services
    Applying Domain Driven Design to a monolithic application
    Building a microservice using domain driven design
    Domain Driven Design for distributed systems
    TDD, BDD and DDD
#میم

What are YOU laughing about?

🚁 Hicte Blog
🤣12👍3💔1
#گوناگون

چرا vscode یه هیستوری مجزا واسه شل ترمینالش نداره؟

الان بازش کردم و طبق عادت up arrow رو زدم و بعدش enter زدم.

چی شد؟ سیستم ریبوت شد. 🚶‍♂

ادیت: راه حلش برای fish, bash, zsh [چون محتوا زیاد بود سه تا پست جدا نوشتم که لینک شده]

🚁 Hicte Blog
🤣23👍1😁1
#سی

اگه حین یادگیری زبان C هستین و با دیدن چیزی مثل تصویر بالا تسمه تایم پاره کردین نگران نباشین.

میتونین برای توصیف declaration ها از این سایت استفاده کنین.

دوشواری نداریم 🤷‍♂.

🚁 Hicte Blog
👍8🤣4🔥1
HICTE Blog
#گوناگون چرا vscode یه هیستوری مجزا واسه شل ترمینالش نداره؟ الان بازش کردم و طبق عادت up arrow رو زدم و بعدش enter زدم. چی شد؟ سیستم ریبوت شد. 🚶‍♂ ادیت: راه حلش برای fish, bash, zsh [چون محتوا زیاد بود سه تا پست جدا نوشتم که لینک شده] 🚁 Hicte Blog
#نکته_لینوکس

خب برای اینکه برای vscode یه هیستوری مجزا داشته باشم مقادیر
"terminal.integrated.defaultProfile.linux": "vscfish",
"terminal.integrated.profiles.linux": {
        "vscfish": {
            "path": "fish",
            "args": [
                "-C",
                "set -x fish_history vscode"
            ]
        }
    }

رو به فایل
~/.config/Code/User/settings.json
اضافه کردم.

که توی بخش اول تنظیم میکنه ترمینال vscode از پروفایلی به اسم vscfish استفاده کنه.

بعدش vscfish رو به این صورت تعریف کردم که کامند fish رو با دو تا آرگومان اجرا کنه.
آرگومان اول که
-C
هست و معادل
--init-command
یه دستور مشخص رو بعد اینکه شل اجرا شد اجرا میکنه.
آرگومان دوم هم اون دستوری هست که میخوام موقع اجرا شدن شل اجرا بشه.
که با
set -x
مقدار متغیر fish_history رو به "vscode" تغییر دادم و یه session name جدید برای ذخیره‌ی history ایجاد کردم تا از history اصلی جدا بشه.

و از این به بعد هیستوری ترمینال vscode توی
~/.local/share/fish/history_vscode
ذخیره میشه.

مطالعه‌ی بیشتر:
VSCode Terminal Profiles
Fish shell fish_history
Fish shell --init-command

پی نوشت: من از شل fish استفاده میکنم؛ بعدا برای bash یه پست جداگانه مینویسم.

🚁 Hicte Blog
👍10
#گوناگون

الان که بازار برچسب «هوش مصنوعی» رو اسم هر چیزی داغه، کسی از «نانو» خبری نداره؟ نگرانش شدم! 🗿

اون قدیما تله تکست پر بود از اخبار نانو. 🚶‍♂

🚁 Hicte Blog
😭5👍4😁3