teleren/devto huggingface dataset:
Build or sell: The two critical skills in tech
Tags: career, productivity, design, startup
Published: 2020-12-07 05:59:40

If you want to be invaluable in the tech industry, you need to learn to build or sell. These two skills are arguably the most important in the tech space since every crucial role falls under one of them.

Let's dive into what they mean, why they're important, and what they can look like, specifically in the tech industry.

## Building

Building is the process of adding business value in some way. This can manifest itself in different forms, including:

- Building new features for an application
- Writing code to build an MVP
- Designing the next iteration of a mobile app on Figma
- Building a website with a no-code tool like Bubble or Wordpress
- Managing a service

## Selling

Selling on the other hand is the process of convincing someone to do something. Selling will look different depending on the business model and stage of the company. It could be:

- Selling to customers in the form of copywriting, outbound sales, or online marketing
- Designing landing pages or sales funnels
- Selling the company's vision to investors when raising money through pitching
- Selling upper management on what features or products to prioritize as a product manager
- Selling the company's culture to prospective employees to attract talent through recruiting

## Conclusion

At the end of the day, every critical role in a tech company will fall under building or selling. Learn how to do one very well, and you'll become an asset to any business you join. If you're a startup founder, you should be able to do both.

> "Learn to sell, learn to build. If you can do both, you will be unstoppable." - Naval

Just knowing what category your role falls under and how it fits into the bigger picture of your organization is invaluable. You'll have more insight into choosing the right problems to work on and how you can add value to your company.

