اگر میخواین آدرس آیپی یه url از dns خونده نشه، داخل فایل /etc/hosts یه خط اضافه کنین. (با قالب باقی سطر هاش)
حالا اگر میخواین تست کنین از nslookup استفاده نکنین چون این دقیقا میره از dns میخونه.
بلکه با ping تست کنین که ip ای که خودتون ست کردین رو میخونه یا نه.
حالا اگر میخواین تست کنین از nslookup استفاده نکنین چون این دقیقا میره از dns میخونه.
بلکه با ping تست کنین که ip ای که خودتون ست کردین رو میخونه یا نه.
تو نسخه های جدید maven از repository های http دانلود نمیکنه.
دو تا کار میشه کرد، آدرس اون repo رو https کنین
راه دوم هم اینکه به عنوان unsecure source بگین که بخونه حتما.
دو تا کار میشه کرد، آدرس اون repo رو https کنین
راه دوم هم اینکه به عنوان unsecure source بگین که بخونه حتما.
چرا اسم صفحه پیشفرضی که توی یه پوشه توسط وب سرور برگردونده میشه index.htmlئه؟
https://www.quora.com/Why-is-the-default-html-file-called-index-html
https://www.quora.com/Why-is-the-default-html-file-called-index-html
Quora
Why is the default html file called index.html?
Answer (1 of 5): The original idea was that navigating to a particular directory would simply list the files in it, just like clicking on a folder on your desktop, but if you preferred you could provide your own custom index of the files. You specified this…
اسیب پذیری سرور به خاطر pickle! مطلب جالبی بود.
https://memoryleaks.ir/escalate-to-backend-from-redis-cache/
https://memoryleaks.ir/escalate-to-backend-from-redis-cache/
مموریلیکس - نگاشتههایی پیرامون امنیت، شبکه و رمزنگاری
چرا باید از باز بودن Redis Cache بیشتر بترسیم؟ - مموریلیکس - نگاشتههایی پیرامون امنیت، شبکه و رمزنگاری
استفاده از Redis Cache در اپلیکیشنهای وب متداول است. به علت سادگی راهاندازی (در حد docker run redis)، ممکن است در تنظیمات امنیتی Redis سهلانگاری شود و این دیتابیس در دسترس نفوذگران قرار گیرد. پیشتر ذهنیتم این بود که اگر روزی موفق به نفوذ به یک Redis شوم،…
گذاشتن دیتابیس روی static host
به نظرم جدا کار های عجیبی با وباسمبلی و دام و .. کرده، اگر سر در میارید ببینید.
https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
به نظرم جدا کار های عجیبی با وباسمبلی و دام و .. کرده، اگر سر در میارید ببینید.
https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/
phiresky.github.io
Hosting SQLite databases on Github Pages - (or IPFS or any static file hoster) - phiresky's blog
I was writing a tiny website to display statistics of how much sponsored content a Youtube creator has over time when I noticed that I often write a small tool as a website that queries some data from a database and then displays it in a graph, a table, or…
در صورتی که میخواین یه کارکتر با کد اسکی خاص وارد کنین (در ویم)
اول وارد insert mode بشین
بعد Ctrl-v رو بزنین
بعد کد سه رقمی کارکترتون رو وارد کنین. اگه ۲ رقمی یا کمتره قبلش صفر بزنین مثلا اگه بزنین ۰۶۵ میشه A
اول وارد 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/
https://www.teamten.com/lawrence/writings/coding-machines/
پیاده سازی ساختمان دادهی set به شکل thread safe و غیر thread safe در go
https://bbengfort.github.io/2018/01/go-set/
https://bbengfort.github.io/2018/01/go-set/
Libelli
Thread and Non-Thread Safe Go Set
I came across this now archived project that implements a set data structure in Go and was intrigued by the implementation of both thread-safe and non-thread-safe implementations of the same data structure. Recently I’ve been attempting to get rid of locks…
آیا ابزار های posixی اولیه، به شکل موازی اجرا میشن؟
https://newbedev.com/are-basic-posix-utilities-parallelized
(جواب اینه که اکثرا نه، باقی هم به شکل دیفالت نه)
https://newbedev.com/are-basic-posix-utilities-parallelized
(جواب اینه که اکثرا نه، باقی هم به شکل دیفالت نه)
NewbeDEV
Are basic POSIX utilities parallelized? | Newbedev
You can get a first impression by checking whether the utility is linked with the pthread library. Any dynamically linked program that uses OS threads should us
دستورات bash به شکل sequential اجرا میشن، حالا چی میشه اگه بخوایم به ازای هر خط یک ورودی (مثلا خروجی دستور قبلی) یک ترد جدید بسازیم و اونجا اجرا کنیم؟
مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.
اما با کمک gnu parallel میتونیم این کارو به شکل parallel انجام بدیم.
https://opensource.com/article/18/5/gnu-parallel
مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.
اما با کمک gnu parallel میتونیم این کارو به شکل parallel انجام بدیم.
https://opensource.com/article/18/5/gnu-parallel
Opensource.com
Get more done at the Linux command line with GNU Parallel
Do you ever get the funny feeling that your computer isn't quite as fast as it should be? I used to feel that way, and then I found GNU Parallel.
نوشتههای ترمینالی
دستورات bash به شکل sequential اجرا میشن، حالا چی میشه اگه بخوایم به ازای هر خط یک ورودی (مثلا خروجی دستور قبلی) یک ترد جدید بسازیم و اونجا اجرا کنیم؟ مثلا فکر کنید میخوایم ۱۰۰ تا عملیات mv انجام بدیم. اگه توی for بنویسیم باید اولی تموم بشه تا دومی شروع بشه.…
اینجا هم کلی مثال ازش هست.
https://www.gnu.org/software/parallel/man.html#EXAMPLES
https://www.gnu.org/software/parallel/man.html#EXAMPLES
پایپها در لینوکس چطوری کار میکنن + نمونه کد سی برای پایپ
https://www.idc-online.com/technical_references/pdfs/information_technology/How_Linux_pipes_work_under_the_hood.pdf
https://www.idc-online.com/technical_references/pdfs/information_technology/How_Linux_pipes_work_under_the_hood.pdf
dont communicate with sharing memory, share memory by communicating
https://blog.golang.org/codelab-share
https://blog.golang.org/codelab-share
blog.golang.org
Share Memory By Communicating - The Go Blog
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
در گو، با کمک -race میتونین از go runtime بخواین بررسی کنه خونهای از مموری همزمان خونده/نوشته میشه یا نه و اینطوری کمک میکنه مشکلات race condition رو پیدا کنین.
یه نمونه مثال همراه با unit test مناسب
https://medium.com/dm03514-tech-blog/golang-introduction-to-race-conditions-for-the-web-engineer-738513ab2ec2
یه نمونه مثال همراه با unit test مناسب
https://medium.com/dm03514-tech-blog/golang-introduction-to-race-conditions-for-the-web-engineer-738513ab2ec2
Medium
Golang: Introduction to Race Conditions for the Web Engineer
Go provides a first-class primitive for concurrency called a Goroutine. Goroutines allow end users to easily spawn concurrent tasks and…
تفاوت simple و easy در نرمافزار و اینکه چرا simple بهتره؟
https://www.infoq.com/presentations/Simple-Made-Easy/
همچنین جوابی باشه به اونایی که میگن چرا keep it simple stupid هست اما نمی تونیم آسون نصبش کنیم.
https://www.infoq.com/presentations/Simple-Made-Easy/
همچنین جوابی باشه به اونایی که میگن چرا keep it simple stupid هست اما نمی تونیم آسون نصبش کنیم.
InfoQ
Simple Made Easy
Rich Hickey emphasizes simplicity’s virtues over easiness’, showing that while many choose easiness they may end up with complexity, and the better way is to choose easiness along the simplicity path.
پوشه های ویم
مثلاً پلاگین ها، فایل های spell و غیره
https://vim.fandom.com/wiki/Understanding_VIMRUNTIME
مثلاً پلاگین ها، فایل های spell و غیره
https://vim.fandom.com/wiki/Understanding_VIMRUNTIME
Vim Tips Wiki
Understanding VIMRUNTIME | Vim Tips Wiki | Fandom
$VIMRUNTIME identifes a directory where Vim's support files are located. Many of the files are not necessary for Vim to run, but are used to provide extra functionality such as syntax highlighting...
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
— 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
Medium
Object-Oriented Programming — The Trillion Dollar Disaster
OOP is considered by many to be the crown jewel of computer science. The final solution to code organization. The end to all of our…