نوشته‌های ترمینالی
2.7K subscribers
425 photos
12 videos
32 files
2.26K links
Download Telegram
اگر میخواین آدرس آی‌پی یه url از dns خونده نشه، داخل فایل /etc/hosts یه خط اضافه کنین. (با قالب باقی سطر هاش)
حالا اگر میخواین تست کنین از nslookup استفاده نکنین چون این دقیقا میره از dns میخونه.
بلکه با ping تست کنین که ip ای که خودتون ست کردین رو میخونه یا نه.
تو نسخه های جدید maven از repository های http دانلود نمیکنه.
دو تا کار میشه کرد، آدرس اون repo رو https کنین
راه دوم هم اینکه به عنوان unsecure source بگین که بخونه حتما.
در صورتی که می‌خواین یه کارکتر با کد اسکی خاص وارد کنین (در ویم)
اول وارد insert mode بشین
بعد Ctrl-v رو بزنین
بعد کد سه رقمی کارکترتون رو وارد کنین. اگه ۲ رقمی یا کمتره قبلش صفر بزنین مثلا اگه بزنین ۰۶۵ میشه A
A bug in a programmer’s computer program leads him and his co-workers through an investigation down the stack to a frightening realisation about trust and reality.

https://www.teamten.com/lawrence/writings/coding-machines/
دستورات bash به شکل sequential اجرا میشن، حالا چی میشه اگه بخوایم به ازای هر خط یک ورودی (مثلا خروجی دستور قبلی) یک ترد جدید بسازیم و اونجا اجرا کنیم؟
مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.
اما با کمک gnu parallel می‌تونیم این کارو به شکل parallel انجام بدیم.

https://opensource.com/article/18/5/gnu-parallel
پایپ‌ها در لینوکس چطوری کار میکنن + نمونه کد سی برای پایپ
https://www.idc-online.com/technical_references/pdfs/information_technology/How_Linux_pipes_work_under_the_hood.pdf
در گو، با کمک -race می‌تونین از go runtime بخواین بررسی کنه خونه‌ای از مموری همزمان خونده/نوشته میشه‌ یا نه و اینطوری کمک میکنه مشکلات race condition رو پیدا کنین.

یه نمونه مثال همراه با unit test مناسب
https://medium.com/dm03514-tech-blog/golang-introduction-to-race-conditions-for-the-web-engineer-738513ab2ec2
موقع سوال پرسیدن، سلام کنیم اما در خود پیام سوال!

https://dontasktoask.ir/nohello.html
تفاوت simple و easy در نرم‌افزار و اینکه چرا simple بهتره؟
https://www.infoq.com/presentations/Simple-Made-Easy/

همچنین جوابی باشه به اونایی که میگن چرا keep it simple stupid هست اما نمی تونیم آسون نصبش کنیم.
Object oriented programs are offered as alternatives to correct ones…

— Edsger W. Dijkstra, pioneer of computer science


C++ is a horrible [object-oriented] language… And limiting your project to C means that people don’t screw things up with any idiotic “object model” c&@p.
— Linus Torvalds, the creator of Linux


I think the lack of reusability comes in object-oriented languages, not in functional languages. Because the problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
— Joe Armstrong, creator of Erlang


https://betterprogramming.pub/object-oriented-programming-the-trillion-dollar-disaster-92a4b666c7c7