Size: a a a

2017 December 29
4gophers
Creating Microservices in Golang - part 5 - Event brokering with NATs  
https://t.co/1K7yjI2iMB

In the previous part in this series, we touched upon user authentication and JWT. In this episode, we'll take a quick look at the go-micro's broker functionality and even brokering.
#golang #eventbroker #nat
источник
4gophers
[Перевод] Обзор реализаций округления в Go
https://habrahabr.ru/post/345784/?utm_campaign=345784

Округление (round) в Go нелегко сделать правильно. Казалось бы, берём float64, отбрасываем дробную часть и прибавляем единицу к получившемуся значению, если дробная часть была >= 0,5. Есть и другие варианты, доступные при поиске “golang round” в Google, многие из которых также можно найти в закрытом тикете на GitHub, где Round() отказались включать в стандартный пакет math. В этой статье я хотел бы изучить эти и другие реализации и проверить их на корректность. Мы увидим, что почти во всех есть ошибки, препятствующие их использованию.
#golang #round
источник
2017 December 30
4gophers
Parsing mathematical equation to generate computation graphs
https://t.co/wBLGC36uoI

In a previous article, I described an implementation of an RNN from scratch in go. The target is to use the RNN as a processing unit. The ultimate goal is to create a portable tool cross platform and able to grab and process data where they are. I have many applications in mind such as finding the root-cause of an incident or managing the capacity of an infrastructure.
#golang #math
источник
4gophers
Mutable Strings in Golang  
https://t.co/713Ju7mrpA

Golang strings are immutable. In general, immutable data is simpler to reason about, but it also means your program must allocate more memory to “change” that data. Sometimes, your program can’t afford that luxury. For example, there might not be any more memory to allocate. Another reason: you don’t want to create more work for the garbage collector.
#golang #strings
источник
4gophers
Developing a Twitter botnet based on Markov chains in Go  
https://t.co/X3EMXFDP3I

The main goal of this article is to explain how to develop a twitter botnet with autonomous bots replying tweets with text generated based on probabilities in Markov chains. As this is a project to learn, we have made everything from scratch.
#golang #markov
источник
4gophers
Tensorflow and Go - GopherAcademy Advent Day 28  
https://t.co/6MESaZOZtT

This year I helped organize several online security challenges, one of which is Blacklight. Among the things I was asked to do, was creating a POC for a specific challenge, to prove that it’s possible to solve in a reasonable time. That challenge was one I face occasionally in my everyday life, not always with success: break a captcha.
#golang #tensorflow
источник
4gophers
Extending Python 3 in Go  
https://t.co/oCIutkHAHW

Extending Python has been a core feature of the platform for decades, the Python runtime provides a “C API”, which is a set of headers and core types for writing extensions in C and compiling them into Python modules.
#golang #python
источник
4gophers
The Go type system for newcomers
https://t.co/wRTP4JoNjc

It is real struggle to work with a new language, especially if the type doesn’t resemble what you have previously seen. I have been there with Go and lost my interest in the language when it first came out due to the reason I was pretending it is something I already knew.
#golang #types
источник
2017 December 31
4gophers
Simple SSH Harvester in Go  
https://t.co/h9WO00BGRg

During my Go SSH adventures at Hacking with Go I wanted to write a simple SSH harvester. As usual, the tool turned out to be much larger than I thought.
#golang #ssh
источник
4gophers
The little book of semaphores ported to go
https://t.co/n6SnCqU0XN

Работа с мьютексами, каналами и прочей параллельщиной
#golang  #semaphores
источник
2018 January 01
4gophers
Simple messaging framework using Go TCP server and Kafka : Advent Day 31  
https://t.co/5ED9kqHjZE

I needed to create a simple framework to provide my endpoint devices ( doesn’t matter which platform they run on ) the option to send and receive messages from my backend.
#golang #kafka
источник
2018 January 03
4gophers
К вопросу о принципах работы асинхронных решений
https://habrahabr.ru/post/345964/?utm_campaign=345964
источник
4gophers
How to Rate Limit HTTP Requests  
https://t.co/BK0AUTfAGl

If you're running a HTTP server and want to rate limit user requests, the go-to package to use is probably Tollbooth by Didip Kerabat. It's well maintained, has a good range of features and a clean and clear API.

#golang #http #api
источник
4gophers
5 Keys to Creating a killer CLI in Golang  
https://t.co/SNZvJ3cDeU

We're having a renaissance of CLIs - every programming language from Node.js to Go to less fashionable ones like .NET all have CLIs and developers love them. You should love them too and make sure your next CLI is a killer.
#golang #cli
источник
4gophers
Восстанавливаем данные из CockroachDB
https://habrahabr.ru/post/345990/

Восстановить данные из cockroachdb легко — просто накатите всё из бекапа. Как это не делали бэкапы? Для базы, у которой версия 1.0 вышла всего полгода назад? Что ж, не отчаивайтесь, скорее всего данные можно восстановить. Я буду рассказывать про то, как я восстанавливал базу данных для своего проекта потешной социальной сети вбамбуке и стримил сей процесс на ютьюбе.
#golang #CockroachDB
источник
2018 January 07
4gophers
Sending files via gRPC  
https://t.co/DogYtdlgdT

Hey, some time ago I got curious about whether gRPC would be something suitable for sending files over the wire.
One of its goodness is the native support of streams, so, why wouldn’t it be?

#golang #grpc
источник
4gophers
Autocomplete engine in Go: let's build it  
https://t.co/kJbOccN62C

Some time ago I worked on a small autocomplete web service for fun and curiosity. Part of it consists pretty much of what I’m going to talk about in this post.
#golang
источник
4gophers
Divide, compress and conquer: Building an Earth data server in Go (Part 2)  
https://t.co/kXN3yxHhpF

This is the second article in a series of three. Here, we continue working with the NASA Blue Marble image proposed in the previous article, focusing on the effect of compression. The third article will use the concepts developed previously to create an Earth data server using the Google Cloud Platform.
#golang #compress
источник
4gophers
Basic Role-Based HTTP Authorization in Go with Casbin  
https://t.co/bJIHc98rn5

Authentication and Authorization are essential parts of any secured Web Application. I recently finished writing my first serious web application in Go and this is one part in a series of posts of things about what I learned during that experience.
#golang #rbac
источник
4gophers
Cast: Dep, Cross-platform, and Getting Started with Carolyn Van Slyck
https://t.co/mcQ3EPunlX

Carolyn Van Slyck joined the show to talk about dependency management, upping your cross-platform game, getting into Go, and other interesting Go projects and news.
#gotime #golang
источник