teleren/devto huggingface dataset:
Boolean 'OR' in DemandTools MassImpact formulas
Tags: tutorial, salesforce
Published: 2020-05-07 22:53:51

---
title: "Boolean 'OR' in DemandTools MassImpact formulas"
published: true
date: 2020-05-07 15:00:00 UTC
tags: tutorial,salesforce
canonical_url: https://katiekodes.com/demandtools-formula-or/
---

[Over on Salesforce Reddit](https://reddit.com/r/salesforce/comments/gfdyki/need_to_create_an_ifor_statement_in_mass_impact/), someone asked how to get "OR"-ing conditions together to work in a formula in the MassImpact module of Validity's [DemandTools](https://www.validity.com/demandtools/) ETL software.

## The problem

They described their desired formula as being of the following structure:

```
IF(
	OR(ThisCondition,ThatCondition)
	,"ValueIfTrue"
	,"ValueIfFalse"
)
```

They'd gotten this far with actual DemandTools code:

```
if_StringReturn(
	{owner.profileid}="aaaaaaaaaaaa"
	,"ValueIfTrue"
	,"ValueIfFalse"
)
```

## Failed guesses

I couldn't get DemandTools to accept this:

```
if_StringReturn(
	{owner.profileid}="aaaaaaaaaaaa" || {owner.profileid}="bbbbbbbbbbbb"
	,"ValueIfTrue"
	,"ValueIfFalse"
)
```

Nor did this _(sometimes you can "add" trues & falses and they behave like 1's & 0's)_:

```
if_StringReturn(
    (
        {owner.profileid}="aaaaaaaaaaaa"
        +
        {owner.profileid}="bbbbbbbbbbbb"
    ) > 0
    ,"ValueIfTrue"
    ,"ValueIfFalse"
)
```

## Winning code

So I kept playing with this idea of "adding" trues & falses until I **finally** came up with code that works:

```
if_StringReturn(
    (
        Int(
            if_NumberReturn(
                {owner.profileid}="aaaaaaaaaaaa"
                , 1
                , 0
            )
        )
        +
        Int(
            if_NumberReturn(
                {owner.profileid}="bbbbbbbbbbbb"
                , 1
                , 0
            )
        )
    ) > 0
    ,"ValueIfTrue"
    ,"ValueIfFalse"
)
```

Like the formula field editor in Salesforce, DemandTools doesn't seem to care about your line breaks or whitespacing, so be sure to treat yourself to something nicely indented when writing a big formula like this.

Later-you will thank yourself.
How to create a video recording of your new web app
Tags: tutorial, codenewbie
Published: 2020-05-07 14:53:10

Do you need to create a video recording of your new web app and upload it to YouTube for a Zoom presentation? Hey, me too. Let's walk through this together. We are going to be using QuickTime Player to take a screen recording of our app and then overlay voice narration on iMovie. And here we go...

Before anything else, take a couple practice walk-throughs of your app. Time it out. Be sure you can hit all the features that you want to highlight in a 2-3 minute clip. When you are comfortable with your timing, open the QuickTime Player and select 'New Screen Recording'. Be sure that 'Record Entire Screen' is selected and then click 'Record'. When you are done making magic happen with your app, click the 'Stop' icon at the top menu bar. The clip will appear in your lower right-hand corner. Open it up and trim any unnecessary footage from the beginning or end. 

Now launch iMovie and import your clip. (At this point, I received the message 'not enough space in selected destination'. I had to move the iMovie app into the trash and redownload it from the app store.) Once imported, click the 'Record Voiceover' microphone icon and lay down your silky track.

All that's left is to hit 'Share' and send it off to YouTube (now would be a good time to create a YouTube account if you haven't already). Once uploading is complete it should be in 'your videos' and you can share with the world. Well done.
I took CS50, and you can too
Tags: covid19, cs50, computerscience, class
Published: 2020-05-07 14:49:49

Well, it's coronavirus chaos where I live in Tennessee.  Everyone's freaking out about masks and handwashing and yes, the lack of toilet paper.  However, I was slightly relieved to be out of school and the pandemic gave me some time to work on my dev skills.  I didn't expect to be taking a Harvard course, though!

