teleren/devto huggingface dataset:
CKA 2020 September
Tags: kubernetes, cka
Published: 2020-09-28 12:23:17

I took CKA exam in this September and passed it. So let me share my experience and thought on it.

CKA, Certified Kubernetes Administrator, is mainly provided by Linux foundation.
https://www.cncf.io/certification/cka/

It's updated this September, so check what's changed.
https://training.linuxfoundation.org/cka-program-changes-2020/

Here's some points to know...
- Exam duration is 2 hours
- 17~20 questions
- Each question has 4~13% weight
- Passing line is 66%
- Only official docs can be refered during the exam
https://kubernetes.io/docs/home/ (and k8s github page?)
- Be sure that your desk/working space is cleared. Nothing on the wall, under your desk
- No smartwatch on your wrist
- Test result will be sent out within 36 hours after test completion. In my case, I waited for 34 hours.

**Preparation is key**
I used 2 website to get ready for the exam.

1/ Udemy, CKA course
https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/

This is very popular among CKA candidates. It covers 90% of exam topic(as of now), and starts from very basic.
But, may be because of september updates, some topics are not covered(StatefulSets, Service account for example). For those, you have to take CKAD course.

2/ Killer.sh
https://killer.sh/

No lecture part, only practice tests (and detailed answers). Comparing to udemy course, this is much harder. It is targeted to "hard" level of actual exam. So it is a good reharsal.

**Some thoughts**
- I don't think you need to use tmux. In my opinion, it doesn't help much. If you are not used to it, learning cost is a bit high, and it doesn't pay off much.

- alias, export and auto completion of kubectl is your friends. Some people says auto completion is too heavy to use in exam environment, but it was no problem for me.

Let me know if you have any question, I'll answer that as possible!
5 incredibly useful stuff your browser can do.
Tags: webdev, productivity, functional
Published: 2020-09-28 12:19:28

hey again so i am gonna tell you some real increabily usefull stuff u can do with your browser 

## **1. the instant search feature**

so mostly when u try to surf youtube or anything fast on some easy searchable sites u type the whole adress and search it like this 

![](https://media.discordapp.net/attachments/705110233474793512/760101744570662942/unknown.png)

thats very time consuming, now next time just type the link and press tab easy as that ¯\\\_(ツ)\_/¯

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6t7i1q4bia90lfiojgli.gif)

## **2. Teaching your browser some tricks**

within less than a second you can give your browser its own quick-access scratchpad that’ll let you jot down thoughts right within the browser—no extensions required. All you have to do is paste a snippet of code into Chrome’s address bar

**TRY OUT THIS CODE FOR EXAMPLE**

