در مورد مفهوم cloud native
https://en.m.wikipedia.org/wiki/Cloud_native_computing
https://en.m.wikipedia.org/wiki/Cloud_native_computing
Wikipedia
Cloud-native computing
Cloud native computing is an approach in software development that utilizes cloud computing to "build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds". These technologies such as containers, microservices…
هرچیزی که به عنوان برنامه نویس باید در مورد floating point بدونید:
https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/02Numerics/Double/paper.pdf
https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/02Numerics/Double/paper.pdf
👍1
این ابزار jq هم برای کار با json توی کامندلاین رو من زیاد استفاده کردم اخیرا.
یه اموزش مختصر ازش رو اینجا میتونید ببینید.
https://www.baeldung.com/linux/jq-command-json
به شکل پیشفرض فقط pretty print میکنه ولی کارهای دیگه مثل بیرون کشیدن اطلاعات یا حتی map کردن و min/max میشه باهاش انجام داد.
یه اموزش مختصر ازش رو اینجا میتونید ببینید.
https://www.baeldung.com/linux/jq-command-json
به شکل پیشفرض فقط pretty print میکنه ولی کارهای دیگه مثل بیرون کشیدن اطلاعات یا حتی map کردن و min/max میشه باهاش انجام داد.
Baeldung on Linux
Guide to Linux jq Command for JSON Processing | Baeldung on Linux
Explore the capabilities that jq provides for processing and manipulating JSON via the command line.
👍4🏆1
چرا و چه زمانی در سی do-while false در سی نیاز داریم؟
https://stackoverflow.com/questions/4674480/do-whilefalse-pattern
https://stackoverflow.com/questions/4674480/do-whilefalse-pattern
Stack Overflow
do while(false) pattern
Possible Duplicate:
Why use apparently meaningless do-while and if-else statements in macros?
Why is the do while(false) necessary in the macros below?
#define LOG(message, ...) \
do { \
Lock<
Why use apparently meaningless do-while and if-else statements in macros?
Why is the do while(false) necessary in the macros below?
#define LOG(message, ...) \
do { \
Lock<
🔥1
در مورد GraphQL این ویدیو جزو منابع آموزشی وبسایت رسمیش بود و خیلیم به نظرم خوب توضیح داده
https://youtu.be/UBGzsb2UkeY
https://youtu.be/UBGzsb2UkeY
YouTube
Zero to GraphQL in 30 Minutes – Steven Luscher
Spend this 30 minutes learning how to adapt your existing ORM, SOA, or REST API to GraphQL so that you can begin to use GraphQL-based technologies like Relay.
https://github.com/steveluscher/zero-to-graphql
Part of a series of tech talks at Facebook HQ…
https://github.com/steveluscher/zero-to-graphql
Part of a series of tech talks at Facebook HQ…
👍3
اگر بینهایت توان پردازشی داشته باشید با بینهایت زمان(!) آیا رمزنگاری های ما همچنان امن خواهد بود؟
معمولا خیر
اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه.
بهشون میگن information theoretic secure.
مثلاً اگه کامپیوتر های کوانتومی هم به اندازه کافی قوی بشن اینا همچنان مقاومن.
https://en.m.wikipedia.org/wiki/Information-theoretic_security
معمولا خیر
اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه.
بهشون میگن information theoretic secure.
مثلاً اگه کامپیوتر های کوانتومی هم به اندازه کافی قوی بشن اینا همچنان مقاومن.
https://en.m.wikipedia.org/wiki/Information-theoretic_security
Wikipedia
Information-theoretic security
security of a cryptosystem which derives purely from information theory
👍2
نوشتههای ترمینالی
اگر بینهایت توان پردازشی داشته باشید با بینهایت زمان(!) آیا رمزنگاری های ما همچنان امن خواهد بود؟ معمولا خیر اما یکسری الگوریتم وجود داره که اثبات میشه با بینهایت توان و زمان پردازشی همچنان امنه. بهشون میگن information theoretic secure. مثلاً اگه کامپیوتر…
حالا داستان چیه؟ الگوریتم های سنتی اصولاً برای سیستم های کامپیوتری سنتی، غیر قابل شکستن هستن و هرچیم بگذره و کامپیوتر ها قوی بشن، همچنان خیلی مشکلی براشون پیش نمیاد.
اما از طرفی کامپیوتر های کوانتومی تهدید مهمی محسوب میشن برای الگوریتم های رمزنگاری، چون که میتونن یکسری مسأله رو خیلی بهتر از کامپیوتر های سنتی حل کنن، چه مسائلی رو؟ همون مسائلی که الگوریتم های رمزنگاری فرض کردن که حلشون خیلی طول میکشه.
توی مطلب ۳ تا مساله رو نام میبره که امنیت الگوریتم های رمزنگاری (البته کلید نامتقارن) به حل نشدن اینا وابسته س، یکیش که من سر در میارم integer factorization ئه
در واقع الگوریتم میاد دو تا عدد اول بزرگ انتخاب میکنه و ضرب میکنه، حالا اکه بتونید اون عدد بزرگ نهایی رو به دو تا عدد اول بزرگ ها فاکتور بگیرید الگوریتم شکسته میشه.
کامپیوتر های کوانتومی با کمک الگوریتم شور ( algorithm Shor's ) میتونن این مسأله ها رو حل کنن.
البته فعلا (خیلی) نگران نباشید چون کامپیوتر های کوانتومی اونقدر قوی نیستن که این الگوریتم رو اجرا کنن ولی داره روش کار میشه
یه نکته هم که وجود داره اینه که این داستان ها بسیار برای شکستن رمزنگاری کلید نامتقارنه، اما کلید متقارن چی؟ نکته اینه که اون امنیت خوبی داره، به یک شرط، اگر کلید درست رو داری متوجه نشی کلیدت درسته! در واقع ویژگی های plain text رو بپوشونیم که راحت قابل تشخیص نباشه. (اگه نادقیق میگم بگید)
البته در کل الگوریتم های هش و رمزنگاری متقارن هم با کمک کوانتوم کامپیوتینگ قابل ضعیف شدن هست ولی کلیت الگوریتم لازم نیست تغییری کنه و همین که اندازه کلید بزرگ بشه کفایت میکنه.
https://en.m.wikipedia.org/wiki/Post-quantum_cryptography
اما از طرفی کامپیوتر های کوانتومی تهدید مهمی محسوب میشن برای الگوریتم های رمزنگاری، چون که میتونن یکسری مسأله رو خیلی بهتر از کامپیوتر های سنتی حل کنن، چه مسائلی رو؟ همون مسائلی که الگوریتم های رمزنگاری فرض کردن که حلشون خیلی طول میکشه.
توی مطلب ۳ تا مساله رو نام میبره که امنیت الگوریتم های رمزنگاری (البته کلید نامتقارن) به حل نشدن اینا وابسته س، یکیش که من سر در میارم integer factorization ئه
در واقع الگوریتم میاد دو تا عدد اول بزرگ انتخاب میکنه و ضرب میکنه، حالا اکه بتونید اون عدد بزرگ نهایی رو به دو تا عدد اول بزرگ ها فاکتور بگیرید الگوریتم شکسته میشه.
کامپیوتر های کوانتومی با کمک الگوریتم شور ( algorithm Shor's ) میتونن این مسأله ها رو حل کنن.
البته فعلا (خیلی) نگران نباشید چون کامپیوتر های کوانتومی اونقدر قوی نیستن که این الگوریتم رو اجرا کنن ولی داره روش کار میشه
یه نکته هم که وجود داره اینه که این داستان ها بسیار برای شکستن رمزنگاری کلید نامتقارنه، اما کلید متقارن چی؟ نکته اینه که اون امنیت خوبی داره، به یک شرط، اگر کلید درست رو داری متوجه نشی کلیدت درسته! در واقع ویژگی های plain text رو بپوشونیم که راحت قابل تشخیص نباشه. (اگه نادقیق میگم بگید)
البته در کل الگوریتم های هش و رمزنگاری متقارن هم با کمک کوانتوم کامپیوتینگ قابل ضعیف شدن هست ولی کلیت الگوریتم لازم نیست تغییری کنه و همین که اندازه کلید بزرگ بشه کفایت میکنه.
https://en.m.wikipedia.org/wiki/Post-quantum_cryptography
Wikipedia
Post-quantum cryptography
cryptography that is secure against quantum computers
👍2
Forwarded from Agora (Alireza)
«هنگ کرده؟ سیستمو ریست کن!»
TIP: REBOOT IS USEFUL
Earlier on, we noted that the only solution to infinite loops (and similar behaviors) under cooperative preemption is to reboot the machine. While you may scoff at this hack, researchers have shown that reboot (or in general, starting over some piece of software) can be a hugely useful tool in building robust systems [C+04].
Specifically, reboot is useful because it moves software back to a known and likely more tested state. Reboots also reclaim stale or leaked resources (e.g., memory) which may otherwise be hard to handle. Finally, reboots are easy to automate. For all of these reasons, it is not uncommon
in large-scale cluster Internet services for system management software to periodically reboot sets of machines in order to reset them and thus obtain the advantages listed above.Thus, next time you reboot, you are not just enacting some ugly hack. Rather, you are using a time-tested approach to improving the behavior of a computer system. Well done!
از کتاب Operating Systems Three Easy Pieces
TIP: REBOOT IS USEFUL
Earlier on, we noted that the only solution to infinite loops (and similar behaviors) under cooperative preemption is to reboot the machine. While you may scoff at this hack, researchers have shown that reboot (or in general, starting over some piece of software) can be a hugely useful tool in building robust systems [C+04].
Specifically, reboot is useful because it moves software back to a known and likely more tested state. Reboots also reclaim stale or leaked resources (e.g., memory) which may otherwise be hard to handle. Finally, reboots are easy to automate. For all of these reasons, it is not uncommon
in large-scale cluster Internet services for system management software to periodically reboot sets of machines in order to reset them and thus obtain the advantages listed above.Thus, next time you reboot, you are not just enacting some ugly hack. Rather, you are using a time-tested approach to improving the behavior of a computer system. Well done!
از کتاب Operating Systems Three Easy Pieces
👍5🔥4😱2
یه ویدیوی خیلی خوب با طول منطقی برای مفاهیم intermediate داکر
https://www.youtube.com/watch?v=_m9JYAvFB8s
https://www.youtube.com/watch?v=_m9JYAvFB8s
YouTube
Intro to Docker - Part 2 (Networking, Docker Compose)
In Intro to @DockerInc (Part 1), we learned about the fundamentals of Docker. In this video, we build on that knowledge and explain a few more concepts that are important to understand when using Docker, especially around networking which quickly comes up…
👍1
Forwarded from La3tKnight (Amir.)
هر چی از عاشقان ترمینال بگیم کم گفتیم 😂
📎soundcloud9000
ساوندکلاود داخل ترمینال
📎Calcure
تقویم تحت ترمینال
La3tKnight
📎soundcloud9000
ساوندکلاود داخل ترمینال
📎Calcure
تقویم تحت ترمینال
La3tKnight
😁6👍3👎3
یه جایگزین متنباز و رایگان برای copilot github
https://keg.cs.tsinghua.edu.cn/codegeex/
و گیتهابش:
https://github.com/THUDM/CodeGeeX
https://keg.cs.tsinghua.edu.cn/codegeex/
و گیتهابش:
https://github.com/THUDM/CodeGeeX
GitHub
GitHub - zai-org/CodeGeeX: CodeGeeX: An Open Multilingual Code Generation Model (KDD 2023)
CodeGeeX: An Open Multilingual Code Generation Model (KDD 2023) - zai-org/CodeGeeX
👍1🔥1
اگه با fast string پایتون آشنا هستید، با این مطلب بیشتر تر یاد بگیرید:
https://towardsdatascience.com/python-f-strings-are-more-powerful-than-you-might-think-8271d3efbd7d
مثلا قسمت debugging برای خودم جالب بود.
https://towardsdatascience.com/python-f-strings-are-more-powerful-than-you-might-think-8271d3efbd7d
مثلا قسمت debugging برای خودم جالب بود.
Towards Data Science
Python f-strings Are More Powerful Than You Might Think | Towards Data Science
Learn about the unknown features of Python's f-strings - the formatted string literals - and up your text formatting knowledge and skills
🔥1
نوشتههای ترمینالی
مفهوم بی طرفی شبکه یا net Neutrality هم جالبه بدونید چیه https://www.investopedia.com/terms/n/net-neutrality.asp و صفحه ویکیپدیاش: https://en.m.wikipedia.org/wiki/Net_neutrality به طور خلاصه میگه شبکهی کامپیوتری که باهاش وصلی به اینترنت، نباید برای شما…
سطح جدیدی از بی طرفی شبکه ارائه شد.
😁29🏆1
😁4
من معمولا اخبار رو پوشش نمیدم، ولی اگه میخواین به شکل ویدیویی و مختصر اخبار (عمدتا داخلی) تکنولوژی رو دنبال کنید این tech talk های دیجیاتو خوبن.
https://digiato.com/article/2022/12/28/tech_talk_s3e5
https://digiato.com/article/2022/12/28/tech_talk_s3e5
دیجیاتو
تکتاک اپیزود ۵ فصل سوم؛ ویپیان را خاموش کنید تا اینترنت خوب شود!
در پنجمین قسمت از فصل سوم تکتاک از جدیدترین مصاحبه وزیر ارتباطات در رابطه با وضعیت اینترنت صحبت کردهایم.
👍1🔥1
Forwarded from نوشتههای ترمینالی
میدونستید ممکنه یه دقیقهای ۶۱ ثانیه باشه؟
به این ترتیب:
When do leap seconds occur?
Leap seconds have always occurred at the end of December or the end of June, on the last second of the UTC day. The designation of the sequence of seconds is:
23h 59m 59s
23h 59m 60s
00h 00m 00s (the beginning of the following date)
https://www.nist.gov/pml/time-and-frequency-division/leap-seconds-faqs
به این ترتیب:
When do leap seconds occur?
Leap seconds have always occurred at the end of December or the end of June, on the last second of the UTC day. The designation of the sequence of seconds is:
23h 59m 59s
23h 59m 60s
00h 00m 00s (the beginning of the following date)
https://www.nist.gov/pml/time-and-frequency-division/leap-seconds-faqs
NIST
Leap Seconds FAQs
What time is it
👍7
چرا alpine به عنوان base image برای داکر بد است؟
یک مطلب برای مقایسهی base image های مختلفی که میتونید استفاده کنید.
https://medium.com/inside-sumup/stop-using-alpine-docker-images-fbf122c63010
یک مطلب برای مقایسهی base image های مختلفی که میتونید استفاده کنید.
https://medium.com/inside-sumup/stop-using-alpine-docker-images-fbf122c63010
Medium
Stop using Alpine Docker images
Everybody loves Alpine images because they are light and have a smaller attack surface, but maybe they are not the best option anymore.
🔥1💔1