teleren/devto huggingface dataset:
Daily Developer Jokes - Sunday, Dec 20, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-12-20 13:00:26

---
title: "Daily Developer Jokes - Sunday, Dec 20, 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=Sunday%2C%20Dec%2020%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/5e12594d2dedc.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Why can't SQL and NoSQL Developers date one other?

___A:___ Because they don't agree on relationships.
 -->
Modifying the Batch Size in Hyperledger Fabric v2.2
Tags: hlf, hyperledgerfabric, hyperledger, blockchain
Published: 2020-12-25 10:58:01

---
title: Modifying the Batch Size in Hyperledger Fabric v2.2
published: true
date: 2020-12-20 12:58:12 UTC
tags: hlf,hyperledgerfabric,hyperledger,blockchain
canonical_url: https://medium.com/coinmonks/modifying-the-batch-size-in-hyperledger-fabric-v2-2-3ec2dd779e2b
---

[![](https://cdn-images-1.medium.com/max/1400/0*C85KnXCCkdbn38Bp.png)](https://medium.com/coinmonks/modifying-the-batch-size-in-hyperledger-fabric-v2-2-3ec2dd779e2b?source=rss----721b17443fd5---4)

1. Overview

[Continue reading on Coinmonks »](https://medium.com/coinmonks/modifying-the-batch-size-in-hyperledger-fabric-v2-2-3ec2dd779e2b?source=rss----721b17443fd5---4)
This Parcel is for Email Development and it's brilliant!
Tags: editor, emaildevelopment, email, devtools
Published: 2020-12-20 12:51:37

---
title: This Parcel is for Email Development and it's brilliant!
published: true
description: The code editor for email development
tags: #editor #emaildevelopment #email #devtools
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/86kqnl1ik0dxxt1uwjd2.png
---

If you follow me or have read my older posts then you know that I write about Email Development and also share tools and resources related to frontend development.

I was looking for an online email code editor but was unsuccessful. I tried to use Codepen, JSFiddle, etc but the problem with these editors is that they are more focused on **web development** and not **email development**. I did enjoy using [Postdrop](https://app.postdrop.io/editor) however it lacked the full-blown editor features.

##Meet Parcel - The Code Editor for Email Development
I recently stumbled upon Parcel editor and I was blown away by the UX and quality. I thought to share it with you. It is free to use and the email editing experience is seamless.


The is how it looks like: 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/g3zgml7qgg6uzl6s6ib9.png)
[Click here to visit Parcel Editor](https://useparcel.com/)

The editor structure is just like a normal editor with File Structure on the Left, HTML Code editor in the middle, and Preview on the Right. It is also equipped with some good features like template sharing, Send Test Email, and many more.

_Now Let us edit/create an email template!_

###1. Get any HTML Email Code

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rvhoic6r0dw57zpgf0mq.png)
Get any HTML Email template. I am going to use [Codedmails](https://codedmails.com) to find a free template. Open any email template preview of your choice and click on **Copy Code** to copy the HTML. I am using [Change Your Password Template - Dineos Theme](https://codedmails.com/template-preview?template=reset-email-dineos) for this example. 

###2. Paste it in Parcel

Once you paste the code, this is how it will look now:

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

###3. Inspect and Edit

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/33bafmad4erzhstufto1.png)

Parcel comes with some great features which can be accessed in the top right of the preview panel ( image above ) e.g 
1. Focus Mode - Scroll with the Preview/Code
2. Inspect Elements - Inspect Elements to quick lookup and edit
3. Email Accessibility - For visually impaired
4. Toggle Images ( to see how emails will look when images are OFF by default e.g in Outlook )
5. Emails Previews in Tablet, Mobile, and Desktop

###4. Send a test email
Once you are done with editing the template, you can use the **Send Test** function to send a test email.

There are many more features of Parcel editor and I haven't covered all of them. Feel free to visit [Parcel](https://useparcel.com/) and tinker around.

Thanks for reading! 

_**Do you use any other online email editor?** Please share in the comments below_

Happy Emailing!
Lessons from moving DomeCode to DigitalOcean
Tags: domecode, cloud, postgres, heroku
Published: 2020-12-20 12:45:24

Well, for starters, [DomeCode](https://domecode.com/) is a coding platform that unifies the coding experience by providing all relevant resources and tools in a single platform and this post is a result of us, at DomeCode, shifting from Heroku ( after exhausting free credits ) to Digital Ocean ( still on free credits ).

In this post, I want to emphasize the importance of choosing the right cloud provider for **you** and saving up money by spending on only what you and your application really needs. If you're profitable and have enough money at disposal, this post might not make a huge difference for you but for those of you out there who're starting out and are on a tight budget, this might help.

The guidelines to help you : ( not a huge fan of constraints but these are actually helpful )

- Exhaust all the free credits from any platform you can get your hands on. 
*I went three months into Heroku for free until I got charged.*
Examples include for the majority of you out there, **Linode, DigitalOcean, Azure, AWS, and GCP**. All of these entertain some sort of free credit program and you can just go ahead and take advantage of these programs so you don't have to worry about the costs but rather, just your code.

- Don't go for PaaS unless you absolutely need to or you have the credits/money to. Exceptions include services that wholly PaaS like Heroku. However, if you're on DigitalOcean, avoid the 'easy deployment' options using 'Apps' if possible. If you can do the deployment and configurations ( along with some sysadmin stuff ) yourself, you can potentially save yourself over 50%.

- Pay for only the services you need, this is a no-brainer but still worth mentioning that you should only pay for the plan that you know your application is gonna end up using the resources equivalent of. For example, if you've just started working on a Node.js application with 200 users with light usage, it makes no sense to pay $60/month in most cases.

In simple words, by moving Heroku ( $7/mo dyno + $7mo worker + $50/mo database ) to DigitalOcean ( $5/month — setting it all up ). This potentially saved over 90% of the initial cost ( $5 instead of $64 a month ).

With that being said, it's ultimately upto you where you want to spend your budget ( if it's low ), the cloud when you can rather redeem credits or other places that make your product better?

My Github - https://github.com/arthtyagi
Create automatic Image Slideshow in HTML
Tags: html, css, carousel, slideshow
Published: 2020-12-20 12:41:00

The image slideshow is made with HTML and CSS. They are usually used in a portfolio, making testimonials. It is very useful and Important e.g. users can directly see testimonials etc without any problem, you can also use it by copy-pasting the code from my site.
<a rel="nofollow" href="https://codewithbishal.com/example/create-an-image-slider-with-html">View it on our website</a>
View More :
<ul>
<li><a rel="nofollow" href="https://www.codewithbishal.com/example/create-a-sortable-list-with-draggable-items-using-javascript">How to Create Draggable Lists with JavaScript</a></li>
<li><a rel="nofollow" href="https://codewithbishal.com/example/validate-email-address-using-javascript">Email validation using JavaScript and Bootstrap</a></li>
</ul>
At first, on our webpage, there is the overview of our blog then there is the example of our Image slideshow. There is a button to copy the codes (HTML and CSS). You can also try it on our website

You can view and copy the source code files through the link given below. <a rel="nofollow" href="https://www.codewithbishal.com/example/create-an-image-slider-with-html">View and Copy Source Code</a>
ANDROID APPLICATION WITH PYTHON ?
Tags: python, android, programming, database
Published: 2020-12-20 12:39:53

python for android development?

this question always filled my mind as a python developer I won't deny that learning a new language for a little project seemed to be so tiring, making some searches and I found a library called kivy .

Basically it's like tkinter if you are familiar with , you can design a UI but it was so simple and not as I imagined , fonts were limited , gadgets designs were really weak and there was a lot of bugs that happens some times , not to overlook the limitation of creativity also you had to have a decent amount of knowledge in OOP ( OBJECT ORIENTED PROGRAMMING ) and not only the car famous example .
 I got so frustrated to be honest , googling more and more and I found an other library based on kivy but named kivyMD , before I go on what is kivyMD , let me clarify that kivy is written in Python and Cython, based on OpenGL ES 2, supports various input devices and has an extensive widget library. With the same codebase, you can target Windows, macOS, Linux, Android and iOS. 
However KivyMD is a collection of Material Design compliant widgets for use with Kivy, it is also cross-platform, touch-enabled graphical applications , the project's goal is to approximate Google's Material Design spec as close as possible without sacrificing ease of use or application performance . 
So now with almost google materials designing was a little bit more beautiful , so my idea was to build an application for a website to receive notifications whenever a meeting is set , and also implementing a real-time chat , so the first part was a logging screen , so I used a flask api to authenticate.
I could've used firebase auth function but prefer building my own services until I have no clue about how to do it , next part now was getting the meetings list , getting a response from the api with all the meetings , using a jwt to verify from where the request is coming from , so with this set up , I had to set up a event listener on the change of database columns which was a little bit hard 
Because the application isn't directly listening to the database so was a little bit hard but agn timing requests was a simple solution , last but not least ,  realtime chat , this one was tough couldn't implement it anyways , tried firebase realtime database , but still really really hard to implement , the most satisfying result was needing to get on and out to refresh the feed of messages .... finally , having a lot of errors while compiling the code , took some time to fix it and now m with my apk .

from my experience I could assume that if you have an almost static application it's okay to go with kivy , but , something more complex I guess it won't be wise to use kivy ! java , kotlin , flutter might do the job for android , swift for ios , or hit two birds with one rock and using react native .


kivy official documentation : https://kivy.org/doc/stable/
kivy's repo : https://github.com/kivy/kivy
kivyMD documentation : https://kivymd.readthedocs.io/en/latest/
kivyMD's repo : https://github.com/kivymd/KivyMD
DO Hackathon app idea
Tags: dohackathon, nextjs, graphql
Published: 2020-12-20 12:32:55

For this Hackathon (which is my first ever hackathon btw 😅), I'm planning to build an app where people can post on what they want or need to borrow, of course with the intention to return to owner and it's going to be called _Goodeed_. 

### Why? 🤔
The idea actually sparked when I needed a specific tool recently for a DIY project but I don't want to buy one just for one use. I wish there was an app where the users who are close to you could lend you the tool. So as you've read, yes it is a _"Program for the people"_ app.

### Features ✌️
There are a few main features I have in mind for this app:

1. The app will have an authentication system (users must login to see the posts)
2. The posts will be sorted by distance from your location. It just makes sense.
3. Users will have the ability to create posts, comment on them, private message the users for further information on the "transaction", and manage what was borrowed. 

### Tech stack 🚀
The stack that I have planned for this app will mainly be __Next.js__, __GraphQL__, and __Apollo__. I picked Next.js because of the possibilities of API routes for the backend and it generally reduces the complexity of setting up the server. GraphQL API is something that I have been wanting to learn for a LOOOOONG time now and this is the best opportunity to do it! Socket.io will also be used for the private messaging feature in the app.

The next posts will involve more code (I promise 😉)

Now... onto coding! Have a great hackathon everyone!
New to Machine Learning
Tags: beginners, machinelearning, datascience, programming
Published: 2020-12-20 12:02:50

So I make a post yesterday on how I am new to this community, and I also find out how supportive everyone is on here after browsing around.
So I recently started taking a Machine Learning free course on Edx, by the way I am still a CS undergraduate in my first year. I can code in both Python and Java (I know I am not using Java for ML).
I would love someone to recommend a blog or something that will guide me on my learning journey, I give up easily.
PS: pardon my English
How to make a frame isometric in Figma?
Tags: design, app, figma, isometric
Published: 2020-12-20 11:53:55

Figma is around for quite some time now. Many people are looking at it as a free alternative for Adobe Illustrator or Adobe XD. So, here's a post on how to make a isometric frame in Figma

# Normal Design
Start by choosing a frame and making a normal design. I have made this
![iPhone 11 Pro Max - 1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463148614/s_M7u9ciT.png)

# Start of with Isometric
 <a id="step1"></a>
- Click on the name of the frame on top of the frame to select it.
![Screenshot 2020-12-20 at 4.50.44 PM.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463248437/X1sVfPNSL.jpeg)

<a id="step2"></a>
- On the left panel set angle to 45º like so

![Screen Recording 2020-12-20 at 4.53.07 PM.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463428420/g_19wdp1Q.gif)

<a id="step3"></a>
- Select all items inside the frame from the right panel and set the constraints to scale like so

![step2.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463601596/bI58ADjDs.gif)

- Now select the frame like done in [Step 1](#step1) and make a group of the frame by doing `Command G` on MacOS or `Control G` on other OS's.

![step4.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463853500/iyt5X9R_l.gif)

- Now, go to `H` on the left panel and type `57.73%` over there and see the magic 🥳

![step5.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1608463973278/s9epSQ41m.gif)

- Now, you would notice that the texts are not as well sized as they should have been. So we will have to tweak the font sizes a little bit.
> Note: The images, shapes and svgs, etc. would be well sized because of [Step 3](#step3)

At the end after tweaking your font sizes, you should get something like this

![iPhone 11 Pro Max - 1 (1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1608464272522/oBgmg0cF0.png)

Now you can add a phone mockup and get this
![Group 19.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1608464670777/iW2YnIHhj.png)
Meetup Announcement
Tags: techtalks, meetup, 100daysofcode, node
Published: 2020-12-20 11:42:50

Greetings to all the Tech-lovers out there!<p>&#x1F603;</p>

Gitlab Community Coimbatore brings to you an exciting Meetup on the eve of **9th January, 2021** by **Arunpaul M**, who would elucidate on **"BREAKDOWN NODE JS"**.

Read through this post for a cool takeaway at the end!<p>&#128525;</p>

<u>Agenda for the day:</u>

6:05pm - Welcome note.
6:10pm - The Engine and the execution of JS
6:25pm - Secrets about ECMAScript
6:40pm - Do you think the prototype is complex?
6:55pm - Q&A Sessions followed by Vote of thanks.

<u>Abstracts and speaker bios:</u>

<i>"BREAKDOWN NODE JS"<i>

Deep dive into the core functionalities of node JS and explore the complexity of the prototype in JS.

<i>Speaker Bio:</i>

Senior Software Developer at Vakilsearch. 
Despite a tech-enthusiast, he is a Freelancer and has contributed to Opensource in many of the side-projects.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/77t3f200k1a0k6h8z0fa.png)

**Reminder: All attendees are expected to adhere to the GitLab Code of Conduct.**

So what are you waiting for? 
Enroll yourself <a href="https://www.meetup.com/GitLab-Meetup-Coimbatore/events/275278219/">here</a> and become the *lucky winners* of the Gitlab goodies at the end of the Q&A Session.

<code><p><br>
<footer style="height:auto"><h3>*Follow our community for more updates*</h3><table><tr><td><a href="https://gitlab.substack.com/">![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hplp6opfpywirwur2vmz.png "Official Website")</a></td><td><a href="https://twitter.com/GitlabC">![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/00qhd8v9ma2t2l2xv4xh.png "Twitter")</a></td><td><a href="https://www.meetup.com/GitLab-Meetup-Coimbatore/">![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/aqq6pi897bk687d3kwwa.png "Meetup Community")</a></td><td><a href="https://www.linkedin.com/groups/8955040/">![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8u4886rik46g1bvvrx8d.png "LinkedIn")</a></td></tr></table></footer></p></code>
How to copy Heroku production database into development environment?
Tags: ruby, rails, heroku, postgres
Published: 2020-12-20 11:15:30

---
title: How to copy Heroku production database into development environment?
published: true
tags: ruby, rails, heroku, postgresql
canonical_url: https://blog.corsego.com/ruby-on-rails-heroku-load-production-database-in-development
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/595qhppflq6fh66qmgqh.png
---
[![load Heroku production database in development](https://img.youtube.com/vi/qSYLJhe2nO4/0.jpg)](https://www.youtube.com/watch?v=qSYLJhe2nO4)

Sometimes you want to run a copy of your **production database in development**.

It can be really useful for debugging, or experimenting with potentially dangerous operations.

Here’s how you can run your Heroku Postgresql database in development:

- 1 Create Heroku backup
```
heroku pg:backups:capture --app myappname
```

- 2 Download Heroku backup [(source)](https://devcenter.heroku.com/articles/heroku-postgres-backups)

```
heroku pg:backups:download --app myappname
```

- 3 Reset local database

```
rails db:drop
rails db:drop DISABLE_DATABASE_ENVIRONMENT_CHECK=1
rails db:create
```

- 4 Populate local database from heroku download

(place development database name from database.yml)

```
pg_restore -h localhost -d myappname_development latest.dump
```

- 5 run migrations

```
rails db:migrate
```

- 6 Remove downloaded database from app repository:

```
rm latest.dump 
```

That’s it! Now you have a copy of your production database running in development🥳!

* * *

# Troubleshooting

- [Update postgresql](https://www.postgresql.org/download/linux/ubuntu/)

- Create a new postgresql user and password [(source)](https://www.a2hosting.com/kb/developer-corner/postgresql/managing-postgresql-databases-and-users-from-the-command-line)

```
createuser --interactive --pwprompt
yaro
pass
```

- Specify newly created postgresql user for restoring database and restore
```
pg_restore -h localhost -U yaro -d myappname_development latest.dump
pass
```

or

```
PGPASSWORD=pass pg_restore -h localhost -U yaro -d myappname_development latest.dump
```

or

```
set "PGPASSWORD=pass"
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U yaro -d myappname_development latest.dump
```

* * *

Adding `latest.dump` to gitignore:

```
echo 'latest.dump*' >> .gitignore
```
FREE Hosting Provider Landing Page
Tags: react, javascript, startup, gatsby
Published: 2020-12-20 11:12:32

Hello good people of Dev.to! I am back with yet another absolutely **free React landing template** - this time for **Hosting Provider** services!

Before starting though, I would like to thank you for the awesome support, love and feedback you've sent this way. It really helps keep us motivated and work harder to keep coming up with free resources that we believe will help everyone!

Now that that's out of the way, let me introduce our latest **[free React landing template for Hosting Providers](https://startup-hosting-provider.vercel.app/)**. Side note - even though we designed it with hosting providers in mind, if you like how it looks, you can easily customize to fit your requirements.

This **free Hosting Provider React landing template** continues with the same less is more design philosophy that we've found to be popular among users. This also utilizes **Next JS** and **Gatsby JS**, making it fast, SEO friendly and not to mention secure too. And as always, we haven't forgotten to add the **MailChimp** integration so that keeping connected with your leads is no difficult than just a few clicks!

More **free React landing templates** will be added regularly so do keep an eye out here. And if you like this, do stay connected with us on:

👉Facebook: https://www.facebook.com/StartupLanding
👉Twitter: https://twitter.com/startuplanding

and check all the templates from:

👉 Check it live here: https://startuplanding.redq.io/
👉 Check it on Github: https://github.com/Startup-Landing/Startup-Landing
👉 Check it on Producthunt: https://www.producthunt.com/posts/startup-landing
after build succeeded, I tried to run it locally but got this error :
Tags: react, node, javascript
Published: 2020-12-20 11:07:26

$ npm run start

> ismailalabou.github.io@0.1.0 start C:\Users\ismailalabou\Documents\Gitlab\portfolio
> node src/index.js

(node:10340) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
C:\Users\ismailalabou\Documents\Gitlab\portfolio\src\index.js:1
import React from "react";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ismailalabou.github.io@0.1.0 start: `node src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ismailalabou.github.io@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ismailalabou\AppData\Roaming\npm-cache\_logs\2020-12-20T11_10_28_952Z-debug.log