teleren/devto huggingface dataset:
Why you should never cheat when learning to code
Published: 2020-12-01 14:38:38

In [one of the first lectures](https://js.coderslang.com/lecture/5) we taught you the binary search algorithm.

This is one of the classic algorithms. You can find its **JavaScript** implementation on the Internet in about 5 seconds. It might take you another 10 seconds to check the functionality of your code and send the task for verification. But this is the road to nowhere.

Solving tough problems on your own, you improve your skills. Maybe some problems will take a full day to crack. With the other ones, you might struggle for weeks. But the skills you learn in the process will stay with you for life.

Copying someone else's code, you may get a moment's pleasure from the "green checkmarks", but they will not bring you any benefit. You can tell yourself as much as you like that you "would have figured it out anyway", or "analyzed the code in detail and understood it well", but this is all self-deception.

You can think of your brain as a muscle and [**CoderslangJS**](https://js.coderslang.com) as a gym.

You can ask for advice if you feel you don't understand how to do a certain exercise. The gym is full of people that are ready to help. Or you might want to sit back, relax for a while and just chit-chat with someone about life.

But asking someone to lift the barbell for you? This is nonsense. Exactly the same nonsense as copying someone else's code and rejoicing at the "solved" task.
Ask Octopus - How can I set up Disaster Recovery?
Tags: octopus, devops
Published: 2020-12-01 14:38:03

---
title: Ask Octopus - How can I set up Disaster Recovery?
published: true
description: Wondering what your Disaster Recovery options are for your Octopus Server? Find out in this Ask Octopus!
tags: octopus,devops
series: Ask Octopus
---

Wondering what your Disaster Recovery options are for your Octopus Server? Find out in this Ask Octopus!

{% youtube xB9pHH_SPBo %}

Other resources:
 - https://help.octopus.com/t/how-do-i-set-up-octopus-deploy-for-disaster-recovery/24081/2

Do you have a question about how to use Octopus? Email advice@octopus.com and someone from our team will get you an answer. You might even see it in a future episode.

Join our community slack at https://octopus.com/slack
In angular move selected data in col A to col B in table.
Published: 2020-12-01 14:37:08

Hi,
I'm new to angular, I'm trying to code a program such that when ever I select an item using check boxes in col A, and click on a button Move A to B, those selected items should completely move from Col A to Col B, similarly for selected items in col B.
please refer my code on git repo: https://github.com/jhansiravula/teams/tree/master/src/app 

I have used JSON data for the data in table
could someone help me
6 Steps to Take When Inheriting Legacy Rails Apps
Tags: webdev, rails, beginners, productivity
Published: 2020-12-01 14:26:09


## Intro

I started a new job back in June and my first project was taking over and making updates to a big legacy Rails app. Taking the project over was pretty much a worst-case scenario because the project had no tests and nobody who had built the website was still contactable.

Luckily I've been working with Rails for 6 years, and most of the decisions on this project ended up being the Rails standard, so I was able to setup the project, add some tests, and figure out deployments to staging/production.

Along the way I kept notes of my process, and wrote this blog post which gives the 6 steps I take when starting a project like this.

https://nextlinklabs.com/insights/six-tips-for-inheriting-a-legacy-rails-app

I'd love to hear any feedback on the blog post! Also, have any of you had a situation like this where you had to take over an existing project after the original developers have disappeared?
Dynamic generated nested table
Tags: php, xml, loops, table
Published: 2020-12-01 14:20:11

I'm stuck on this issue for a while now, and i can't figure out how to solve this. I have a feeling i'm rather close to solving this. But the final piece of the puzzle is missing.

What i'm trying to do? I use the MPDF library to render an PDF based on a XML source file. I want to make use of the nested table functionality. And creating the table with static html and rendering it works like a charm. However, generating the same structure based on the data itself is giving me a headache. The DOM structure should be: https://pastebin.com/zuQAykCB.

With the following code:
```
echo '<table><tbody>';
  foreach($orderConfArray as $orderConfLine ) :
    $orderConfEconData = isset($orderConfLine['EconData']) ? $orderConfLine['EconData'] : '';
    foreach($orderConfEconData as $key => $value) :
        $x++;      

        if($x === 1 ) :
            
            echo '
            <tr>
            <td>blank col</td>
            <td colspan="6">
            <table cellspacing="2" class="inner" width="100%">
            <tbody>';
        endif;
        
        echo '<tr>';
                echo '<td>';
                echo 'content';
                echo '</td>';
        echo '</tr>';

        if($x === 16 ) :
            echo '
            </tbody>
            </table>
            </td>
            </tr>';
        $x = 0;
        $y = 0;
        endif;
    endforeach;
 endforeach;
 echo '</tbody></table>';
```
I get the following output https://pastebin.com/GmVDKw7e, which is close. But not yet what i'm trying to accomplish. I need to do the following (I think) to get this working:

Count the total number of items
If the count reaches a certain number (on the nested table's TD), it should create a new TR within the nested table and continue from there.
If we reach a certain number of TR's within the nested table. It should create a new TR with a nested table altogether.
I can't wrap my head around this. Does anyone have a clue on how to fix this?
Cross-Browser Support with React Polyfills - For IE & Smart TV Browsers
Tags: react, crossbrowser, javascript
Published: 2020-12-01 14:16:04

The biggest issue we all front-end developers have to deal with is supporting IE 😱. Another browser where App was not working well was Smart TV browsers. In case of React App, the blank page was rendered on both IE and Smart TV browsers.


After a lot of search and trial and errors, we found a partial solution in the React Documentation itself - [Javascript Environment Requirements](https://reactjs.org/docs/javascript-environment-requirements.html).

###Solution

Since ES6 is not supported on Internet Explorer and older versions of Smart TV browsers, we have to use polyfills for the ES6 features. [core-js](https://github.com/zloirock/core-js) is a standard library for polyfills. We can import polyfills only for the required features. 
React also depends on `requestAnimationFrame` for which we can use [raf](https://github.com/chrisdickinson/raf#readme) polyfill.
 

####Installing Dependencies
```
npm install core-js --save
npm install raf --save
npm install react-app-polyfill --save
```

####Adding a file to import polyfills - **polyfills.js**

```
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import "core-js/es/symbol";
import "core-js/es/object";
import "core-js/es/function";
import "core-js/es/parse-int";
import "core-js/es/parse-float";
import "core-js/es/number";
import "core-js/es/math";
import "core-js/es/string";
import "core-js/es/date";
import "core-js/es/array";
import "core-js/es/regexp";
import "core-js/es/map";
import "core-js/es/weak-map";
import "core-js/es/set";
import "raf/polyfill";
```

####Adding following code in the root file - **index.js**

```
import "react-app-polyfill/ie9";
import "react-app-polyfill/ie11";
import "react-app-polyfill/stable";

if (window.fetch) {
  // Check whether ES6 is supported in Modern Browsers
  import("./app").then(function (module) {
    module.default();
  });
} else {
  // For legacy or old browsers
  import("./polyfills").then(() => {
    import("./app").then(function (module) {
      module.default();
    });
  });
}
```

####Build and Serve using Static Server
Even if you are using polyfills the app will not directly run on IE. You will have to build it and serve it using static server like [serve](https://github.com/zeit/serve).


![IT WORKS!](https://media.giphy.com/media/l4EoUzvXmUR7jsUXC/giphy.gif)
Blazor and 2D game development – part 1: intro
Tags: blazor, dotnet, gamedev
Published: 2020-12-01 13:48:41

Every now and then I go back to **game development**. It's literally what brought me into this world of coding, something like 32 years ago. This time I decided to do some experiments with **Blazor** and **2D graphics**.

I don't have a precise goal in mind right now, just playing around.

Probably this late-night fever started when I wrote about [D&D, Blazor and gRPC services](https://www.davideguida.com/how-to-consume-dd-rest-api-over-grpc-web-blazor-part-1-the-client/?swcfpc=1).

#### For those interested, [on GitHub](https://github.com/mizrael/BlazorCanvas) you can find a repository with all the examples I'll be able to come up with.

For now, I decided to proceed at incremental steps and write small features, one on top of the other. As of today, this is the current list:

1.  [Example 1](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example1) shows how to initialize the 2d canvas
2.  in [example 2](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example2) we see how to render a sprite and react to the window resize event
3.  [Example 3](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example3) shows how to move a sprite on the screen
4.  Then in [example 4](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example4), we build on top of the previous one, refactoring and cleaning up the code
5.  [Example 5](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example5) shows how to handle mouse inputs
6.  [Example 6](https://github.com/mizrael/BlazorCanvas/tree/master/BlazorCanvas.Example6) shows how to animate a sprite. I downloaded the spritesheets from [here](https://luizmelo.itch.io/medieval-warrior-pack-2) and combined them using [a custom tool](https://github.com/mizrael/BlazorCanvas/tree/master/tools/AnimatedSpritesProcessor)

I will try to write an article for every example, it will also serve as reminder of my train of thought and how I managed to get the code in that shape.

As I wrote previously, I don't have a precise goal at the moment. I *might *end up with something playable, although I tend to change idea quite often on this matter. As many of us, I can get distracted quite easily by new shiny toys. Or simply by life ![🙂](https://s.w.org/images/core/emoji/13.0.0/svg/1f642.svg)

The [next time](https://www.davideguida.com/blazor-gamedev-part-2-canvas-initialization/?swcfpc=1) we'll start by initializing the Canvas and rendering some text.
I built a blog with Dev.to API and Next.js
Tags: devops, api, javascript
Published: 2020-12-01 13:44:19

I demonstrated how dev.to API work and can be used by creating a blog using dev.to API to integrate with my portfolio. You can check live blog here : [click here](https://devblog.namanvyas.vercel.app)

Framework, library used to create this project :
Next.js
dev.to API (obviously)
geist-ui (frontend)
nprogress (To add progress bar in website)

![Site Image](https://dev-to-uploads.s3.amazonaws.com/i/suhamg3cd1gzzktbf0fb.png)

## About Next.js (used for backend)
Next.js is an open-source React front-end development web framework that enables functionality such as server-side rendering and generating static websites for React based web applications.

## About dev.to API
I used this API to fetch user data from dev.to profile. It is official API for dev.to website from which we can access almost everything from our dev.to profile

## About geist-ui
I used this library for frontend. This is a Modern and minimalist React UI library, originating from Vercel's design.

## About nprogress
Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium. I used this library for adding a progress bar into this website

GitHub repositories of this project : [Click Here](https://github.com/NV404/dev_blog)
To dream a dream. My outreachy Journey
Published: 2020-12-01 13:23:03

The year 2020 has been a year of massive change in the entire world, there are mixed feelings of loss, confusion among others, but all in all, there is always hope that keeps us moving forward. I must say that being accepted as an Outreachy intern has been that ray of light at the end of the tunnel that I needed to end the year and begin the new year. [Outreachy]( https://www.outreachy.org/) is a paid, remote internship program with the goal to support people from groups underrepresented in tech. Starting my career in the field of software engineering has been a journey of hard work, persistence, and seizing every opportunity since where I come from such opportunities are rare and the support for women's engagement in technology is quite low. 

My journey into being accepted as an outreachy intern started when I submitted my application about 3 months ago, the whole
[Outreachy application](https://www.outreachy.org/apply/) takes approximately 3 months. During the application process, I got the opportunity to contribute to open-source projects, which is one of the requirements of the initial application process. Contributing to open-source projects is something new to me, I had never contributed to any open-source project before even though I have been coding for a while now. This is a completely new path for me in my career as a Software Engineer and it's one I'm truly excited to embark on, though a bit scary but I know that great things will come out of it!.

As part of the outreachy program, I got accepted as an intern at Wikimedia as a Software Developer intern, which will last for 3 months, and December 1st marks my day as an official Wikimedia intern. Excited!!. [Wikimedia](https://www.wikimedia.org/) is a global movement whose mission is to bring free educational content to the world. One of the reasons why I'm passionate about technology is the impact it makes in the lives of people and in the world at large, the kind of impact I see Wikimedia making by providing free educational content. I'm thrilled to be working with such a community of great and smart minded people and continue to make an impact by building and contributing to open source. I have the privilege to be mentored by [Vidhi Mody](https://twitter.com/vidhi_mody), [Željko Filipin](https://twitter.com/zeljkofilipin), and [Soham Parekh](https://twitter.com/und3fined_v01d) whom I look forward to learning from and collaborating with.

Keep an eye on this corner for more blog posts and adventure! I will be blogging about my experience with the new technology I will be using, Outreachy, internship experience at Wikimedia, Open source projects, to mention but a few.
Streaming Data Integration Without The Code at Equalum - Episode 161
Published: 2020-12-01 13:13:20

<p>The first stage of every good pipeline is to perform data integration. With the increasing pace of change and the need for up to date analytics the need to integrate that data in near real time is growing. With the improvements and increased variety of options for streaming data engines and improved tools for change data capture it is possible for data teams to make that goal a reality. However, despite all of the tools and managed distributions of those streaming engines it is still a challenge to build a robust and reliable pipeline for streaming data integration, especially if you need to expose those capabilities to non-engineers. In this episode Ido Friedman, CTO of Equalum, explains how they have built a no-code platform to make integration of streaming data and change data capture feeds easier to manage. He discusses the challenges that are inherent in the current state of CDC technologies, how they have architected their system to integrate well with existing data platforms, and how to build an appropriate level of abstraction for such a complex problem domain. If you are struggling with streaming data integration and change data capture then this interview is definitely worth a listen.</p><p><a href='https://www.dataengineeringpodcast.com/equalum-streaming-data-integration-episode-161/'>Listen Now!</a></p>
Open Sourcing The Anvil Full Stack Python Web App Platform - Episode 291
Published: 2020-12-01 13:12:24

<p>Building a complete web application requires expertise in a wide range of disciplines. As a result it is often the work of a whole team of engineers to get a new project from idea to production. Meredydd Luff and his co-founder built the Anvil platform to make it possible to build full stack applications entirely in Python. In this episode he explains why they released the application server as open source, how you can use it to run your own projects for free, and why developer tooling is the sweet spot for an open source business model. He also shares his vision for how the end-to-end experience of building for the web should look, and some of the innovative projects and companies that were made possible by the reduced friction that the Anvil platform provides. Give it a listen today to gain some perspective on what it could be like to build a web app.</p><p><a href='https://www.pythonpodcast.com/anvil-open-source-web-app-server-episode-291/'>Listen Now!</a></p>
We'll help you publish your first open source PR!
Tags: event, contribute, javascript
Published: 2020-12-01 13:01:37

If you'd like to start contributing to Open Source, we organise a bi-monthly event to help you get started! If you're an experienced contributor, you can come and help others get started! Feel free to join us next week at [Contribute](https://www.meetup.com/fr-FR/doctolib/events/274338434/).

For this edition, we'll welcome [Olivier Tassinari](https://www.linkedin.com/in/oliviertassinari/), founder of [Material-UI](https://material-ui.com/).

What's going to happen?
* We'll present a few issues that are easy to work with (From Material UI or other projects)
* We'll team up to tackle some of them
* Then we'll showcase what we've done during the evening

We've already published a few PR on past editions, feel free to [join us](https://www.meetup.com/fr-FR/doctolib/events/274338434/) to build your own, or subscribe to our [Meetup page](https://www.meetup.com/doctolib/) to know when a new event is coming!
How to Develop an Android App Easiest Way
Tags: android, mobile
Published: 2020-12-01 13:00:36

As of the third quarter of 2020, there are 2.87 million apps available on the Google Play App store. Mobile applications help organizations to enhance their sales and brand recognition especially after the pandemic of covid-19. Mobile apps also help to increase customer engagement and loyalty. It opens the door of profit for every business.
 
The highest-grossing applications generate dozens of millions of USD in global revenue, which proves that the significance of <a href="https://theonetechnologies.com/outsourcing-services/mobile-app-development-company.aspx" target="_blank">mobile app development</a> is evident in recent times. Therefore, it has become essential for business owners to have their own mobile app for their business or brand.

So do you have an app idea and want to build an android app?

I meet every day a lot of people who want to develop a mobile app and they have also a unique app development idea.  But the problem is they just don’t know where to get started.

So if you also fall into one of these categories, now it’s time to roll up your sleeves and make some mobile magic happen! But first, you need a plan.
 
Remember, a goal without a plan is not giving you long term benefits but worry not I help you turn that wish into a goal and that goal into reality.

So let’s figure out some steps that will help you.

Do Your Research
Secure Your Team
Develop Your Strategy
Do More Research
Create Your Sketches
Build Out Your Wireframes

If you still have not developed the one you might need the answer to the following questions:

How to start developing Android apps?
How to make an Android app for phones and tablets?
How to develop a Hybrid App?
Develop an App for beginners
How to develop a Native app for Google?
How to develop a basic Android app?
How to develop an app for free?

I am sharing here the <a href="https://theonetechnologies.com/blog/post/what-is-the-easiest-way-to-develop-an-android-app" target="_blank">blog</a> will surely give you answers to the above questions and help you in developing your first android app. Apart from this, there are numerous ways to develop Android apps.
 
If you still want to develop a feature-rich android app, then you should hire android developers from one of the best app development companies. They are a leading <a href="https://theonetechnologies.com/hire-programmers/hire-android-developers.aspx" target="_blank">android app development company</a> in helping unleash the latest android technology for customers to solve the toughest business problems of many clients.
Daily Developer Jokes - Tuesday, Dec 1, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-12-01 13:00:02

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

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

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258922d1b9.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:
I’ve been hearing news about this big boolean.

Huge if true.
 -->
Getting started with Advent of Code 2020 - Day 1 - JavaScript
Tags: challenge, adventofcode, javascript, video
Published: 2020-12-01 12:59:01

---
title: Getting started with Advent of Code 2020 - Day 1 - JavaScript
published: true
description: JavaScript walkthrough of Advent of Code 2020 (day 1)
tags: challenge, AdventOfCode, javascript, video
series: Advent of Code 2020 in Javascript
---

{% youtube fzZMD19Ek4g %}