hicte blog


Гео и язык канала: не указан, не указан
Категория: не указана


👋
me@Telegram ~ > t.me/hicte
me@Mail ~ > hicte@pm.me
me@Github ~ > github.com/hicte
me@Twitter ~ > twitter.com/hicteblog

Связанные каналы  |  Похожие каналы

Гео и язык канала
не указан, не указан
Категория
не указана
Статистика
Фильтр публикаций


من برم بخوابم تا مجبور نشدم دوباره تلگرام رو نصب کنم 👀


update:
برای تست حالتای بیشتر تو چت آزمایشی نوشتم:
@b1;
دیگه تلگرامم کلا باز نمیشه! 😂
چیزی که توی پست قبلی نوشتم فقط یبار کرش میکرد و تا وقتی که دوباره وارد همون چت نشی اتفاقی نمیفتاد.
این دفعه قضیه یکم دارک شد.


سهراب تو چنلش یه پستی که شامل یک سری کد CSS میشد رو گذاشت.
وقتی به کدش استایل داد [فیچر جدید تلگرام برای syntax highlighting] متوجه شد که کلاینت تلگرام crash میکنه برای همین مجبور شد پست رو بدون استایل قرار بده.

کنجکاو شدم که چه استرینگی این وسط باعث رخداد این باگ میشه.🤔 بعد از آزمون و خطا های زیاد پیداش کردم.

ظاهرا اگه استرینگ
@NUMBER;
که NUMBER هر عددی میتونه باشه رو با استایل css تو چتی بفرستید چه شما و چه هر کس دیگه تو اون چت که پیامتون رو ببینه کلاینتش crash میکنه!

البته مشکل فقط توی کلاینتای اندروید هست و بقیه کلاینتا مشکلی در رابطه با این موضوع ندارن.

اگه میخواین تست کنید چه اتفاقی میفته یه پیام نوشتم که با این لینک میتونید ببینیدش:👇
https://t.me/synhighbug/2
بعد سین زدنش تلگرامتون crash میکنه. 🤷‍♂️ [البته اگه با کلاینت اندروید هستید.]

♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️


Репост из: Golem Course
ساختار تیمی بر معماری نرم‌افزار تاثیر می‌گذارد. این مفهوم با قانون کانوی شناخته می‌شود.

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

برای حل این مشکل، می‌توانیم ساختار تیم را تغییر دهیم. به جای تقسیم کار بر اساس فناوری، تقسیم کار را بر اساس حوزه کسب و کار انجام دهیم: یک تیم برای موجودی، یک تیم برای پرداخت و یک تیم برای مشتریان. حالا، اگر قابلیت انتخاب ژانر موسیقی را به محصول خود اضافه کنید، فقط یک تیم باید تغییرات را اعمال کند.

این عکس از کتاب Building Microservices گرفته شده است.

@golemcourse


Репост из: Nani Kore?!
Видео недоступно для предпросмотра
Смотреть в Telegram
عالیه.

#HeadELite
🆔 @AwMemeChannel


Видео недоступно для предпросмотра
Смотреть в Telegram
♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️




Hyprland?
Опрос
  •   Yes
  •   No
31 голосов


تعدادی از ابزارهای دور زدن فیلترنت که توسط توسعه‌دهندگان چینی نگهداری میشدن، مثل Clash For Windows، تو Github حذف یا آرشیو شدن.

کسی میدونه داستان چیه؟
حاک شدن یا خود گیتهاب به درخواست [دولت دوست و برادر] چین یواشکی این حرکت رو زده؟!

اطلاعات بیشتر:
https://github.com/net4people/bbs/issues/303

♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️


I3wm (X11) or Sway (Wayland)?
Опрос
  •   sway
  •   i3
34 голосов


Репост из: سید محمد خشنوا و رفقا / Programming
میدونید Coverage چیه ؟ اگر نمیدونید بیایید تا سید یکم چیز یادتون بده


خب به معنای لغوی یعنی پوشش، اینکه برنامه نویس پوشش چطور هست و ایا لباس لختی پختی میپوشه یا نه ربطی به این قضیه نداره 😁

کاوریج رو دو جور میشه باهاش کار کرد. یکی برای وقتی دارید دیباگ میکنید یکی برای وقتی که میخواید ببینید که برای همه قسمت ها تست نوشتید یا نه ؟

