teleren/devto huggingface dataset:
Convert number to reversed array of digits with JavaScript
Tags: javascript, 100daysofcode, codenewbie, codewars
Published: 2020-09-18 07:42:07

{% youtube pn_zYwJwLPg %}

To solve this problem, we’ll take 3 different approaches.
Enjoy the video 😀🙏

Also written version https://losseff.xyz/katas/014-convert-number-to-reversed-array-of-digits/javascript/
You've got this
Tags: beginners, codenewbie, mentalhealth
Published: 2020-09-18 07:40:07

TGIF!!(it may not be Friday when you read this😂)

My favorite song right now is Sunday Best by surfaces. A line from that song says "Everyone falls down sometimes, but you just gotta know it'll all be fine". And so this post is dedicated to people going through one thing or the other. Maybe its a job search or struggling to master a programming language/framework or just life in general. Like that song says, everyone one goes through stuff but it'll be fine, just keep going, You've got this!

Stream Sunday best fora morale boost 😁
YouTube : https://youtu.be/_83KqwEEGw4

Spotify: https://open.spotify.com/track/1Cv1YLb4q0RzL6pybtaMLo?si=Xi_aIxyCTLC3D07YAz6rOQ
Robot Framework: Pass Boolean variables from command line
Tags: robotframework, testautomation, beginners, tutorial
Published: 2020-09-18 07:38:41

