teleren/devto huggingface dataset:
To those who use arrow keys to find old commands.
Tags: linux, beginners, devops, javascript
Published: 2021-03-07 14:40:36

## TL;DR
- history
- history | grep command-name
- Press ctrl + r -> type the command.

I hope everyone is aware that hitting the arrow keys helps us navigate to recently executed commands but what if you forgot a command you used months before and want to use it now or view all the commands you used relating to git or docker. We will see three commands I often use to achieve this.
# history
Using this will list all the commands you have executed.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnq11bb3n9j8p48859at.png)
## Execute a command from History
To execute any one of the commands from the list type
`! <history-number>`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m6yms6tk3x4zxe10tzpu.png)
# history | grep <command>
This is just the previous one but we are using the grep to filter the list. 
Example, if you want to see only the commands related to docker, you would type
`history | grep docker`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtehcsfg6ydqbidk1zkg.png)
# ctrl + r -> <type the command>
Press ctrl + r and start typing the command you knew you have executed months before. The terminal will autocomplete the command.
Example if you haven't used `ssh` for sometime and feel lazy about looking the history, you could press ctrl + R and type  ssh The terminal will autocomplete with your recent ssh command.
Example
I have used ctrl + r then typed heroku. The terminal autocompleted with my most recent heroku command
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eo44y0v2h951hx2of7e5.png)
Why I joined the "Blogging for Devs" course
Tags: beginners
Published: 2021-03-07 14:37:39

## Why did I sign up

