teleren/devto huggingface dataset:
Kerajinan dari Sampah Kertas
Published: 2021-11-13 12:29:20

Punyai banyak kertas sisa di dalam rumah? Janganlah lekas dibuang ya. Yok kita sulap jadi kerajinan dari sampah kertas!

Banyak orang akan kecewa saat timbunan kertas sisa mulai menggunung di tempat tinggalnya. Biasanya, langsung panggil saja tukang rosok buat kelarin itu semua.

Walau sebenarnya, jika ingin cari gagasan mengenai kerajinan dari sampah kertas, timbunan kertas sisa itu benar-benar berguna. Bahkan juga, bila mendapati gagasan usaha, sampah kertas itu bisa saja cuan.

Bagaimana? Buku SD kamu masih tetap ada di dalam rumah kan?! Nach, kamu dapat sekali mulai berkreatifitas dan cari gagasan usaha dengan membaca artikel saya ini!

Beberapa ibu rumah-tangga yang punyai anak bisa juga sekali nih ikutin trick dan beberapa ide yang hendak <a href="https://genemil.com">https://genemil.com</a> tulis berikut ini.
Saya akan mengulas dimulai dari apakah itu sampah kertas, contoh kerajinan dari sampah kertas, bahkan juga sampai gagasan usaha yang dapat kamu dapatkan cukup dengan sampah itu.

Apa Itu Sampah Kertas?

Sampah kertas ialah sampah kertas yang sudah kepakai dan tidak dapat dipakai kembali namun tetap dapat dibuat jadi beberapa barang tertentu.

Sampah kertas dapat datang dari buku sisa, kertas koran, kertas majalah, kertas karton, pembungkus makanan, dan sebagainya.
Oke, saat ini saya akan kasih contoh-contoh gagasan bagus mengenai kerajinan dari sampah kertas. Beberapa ide berikut tentu saja benar-benar gampang, asal ingin ulet dan tekun ya.

Contoh Kerajinan dari Sampah Kertas

Saat belajar mengenai satu hal, siapa saja tentu memerlukan contoh supaya bisa lebih cepat memahami. Dan kamu tentu termasuk juga.
Oleh karenanya, di sini saya akan kasih contoh gagasan kerajinan dari sampah kertas. Baca sampai habis ya.

1. Gaun Acara pesta

Wajarnya disaat kamu akan mendatangi satu acara seperti acara pesta tentu kamu memakai gaun yang paling menarik kan?
Nach, gaun di atas bisa kamu gunakan pada acara pernikahan atau acara pesta apa. Gaun di atas itu dibuat dari kertas koran, dan pembikinannya memerlukan waktu 1 bulan lama waktunya.
Saat sebelum betul-betul patut untuk digunakan pada acara pernikahan.

2. Paper Bouquet

Beberapa dari pengantin rupanya tidak terlampau sukai dengan buket bunga asli.

Kemungkinan mereka cenderung pilih bunga kertas karena bila disaksikan lebih memiliki nilai seni. Ini jugalah yang jadikan kerajinan bouquet bunga kertas banyak pecintanya.
Karenanya makin inovatifnya seorang, sudah pasti bouquet yang dibuat akan makin memikat. Untuk ide dalam membuat kerajinan bouquet bunga dari kertas bisa kamu saksikan pada gambar.

3. Tempat Pensil

Apa kamu berasa jemu dengan design tempat pensil yang cuman begitu saja?

Kemungkinan kamu harus membuat tempat pensil ini di dalam rumah, maka kami jamin meja kerja atau meja belajar kamu akan makin kelihatan cantik.

Dengan sedikit kretifitas dan akan manfaatkan koran sisa yang tidak digunakan bakal menjadi suatu hal yang berguna.
Javascript Equality comparison Operator ( "==") or ("===")
Tags: javascript, webdev, tutorial, operator
Published: 2021-11-13 12:08:48

Comparison operators compares two values and return a boolean value. equality operators are also comparison operator which checks the equality of values and returns boolean.

in javascript(ES6), There are four(4) which are listed below.
* Using ‘==’ operator
* Using ‘===’ operator
* SameValueZero: used mainly in sets, maps and arrays.
* SameValue: used elsewhere

which operation you choose depend on the type of comparison you are looking to perform.

* double equals (==) will perform a type conversion when comparing two things, and will handle NaN, -0, and +0 specially to conform to IEEE 754 (so NaN != NaN, and -0 == +0);
* triple equals (===) will do the same comparison as double equals (including the special handling for NaN, -0, and +0) but without type conversion; if the types differ, false is returned.
* Object.is does no type conversion and no special handling for NaN, -0, and +0 (giving it the same behavior as === except on those special numeric values).