I am often googling how to pass Boolean Command Line arguments in the [Robot Framework](https://robotframework.org/) when starting tests. The answer is: `True` and `False` work (case is important here as this is Python).

In some earlier releases, `0` and `1` were seen as Boolean but that does not apply in the newer Robot Framework versions.


## Example, passing CLI (Command Line Interface) variables

Below is an example that tests that variable `MY_BOOLEAN` is Boolean type (so tests pass both with `True` and `False`).

I wanted to play with the new Python Inline Evaluation (see [User Guide here](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#inline-python-evaluation)) so the example has another test that uses that (both tests test exactly the same thing, the only difference is the syntax):

{% gist https://gist.github.com/laojala/4bb26f69495c9ca639ea2ac6ead9d5f1.js %}

And to start that test, `MY_BOOLEAN` is given using `--variable` notation:

```
robot --variable MY_BOOLEAN:False path/to/tests/
```

Or, in a shorter form using `-v`:

```
robot -v MY_BOOLEAN:True path/to/tests/
```

## Closing words

Next time when I google "robot framework how to pass boolean command line arguments" I hopefully pop into this blog post 🤓. Maybe this post might also help with the concept of passing Robot Framework variables from the command line.

ps. Passing multiple arguments is done by adding multiple `-v` "blocks":

```
robot -v MY_VARIABLE:cat -v SOME_OTHER_VARIABLE:dog path/to/tests/
```
install macOS on VMware workstation
Published: 2020-09-18 07:32:13

macOS Mojave is one of the best-operating systems nowadays. However, there is a big drawback of macOS Mojave. More specifically, Not only macOS Mojave, but every mac operating system is only runnable on mac machines.
However, there are many other alternative methods to install macOS Mojave on nonmac computers like Windows 10 or Linux. 
However, for that we need to use some other alternatives like VMWare workstation or Virtualbox.

This two software is the software that is used for desktop virtualization. Therefore, we use such software.
The installation of macOS on virtual machine software is not a big deal. However, you need to have a guide to install the complete software correctly.

What you need to do first of them all, you need to install a virtual machine on your system. Secondly, you need to download the macOS Mojave DMG file. The DMG File is used for the installation of macOS Mojave. 
Thirdly, we need to create a virtual machine for specific software.


And then finally, the installation process starts. And finally you need to install macOS Mojave on VMware workstation.

https://techvatan.com/install-macos-mojave-on-vmware-on-windows/


Moreoever, you can also get more knowledgeable updates from us. What you need to do is to follow us for more knowledgeable upto date content.

https://techvatan.com/install-macos-catalina-10-15-final-on-vmware-on-windows-pc/
Why should I learn Python instead of Java?
Tags: python
Published: 2020-09-18 07:25:07

You should if :

You are in India and
Is a Fresher looking for IT job and..
Want to get job easily and quickly and..
May want to pursue Data Science in future and…

Focus on learning new software engineering technologies than new languages every-time

Python is not just a language but a ecosystem in which almost everything is there. May it be Desktops Apps, Web Apps, NLP, Automation, Server Admin, Gaming or Robotics.

Another way to look at it could be that no body want to feel messy starting learning computing. This is the biggest problem with Java ecosystem, may it be installation, changing path variables in windows, almost all things are messy to start with. Whereas Python feels like a breeze as compared to Java. Right from installation to getting started is really easy and super quick.

We can write 200 lines of code of Java in less than 50 lines in python. That is like writing code in a superb manner. Another thing is that all companies want to increase productivity of the employees and deliver faster. For that python is perfect fit.

Now with advent of AI and machine learning, Python has gained even more acceptance and brownie points. So much of open source libraries are there to make you easily develop AI based apps.

Still in India so many colleges are teaching Java!

They need to update the syllabus and only teach Python and C/C++. Most students get scared of Java and they think they can’t be good programmers in future which is not right. Python can help them overcome that fear.

From salary and job point of view, it’s very important to choose that technology which has minimum competition as there are just so many freshers passing out every year and not all can get those limited IT jobs. Learning Python will make you stand in the crowd and you will feel more confident about getting job.

Lastly I want to tell you that you can learn Python with me online. Yes I also provide training along with doing remote jobs. I charge very reasonable fees.

Meet the Experts for Better Experience : https://nareshit.com/python-online-training/
Getting started with Perl on Windows using Strawberry Perl (2020 edition)
Tags: perl, windows
Published: 2020-09-18 07:06:09

---
title: Getting started with Perl on Windows using Strawberry Perl (2020 edition)
published: true
description: After many years of working almost always on Linux I have a project now fixing some Perl code that currently only runs on Windows. Here is how you could get started.
tags: Perl, Windows
//cover_image: https://direct_url_to_image.jpg
series: perl
---

{% youtube tN9J-EExjKE %}
Team Ananas makes a github action
Tags: actionshackathon, teamananas
Published: 2020-09-18 06:56:22

So autumn Solidify kickoff came along, and we decided to do the Github actions challenge. Still under the influence of our vacations we decided we don't intend to be useful and came with the idea to simulate a game of life during your build.

The original idea was to have a parallel job that would print the game of life in your workflow run console so you can watch it while your workflow is running.

But it turned out that we cant render each generation in place of the old one, but only sequentially. Obvious in retrospective, you are not looking at a terminal, you are looking at the logs. 

So we had to settle to just generate an animation of game of life that you could put as badge in your readme, seeded with the triggering git commit hash.

### Challenges

Rendering images and gifs was made easy with great open source contributions but there was a problem: most ways to do that include getting canvas in node, and most ways to do that include system dependent binaries.

Actions are taken as is from your repository, so there is little opportunity to do platform specific packaging to get different binaries for possible runner hosts.

So special shout-out to [joshmarinacci/node-pureimage](https://github.com/joshmarinacci/node-pureimage) for platform independent node canvas API. Just enough for our needs :)

Gif generation was effortless with:
https://github.com/eugeneware/png-file-stream
https://github.com/eugeneware/gifencoder

Many thanks [Eugene](http://eugeneware.com/)!

And the root of our action, the game of life, was, of course, already done. Quite well in fact. Thank you [@monarchwadia](https://github.com/monarchwadia/conways-game-engine)

Action is in the marketplace if you wish to decorate your repo with game of life badges:
https://github.com/marketplace/actions/game-of-life-build-badge
Firebase Action + Workflow for CI/CD!
Tags: actionshackathon, github, opensource, firebase
Published: 2020-09-18 06:53:52

---
title: Firebase Action + Workflow for CI/CD!
published: true
description: My submission to the GitHub Actions x DEV Hackathon! Makes your life easier when deploying to Firebase ;)
tags: actionshackathon, github, opensource, firebase
---

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
I made [firebase-function-decision-maker](https://github.com/marketplace/actions/firebase-function-decision-maker) and [firebase-lerna-typescript-boilerplate](https://github.com/UriellViana/firebase-lerna-typescript-boilerplate) to leverage the power of GitHub Actions and make it extremely easy to deploy *conditionally* to Firebase!

The *GitHub Action* can be used in any TypeScript project to detect changes in your commits and deploy *only the functions that had changes*.

The *Template/Boilerplate* repository contains a quick start to spin up a Firebase project fully featured, with Firebase Storage & Firestore rules, Firebase Functions and Hosting. *Better yet*: All of it conditionally deployed based on what code changes you make!


### Submission Category: 

DIY Deployments


### Yaml File or Link to Code

{% github https://github.com/UriellViana/firebase-functions-deployment-decision %}

{% github https://github.com/UriellViana/firebase-lerna-typescript-boilerplate %}


### Additional Resources / Info

In my case I have worked daily with Firebase for the past 2 years, and I knew I could make my workflow for CI/CD much better. I'm super satisfied with the results and I hope when people look for something similar they can use the Action or quick start a project with the template.

My next steps will be building & contributing to FOSS where I can apply these shiny new workflows.
Language Teller
Tags: actionshackathon
Published: 2020-09-18 06:41:17

{% tag actionshackathon %}
### My Workflow
[Note]: # (Make sure to include the name of your GitHub Action and share where it's being used!)
The GitHub Action __'Language Teller'__ just do shit as mentioned down :
* Runs on every push.
* Detects languages you used in repo.
* Print them on workflow.
* That's it.. hehe.
![Alt text of image](https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRIr7fxoJQ1sfCguy5g2Kq7UVD_eItOWhuB-Q&usqp=CAU)

### Submission Category: 

[Note]: # (Maintainer Must-Haves, DIY Deployments, Interesting IoT, Phone Friendly, or Wacky Wildcards)


### Yaml File or Link to Code

```yml
name: Linguist

on: push

jobs:
  linguist:
    name: Run linguist
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: fabasoad/linguist-action@v1.0.0
        id: linguist
        with:
          path: './'
          percentage: true
      - name: Print linguist result
        run: echo "${{ steps.linguist.outputs.data }}"
```

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)

{% github rishivyas1969/lago-generator %}

### Additional Resources / Info

Special thanks  for making it possible😁
{% github fabasoad/linguist-action %}

[Note]: # (Be sure to link to any open source projects that are using your workflow!)

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. )

[Reminder]: # (Submissions are due on September 17th (11:59 PM PDT) and winners will be announced on September 23!)

Here my explanation🧐 stops and laughing ends!🙂
What Salesforce1 Means for Your Nonprofit

Tags: salesforce1, nonprofit
Published: 2020-09-18 06:38:55

Maintaining the fundamental idea that each customer is unique and that it is necessary to have a unique technology to meet these needs, Salesforce has developed a new platform called Salesforce1. The [Salesforce1 platform](https://www.cloudanalogy.com/) is a new mobile experience for users and is much more than a next-generation Salesforce Touch mobile app (which is no longer available for download). The platform allows users to access all Salesforce apps, all customizations, customer-developed apps, Appexchange apps, and chat streaming, including all notifications from any mobile device. The platform is built on Force.com, so it has the ability to support open API integrations; allowing other systems to interact with Salesforce.

**So what does all of this mean for your nonprofit?**

This means that your organization can develop and implement CRM and external applications for employees, partners, customers, board members, and volunteers through any mobile device. Real-time data from an integrated external system can be used with your organization's Salesforce CRM. For nonprofits, this may mean that your organization's social workers have the ability to access and update customer data from their mobile device while they are still in the field. Even admission forms can be completed and processed in real time. If your nonprofit tracks and manages volunteer registrations online, Salesforce1 can allow volunteers to sign up, sign up, log times, and even provide feedback through their mobile device. The Salesforce1 platform also provides reporting and dashboard capabilities, so a board member can log in from any device and view trends, patterns, or financial data. of the company in real time.

**So how do I get Salesforce1?**
Salesforce1 is enabled by default for all organizations (except Salesforce Touch users and Communities), unless your organization has turned off automatic activation. Here are the steps to access Salesforce1:

1. Download the Salesforce1 app
2. Login with your developer credentials.
3. Enable notifications (only if disabled)
4. Create the Salesforce1 navigation menu by dragging and dropping the relevant items.

Basic setup is complete! If you are a more advanced administrator or super user, you can customize the way data appears in Salesforce1, create unique editor actions, or start expanding functionality by developing unique user interfaces, designing VisualForce pages, integrating web applications, and more. It can be found here.

If you're overwhelmed by development capabilities and possibilities, remember, you can always find more information from other users and professionals through the Salesforce Developer Community, Salesforce discussion forums, and resource documents. development team and even [Salesforce implementation partners](https://www.cloudanalogy.com/).
Vue JS animations - putting learning into practice
Tags: vue, javascript
Published: 2020-09-18 06:31:18

Well that's it! I pretty much finished all the Vue JS Mastery courses I wanted to do. I got through all the introductory stuff, and learned a bunch of the intermediate. The main thing I wanted to learn in intermediate was the animations. I didn't think it was useful to go much deeper than that. Otherwise it'll go over my head before I dive in and apply the knowledge I've learned.

{% post mishmanners/learning-vue-js-for-animations-and-transitions-3im %}

## Learning Vue JS

I really enjoyed this [course](https://www.vuemastery.com/courses/). Animations were super fun. As you'll see in the clip above, I was able to create a bunch of simple animations. Even nested animations are covered in the course. I found they are super easy to build and they look great. Even a small animation is enough to make your website or app feel polished.

Now I'll be able to use animations like this for the next exciting thing I do. Speaking of... what's next?

## Putting it into practice

As I mentioned in my live stream, I wanted to learn Vue JS since I need to redo a website already written in Vue JS. So the first thing I'll be doing (and have been doing) is putting the knowledge I learned to work. I've been going through the website code, changing it up, adding new pieces of information, and understanding how the original developer put the code together.

It's a great experience to take what you've done and use it. But it's not necessarily easy. You aren't just going to learn something and instantly be a pro at it. There's lots of practice involved. Trials and errors. You'll notice even in my short video above I talked through a really simple error I made. Missing out on a semi colon meant I didn't have the animation done correctly. Sure, the website didn't break. But it didn't work as I intended it.

{% post mishmanners/the-bane-of-every-developer-spelling-casing-and-random-commas-4g31 %}

Luckily, I have lots of friends, colleagues, and people in my live streams to help me out. In fact, if you're struggling with programming, definitely find a buddy. Meetup groups, online forums, Twitch streams, and even Discord communities are places you can find like-minded people who are willing to help.

## Twitch Live Coding

If you enjoyed the short clip above and you want to see more, check out [the full recording](https://www.twitch.tv/videos/744483793https://www.twitch.tv/videos/744483793). You can also join me live on any of my [Twitch sessions](https://twitch.tv/MishManners) for some coding and games too.

Lastly, I hope my story is encouraging you to get out there and give it a go. Find something you're passionate about. Something that sticks. Something which resonates with you. And then just go for it. The first step is the hardest and I encourage you to take it!
Different ways to check If Object is empty or not
Tags: javascript, beginners
Published: 2020-09-18 06:28:58

---
title: Different ways to check If Object is empty or not
published: true
description: 
tags: #javascript #beginners
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/cdcj43vonxd0d58frzwi.jpg
---
Checking if the Object is empty or not is quite a simple & common task but there are many ways to check the object is empty or not. So in this blog, I am trying to cover all the best ways to check object is empty or not.

So let's figure out how to accomplish it.

Here firstly we create an empty Object using the object literal syntax

```
const obj = {}
```
After creating an empty object `obj` we compare it to another empty object just like this:

```
console.log(obj === {}) // false
```
We are getting `false`. How is this possible??? We compared two empty objects just like this:

```
console.log({} === {}) // false
```
This because we are comparing references, not values. The reference to these objects isn't the same, even though the value is the same.

So how can we actually check if an object is empty or not?

## Using Object.Keys

Object.keys will return an Array, which contains the property names of the object. If the length of the array is 0, then we know that the object is empty.

```
function isEmpty(obj) {
    return Object.keys(obj).length === 0;
}
```

we can also check this using `Object.values` and `Object.entries`

This is the simplest way to check if an object is empty.


## Using JSON.stringify

If we stringify the object and the result is simply an opening and closing bracket, we know the object is empty.

```
function isEmptyObject(obj){
    return JSON.stringify(obj) === '{}';
}
``` 

## Looping over object properties with for…in

The `for…in` statement will loop through the enumerable property of the object.

```
function isEmpty(obj) {
    for(var prop in obj) {
        if(obj.hasOwnProperty(prop))
            return false;
    }

    return true;
}
```

In the above code, we will loop through object properties and if an object has at least one property, then it will enter the loop and return `false`. If the object doesn’t have any properties then it will return `true`.

## Using Underscore and Lodash

we can also check by [underscore.js](https://underscorejs.org/) like this:

```
_.isEmpty(obj);
```

`_.isEmpty()` is an underscore.js function to check whether a list, array, string, object, etc is empty or not. It first finds out the length of the passed argument and then decides. It returns true if the argument passed is empty, i.e., does not have any elements in it. Otherwise, it returns false.

## Using jQuery

we can also check by jQyery library like this:

```
jQuery.isEmptyObject(obj); 
```

### Thanks for reading 😄. 
If there is anything I have missed, or if you have a better way to do something then please let me know.
Technologic
Published: 2020-09-18 06:27:59

"Technology is never neutral." At some aspects, it is inclined one way or another such as its effects in our health and mind. As technology gave us convenience and efficiency in our daily lives, we can't just look merely to its brighter side. There is its another side that will be neglected from all of its perks that we see. However, many may not utilize technology properly by excessively using it without the concern of its consequences. 

As a student, I deem technology as a source of distraction over my studies, considering that I'm an adolescent. Moreover, as we spend most of our time on social media and multimedia platforms, we tend to lift the responsibilities upon our shoulders. We sacrifice our integrity, not just in using the technology, but also in our self values, causing some people to commit cyberbullying, learn inappropriate contents and even deviate the law.

In summary, we can never equate technology's pros and cons. We will be in such notion that certain side is dominant over the other. The neutrality of technology depends on how we will balance its two sides by evaluating if we have the good or bad ways of maximizing technology.
Generate a unique game of life badge for a workflow run
Tags: actionshackathon
Published: 2020-09-18 06:22:14

### My Workflow

The action takes a commit hash of the commit that triggered the workflow run and seeds with it the game of life. The game run is saved as gif the the location of your choosing and can be used in, e.g., Readme file as a unique badge for the build.

An example of the output:
![Game of Life build badge](https://dev-to-uploads.s3.amazonaws.com/i/xno46c484r3adjnd75tn.gif)

### Submission Category: 
Wacky Wildcards


### Yaml File or Link to Code

{% github solidify/github-action-game-of-life %}


### Additional Resources / Info

Many thanks to
https://github.com/monarchwadia/conways-game-engine
https://github.com/joshmarinacci/node-pureimage
https://github.com/eugeneware/png-file-stream
https://github.com/eugeneware/gifencoder

For making this rather straightforward :)

by Team Ananas:
[Kristoffer Karlsson](https://github.com/kristofferkarlssonsolidify)
[Tobias Larsson](https://github.com/mrweiland)
[Damir Petrac](https://github.com/Kukukuchu)
[Per Sundqvist](https://github.com/PerSundqvist)