I have seen plenty of recommendations for the ["Blogging for Devs"](https://bloggingfordevs.com/) course by [@monicalent](https://twitter.com/monicalent). Still, the primary reason why I joined is that I wanted to share my knowledge. I think that sharing knowledge is an important part not only for communities but also for personal growth; and why is that? It is because when you want to explain something to others, you need to dig deeper. A lot deeper. To understand some topics, you need to understand the nuances and edge-cases.

I always struggled with the "I do not have enough followers to generate enough traction or interest" mindset. Still, Monica is presenting a way how to start blogging without an existing audience.

## What's my motivation for blogging

As I mentioned in the previous section, I want to share knowledge and my perspective on some topics (closely connected to web development, but probably also about my daily life). I wanted to have a blog for a longer time, but it always failed:

1. on my mindset - I do not have a big-enough audience to share it
2. on my perfectionism - I haven't found a theme that would match my expectations and that it would be flexible enough to edit it to my taste. I have tried to start with [minimal-blog](https://github.com/LekoArts/gatsby-starter-minimal-blog) (I struggled a bit with customization) and then with [novela](https://github.com/narative/gatsby-starter-novela) (I wanted something more simple and performant - maybe their [memoir](https://www.narative.co/labs) theme would be better, but in time of writing this post, it is not yet released).

Of course, I tried to create a custom blogging theme on my own, but I always failed - I wanted to make it perfect, but after some time, I lost my dedication to work on this. I want to release a post about my tech stack for blogging, so follow me on Twitter [@TheLukasPolak](https://twitter.com/TheLukasPolak) if you want to know more.

## What do I want to learn with this course

Everything and fast! But now, seriously. What do I want to learn from Monica? How to start with blogging without an audience and how to build an audience. So far, it is pretty good. I have been confused at the beginning with the "Syndication," i.e., canonical URLs, but now it makes sense to me. I'm looking forward to the next emails.

## What next?

I will release a "review" on Monica's course in the upcoming weeks, so do not forget to follow me if you want to know more! But I can tell you, it is worth it! Even if it would be paid! Monica is a great instructor/host. I like her style of writing, and I admire her sharing and reports.

**Till next time!**

---

### Sources

- [@monicalent Twitter](https://twitter.com/monicalent)
- [Monica's blog](https://monicalent.com/blog/)
- [Blogging for Devs](https://bloggingfordevs.com/)
Kubernetes CKAD Tips 4 - Troubleshooting Pods
Tags: kubernetes, ckad, devops
Published: 2021-03-07 14:14:04

When you create a Pod it generally gets created if the syntax is correct. At least the CLI says so. It is mainly because the Kubernetes API checks everything and accepts the instruction. Later the Kubernetes scheduler picks it up and deploys. By the time it is accepted to the time it is deployed many things could happen. Also, if the image used in Pod’s container is wrong Kubernetes API can’t figure it out unless it deploys it. So, it gets to know about the image unavailability during the creation process. Also, there could be an issue with available CPU and memory of the Node. Let’s see the different ways to build and deploy the Kubernetes Pod and if any problem how to find it out and can be sorted.

{% youtube w4BGWdMCx88 %}

## Resources 

Subscribe to the Channel [TechTalks-Wriju](https://www.youtube.com/channel/UCUzFKvlZOm3ukAiF59B_HgQ)

The [Kubernetes and CKAD Playlist](https://www.youtube.com/playlist?list=PLPIVZsyfpXt-wyNY65-aC9Vm_PEsM3pR8)
I'm Luke, and I support women in tech.
Tags: wecoded, career, womenintech
Published: 2021-03-07 14:05:17

---
title: I'm Luke, and I support women in tech.
published: true
tags: shecodedally, career, womenintech
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6376wd4kse13thr1x288.png
---

Last year I wrote about things I advocated that we can all do to further equality in tech. I still strongly suggest those, so check it out. (Link at the end).

This year, I'd rather give space to those in tech who have or do inspire me. 

So, do yourself a favor and check out the work and content of these amazing humans, and leaders.

### [Lauren Lee](https://twitter.com/LoLoCoding)

{% user lolocoding %}

### [Lorna Mitchell](https://twitter.com/lornajane)

{% user lornajane %}

### [Anna Lytical](https://twitter.com/theannalytical)

{% twitter 1253723511820034054 %}

### April Speight

{% user aprilspeight %}

### [Kim Crayton](https://twitter.com/KimCrayton1)

{% twitter 1364956385285468165 %}

### Jo Franchetti

{% user thisisjofrank %}

### [Sarah Drasner](https://github.com/sdras)

{% twitter 1368289251234697216 %}

### [Salma Alam-Naylor](https://www.twitch.tv/whitep4nth3r)

{% user whitep4nth3r %}

### [Layla Porter](https://www.twitch.tv/laylacodesit)

{% twitter 1368841067806814208 %}

## Last Year Me

{% link lukeocodes/i-m-luke-and-i-could-do-more-1haj %}
Computer Engineering!
Tags: python
Published: 2021-03-07 14:01:50

Hello There!, I'm a newbie here and just want to here from your side about of what my concern's all about, I'm currently studying python language as my main language to be career in the near future and is it okay that language I've choosen to be as an Computer Engineering student? I'm planning to be an DevOps Engineer, so could you guys suggest anything that will for my career, like paths and etc.
Hasil Nomor Toto Macau Hari Ini Tercepat 
Tags: totomacau, livemacau, resultmacau, macaupools
Published: 2021-03-07 13:54:14

Informasi Toto Macau ialah hasil Result toto Macau yang sudah kita merangkup ke dalam sesuatu bagan pengeluaran. Result Toto Macau ialah Togel Online yang memiliki result sangat banyak dalam satu hari. Pasaran Togel ini mempunyai result 4x dalam satu hari, ialah pada jam 13. 12 Wib, 16. 15 Wib, 19. 12WIB, serta pula 22. 10 Wib. Toto Macau ialah pasaran yang berawal dari Cina, dikala ini sudah banyak orang yang mencari pasaran togel ini.

Toto Macau pools ialah pasaran togel yang dikala ini amat terkenal di golongan penggemar togel online Indonesia. Dapat ditentukan nyaris seluruh bos atau agen atau BO Togel Online tentu sediakan gambling togel pasaran Toto Macau ini.

Disebabkan banyaknya permohonan dari para pemeran togel online Indonesia buat penyediaan layanan Informasi Result Toto Macau, hingga kita sediakan layanan itu di web kita ini.

web terkait : https://glueclothingexchange.com/

Pengeluaran toto Macau 2021 kita pembaharuan semenjak dari tahun 2020 Sampai dikala ini. Serta Butuh kamu tahu kalau hasil Keluaran Toto Macau di ambil bersumber pada keluaran sah dari web yang resmi, Buka 4 kali Tiap Hari Tanpa Prei.
Top Firefox Extensions For Developers 🔥🚀
Published: 2021-03-07 13:54:07

{% link https://dev.to/devlorenzo/top-google-chrome-extensions-for-devs-2mkf %}

Here are some great Firefox extensions for developers which will make you more productive.

![wappalyzer-img.png](https://i.postimg.cc/W3Qk2JPM/wappalyzer-img.png)

1 - [Wappalyzer](https://www.wappalyzer.com/)

Wappalyzer will identify technologies used on websites.

---

![stylus-img.png](https://i.postimg.cc/FHW1rJy7/stylus-img.png)

2 - [Stylus](https://add0n.com/stylus.html)

Use Stylus to redesign, edit, create, and manage a website's CSS.

---

![jsonview.png](https://i.postimg.cc/Y0zqJ422/jsonview.png)

3 - [JSON View](https://jsonview.com/)

View JSON document in the browser formatted and highlighted.

---

![html-validator.png](https://i.postimg.cc/bwDfnDXG/html-validator.png)

4 - [HTML Validator](http://users.skynet.be/mgueury/mozilla/)

Validate HTML on a webpage.

---

![measure-it.png](https://i.postimg.cc/9fy3x6QC/measure-it.png)

5 - [Measure-it](https://addons.mozilla.org/en-US/firefox/addon/measure-it/)

Measure elements on the webpage.

---

![rest-client.png](https://i.postimg.cc/pTBwvKjS/rest-client.png)

6 - [REST Client](https://addons.mozilla.org/en-US/firefox/addon/restclient/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search)

Make custom HTTP request for testing purposes.

---

![colorzilla.png](https://i.postimg.cc/C5P9BYmH/colorzilla.png)

7 - [ColorZilla](https://www.colorzilla.com/)

Many features related to selecting colors.

---

![selenium-ide.png](https://i.postimg.cc/HsnqGckS/selenium-ide.png)

8 - [Selenium IDE](https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search)

Extension that allows you to record, edit, and debug tests.

---

![web-developer.png](https://i.postimg.cc/NGJnxskR/web-developer.png)

9 - [Web Developer](https://chrispederick.com/work/web-developer/)

Add various web developer tools to your browser.

---

![whatfont.png](https://i.postimg.cc/Tw2krFyk/whatfont.png)

10 - [WhatFont](https://addons.mozilla.org/en-US/firefox/addon/zjm-whatfont/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search) 

Inspect fonts contained on a page.

Comment on your favorite extension!

---

Linked article: Go check out this awesome list of [Chrome extensions](https://dev.to/devlorenzo/top-google-chrome-extensions-for-devs-2mkf) by [DevLorenzo](https://dev.to/devlorenzo) 🚀

{% link https://dev.to/devlorenzo/top-google-chrome-extensions-for-devs-2mkf %}

---

Cover image by [Gerd Altmann](https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=773217) on [Pixabay](https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=773217)

---
Introduction of the Factory Method Pattern
Tags: onurdesk, designpattern
Published: 2021-03-07 13:52:46


A Factory Method Pattern produces goods, and a software factory produces objects. Usually, object creation in Java takes place like so:
```
SomeClass someClassObject = new SomeClass();
```
The problem with the above approach is that the code using the SomeClass ‘s object, suddenly now becomes dependent on the concrete implementation of `SomeClass`. There’s nothing wrong with using new to create objects but it comes with the baggage of tightly coupling our code to the concrete implementation class, which is a violation of code to an interface and not to an implementation.

Formally, the factory method is defined as providing an interface for object creation but delegating the actual instantiation of objects to subclasses. 

##[Click here for the full tutorial](https://onurdesk.com/lets-understand-the-factory-method-pattern-in-4-steps/)
Understand Micro and macro architecture decisions in 11 steps | Onurdesk | Microservices
Tags: onurdesk, microservices, springboot
Published: 2021-03-07 13:25:45

In this article, we’ll study some key decisions and at what architecture level, micro or macro, they should be taken.
Microservices provide technological isolation. Therefore, it is possible to extend the concept of [micro and macro architecture](https://onurdesk.com/understand-micro-and-macro-architecture-decisions-in-11-steps/) to technical decisions.
For deployment monoliths, these decisions, inevitably, must be implemented globally.
So, only for microservices, technical decisions can be made within the framework of macro or microarchitecture. However, some decisions have to be part of the macro architecture. Otherwise, the integration will be compromised.

* [Micro and macro architecture decisions](https://onurdesk.com/understand-micro-and-macro-architecture-decisions-in-11-steps/#Micro_and_macro_architecture_decisions)
* [Programming languages, frameworks, and infrastructure
* Database
* User interface
* Documentation
* Typical macro architecture decisions
* Communication protocol
* Authentication
* Integration
* Typical micro architecture decisions
* Authorization
* Testing
* Some more decisions point of micro and macro architecture
* Configuration
* Monitoring
* Log Analysis
* Deployment Technology
* Macro architecture operation with separate operations teams
* Standardize only technologies!
* Testing the operation macro architecture
* “You build it, you run it”: operation as microarchitecture
* Operation as a whole is micro or macro architecture
* [Macro architecture decisions: Best practices and advice](https://onurdesk.com/understand-micro-and-macro-architecture-decisions-in-11-steps/)
all_of, any_of, none_of: Examine a range of elements for a particular condition in C++
Tags: cpp, computerscience
Published: 2021-03-07 12:24:01

C++ has a rich set of utilities that most people are not completely aware of. It also has these useful functions which examine whether or not a range of elements satisfy a particular condition.

Let's see them in action before going further:

```
vector<int> arr(10);
iota(arr.begin(), arr.begin() + 10, 1);
// arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

// Checks if all elements are equal to 2 (returns false)
cout<<all_of(arr.begin(), arr.end(), [](int i){return i == 2;});

// Checks if any element is even (returns true)
cout<<any_of(arr.begin(), arr.end(), [](int i){return (i&1) == 0;});

// Checks if no element is divisible by 13 (returns true)
cout<<none_of(arr.begin(), arr.end(), [](int i){return i%13 == 0;});

```

> PS: If you're not familiar with the function syntax, please read [this](https://dev.to/satyam1203/lambda-functions-in-c-76l).

To achieve the same thing, we can always iterate through all the elements and check but I think these functions are still useful as they make the task even easier. :wink:

Let's now move forward and know more about these functions.
&nbsp;

## Use

Include the required header file in order to be able to use **any_of**, **all_of**, **none_of** functions. You can either include _bits/stdc++.h_ or include _algorithm_ on the top of your .cpp file.
&nbsp;

## Accepted function parameters

1. Starting address of the container
2. Ending address (range up to which the elements would be examined)
3. Unary predicate (basically a function that would return a boolean value)
&nbsp;

## Return value

:round_pushpin: all_of returns true if the unary predicate returns true for all the elements in the given range.

:round_pushpin: any_of returns true if the unary predicate returns true for at least one of the elements in the given range.

:round_pushpin: none_of returns true if the unary predicate returns true for no element in the given range.
&nbsp;


For full reference, visit [here](https://en.cppreference.com/w/cpp/algorithm/all_any_none_of)

If you find anything wrong or if you know some more exciting functions or other stuff related to C++, please drop a comment below so we learn together.

My Profile -

[Github](https://github.com/satyam1203)
[LinkedIn](https://linkedin.com/in/satyam1203)
Removing Shopify URL Colleciton Strings
Published: 2021-03-07 12:15:38

You can see when you go through a collection you get this type of URL:

https://www.pursuefitness.co.uk/collections/womens-sustainable-seamless-gym-wear/products/sustainable-seamless-leggings-black

And it makes it extra long. Now there are canonical urls in place that impact this - however, I have gone in and edited the source code to get this removed: 

https://www.pursuefitness.co.uk/collections/womens-sustainable-seamless-gym-wear/
Product-grid-item.liquid 

And then you remove the following: 

<a class=”grid-view-item_liink” href=”{{ product.url | within: collection }} “> 

We just then change that to  <a class=”grid-view-item_liink” href=”{{ product.url }} “>
How-to Build a Transformer for Language Classification in TensorFlow
Tags: python, machinelearning, deeplearning, tutorial
Published: 2021-03-07 12:08:36

{% youtube GYDFBfx8Ts8 %}

Do the markets reflect rational behavior or human irrationality? Mass psychology's effects may not be the only factor driving the markets, but it’s unquestionably significant.

This fascinating quality is something that we can measure and use to predict market movement with surprising accuracy levels.

With the real-time information available to us on massive social media platforms like Twitter, we have all the data we could ever need to create these predictions.

But then comes the question, how can our computer understand what this unstructured text data means?

That is where sentiment analysis comes in. Sentiment analysis is a particularly interesting branch of Natural Language Processing (NLP), which is used to rate the language used in a body of text.

Through sentiment analysis, we can take thousands of tweets about a company and judge whether they are generally positive or negative (the sentiment) in real-time! We will cover:

```
> Getting Twitter Developer Access
  - API Setup
> Twitter API
  - Searching for Tweets
  - Improving our Request
> Building Our Dataset
> Sentiment Analysis
  - Flair
  - Analyzing Tesla Tweets
> Historical Performance
  - TSLA Tweets
  - TSLA Ticker
```
Visual Hierarchy : Definition
Tags: design, ux
Published: 2021-03-07 11:56:47

As a front-end engineers, we may not give a deep focusing to UX Design, but understanding the basics will help us to discuss and improve the workflow between us ( Front-end engineers ) and UX/UI engineers.

In this article, we will take a look at the <I> Visual Hierarchy</I> and its importance in the UI Design.

Have you ever encountered a busy web apps where the UI Patterns ( elements ) are <I>competitive</I> or <I>unordered</I>?

If yes, I'm sure that you struggled to get your task done, or even where to start if its your first usage.

These web apps have a __lack of visual hierarchy__, but what's the definition of <b>Visual Hierarchy</b>?

**The Visual Hierarchy is the organization of UI Patterns in the page or the screen which guides users eyes to the most important element and controls the delivery of information for the end users.**

We can create the visual hierarchy by using:

####1. Color and Contrast.
####2. Scale.
####3. Proximity.

<hr>

###1. Color and Contrast

<ul>

<li>Applying <b>bright colors</b> for important items, and <b>less saturated colors</b> for lesser important items.</li>


<li>Use <b>heavy-weight</b> typefaces to attract attention</li>


<li>Don't use too many colors which makes users overwhelming. It would be better to use between <b>2 to 3</b> colors.</li>


<li>Don't use many contrast variations. This will lead to competitive elements.</li>

</ul>

###2. Scale

<ul>
<li>Bigger elements stand out and attract users's eyes.</li>

<li>Use less then <b>3 variations</b> for the size.</li>

</ul>


###3. Proximity

<ul>

<li>
Implicit and explicit grouping help us discovering the content easily.
</li>

<li>
Give much space between the UI elements.
</li>

</ul>
How to migrate your project with Carthage to Xcode 12
Tags: xcode, ios, swift, carthage
Published: 2021-03-07 11:40:58

---
title: How to migrate your project with Carthage to Xcode 12
published: true
description:
tags: xcode,ios,swift,carthage
---

According to Apple's announcement, you need to build your app with Xcode 12 from April 2021 to submit to the App Store. I really got stuck migrating my project which uses Carthage, so let's see how I managed to  do that in this article.

# Use XCFramework
XCFramework is necessary to fit to Xcode 12.
This article doesn't refer to the detail of XCFramework, so please check other sources for more information.

## Update Carthage to 0.37.0
Carthage 0.37.0 added support for XCFramework.

## Add Carthage `--use-xcframeworks` option
E.g. `carthage bootstrap --use-xcframeworks --platform iOS --no-use-binaries`

## Link to XCFrameworks
In TARGETS -> General tab -> Frameworks, Libraries, and Embedded Content,
replace `*.framework` with `*.xcframework`.
`*.xcframework` files are located in `Carthage/Build`.

## Update Framework Search Paths
In TARGETS -> Build Settings tab -> Search Paths -> Framework Search Paths,
Replace `*.framework`'s parent folder path with `*.xcframework`'s.
E.g. `$(PROJECT_DIR)/Carthage/Build/iOS` -> `$(PROJECT_DIR)/Carthage/Build`

## Update Not to Run Script `copy-frameworks`
In TARGETS -> Build Phases tab,
you no longer need to copy frameworks.

# Workaround for Test Target
In my project, steps above enabled main target to work with Xcode 12, but not test target.
I use some libraries only for test target, but building test target failed saying `No such module (library name)`.
Let's see how to fix that.

## Update Framework Search Paths
In TARGETS -> Build Settings tab -> Search Paths -> Framework Search Paths,
add architectures where you run.
E.g. `Any iOS SDK` and `Any iOS Simulator SDK`

Then add `*.framework`'s parent folder path for each architecture.
`*.framework` files are located in `*.xcframework/(architecture)`.
E.g. `$(PROJECT_DIR)/Carthage/Build/Foo.xcframework/ios-arm64_armv7` for `Any iOS SDK`,
`$(PROJECT_DIR)/Carthage/Build/Foo.xcframework/ios-arm64_i386_x86_64-simulator` for `Any iOS Simulator SDK`

## Remove Links to Frameworks, XCFrameworks
I succeeded to build the target without setting links to Frameworks or XCFrameworks.
Remove them from TARGETS -> Build Phases tab -> Link Binary With Libraries.

## Copy Frameworks
Copying frameworks is still necessary for this target, otherwise you'll encounter `Library not loaded` when running the test.
In TARGETS -> Build Phases tab, create (or update if exists) Copy Files Phase specifying `*.xcframework`, not `*.framework`.

# Reference
[Carthage / Building platform-independent XCFrameworks (Xcode 12 and above)](https://github.com/Carthage/Carthage#building-platform-independent-xcframeworks-xcode-12-and-above)