teleren/devto huggingface dataset:
What did I learn this week?
Published: 2021-03-21 05:35:24

This week has been the most tedious one as compared to the the whole lockdown or say whole year's  week. **The GeekWeek local** conducted by the **Geek for Geeks chapter** in **VIT Bhopal University**. Participating in it has proved to be one of the good decision ever made by me. From learning git controls to learning self made voice assistants I guess I have made a basic or beginner level knowledge in some projects atleast.
My experience in GeeksforGeeks #geekweeklocal
Published: 2021-03-21 05:32:40

The GeeksforGeeks VIT Bhopal Community had arranged a marvelous week-long competition where the Community would set some daily tasks and challenges and everyone had to complete them within a time limit of 24 hours. All the students of VIT Bhopal were eligible to take part in this event. The participants had to form a guild and there would be a guild leader representing the guild. Throughout the span of a week -starting from 16th March till 21st March- a healthy competition had ensued between the guilds and a magnanimous team spirit had built between the members. I belonged to the BugBusters guild and we, as its members, had a tremendous amount of enjoyment, amusement, and excitement throughout the week solving all the tasks. Starting from Day 1, we learned how to use GitHub and exercised competitive programming. Day 2 saw us delving deeper into the technical kinds of stuff and examining them properly. Day 3 had us making an android app, generating a tic tac toe game, and using a weather API. Day 4 was all about data visualization and exploring web development and redesigning and creating websites. Day 5 brought in tasks like automation, password encryption, building an AI project, generate a chess game, and using a social media API to name a few. As the week progressed the tasks grew all the more interesting and tougher. We had week-long and weekend challenges too where we had to research more into web automation, GUI, voice assistant and probe deeper into GitHub. The best part of the event was that the tasks were a perfect blend of technical and non-technical chores. The tasks had us sharing meals with our guildmates, playing among us and scribble, and also meeting other guild members. Each day we had 3 live sessions- 1st being the one where the Committee members would explain us the tasks and guide us with the nitty-gritty; 2nd was the one where we were assigned live mini-event challenges and we had to accomplish them to earn extra points and that was the best part of the entire day as it had a lot of unique and engrossing tasks which were so pleasurable to do; the 3rd one was where the core members would update us about the tasks of the next day and update the leaderboard. This event not only gave an astounding insight into the technical world but also gave a chance to interact and build a harmonious ethos among all the participants towards their guilds.
By Sarthak :) 
#geekweeklocal
Geek week local
Published: 2021-03-21 05:31:57

Geek Week Local

A great initiative by GFG Vit Bhopal Chapter. We were asked to be a part of the guild and then solve challenges.

The first thing of joining a guild was fun when we searched and interacted with people to join a team. It was really fun to do that and pitch others and persuade them to join the guild.

Then the tasks began and the first day was light. But then it was escalated. Day 2 brought some tougher and interesting challenges
Throughout everyday we learnt something new and improves upon ourselves.

I learnt a lot. Learnt to create Portfolio, Github , Bootsrap, firebase and what not.

So its a hell of a experience till now and expecting more such events by GFG.

geekweeklocal
AI (artificial intelligence)
Published: 2021-03-21 05:27:21

There was a time, not so long ago, when artificial intelligence, machine learning, and natural language processing were only found in science fiction novels. Artificial intelligence, on the other hand, has been around for over 70 years. We were still working on a model of the most basic component of artificial intelligence at the time: artificial neurons. Artificial intelligence (AI) and machine learning had crept into the public's blind spot for a long time after that, all the while becoming smarter. It wasn't until IBM's Deep Blue defeated Garry Kasparov in 1997 that AI technologies gained traction and the data race began.

Of course, today's digital imperative includes AI, machine learning, and natural language processing. The benefits of using AI technologies in all shapes and sizes have prompted companies to invest heavily in their growth and application. Transportation, entertainment, and manufacturing operations have all seen tremendous growth and result of AI adoption.

