teleren/devto huggingface dataset:
The one about new beginnings
Tags: javascript, beginners
Published: 2021-06-22 21:52:46

Hey, I’m Iqra.

I’m currently a full stack Software Developer student at Northcoders in Manchester. I live in Whitefield with my amazing husband, three beautiful children and currently homeless. Not literally, but unwelcome leaks and damp issues has forced us to move out for a few months and has annoyingly coincided with my boot camp journey.

What I knew before applying ?

NOTHING… believe me. I had never heard of the terms JavaScript/html/CSS. I thought coding was what hackers do ! I qualified from The University of Manchester in BA languages and currently in limbo as a freelance interpreter. Previous to that, I was a fitness instructor. I was ready to re-skill and take on a challenge.
5 Ways to Make Money Online
Tags: productivity, programming, webdev
Published: 2021-06-22 21:50:46

**5 Ways to Make Money Online**

follow me on [Twitter](https://twitter.com/chetanistaken) & [Github](https://github.com/itschetan)

Now Let's Get The List, and Hop In It-

1.**Flipping Instagram pages**

Method number one is going to be through flipping Instagram pages sounds kind of strange, but let me explain I'm talking about Instagram themed pages. The move here would be to find Instagram themed pages that are in profitable niches that are desirable that you can buy for a good deal.  And then you can instantly sell them to other people for more, or grow them and then sell them for even more.

2.**Sell digital services**

This means video editing, photo editing, design, anything like that you just make a listing on there that you can do this kind of work and people would hit you up and pay you to do that for them.  So that's something you're interested in, go ahead and check it out.

3.**Drop shipping**

The hardest thing to succeed in from the list.  So when you go on AliExpress, find a cheap Chinese product, say it's a $3 product, you would then go on shopify.com, create a website around this product and sell it for $12. You then market this website through Facebook ads, Instagram, Google ads, whatever. And when people buy it from you, you take that information, put it on AliExpress, ship it directly to them, and then keep the difference.

4.**Google AdSense**

This could be varying from making a website to making your Youtube channel. Now everyone knows further that google puts ads in it and the more the ads are viewed you get paid. This looks simple but it is very hard and time consuming but if you want to hop in, no one stops you from it.

5.**Afiliates**

Now you have some friends and somehow you find an amazing products that probably eveyone wants to buy. You signup for amazon afiliates and then get the link of the product, once they buyed that product you get a small percentage of it. 

**END**


I hope you enjoyed my article. Follow me on [Twitter](https://twitter.com/chetanistaken)

*Originally, This was published on **[The Zyox Letter](https://zyox.substack.com)**, The best Newsletter for Programming, tech, entreprenuership & money.*

*CLICK HERE - https://zyox.substack.com*

**Join Now**
Day 393 : Trouble
Tags: hiphop, code, coding, lifelongdev
Published: 2021-06-22 21:24:23

_liner notes_:
- Professional : Whew...I thought today was going to be a "no meeting, get stuff done" day. Nope. Got brought into a couple of conversations and helped out with some community questions. Took more time than I originally thought. Also ran into a little tech issue that kind of blocks me. I was only really able to update some documentation with some explanation and code samples.

- Personal : Last night, I totally refactored how my side project handles members being invited and banned. A lot less trouble to keep track of things. We'll see how it works when people actually (hopefully) start using it. Also, worked out the layout for the break session of the dashboard portion. Now just have to hook up the buttons and get elements placed.

![A dirt road in Tagamanent, Spain with some trees and shrubs on the side that leads to a valley](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxrp989150j03d3nvdu4.jpg)

Tonight, I really want to get the invite functionality working where from the dashboard, I can invite a person to a video call to test their setup before going live. From there, I'll be able to broadcast the video and have that show up on the site for everyone else. At least that's the game plan I'm working with. Back to work.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube IQ40FxSayvc %}
Tips for coding challenges
Tags: career
Published: 2021-06-22 21:08:36

1) For the love of Edsger Dijkstra, TDD your coding exercise. TDD if it is a homework assignment. TDD if it is live coding. If the interviewers are not visibly happy that you did TDD, then that is a sign that they don't care about testing in their job either. Once you have even a little bit of practice it starts to become easy. Just do it already.

2) Create a shell REPL that takes user input and then outputs things and some tests that exercise the inputs and outputs. This is the hardest part of TDD'ing a coding exercise and is completely independent of the actual logic of any coding exercise, so this will pay dividends in any exercise of your primary language you are looking at.

3) For the love of Ada Lovelace, use git from the start of your homework exercise. Don't just send a file. Don't just make one commit when you finish. This will help the interviewers see your process and help you remember how you made the thing 3 weeks later.
println() and fmt.Println()
Tags: go
Published: 2021-04-15 07:32:23