**Actionable advice**: Learn to build (coding, designing, managing) or sell (copywriting, marketing, sales, PM). Become really good at one of them, then learn one skill on the opposite category to build your [talent stack](https://www.elmghari.com/talent-stack/) and become unstoppable.
Lab 9
Published: 2020-12-07 05:48:42

For this lab, we are going to find a platform to release our package. I choose `pkg.go.dev` for my Go program [https://github.com/isabellaliu77/urlChecker](https://github.com/isabellaliu77/urlChecker).  But the release process was terrible.

Created the release on GitHub is pretty easy, I added a tag and created the release following the instruction. [https://github.com/isabellaliu77/urlChecker/releases/tag/v1.0.1](https://github.com/isabellaliu77/urlChecker/releases/tag/v1.0.1)

I checked the documentation for the release. However, I don't quite understand it. I knew every word but didn't know what it meant. I asked my classmate for help, and finally, understood the meaning. This is the link I need to use
`https://pkg.go.dev/github.com/isabellaliu77/urlChecker`

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

## Problems

The old go doc website can find my package.

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

But when I visit the new website `pkg.go.dev`, nothing is there. I refresh it lots of times. But it didn't help.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2kbwhhny59b0bkptdprl.png)

After several days, I realize that for some reason, my package name on my `go.mod` file is not following the standard.

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

I changed the module name, then waited for about an hour. Finally, the problem was solved. 

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

This is the package. [https://pkg.go.dev/github.com/isabellaliu77/urlChecker](https://pkg.go.dev/github.com/isabellaliu77/urlChecker)
Advent of Code 2020 Solution Megathread - Day 7: Handy Haversacks
Tags: adventofcode, challenge
Published: 2020-12-07 05:41:41

---
title: Advent of Code 2020 Solution Megathread - Day 7: Handy Haversacks
published: true
description: We've got bags!  And those bags are in other bags, and there's a shiny gold one and...
tags: adventofcode, challenge
series: Advent of Code 2020
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/rjpr78adycoaidubp9qs.png
---

I'm on the computer a little later than usual, so I thought I'd get the post for tomorrow up now so I don't have to do it in the morning, since it's past midnight on the East coast anyway.

## The Puzzle

Oh my gosh, [today’s puzzle](https://adventofcode.com/2020/day/7) is a parsing, dependency graph nightmare.  Maybe I'm just tired and overcomplicating things in my head, but I'm thinking that's the case.  Our input is a series of lines describing how certain colors of bag (e.g. "vivid plum") can contain certain quantities of other bags (e.g. "shiny gold").  We are to decide which bags can contain our bag, the shiny gold one.  Yoy.

## The Leaderboards

As always, this is the spot where I’ll plug any leaderboard codes shared from the community.

```
Ryan's Leaderboard: 224198-25048a19
```

If you want to generate your own leaderboard and signal boost it a little bit, send it to me either in a DEV message or in a comment on one of these posts and I'll add it to the list above.

## Yesterday’s Languages

Updated 03:08PM 12/12/2020 PST.

| Language   | Count |
|------------|-------|
| JavaScript |     4 |
| Ruby       |     3 |
| Haskell    |     2 |
| Clojure    |     2 |
| Python     |     2 |
| Rust       |     1 |
| TypeScript |     1 |
| COBOL      |     1 |
| Elixir     |     1 |
| C#         |     1 |
| Go         |     1 |
| C          |     1 |


Merry Coding!
FireLinker + Semantic Release
Tags: opensource
Published: 2020-12-07 05:30:10

This week, I added auto semantic release to firelinker. This blog will go through how I did this. The way I did this was using the instructions on this repo [https://github.com/zeke/semantic-release-with-github-actions](https://github.com/zeke/semantic-release-with-github-actions) allowed me to add it successfully. The process was very simple after I found this repo.

At first the most difficult part was connecting to npm registry but after I got my account and token and figured out about GitHub secrets I added an NPM_token to secrets. I also realized that GitHub already has a secret github_token saved automatically once created. The process on the repo is very simple but it requires to do squash merge commits.

The repo has the following steps 
```
- [ ] Only allow squash merging of pull requests
- [ ] Install https://github.com/apps/semantic-pull-requests
- [ ] Create npm token using `npm token create` or https://www.npmjs.com/settings
- [ ] Add token to repo secrets as `NPM_TOKEN`
- [ ] Add release workflow file to `.github/workflows/release.yml`
- [ ] Set `version` to `0.0.0-development` in package.json
- [ ] `npm i -D semantic-release`
- [ ] Use semantic commit messages
- [ ] Create a pull request 
```

The steps are very easy to follow with a great result. After, I added semantic release I had a couple friends test it and it worked just like before because I was first just installing it from the repo but now I'm doing it from the npm registry https://www.npmjs.com/package/firelinker/v/1.0.0

Overall, this process was very awesome with a few extra steps I have automated my release from this day. The way it works is it releases on each push to master and automatically decides the versioning useing commit messeages.
emojicodeをCircleCIで動かす
Tags: emoji, emojicode, circleci
Published: 2020-12-01 15:05:59

---
title: emojicodeをCircleCIで動かす
published: true
tags: emoji, emojicode, circleci
---

この記事は、雑談Slack Advent Calendar 2020 の2日目の記事です。

https://adventar.org/calendars/5337

EmojicodeをCircleCIで動かしてみました。

https://www.emojicode.org/

{% github YutaGoto/circleci_emojicode %}

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5yvmew3cessjtpfp3g2e.png)

```yml
version: 2.1

executors:
  cpp:
    docker:
      - image: gcc:latest

jobs:
  run_emojicode:
    executor: cpp
    steps:
      - checkout
      - run:
          name: install some module
          command: |
            apt update && \
            apt install -y rsync libncurses5
      - run:
          name: install emojicode
          command: |
            wget https://github.com/emojicode/emojicode/releases/download/v1.0-beta.2/Emojicode-1.0-beta.2-Linux-x86_64.tar.gz -O emojicode.tar.gz \
            && tar -xzf emojicode.tar.gz && rm emojicode.tar.gz \
            && cd Emojicode-1.0-beta.2-Linux-x86_64 && yes | ./install.sh || true \
            && cd ..
      - run:
          name: build emojicode
          command: emojicodec hello.emojic
      - run:
          name: run
          command: ./hello

workflows:
  version: 2
  build:
    jobs: 
      - run_emojicode
```

DockerHubにEmojicodeのDockerImageはないのでGCCからいろいろいじってインストールしていきます。
インストールしていくうえでコマンドも足りない部分もあるので、それもあらかじめインストールします。
インストールまでできたら、あとはビルドして実行するだけです。
emojicodeのコードの内容に関しては特に解説しません。fizzbuzzのコードに関して過去の記事がありますので、そちらを参照してください。

 {% link yutagoto/emojicode-fizzbuzz-4akl %} 

## 所感

毎度毎度同じインストールコマンドを書くのは面倒なのでOrbにしてみたいところ。。
SQLSaturday #1004 – Dhaka, Bangladesh – Virtual 2020
Tags: azure, sql, bangladesh
Published: 2020-12-07 05:17:32

Enable SQL server replication:
For DB replication, we need to enable the SQL Server Replication feature. 
SQL Server Agent should be Automatic start Mode. We can configure that from SQL Server Configuration Manager. 
For more you can check this video link:
https://nakibjuris.medium.com/on-premises-sql-database-transactional-replication-to-azure-sql-database-a293a0e0a32e
Safe Navigation Operator
Tags: ruby, codenewbie
Published: 2020-12-07 05:06:31

######Photo by <a href="/photographer/zumberto-38564">Zumberto _</a> from <a href="https://freeimages.com/">FreeImages</a>

We can't function without operators in any language, and sometimes working with them can be a bit confusing. But, did you know that there are some lesser known operators in Ruby that can make your life easier? 

In this post I would like to explore the **Safe Navigation Operator** a bit further. 

Lately I have been going through old projects to refactor, clean up my code, and get things *live*. I have been noticing many places where this smooth operator would have been useful.

**What exactly does it do?** 

The Safe Navigation Operator returns *nil* if a method is called on a *nil* object. 

**Why should we care?**

Well, it is best to avoid throwing errors at your users. It's not very nice! 

**_Let's take a look at a quick example:_**

```ruby
    patch '/pizzas/:id' do
        @pizza = Pizza.find_by(id: params[:id])

        if @pizza && @pizza.user == current_user
            if @pizza.update(params[:pizza])
                redirect to "/pizzas/#{@pizza.id}"
            else
                erb :'/pizzas/edit'
            end
        else
            redirect to "/pizzas"
        end 
    end
```
In the snippet above, I am checking to see if there is indeed an instance of the Pizza class found by id, and if there is, does that instance's user match the current user? 

```ruby
    if @pizza && @pizza.user == current_user
```

This works just fine, but it would be cleaner to write:

```ruby
    if @pizza&.user == current_user
```

Why not use *.try*? Well because that is provided by **ActiveSupport** as part of *Ruby on Rails*, which is awesome! However if you wish to remove this dependency, just use the Safe Navigation Operator instead of *.try*.
How to factorize and create reusable processes with Azure Pipelines
Tags: devops, azurepipelines, codequality, microsoft
Published: 2020-12-07 08:35:31

---
title: How to factorize and create reusable processes with Azure Pipelines
published: true
date: 2020-12-07 05:00:00 UTC
tags: DevOps,AzurePipelines,Quality,Microsoft
canonical_url: https://10xlearner.com/2020/12/07/how-to-factorize-and-create-reusable-processes-with-azure-pipelines/
---

Hello ! I’m Xavier Jouvenot and in this small post, we are going to see how to factorize and create reusable processes with Azure Pipelines.

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

## Problematic

When creating some processes on Azure Pipelines, you may want to simplify it like you do with code when using functions. Indeed, it can be very helpful, if you want to share your processes to other people, to be able to make them generic enough so that other people could use them, or that, even in your own company, or in your own projects, to have one process with some parameters to set up to have a working Azure Pipeline process.

Sadly, there are no functions in Azure Pipelines, **but** there is a solution, or this blog post would not exist 😆

## Solution

The solution for our problem is called a template. It consists of a file describing a process where we can define some parameters. This template can then be called from the main azure pipeline configuration file with some parameter’s value to launch the process.

The template file look like that:

```
parameters:
    - name: configuration
      type: string
      default: Debug

steps:
    - script: |
        make run CONFIGURATION=${{ parameters.configuration }}
      displayName: Generate, Build and Run the solution
```

In this file, we start by defining the parameters possible and we define the process with those parameters, and the instruction we want to be executed.

Once the process defined, we can use this template in the main configuration file:

```
-jobs:
    - job: Job_Name
      steps:
        - template: .azurePipelines/my_template.yml
          parameters:
            configuration: Release
```

In this file, all we have to do to use a template file, is to specify where the template file is and the value for the parameters.

The two files in this article are functional but, I encourage you to check the [Azure Pipelines template documentation](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops) to se all the things you can do with template 😉

* * *

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

## Interesting links

- [Azure Pipelines template documentation](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops)
Postgressing From SQLite
Tags: postgres, sqlite, rails
Published: 2020-12-07 04:47:26

---
title: Postgressing From SQLite
published: true
description: Transitioning from SQLite to PostgreSQL on Rails
tags: postgres, sqlite, postgresql, rails
//cover_image: https://direct_url_to_image.jpg
---

# SQLite VS PostgreSQL
I was taught SQL by using SQLite. SQLite is absolutely useful in plenty of situations. It works great as a DB solution for devices (cellphones, game consoles, other embedded devices), data analysis, and even for caching enterprise data. It does not work great as a database solution for high traffic websites that follow the client/server model as data can become corrupted from two clients attempting to alter the same piece of data at the same time.  It also happens that in order to deploy a Rails application to Heroku one needs to use a client/server database. So I chose Postgres. It is open source, scalable, and who doesn't love that little elephant? For more information on when to use SQLite versus a client/server database system check out this page [sqlite.org/whentouse](https://www.sqlite.org/whentouse.html).

# PostgreSQL
Much different from SQLite, as we already know, Postgres has added layers of security/administration. This means there are users who have different permissions to access/create/drop databases. After postgres is installed, the super user postgres is created. This user has all the permissions and we will use this user to create other users. 
```bash
# installing postgres on ubuntu
$ sudo apt install postgresql postgresql-contrib libpq-dev
# creating a new super user named sam (the -P option will prompt us to create a password for the newly created user)
$ sudo -u postgres createuser -s sam -P
```
Now we can migrate our Rails app to Postgres!

# Rails And RDBMS
By default Ruby on Rails will include SQLite as the database of choice for Active Record. You can add an option to the new rails app command to use postgres: 
```bash
$ rails new awesomeapp -d=postgresql
```
But if you already have a rails app you're wanting to deploy on Heroku like me this doesn't help. We will need to manually change the database. The first step will be to add the pg gem to the Gemfile. Easy!
```ruby
# Gemfile
gem 'pg'
```
Don't forget to run the `bundle install` command after you've changed the Gemfile. Now comes the tricky part. Updating database.yml. I copy and pasted the database.yml file from a rails app I created using the `-d=postgresql` option and changed the names of databases to reflect the current app. Now that that is over run these commands:
```bash
$ rails db:setup
$ rails db:migrate
```
Boom! You are now using Postgres!
CSS Grid most easy center vertical and horizontal
Tags: css
Published: 2020-12-07 04:42:26

As a follow up on the [CSS Flex center article](https://daily-dev-tips.com/posts/css-flexbox-most-easy-center-vertical-and-horizontal/).

Which I've used in about almost all me articles that include a demo, it is now time to give you a view of the same principle using CSS Grid.

Much like Flexbox, it's super easy to center element using Grid.

To fully center a element all we need is:

```css
.container {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
```

The min-height is optional in this case it's needed to give it a vertical height.

This will result in the following:

{% codepen https://codepen.io/rebelchris/pen/WNGQxxB %}

## CSS Grid center only horizontal

If for instance you would only want something centered horizontal you can use the following CSS:

```css
.container {
  display: grid;
  justify-content: center;
  min-height: 100vh;
}
```

We can use the `justify-content` and pass the `center` value to make it horizontally centered.

> Note: this is the same use as for [`display: flex`](https://daily-dev-tips.com/posts/css-flexbox-most-easy-center-vertical-and-horizontal/#heading-css-flexbox-horizontal-center).

This results in the following Codepen.

{% codepen https://codepen.io/rebelchris/pen/GRjpqjX %}

## CSS Grid center only vertical

On the other hand, maybe you are looking to only center it vertically.

You can use the following CSS to achieve this.

```css
.container {
  display: grid;
  align-items: center;
  min-height: 100vh;
}
```

We use the `align-items` with a value of `center` to get a vertical alignment.

> Note: This is as well the same functionality as we've seen in [`CSS Flex`](https://daily-dev-tips.com/posts/css-flexbox-most-easy-center-vertical-and-horizontal/#heading-css-flexbox-vertical-center)

This results in the following Codepen.

{% codepen https://codepen.io/rebelchris/pen/VwKvjmQ %}

There you go, we now learned another super-easy way to center elements using `CSS Grid`.

### 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)
12 Mistakes every “Amateur Blogger” should avoid in 2021 [Tips to become a Pro Blogger]
Tags: blogger, tutorial, how, startup
Published: 2020-12-07 04:39:08

#Top 12 Mistakes that an Amateur Blogger should Avoid
Every Amateur Blogger makes mistakes several times. That is a part of the learning curve and it is pretty okay. But, As we said above, We must learn from our mistakes to avoid repetition.

Even the Pro Bloggers were once the novice and they all learned from the errors they made.

They all give us just one tip – “You have to notice your mistakes and should not repeat that.”
If you want high traffic on your blog and want your pages to appear on the first page of Google, you have to work on basics and follow the right path.

So, as per the heading, Let’s note down and discuss the 12 Amateur Blogger Mistakes that can kill your Blogging Journey –

1. Not using Custom-domain
2. Going with Cheap Hostings
3. Not giving credits to the content owner
4. Avoiding SEO
5. Neglecting ABOUT section
6. Zero Keyword Research
7. The article has no Layout
8. Publishing Short Content
9. Ignoring Affiliate Marketing
10. Avoiding Building Links
11. Not Building their Community
12. Not Investing in their Blog

Okay, now it’s the time to discuss them in detail. We request all new bloggers to just read them in detail and make notes carefully.

<a href="https://cheapandbesthosting.com/amateur-bloggers-and-mistakes/">Read All these Mistakes in Detail</a>
Crack javascript Jobs | Data structure and Algorithms
Tags: javascript, algorithms, datastructures, codingquestions
Published: 2020-12-07 04:28:17

---
title: Crack javascript Jobs | Data structure and Algorithms
published: true
description: Crack javascript Jobs | Data structure and Algorithms
tags: javascript, algorithms, datastructures, codingquestions
---


# Prepare Coding Questions JavaScript

I have created Video Course which talks about some general programming questions

The best way to prepare for interviews is to practice, practice, practice! In this course you will complete more than 1000 + JavaScript interview questions that come from actual JavaScript interviews

![](https://miro.medium.com/max/1280/1*LIZa1pQ1euvTZs4CfP-M9g.jpeg)

https://www.youtube.com/watch?v=uSKWsY4j-mA&list=PLIGDNOJWiL19UnFU-1JZr2bh9EeZ2_zc2&ab_channel=CodeLabs

* it talks about core JavaScript questions

* different playlist, first one which talks about JavaScript code questions using array and string

* Second playlist is more about JavaScript core questions about objects, prototype, classes, functions.

* Array and string based questions

* function and class based interview questions

* These playlist will help you to crack JavaScript or coding based questions

<center><iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries" frameborder="0" allowfullscreen></iframe></center>

<center><iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries" frameborder="0" allowfullscreen></iframe></center>
100 Days of Code: Day 3
Tags: swift, ios, codenewbie, beginners
Published: 2020-12-07 04:19:24

I step away from learning on the weekends to spend quality time with my kiddo. So rather than talk about what I have learned, I'm going to focus on what I will learn.

Optionals:
 * Binding, Chaining, Nil Coalescing.
 * I've read over them a few times, but I always get tripped up on when or if to use `!` or `?`.

I'm also going to work on learning the methods available to update properties of `UILabel`.

**For example:**
`@IBOutlet weak var thorWeightLabel: UILabel!`

`override func viewDidLoad() {`
`        super.viewDidLoad()`
`        thorWeightLabel.text = String(thor.weight)`
`        thorWeightLabel.textColor = .red`
`    }`

I'm excited about getting started on all of this.