AI's ability to automate sales and marketing activities has shown great promise in terms of lowering human effort and costs while still boosting top-line growth. Artificial intelligence (AI) reduces the time spent on administrative tasks, improves a brand's ability to provide customised services to consumers, and creates previously untapped revenue streams. This is why AI is at the heart of the most promising marketing automation initiatives.
#geekweeklocal
Geek Week Local
Published: 2021-03-21 05:22:51

What a week it has been, got so much to learn all thanks to Geek Week Local conducted by GeeksforGeeks Student Chapter VIT Bhopal. All the tasks were challenging but it was made easy by the seniors who were ever ready to help us out if we had any difficulties. Staying up late and learning new things gave us the feeling of college life since we haven't been to college. So anyway this was a great event and a successful event, and even if my guild (GS X MBKF) doesn't win it won't change the fact that I got to learn soo much. So I just want to say Thank You!
7-days on a tray
Published: 2021-03-21 05:13:52

What to start with? This week has been nothing but an exciting adventure at the start of my career in computer science. From writing a simple 'Hello World' program at the start till programming Data-Structures towards the end. It has helped me to learn a lot.

Let's start with the best thing the organizing team has done for us:
It was giving tasks not only to be a computer geek, but also to become a socially active and cultural geeks too. The tasks were never always to write a code and bore yourself for the whole day, but also to take a break and enjoy yourselves with the music and memes too. The task were not only to learn the specials of computer science, but also to learn how to work as a team.

The outcomes of this week challenge has been great. I have learnt how to code without stressing yourselves. I have learnt how to enjoy whether by going live on the mini-event or by playing with the teammates. I have learnt that taking a break from daily work and listening to music or doing what you love can never be a distraction, it is always a relaxation. I have learnt that being a complete stranger does not mean you cannot be open and be yourself to your stranger teammates; after all, they too are your friends just that you haven't met them until now. And lastly, I have also learnt, it is fun competing to get on top by putting extra efforts.

Honestly speaking, this week has been a challenge as well as a perfect learning opportunity I grabbed in my whole life. A disease outbreak can never be a hindrance to what we want to learn. We are united by the internet, and ladies and gentlemen that unity gave us the chance to a very cool learning opportunity.
GEEKWEEK: Local
Published: 2021-03-21 05:12:52

Recently I participated in a week-long event conducted by GFG-VIT Bhopal. It had daily challenges including weekly challenges also. We had to make a guild and then do the task. Overall it was a very exciting event for me. I got to learn new things and got to know new people with the same interests. I learned many things ranging from communities, development to games, it was like a wholesome package. So thanks GFG VIT Bhopal for conducting the event looking forward to more events like this.
Use Tailwind 2 with Vue CLI 
Published: 2021-03-21 05:08:23

TailwindCSS have official guides for:

- Laravel.
- Vue with Vite.
- Next.JS
- Nuxt.JS
- Create react app
- Gatsby

But, there is no official guide to work with VueCLI & Vue with TailwindCSS, so here a little guide to install TailwindCSS 2:

### Install tailwind

if you have already installed a postcss 8 (not supported) version you would require to uninstall it:

```
npm uninstall tailwindcss postcss autoprefixer
```

```
npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9
```

### Create a `postcss.config.js` file

```
// postcss.config.js
const autoprefixer = require('autoprefixer');
const tailwindcss = require('tailwindcss');

module.exports = {
  plugins: [
    tailwindcss,
    autoprefixer,
  ],
};
```

### Add tailwind styles in assets directory, `assets/tailwind.css`

```css
// src/assets/tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;
```

### Add styles on the application

On `main.js` file import the styles:

```
import './assets/styles/index.css';
```

### Purge files for production

On `tailwind.config.js` file

```
module.exports = {
  purge: [
    './public/**/*.html',
    './src/**/*.vue',
  ],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [],
}
```
A Concept A Day Keeps Fear Of Computers Away!
Tags: series
Published: 2021-03-21 05:03:11