{% gist https://gist.github.com/devloves/3ca2a52fc267b3ae186c424c60d32273 %}

Paste it in your browser window and run it 

![](https://cdn.discordapp.com/attachments/705110233474793512/760111158451109908/likebro.gif)

## **3. Using full screen Dino**

ik ik its not that productive but ya know its fun... hehe
just type in your address bar `chrome://dino`

![](https://media.discordapp.net/attachments/705110233474793512/760112153729564693/dino.gif?width=812&height=538)

###### oof bad quality recording sorry for that

## **4. making shortcuts for extensions** 

id you know you can create custom keyboard shortcuts for opening extensions on demand? Some extensions even allow you to create shortcuts for specific commands. Type `chrome://extensions/shortcuts` into your browser’s address bar to set up your own.

## **5. i remember that says chrome**

Chrome can strip all formatting from copied text as you paste it—eliminating links, fonts, colors, and anything else you might not want to carry over. Once you’ve copied some text, hit Ctrl- or Cmd-Shift-V to give it a whirl.
Day 14 - Implementing useContext() - REST Countries Part IV
Published: 2020-09-28 12:17:42

The project guidelines required an implementation of dark and light modes for better visibility in different environments. This can be easily achieved by creating a state that can indicates what mode the application is set to and passing this mode state down as props to child components. A more efficient way to do this is to use context.

![Dark Mode](https://dev-to-uploads.s3.amazonaws.com/i/mznrpbyp58zrzkfbbnj1.png)

## What I Learned

I already knew how to create context and use providers and consumers in React. But this was my second time using the useContext() hook and discovered it was much easier to implement!

![example gif for modes] (https://media.giphy.com/media/U0O5iwBAR1PXsKoq8u/giphy.gif)

## How This Will Help Me

This project actually helped me get better with how styles and context can work together in achieving dynamic looks. And with the completion of this element, I completed the REST countries application and ended up with this:

![final](https://media.giphy.com/media/lijm3RvxfnU2G61ve4/giphy.gif)



Onto the next challenge!
Quickly Print First Page of Each Worksheet in Excel Office 365!!
Tags: kutoolsexceltutorial, printfirstpageofeach, kutools
Published: 2020-09-29 04:32:07

---
title: Quickly Print First Page of Each Worksheet in Excel Office 365!!
published: true
date: 2020-09-28 12:16:06 UTC
tags: KutoolsExcelTutorial,PrintFirstPageofEach,Kutools
canonical_url: https://geekexcel.com/quickly-print-first-page-of-each-worksheet-in-excel-office-365/
---

## Print First Page of Each Worksheet in Excel:

In this article, you will understand the steps to **Print the First Page of Each Worksheet in Excel Office 365** using **Kutools** with an example. Get an official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

**Note:** [kutools for Excel](https://geekexcel.com/get-kutools-for-ms-excel-2019-2016-2013-2010-2007-office-365/) has more than 180 features which are used to complete the difficult task with several clicks. If you want to use Kutools, you need to install it from Excel’s official website.
## **Steps to Print the First Page of Each Worksheet:**

To print the first page of each worksheet in the spreadsheet, do as follows.

- You need to open and keep active the workbook that you want to print the first page of each worksheet.
- Go to the **Kutools Plus** Tab, **select** the **Printing** option, **choose** the **Print First Page of Each Worksheet** option from the drop-down list.

![Select Print First Page of Each Worksheet option](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/09/1-107.png)<figcaption id="caption-attachment-14722">Select Print First Page of Each Worksheet option</figcaption>

- Now, the print preview section will appear on your screen, in that by default the 1<sup>st</sup> page option has been selected and readily available to print.

![Print Preview](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/09/EXCEL_JX1RFrwka6.png)<figcaption id="caption-attachment-14727">Print Preview</figcaption>

- **Click** the **print button** to print the document.

## **Closure:**

In this short article, you will understand the steps to **Print the First Page of Each Worksheet in Excel Office 365** using **Kutools** with an example. Share your **feedback** in the comment section. Thanks for visiting **[Geek Excel.](https://geekexcel.com/)** Keep Learning!!
PrimeVue 3.0.0-rc.1 brings 60+ UI Components with Excellent Support for Vue 3
Tags: vue, javascript, webdev, css
Published: 2020-09-28 12:13:54

Ready to get started with Vue 3 and looking for a UI component suite? If so we have good news!

[PrimeVue 3.0.0-rc.1](https://www.primefaces.org/primevue/showcase/#/) is released with excellent support and compatibility for Vue 3. PrimeVue provides 60+ rich set of open source UI components for Vue 3 with stunning **bootstrap**, **material** and **custom themes** along with PrimeFlex css utilities, dashboards, icons, visual theme designer and more.
Applying remotely sucks - how can we make it better?
Published: 2020-09-28 12:09:35

Hi fellow devs, 

Since we heard that finding remote/freelance jobs is frustrating and intransparent many times now (from some of you as well), we want to find ways to make it better.

For that, we need five minutes of your time and would be extremely grateful if you could fill out this survey of ours: https://mvpf.typeform.com/to/mX2zemQu

Once our solution is live, you’ll get preferential access and personal onboarding if you're interested :)

Thanks so much!
Paul
Day 13 - Country Page: Rest Countries Part III
Published: 2020-09-28 12:04:36

I started working on the country detail page and ended up with this:


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

## What I Learned

I got more practice with CSS grid in making responsive layouts for mobile and desktop. I also filtered specific items for each country and delved more into the REST countries documentation.

## How This Will Help Me

It was helpful to really understand documentation and experience how a well designed API can make a developer be more efficient with their programming. 

Onto the next challenge!
Daily Developer Jokes - Monday, Sep 28, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-09-28 12:00:22

---
title: "Daily Developer Jokes - Monday, Sep 28, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Monday%2C%20Sep%2028%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12595564d36.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why shouldn't you trust Matlab developers?

___A:___ Because they're always plotting something.
 -->
The Benefits of TDD, Unit Testing, and Code Quality
Tags: softwaredevelopment, agile, codequality, testdrivendevelopment
Published: 2020-09-28 13:05:07

---
title: The Benefits of TDD, Unit Testing, and Code Quality
published: true
date: 2020-09-28 11:53:35 UTC
tags: softwaredevelopment,agile,codequality,testdrivendevelopment
canonical_url: https://medium.com/@domenicosibilio/the-benefits-of-tdd-unit-testing-and-code-quality-97d30788f329
---

[![](https://cdn-images-1.medium.com/max/2600/1*HhXCvu-1sKRAQ1Tv7Zepog.jpeg)](https://medium.com/@domenicosibilio/the-benefits-of-tdd-unit-testing-and-code-quality-97d30788f329?source=rss-299466747366------2)

It’s never too late to pick up some healthy Software Craftsmanship habits, but sometimes we might need a little push to do so.

[Continue reading on Medium »](https://medium.com/@domenicosibilio/the-benefits-of-tdd-unit-testing-and-code-quality-97d30788f329?source=rss-299466747366------2)
CQRS (Command and Query Responsibility Segregation) Architectural Pattern
Tags: designpatterns, architecture, codedesign, software
Published: 2020-09-28 11:29:35

---
title: CQRS (Command and Query Responsibility Segregation) Architectural Pattern
published: true
description: Short explanation of what is "command and query responsibility segregation" pattern
tags: designpatterns,architecture,codedesign,software
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/6x25dsqj0zhh1ttev902.jpg
series: Software Architecture Patterns
---

Following the comment of @klyse in my [post](https://dev.to/genichm/design-patterns-with-examples-in-c-2588). I decided to explain in a few words what is CQRS pattern and how we implemented it in our ETL system.
Command and Query Responsibility Segregation pattern separates reads and updates operations for data storage. I.e. the complete separation between insert/update and select operations. 
If you want to understand the pattern better I can recommend the following article https://docs.microsoft.com/en-us/azure/architecture/patterns/cqrs

###How we implemented it in our ETL system.
In the heart of our system located 2 microservices, 1. The processing service that is responsible for processing and calculations of the data consumed from the Kafka topic has only select queries for data that helps to accomplish the mission, at the end processed data produced to another Kafka topic and 2. Sync service responsible for synchronization of processed data to our time-series ETL database TimescaleDB and the multi-tenant data storage SQL Server. This service updates and inserts processed data into the databases.
###Why we selected this pattern
1. The main reason is flexibility in scalability. Our reads and writes operations are not balanced, it means that when we scale-out the number of processing and synchronization services is not the same.
2. Second but very important reason is data consistency, all the updates and inserts operations done by the same service and the same code.
3. Ability to navigate the data to the different systems by developing new synchronization services.
4. Great flexibility in the development process.

Below you can see the container diagram of this part of the system.

![CQRS part of the system](https://dev-to-uploads.s3.amazonaws.com/i/6x25dsqj0zhh1ttev902.jpg)
Easy Methods to Convert Exchange EDB to PST File
Tags: edbtopst, convertedbtopst, edbtopstconverter, edbtopstconversion
Published: 2020-09-28 11:29:29


If you want to Convert EDB to PST format then you can use this third party tool EDB to PST Converter Software that can Convert your EDB file to PST file without any data loss risk. This Software gives perfect accurate result and its convert every bit of data from Exchange EDB file to PST, EML, MSG, PDF and HTML formats. Free demo version is the best Option to check the performance of this software and where you can also save 30 emails per folder at free of cost.

Try this software free demo version from here: http://www.edb.ostintopstconverter.com/
EDB to PST Converter to Convert Exchange EDB Files to PST
Tags: edbtopst, convertedbtopst, edbtopstconversion
Published: 2020-09-28 11:28:38

EDB to PST Converter provides a complete solution to Recover Exchange Database (EDB) files. This Software Convert your single and multiple EDB file to PST file. this Software also allows user to Export EDB file to Office 365 Account or live Exchange Server. with the help of this Software you can easily Repair your Corrupt or damaged EDB files and Recover deleted EDB files data. this tool also supports all the latest version of MS Outlook and Windows OS. just try free demo version and see the original results.

You can try this software free trial version from here: http://www.convertedbtopst.emltopstsoftware.com/
Solved: How to bundle Python apps within AWS CDK
Tags: aws, cdk, python, docker
Published: 2020-09-28 11:21:00

---
title: Solved: How to bundle Python apps within AWS CDK
published: true
description: I could need some help getting some lambdas to run
tags: AWS, CDK, python, docker
---

Hi :wave:

:bulb: Solution at the end :see_no_evil:

So I've setup a basic TypeScript project with the AWS-CDK by running `cdk init app --language=typescript`. Now I'd like to use some lambda functions written in Python because… math :nerd_face:

I am using `@aws-cdk/aws-lambda-python` to declare these functions like so:

```ts
import * as cdk from "@aws-cdk/core"
import * as lambdaPython from "@aws-cdk/aws-lambda-python"

export class MyStack extends cdk.Stack {
  constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props)

    new lambdaPython.PythonFunction(this, "MyFunction", {
      entry: "lib/lambda/my_function",
    })
  }
}
```

And within the `lib/lambda/my_function` folder, there is the `index.py` with a `handler` function [which are both the defaults for the package](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-python-readme.html#python-function).

But running `cdk synth` results in this:

```sh
$ cdk synth
[Status 1] stdout:


stderr: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
```

I have no idea about how Docker needs to be setup. Unfortunately, I cannot find any info on this within the AWS documentation. Does anyone know what I'd have to do to get the (correct? :sweat_smile:) Docker container running?

## Solution

Use the latest Docker version, maybe? :sweat_smile: I had a very old one (`1.11.XX`) running and now it works by installing the latest Docker Desktop (`19.X.X`) :shrug:

So overall: This is really nice, you can very easily mix TypeScript and Python in such a setup. Awesome! :rocket: :smile:
I made a website where you can download free Adobe XD templates to improve your HTML and CSS skills!
Tags: design, webdev, html, css
Published: 2020-09-28 09:44:44

Hola amigos! 👋

I'm a designer who's always been interested in making their projects real. Unfortunately, I sucked at frontend and I still do, so I used Frontend Mentor to try and improve my HTML and CSS skills. The challenges were great but unfortunately the free templates were limited.

Cue Good Code, free Adobe XD templates that you can use to improve your HTML and CSS skills. The number of templates is currently limited but I plan on adding more with different variations (i.e. landing pages, pricing pages, etc.).

Let me know what you think of this and what improvements can be made, always looking to make any of my projects better!

Link to Good Code: https://moeminm.github.io/goodcode
Live Streaming integration for Developers
Tags: webdev, devops
Published: 2020-09-28 09:39:54

Products:
1. Live Interactive Video Streaming
Our Live Interactive Video Streaming service supports one-to-one video call, one-to-many video broadcasting and many-to-many video conferencing. It can be used in many different scenarios where video interaction is required, such as video social networking, group video conferencing, online classroom, etc.

2. Real-Time Audio Streaming
Our Real-time Audio Streaming service supports one-to-one voice chat, one-to-many voice conversation (up to millions of participants), applicable to VoIP phone services, ganging-up in games, internet radio stations and so on.

3. Audio/Video Recording and Archiving
Our Audio/Video Recording and Archiving service empowers enterprises with on-premises video witness system that can meet various legal and compliance requirements. It can be used for video witnessing of bank account opening, brokerage account opening, in-person interview and other events.

4. Voice Chatroom
Our Voice Chatroom service supports simultaneous speaking in group voice chat, background music and sound effects. It allows users to keep the chat active in the background while switching to other applications.
How to read httpservletrequest inside Spring Exception Handler?
Tags: spring, springboot, exceptionhandling, httpservletrequest
Published: 2020-09-28 09:33:47

Tried to read http requests in a spring exception handler directly and couldn’t do it . Looks like Httprequest  can be read only once. To resolve this I used httpservlet wrapper object and it worked fine . Here is how to do it
https://fullstackdeveloper.guru/2020/09/28/how-to-read-httprequest-in-spring-boot-exception-handler/
Simplify code by promisifying `setTimeout`
Tags: javascript, utility, webdev
Published: 2020-09-28 09:33:28

---
title: Simplify code by promisifying `setTimeout`
description: Simplify and clean your codebase by making setTimeout more idiomatic using Promises
published: true
canonical_url: https://puruvj.dev/blog/flatten-settimeout
---
> Originally Published @ [puruvj.dev](https://puruvj.dev/blog/flatten-settimeout)

Recently, when I was working on my practice project [Microsoft Todo Clone](https://ms-todo.vercel.app), I needed to implement code like this:

```txt
#1 Do Task 1
#2 Wait for 200ms
#3 Do task 2
#4 Wait for 200ms
#5 Do Task 3
```

Notice `#2` and `#4`. They smell of setTimeout😖. setTimeout takes in a callback, meaning there will be an indentation. Whenever those appear, means the code's gonna get ugly.

So I wrote this code in JS

```js
doTask1();

setTimeout(() => {
  doTask2();

  setTimeout(() => {
    doTask3();
  }, 200);
}, 200);
```

Now you can see for yourself, this code SMELLS. BAD.

The moment I wrote it, I knew it wouldn't work in long-term. What if I needed to an extra step of waiting and doing a Task #4? Or rearranging the order.

So, I declared a utility function and it solved the problem completely.

```js
/**
 * @param {number} time Time to wait for in milliseconds
 */
function waitFor(time) {
  return new Promise((resolve) => setTimeout(resolve, time));
}
```

Here we're returning a `Promise`, which resolves when the `setTimeout` function inside runs.

It's usage would be as simple as

```js
await waitFor(200);
```

So the spaghetti code above could be rearranged like this:

```js
doTask1();

await waitFor(200);

doTask2();

await waitFor(200);

doTask3();
```

See how simple it became? It reads exactly like the text version I wrote at the top. It's very idiomatic 😎.

## Shorter code

That code snippet could be simplified further

```js
const waitFor = (time) => new Promise((resolve) => setTimeout(resolve, time));
```
Time Manipulation in Software Testing
Tags: testing, todayisearched, qualityassurance, engineeringmonday
Published: 2020-09-28 09:29:44

As a software tester you probably already know how important it is to test software’s **behavior** under different circumstances. One of those circumstances may be watching your software perform while you manipulate with **time**. 


You can time travel to future or past dates, different time zones, leap year, end of the year, month, billing cycle, test the daylight saving time, or just fast-forward to the time that your software requires to finish some action. If you don't want to do any changes to your code, change the system clock, or isolate the server then you should find yourself a tool that will help you.

Benefits:
1. Early bug discovery in software development - There are some test case examples where you would need to wait for some time to see the outcome of your test. For example, you want to get a notification in your software one day before the end of the month. Instead of waiting, just change the date.
2. Discovering possible future miscalculations in reports - You can speed up the time to see how will your software behave based upon the parameters that you have entered.
3. Financial validation - Validate your finances at any point in time in the future.
4. Workflows testing - See how the events in your workflow will look before you reach them in real-time.
5. Policy expiration testing - Check if your clients will be notified when the policy expiration date is near.
7. Data aging/archiving - Check if the data will be archived in the given time.

If you want to expand your testing possibilities, time manipulation software tools are definitely the way to go. Besides you can use them in your automated tests as well.

To start with, you can check some of these tools:

- [TimeShiftX](https://www.vornexinc.com)
- [Time Machine](https://solution-soft.com/products/time-machine)
- [Serial Port Tool](https://www.serialporttool.com/GK/time-travel)

Feel free to share your experience with us if you have already tried using or even automating these kinds of tools.