teleren/devto huggingface dataset:
Thinking in Design
Tags: design
Published: 2022-07-30 05:02:33


In this 5-minute-read I share my thoughts on Design Thinking. 

Design Thinking is a continual process in which we work to understand the user, have an open mind, and reframe problems.

This is human-centered, which means it takes into account how users engage with a good or service rather than how a company or individual thinks they will. It is a way of problem-solving that emphasizes solutions. It is both a way of thinking and acting and a collection of useful skills.

There are five stages in Design Thinking.

# 1) Emphasizing

A designer observes customers to gain a deeper understanding of how they engage with or are influenced by a product or issue. Empathy is required while making assumptions, which is abstaining from making preconceived notions about the needs of the customer and refraining from passing judgment.

# 2) Define

In this second step, you identify the issue you're trying to solve using your observations from the first stage. Think about the difficulties your consumers encounter, what they persistently struggle with, and what you've learnt from how the issue affects them. Once you've incorporated your results, you'll be able to determine the issue they're facing.

# 3) Idealization
Finding solutions to the issue you've discovered is the next step.Taking the information and coming up with ideas , solutions , matches, brainstorming

# 4) Prototyping 
Taking the ideas you want to develop into something that can be tested.
Concepts are converted into workable solutions at this point. It's not necessary for prototypes to be perfect. A prototype is designed to be quickly created in order to test how well a notion is received by clients.

# 5) Test
At this point in the testing process, you receive comments on your work. Taking the prototype to real customers to test , get feedback from users, which gives you more ideas to refine the prototype,ideate then Test.

> 
I believe Design is a never ending process , there will always be a way to improve a product,method .This is intrinsic to humans. We all get to contribute to the bonfire that is life.

>
916.Leetcode Solution in Swift
Tags: swift
Published: 2022-07-30 06:24:43

```
class Solution {
      func wordSubsets(_ A: [String], _ B: [String]) -> [String] {
        let asciiA = Character("a").asciiValue!
        var memoB = Array(repeating: 0, count: 26)
        var temp = Array(repeating: 0, count: 26)
        var isUniversal = true
        var res = [String]()

        for b in B {
            temp = Array(repeating: 0, count: 26)
            for c in b { temp[Int(c.asciiValue! - asciiA)] += 1 }
            for i in 0..<26 { memoB[i] = max(memoB[i], temp[i]) }
        }

        for a in A {
            temp = Array(repeating: 0, count: 26)
            for c in a { temp[Int(c.asciiValue! - asciiA)] += 1 }

            isUniversal = true
            for i in 0..<26 where temp[i] < memoB[i] { isUniversal = false; break }

            if isUniversal { res.append(a) }
        }

        return res
    }

}
```
#leetcode
#challenges
Here is the link for the problem:
https://leetcode.com/problems/word-subsets/
Bugs: a blessing and a curse
Tags: beginners, programming, discuss, codenewbie
Published: 2022-07-30 05:46:00

**Intro.**
A common attribute in every programmer's life is the presence of bugs and as annoying and frustrating as they are quite useful.
Programming bugs are what can be called errors in programming that cause a program to crash, stop working, or be unable to work as intended.

**Curse.**
We've all been in similar situations when we write several lines of code and when we run it, it generates an error or does something else then we'll have to run through all the steps of the code to fix the problem. It is easy for everyone to see bugs as an unwanted occurrence in their work. Especially In situations when you might have a deadline to submit a project or you've tweaked the code severally but it still doesn't work as intended and you feel frustrated and the urge to quit, but you'll try again and again because of your passion for it before it gets done, and this can cause a lot of mental stress and might affect some interactions with others.

**Blessing.**
A lot of people might question how bugs can be seen with a positive outlook. From my experience programming in several languages, bugs serve as teachers to you on how the programming language works or how it processes certain information, look at it this way, imagine you're learning a new language, you start from the a-z and then word by word and you won't become a professional at it instantly, you'll go through the pronunciation, use of intonation, arrangement of words and so on you'll probably fail at this a certain time and every time you mistake you to learn something new in the way the language is spoken same as the case of programming when we make a mistake and a program is not running or executing in a wrong order it's a chance to learn something new and you probably won't make that mistake anytime soon and if eventually, you do you'll know how to fix the bug instantly.