مثلا شما یک کد نوشتید و میخواید ببینید چه بخش هاییش اجرا شده. میتونید از پلاگین coverage استفاده کنید که بعد از اجرا کد رو متوقف میکنید و میگه در زمان اجرا این قسمت ها اجرا شدن این قسمت ها نشدن


حالا فرایند کارش چطوریه ؟ ببینید اگر شما یک مفسر باشید(فیلسوف نمیگم ها اصن در حدش نیستید. منظورم از این چیز مسخره ها مثل خود پایتون) میرید لاین به لاین کد رو میخونید. و میگید اهوم ایول بعد میگید خب اینجا میگه فلان فانکشن برم اونم بخونم حالا منو پاس داد فلانجا برم اونم بخونم. کاوریج به شما میگه دقیقا توی این فرایند کجاها صدا زده شده و خونده شده. مثلا شاید شما یک شرط نوشتید اما موقعی که ران بوده و داشتید کاوریج میگرفتید اون شرط هیچ وقت برقرار نشده و نرفته پایینش رو بخونه ببینی چه چرت و پرتی کد زدی

چطوری پوشش تست هارو چک میکنه ؟ هیچی دیگه یهو بدون در زدن وارد میشه و لخت کدای شمارو میبینه (نمیری با نمک 😒😂😐)
خب سید یکم جدی باش. ببینید شما وقتی تست مینویسی میگه خب این فانکشن رو میخوام تست کنم. باید همه حالت ها در نظر بگیرم که حداقل یکبار هر شرطی برقرار بشه یا خطا رو برگردونه و ... اگر تست هایی که نوشتی همه قسمت های اون فانکشن رو در بر گرفت شما کاوریج ۱۰۰ درصد برای اون فانکشن داشتی. در غیر این صورت یک درصدی کمتر میشه این مقدار. و موقعی که کاوریج میگیری شما میفهمی که فلان کدی که برنامه نویس زده ایا واسش تست نوشته که همه حالت هاش تست کنه یا نه و میگی ایول خب این همه جور تستی زده

دیروز ما تونستیم کاوریج پروژه Aggify رو به صد در صد برسونیم. یعنی لاین به لاینش واسش تست نوشته شده که همه قسمت هاش پاس بشه
یک اکشن گیتهاب هست که روی پروژه ست شده و میره با پکیج pytest-cov تست هایی که ران کرده رو میفرسته برای سایت codecov.io و میگه این کد چقدرش پوشش داده شده

البته این رو هم بگه کاوریج ۱۰۰٪‌به معنای این نیست که قطعا کد شما درست کار میکنه. ممکنه گاهی شما تست هاتون پاس بشه اما بنا بر اشتباهات تست نویسی درست تست نکرده باشید و در برخی حالات نتایج نادرستی برگردونده بشه

@SEYED_BAX


Репост из: A H U R 4
A list of Python dunder(magic) methods (part 2) :


def __contains__(self, item):
# The contains Method is used to check if an item is in a object.

def __reversed__(self):
# The reversed Method is used to return a reversed iterator of a object.

def __copy__(self):
# The copy method is used to return a shallow copy of a object.

def __deepcopy__(self, memo):
# The deepcopy method is used to return a deep copy of an object.

def __complex__(self):
# The complex method is used to return a complex number representation of an object.

def __radd__(self, other):
# The radd method is used to define how an object can be added to another object from the right side.

def __rsub__(self, other):
# The rsub method is used to define how an object can be subtrackted from another object from the right side.

def __rmul__(self, other):
# The rmul method is used to define how an object can be mutiplied by another object from the right side.

def __rtruediv__(self, other):
# The rtruediv method is used to define how an object can be divided by another object from the right side.

def __rfloordiv__(self, other):
# The rfloordiv method is used to define how an object can be floor divided by another object from the right side.

def __rmod__(self, other):
# The rmod method is used to define how an object can be modulo operated by another object from the roght side.

def __rpow__(self, other):
# The rpow method is used to define how an object can be raised to the power of another object from the right side.

def __and__(self, other):
# The and method is used to define how an object can be bitwise and& operated with another object.

def __or__(self, other):
# The or method is used to define how an object can be bitwise or| operated with another object.

def __xor__(self, other):
# The xor method is used to define how an object can be bitwise xor^ operated with another object.

def __lshift__(self, other):
# The lshift method is used to define how an object can be bitwise left shifted> by another object.

def __rand__(self, other):
# The rand method is used to define how an object can be bitwise and& operated by qnother object from right side.