## Strict equality using ('===')
* strict equality compares two values for equality . 
* neither values is implicitly converted to some other value before beign compared.
* if values have different types , the values are considered **unequal**. 
if the value have the same type , are not numbers and have the same value, they are cosidered equal.
* if both values are numbers, they are considere equal if they are both not NaN and are same value, or if one is +0 and one is -0.
* a values is only equal to itself for all values except number.
* for numbers it is +0===-0. is true
* the only case in which (x!==x) is true is when x is NaN.
![strictly equal example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/25nu2azq4urp0pdgwtl6.png)

## Loose Equality using (" == ")
* loos equality compares two values for equality after converting both values to a common type(one or both sides may undergo conversion).
* after conversion , the final equality comparison is performed exactly as === performs it.
* A==B always has identical semantics to (B==A) for any values of A and B .
* undefined and nurll are loosely equal; that is , ( undefined == null) is true. and 
* (null == undefined ) is also true.
example below
 
 ![loosely equal example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9iq1v4hhosfgp9k7i9ra.png)

## Same-value Equality
* it checks weather two values are functionally identical in all contexts.
* one instance occurs  when an attempt to mutate  un immutable object property is made.
*  this equality is provided with (object.defineProperty())and (Object.is()) methods.
Adding Google Test - The Great Site Generator 
Tags: opensource, cpp
Published: 2021-11-13 04:23:28