---
title: println() and fmt.Println()
published: true
date: 2021-04-14 00:00:00 UTC
tags: Go
canonical_url: https://mnlwldr.com/println_golang/
---

`println()` is a built-in function and looks useful to developers, because they lack dependencies. But there is a difference between `fmt.Println()` and `println()`.

`println()` write to `stderr` instead of `stdout` and I never noticed that before, maybe because I didn’t used `println` so much in the past.

I discovered this because I wanted to compare the throughput of

```Go
for {
    fmt.Println("y")
}
```

and

```Go
for {    
    println("y")    
}        
```

by pipe this to `pv -r`. So I wondered why I got a lot of “y” in the `println()` variant.

> The println built-in function formats its arguments in an implementation-specific way and writes the result to **standard error**. Spaces are always added between arguments and a newline is appended. Println is useful for bootstrapping and debugging; it is not guaranteed to stay in the language.

[println in the Golang built-in documentation](https://golang.org/pkg/builtin/#println "golang.org")
What advice would I give to new Junior Developers?
Tags: codenewbie, developers, devcommunity, softwareengineer
Published: 2021-06-22 20:07:47

1. You don't need to know everything when you starting out:
One of the things that I remember when I was a Junior Developer. I thought I had to know everything. But in reality, the expectation was how fast can I learn and can I work together with a team.Because when you are starting out, your seniors or supervisor will know that you are no expert and they would be giving you easy tasks that they know you can handle and learn from bit by bit.So don't forget, when you are starting out, focus on sharpening your skills and be a team member.

2. Learn how to break code apart:
One of the major things in writing code is to learn how can you make it reusable. It sounds easy, but it's a bit tricky in practice.One of the books that I would recommend (I read it as a junior and it helped me to jump-start my career) and is to read clean code written by Robert Cecil Martin.

3. Last but not least, try to reference the docs:
A lot of developers (who aren't even juniors) would search StackOverflow for the answer instead of going directly to the source. Copying and pasting the answer is not how you will get to the answer.Most of the time StackOverflow would have answers that are not best in practice. So when you write a new piece of code let's say using JavaScript, refer to the JavaScript document on how the specific function is working.


If you like my work, please consider
[![Buy me a coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm11knj7d8zwcvo150q2.png)](https://www.buymeacoffee.com/cglikpo)
so that I can bring more projects, more articles for you


If you want to learn more about Web Development, feel free to follow me on https://www.youtube.com/channel/UCze04H5oeudQ01G9DDj-frA
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2021-06-22 20:07:20

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
_Every Tuesday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week._ 


## Who Needs Magic Eye?

@thormeier shows us the ins and outs of Steganography, revealing how messages can be secretly hidden in images.

{% link https://dev.to/thormeier/feel-like-a-secret-agent-hidden-messages-in-images-with-steganography-37kh %}

## Be Careful to Self-Care

Read on to learn from @coffeestasia about the red flags of developer burnout, practical advice on how to prevent it, and actionable steps you can take to overcome it.

{% link https://dev.to/actitime/how-to-prevent-or-recover-from-developer-burnout-3g5f %}

## OOP in JS

Let @romeopeter walk you through the concepts of OOP as they relate to JavaScript in this thoroughly written post.

{% link https://dev.to/romeopeter/object-oriented-programming-in-javascript-3j2o %}

## Restoring a Classic

In this interesting post, we follow @madsstoumann on their journey to update an old website... because as they wisely put it "Working with old code is sometimes unavoidable."

{% link https://dev.to/madsstoumann/updating-a-25-year-old-website-42jm %}

## Found It!

@laurieontech introduces us to the `findLast` and `findLastIndex` JS syntax in this quick but helpful read below.

{% link https://dev.to/laurieontech/introducing-findlast-and-findlastindex-1fan %}

## Lights On/Lights Off

Learn how to make a dark mode toggle using CSS in this helpful tutorial by @murtuzaalisurti.

{% link https://dev.to/murtuzaalisurti/dark-mode-toggle-animation-using-css-27il %}

## Crypto vs. CI/CD

@n3wt0n pulls back the lid to reveal the negative effects that crypto mining is having on free CI/CD platforms.

{% link https://dev.to/n3wt0n/crypto-mining-is-killing-all-free-ci-cd-platforms-4chc %}

_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Tuesday!_
Week 2 of Coding Period in GSoC
Tags: opensource, gsoc
Published: 2021-06-22 19:03:42

Welcome here! Before you pronounce actillimandataquerin altosapaoyabayadoondib! Let me tell you my crispy experience of week 2 in the GSoC. 

The second week started on 14 June 2021 and ended on 21 June 2021. I solved the issue of [Email server validation](https://github.com/BRL-CAD/OGV-meteor/issues/57). This issue was if the admin has not updated the SMTP server details in the application it should force the admin to set up first. This was required because if any user creates an account the user was not getting any email, neither the user could recover the password. Further, there was a discussion for this task about setting up SMTP server at localhost. The full conversation can be read on the [PR](https://github.com/BRL-CAD/OGV-meteor/pull/106) 

Then I worked on removing linting errors from code [PR link](https://github.com/BRL-CAD/OGV-meteor/pull/107). This task was super knowledgeable because I removed all the linting errors manually from each file. Though I had a hunch that this thing can be done all at once. Unfortunately, I could recall or find the solution. After I finished the task I found the solution. ESlint gives us a provision to fix all the auto-fixable linting issues. We need to run this command `npm run lint -- --fix`. Link to StackOverflow question where I found this is [here](https://stackoverflow.com/questions/40271230/how-to-run-eslint-fix-from-npm-script) 

Then I looked into the issue of [upload progress of model](https://github.com/BRL-CAD/OGV-meteor/issues/62) There was already a [PR](https://github.com/BRL-CAD/OGV-meteor/pull/94) for this issue. So I talked with my mentor about this PR that some changes were required to make this PR solve the issue. I end up having my PR from this commit and add new changes to that PR. This issue is a work in progress. 

Apart from that, most of my time went into learning management for that project. From my prior job experience and discussions with other people I thought it will be good if I manage things like time and handle the issues properly. So I thought I create a Trello board for my tasks where I'll write my tasks. Further, I am studying Scrum management for this. 

I hope the next week will be awesome with this management. I will share the link to the Trello board in the next week 3 blog as well. I will see you in the next blog. Have a wonderful day!
https://www.fiverr.com/ahmedali709/install-themeforest-wordpress-divi-theme-demo-divi-api-key
Published: 2021-06-22 19:55:00


Following services are included in this GIG



install themeforest wordpress divi theme demo,divi api key.
Responsive Divi Theme Layout
Divi theme api Key
4: activate divi with lifetime updatable API keys

5:Setup Divi Key Username and Password

6:100% ORIGINAL FILES
https://runtheshow.agency/blog/headless-wordpress-business-case/
Published: 2021-06-22 19:52:23

you use—or want to use WordPress—for your business’ website. You’re set on WordPress because you know it well, or you’ve heard about its user-friendliness. You start searching for solutions and a technical partner. You come across something new, “headless WordPress”. The features sound interesting, but what’s the business use case?

In this post, I’ll detail how headless WordPress can benefit your business and why it future-proofs your digital approach.

What Is Headless WordPress?
Headless WordPress means separating the front-end of your business’ website from the back-end. Instead of having WordPress be responsible for managing content and how that content looks on your website, you only manage content in WordPress. A separate (often JavaScript) front-end (what your customers see) is then be built to accompany your WordPress back-end.

You might even build multiple websites or mobile apps from the content you add to WordPress.

The headless approach for developing websites and applications is similar to how WordPress plugins work. Pick and mix functionality. The big difference is you’re not tied to the WordPress ecosystem. You can introduce custom functionality and integrations from anywhere.

Let’s say you’d like to write blog content in WordPress but sell products with Shopify, you can do this within one website. Whatever services you want to add to your website, you can, with headless WordPress.

When thinking about using headless WordPress for your business, think of WordPress as being the content provider of your website. With the front-end being a separate presentation layer.
Use SweetAlert2 with Laravel Livewire
Tags: laravel, webdev, tutorial, php
Published: 2021-06-22 19:50:45

Recently I've been doing a lot of **Laravel Livewire** stuff and truth to be told, I'm falling in love with it.

One of the common things to do in a web application is showing toast notifications. In this article, I'll be sharing a strategy I've been following for a while now.

Let's jump to implementing **Sweet Alert 2** with **Laravel Livewire**.

> Step 1:

First of all, we need to install **Sweet Alert 2**. You can install it through `npm`.

```
npm install sweetalert2
```
Or you can use this through CDN. In this article, I am going to use with CDN.

```js
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
```
Put this CDN in your **Main Layout**. 

> Step 2: 

Now, If you use this in **Laravet Livewire**, you should have a **Livewire Component** and **Class**. So in that class, after doing an action you need to dispatch a browser event. Now put this code into your action.

For livewire 2
```php
$this->dispatchBrowserEvent('swal', [
	'title' => 'Item has been removed.',
	'icon'=>'success',
	'iconColor'=>'blue',
]);
```

For livewire 3

```php
$this->dispatch('swal', [
	'title' => 'Item has been removed.',
	'icon'=>'success',
	'iconColor'=>'blue',
]);
```

> Step 3:

Now you need to listen to this event so that it can fire an action to show the **Sweet Alert Message**. Now put this code to listen to the event which is fired from the **Component Class**.

```js
<script>
    window.addEventListener('swal',function(e) {
        Swal.fire({
            title:  e.detail.title,
            icon: e.detail.icon,
            iconColor: e.detail.iconColor,
            timer: 3000,
            toast: true,
            position: 'top-right',
            toast:  true,
            showConfirmButton:  false,
        });
    });
</script>
```

Here we go... We have done our job.

Here I am sharing a [GitHub Repository](https://github.com/mahmudulhsn/shopping-cart-with-laravel-livewire) for making you better understand how you can use it.

Here I used this code as `partials/_swal.blade.php`.
```js
<script>
    window.addEventListener('swal',function(e) {
        Swal.fire({
            title:  e.detail.title,
            icon: e.detail.icon,
            iconColor: e.detail.iconColor,
            timer: 3000,
            toast: true,
            position: 'top-right',
            toast:  true,
            showConfirmButton:  false,
        });
    });
</script>
```

Then I imported it in `layouts/app.blade.php`. You can easily understand it after seeing this repository.

## Suggested Reads
* [Sweet Alert 2 Documentaiton](https://sweetalert2.github.io/#download) 
* [Laravel Livewire Documentation](https://laravel-livewire.com/docs/2.x/events#firing-events)
IconShock - 2 mill stock icons and 800 icon sets
Tags: icons, design, designers
Published: 2021-06-22 19:38:51

2 Million+ professional icons library. Over 400+ icon sets in more than 30 styles, including Flat, Material, iOS, Glyph, Colorful, Window 10, Revamped Office, 3D Realistic, Isometric, & more! Most of the icons are vector and pixel perfect conveniently grouped in sets by industries, and our customs designs are even better :)
Artify - The perfect solution for your design needs
Tags: design, designers
Published: 2021-06-22 19:34:28

https://www.artify.co/

Artify is the perfect solution for your design needs.
Artify Gallery: A massive collection of thousands of use-ready vector design templates. 
Artify Packs: Ready-to-use vector design templates for all your creative needs, new packs of templates added every week.
Artify Editor: An easy-to-use web-based design editor to adapt any of our designs.
Artify Illustrations: A huge collection of over 5000 vector illustrations packed in more than 70 different styles and concepts.
Is anyone worried about Gatsby vulnerabilities?
Tags: help
Published: 2021-06-22 19:31:38

I understand that Gatsby is not the offender here and even more nobody owns this issue, so why does it seem to me that I am the only one constantly concerned about this?
```
gatsby cd gatsby-starter-blog 
gatsby-starter-blog git:(master) npm install

up to date, audited 2324 packages in 5s

41 vulnerabilities (10 moderate, 31 high)
```
My first Tkinter project
Tags: python, programming, learning
Published: 2021-06-22 19:22:36

Today I finish my first project using the Tkinter framework for my GUI. It is a simple program that allows the user to clean out their folders.
![GUI Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efm3rp7gxjqxq8tac61h.png)

The user will be prompted to browse for a folder to clean and then the user must hit the clean button before they are given another prompt.
![Gui prompt 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sdg5xn28xm4rmh1shx5z.png)

Here the user has the option to simply delete everything in the folder (including the folder itself, but it'll be recreated) or to delete everything in the folder one at a time.
![GUI prompt 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fi2lh0d8ufwurkwh56ss.png)

Some things to note is although the window can be resized the inner frame of the window does not, clicking no to not a delete a file but then going back to delete everything all at once will result in said file still being deleted. If the user clicks the one at a time button and then right after clicks the all at once button everything will be deleted button the GUI will not refresh to show that it has been deleted.

Here is the repo if you wish to see how I did it. https://github.com/Rocky-Hoang-Le/filecleaner
Git user config per path
Tags: git
Published: 2021-06-22 19:13:25

# TIL git config core.sshCommand

TIL [here](https://superuser.com/a/912281) that git provides a config for `core.sshCommand`.

I was already splitting my personal and work git user configuration by path with this setting in my `~/.gitconfig`.

So adding the block below simplified my `.ssh/config` and my cloning/pushing.

```
[core]
       sshCommand = "ssh -i ~/.ssh/id_ed25519_personal -F /dev/null"
```

## ~/.gitconfig

```
[include]
	path = ~/dotfiles/gituser_work.include
[includeIf "gitdir/i:~/dotfiles/"]
    path = ~/dotfiles/gituser_personal.include
```

## gituser_work.include

```
[user]
       name = Your Full Name
       email = your@work-email.com
```

## gituser_personal.include

```
[user]
       name = Your Full Name
       email = your@personal-email.com

[core]
       sshCommand = "ssh -i ~/.ssh/id_ed25519_personal -F /dev/null"
```
The CodeLand CFP is Open!
Tags: codeland, meta, codenewbie
Published: 2021-06-22 19:06:56

---
title: The CodeLand CFP is Open!
published: true
description: Conference CFP open now until July 20th
tags: codeland, meta, codenewbie
series: CodeLand 2021 Updates
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uli7y3jjwcq0bt80b4f5.png
---

As we shared last week, CodeLand 2021 is officially coming back in September 2021. 

2 days, 1 community, 5 years in a row 🌈 

We can't wait to see you for this free and virtual celebration of early-career coders and their champions.  

{% link https://dev.to/devteam/codeland-2021-motivation-career-long-connections-for-early-career-devs-2loa %}

## Today, CodeLand has opened up its Call For Proposals (CFP). [Submit your talk](https://cfp.codelandconf.com/events/codeland-2021) between now and July 20th for consideration!

[This](https://community.codenewbie.org/codenewbie/submit-your-talk-to-codeland-2021-5ee) helpful post on CodeNewbie Community goes into a bit more detail about what you can expect from the CFP, who's reviewing talks, and who should submit. 

>> ### If you decide to submit a talk, you can do so at [cfp.codelandconf.com](https://cfp.codelandconf.com/events/codeland-2021) between now and **July 20th @ 11:59pm UTC**.

_Friendly reminder to register for the CodeNewbie Community Forem if you haven't already — it's where we'll be hosting CodeLand and is the best place to stay in the loop about related updates. You can also sign up for email updates pertaining to CodeLand [here](http://eepurl.com/hBb5pv)._
windows cmd commands via puppet
Tags: puppet
Published: 2021-06-22 18:54:33

Hey everyone, i need to run cmd commands in windows
i can achive it with exec blocks , but prefer to run it only once 
pls see below the code example,
what is the best way  like function or with file block ?
Thanks in advance!

class disable_updates_available::windows (
 ) {

   exec { 'enter system32 directory':
     command => "C:\\Windows\\System32\\cmd.exe  => cd /d '%Windir%\System32",
   }

  exec { 'execute takeownership of musnotification.exe':
     command => "C:\\Windows\\System32\\cmd.exe  => takeown /f musnotification.exe",
   }