teleren/devto huggingface dataset:
title: can't be blank [Writing a Great Post Title]
Tags: programming, github, opensource
Published: 2022-07-21 00:53:15

Панель инструментов 👉 Управляйте своим постом
Инструменты:
Уровень опыта публикации: Ваш пост написан больше для новичков или для продвинутой аудитории? Настройте этот уровень как мягкий индикатор, который поможет показать пост людям, которые получат наибольшую пользу.

Советы:
Напишите свой собственный твит о публикации, лично описав, почему вы написали ее или почему люди могут найти ее полезной. Мы можем ретвитнуть вас.
Поделитесь с агрегаторами ссылок, такими как Reddit . Старайтесь выбирать наиболее тематические сабреддиты, такие как /r/javascript или /r/python и т. д. Внимание: здесь могут скрываться придурки и тролли.
Поделитесь с вашими коллегами или местными сообществами. Попросите людей оставить вопросы для вас в комментариях. Это отличный способ вызвать дополнительное обсуждение.
I did a thing, started a startup
Tags: startup, developer, discuss, career
Published: 2022-07-21 00:40:45

It's been so much amazing and back breaking work and I can't wait to talk about it.

From trying to build myself, buying a domain name, hosting fee (rookie mistake), spending hours and all the brain work, nights on stack overflow and blogs and battling errors to using **carrd, Google form, zapier and clickup**.😂

There's so much I want to speak about, like how giving up so be an option you should never take, how it's okay to fail but not see yourself as a failure. 🤦but this is all motivational talk.


So, this is Prugems in it's First version, a site that link house agents and house renters using a request form. 

You can find more information below.