Sup people?
I am Sakshi(RadOne). I absolutely love to write code. By the way, what I love more than writing code is sharing with people information on how to write code. I want to keep this series as a space for sharing the content I love in a funny and easy to understand way. This blog is my small way of giving back to the developer community that has helped me grow and evolve in so many ways.
So, hang on with me on this journey. I will try to keep this space simple, random, fun, casual and entertaining. Also, I am always up for feedback. Do not shy away from a chat and HMU without any worries. With that being said I will leave with a meme from my fav hacker car! :)
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gkndzgbx0wjjyamtw4jb.png)
GEEKS FOR GEEK VIT BHOPAL
Published: 2021-03-21 04:22:53

This MARCH, 2021 GEEKSFORGEEKS VIT Bhopal community arranged a magnificent event for the VIT students where we are to do daily and weeklong challenges. All the VIT Bhopal students were eligible to join the event and nearly 1000 students participated. Guilds were made to compete with the size limit of 110 students per guild. Each guild would compete for the 1st position in the ranking board. The day 1 started with DSA problems ranging from Python to Java and what not. The non-technical tasks like sharing a cup of coffee/tea was also given as a task. As the competition progressed, the game became more tougher. Starting from day 1, We learned Github, making different apps, websites, learning new languages and discovering new concepts. The week was busy and we had much fun.
Why Elixir?
Tags: elixir, reliability, distributedsystems
Published: 2021-03-21 04:13:51

From the languages I love, Elixir is the only dynamically typed one. I have been mulling over why Elixir, and this post surmises it.

When reasoning about why Elixir, I first reasoned about why ReScript and Rust—the other languages I love. It came down  to one thing: Type Systems.

Type Systems gives me the reliability that my code is at least handling the assumptions on data and interface correctly. This, in turn, gives me confidence on the code I'm working with. When I arrived at this conclusion it clicked for me: Elixir gives me confidence even without a Type System.

That confidence comes from Erlang/OTP, which has really great primitives to create fault tolerant systems. So while ReScript and Rust gives me confidence "pre-deploy" because of the Type System, Elixir gives me confidence "post-deploy" because of Erlang/OTP.
Command to easily maintain rust dependencies with command line
Tags: rust
Published: 2021-03-21 04:11:24