[CS50](http://cs50.harvard.edu/x/2020) is probably the most famous computer science class in the Ivy League school and maybe the world.  It's a beginner's introduction to computer science, but at the same times one of the most challenging courses at the school.  It begins with [Scratch](https://scratch.mit.edu) and basic CS fundamentals, but by the end of the 8-week course you're building full-stack webapps with Python, SQL, and HTML/CSS.  

I'm currently finishing up the fourth week, which covers the C language.  C isn't one of my favorites (in fact, I downright hate it because of its monolithic, ancient approach), but I've learned a lot about low-level computing and just plain logic.  It's more comprehensive and structured than any course I've taken on Codecademy (which is still a great option for beginners).  

I highly recommend that anyone with the spare time should take CS50.  It's definitely changed my views about programming and how computers _really_ work.  The class is huge, so huge that it has communities on just about every social media network - Stack Exchange, Reddit, Gitter, anything you can imagine.  So what are you waiting for?  Go take CS50!

**Thanks for reading, and if you liked this post or thought it was useful, be sure to drop a follow if you're viewing on Dev.to or Hashnode, or put my [RSS feed](https://blog.micahlindley.com/rss.xml) through your favorite feed reeder!**
Free Coding Camp from Skillcrush
Tags: tutorial, javascript, bootcamp, skillcrush
Published: 2020-05-07 15:35:00

---
title: Free Coding Camp from Skillcrush
published: true
date: 2020-05-07 14:45:40 UTC
tags: tutorial,JavaScript,bootcamp,skillcrush
canonical_url: https://emtr0.dev/free-coding-camp-skillcrush/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/qykftkvym0j8bk31uwip.png
---
Yesterday I started and completed the free coding camp from Skillcrush. As they put it, this camp is:

> A totally beginner-friendly intro to tech, techies, and kick-ass careers in less than five minutes a day.

It's short but was well made and pleasantly informative. I learned some things I didn't know before since it included a few sections on visual design and user experience. For example, I drew my first wireframe for a website concept based on a local video game store, and learned about the InVision website/app in the process. This "feedback challenge" came with actual feedback from someone I later found out was Skillcrush's Operations manager, a writer for their blog, and a career counselor. Pretty cool.

The topics covered in this camp include HTML, visual design, WordPress, CSS, JavaScript, UX and some info on getting into the tech field with insights from former Skillcrush students.

Let me know what you think!

* [Skillcrush - Free Coding Camp](https://learn.skillcrush.com/skillcrush-free-bootcamp/)
* [InVision - How to Wireframe](https://www.invisionapp.com/inside-design/how-to-wireframe/)
Share Your Grant for the Web Hackathon Updates!
Tags: gftwhackathon
Published: 2020-05-07 14:37:46

---
title: Share Your Grant for the Web Hackathon Updates!
published: true
description: A place to share feedback and progress as you work on your Grant for the Web Hackathon project.
tags: gftwhackathon
---

Making progress on your submission for the [Grant for the Web Hackathon](https://dev.to/devteam/announcing-the-grant-for-the-web-hackathon-on-dev-3kd1)? Let us know what you’re building and how things are going!

This thread is for sharing ideas, gathering feedback, and generally just a place for you to get to know your fellow devs.

If you have a big update or just worked through a tough problem, we encourage you to publish a standalone post, but don’t forget to add the [#gftwhackathon](/t/gftwhackathon) tag so we can read all about it!

And if you need help with a specific problem, check out our [dedicated help thread](https://dev.to/thepracticaldev/grant-for-the-web-hackathon-help-thread-19pb)! where the Grant for the Web support crew is standing by to answer your questions :)
Grant for the Web Hackathon Help Thread
Tags: gftwhackathon
Published: 2020-05-07 14:37:36

---
title: Grant for the Web Hackathon Help Thread
published: true
description: A place to connect with the Grant for the Web Hackathon team and your fellow participants.
tags: gftwhackathon
---
Looking for help with your Grant for the Web Hackathon submission? You came to the right place!

Team members from Grant for the Web and Coil will be making themselves available to help people who runs into issues or have questions as part of the [Grant for the Web Hackathon](https://dev.to/devteam/announcing-the-grant-for-the-web-hackathon-on-dev-3kd1).

You are encouraged to comment in this thread for asynchronous assistance. We've also set up a dedicated DEV Connect group channel for more synchronous help. To join the Connect group, **just leave a comment in this thread asking to be added**.

If you'd like to share more general progress that you're making on your project, you can do so in the [community update thread](https://dev.to/thepracticaldev/share-your-grant-for-the-web-hackathon-updates-5c36)!

#### Coil Trial (Update)

Coil is generously providing a free trial for Grant for the Web Hackathon participants.  Please see this thread for more details:

{% link https://dev.to/devteam/free-coil-trial-for-all-gftwhackathon-participants-3n7m %}
JavaScript original Loader (from Medium post) || #JS #AnimeJS #Loader
Tags: codepen
Published: 2020-05-07 14:26:29

JavaScript original loader from [this](https://medium.com/udacity-google-india-scholars/create-a-full-screen-website-pre-loader-in-a-jiffy-1ecfbe39faae) medium post:
{% codepen https://codepen.io/duboloms/pen/oNjxgaY %}
How to understand firstPendingTime and lastPendingTime here(in react)
Published: 2020-05-07 14:25:17

function markRootUpdatedAtTime(root, expirationTime) {
  // Update the range of pending times
  const firstPendingTime = root.firstPendingTime;
  if (expirationTime > firstPendingTime) {
    root.firstPendingTime = expirationTime;
  }
  const lastPendingTime = root.lastPendingTime;
  if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
    root.lastPendingTime = expirationTime;
  } // Update the range of suspended times. Treat everything lower priority or
  // equal to this update as unsuspended.
  const firstSuspendedTime = root.firstSuspendedTime;
  if (firstSuspendedTime !== NoWork) {
    if (expirationTime >= firstSuspendedTime) {
      // The entire suspended range is now unsuspended.
      root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
    } else if (expirationTime >= root.lastSuspendedTime) {
      root.lastSuspendedTime = expirationTime + 1;
    } // This is a pending level. Check if it's higher priority than the next
    // known pending level.
    if (expirationTime > root.nextKnownPendingLevel) {
      root.nextKnownPendingLevel = expirationTime;
    }
  }
}
Day 13 of #100DaysOfCode: The differences between React hooks + Context APIs and Redux
Tags: 100daysofcode, react, redux, javascript
Published: 2020-05-07 14:17:41

## Introduction
I learned how to use React context APIs and Redux to generate the management of the global state for #100DaysOfCode.
* Day2: Create a ReactJS global states manager with React hooks
* Day 12: Create a ReactJS global states manager from Redux

The article is to note the difference between these two technologies. We will discuss the following items.
* Overview
* Roles and usages
* Libraries
* We should choose React context APIs or Redux?
* Implementations


## Details
Please refer to my article. 
https://medium.com/a-layman/reactjs-global-states-management-the-differences-between-react-hooks-context-apis-and-redux-92d72171337d

## Articles
There are some of my articles. Feel free to check if you like! 
* My blog-posts for software developing: https://medium.com/a-layman
* My web resume: https://jenhsuan.github.io/ALayman/cover.html
* Facebook page: https://www.facebook.com/imalayman
How honesty can improve team productivity
Tags: productivity, team, learning, tips
Published: 2020-05-07 13:46:28

---
title: How honesty can improve team productivity
published: true
description: 
tags: productivity, team, learning, tips
---
![](https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80)

How can being honest actually improve your team's productivity? Let me share with you a few scenarios where you may find yourself in and what you can do and why you should do it.

## When you are stuck with your code for more than the usual time it will take to fix something.

Be honest and tell your team you're stuck but make sure you've done your part in trying to fix it. With this, you're likely to progress faster if someone helps you. In fact, it's possible that someone from your team has already encountered it and the time you'll invest for like 1-2 hours could be lessened to a single question. 

## When something broke and you know it was you who broke it

Be honest and volunteer to fix it. You'll probably take lesser time to fix it rather than someone who has little idea of the cause.

## When you don't know the answer to a question

Be honest and tell the person you don't know but try to find the answer after. It's better to tell upfront that you don't know rather than assume something and cause a misunderstanding.


## If no one has been honest yet, be the first one
![](https://images.unsplash.com/photo-1584907797015-7554cd315667?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1655&q=80)
Other members can feel comfortable being honest themselves if someone within the team continuously do so. Everyone would feel that they can trust each other. The feeling of not being discriminated of not knowing or of making mistakes can improve the team's communication. Anyone could learn a thing or two just by someone saying "I don't know" or "I'm stuck. Can someone help me?". And without you knowing it, honesty has become one of your team culture.
iTerm2 tricks you might not know 🤩
Tags: macos, terminal, productivity, shortcuts
Published: 2020-05-07 13:56:49

**What is iTerm2?**
iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.12 or newer. iTerm2 brings the terminal into the modern age with features you never knew you always wanted.

**Why do you need it?**
* If you spend a lot of time in a terminal, then you'll appreciate all the little things that add up to a lot. It is free software and you can find the source code on Github.

* In most MacOS application you can hold ⌥ button and one of the arrow keys to jump words for faster navigation while editing large blocks of code.
Unfortunately, iTerm2 does not have these shortcuts by default, so having to change an argument in a long command (or correct a typo) can be a case of pressing ← and waiting.

**Easiest way to setup KeyBoard Shortcut.**

preference -> profile -> keys -> Natural key Editing

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

List of Keyboard Combination Below.

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

Action | KeyBoard Combination
---| ---
*Delete word* |  ⌥ + delete
*Delete line* | ⌘ + delete
*Move cursor one word left* | ⌥ + ←
*Move cursor one word right* |  ⌥ + →
*Move cursor to beginning of line* | ⌘ + ←
*Move cursor to end of line* | ⌘ + →
*Clear Screen* | ⌘ + k

Download: https://www.iterm2.com/
Why some API response codes are subjective ? 
Tags: webdev, javascript, api, discuss
Published: 2020-05-07 13:56:22


Lets say I have below search API. 

    METHOD  URL          STATUS  RESPONSE

    GET     /products    204     []

Isn't it good to use `204` status code when the API returns empty results ?

I looked at some answers in `StackOverflow`:

1. [What is the proper REST response code for a valid request but an empty data?](https://stackoverflow.com/questions/11746894/what-is-the-proper-rest-response-code-for-a-valid-request-but-an-empty-data)

2. [HTTP status code for a REST search without result](https://stackoverflow.com/questions/45152551/http-status-code-for-a-rest-search-without-result)

Some say to use `400` and some say `204` or `200`. 

What do you think ? Is there any authoritative source to refer ?
The 8 levels of autonomy in delegation
Tags: productivity, management, leadership
Published: 2020-05-07 13:53:25

Delegation is a key management skill. We all know the advantages, so I will not go through them in this article ;-) However, many are now aware of the different levels of autonomy that they can grant to the delegate, and this is what the article about!

Delegation is usually performed in four phases. Phase 1 is to evaluate what task to delegate and to whom. Phase 2 is to actually handover the task. Phase 3 is to support and coach the delegate while performing the task. Finally, Phase 4 is to debrief after the delegation is over. 

During the handover phase, it’s really important to be clear on how much autonomy to give to the employee to do the given task and to make sure that they share the same understanding as you.

Autonomy is the level of independence a person has to complete a task. Ross A. Webber defined 8 levels of autonomy that you can give to your employee with level 1 being the least amount of autonomy and level 8 being the most. These levels are differentiated by the level of analysis the delegate provides, who makes the decision, and who takes action.

Level 1: The delegate has no autonomy. Delegate looks into the problem, gathers the information, and gives it to the manager who makes the decision. The manager also takes action.

Level 2: Delegate explores the alternatives available, noting the pros and cons of each option. The delegate presents this analysis to the manager, who decides what to do and takes the action.

Level 3: Delegate explores the options and makes a decision, recommending a course of action to the manager. The manager approves the decision and takes the action.

Level 4: Delegate explores the options and makes the decision about a course of action, but delays implementation until the manager approves it. At that point, the delegate takes the action.

Level 5: Delegate informs the manager of his or her plans and can take action unless the manager says not to (The manager is holding veto power).

Level 6: Delegate takes action and informs the manager after the fact what was done and how it turned out.

Level 7: Delegate takes action and only communicates with the manager if the action was not successful.

Level 8: The delegate has complete autonomy at this highest level. The delegate takes action and does not need to communicate anything to the manager.

Learning about the 8 levels will absolutely change the way you delegate for the better! You will be much more clear with both yourself and your delegate, which means the whole delegation process is better for everyone.
41: Cross Browser Testing
Published: 2020-05-07 13:53:19

#**What is cross browser testing?**
Cross browser testing is the practice of making sure that the web sites and web apps you create work across an acceptable number of web browsers. 

As a web developer, it is your responsibility to make sure that not only do your projects work, but they work for all your users, no matter what browser, device, or additional assistive tools they are using. You need to think about:

Different browsers other than the one or two that you use regularly on your devices, including slightly older browsers that some people might still be using, which don't support all the latest, shiniest CSS and JavaScript features.

Different devices with different capabilities, from the latest greatest tablets and smartphones, through smart TVs, right down to cheap tablets and even older feature phones that may run browsers with limited capabilities.

People with disabilities, who use the Web with the aid of assistive technologies like screen readers, or don't use a mouse (some people use only the keyboard).

[Cross Browsing](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Introduction)
[JavaScript Window Object](https://kssong.tistory.com/29?category=630311)
Selenium Chrome (version 80 & 81) warnings
Tags: selenium, automation, testing, java
Published: 2020-05-07 13:37:51

Since the release of Chrome version 80, we all have been getting the 'Timeout warning'. It repeats itself until the browser is opened. Do you want to get rid of selenium chrome driver warnings? 

Here is the simple solution.
Add the below line of code while setting up the driver properties. 

```
System.setProperty("webdriver.chrome.silentOutput", "true"); 
```

It's a known bug in the versions 80&81 of Chrome browser. Though it will be fixed in upcoming releases, if you don't want to downgrade to version 79 or below, this will help.
What is Automated Testing and How Does it Work?
Tags: automatedtesting, automatedsoftwaretesting
Published: 2020-05-07 13:33:48

Automated software testing's principal advantage is that it streamlines however much of the manual exertion as could reasonably be expected into a lot of contents. For instance, if unit testing devours a huge level of a quality confirmation (QA) group's assets, at that point this procedure ought to be assessed as a possibility for Automation. 

Automated tests can run more than once whenever of day. This methodology fits in with constant testing just as continuous integration (CI) and continuous delivery (CD) programming improvement rehearses, which expect to carry code changes to creation without doors that require manual intercession. 

Advantages of Automated testing 

Higher accuracy
Better reporting capabilities
Increased coverage
Enhanced resource efficiency
Improved bug detection
Increased reusability 

At the point when a software tester manually checks a framework, he can commit an error, particularly when an application contains hundreds to thousands of lines of code. Automation enables the QA to group maintain a strategic distance from these human mistakes in application testing and executes checks in a quicker time allotment than if it were done face to face. 

<a href="https://www.testingxperts.com/blog/test-automation-guide">How does Automated testing work</a>? 

An association actualizes test automation with a system that incorporates regular works on, testing instruments and principles. Information is driven and catchphrase is driven <a href="https://www.testingxperts.com/services/test-automation/ca-en">test automation</a> systems are normal, as a structure for direct scripting and particular testing. 

The direct scripting system suits little applications since it empowers the utilization of a test content with small arranging, yet doesn't bolster reusable contents. In particular testing structures, a product analyzer makes contents as little, free tests to lessen excess, yet this procedure commonly sets aside more effort to set up. 

Information driven structures empower programming analyzers to make contents that work for different informational indexes and furnish wide quality inclusion with fewer tests than measured choices. Watchword driven testing systems utilize table configurations to characterize catchphrases for each capacity and execution strategy; software testers without broad programming information can work with the catchphrases to make test contents. Half breed driven structures consolidate at least two practices to have the advantages of both.
What to-do apps do you use?
Tags: discuss, productivity
Published: 2020-05-07 13:32:01

[Things](https://culturedcode.com/things/) is my to-do app of choice. 

Huge fan of the [GTD philosophy](https://www.amazon.com/Getting-Things-Done-Stress-Free-Productivity/dp/0143126563). I'm curious if there's anything worth checking out.

What are you using?