Our [Website](https://prugems.carrd.co/)

You can find more information on our social media page

[Twitter] (https://twitter.com/Prugems?t=sF8DqaKdB6JbLZ5-lwiA1w&s=09)

[Instagram] (https://instagram.com/prugems_?igshid=YmMyMTA2M2Y=)

[Tiktok] (https://vm.tiktok.com/ZMNHoL83m/)

Warm regards,
Prudence for Prugems 😊
Access the Clipboard in JavaScript
Tags: javascript, beginners, tutorial, webdev
Published: 2022-07-21 00:12:57

Developers are probably the laziest people on the planet. And of all the things, copy-paste is our favorite keyboard shortcut. But what is better than hitting CTRL + C? Having a button do the copying for you! And that is now possible using an asynchronous version of the clipboard API in JavaScript.

You would have probably come across this while copying code off of a website, or an API key, or copying links from Google Drive:

![](https://cdn-images-1.medium.com/max/2048/0*0YVD368IPc5PUYWV.png)

## The clipboard API

document.execCommand() has been available to copy text way before the clipboard API became a thing. But it was a synchronous call, did not work correctly across all browsers (permission access was not consistent either), and had some security risks associated with it.

The newer asynchronous clipboard API is supported by all browsers and is more secure (only works on HTTPS pages by default, and is not available to background tabs).

## Implementing using JavaScript

    // copying to clipboard
    navigator.clipboard.writeText(SOME_VALUE)
        .then(() => alert("Text is now stored your cliboard!"));

    // copying from clipboard
    await readText = await navigator.clipboard.readText();

We will need more code to detect support in the browser and error handling. But that is the gist of the API.

And both the methods are [supported](https://caniuse.com/?search=navigator.clipboard) in all modern browsers. And that is it. Hope this was helpful and that you start using it in the relevant places.

*Originally published at [https://www.wisdomgeek.com](https://www.wisdomgeek.com/development/web-development/javascript/accessing-the-clipboard-in-javascript/) on September 9, 2021.*
The Importance of Code Obfuscation
Published: 2022-07-21 00:08:13

Every developer knows just how frustrating it can be to spend hours of your day staring at your screen, trying to find one line of faulty code. But finally executing an application just right, you feel a sense of unparalleled accomplishment, right? That wall of code might look like nonsensical gibberish to others, but its your brainchild, and you couldn’t be prouder. Well, what if the unthinkable happens, and that brain child of yours gets stolen? 
Data breaches happen all the time. For most major businesses in the tech space, its not a matter of if they’ll get hit by a data breach, but when. That is why you need to protect your work using code obfuscation. 
**What is Code Obfuscation?**
Code Obfuscation refers to the practice of developers and coders intentionally obscuring their code, so that even if it were to get stolen in a data breach, it couldn’t be used by anyone else. A code obfuscator tool encrypts code so that it looks completely different, while maintaining its original functions. Today, with mass communication and e-commerce taking place online, code obfuscation is more important than ever. 
**Why Use Code Obfuscation?**
There are cybercriminals that specialize in stealing other peoples’ code, and either using it themselves to create new apps to monetize, or selling the code to third parties. A code obfuscator tool will allow you to preserve the integrity of your code, and keep your business more secure. By doing so, you’ll also be safeguarding the interests of investors or clients you may work with. The cherry on top is that code obfuscation also reduces file sizes, allowing you to work faster and more efficiently. 
**Use Code Obfuscation Today** 
If you’d like to safeguard your own source code, Skater.net is a leading expert in code obfuscation. Our proprietary tools enable you to work with the assurance that your code will remain protected. Find out more [about Skater .NET Obfuscator here](http://skaterpro.net).
#JulyOT 21: Microsoft Certified - Azure IoT Developer Specialty
Tags: 30days, iot, az220, iotcerts
Published: 2022-07-21 01:23:47

---
title: #JulyOT 21: Microsoft Certified - Azure IoT Developer Specialty
published: true
date: 2022-07-21 00:00:00 UTC
tags: 30days,iot,az220,iotcerts
canonical_url: https://JulyOT.dev/blog/julyot-day21-az220
series: JulyOT 2022
cover_image: https://JulyOT.dev/assets/images/JulyOT-banner-21-az220-intro-2995df4085d5c16903c558bc9e1b692a.png
---

_Now that you've been learning all about IoT during #JulyOT, it's time to consider certification!_

Whether you’re a student wanting to validate your expertise in IoT or a professional IoT solution developer looking to stand out from the crowd, the [Azure IoT Developer Specialty certification](https://docs.microsoft.com/learn/certifications/exams/az-220?wt.mc_id=eventspg_16482_webpage_reactor) may be perfect for you! This certification involves passing only one exam: [AZ-220 – Microsoft Azure IoT Developer](https://docs.microsoft.com/certifications/exams/az-220?wt.mc_id=eventspg_16482_webpage_reactor)

![Specialty Azure IoT Developer](https://JulyOT.dev/assets/images/specialty-azure-iot-developer-e265d857c7b012a24b754d358957aa40.png)

## Skills Measured[​](#skills-measured "Direct link to heading")

The AZ-220 exam measures your ability to:

- Set up the IoT solution infrastructure (10-15%)
- Provision and manage devices (15-20%)
- Implement IoT Edge (15-20%)
- Implement business integration (5-10%)
- Process and manage data (15-20%)
- Monitor, troubleshoot, and optimize IoT solutions (15-20%)
- Implement security (10-15%)

Stay tuned as we share resources for each of these exam areas throughout the rest of #JulyOT to help you prepare!

## Get Started[​](#get-started "Direct link to heading")

Visit the [AZ-220 – Microsoft Azure IoT Developer](https://docs.microsoft.com/certifications/exams/az-220?wt.mc_id=eventspg_16482_webpage_reactor) exam page to learn more.
Intro to TypeScript
Published: 2022-07-20 23:49:00

TypeScript is a superset of JavaScript. It is used to highlight unexpected behavior in your code, lowering the chance of bugs.

**Installing TypeScript:**
$ npm install -g typescript
on your terminal

check version: tsc -v

configure file and keep compiler on, type $ **tsc-w** in terminal
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v1qkw95ld3mr36bnfkw9.png) 

One way TypeScript does this is for you to tell what the types should be. TypeScript will throw an error if you use a different type.

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

For functions you can declare type on the parameters and type you want to return

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zu40sj4x6pimk3gigg0e.png)
 
**Creating objects** 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bcilo0xt1kb6j0pkx4c.png)
 
**Interfaces**- helps us describe entities
? makes key not mandatory and should be placed before the colon
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bsyt2mbf7v2sx4yf6foe.png)

**Union Operators**- | stands for or
Most popular use for union is to check for null
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mzpj7ruoecmk7i5tk3cc.png)
 
**Alias**- can replace type with aliases (should be capitalized)
 ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgmqkek603c1zthbbjwe.png)

**Combining Union Operators and Aliases**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09c0jp0weraxgh8603es.png)

**Void data type**-  set of undefined and null (also used if we don't want a return value)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8nye9n87ujqpzeiwgz1s.png)

**Any type**- Can be any type (not very useful, do not use, turns off checks)

**Never Type**- function with never cant be executed to the end (function) that will never end 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzv9rd6t2uxip4whvm5z.png)
 
**Unknown type** when you don't know what type you want it to be. You can fix the error below by changing pageNumber: from string to unknown
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q4k8gf00zatg7esmloo1.png)
 
**Type assertion** - "as" keyword is known as Type assertion 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iplxivfr3v0m74xcsem0.png)
 
**TypeScript working with DOM** - TypeScript has a lot of types for DOM already built in 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z42d05cf5b1glpl06dl4.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxazc6p6hzxvptpz6js8.png)
 
Next Blog: Classes, generic interfaces, enums, and Typescript in React

Reference: 
TypeScript official documentation:
https://www.typescriptlang.org/docs/handbook/intro.html
https://www.youtube.com/watch?v=gp5H0Vw39yw&ab_channel=freeCodeCamp.org
Simple Post
Tags: startup
Published: 2022-07-20 23:45:45

Hello friends and dear community
I've been here a 3 years ago and until now I hestitate to publish an article ,so I decided to break to ice and publish a simple post to begin with this simple Post
I say Hi for everyone who visited this article
I alwyas develop these things on me
Appreciation,self-discipline,growth
I m a web developper and odoo dvelopper
WeakMap in Javascript
Tags: node, javascript, performance, typescript
Published: 2022-07-20 23:45:23

Recently I've been abusing `WeakMap` to solve performance issues in Javascript.
The `WeakMap` work in a very similar way to its stronger brother `Map`. You provide a key and a value. Whenever you need to retrieve the value for that key, you can get it from the `WeakMap`.
The difference between `Map` and `WeakMap` is that the latter does not hold reference to the key, if the garbage collector needs to clear it from the memory, `WeakMap` will say that it is fine, the key and value will be cleared at the same time.

## Caching
The power this characteristic gives us is that we can start caching things without the risk of causing a memory leak. If the key is ready to be collected, the cache won't be a problem in the way of GC.

We can implement a higher-order function called `weakMemoize` that will decorate our function with a caching layer using a `WeakMap`.

```javascript
function weakMemoize(toDecorate) {
  const cache = new WeakMap()
  return function (value) {
    if (!cache.has(value)) {
      cache.set(value, toDecorate(value))
    }
    return cache.get(value)
  }
}
```

Then we can use to cache our functions

```javascript
const getKeys = weakMemoize((value) => {
    return Object.keys(value)
})

const obj = { a: 10, b: 20, c: 30 }

getKeys(obj)
// second time the value is read from the cache.
getKeys(obj)
```

I'm not concerned about the memory consumption of this because whenever `obj` or `getKeys` go out of scope, the garbage collector will also collect the values in the map. I'm avoiding executing `Object.keys` a second time with no extra complexity in the implementation of my function.

## Considerations

Couple of things to take in consideration. A `WeakMap` key can only be an object (`object` or `Array`), we cannot use a primitive value as key.
Another consideration is that if you have long living objects, caching things like this, might not be so beneficial, a lot of objects will be retained in memory, consider using a [LRU](https://www.npmjs.com/package/lru-cache) cache.

Also, you don't need to implement your own `weakMemoize`, there are good implementations in the [npm](https://www.npmjs.com/package/@emotion/weak-memoize).

Thanks for reading!
Saw a problem in my post? Please comment or reach me out on [twitter](https://twitter.com/l2zg7e).
Day 102: React slick urgh!
Published: 2022-07-20 23:33:54

Hi!
React Slick! I literally have been fighting with this package for the whole day now but still doesn't work the way I want it to and I can't find the reason. I tried to shift to another Carousel package but I realized React slick is actually is more closer to what I needed to implement so I have to debug my bugs. The main issues with these mall packages is that the documentation is not detailed at least for someone just getting started using it and there are not many people using it so it will be challenging to find help on a specific issue
tomorrow i will try to focus on something else and maybe get to this one later
Signing off...
Receiving input from user in Ruby
Tags: beginners, codenewbie, ruby, programming
Published: 2022-07-20 22:47:37

##How **gets** actually work under the hood
It uses the `$stdin` global variable. It represents the current standard input.

The method `gets`, communicates with the input stream on your computer ( which is connected to your Operating System ) receiving data from the **_$stdin_** global variable and assigning it to your variable while <u>returning the value stored with a new line char appended at the end</u>. 

```ruby
irb(main):005:0> name = gets
andressa
=> "andressa\n"    
```
we can get rid of the new line char by calling the `chomp` method.

```ruby
irb(main):006:0> name = gets.chomp
andressa
=> "andressa"  
```

If dealing with files, it returns `nil` when reaching the end of the file.

`gets` receives input in a string format, so if you are expecting to deal with integers, for example, you will need to convert it to an int first.

```ruby 
irb(main):009:0> number = gets.chomp
34
=> "34"                                                                         
irb(main):010:0> number.class
=> String
``` 


<img width="100%" style="width:100%" src="https://media.giphy.com/media/krtDmVuQGssOtMWfRg/giphy.gif">
100 days of Golang
Published: 2022-07-20 22:30:00

Welcome to my #100daysofcode Golang challenge:


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

Hi, for the next 100 days I will be programming in Golang for at least one hour every day. I have decided to make this a public commitment. And you should join me for an amazing ride together.

To track my progress, fork this repo: 
`https://github.com/Umartahir93/100-days-of-golang`

I will create a feature branch daily and commit my changes daily which will be merged into the master.

## WHY 100 DAYS CHALLENGE FOR GOLANG

I really want to become a better GOlang developer. In recent years I have been programming in Java and occasionally in C++. But there are always new challenges in professional life. And for me the next exciting challenge is to learn GO.

I've found that my after-work time always follows a pattern of watching something on television or elsewhere rather than programming. Like all of us who are living alone, I have some things to do: housekeeping, cooking food, washing dishes, etc. 

All of these will still be there. What I don't plan to do is what I would call "passive relaxation time." That's when I sit down to watch something and my time is wasted every night.

It's easy to look at, but hard to stop. For things that are worthwhile, I find the opposite to be true: it's hard to start, but very easy to keep going. So with this challenge, I'm going to make sure I start (sit down to code) every day no matter what.

## Rules:

1. I will tweet about my progress every day using the hashtag #100DaysOfCode.

2. I will push code to GitHub every day so that anyone can see my progress. If you want, you can follow me here.

3. The extra time spent doing tutorials, online courses and other similar resources will NOT count towards this challenge. 

4. I will keep adding reference to materials I learnt in the Read.md of GitHub repo.
Free & Discount Online Courses - July 20th, 2022
Tags: react, vue, angular, tutorial
Published: 2022-07-20 22:11:09

Free & Discount Online Courses for Today

..

Cloud Computing and Amazon Web Services (AWS) Fundamentals

.

https://theprogrammingbuddy.club/course/cloud-computing-and-amazon-web-services-aws-fundamentals/

..

Csi Safe + AllPile foundation, slabs, beams and deflection

.

https://theprogrammingbuddy.club/course/csi-safe-allpile-foundation-slabs-beams-and-deflection/

..

Learn 10 Ways to Make MORE Money on YouTube!

.

https://theprogrammingbuddy.club/course/learn-to-make-money-on-youtube/

..

ESG Reporting for Businesses

.

https://theprogrammingbuddy.club/course/esg-reporting-for-businesses/

..

Becoming A Sales Professional

.

https://theprogrammingbuddy.club/course/building-sales-relationships-networking/

..

Becoming A Sales Professional

.

https://theprogrammingbuddy.club/course/building-sales-relationships-networking/

..

WordPress Practice Tests & Interview Questions (Basic/Adv)

.

https://theprogrammingbuddy.club/course/wordpress-practice-tests-and-interview-questions-basic-advanced/

..

Design Beautiful Animated Websites Incredibly Fast in 2022

.

https://theprogrammingbuddy.club/course/design-beautiful-animated-websites-incredibly-fast/

..

Ultimate Guide to Use WordPress Gutenberg Editor (2022)

.

https://theprogrammingbuddy.club/course/ultimate-guide-to-use-wordpress-gutenberg-editor/

..

Real Estate Investment & Finance

.

https://theprogrammingbuddy.club/course/real-estate-investment-finance/

..

Real Estate Investment & Finance

.

https://theprogrammingbuddy.club/course/real-estate-investment-finance/

..

Killer ways to create and promote YouTube videos in 2022

.

https://theprogrammingbuddy.club/course/killer-ways-to-create-and-promote-youtube-videos/

..

Ace your career with the Power of Artificial Intelligence

.

https://theprogrammingbuddy.club/course/ace-your-career-with-the-power-of-artificial-intelligence/

..

افضل كورس شامل لتعلم تطوير تطبيقات الموبايل باستخدام فلاتر

.

https://theprogrammingbuddy.club/course/best-and-complete-flutter-course-for-beginners/

..

افضل كورس شامل لتعلم تطوير تطبيقات الموبايل باستخدام فلاتر

.

https://theprogrammingbuddy.club/course/best-and-complete-flutter-course-for-beginners/

..

Complete Wordpress Website Developer Course

.

https://theprogrammingbuddy.club/course/the-complete-wordpress-developer-course-w/

..

Complete Wordpress Website Developer Course

.

https://theprogrammingbuddy.club/course/the-complete-wordpress-developer-course-w/

..

Emotional Intelligence for Software Engineers and Developers

.

https://theprogrammingbuddy.club/course/emotional-intelligence-for-software-engineers-and-developers/

..

Happy Learning

TheProgrammingBuddy.club

#design #sales #career #learning #finance #software #developer #money #aws #interview #artificialintelligence #amazon #power #engineers #cloudcomputing #wordpress #emotionalintelligence #realestateinvestment
Big Commerce / Big Design / Flex columns
Tags: bigcommerce, bigdesign, flex
Published: 2022-07-20 22:02:43

https://codesandbox.io/s/big-commerce-big-design-flex-5g9fz8?file=/src/App.js


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8w7z546yoziz9fz10f7.JPG)
Best 8 website to learn CSS for beginner
Tags: css, webdev, beginners, programming
Published: 2022-07-20 21:42:15

## What is CSS?
**CSS stands for Cascading Style Sheets, CSS treats the look and feel as part of a web page. With CSS, you can design a website, CSS is easy to learn and understand but provides powerful control over the presentation of an HTML document.
CSS is used along with HTML and JavaScript in most websites.**


 _In this article I will give you the best 8 websites to learn CSS for beginner :_

## 1. MDN Web Docs:

![MDN Web Docs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wllcjdpw89tglomwdcdv.jpg)
Visit Website: https://developer.mozilla.org/en-US/docs/Web/CSS

## 2. W3schools

![W3schools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i3djl5f2c5nzfm8d3z19.jpg)
Visit Website: https://www.w3schools.com/css/default.asp

## 3. Dash by General Assembly

![Dash](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pau3oxbbqocytiyo1gwz.jpg)
Visit Website: https://dash.generalassemb.ly/
## 4. Codecademy

![codecademy](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cghlni0k75mjwp4hd5wb.jpg)
Visit Website: https://www.codecademy.com/
## 5. Sololearn

![sololearn](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2rj56za5em2q69vth86.jpg)
Visit Website: https://www.sololearn.com/learning
## 6. Javatpoint

![javatpoint](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6b6b4wv9fu3oitk20du.jpg)
Visit Website: https://www.javatpoint.com/css-tutorial
## 7. Tutorial Republic

![totorial republic](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdwfibqi6x721zoa90p8.jpg)
Visit Website: https://www.tutorialrepublic.com/css-tutorial/
## 8. Coursera

![coursera](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7bypceaxv1u351rswff1.jpg)
Visit Website: https://www.coursera.org/collections/learn-css
Day 597 : Lesson
Tags: hiphop, code, coding, lifelongdev
Published: 2022-07-20 21:37:19

_liner notes_:
- Professional : Not a bad day. Spoke with the team and figured out why I was getting the error. So everything is good. I wrote up some documentation on the feature and submitted it for review. Helped out with a community question. Looked over some code for a project a team member is working on.

- Personal : Last night, I went through the tracks I have set up for the radio show and added the artists' Twitter handles. Also got to watch a couple of episodes of "The Rising of the Shield Hero" before calling it a night.

![A leave-covered pathway though a forest in Bosco Nordio, Italy with some sunlight coming through the tree tops](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lfdz45fw5utd023fhftv.jpg)

Going to go through some more tracks for the radio show. Maybe work on my side projects front-end layout. Then end the night watching a couple of episodes of "The Rising of the Shield Hero". I also been slowing getting back into studying Japanese. Maybe I'll do a couple of lessons.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ffgOWk9j_k0 %}