# Cargo edit
[Cargo edit](https://github.com/killercup/cargo-edit) extends cargo by adding the following subcommands.
As you can guess by their names, the subcommands modify Cargo.toml from the command line.

- cargo add
- cargo rm
- cargo upgrade

## Install
`$ cargo install cargo-edit`

## cargo add
```
$ cargo add image
Updating 'https://github.com/rust-lang/crates.io-index' index
Adding image v0.23.14 to dependencies

$ cat Cargo.toml                                                                                                          [dependencies]
image = "0.23.14"

```

Add dependencies with a specific version.
```
$ cargo add image --vers=0.20                                                                                                  Updating 'https://github.com/rust-lang/crates.io-index' index
      Adding image v0.20 to dependencies

 ii@ii-pro  ~/t/r/image   master ⁝ ?
 $ cat Cargo.toml                                                                                                           [dependencies]
image = "0.20"
```

## cargo upgrade
```
$ cargo upgrade image                                                                                                      
    Updating 'https://github.com/rust-lang/crates.io-index' index
image:
    Upgrading image v0.20 -> v0.23.14
```


## cargo rm
```
$ cargo rm image
Removing image from dependencies

$ cat Cargo.toml                                                                                                           
```
GEEK WEEK
Tags: geekweeklocal
Published: 2021-03-21 04:08:01

This week has been nothing but an exciting adventure at the start of my career in computer science. From writing a simple 'Hello World' program at the start till programming Data-Structures towards the end. It has helped me to learn a lot.

Let's start with the best thing the organizing team has done for us:
It was giving tasks not only to be a computer geek, but also to become a socially active and cultural geeks too. The tasks were never always to write a code and bore yourself for the whole day, but also to take a break and enjoy yourselves with the music and memes too. The task were not only to learn the specials of computer science, but also to learn how to work as a team.

The outcomes of this week challenge has been great. I have learnt how to code without stressing yourselves. I have learnt how to enjoy whether by going live on the mini-event or by playing with the teammates. I have learnt that taking a break from daily work and listening to music or doing what you love can never be a distraction, it is always a relaxation. I have learnt that being a complete stranger does not mean you cannot be open and be yourself to your stranger teammates; after all, they too are your friends just that you haven't met them until now. And lastly, I have also learnt, it is fun competing to get on top by putting extra efforts.

Honestly speaking, this week has been a challenge as well as a perfect learning opportunity I grabbed in my whole life. A disease outbreak can never be a hindrance to what we want to learn. We are united by the internet, and ladies and gentlemen that unity gave us the chance to a very cool learning opportunity.
How to know when to quit as a programmer?
Tags: productivity, webdev, programming, javascript
Published: 2021-03-21 04:05:19

Being a software engineer is a fortune in this digital age. Having an opportunity to work from the comfort of your home and getting a handsome paycheck is not only the upside. Solving the unsolved problems and giving exercise to your brain every day to stay relevant and up to date is like winning a thousand miles marathon. 

Besides having all these benefits, sadly every software engineer needs to quit one day. Either the reason is personal or professional or emotional, choosing the right time to quit is actually an advantage to venture into the unventured part of life.

Just kidding... :D I am not talking about quitting the software engineering profession. I was talking about quitting to beat the imposter syndrome. Sometimes the problem just doesn't solve. You will feel like the end of the world and you can't see the road ahead. Quit that time. Quit for a day. Quit and go home, cook dinner, watch TV, relax and sleep. Let your subconscious crack the problem and hunt for solutions. The next morning wake up and take a shower. 

Although this is not the direct solution to your problem, it works like magic for most people. Creativity and intelligence are fleeting states of mind. They are not there when you are tired, exhausted, and bored. If you try to solve the problem in that state, you will create a mess for yourself and your fellow programmers.

So quit. Quit every once in a while, quit when a problem doesn't solve. Quit intermittently, venture into something you never ventured before, and excel in your programming career.
Nevertheless, Consolata Gicheru Coded in 2021!
Tags: wecoded
Published: 2021-03-21 04:00:40



**My most recent achievement** was Speaking at the Global Power Platform Bootcamp in Nairobi.

**Advocating for myself looks like** believing in myself and the skills that I have and pushing to learn more each day and become a better person.

**My biggest goal is** to be an expert in my field and maybe one day be a Power Platform advocate hence grow my community and empower them to do more.

**My advice for allies to support underrepresented folks who code is** Kindly give them a platform to showcase their skills and grow their careers.I'd also like them to keep this in mind **A candle loses nothing by lighting another candle**
MacOS OpenJDK Maintenance
Tags: java, openjdk, devsetup
Published: 2021-05-29 02:21:43

---
title: MacOS OpenJDK Maintenance
published: true
date: 2021-03-21 04:00:00 UTC
tags: java,openjdk,devsetup
canonical_url: 
---

## What is OpenJDK?

An open-source implementation of the Java platform SE. To read more check out [official site](https://openjdk.java.net/).

## Why have multiple versions?

Why not? Not all apps are able to keep up with Java versions and those that do might need some time when a new version comes out. For example: I’m working with React-Native building mobile apps for both iOS and Android. To build the Android app it uses Gradle 6.5 which doesn’t support the latest version of Java (16) yet.

## Installing

I have OpenJDK installed through AdoptOpenJDK using brew. I like to keep all my apps and libs as up-to-date as possible so I run `brew upgrade` a lot. One of those times it upgraded AdoptOpenJDK to 16. Lucky for me they also publish older versions on brew but there’s an extra step.

My initial thought was to run `brew install adoptopenjdk@15` but it didn’t work. The versioned casks are contained in their Tap which I found out by checking out their [brew page](https://formulae.brew.sh/cask/adoptopenjdk#default) and subsequently their [open-source tap code](https://github.com/AdoptOpenJDK/homebrew-openjdk).

So the fix was to get into the tap (`brew tap adoptopenjdk/openjdk`) and run the command above again.

## Switching between versions

Now I have two versions of OpenJDK available to my system: 16 and 15. To switch between them I found a little function to pop into my .zshrc file:

```
jdk() {
  export JAVA_VERSION=$1
  java -version
}

```

Now to switch between JDK versions I run `jdk 15` or any version I have installed.
What are users thinking
Tags: opensource, design, ux
Published: 2021-03-21 00:26:46

This week, Pedro discussed his thoughts with me about the title design in [telescope](https://github.com/Seneca-CDOT/telescope). He wants to make the title section smaller.

This is how telescope handling the post title,
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ry9kweztzu0atabt1ml.png)
The title stick to the top when you scroll up, so that you can always see the title while you keep scrolling down and reading the post.
If the title length is too long, we wrapped it with `...`; and it can be expanded after user click the title.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29gwa0bizqfq1or1jhc0.png)

However, once the title is expanded, the title section is twice big. It'll occupy too much space of the screen.

It's smart to find out this issue. I have little knowledge of user experience, so I never figure this out. This is a great chance for me to dig into this field.

---

The solution Pedro came up is to **dynamically adjust font size**. In the other word, when the title overflowed, the font-size will be adjusted to be smaller and able to fit the div element.

We've tried different approaches to make it work, but none of them came with an expected result. Therefore, we were thinking removing the sticky title feature. As Dave suggested, when we're making changes on the UI design, we should always consider user's "habit". For example, in other similar kinds of websites, how do they design this feature? Users usually get used to one kind of design in a specific type of website. There, browsing other blog-post websites about how they handle a long title is a good way to start.

In medium and dev.to, there is no sticky title design. The title goes to the second or the third line if it's too long. However, it's not the same as our telescope. We have only one timeline, gathering all the posts (**the whole post**, without "read more" feature) from **different authors**. 

In the meeting, some team members said that they don't really need the title once they start to read one post; but some do. The team came up with a solution which is to make the font-size of title *smaller* so that in most cases, the title will remain one line. Our title font-size is about 3 times bigger than the content font-size. To compare with some similar websites, they're doing much smaller size for their title.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zlyvkaw52suqvibr5k9y.png)

Better? Can you still tell this is a title of the post?

---

Biweekly release makes us keep shipping changes. Sometimes, there is no **perfect** solution for one issue. But, shipping changes in each release makes our project better and better, even if it's just a small change in every release.
Automatizando Backups no PostgreSQL
Published: 2021-03-21 03:28:44

{% post https://dev.to/siedos/utilizando-comandos-do-postgresql-sem-digitar-senha-4i81 %}

{% post https://dev.to/siedos/enviando-mensagens-no-slack-com-shell-script-5flm %}

Agora que você esta pronto, Vamos lá !
Recentemente, precisei criar alguns scripts para implementar backups automatizados para o meu ambiente de produção com o PostgreSQL. Desenvolvi um script de backup no ambiente de produção e salvo o backup no servidor de homologação para posterior restauração.
Usando o cronjob, você possui uma a automatização da execução desses backups . Os scripts produzem os seguintes formatos de backups:
Backup simples: produz uma versão gzip do script SQL
Backup personalizado: produz um arquivo compactado em formato personalizado, adequado para entrada no pg_restore.
Crie o arquivo pg_backup.sh e cole o seguinte conteúdo nele.

{% gist https://gist.github.com/jcottobboni/41f8be24792b97dd448ad6ab7bc6bfdf %}

Agora precisamos conceder ao script permissão de execução

```bash
chomd +x pg_backup.sh
```

Os comando scp envia uma cópia do backup para outro servidor, neste exemplo, envio para o meu servidor de homologação para manter uma copia atual todos os dias em homologação, além da redundância ao guardar o arquivo sempre que preciso restaurar a base de homologação ja tenho um arquivo no servidor, mas você pode enviar para qualquer máquina que desejar, para este comando funcionar sem a necessidade de digitar a senha, é necessário copiar sua chave ssh para o servidor com este comando:

```bash
ssh-copy-id -i ~/.ssh/id_rsa.pub 'user'@'server-address-or-ip'
```

Por último para que esse backup seja executado automaticamente precisamos criar uma entrada no agendador de tarefas do linux, digite o comando para abrir o crontab:

```bash
crontab -e
```
Agora insira esta linha no arquivo


```bash
# PostgreSQL Backup
 00 00 * * * /path/to/script/pg_backup.sh
```