This week I focused on adding a tester to my project. I chose to use [Google Test](https://github.com/google/googletest) as I have read it is a very popular tester for C++. Google Test cam be used easily with CMake which was also being used in this project. 
I setup the tester by changing the <code>CMakeLists.txt</code> which can download the Google Test folder to the root directory by only using <code>FetchContent_Declare</code>.  
While writing the [test cases](https://github.com/drew5494/the-great-site-generator/commit/e12b58fe1bcbf3e7977e3efd753a6bcf6f9b4810), I learned that it was more difficult than I had expected. I made sure my tests checked that the HTML output files were correct by reading the file and comparing it to the correct lines. I got stuck trying to get CMake to compile correctly. I eventually figured out that I did not have the correct executable files listed. 

I have used a tester before, when contributing to other projects on GitHub. They are a great way for developers to check their own code and for others to contribute without breaking any parts of the project. I will continue to try to incorporate testers like Google Test in my projects.
TCS Digital QUESTION
Tags: java, tcs, beginners, programming
Published: 2021-11-13 10:28:48

# Question 2 Statement 
A store has different categories of products in stock as shown below. 
Item Number=[101, 102, 103, 108] 
Item Name=[Milk, Cheese , Ghee, Bread]
Price=[42, 50, 500, 40]
Stock =[10, 20, 15, 16]

When user give input with 2 values as 
1. Item number for item which user wish to buy
2. Quantity for the item entered above

When user enters above input, the code should check the stock
1. If quantity is less than stock and item is available display a notification message showing
Output Line1 [prices] INR<br>
Calculate total price in float with precision.<br>
Output Line2 quantity LEFT<br>
// updated stock for item after after purchase

2.If the quantity and stocks less than quantity entered by the user while placing order, then display message
Output Line1 NO STOCK<br>
Output Line2 quantity LEFT<br>

3.If user enter character as input for item number and quantity or enter item number which is not available then display following message and stop Output Line1- INVALID INPUT Make sure the string message displayed in output.
### Sample INPUT :-
```
101
4
```
### Sample OUTPUT:-
```
168.0 INR
6 LEFT
```
### Sample INPUT :-
```
104
20
```
### Sample OUTPUT:-
```
NO STOCK
16 LEFT
```
## Solution
To Run the code or Tinker with code [Click here](https://www.jdoodle.com/a/41F2)
```
import java.util.*;
public class codechef {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int[] item_number = {101,102,103,104};
		String[] item_name = {"Milk", "Cheese", "Ghee", "Bread"};
		int[] price = {42,50,500,40};
		int[] stock = {10,20,15,16};
		
	int item_num = sc.nextInt();
	int quant = sc.nextInt();
	int temp =0,flag=0;;
	for(int i = 0; i<4 ;i++) {
		if(item_num ==item_number[i]) {				
		temp = i;	
		flag=1;
		}
		}
	
	
	if(flag== 0){
	System.out.println("INVALID INPUT");
	System.exit(0);
	}
	if(quant > stock[temp]) {
		System.out.println("NO STOCK");
		System.out.println(stock[temp]+" "+"LEFT");
	}else if(quant <= stock[temp]){
	System.out.println((float)(price[temp]*quant)+" "+"INR");
	System.out.println(stock[temp]-quant+" "+"LEFT");
	}
	}
	}

```
How to Create Custom Slug using Title in Laravel
Tags: laravel, php, programming, tutorial
Published: 2021-11-13 10:19:21

Let's get started quickly and create a Slug with today's date
```php
$slug = Str::slug('Hello Word');
$slug .= '-';
$slug .= \Carbon\Carbon::parse(now())->format('m-d-Y');
return $slug; //hello-word-11-13-2021
```
Now let's see how to use it better
```php
Page::create([
  'title' => $request->title,
  'body'  => $request->body,
  'published_at' => $request->published_at,
  'slug' => (function(){
        $slug = \Str::slug($request->title);
        $slug .= '-';
        $slug .= \Carbon\Carbon::parse($request->published_at)->format('m-d-Y');
        return $slug;
  })()
]);
```
I hope you enjoyed the code.
Hacktober Fest 2021 Contribution
Tags: github, hacktoberfest, beginners, webdev
Published: 2021-11-13 09:27:43

Hi There👋 
Here is my story of participation in hactoberfest'21. Hacktoberfest'21 is my first ever hacktoberfest and also this is my first blog. It's exciting. 
![A gif of man with the emotion excitement](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/av5vbef36ww7te6yyo1l.gif)
 
I always wanted to contribute to open source ever since I heard about it and isn't it really amazing to be able to collaborate with other devs all around the world and help them grow more with your contribution and in the process you also grow a lot. Git has always been the best tool for that. 

At first it seems difficult to find a project to contribute to OR make your first PR, but It's really easy. If you are a beginner, hold with me, I'll tell you the process I followed.

- First you have to register with your Github account on the official website of hacktoberfest.
- Then you can search on github with the tag `#hacktoberfest` you will find tons of repos to contribute to OR you can join the official discord channel for Hacktoberfest. ( Joining the discord channel is more beneficial because you will not only get the projects to work on but also you can easily ask questions and get help )
- Okay, So now we have some repos to contribute to 😁
- Now see the `issues` on those repos, if you see an `issue` you think you can solve, ask the maintainer to solve that issue by simply commenting on that issue. When the maintainer sees your request they will assign the task to you.  
- Now you can fork the repo and work on that project. 
- After forking the repo you will get the copy of that repo in your github account, clone the repo and work on that.
- If you are done with your work now it's time to make a PR.

![pull request time gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wme3ovpkwa33199lwxkn.gif)

When you push your code you will get the option to `contribute` on the top of your repo on github. Click on that and you will get the option to `Open pull request`. Click on that and write a description about that PR ( basically write what you have done in this PR ) and make a PR. Yay ! Celebrate if it's your first PR.

![dancing child gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3qxo8tfx9ddgah3hluzo.gif)

###What did I contribute to Hacktoberfest'21 ?

I contributed to these three Repository 👇

👉 https://github.com/AnkushSinghGandhi/pomodoro-chrome-extension
👉 https://github.com/encodeArnab/lazyCode
👉 https://github.com/Git-Harshit/Random_Text_Generator-Brython

I've made a web page for the first repo, and did work on some UI enhancement issues on the other two repos. I hope I'll contribute to some more challenging open source projects one day 🚀

Thank you for reading and Happy Contributing 👨‍💻
Scopes of variables JavaScript
Tags: beginners, javascript, 100daysofcode, webdev
Published: 2021-11-13 09:29:15

Scope reffers to extent at which Variables/variable is accesible within a program
There are mainly two types of variables scopes:
1.local variables 
2.Global varibles
Local Variable:
When you use JavaScript, local variables are variables that are defined within functions. They have local scope, which means that they can only be used within the functions that define them.

In contrast, global variables are variables that are defined outside of functions. These variables have global scope, so they can be used by any function without passing them to the function as parameters.
Global Variable: Since global variables are defined outside there function so variables with the same name can not be used in different functions. 
All the scripts and functions on a web page can access it.
BTC/ETH Miners for Sale. US In-stock
Tags: bitcoin
Published: 2021-11-13 09:24:55

We have plenty of miners in-stock.
S19PRO-110T
A1246-87T
M30S+-102T
and many more...

We're located in East LA. Local pick-up's supported. Welcome to come'n take a look.

Contact:Showmin
wx/tel: 6266521514
email: products@interlandinc.com
How to customize newsletter emails to filter starter posts?
Published: 2021-11-13 09:14:17

---
title: How to customize newsletter emails to filter starter posts?
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---

Weekly newsletter emails are great except beginner posts like "Open source 101", "what is rest api" etc. Do you know how I can customize it? If it is not possible, can I submit it as a feature request?
Media query practice
Tags: html, css, pixelperfect, validation
Published: 2021-11-13 08:57:22

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t5nxh548wdltb27xxchb.png)

#Pixel perfect
I wrote my CSS through the guide on figma but still some of them didn't look exactly right. To make them pixel perfect (as mush as possible), I used this app. Check [pixel perfect](https://chrome.google.com/webstore/detail/perfectpixel-by-welldonec/dkaagdgjmgdmbnecmcefdhjekcoceebi?hl=ko).
You can screen shot the figma page, put it as a layer on the page you are working and adjust your CSS code!

#Validation
[Validator](https://validator.w3.org/)
This was also new to me. I haven't checked if my code was written well without error or if it follows the web standard. I tried fix what's not suitable and make sure there's no error.
&nbsp;

##What I tried
- I tried not to use <code>&lt;div&gt;</code> which I've been using way too much and also avoided using <code>&lt;br&gt;</code>. 
- for the images that don't have much meaning but there for design only, I made them as pseudo element.
- I also added headings which I didn't do it before either. I added them inside each sections / articles and made them to move outside of the screen so it's invisible to us but still readable through screen reader.

##Things I'd like to do better & Things to rememeber.
- As I learnt about some [CSS Methodologies](https://dev.to/daaahailey/css-methodologies-oocss-smacss-bem-1e6k) that I posted before, I would like to write cleaner and more readable CSS next time.
- Try to avoid using uppercase when naming classes(to avoid mistyping). Instead, use kebab case(-/hyphen). e.g:content-title
- Try to make rules when naming classes. If there are rules, it will be more readable and logical. Think about the structure, common styles of each elements and what those contents are about.
- Think about margin collapsing when writing code.
Come Join Git Commit Show #season03 be a part of this amazing adventure!
Tags: opensource, beginners, programming, career
Published: 2021-11-13 08:44:55

## Join us for the 3rd Season of Git Commit Show LIVE, ONLINE on 27th & 28th November, 2021. 

[Git Commit Show](https://gitcommit.show/) is the leading online tech conference where **senior engineers**, researchers, scientists and professors meet while **being at home**. A 2-day long, online, 100% free meetup  where senior developers and researchers share their knowledge and breakthrough projects.
Unlike other online conferences, it is fully **interactive** with opportunities to connect with speakers and fellow attendees **face to face**. The show **started in 2019** to provide a better alternative to physical conferences by being open, free and inclusive of people who come from remote locations and modest backgrounds.

### What's in it for you?

- **GROW YOUR NETWORK** : Chance of meeting a lot of developers, enthusiasts, researchers. 
- **LEARN WHILE BEING AT HOME** : Always wanted to be at a conference, but having troubles while travelling? We've got that covered. 
  - Git Commit Show is purely virtual, and with our platform you can have a face to face meet-up. 
  - You can ask, cross question and get suggestions on your work from the industry professionals. 
- **60+ Years of Combined Work Experience** : The Talks are going to be given by industry professionals who are at the top of their game, working in silence and letting their work do the talking. Some of them include :
  - Kilian Valkhof : Founder of Polypane (Browser for building websites)
  - Karan Singh :  Senior Principal Architect at Red Hat
  - Ken Soh :  Doing amazing work with TagUI & Robotic Process Animation
  - Pachi Parra : Developer Relations & Creator of an online community for Non-Binary & Brazilian Women. 
  - Hemant Rangan : Author of Indian Mind at Work
  - And a lot more . . .  [check out our website](https://gitcommit.show/).
- **EXPAND YOUR KNOWLEDGE in 2 Days** : Come and join us, learn within 2 Days, be a part of this community as an attendee, volunteer or if you want, you can be a speaker as well!  

### Apply here [LINK](http://push.gitcommit.show/)

- [Apply](http://push.gitcommit.show/) as an Attendee or Volunteer with us for the event. There are a lot of opportunities. 
- Join our Growing [Discord](https://discord.gg/JFWP8c2gPG) and be a part of weekly events & many more. We also have plans for first time speakers to break their fear of public speaking. . . .coz fear is a mind-killer!
discord-trolling, a simple discord.js wrapper
Tags: javascript, discord, opensource
Published: 2021-11-13 08:44:03

I recently upgraded to using discord.js V13 for making my Discord bots, but when I looked at their example code I decided I didn't want to have to write out the entire thing every time I wanted to make a new bot.

So I decided to make my own wrapper so that anyone that felt the same way could have an easier and better time making Discord bots. It already has all of the same complex features that discord.js has because it's built on top of it, but I added an easy way to make slash commands, and just made the whole thing simpler. I also plan to add more features such as integrated pm2 hosting, a new voice wrapper and  http/webhook requests for logging. 

Here are the links to the project:

https://github.com/ferretcode/discord-trolling
https://npmjs.com/discord-trolling

I appreciate any feedback and I look forward to seeing what everyone thinks!
Build a Loan Calculator - PyQT5 [Python]
Tags: python, beginners, programming, tutorial
Published: 2021-11-13 08:30:44

PyQt5 .. a comprehensive set of Python bindings for Qt v5. 
It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.

In this video tutorial, you will learn how to build a loan calculator using a this great GUI tool with PyQT5 

{%youtube p2o_9lr8kfg%}


PyQt5 may also be embedded in C++ based applications to allow users of those applications to configure or enhance the functionality of those applications.

Qt is set of cross-platform C++ libraries that implement high-level APIs for accessing many aspects of modern desktop and mobile systems. These include location and positioning services, multimedia, NFC and Bluetooth connectivity, a Chromium based web browser, as well as traditional UI development.

Seldom that you would find tutorials on PYQT5 .. and that's because Tkinter takes the lion share in Python GUI tools.

I hope you enjoyed reading the post and watching the video.

Sources 🌐 
--------------
PyQt5 PyPi: https://pypi.org/project/PyQt5/​                         
QT:https://www.qt.io
Source Code                :https://github.com/BekBrace/loan-calculator
Mistake that every developer make!
Tags: codenewbie, programming, opensource, career
Published: 2021-11-13 08:26:08

When it comes to starting a career as a developer, people usually think about choosing specific backgrounds like backend, frontend, UI/UX, DevOps, etc.

Once they choose and bootstrap the journey, one important thing they miss. 

> **Thinking out of box**

What is thinking out of the box anyway? Is that useful!? Is it some sort of rocket science!? And what gives any developer ability to think out of the box?

Let's break down this problem and try to find some solutions.

####Problem 1

Developers stick to `copy paste` or `seeking seniors help` and that is the biggest mistake. Usually copying code from GitHub, StackOverflow without thinking is a bad idea!.

####Solution

No doubt, every developer does copy/paste but try to be a thinker out of that. Ask yourself a question, why this code? why is it working? what could be an alternative to this code? Is it an optimized/optimal solution? 

These questions will help individuals dive deep into the sea and discover an infinite amount of thoughts/fish.

Eventually, they reach a certain stage where solutions will automatically pop-out from their own mind!! It will also help find solutions from StackOverflow/GitHub in one go without writing each & every code from the answer.

####Problem 2
Swimming into limited boundaries only.

Beginners usually perform tasks which they are asked for without doing extra. They expect to receive even a tiny amount of detail about the task, just like a spoon-feeding.

####Solution

Explore!! Plenty of similar products/projects are already available, register yourself in such website/software and see which features they are providing, what we can adopt from that, what extra we can do to stand-out.

Go to your managers/leaders with a suggestion to improve feature usability or a way to improve user experience.

####Problem 3

Being in a blind spot.

####Solution

Do not just sit in one chair or work with limited projects. Contribute to open-source, even without being recognized. Create a social presence, stand-out!!!

**Step 1: Stackoverflow**

Writing answers in StackOverflow will help you

1. Discover the solutions to a problem that you never faced.
2. Perform tasks you never did.
3. Being confident by earning badges.

**Step 2: Github**

Writing code in open-source repositories will help you

1. Understand coding standards.
2. Being a detective, looking for problems in others' code is the key to writing better code.
3. Find different coding patterns & usage of them.

**Step 3: Dev.to/Medium**

Reading & writing articles in developer forums will help you

1. Understand market trends & standards.
2. Inspire to do more than just write code!
3. Discover ideas.
4. Explore new technologies.

---

And that's it, now its not rocket science anymore!

Above problems & defined solutions will create your brain a big processor, a deep thinker, an explorer, a leader, and many more.