teleren/devto huggingface dataset:
Olric v0.2.0 is out: Distributed cache and in-memory key/value data store. Embeddable or language independent service.
Tags: go, database, distributedsystems, showdev
Published: 2020-05-29 08:28:45

Hi,

I have been developing a distributed cache software for a while. It's called Olric. If you are interested in, this is the GitHub link: [https://github.com/buraksezer/olric](https://github.com/buraksezer/olric)

Some features:

* Designed to share some transient, approximate, fast-changing data between servers,
* Embeddable but can be used as a language-independent service with *olricd*,
* Supports different eviction algorithms,
* Fast binary protocol,
* Highly available and horizontally scalable,
* Provides best-effort consistency guarantees without being a complete CP (indeed PA/EC) solution,
* Supports replication by default (with sync and async options),
* Quorum-based voting for replica control (Read/Write quorums),
* Supports atomic operations,
* Supports [distributed queries](#query) on keys,
* Provides a plugin interface for service discovery daemons,
* Provides a locking primitive which inspired by [SETNX of Redis](https://redis.io/commands/setnx#design-pattern-locking-with-codesetnxcode).
VanillaJS Customizable SelectBoxes
Tags: vanillajs, javascript, selectboxes, dropdowns
Published: 2020-05-29 08:22:22

Hey Guys,

I always had problems when it comes to styling native elements, but mainly SelectBoxes.

So i made a class that replaces native select elements with fully customizable dropdowns & searchbox.

Even though this replaces native select options, you can still use Form Submit, Onchange Events and Attributes as you would with normal usage.


Source: https://github.com/BMSVieira/BVSelect-VanillaJS
Demo : https://bmsvieira.github.io/BVSelect-VanillaJS/

Give it a try!
Need help with organizing CloudFormation templates and integration with CI/CD
Tags: discuss, help, devops, infrastructure
Published: 2020-05-29 08:20:42

Hi guys,

I’m working on complex infrastructure setup and I need your opinion on how you organize the **CloudFormation templates and integration with CI/CD.**

The project is for an insurance company. We’ve set up the infrastructure on AWS. Architecture is rather complex, using VPC, EC2, LBs, EKS, RDS, Lambdas etc. services all inter-connected.

**Current setup:**
- The entire infrastructure is described with CloudFormation templates
- Templates are stored and versioned on GitHub, each piece of infrastructure (usually one CloudFormation template) has its own git repository
- We have a set of bash scripts that we use to apply templates using CloudFormation CLI
- Bash scripts also use configuration files (configs for each environment), also stored in git in a separate repository, which are used as input parameters for different CFN templates
- Scripts are currently executed with Jenkins, with a separate job for each piece of infrastructure

**The problem:**
- Whenever I need to add a new piece of infrastructure I have to create a new git repo, update the config file, configure a new job in Jenkins
- Maintaining Jenkins is yet another problem
- Sharing and distributing among multiple teams and projects is hard, ending up with me being the one who initially sets up and maintains the infrastructure in all projects
- The CI/CD process is not easy to distribute within and out of my team, because of too many implementation details
- With the number of CFN templates, it’s becoming a mess

Recreating the infrastructure in one transaction would save a lot of time. For this, I was looking at using CloudFormation nested stacks. Each nested stack would be one piece of my infrastructure. 

If you’ve had the same or similar problem, how did you managed to resolve it? What tools and structure are you currently using?
How to create a bicycle builder website
Tags: help
Published: 2020-05-29 08:11:33

Hello,
I am looking, interested in creating a bicycle builder website similar to that of bitmoji or facebook avatars but with real picture parts.

I envision it you would pick the following from of list of picture available on the website

pick the frame 
pick the tires
pick the handle bars
pick the seat
pick the pedals

Each step of the way it would be added on the bike similar to bitmoji.

Any advice on how this could be done. Existing tool, libraries platforms or websites that exist similar to that?

A bonus would be to be able to 3d rotate the final picture at the end.
The Ultimate TYPO3 Security Guide — Step by Step (2020)
Published: 2020-05-29 07:48:51

It feels proud that our very own TYPO3 CMS is one of the world’s most secure OpenSource CMS!

But, as we know with increasing technology and advancements, website security is a never-ending process. Hence one needs to keep improving and updating the TYPO3 security measures on a regular basis. Here, I would like to share 30 Ultimate Guides to improve TYPO3 security.

Explore the ultimate TYPO3 Security Guide that covers the following interesting tips

TYPO3 is More Secure than Other OpenSource Projects
Why TYPO3 Security Matters?
People Are Spending More Money on “Security”
Stay Connected with Dedicated TYPO3 Security Team
TYPO3 Core vs TYPO3 Extensions: Security Loop-wholes
What Types of TYPO3 Security Threats?
Secure Your All Passwords
Backup Backup Backup!
Keep Up-to-date TYPO3 Core Updates
Keep Up-to-date & Remove Unused TYPO3 Extensions
Secure Your TYPO3 and Server Architecture
TYPO3 Security Package
Check Code Quality of Your TYPO3 Extensions
SSL/HTTPS: Secure You TYPO3 Website
TYPO3 Security Reports
Check Permissions of Files/Directories
Disable Your TYPO3 Install Tool
Check Server Environment for TYPO3
Disable Directory Indexing
Allows/Disallow File Extension Handling
Secure Your Database
Improve Your PHP Security Configuration
TYPO3 Encryption Key
Secure Your TYPO3 Cookie
Disable TYPO3 Errors
TYPO3 Access only to Developers & Backend Users
Check Reports and Logs
Cross-Verify Check TYPO3 Checksum
Secure Your Web Servers
Never, Ever Use FTP
Allowed Only Your Domain to TYPO3
Enable Email Notification for Login Attempt
TYPO3 Access Users, Roles & Privileges
Write Secure TypoScript code
Strictly Follow TYPO3 Coding Standards Guidelines
Helpful TYPO3 Security Extensions
Watch Session on TYPO3 Security

Read the complete blog in detail at — https://t3terminal.com/blog/typo3-security/
System Design in Software Development
Published: 2020-05-29 07:47:57

What is System Design: Software system design is a process to convert user whole requirements into some appropriate form, which helps the software developer in coding and implementation. It is the process of designing the elements of a system such as the architecture, modules, and components, the different interfaces of those components, and the data that goes through that system.

Some of the major tasks should be performed during the system design process :

1.Requirement analysis

2.Initialize design definition

3.Document the design definition strategy

4.Plan and Identify the technologies

5.Database Design

6.Load Balancing

7.Scaling

8.Sharding

9.Caching

9.Indexing

etc
I just launch my first product ! 🎉
Tags: product, startup, project
Published: 2020-05-29 07:47:19

I launched my first product yesterday!

As part of my second year of my master degree (Head of Digital Strategy and Innovations), I have to create a product from A to Z in solo. I have the great pleasure to present Koala!

I have decided to create a protective case for computers on which you can write and erase ad infinitum! Conceived and designed in France, these shells are made from recycled plastic bottles in Rennes (a small town in France). In addition to being environmentally friendly, part of the revenue that will be generated in the future will be donated to the Queensland Koala Crusaders association to help koalas thrive again in this part of Australia.

For the moment, the site is in French, but I think the translation from Google Translation is quite accurate. Feel free to pre-register, it doesn't commit you to anything and doesn't oblige you to buy a product (they are not designed yet it's a waiting list to see how many people would be interested in the product).

I will also write a series of articles about how I created this product from idealization to MVP.

You can see the site at this address: https://meetkoala.netlify.app/
And follow the Twitter account: https://twitter.com/koala_meet
And upvote us on ProductHunt : https://www.producthunt.com/posts/koala-3
Stackoverflow survey 2020 is out! Here is a summary
Tags: career, showdev
Published: 2020-05-29 07:20:08

As usual, StackOverflow conducted a survey on the developers over the internet. It is the 10th survey of StackOverflow. If you don't have the time to see the whole (report)[https://insights.stackoverflow.com/survey/2020], here is a quick summary for you.

- Among all developers, 55% are back-end developers. 
- About 78% of people do coding as a hobby.

- 30% of people have programming experience for about 5 to 9 years.
- about 40% of people have been coding professionally.
- 19.2% of developers wrote their first line of code when they were 14 or 15
- The majority of developers(26.5%) are between the age of 25 to 29.

- A Bachelor's degree is obtained by about 46.2% of developers.
- 26.2% of developers think that formal education is fairly important in development career.

- 11.8% of developers in the US is female

- JavaScript holds its position for eight years as the most used language by 67.% of developers.
- The most used web framework is jQuery(43.3%)
- The most used database is MySQL(55.6%)
- The most beloved platform for developing is Linux.

- The most
    - Loved programming language: Rust(86.1%)
    - Dreaded programming language: VBA(80.4%)
    - Wanted programming language: Python(30%)

- 45.8% of developers use Windows as their primary OS.
- Github is the most used (82.8%) collaboration tool

- Perl developers get the highest salary per year($76k)
- About 71% of developers are employed full-time. 12% are students
- About 57.6% of developers are looking for a job indirectly

- About 37% of developers learn a new technology every few months


I hope that was helpful. Don't forget to take a close look at the [full servey](https://insights.stackoverflow.com/survey/2020)
Should I have my backend and my frontend in the same repo ?
Tags: discuss, webdev, github
Published: 2020-05-29 07:18:36

Hi everyone,

I used to develop my app with express and ejs. With this configuration, I don’t really have a front/back-end separation.

I recently started learning React and with it the separation of the backend with my API, database, ... and the front-end with my react app.

So, I was wondering, do I need to separate my backend repo and my frontend repo ? It seems kinda strange to do so because, most of the time, a new feature on my frontend means new changes on the backend.

What should I do to *practically* put both on the same repo ? Having tow sub folders ? And what about Heroku ? I can’t configure it to build a subfolder app.
 
How are you managing that in your projects ?
Dazzling Signs That Show Your Business Need A New Website

Tags: business, webdev, development
Published: 2020-05-29 07:04:04

Websites are the heart business. It is the first impression of your business on the web and all about the branding and services it offers. Hence, your website must be responsive and serve the purpose that it was built for. Consider that, you’re an average smartphone user and you replace it every few years. Isn’t it amazing how quickly they can become obsolete? The same can be said about most websites. For the success of your business, it is necessary to keep your website updated and ensure that it still easily delivers the message it was built for the success of your business. Our websites should not be based on our preferences, but instead those of our target audiences and industry best practices. There are a lot of points that show your company needs a new website. It is not only about the look but also about the performance of your website.

Below, we list a few points that can help you navigate whether or not you’re in need of a new website.

**Signs That Show You Need A New Website-**
*1. Slow Page Loading-*
Everyone expects to get faster results when they search for it. And hence faster is better. It has been analyzed that, 47% of the visitors/consumers expect a web page to load in 2 seconds whereas 40% of people close a website that takes more than 3 seconds to load. Hence if your website takes more than 3 seconds, there is a huge loss in traffic coming to your website. There are some prominent reasons of a slow load times- 

Large, uncompressed images
Too many file requests (CSS / JS / images / etc)
Poor server response times
Code bloat
No browser caching
An outdated CMS 
Hence, you must analyze the above issues that may slow loading of pages. You can analyze the page load time by site speed report in google analytics. You can also know the effective ways to speed up your website at- How You Can Speed Up Your Website?

Know more at- [https://solaceinfotech.com/blog/dazzling-signs-that-show-your-business-need-a-new-website/]
Is open-sourcing server-side code a security threat? 
Tags: security, opensource, discuss
Published: 2020-05-29 06:57:20

It might be a threat to gaining monopoly and riches, sure. But what about server stability and user data's security? 

I am thinking that letting people know server structure makes it more prone to SQL / NoSQL / GraphQL injection, for instance. Also, knowing where and how you host makes it prone to DoS.
Vanilla JavaScript get Timestamp
Tags: javascript
Published: 2020-05-29 06:37:24

Today I needed to get a timestamp to include in a unique file that I'm generating with `Node.js`.

It's one of these things that after 17 years, I still google to this day... Call me stupid or just ignorant in not saving it in my brain.

## Getting a Timestamp in JavaScript

```js
Date.now();
```

Wow, That was the one thing I can't get in my head?!
Yes. There are other ways of doing it, so here are some alternatives that do the same:

```js
new Date().getTime();
new Date().valueOf();
```

All three methods will get a millisecond timestamp; we can convert it to seconds by doing so:

```js
Math.floor(Date.now() / 1000);
```

Feel free to have a look and play on this Codepen.

<p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="js,result" data-user="rebelchris" data-slug-hash="OJyeOpp" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Vanilla JavaScript get Timestamp">
  <span>See the Pen <a href="https://codepen.io/rebelchris/pen/OJyeOpp">
  Vanilla JavaScript get Timestamp</a> by Chris Bongers (<a href="https://codepen.io/rebelchris">@rebelchris</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
TWD S09-10 Links
Published: 2020-05-29 06:24:08

### Season 9
Episode 1 : &nbsp; https://dropapk.to/ok7ypa2vqgj0
Episode 2 : &nbsp; https://dropapk.to/mpk1t2q7ll4t
Episode 3 : &nbsp; https://dropapk.to/3jhkmiskd2pv
Episode 4 : &nbsp; https://dropapk.to/90aznkbv0vmk
Episode 5 : &nbsp; https://dropapk.to/yugo06dbu3ay
Episode 6 : &nbsp; https://dropapk.to/ejmlpksl6s13
Episode 7 : &nbsp; https://dropapk.to/dwvd37vm8jud
Episode 8 : &nbsp; https://dropapk.to/lbkdfkiyp20q
Episode 9 : &nbsp; https://dropapk.to/1ugbak5z0orv
Episode 10 : &nbsp; https://dropapk.to/4gbt4i3uusgx
Episode 11 : &nbsp; https://dropapk.to/c1kzwblmpsz7
Episode 12 : &nbsp; https://dropapk.to/3ya0lucfvjq7
Episode 13 : &nbsp; https://dropapk.to/iinypnwp8dcv
Episode 14 : &nbsp; https://dropapk.to/l3zkl9jxpxvr
Episode 15 : &nbsp; https://dropapk.to/b8zqagukznfj
Episode 16 : &nbsp; https://dropapk.to/09ig1rjc7kh6

### Season 10
Episode 1 : &nbsp; https://dropapk.to/u7e660jmbuas
Episode 2 : &nbsp; https://dropapk.to/vbbhutaf0ehx
Episode 3 : &nbsp; https://dropapk.to/lkfyizrlzqhq
Episode 4 : &nbsp; https://dropapk.to/rvv8bm61tu2d
Episode 5 : &nbsp; https://dropapk.to/asmqsjot9r0i
Episode 6 : &nbsp; https://dropapk.to/015bfo69v5fe
Episode 7 : &nbsp; https://dropapk.to/o52a7xfas83n
Episode 8 : &nbsp; https://dropapk.to/9wc5f0w0sggb
Episode 9 : &nbsp; https://dropapk.to/jwwgood0otif
Episode 10 : &nbsp; https://dropapk.to/as5m6c9glftg
Episode 11 : &nbsp; https://dropapk.to/loeh0xkl65u5
Episode 12 : &nbsp; https://dropapk.to/gwoahoppvciq
Episode 13 : &nbsp; https://dropapk.to/c27f7xwtd0y6
Episode 14 : &nbsp; https://dropapk.to/yz9gehlut2jw
Episode 15 : &nbsp; https://dropapk.to/aywhu8hduwb1
How was DockerCon 2020
Tags: docker, dockercon, dockerconjobs
Published: 2020-05-29 06:12:56

Hello dev people,

Dockercon 2020 was truly a huge success to me, with a great team and a well organized plan behind the scene. I assume that the organisation was not very easy, but the team nailed it. Since this year's dockercon was made online, all I had to do to attend was to register and that's it. It was fairly easy for me to switch between the different talks from time to time. I imagine it would have been a costly task for me to join this conference physically, but since it was made virtual, I could easily join it and give my personal opinions on how it all went.

The fact that all these developers and docker captains, from different regions of the globe, were sharing their knowledge about particular topics in the docker world, is truly fascinating to me.

Some of the talks that really intrigued me:
- [How to get started with Docker](https://docker.events.cube365.net/docker/dockercon/content/Videos/hgMFTyX5kYKmTPWZo)
- [Best Practices for Compose-managed Python Applications](https://docker.events.cube365.net/docker/dockercon/content/Videos/eWWPtj5dmHAmoYypc)
- [Securing Your Containerized Applications with NGINX](https://docker.events.cube365.net/docker/dockercon/content/Videos/oTctQReJCRWkfXfMy)
- [You Want To Kubernetes? You MUST Know Docker!](https://docker.events.cube365.net/docker/dockercon/content/Videos/kmhESLz8DvkkpgEqs)
- [Delivering Desktop Apps in Containers](https://docker.events.cube365.net/docker/dockercon/content/Videos/wLMYLQAYj7mvHrvZe)
- [Your Container has Vulnerabilities. Now What?](https://docker.events.cube365.net/docker/dockercon/content/Videos/GZpzJAapdrSXohzNz)
- [Hardening Docker daemon with Rootless Mode](https://docker.events.cube365.net/docker/dockercon/content/Videos/wHjxizoWgFgCYu6aF)

Although I could not attend the conference till the end, I will make it a must to watch all talks on YouTube sooner or later. Personally, I think there should be more conferences like this one since it gives people the opportunity to start coding and for those who already code, it gives them the chance of getting hands dirty with live DEVs sessions and at the same time, learn the best practices of their technology. We all know how documentation can become tedious at some point, but watching a conference can wipe out the tedious part of it.

I was, simultaneously, following the hashtags on social media platforms and I can say that there was a really big crowd of developers watching 
the conference.

Some of the hashtags you can check out:
```
#dockercon
#dockerconjobs
#dockerselfie
```

Having said all this, let me point out that these were all opinions from my point of view on DockerCon 2020.

Cheers!
Understanding Istio: part 4 – Traffic management (& Canary Release)
Tags: kubernetes, devops, docker, beginners
Published: 2020-05-29 06:06:09

---
title: Understanding Istio: part 4 – Traffic management (& Canary Release)
published: true
description: Serie of sketchnotes about Istio. Explaining in a visual way Istio principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Istio in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/cqys4dujvdrdc77uw5j9.jpg
---

Understanding Cloud technologies, like Kubernetes, can be difficult or time-consuming. In order to spread knowledges about it, I started to create [sketchnotes about Kubernetes](https://dev.to/aurelievache/kubernetes-sketchnotes-pods-4ib0) and know it's time to talk about a perfect companion of Kubernetes, a service mesh, Istio.

We continue our new serie of Sketchnotes about Istio, let's talk about Traffic management & one of deployment architecture: Canary Release.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/cqys4dujvdrdc77uw5j9.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7x9isf8num7r25jb92ec.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/m9knf7l1v26qsq526i8x.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5d8ww2wi2wuk8l4hwm8i.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/vc04enyv80z3vgdgwm8s.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0wxfiz7lz28vi0k5ca9m.jpg)

If you are interested, I published a book with all the sketchnotes on Istio (and new ones!): ["Understanding Istio in a visual way"](https://gumroad.com/aurelievache#vJYhM).

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).
Quick Tip – How to set the visibility of a button
Tags: android, todayilearned, java
Published: 2020-05-29 07:15:55

---
title: Quick Tip – How to set the visibility of a button
published: true
date: 2020-05-29 06:00:00 UTC
tags: Android,TodayIlearned,Java
canonical_url: https://10xlearner.com/2020/05/29/quick-tip-how-to-set-the-visibility-of-a-button/
---

Hello ! I’m Xavier Jouvenot and in this small post, I am going to explain how to set the visibility of a button.

_Self promotion_: You can find other articles on Android development on my [website](www.10xlearner.com) 😉

## Statically

To specify the visibility of a `Button`, there are several solutions and the first one we are going to specify a default visibility for a `Button`.

To do so, we are going to modify the `Button` XML definition, and add one attribute to it.This attribute is `android:visibility` and tell if you want the button to be visible are not.By default, this attribute is set to [visible](https://developer.android.com/reference/android/view/View#VISIBLE).

Here is how such `Button` XML definition looks like:

```
<Button
    <!--Some attributes-->

    android:visibility=invisible

    <!--Some other attributes --> />
```

## Dynamically

Specifying the attribute in the XML is great!But if you want to modify the visibility of a `EditText` while the program is running, then, you must use some Java code and the method `setVisibility`.Here is how it looks like:

```
Button button = findViewById(R.id.buttonId);
button.setVisibility(View.INVISIBLE);
```

* * *

Thank you all for reading this article,And until my next article, have a splendid day 😉

## Interesting links

- [setVisibility documentation](https://developer.android.com/reference/android/view/View#setVisibility(int))
- [Visible variable documentation](https://developer.android.com/reference/android/view/View#VISIBLE)
- [Invisible variable documentation](https://developer.android.com/reference/android/view/View#INVISIBLE)
- [10xlearner website](www.10xlearner.com)