Skip to content
<T>alreg.com

<T>alreg.com

Code and more (code)

×

<T>alreg.com

C++

C++ 20 modules -short intro

Read more
Go / Programming

Transferring your projects to module go

Read more
Android / Programming

Custom buttons with Android

Read more
C++ / Programming

Templates: specialization

Read more
Programming / Rust

Rust Regular expressions

Read more
Go / Programming

Working with Go plugins

Read more
C# / Programming

C# anonymous class

Read more
Cloud / GCP / Go / Programming

Working with go modules and GCP

Read more
Programming / Rust

Rust assertions

Read more
C# / Programming

Func Template Delegates

Read more
  • Home
  • About me
Replace a key in a ruby hash
Programming / Ruby
  • September 24, 2020
  • / Leave a Comment on Replace a key in a ruby hash
  • 1 min
  • 3 years

Replace a key in a ruby hash

If you have a perfectly good hash, that you got from another function, but for some reason, you need to change the key(s) in it, there is a simple one liner: So, you have to […]

Read More
Multi line if condition in python
Programming / Python
  • September 6, 2020
  • / Leave a Comment on Multi line if condition in python
  • 1 min
  • 3 years

Multi line if condition in python

While the if syntax is pretty clear, you can’t really use a multi line condition in python, because of the indentation mechanism. Solution? use parenthesis. Usually frowned upon, but in this case necessary, unless you […]

Read More
The Ansible cookbook cookbook
Ansible / DevOps
  • May 12, 2020
  • / Leave a Comment on The Ansible cookbook cookbook
  • 6 min
  • 3 years

The Ansible cookbook cookbook

Instead of going through endless long guides, here is a short, yet effective to the point Ansible guide: Installation I’m assuming Linux, cause.. cause. simple Will do the trick. no need to be root. Will […]

Read More
Managing multiple clusters with kubectl
DevOps
  • February 3, 2020
  • / Leave a Comment on Managing multiple clusters with kubectl
  • 3 min
  • 3 years

Managing multiple clusters with kubectl

Installing kubectl is being done to work with a Kubernetes cluster. More often then not, you’ll have to manage multiple clusters, production and staging, multiple production of multiple staging, or your local minikube with other, […]

Read More
Ruby lambdas
Programming / Ruby
  • January 24, 2020
  • / Leave a Comment on Ruby lambdas
  • 2 min
  • 3 years

Ruby lambdas

Ruby lambdas are typical lambda: you can assign them to a variable, call them and use them as closures. To declare a lambda:option 1, using the lambda keyword: This is fairly simple, and in order […]

Read More
Creating new Spring Boot application – from scratch
Java / Programming
  • January 7, 2020
  • / Leave a Comment on Creating new Spring Boot application – from scratch
  • 5 min
  • 3 years

Creating new Spring Boot application – from scratch

I love Spring boot. I love Java, Kotlin and Gradle. In this post I’m going to use Java and Gradle – I’m not a big fan of Maven. You can just download a startup project […]

Read More
Getting socket info from a socket descriptor
C++ / Network / Programming
  • November 12, 2019
  • / Leave a Comment on Getting socket info from a socket descriptor
  • 1 min
  • 4 years

Getting socket info from a socket descriptor

This is one of the most common questions: given a socket descriptor, how can I tell the socket info (that is, IP and port) of the socket? Well, since there are two types of networks […]

Read More
C# extension methods
C# / Programming
  • October 29, 2019
  • / Leave a Comment on C# extension methods
  • 3 min
  • 4 years

C# extension methods

C# extension methods are a little bit like magic: it enables you to add functionality to an already existing object, without creating a new class. If we have a string object, that we use as […]

Read More
Changing bash prompt
Bash / Tips
  • September 7, 2019
  • / Leave a Comment on Changing bash prompt
  • 2 min
  • 4 years

Changing bash prompt

So, our bash prompt usually includes the full path. If you’re ssh-ing to a remote host, I can see some cases where you need to know all the time your current directory. But when working […]

Read More
Vagrant:tips and tricks and why you should use it
DevOps
  • March 25, 2019
  • / Leave a Comment on Vagrant:tips and tricks and why you should use it
  • 4 min
  • 4 years

Vagrant:tips and tricks and why you should use it

Virtualbox is awesome. It’s awesome because you can experiment with dummy machines, and clear them once you are done. It’s awesome because it’s cloud neutral – there is no need to select a vendor, and […]

Read More

Posts navigation

Previous 1 2 3 Next
C++ 20 modules -short intro
C++
C++ 20 modules -short intro

Latest Posts

C++ 20 modules -short intro
C++ 20 modules -short intro
July 5, 2021
Transferring your projects to module go
Transferring your projects to module go
March 23, 2021
Custom buttons with Android
Custom buttons with Android
December 25, 2020
Templates: specialization
Templates: specialization
December 14, 2020

Categories

  • Android
  • Ansible
  • Bash
  • C#
  • C++
  • Cloud
  • Database
  • DevOps
  • Express
  • GCP
  • Go
  • Java
  • JavaScript
  • MERN
  • MongoDB
  • Network
  • NodeJS
  • Programming
  • Python
  • Ruby
  • Rust
  • Tips
C++ 20 modules -short intro
Transferring your projects to module go
Custom buttons with Android
Templates: specialization
Rust Regular expressions
Working with Go plugins
C# anonymous class

<T>alreg.com

Proudly powered by WordPress | Theme : New Blog a free WordPress theme : by : Postmagthemes