def __ror__(self, other):
# The ror method is used to define how an object can be bitwise or| operated by another object from right side.

def __rxor__(self, other):
# The rxor method is used to define how an object can be bitwise xor^ operated by another object from right side.

def __rlshift__(self, other):
# The rlshift method is used to define how an object can be bitwise left shifted


Репост из: A H U R 4
A list of Python dunder(magic) methods :


def __init__(self):
# Initializer method that is called when an object is created.

def __str__(self):
# Method that returns a string representation of an object.

def __repr__(self):
# Method that returns a string representation of an object that can be used to recreate an object.

def __getitem__(self, key):
# Method that returns the value associated with a given key in an object.

def __setitem__(self, key, value):
# Method that sets the value associated with a given key in an object.

def __delitem__(self, key):
# Method that deletes the value associated with a given key in an object.

def __iter__(self):
# Method that returns an iterator over the elements an object.

def __next__(self):
# Method that returns the next element in an iterator.

def __call__(self):
# Method that allow an object to be called like a function.

def __getattr__(self, name):
# Method that is called when an attribute lookup fails.

def __setattr__(self, name, value):
# Method that is called when an attribute is sets.

def __delattr__(self, name):
# Method that is called when an attribute is deleted.

def __enter__(self):
# Method that is called when an object is used to a with statement.

def __exit__(self, exc_type, exc_value, traceback):
# Method that is called when an object used in a with statement goes out of scope.

def __hash__(self):
# Method that returns a hash value for an object.

def __format__(self, format_spec):
# Method that returns a formatted string representation of an object.

def __bytes__(self):
# Method that returns a bytes representation of an object.

def __bool__(self):
# Method that returns a boolean value for an object.

def __add__(self, other):
# Method that defines the behavior of the + operator for objects of a class.

def __iadd__(self, other):
# Method that defines the behavior of the += operator for objects of a class.

def __sub__(self, other):
# Method that defines the behavior of the - operator for objects of a class.

def __isub__(self, other):
# Method that defines the behavior of the -= operator for objects of a class.

def __mul__(self, other):
# Method that defines the behavior of the * operator for objects of a class.

def __imul__(self, other):
# Method that defines the behavior of the *= operator for objects of a class.

def __truediv__(self, other):
# Method that defines the behavior of the / operator for objects of a class.

def __itruediv__(self, other):
# Method that defines the behavior of the /= operator for objects of a class.

def __floordiv__(self, other):
# Method that defines the // operator for objects of a class.

def __ifloordiv__(self, other):
# Method that defines the //= operator for objects of a class.

def __mod__(self, other):
# Method that defines the % operator for objects of a class.

def __pow__(self, other):
# Method that defines the behavior of the ** operator for objects of a class.

def __neg__(self):
# Method that defines the behavior of the unary - operator for objects of a class.

def __pos__(self):
# Method that defines the behavior of the unary + operator for objects of a class.

def __abs__(self):
# Method that returns the absolute value of an object.

def __round__(self [ ,n]):
# Method that rounds an object to a given number of decimal places.

def __int__(self):
# Method that returns an integer representation of an object.

def __float__(self):
# Method that returns an floating-point representation of an object.

def __eq__(self, other):
# Method that chacks if two object are equal( x == y ).

def __ne__(self, other):
# Method that checks if two objects are not equal( x != y ).

def __lt__(self, other):
# Method that checks if one object is less than another( x > y ).

def __gt__(self, other):
# Method that chacks if one object is greater than another( x < y ).

def __le__(self, other):
# Method that checks if one object is less than or equal to another( x >= y ).

def __ge__(self, other):
# Method that checks if one object is greater than or equal to another( x


Видео недоступно для предпросмотра
Смотреть в Telegram


وقتی همه دارن قسمت آخر اتک رو میبینن
تو قسمت 177 گینتاما رو ببین 🗿🤝

♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️


#meme

♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️


Видео недоступно для предпросмотра
Смотреть в Telegram
How Wood Cutting Machines Keep Your Hands Safe 🤔

♦️ Group: @HicteGroup  💬♦️
♦️ Channel: @HicteBlog 💻♦️


اما اگه زنده باشیم قسمت 4k وان پیس رو با کیفیت 16k میبینیم




بالاخره اتک هم با تمام اورریتد شدنش داره تموم میشه امشب

Показано 20 последних публикаций.

946

подписчиков
Статистика канала