Forwarded from Pactus Announcements
🚨 Exciting Announcement, Pactus Community! 🎉
We are thrilled to announce that we are extending our Testnet-2 campaign and onboarding 500 more validators. That's right, 500 additional spots are now open for enthusiasts to join our growing network!
This is an incredible opportunity to be part of building the future of blockchain. As a Pactus validator, you'll contribute meaningfully to decentralizing the network and securing transactions.
As thanks for your participation, you will receive PAC coins as your rewards when Mainnet launches! Here is how the rewards work:
+ Based on the total number of staking coins you have, up to 100PAC
+ Your rewards will be equal to [Your Total Stakes] / 10
+ Please note that only stakes from the first validator will be counted.
To join as a Pactus validator, simply follow these steps:
+ Download latest release: https://pactus.org/download/
+ Get your initial staking in testnet-faucet channel in discord: https://discord.gg/pactus-795592769300987944
We are thrilled to announce that we are extending our Testnet-2 campaign and onboarding 500 more validators. That's right, 500 additional spots are now open for enthusiasts to join our growing network!
This is an incredible opportunity to be part of building the future of blockchain. As a Pactus validator, you'll contribute meaningfully to decentralizing the network and securing transactions.
As thanks for your participation, you will receive PAC coins as your rewards when Mainnet launches! Here is how the rewards work:
+ Based on the total number of staking coins you have, up to 100PAC
+ Your rewards will be equal to [Your Total Stakes] / 10
+ Please note that only stakes from the first validator will be counted.
To join as a Pactus validator, simply follow these steps:
+ Download latest release: https://pactus.org/download/
+ Get your initial staking in testnet-faucet channel in discord: https://discord.gg/pactus-795592769300987944
🕊2💊2
سلام دوستان
موقعیت شغلی بکند و گولنگ
نام شرکت: اوزون (زیر مجموعه گروه صنعتی گلرنگ)
نوع حضور : هیبرید
موقعیت شرکت: خیابان وزرا
عنوان شغلی: میدلول یا سنیور گولنگ
حداقل سابقه کار: ۲ سال
خیلی بهتر هست اگر
تجربه کار با rabbitMQ یا kafka
تجربه کار با elasticsearch
تجربه کار با redis
را داشته باشند
https://www.linkedin.com/posts/ozonesocial_cv-developer-aepaewaeaaewaeu-activity-7119217862568722433-LpCK?utm_source=share&utm_medium=member_desktop
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
موقعیت شغلی بکند و گولنگ
نام شرکت: اوزون (زیر مجموعه گروه صنعتی گلرنگ)
نوع حضور : هیبرید
موقعیت شرکت: خیابان وزرا
عنوان شغلی: میدلول یا سنیور گولنگ
حداقل سابقه کار: ۲ سال
خیلی بهتر هست اگر
تجربه کار با rabbitMQ یا kafka
تجربه کار با elasticsearch
تجربه کار با redis
را داشته باشند
https://www.linkedin.com/posts/ozonesocial_cv-developer-aepaewaeaaewaeu-activity-7119217862568722433-LpCK?utm_source=share&utm_medium=member_desktop
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍5🍾4
📥 دریافت شده از: Sahn Lam
-------------
♻️API vs SDK: Key Differences
APIs (Application Programming Interfaces) and SDKs (Software Development Kits) are essential tools for software development, but they serve different purposes:
API:
An API is a set of rules and protocols that allows different software applications and services to communicate and share data.
1. Defines a standard interface for components to interact.
2. Allows integration between software written in different languages and frameworks.
3. Typically provides endpoints for requesting and serving data..
SDK:
An SDK is a comprehensive package of tools, libraries, sample code, and documentation to simplify building apps on a specific platform, framework, or hardware.
1. Provides higher-level abstractions to ease development for a target platform.
2. Designed to integrate seamlessly with the underlying platform, ensuring compatibility and optimal performance.
3. Grants access to platform-specific capabilities and features that may be complex to implement from scratch.
The choice between APIs and SDKs depends on the project's goals and technical needs. APIs offer platform-agnostic interoperability, while SDKs provide convenient access to proprietary platform functionality.
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
-------------
♻️API vs SDK: Key Differences
APIs (Application Programming Interfaces) and SDKs (Software Development Kits) are essential tools for software development, but they serve different purposes:
API:
An API is a set of rules and protocols that allows different software applications and services to communicate and share data.
1. Defines a standard interface for components to interact.
2. Allows integration between software written in different languages and frameworks.
3. Typically provides endpoints for requesting and serving data..
SDK:
An SDK is a comprehensive package of tools, libraries, sample code, and documentation to simplify building apps on a specific platform, framework, or hardware.
1. Provides higher-level abstractions to ease development for a target platform.
2. Designed to integrate seamlessly with the underlying platform, ensuring compatibility and optimal performance.
3. Grants access to platform-specific capabilities and features that may be complex to implement from scratch.
The choice between APIs and SDKs depends on the project's goals and technical needs. APIs offer platform-agnostic interoperability, while SDKs provide convenient access to proprietary platform functionality.
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍4
🍾4👍1
🟢7 Tips To Write Clean And Better Code in 2023
https://www.geeksforgeeks.org/7-tips-to-write-clean-and-better-code-in-2020/
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
https://www.geeksforgeeks.org/7-tips-to-write-clean-and-better-code-in-2020/
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔥2
✅ Pitfalls: avoid unintentional recursion or other issues that could lead to stack overflow json marshal or unmarshal
code:
output:
MarshalJSON person 2 this creates a recursive loop, causing the stack to grow until it exceeds the limit, resulting in a stack overflow error.
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
code:
package main
import (
"encoding/json"
"fmt"
"log"
)
type Person struct {
Name string `json:"name"`
Age int `json:"age"`
}
type Person2 struct {
Name string `json:"name"`
Age int `json:"age"`
}
func (p *Person) MarshalJSON() ([]byte, error) {
var person Person
person = *p
return json.Marshal(person)
}
func (p *Person2) MarshalJSON() ([]byte, error) {
return json.Marshal(p)
}
func main() {
person := new(Person)
person.Name = "Javad"
person.Age = 29
b, err := person.MarshalJSON()
if err != nil {
log.Fatal(err)
}
fmt.Println(string(b))
person2 := new(Person2)
person2.Name = "Javad"
person2.Age = 29
b, err = person2.MarshalJSON()
if err != nil {
log.Fatal(err)
}
fmt.Println(string(b))
}
output:
{"name":"Javad","age":29}
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020160390 stack=[0xc020160000, 0xc040160000]
fatal error: stack overflow
MarshalJSON person 2 this creates a recursive loop, causing the stack to grow until it exceeds the limit, resulting in a stack overflow error.
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍4💊3
Gopher Academy
✅ Pitfalls: avoid unintentional recursion or other issues that could lead to stack overflow json marshal or unmarshal code: package main import ( "encoding/json" "fmt" "log" ) type Person struct { Name string `json:"name"` Age int `json:"age"`…
What is the maximum stack size for Goroutine?
While the minimum stack size is defined as 2048 bytes, the Go runtime does also not allow goroutines to exceed a maximum stack size; this maximum depends on the architecture and is 1 GB for 64-bit and 250MB for 32-bit systems.
جزئیات مقاله👇♻️
🔷️ https://tpaschalis.me/goroutines-size/
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
While the minimum stack size is defined as 2048 bytes, the Go runtime does also not allow goroutines to exceed a maximum stack size; this maximum depends on the architecture and is 1 GB for 64-bit and 250MB for 32-bit systems.
جزئیات مقاله👇♻️
🔷️ https://tpaschalis.me/goroutines-size/
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍6🍾1
🔵 فلسفه یونیکس میگه:
🟢 «برنامههایی بنویسید که یک کار کوچیک رو به خوبی انجام بدن و باهمدیگه ترکیب بشن.»
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🟢 «برنامههایی بنویسید که یک کار کوچیک رو به خوبی انجام بدن و باهمدیگه ترکیب بشن.»
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍20🔥4❤2🍾2🕊1
یه برنامه خیلی سبک برای اینکه لاگهای کانتینرهاتون رو بصورت interactive توی browser ببینید ( به جای اینکه توی ترمینال docker log بزنید)
#pythony
https://dozzle.dev
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
#pythony
https://dozzle.dev
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
👍6🔥2
✅ Go 1.21.4 and 1.20.11 are released!
🗣 Announcement: https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY
🗃 Download: go.dev/dl/#go1.21.4
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
🔐 Security: Includes security fixes for path/filepath (CVE-2023-45283, CVE-2023-45284)
🗣 Announcement: https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY
🗃 Download: go.dev/dl/#go1.21.4
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
💊4
✅ مشارکت و انجام issue به همراه bounty
در زیر تسکی داریم خیلی مهم هستش و همچنین برای شروع مشارکت در پروژه آزاد مناسب می باشد.
https://github.com/pactus-project/pactus/issues/805
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
در زیر تسکی داریم خیلی مهم هستش و همچنین برای شروع مشارکت در پروژه آزاد مناسب می باشد.
https://github.com/pactus-project/pactus/issues/805
توضیحات درخصوص تسک:
ما از کاربران گزارشهای زیادی دریافت کردهایم که نمیتوانند نود خود را اجرا کنند به دلیل خطای 'منبع به طور موقت در دسترس نیست'. این مشکل زمانی پیش میآید که در حال حاضر یک نود در پسزمینه در حال اجرا است و کاربران تلاش میکنند تا یک نود جدید را شروع کنند. ما باید یک راه برای شناسایی اینکه یک نمونه از Pactus در حال اجرا است را پیدا کنیم. اگر چنین است، باید کاربر را قبل از تلاش برای شروع یک نود جدید مطلع کنیم تا از این خطا جلوگیری شود.
➖➖➖➖➖➖➖➖
🕊 @gopher_academy
💊4🔥3👍1
1699469074421.pdf
1 MB
👍6❤1🕊1