teleren/devto huggingface dataset:
What's the best job advice you've heard?
Tags: career, advice, discuss, watercooler
Published: 2021-02-23 15:03:17

---
title: What's the best job advice you've heard?
published: true
description: there is some advice I've gotten that I will always appreciate, the thing that stands out as the absolute best
tags: career, advice, discuss, watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/etx29gh1vkzptuli59o3.jpg
---

Often job wisdom should be taken with a pinch of salt: what might be great advice for one person just isn't right for you. I often feel like those who are most willing to tell me how to succeed aren't those who worked hard but those who were extremely lucky.

But there is some advice I've gotten that I will always appreciate, the thing that stands out as the absolute best:

> No matter how much you want a particular job, take the time in the interview stage to ask about concerns that really matter to you. You're interviewing the job as much as they're interviewing you.

Like I mentioned above even this good advice isn't universal, but it's stood me in good stead through the last four job searches.

What's the best job advice you've ever gotten?
JavaScript Interview Question #20: Can you sum arrays with objects in JS?
Tags: beginners, javascript, webdev, codenewbie
Published: 2021-02-23 14:39:28

![js-test-20](https://learn.coderslang.com/js-test-20.png)

What’s the sum of an empty object and an empty array in JS? Is there any `length` to be found?
.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Once again, we’re dealing with type conversion in JavaScript.

Both an empty array and an empty object will be [converted to strings](https://learn.coderslang.com/js-test-22-tostring-nuances-in-javascript/).

In the case of an empty array, it will be an empty string.

But for the empty object, we get the string `[object Object]`!

The length of this string is greater than 10, so we’ll see the first message logged to the console.

More examples of JavaScript typecast are covered [here](https://learn.coderslang.com/0002-basic-javascript-arithmetics/).

---

**ANSWER**: the string `wow, this is quite long` will appear on the screen.

[Learn Full Stack JavaScript](https://js.coderslang.com/sign-in)
Day 57 Of 100DaysOfCode: Money Change Problem
Tags: womenintech, 100daysofcode, codenewbie, python
Published: 2021-02-23 14:30:45

Today is my day 57th of #100dayofcode and #python. Today also continued  to learned more properties of SQL including INNER JOIN,LEFT JOIN, RIGHT JOIN, FULL JOIN, IS LIKE, NOT LIKE, IS NULL, IS NOT NULL etc from [Datacamp](https://campus.datacamp.com/courses/joining-data-in-postgresql/outer-joins-and-cross-joins?ex=11)

Also tried to complete some assignment in coursera regarding to the topic algorithmic toolbox. I tired to solve money change problems, Fractional Knapsack problems, car fueling problem.

#Python code
We are going to change Rs.28. In the shop shopkeeper has only Rs.1, Rs.5, Rs.10 as a change. So, possible change for 28 are 10,10,5,1,1,1. For this I tried to write following code.

```python
number = 28
valid_changes = [1, 5, 10]
rem = number
changes=[]

while rem!=0:
#     print(rem)
    if rem%valid_changes[2]==0:
        changes.extend([valid_changes[2]])
        rem -= valid_changes[2]
    elif rem%valid_changes[1]==0:
        changes.extend([valid_changes[1]])
        rem -= valid_changes[1]
    else:
        changes.extend([1])
        rem-=1
print(len(changes))
```
When above code is run we get,

```python
28
27
26
25
20
10
[1, 1, 1, 5, 10, 10]
```
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Day 57 Of <a href="https://twitter.com/hashtag/100DaysOfCode?src=hash&amp;ref_src=twsrc%5Etfw">#100DaysOfCode</a> <br>* More properties of SQL(LEFT JOIN, RIGHT JOIN, FULL JOIN, INNER JOIN)<br>* More About Algorithm<br>* Code For Money Change<a href="https://twitter.com/hashtag/WomenWhoCode?src=hash&amp;ref_src=twsrc%5Etfw">#WomenWhoCode</a> <a href="https://twitter.com/hashtag/teachertwitter?src=hash&amp;ref_src=twsrc%5Etfw">#teachertwitter</a> <a href="https://twitter.com/hashtag/DEVCommunity?src=hash&amp;ref_src=twsrc%5Etfw">#DEVCommunity</a> <a href="https://t.co/1zuUa1nQ6M">pic.twitter.com/1zuUa1nQ6M</a></p>&mdash; Durga Pokharel (@mathdurga) <a href="https://twitter.com/mathdurga/status/1364220708948119556?ref_src=twsrc%5Etfw">February 23, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Set Xcode build numbers to incremented or timestamps
Published: 2021-02-23 14:22:09

---
title: Set Xcode build numbers to incremented or timestamps
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---

Never again should you need to archive and upload a build to just be told you forgot to change the build number in Info.plist. Automate it! Simply add a build phase to your project that either increments the build version by 1 or just use a timestamp:

## Incremented number
```
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
```

## Timestamp
```
buildNumber=$(date +%Y%m%d%H%M)
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
```

Also make sure to check "For install builds only" to only run this step when archiving.

![test](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4h5yza64krk8gqqmbvm.png)

**Note for Appcenter! If you have your build config on Appcenter configured to increment builds numbers you might run into issues if you use a custom build step like this.**
how to create a triangle 🔺 in HTML and CSS
Published: 2021-02-23 14:20:36

<h2 style="text-align: left;"><b>How to create a triangle 🔺 in HTML and CSS</b></h2>

Hello guys, today we will see you in this blog you'll learn how to create a triangle 🔺 in HTML and CSS code for website| HTML Website Tutorials indicoderz .Earlier I have shared a blog on <a href="https://indicoderz.blogspot.com/2021/02/how-to-create-triangle-in-html-and-css.html">how to create a triangle 🔺 in HTML and CSS code</a> for website| HTML Website Tutorials indicoderz  Generally

<h2 style="text-align: left;"><b>You might like this:</b></h2>
<ul style="text-align: left;"><li><b><a href="https://indicoderz.blogspot.com/2021/02/battery-loading-animation-using-html-and-css-codes.html" rel="nofollow" target="_blank">battery loading animation html and css&nbsp;</a></b></li></ul><ul style="text-align: left;"><li><b><a href="https://indicoderz.blogspot.com/2021/02/how-to-make-button-effect-using-html-and-css.html" rel="nofollow" target="_blank">buttom effect using html and css</a></b></li></ul><ul style="text-align: left;"><li><b><a href="https://indicoderz.blogspot.com/2020/10/how-to-make-drop-down-menu-using-html.html" rel="nofollow" target="_blank">drop down menu using html and css&nbsp;</a></b></li></ul><ul style="text-align: left;"><li><b><a href="https://indicoderz.blogspot.com/2020/10/dot-animation-css-indicoderz.html" rel="nofollow" target="_blank">dot loader animation using html and css&nbsp;&nbsp;</a></b></li></ul>
 HTML code
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jdun22ees6eicfherlet.jpg)

CSS code
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tyzwq6mnr655xl871wko.jpg)

Output--
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ojofeh8w8jclrhe2alri.jpg)

<a href="https://indicoderz.blogspot.com/"> download source file on here </a>
Create Mobx Store In React Native using Hooks & Combining multiple stores
Tags: reactnative, mobx, typescript, hooks
Published: 2021-02-23 14:17:52

>Create your stores

```
interface Todo {
  id: number;
  text: string;
}
class TodoStore {
  root: RootStore;
  listTodo: Todo[] = [];
  constructor(root: RootStore) {
    makeAutoObservable(this);
    this.root = root;
  }
  setTodo(todo: Todo) {
    this.listTodo.push(todo);
  }

  get getTodoAll() {
    return this.listTodo;
  }

  getTodoId(id: number) {
    return this.listTodo.filter((f) => f.id == id);
  }
}

class OtherStore {
  root: RootStore;
  totalTodoCount: number = 0;
  constructor(root: RootStore) {
    makeAutoObservable(this);
    this.root = root;
  }

  init() {
    // safe to access other stores
    const allData = this.root.todo.getTodoAll;
    this.totalTodoCount = allData.length;
  }
}
```

>Create root store & combine all stores in root

```
class RootStore {
  todo: TodoStore;
  other: OtherStore;
  constructor() {
    this.todo = new TodoStore(this);
    this.other = new OtherStore(this);

    this.other.init();
  }
}

```
>Create Provider

```
let store: RootStore;
const StoreContext = createContext<RootStore | undefined>(undefined);
export default function RootStoreProvider({children}: {children: ReactNode}) {
  const root = store ?? new RootStore();
  return <StoreContext.Provider value={root}>{children}</StoreContext.Provider>;
}
```

>Create hooks for accessing the store

```
export function useRootStore() {
  const context = useContext(StoreContext);
  if (context === undefined) {
    throw new Error('useRootStore must be used within RootStoreProvider');
  }
  return context;
}

```

>Create UI screen

```
const AppScreen1 = observer(() => {
  const store = useRootStore();
  const AddNew = () => {
    const ID = Math.floor(1000 + Math.random() * 9000);
    store.todo.setTodo({id: ID, text: `Todo Item ${ID}`});
  };
  return (
    <View style={{flex: 1}}>
      {store.todo.getTodoAll.map((item) => {
        return (
          <Text style={{fontWeight: 'bold'}}>
            {item.id.toString()}/{item.text}
          </Text>
        );
      })}
      <Button title="Add New Todo" onPress={AddNew} />
    </View>
  );
});
```
>Create app entry

```
export const AppEntry = () => {
  return (
    <RootStoreProvider>
      <AppScreen1 />
    </RootStoreProvider>
  );
};

```

Thanks,

https://dev.to/ivandotv/mobx-root-store-pattern-with-react-hooks-318d
https://mobx.js.org/README.html
https://github.com/leighhalliday/mobx2021/blob/main/src/store.tsx
https://unsplash.com/photos/vc3iVL_znJ8
Intro to Crocks Monads
Tags: contributing, fpjs, training
Published: 2021-02-28 21:15:40

---
title: Intro to Crocks Monads
published: true
date: 2021-02-23 14:00:02 UTC
tags: contributing,fpjs,training
canonical_url: https://medium.com/@hyper63/intro-to-crocks-monads-7a425a7134ba
---

EvilSoft the creator of crocks a few years a go provided some great videos on Async, Reader, and Async Reader. These videos can give you a great introduction to using crocks within your code base. They can also be helpful if you plan to contribute to hyper63, since we use Async and AsyncReader in the core project.

{% youtube O1Gu5b7rxbw %}

{% youtube TFtsQylEZes %}

{% youtube x1MxCXmHuwI %}

#### Summary

Functional Javascript can be a huge boost to your application, in these videos you will see how crocks leverages theses patterns to create clean code.

For more Functional Javascript videos checkout EvilSofts YouTube Channel:  
  
[https://www.youtube.com/channel/UCc8LoGpIa8tRNosGGJroS2Q](https://www.youtube.com/channel/UCc8LoGpIa8tRNosGGJroS2Q)
The Blog Hacks That You Need In 2021
Tags: webdev, monitoring
Published: 2021-02-23 13:57:56

The increasing competition and changes in the business world are forcing people to adopt new business tactics. Some of them include [online marketing] (https://www.forbes.com/sites/robertadams/2017/04/27/what-is-online-marketing-the-definitive-guide-to-internet-visibility/). Apart from targeting your existing customers, you get an opportunity to interact with new customers. Your location does not limit you since you can get customers globally. One way to make your customers loyal is by using a blog. So, how do you make an excellent blog? Below are some tips. 

##Know Your Audience##

What group are you targeting? Maybe it is millennial. You cannot start giving them the tactics of joining Facebook. They already have that information. Knowing your audience will help you see the kind of content they require. You will also decide on the right tone to use to convey your message.

##Choose a Blog Topic##

What is your business all about? Assuming you sell car wheels. You can start the first blog by explaining to customers how they can identify the right car wheels. But in case you do not have a business, but you want to write a blog, you can check some eBooks on amazon and get an idea of what to write.

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

##Write Your Blog##

Before writing your blog, you must do some thorough research. When you have enough materials, chances of procrastinating are low. You must also check the facts to avoid giving people wrong information. Note that inaccurate information makes readers doubt the credibility of all your blogs. Use short paragraphs, shorten the sentences, and use headings. 

##Edit and Publish Your Blog##

You can only compete with the billions of websites by making sure that your blog is perfect. Other than editing on your own, you can include other trusted people to give their opinions. Online tools are also available to make your editing easy. Only publish your blog after polishing it thoroughly. 

Get some [free SEO checker online](https://sitechecker.pro/) to know if your blog has maximum optimization. Remember, SEO increases your conversion rate and promotes better cost management. It also builds the credibility of your brand, among other benefits.

##Marketing##

How many social media platforms have you joined? Include a blog link to each of your profiles. Your friends can also add the link to their profiles. Instead of sharing worthless posts, share your blog instead. Request your friends and relatives to read and share the blog. Update your blog regularly. 

###Conclusion###

Rocket science is no necessary when crafting a blog. Knowing your audience is the first thing to help you know what to write. Get the right topic, depending on the type of business you have. Write a nice blog, and do not fail to edit once through. Publish it and market it thoroughly
(Javascript) My learning journey Part 4: Functions
Tags: javascript, beginners, tutorial
Published: 2021-02-23 13:21:18

---
title: (Javascript) My learning journey Part 4: Functions
published: true
description: 
tags: javascript, beginner, tutorial
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ik1c8mr2sz8zi3g466dq.jpg
series: (Javascript) My learning journey
---

An essential point to remember a training course is to take notes and discuss the subject with others. That's why every day I will post on dev.to the concepts and notes that I learned the day before.

If you want to miss nothing click follow and you are welcome to comments and discuss with me.

Without further ado here is a summary of my notes for day 4.


<h2>Functions</h2>
A function is a piece of code that we can be re-use over and over again in our code.
```js
function displayHello() {
  console.log('Hello World')
}

// Function can be invoke (run)
displayHello() // 'Hello World'

// Data can be pass to function
function display(greeting) {
  console.log(greeting)
}

// Invoke with the data pass as parameter
display('Hello World') // 'Hello World'


// Function can return value
function sumNumber(number1, number2) {
  return number1 + number2
}

console.log(sumNumber(10, 5)) // 15

```
Function declaration vs function expression
```js
// Function declaration (can be call before declaration)
function displayGreeting(greeting) {
  return 'Hello ' + greeting
}

// Function expression (can be use in code in place of expression)
const displayGreeting = function (greeting) {
  return 'Hello ' + greeting
}

```

Arrow Function
```js
// Shorthand function expression 
// 1. Remove the function() keyword 
// 2. Remove curly brace {}
// 3. Remove return keyword 
// 4. Add => between parameters and function body
const displayGreeting = greeting => 'Hello ' + greeting

// With mutli parameters
const addNumber = (number1, number2) => number1 + number2

// With no parameters
const displayGreeting = () => 'Hello World'

// Multi-lines Arrow function
// Bring back the curly brace and return keyword
const displayGreeting = (greeting) => {
  console.log('Hello World')
  console.log('Hello Mike')
  return true 
}

```


<h2>Conclusion</h2>
That's it for this part. In the next one we will cover Array and Object!
Deploying production Rails apps to GCP
Tags: rails, googlecloud, ruby
Published: 2021-02-23 13:03:23

We do quite a bit of Rails and GCP at [keypup.io](https://www.keypup.io). Recently I decided to make a full write-up of how we deployed our micro-service architecture to GCP.

https://www.keypup.io/blog/deploying-production-rails-applications-to-gcp

The blog post includes:
- Web service deployment and hosting using Cloud Run
- Database/cache setups
- Log management
- Uptime checks
- Background jobs using Cloud Taks
- Cross-component communication using Pub/Sub

If you have any question/comment, feel free to reply!
Daily Developer Jokes - Tuesday, Feb 23, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-02-23 13:00:19

---
title: "Daily Developer Jokes - Tuesday, Feb 23, 2021"
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=Tuesday%2C%20Feb%2023%2C%202021"
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/5e1258ca137e1.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 was the computer freezing?

___A:___ It left its Windows open!
 -->
Best Technology Watch with Feedly and Pocket (Save a lot of time)
Tags: productivity, webdev, technology, news
Published: 2021-02-23 12:56:08

## Feedly

![Image](https://blog.feedly.com/wp-content/uploads/2017/08/OR-leftnav-100517.gif)


Keep up with the topics and trends you care about, without the overwhelm. Make your research workflow efficient and enjoyable. Experience the power of RSS.

The primary benefit of a feed reader like Feedly is that you get to see all of this information in one single place rather than having to visit each website, blog, etc., to get updates. You can use Feedly from your computer, the web, or your mobile device.

![Image](https://blog.feedly.com/wp-content/uploads/2017/08/OR-unreachablegif-080317.gif)

![Image](http://blog.feedly.com/wp-content/uploads/2017/07/google-news-keyword-alert.gif)

Link: [https://feedly.com/](https://feedly.com/)

## Pocket

![Image](https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/press-fr/files/2018/10/iPhoneX-mylist-listen-player.png)

Pocket is a free service that makes it easy to discover great content that's personalized to your interests, and save this content so you can return to it later – on any device, at any time (offline).

![Image](https://lh3.googleusercontent.com/Zak2PZo0g2Uon3URXNGAlKyoRIk7_8domzF1L9Ew7Ub_6NTuOx1rOVHuTm3BXRA1cqqGYzhtlA3sacQXG8IIoXDtH0s=w640-h400-e365-rj-sc0x00fffffff)

Link: [https://app.getpocket.com/](https://app.getpocket.com/)

## My Experience

I feel more comfortable and well organized with theses tools. 

I used to read articles, posts and news from Feedly sources every morning (30 min). 

It saves me a lot of time. 

I often save it to Pocket in order to read some interesting articles between my 10 min work break times.
tool for helping getting strings to any device with a browser
Tags: copypaste, development, system, administrator
Published: 2021-02-23 12:55:26

---
title: tool for helping getting strings to any device with a browser
published: true
description: tool for helping get strings to any device with a browser
tags: copypaste, development, system, administrator
//cover_image: https://direct_url_to_image.jpg
---

###Short story

I also work as IT Consultant / administrator in small companies. And many times I need a URL or something on other Computers, Smartphones or whatever device which are not mine. So how to share it without to signup for any services on this Device? 

I created [ccv.ninja](https://www.ccv.ninja) its just a PIN protected list. Easy and free. Create it, fill it, don't forget it. Its also saving the created List to your device as cookie. You can also just share it.

I use it now daily. Its now in Alpha and more like a prototype but its helping me a a lot in my daily work.

\<C-c> \<C-v>
[https://www.ccv.ninja](https://www.ccv.ninja) or short [https://ccv.ninja](https://ccv.ninja) :>
Headless Drupal: The Ultimate Guide
Published: 2021-02-23 12:35:58

When interacting with a website, a user gets more than experience (UX). Interface and API content is of prime importance. Using technologies like Angular JS, React JS, and so on that can deliver content to the end consumer at the same speed as applications.

Headless Drupal (or decoupled Drupal) is one such tool that is gaining popularity for its innovative ability to deliver outstanding digital experiences. Many well-known companies have taken this path, offering their customers a unique interactive interface and fast loading sites. Thanks to the API-oriented architecture, content can be launched and displayed anywhere.

With the further development of digital products, Headless CMS is likely to surpass traditional WordPress or Joomla in popularity. According to Anyforsoft's experience, the future belongs to "headless" systems. Read the full article https://anyforsoft.com/blog/headless-drupal/
MAGENTO PWA: BRINGS NATIVE APPS AND WEB APPS CLOSER
Published: 2021-02-23 12:32:17

PWA Magento is the Progressive Web Application technology that is aimed at bringing the experience of native apps and web apps closer. What does this mean? Practically, online shoppers are going to experience app-like shopping experiences via mobile and desktop devices equally.

WHAT ARE THE BENEFITS?
In general, progressive apps are awesome because they make using the online store more pleasant. The experience of customers is no more different regardless of the kind of device they use. Usually, when the website is loading for more than several seconds, the customers just close the tab. With Magento PWA, the workflow is quicker and nicer.

IMPROVED PERFORMANCE AND USER EXPERIENCE
PWA combines the benefits of web apps and native apps, improving both usability and work effectiveness. First, Magento PWAs can use offline support, push notifications, and status updates, just the same way as native apps do. On the other hand, Magento PWA is flexible enough to provide a new experience to users.

Read the article https://soft-loft.com/magento-pwa/