**Lesson.**
Bugs can be a lesson and a curse so how do we manage them, one way I learned when I attended havards cs50 computer science course is by speaking to a rubber duck, ok not necessarily a rubber duck but speak to something or someone-if they understand what you're saying- explain your step by step approach to the program and what you wrote, chances are you'll find the error you're looking for or where you went wrong and you can solve it or google it. Also feel free to take breaks when debugging your codes, something as simple as taking walks, playing with your pet, or going out with someone can clear your head and when you come back, you'll be ready to squash that bug.
Thanks for reading, hope it helps, like and comment on ways you cool off to debug your codes.
Javascript cheat sheet: .slice() and .splice()
Tags: codenewbie, javascript, beginners, tutorial
Published: 2022-07-30 05:45:00

I recently came across a twitter post where the user challenged others if they knew the difference between the js methods .slice() and .splice() without googling them. A lot of people mixed them up.

So I've created this simplified cheat sheet of everything you need to know about the 2 methods.

## What you should know

- .slice() and splice() are both array methods. 

- both of them return arrays as outputs

- the key is to pay attention to what they return as the output array and if they mutate the original array (they one on which the were applied to)
## 1)  .slice()

- .slice() _returns selected elements in an array_, as a new array. Selection is done by index.

- .slice() **does not affect the original array**

With splice() you can select one or more elements. 

**For example:** This code snippet returns 3 (which is at index 2)

```Javascript
[1,2,3,4,5].slice(2) // returns 3 (which is at index 2)
```
and this code snippet returns 2,3,4 (from index 1 to 4 exclusively)

```Javascript
[1,2,3,4,5].slice(1,4) // returns 2,3,4 (from index 1 to 4 exclusively)
```

## 2)  .splice()

- .splice **modifies the original array** (adds and/or removes elements from the array)

- The method _returns the original array **modified_**

With splice you can:

  -  **remove elements**

```javascript
[1,2,3,4,5].splice(3) // returns [1,2,3] (first 3 elements)
[1,2,3,4,5].splice(2,2) // at position 2 remove 2 elements (returns [1,2,5])
```
  -  **add elements**

```javascript

[1,2,5].splice(2,0,3,4) // at postion 2 add 2 elements (returns [1,2,3,4,5])

```
-  **remove and add elements at the same time**
```javascript
// at position 2, remove 1 elements and add 2 new items
[1,2,3,4,5].splice(2,2,"HTML","CSS") // returns [1,2,"HTML","CSS",5]
```
**Remember:** .splice() mutates the array, .slice() does not!

Hope this is helpful to someone 💜
Taking a Full-Stack Development Bootcamp!
Tags: beginners, career, devjournal, community
Published: 2022-07-30 05:16:45

Hello everyone!

I am currently registered for a Bootcamp, following a Full-Stack Development Curriculum.
This will be 6 months which start on August 8, 2022.

I am currently a junior in college, trying to change from the medical route to the tech life.

I will share my journey as an aspiring developer here on DEV!

Currently: I am doing some pre-work before D-1. It consists of just downloading softwares and tools I need.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ca4abpby86eh0ba17rmd.jpg)

Follow my journey :)
Force run to cursor ignoring other breakpoints in VSCode?
Tags: vscode
Published: 2022-07-30 03:58:02

Sometimes I want to run to a specific line of code ignoring all the checkpoints I've added, but I didn't figure out a way to do this in VSCode.
I've found that this function is available in Visual Studio Preview 2022, but is this function applicable to VSCode? Or is there any alternative to do this?
hotlivetech - Hotlive app live cùng chơi game kết bạn miễn phí
Tags: hotlive, hotlivetech, hotliveios, hotliveandroid
Published: 2022-07-30 03:31:00

Tải hotlive ngay cài đặt miễn phí để được tận hưởng các trò chơi đổi thưởng trúng lớn, Cùng xem các hot girl show hàng miễn phí hàng ngày. Cùng tham gia hotlivetech ngay nhé
Địa chỉ: 963/113 Nguyễn Thiện Thuật Quận 3 Thành Phố Hồ Chí Minh
Số điện thoại: 855346217756
Email: hotlivetech@gmail.com
Website: http://hotlive.tech/
Google Maps: https://g.page/r/CYvjtMoOWzStEBA
Flickr: https://www.flickr.com/people/hotlivetech/
Linkedin: https://www.linkedin.com/in/hotlivetech/
Tumblr: https://hotlivetech.tumblr.com/
Pinterest: https://www.pinterest.com/hotlivetech/
Twitter: https://twitter.com/hotlivetech
Youtube: https://www.youtube.com/channel/UCctv0PBWOr5OCb3YGKEtAbg
panic: assignment to entry in nil map
Tags: go
Published: 2022-07-30 02:54:48

