چرا کاتلین؟ قسمت سوم
https://javacup.ir/why-kotlin-3/
https://javacup.ir/why-kotlin-3/
انجمن جاواکاپ
چرا کاتلین؟ ۸ دلیل که میتواند برنامهنویسان جاوا را برای تغییر قانع کند. (قسمت سوم) - انجمن جاواکاپ
در قسمت اول این مطلب، در مورد سینتکس و تایپسیستم زبان کاتلین خواندیم. در صورتی که هنوز قسمت اول را نخواندهاید پیشنهاد میشود ابتدا آن را مطالعه کنید. در قسمت دوم نیز، ایمنی در برابر null، توابع و برنامهنویسی تابعی، کلاسهای داده و توابع و فیلدهای افزودنی…
از یونیکس و پایپهاش استفاده میکنیم ولی واقعا نمیدونیم چه خبره اون پشت!
https://github.com/golang/go/issues/16787
https://github.com/golang/go/issues/16787
GitHub
io/ioutil hangs with too big output from os/exec stderr and stdout pipes · Issue #16787 · golang/go
What version of Go are you using (go version)? 1.6.2 1.6.3 1.7 What operating system and processor architecture are you using (go env)? GOARCH="amd64" GOBIN="" G...
این rsync هم واقعا زیباست!
به جای cp و scp میتونه کار کنه، حتی ازشون بهتر.
https://stackoverflow.com/questions/6339287/copy-or-rsync-command
به جای cp و scp میتونه کار کنه، حتی ازشون بهتر.
https://stackoverflow.com/questions/6339287/copy-or-rsync-command
Stack Overflow
Copy or rsync command
The following command is working as expected...
cp -ur /home/abc/* /mnt/windowsabc/
Does rsync has any advantage over it? Is there a better way to keep to backup folder in sync every 24 hours?
cp -ur /home/abc/* /mnt/windowsabc/
Does rsync has any advantage over it? Is there a better way to keep to backup folder in sync every 24 hours?
برنامه نویسی روی raspberry pi با rust
https://opensource.com/article/19/3/physical-computing-rust-raspberry-pi
با پایتون:
https://gpiozero.readthedocs.io/en/stable/recipes.html
https://opensource.com/article/19/3/physical-computing-rust-raspberry-pi
با پایتون:
https://gpiozero.readthedocs.io/en/stable/recipes.html
Opensource.com
Program the real world using Rust on Raspberry Pi
rust_gpizero uses the Rust programming language to do physical computing on the Raspberry Pi.
اگه شما هم با فرمت yaml مشکل دارید، اینجا میتونین yamlی که نوشتین رو وارد کنین و بهتون میگه که معبر هست یا نه
https://jsonformatter.org/yaml-validator
https://jsonformatter.org/yaml-validator
jsonformatter.org
Best YAML Validator Online
Free YAML Validator is a web based validator and lint YAML.
استفاده از either به جای پرتاب کردن exception
https://www.thoughtworks.com/insights/blog/either-data-type-alternative-throwing-exceptions
https://www.thoughtworks.com/insights/blog/either-data-type-alternative-throwing-exceptions
Thoughtworks
The Either data type as an alternative to throwing exceptions
Exceptions are a mainstay of programming languages. They are commonly used to handle anomalous or exceptional conditions that require special processing, breaking out of the normal flow of the application. Some languages, such as C++ or Java, use them liberally.…
یه فایل میخوان چک کنن که هست یا نیست.
این همه آدم تیکه کد گذاشتن آخرم با هم موافق نیستن که کدوم تو همه حالات درست کار میکنه.
https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go/22467409#22467409
این همه آدم تیکه کد گذاشتن آخرم با هم موافق نیستن که کدوم تو همه حالات درست کار میکنه.
https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go/22467409#22467409
Stack Overflow
How to check if a file exists in Go?
Go's standard library does not have a function solely intended to check if a file exists or not (like Python's os.path.exists). What is the idiomatic way to do it?
https://malltina.com/product/mlt-7391359/Goal-Zero-Yeti-500X-Portable-Power-Station%2C-505Wh-Portable-Lithium-Battery-Emergency-Power-Station%2C-Outdoor-Solar-Generator%2C-120V-AC-Pure-Sine-Wave-Inverter%2C-12V-Car-Port%2C-6mm%2C-USB-C-PD%2C-USB-A-Port
اگه پولش رو دارید، میتونین با ۲۵ ملیون این ابزار رو تهیه کنید و زمان بی برقی، بدون برق نمونین.
اگه پولش رو دارید، میتونین با ۲۵ ملیون این ابزار رو تهیه کنید و زمان بی برقی، بدون برق نمونین.
Malltina
قیمت و خرید ایستگاه برق قابل حمل Goal Zero Yeti 500X ، نیروگاه اضطراری باتری لیتیوم قابل حمل 505Wh ، ژنراتور خورشیدی در فضای باز…
خرید اینترنتی ایستگاه برق قابل حمل Goal Zero Yeti 500X ، نیروگاه اضطراری باتری لیتیوم قابل حمل 505Wh ، ژنراتور خورشیدی در فضای باز ، اینورتر موج سینوسی خالص 120 ولت AC ، پورت اتومبیل 12 ولت ، 6 میلی متر ، USB C PD ، پورت USB A برند Goal Zero از محصولات Generators…
حالا اگه js بود برای even و odd هم کتابخونه داشت، تو go برای min, max نداریم تابع =))
https://stackoverflow.com/questions/34259800/is-there-a-built-in-min-function-for-a-slice-of-int-arguments-or-a-variable-numb
https://stackoverflow.com/questions/34259800/is-there-a-built-in-min-function-for-a-slice-of-int-arguments-or-a-variable-numb
Stack Overflow
Is there a built in min function for a slice of int arguments or a variable number of int arguments in golang?
Is there a built in function that returns the minimum of a slice of int arguments:
func MinIntSlice(v []int) (m int) {
if len(v) > 0 {
m = v[0]
}
for i := 1; i < len(v); i...
func MinIntSlice(v []int) (m int) {
if len(v) > 0 {
m = v[0]
}
for i := 1; i < len(v); i...
استاندارد gnu زمان کامپایل کردن C/cpp چه تفاوتی ایجاد میکنه؟
https://stackoverflow.com/questions/10613126/what-are-the-differences-between-std-c11-and-std-gnu11
https://stackoverflow.com/questions/10613126/what-are-the-differences-between-std-c11-and-std-gnu11
Stack Overflow
What are the differences between -std=c++11 and -std=gnu++11?
What are the differences between -std=c++11 and -std=gnu++11 as compilation parameter for gcc and clang? Same question with c99 and gnu99? I know about C++ and C standards, it's the differences in ...
گزینه fastmath در gcc چه میکند
https://stackoverflow.com/a/22135559/10999348
https://stackoverflow.com/a/22135559/10999348
Stack Overflow
What does gcc's ffast-math actually do?
I understand gcc's --ffast-math flag can greatly increase speed for float ops, and goes outside of IEEE standards, but I can't seem to find information on what is really happening when it's on. Can
جاج های انلاین چطوری مموری مصرف شده توسط برنامه رو بررسی میکنند؟
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
https://www.quora.com/Computer-Programming/What-is-the-simplest-and-most-accurate-way-to-measure-the-memory-used-by-a-program-in-a-programming-contest-environment/answer/Vivek-Prakash-2
Quora
What is the simplest and most accurate way to measure the memory used by a program in a programming contest environment?
Answer: I assume you want to know how online judges determine 'Memory Limit Exceeded' for a user-supplied program.
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
First you may want to read the general architecture of online judges at
How do online judges identify time limit exceeded? I have to design…
کتابخانه psutil پایتون
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/
psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization
https://psutil.readthedocs.io/en/latest/