Kenapa code ini error ? atau lebih tepatnya panic kalo di Go

```go
package main

import "fmt"

func main() {

	var m map[string]int

	m["a"] = 1

	fmt.Println(m["a"])
}
```
`panic: assignment to entry in nil map`

solusi mengatasi panic diatas adalah menggunakan function make untuk initialize map.

```go
package main

import "fmt"

func main() {

	var m = make(map[string]int)

	m["a"] = 1

	fmt.Println(m["a"])
}
```

ketika kita deklarasi suatu map seperti ini di Go.

```go
var m map[string]int
```

kita membuat nil map. nil map sama seperti empty map panjang elemennya 0 dengan pengecualian kita tidak bisa menambah elemen di nil map.

```go
var a map[string]int
var b = make(map[string]int)

assert.Equal(t, len(a), len(b))
```
Referensi:

- [https://yourbasic.org/golang/gotcha-assignment-entry-nil-map/](https://yourbasic.org/golang/gotcha-assignment-entry-nil-map/)
- [https://yourbasic.org/golang/maps-explained/](https://yourbasic.org/golang/maps-explained/)

Credit:

- Cover photo Photo by [Usman Yousaf](https://unsplash.com/@usmanyousaf?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/panic?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
Building on SUCCPURAG
Published: 2022-07-30 02:37:00

If it's your fist time to hear about 'Succpurag', that's okay. I will walk you through.

Succpurag is a new, unique and fast growing Token built by a team of professionals along side Darlene. The Developers options and documentation is almost ready for release, while we wait for the release, let's move on to talk about the Token

Introduction

Succpurag is the leading crypto trading and investment platform in Indonesia with the Registration number: 6750634. Designed for your comfort, profit 
at once. 

Succpurag is an absolutely unique and high-tech project, covering several most profitable and 
and security of your funds. Including Leasing, Forex, Start-ups, ICOs and IPOs, Stocks, Crypto Trading Project Investment, Real
Estate and energy sectors, MLPs, as well as Closed-End Funds and ETFs.

Succpurag consists of an international team of experts in project relevant business lines of various profitability  
equipment used in various fields of medium-and high-profitable business operating through 
These offers wont allow to stay indifferent even the most demanding specialists in the field of Internet world network. The project has a wide range of unique financial offers for clients. 
The main purpose of the project is the development and operation of high-tech software and 
arena with the purpose of elevating people from all over the world to be successful with the most 
investment and network business development.

Succpurag provides an alternative real estate investment platform where you can buy & sell 
consistent cash flow and huge returns, tax advantages and diversfication that gives a high level 
shares n real estate that generate passive income on a daily basis. In Succpurag, the benefits of 
investing in real estate are numerous with well chosen assets. Investors tends to enjoy 
investment leverage and wealth creation.

SUCCPURAG INVESTMENT PACKAGES AND PLANS.
1. Silver Package 
A. Starter plan $100 -$4,900. (2% ROI).
2. Gold Package
B. Standard plan $5,000 -$49,000 (2.5 ROI). Daily
B. Exclusive plan $70,000 -$99,000 (3.5% ROI). Daily
3. Platinum Package
A. Expert plan $100,000-$499,000 (4% ROI).
A. Classic pan $50,000 -$69,000 (3% ROI).
B. Partnership plan $500,000 -unlimited (4.5 %). Daily

Currently, you can only pay with Bitcoin. More payment options are likely to drop this year.

Sing up here.  [Link](https://succpurag.com/signup?ref=QBZV5BAR7C0K)
Once you sign up follow the image below to make first deposit 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bibhrvo0lzdl97rs7dn6.jpg)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xb0jgh800wbomdpqj5wn.jpg)
Comment below if you have any challenge or [Questions](https://wa.me/message/PADNLRPMYXIDK1)
Serverless GraphQL on any Cloud
Tags: node, graphql, cloud, tutorial
Published: 2022-07-30 02:23:00

In this video, we use the Nitric framework to easily build, test, and deploy a GraphQL API for AWS, Google Cloud, or Azure.

Follow the written guide for [Building a GraphQL API with Nitric](https://nitric.io/docs/guides/graphql)

🔗  Resources
[Nitric docs: AWS Provider Setup](https://nitric.io/docs/reference/aws)


👋  Have feedback?
[Github](https://github.com/nitrictech/nitric)
[Twitter](https://twitter.com/nitric_io)

----

Nitric is an open source framework for rapid development of cloud-native and serverless applications. Define your apps in terms of the resources they need, then write the code for serverless function based APIs, event subscribers and scheduled jobs.

Apps built with Nitric can be deployed to AWS, Azure or Google Cloud all from the same code base so you can focus on your products, not your cloud provider.
My Journey: 14 years of writing code
Tags: programming, webdev, codenewbie, career
Published: 2022-07-30 01:23:02

Believe it or not, this is how I started my journey as a developer:

> In 2008 with 19 years old, during the first day at the university I had to fill out the registry form and I didn't have an email address, so I had to go to an Internet Café and ask someone to help me create one.
I didn't even know that Internet was a thing and of course I thought that I was going to learn how to fix computers 😂.


I remember the first programming class where the professor created a simple Hello World program in Schema, ran it and magically a window was opened with the "Hello Word" text in it... and to be honest that blew my mind.

During those 5 years (yeah I did horrible in a Calculus class) I did well in the programming courses, but struggled with Math and English (yes, as you probably found in the article I'm not a native speaker).

Then in 2012 I had my first job and the company I worked was known to hire recently graduated students, which was great because all the stuff I learned didn't match the technologies the company used.
Soon enough I realized I had to get up to speed and the only way was through reading. There was no Udemy/Coursera/etc back then.
We used some 🔥 technologies .NET, Javascript & jQuery.

Node was getting traction and Javascript was being more popular and I decided to learn Javascript well.
For my fortune, Javascript became really popular, a lot of devs used it but didn't know the language well (it was a "joke" language), so I was able to transition to other companies, get a better salary and work on exciting projects.

Moving forward, I used to work for outsourcing companies offering services to US companies, so I kept growing my communication skills along side the technical area. [You can read my post on how I became a better developer](https://dev.to/bryancr89/how-to-become-a-better-developer-4nem)

From moving between companies I learned something that's a reality:

> It's likely that your company doesn't appreciate how valuable you are.

And by that I mean, it's easy to get into a new company with a better salary and position than growing where you are.
At least that happened to me over an over 💔. 
![Sad panda](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3dt5fplztjqqlgvnae11.png)
  
To keep the story short I'm currently working for an US based startup with a good environment and salary 🔥

And these are the key points that took me to that place:

1. Even though at the beginning I was totally lost, I focused on learn to learn.
1. **Read** is one of the most valuable habits I have.
> You're going to get behind if you don't keep learning!

1. There is always going be people with less experience than you. So help and teach them, you're going to learn what areas you dominate and which ones you need to improve.
> I genuinely love to help other devs get better with their craft ❤️  

1. Treat others well, they might help you, recommend or bringing you into new and exciting companies.

I hope you enjoyed! You can follow me on [twitter](https://twitter.com/bryancr89) and share experiences.
VueJs Reactivity... And How does it work
Tags: vue, javascript, webdev, frontend
Published: 2022-07-30 00:53:00

One of the main features of any modern JavaScript framework is reactivity. in this article you're gonna understand how Vue.Js tackles this by :

1. Understanding the problem.

2. Vue's solution to that problem.


## The Problem

You're coding using vanilla JavaScript and the code calculates the total price of some products and logs it...
![Our scenario](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qnfm720548kefyvd1b0i.png)

Now our price has gone up to 20 per product, let's log the price again....
to our surprise it's still 10 but why?! that's supposed to be 40, right? **WRONG**.
![nothing is changed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gct9si9z741t004shy0e.png)

 Take a good look at the code again, the calculation only happens once. We never told JavaScript to track any changes nor we told it that the total price calculation is meant to update according to changes, and here's where **The Reactive Vue** really shines...

## Vue's solution

The approach is that we want to be able to store the critical value in some sort and be able to track it and trigger the effect when the value changes.

![Code to store](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8pmll3dii7quxysce1bd.png)


 The calculation is wrapped in a function called "effect" and stored for later use when our value(price) changes. For that to happen, there are 3 main operations(functions) to run:

1. track() -> to actually save our code

2. effect() -> the actual behavior/calculation

3. trigger() -> to run the effect/s
![main operations](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/547nvl4n4yvvqhqjauza.png)


## Brainstorming...

1. Can there be multiple effects? How does Vue handle that?

2. What happens when we want to track multiple properties?

3. What if we track objects...?

I'll answer all that in the upcoming post as well as your questions. Feel free to ask me about anything, it's ok we're all learning here.


Leave a ♥️ for the post if it was useful to reach more devs 🧑‍💻🧑‍💻...
**Follow me for more related content...**

recourses:
https://www.youtube.com/c/VueMastery
#JulyOT 30: Let's get personal: Computing - Open source prosthetics with Cliff Agius
Tags: julyot, iot, embedded, prosthetics
Published: 2022-07-29 23:17:16

---
title: #JulyOT 30: Let's get personal: Computing - Open source prosthetics with Cliff Agius
published: true
date: 2022-07-30 00:00:00 UTC
tags: julyot,iot,embedded,prosthetics
canonical_url: https://JulyOT.dev/blog/30-lgpc-handy
series: JulyOT 2022
cover_image: https://JulyOT.dev/assets/images/JulyOT-banner-30-lgpc-handy-77d49b9d9c07be8b8f8ac5604405e67a.png
---

_Investigate the modern world of ‘personal’ computing, from IoT to mobile, mixed reality, desktop computing, wearables, and more!_

## Let's get personal: computing[​](#lets-get-personal-computing "Direct link to heading")

Today we are announcing a second episode on our new series on YouTube, recorded at the Microsoft Reactor in Redmond!

Let's get personal: computing is an interview show where [Jim Bennett](https://twitter.com/JimBobBennett) interviews guests who have been working in the modern version of personal computing, covering IoT to mobile, mixed reality, desktop computing, wearables, and more. Each guest has built something cool that they want to share that you too can build!

![A picture of Cliff holding handy. Cliff is lit from the left in orange and right from blue](https://JulyOT.dev/assets/images/lgpc-cliff-e4881cb6280c0a1b348460c0de790bbb.png)

On today’s show, Jim is joined by [Cliff Agius](https://twitter.com/CliffordAgius), a pilot and IoT and mobile developer from the UK. He’s mixed the power of 3D modeling software, consumer 3D printers, low priced IoT hardware and a mobile app to build an open source bionic hand that can be customized for a range of tasks, from picking things up, to playing Xbox.

Learn more and build this yourself at [aka.ms/lgpc/handy](https://aka.ms/lgpc/handy).

{% youtube EmVUIqObhZg %}

This show was recorded at the Microsoft Reactor in Redmond.

Connect with the Microsoft Reactor:

[Facebook](https://fb.com/MicrosoftReactor)

[Twitter](https://twitter.com/MSFTReactor)

[Meetup](https://www.meetup.com/pro/microsoft-reactor)

Get the look! Buy Jim's shirt: [aka.ms/lgpc/look/handy](https://aka.ms/lgpc/look/handy)
Loading .env in python
Published: 2022-07-29 23:50:03

Software engineering best practices require storing sensitive data such as usernames , passwords or access token  to a .env file.

- Create a file named .env. Write all environment variables in your .env file.

- Import and use the following packages.
`import os`
`from dotenv import load_dotenv , find_dotenv`
`load_dotenv(find_dotenv)`
`username = os.environ.get("USERNAME",None)`
`password  =os.environ.get("PASSWORD",None)`
Day 604 : Tall Tales
Tags: hiphop, code, coding, lifelongdev
Published: 2022-07-29 23:39:38

_liner notes_:
- Professional : Since I was pretty productive during the week, I didn't have much to finish up. Just followed up with some stuff and finalized some tickets. Good way to go into the weekend. Plus we got to take a half day so I finished up early and started my weekend early.

- Personal : Last night, I started studying Kanji with WaniKani. I'm liking the way they have it set up. They tell some tall tales to get you to remember the characters. Looking forward to studying more. Did some work on the feature for my side project. I added a form. Now just to get it to do some validation and then send data to the backend.

![View from a mountain over overlooking a forest, lake and other brown and white stripped mountains in the distance in Peyto Lake, AB, Canada](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d0clox812mf7e64fcsfl.jpg)

Going to finish up putting together tracks for the radio show and study more Kanji! Yeah, that's pretty much it.

Have a great night and weekend!

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