teleren/devto huggingface dataset:
Preparing a React course in public - Ideas
Tags: react, javascript, typescript, webdev
Published: 2023-09-16 11:05:16

Next January I'll be teaching in a full-stack master's program. 

I'm super excited. 

My focus will be on web development class. While it must cover a wide overview of the front-end development it's also intended to be focused on React. 

Today I checked the calendar and... I had a mini freak-out moment. I need to prepare all the course materials, structure of the subject, the code examples and the final exam. 

***

My intention is to focus on practice. To code in public, then, prepare some exercises so they can continue coding. My plan is to work on a single project throughout the entire 4-week course; so they may watch it growing from the ground-up. 

**Week 1** the wide overview of the front-end development and start the project as a **static page**. HTML and CSS. Then we'll introduce js. No framework, just plain old javascript:

```js
const button = document.getElementById('blabla'); 
button.addEventListener('click', () => {
  /* listener */
});
```

**Week 2**: Introduce **why** we use frameworks. The "framework wars". And finally focus on React as i was asked by the organization. JSX, components, project organization, loops etc.

```jsx
function MyComponent({ foo }) {
  return <>...</>;
}

...

<MyComponent foo='goo'/> 
```

**Week 3**: Hooks. State management. Third party API. Custom hooks. Reducers and Context. 

```jsx
function MyComponent({}) {
  const [foo, setFoo] = useState();
  const { navigate } = useRouter();
  const { foos } = useCustomHook();
```

**Week 4**: Ecosystem. Typescript. `useSwr()`. Next.js. Who is relevant out there. Vercel. Highlight relevant tech influencers. 

***

Now, I need project ideas they can work on over those 4 weeks. I'm aware that the typical boot-camp project is a Pokédex: free API for fetching data, it demands a model, and building features like listing cards and detail view for each Pokémon... it's near-perfect project tbh. 

I asked ChatGPT for additional projects. It replies:

 - Recipe finder
 - Weather forecast dashboard
 - News aggregator
 - Movie listing
 - GitHub repository explorer

I don't know, what do you think. 

**Which project would you like to build if you would attend my class?**

---

Cover image created by [leonardo.ai](https://app.leonardo.ai); prompt: «_Renaissance-era professor in a steampunk-style classroom, meticulously preparing a class lecture on a massive whiteboard adorned with intricate, mechanical details._»; 3D Animation-Syle

Thanks for reading 💛.
Dependent Country State City Dropdown using jQuery Ajax in Laravel 10
Tags: laravel, dependent, dropdown, ajax
Published: 2023-09-16 11:00:27

To populate country state city dropdown based on option selected  dropdown using jquery ajax in laravel 10 applications.

## Dependent Country State City Dropdown using jQuery Ajax in Laravel 10

To create a dependent country, state, and city dropdown in Laravel 10 using jQuery and AJAX, you can follow these steps:

- Install Laravel 10.
- Add database details.
- Create a migration and model file for country, state, and city.
- Add routes.
- Create a controller to fetch country, state, and city.
- Implement AJAX code to fetch state and city in the dropdown.
- Populate the countries, state, and cities data into the respective tables.
- Create a blade file for the dependent country, state, and city dropdown.
- Run Development Server & Test This App
Read More [Dependent Country State City Dropdown using jQuery Ajax in Laravel 10](https://www.tutsmake.com/laravel-10-ajax-country-state-city-dropdown-tutorial)
How to keep your tokens secret?
Tags: javascript, env
Published: 2023-09-16 10:27:02

Hello:)
In this article we will see how to keep tokens secret.
## Adding it to your project
### Step 1
Create a file called `.env`

### Step 1
Add values in it.
All caps.
if your js project is in next js then start the key with `NEXT_PUBLIC_`
example:
```env
USERNAME = "basha coder"
```
### Step 3
To add it in your js project file yu need to make a variable for it like this:
```js
const username = process.env.USERNAME;
```
Now you have inserted the value into your project, you can use it anywhere by calling the username constant.

## Uploading it to Github(optional)
### Making sure that the `.env` is not on github
Now you need to create a `.gitignore` to exclude the `.env`, and write in it

```
.env
```
### Uploading the files
Then just upload the code to your GitHub repo
### Adding the secret
Go to the settings of the repo, then click on Secrets and Variables then Actions, then click new secret and add your key and value.
If you are using another service for hosting like vercel go to the project setting and go in environment and add from there
Video: https://www.youtube.com/watch?v=9iT86nC2Ubs
How Many Weeks in 2 Years
Published: 2023-09-16 10:46:35

Time is a fascinating concept that shapes our lives in ways we often overlook. One intriguing aspect is the measurement of time in weeks. In this blog post, we'll delve into the world of weeks and discover the interesting details surrounding the number of weeks in two years.


**The Basic Calculation:**
A year typically contains 52 weeks, with each week consisting of 7 days. Therefore, multiplying 52 weeks by 2 years gives us a straightforward answer: 104 weeks. This fundamental calculation, however, only scratches the surface of the intricacies involved in measuring time in weeks.

**Leap Years and Their Impact:** 
While the basic calculation assumes that both years are regular, non-leap years, the inclusion of leap years introduces an interesting twist. Leap years, which occur approximately every four years, add an extra day to the calendar – February 29. This adjustment compensates for the slightly longer time it takes Earth to complete its orbit around the Sun.

Consequently, if one of the two years under consideration is a leap year, the total number of weeks in two years would be 105 weeks. This phenomenon adds depth to our understanding of time measurement and its connection to Earth's celestial motions.

Cultural and Practical Significance:
Beyond the numerical value, the concept of weeks within two years carries cultural and practical significance. Many cultures and religions have established rituals and observances that revolve around weekly cycles, such as the seven-day week in Christianity and Judaism.

Moreover, the seven-day week has become a standard unit of time for organizing our personal and professional lives, influencing our routines, work schedules, and social interactions. Recognizing the underlying influence of weeks in our day-to-day existence highlights how this seemingly simple unit of time is intricately woven into the fabric of human society.

**Exploring Subjective Perception:**
Interestingly, the perception of time can vary widely among individuals. While the mathematical calculation of weeks remains consistent, our subjective experience of time's passage can differ based on various factors, including age, routines, and life events.

The concept of "time flying" or "dragging" exemplifies this variability, underscoring the complex interplay between objective time measurement and our personal perceptions.

**Conclusion:**
 In the realm of time measurement, the calculation of weeks in two years offers a glimpse into the intricate relationship between human existence and the cosmos. Whether considering leap years, cultural influences, or personal perceptions, these 104 or 105 weeks encapsulate much more than mere numbers – they symbolize our shared journey through the enigma of time.

**Read More**:[ https://www.clickchampz.com](https://www.clickchampz.com/)
How do I solidify my Python skills?
Published: 2023-09-16 10:40:31

I've just finished reading Eric Matthes' Python Crash Course. A book which I found great to learn Python within a short time. The learning process wasn't really hard for me as I was already familiar with programming in other languages. Now I'm done with it and I've just started learning Django since the past few days. Meanwhile, I want to keep practicing Python to avoid forgetting advanced Python topics such as OOP. I've been searching and experimenting different resources these past couple of weeks. I tried some online courses covering real world projects, creating GUI with Tkinter, Implementing useful algorithms, etc. But I didn't find any of them really suitable for what I'm looking for. I even asked GPT (!) for some suggestions and I got to know some famous books such as **Python Playground**, **Python Projects** and **The big book of small python projects**, but I just can't stop feeling uneasy about the issue and finding a good resource for this matter to keep on working on more Python projects beside the Django learning, in order to solidify my Python knowledge and avoide forgetting anything. So I wanted to ask someone who has more experience in Python learning journy. Is there anything you guys wanna recommend me? Any advices?
#python #programming #Django #web
First Blog
Tags: javascript, programming, opensource, aws
Published: 2023-09-09 00:37:44

Hi, I'm Shaily Shah, and I'm excited about this open source course. Open source's collaborative, transparent nature and its potential for global impact have always fascinated me. It aligns with my belief in democratizing technology.

This term, I aim to:
1. Deepen my understanding of open source, including licenses and governance.
2. Develop practical contribution skills.
3. Build a network of open source enthusiasts.
4. Contribute significantly to a project aligning with my interests.

I'm interested in web development, machine learning, and data science but open to diverse projects.

The GitHub trending repo I researched is [freeCodeCamp](https://github.com/freeCodeCamp/freeCodeCamp). It's a popular project focusing on free coding education. It offers interactive coding challenges, certifications, and a supportive community.

I chose it for its alignment with my interest in education and its active, welcoming community. Contributing to a project like freeCodeCamp offers valuable learning and collaboration opportunities.

I look forward to this open source journey, learning, growing, and contributing alongside you all!
Common Cognitive Biases That May Affect Us As Developers
Tags: rationality, cognitivebiases, bias
Published: 2023-09-16 10:38:14

As developers, we need to think straight to create solid, clean code. But hey, we're all human, and sometimes our brains make errors that can muddle up our decisions. Scientists call these errors cognitive biases. They can lead us down the wrong path, but they're actually part of how our brains handle the crazy amount of information we get all the time. Without these biases, it would be super tough to process everything logically.

Still, it's important to keep these biases in check, as they can twist our view of reality and lead to not-so-great decisions. So, I thought I'd share some common biases that we, as developers, can bump into:

1. Confirmation Bias: We might lean towards solutions or tech that fit with what we already know or believe. This can stop us from picking up something that could be even better.

2. Anchoring Bias: We sometimes stick too much to the first piece of info we get (the "anchor") when we're making decisions. For instance, we might guess how complex a task is based on something similar we've done before, even if it's not really the same thing.

3. Dunning-Kruger Effect: If we're not that experienced, we might think we're better at coding than we really are. This can make us too confident and cause mistakes.

4. Survivorship Bias: We might only focus on the projects or tech that did well and ignore the ones that flopped. This can make us too optimistic about how likely something is to succeed.

5. Not Invented Here (NIH) Syndrome: Sometimes we might dismiss solutions made by others and end up making new tools or frameworks when we could just use what's already there.

6. Recency Bias: We might pay too much attention to things that happened recently, like a bug we just ran into. This could skew our view of how reliable a project or tech really is.

So there you have it, folks – a quick rundown of some of the mental trip-ups we might face as developers. It's essential to remember that we're all susceptible to these biases, no matter how skilled or experienced we are. By being aware of them, we can work smarter, make better decisions, and create code that really shines. Keep coding, stay aware, and let's build great stuff together!
Ten Red Flags That Obstruct Systems Thinking
Tags: rationality, systemsthinking, cognitivebiases
Published: 2023-09-16 10:33:59

Hey cool people! 👋

Today I want to share with you a piece of useful knowledge about systems thinking that helps me analyze systems and their connection to each other and allows me to improve my understanding of any process I interact with, be it companies, code bases, or even human bodies.

In general, systems thinking is an approach to understanding and solving complex problems by looking at the bigger picture. Instead of focusing on individual parts or events, systems thinking considers how those parts are interconnected and how they impact each other. This approach helps to identify the root causes of problems and create long-lasting solutions, rather than just addressing the symptoms. In simple terms, systems thinking is like looking at a whole forest rather than just individual trees, recognizing how everything is connected and influences each other.

There are ten statements — red flags — that act as obstacles to systems thinking:

1. “Let’s fix it quick!”
While systems thinking doesn't demand slow problem-solving, hastily jumping into solutions without understanding the problem is counterproductive.
2. “Just put a Band-Aid on it.”
Temporary fixes can hide symptoms while the underlying issue continues to harm the organization.
3. “We need the budget finalized!”
Focusing on budgets and deadlines promotes linear thinking, moving away from systems thinking principles.
4. “We must respond right away!”
Rushing to address problems encourages linear thinking, while calmly analyzing the situation fosters systematic thinking.
5. “Who cares?”
Apathy hinders creativity and problem-solving, preventing organizational growth and effective solutions.
6. “We need more information.”
Collecting data is important, but linear thinking arises when expecting data alone to solve problems without proper analysis and action.
7. “You are overthinking things.”
Disagreements may be seen as overthinking. Systems thinking requires stretching beyond comfort zones and embracing complex solutions.
8. “Forget the rest of the organization.”
Linear thinkers prioritize personal needs with win-lose solutions. Systems thinking seeks win-win solutions that benefit everyone.
9. “We don’t want any conflict.”
Avoiding conflict at all costs can prevent addressing real problems. Confronting conflicts is necessary for effective problem-solving.
10. “We will do it this way.”
Imposing one's will stifles creativity, innovation, and collaboration, hindering effective problem-solving and growth within the organization.

I truly believe that systems thinking can introduce new perspectives, reveal hidden problems if they exist, and help existing processes to thrive and prosper 💃 .
Lets's discuss it. Have you tried this approach? 👀
컴퓨터구조와 운영체제
Published: 2023-09-16 10:29:30

# 컴퓨터구조의 큰 그림
1. 컴퓨터가 이해하는 정보
데이터, 명령어
data and instruction
데이터 숫자 문자 이미지 동영상과 같은 정적인 정보
명령어
컴퓨터는 명령어를 처리하는 기계 
1과2를 더하라
1과 2가 데이터
'안녕하세요'를 출력하라에서 안녕하세요가 데이터

2. 컴퓨터의 네가지 핵심 부품
cpu,메모리, 보조기억장치, 입출력장치
메인보드에 4가지 핵심부품이 시스템버스로 연결되어있다
메모리는 현재 실행되는 프로그램의 명령어와 데이터를 저장함
현재 실행되는! 
![](https://velog.velcdn.com/images/hank1245/post/27e7ecb8-57f5-4895-9d81-38a342727f52/image.png)

cpu 내부구조
alu, 레지스터, 제어장치
alu:계산기
제어장치는 제어신호를 내보내고 명령어를 해석하는 장치 cu
레지스터 작은 저장장치

제어장치가 메모리 읽기 신호를 받아서 메모리를 읽어와서 레지스터에 저장. 그다음 연산을 alu가 실행
메모리 쓰기 제어신호를 cu가 내보내서 메모리에 저장

시스템 버스
주소버스 데이터버스 제어버스
뭘 주고받느냐의 차이

운영체제도 메모리에 올라가 있다
커널영역이라는 특별한 공간에 적재되어서 운영된다
웹브라우저등 응용 프로그램은 사용자 영역

## 명령어의 구조
컴퓨터가 이해할 수 있는 정보는 데이터와 명령어이다
data and instruction
명령어는 연산코드와 오퍼랜드로 이루어져있다
명령어가 수행할 연산이 연산코드이고 연산에 사용할 데이터를 오퍼랜드라고 한다
하나의 명령어는 연산코드 필드 오퍼랜드 필드로 이루어진다
기계어와 어셈블리어 또한 명령어이기 때문에 연산코드와 오퍼랜드로 구성됨
> push rbp //오퍼랜드개 한개인 경우
mov eax, 0 // 오퍼랜드가 2개인 경우
ret  //오퍼랜드가 없는 경우

오퍼랜드는 연산에 사용할 데이터 또는 데이터가 저장된 위치.
데이터나 메모리 혹은 레지스터 주소가 온다
많은경우 메모리 주소 혹은 레지스터 이름이 담긴다.
그래서 오퍼랜드 필드를 주소 필드라고 부르기도 한다

오퍼랜드가 없으면 0-주소 명령어
오퍼랜드가 하나면 1-주소, 2개면 2주소 3개면 3주소 명령어

연산코드의 종류는 
데이터 전송 move push pop
산술논리 연산 add subtract
제어흐름 변경 jump return 
입출력 제어 read write


주소 지정 방식
명령어의 길이 = 32비트 컴퓨터면 32비트 버스의 크기도 32비트 cpu가 레지스터를 이용해 한번에 처리할 수 있는 데이터 크기도 32비트 주소 갯수도 2의 32승. 
연산에 사용할 데이터 위치를 찾는 방법을 주소 지정 방식 addressing이라고 함.
즉시 주소 지정방식은 연산에 사용할 데이터를 오펄낸드 필드에 직접 명시
직접 주소 지정 방식은 오퍼랜드 필드에 유효 주소를 명시
간접 주소 지정 방식 유효 주소가 저장된 주소를 오퍼랜드 필드에 명시
(느리다)

연산에 사용될 데이터가 레지스터에 저장되어 있는 경우
레지스터 주소 지정 방식
데이터를 저장한 레지스터를 오퍼랜드 필드에 직접 명시
레지스터 간접 주소 지정 방식
연산에 사용할 데이터를 메모리에 저장 레지스터는 유효 주소를 가지고 있고 오퍼랜드에는 레지스터 이름을 저장

## CPU 작동원리

cpu구성은 ALU CU Register
### ALU
ALU는 CU로부터 제어신호를 받고
레지스터로부터 피연산자를 받아들임
결과로 값을 레지스터에 저장하고 플래그 레지스터에 플래그를 내보냄
플래그는 예를 들어 계산결과가 음수라거나 연산결과가 레지스터 크기보다 크다 등의 추가 정보를 내보냄
대표적인 ALU의 플래그는 부호 플래그, 제로 플래그, 오버플로우 필래그, 인터럽트 플래그 등이다.
플래그 레지스터엔 각각의 상태가 존재함
플래그 레지스터에서 부호 플래그가 1이라면 연산결과가 음수
ALU내부는 계산을 위한 전자회로들이 존재 가산기 보수기 시프터 등

### CU
제어장치는 cpu 구성요소 중가장 정교함
제어장치는 클럭 신호를 받아들임
클럭이란 컴퓨터의 모든 부품을 움직일 수 있게 하는 시간 단위
클럭단위에 따라서 레지스터에서 데이터가 이동하는 등의 작업이 이루어짐
하지만 한 클럭마다 동작한다는것은 아님 여러 클럭에 걸쳐서 하나의 명령어가 수행될 수 있다.
IR 명령어 레지스터로부터 해석해야 할 명령어를 받아들이고 해석 후에 제어신호를 발생시켜 컴퓨터 부품들에 수행해야할 내요을 알려줌
플래그 레지스터 속 플래그 값을 받아들이고 참고함
제어버스에서 전달된 신호를 받아들임
그리고 내보내는 정보는
CPU외부에 전달하는 신호와 내부에 전달하는 신호로 나뉜다
DNV GL Approved Pipe Fittings
Published: 2023-09-16 10:09:05

ARVIND PIPES FITTINGS INDUSTRIES is a leading DNV GL Approved Pipe Fittings, Socketweld Fittings, Buttweld Fittings, Flanges, Tee, Reducer, Elbow Manufactuers, Stockist & Exporters in India, Germany, UAE, Norway, Italy, China, Turkey, Korea, USA, France,Canada, Japan, Spain, Netherlands, dnv gl, dnv rules, mydnvgl, dnv norway, dnv gl rules, dnv standard, my dnvgl, dnv rules for ships, dnv rules and standards, dnv gl standards, dnv rules for lifting appliances, dnv gl rules for ships, dnvgl rules and standards, dnv gl offshore standards, dnv iso 9001 standards, DNV GL Rules For Marines.

**For more information**
Visit our website:http://www.arvindfittings.com/
Contact Us:022 66381372
Email:exports@arvindfittings.com
Boostaro Reviews - Reviews, Results, Ingredients, Benefits & Side Effects?
Tags: webdev, javascript, beginners, programming
Published: 2023-09-16 10:07:24

[Boostaro Reviews](https://www.outlookindia.com/outlook-spotlight/boostaro-reviews-2023-exposed-7-days-results-and-complaints-dark-truth-you-must-see-this--news-270212) I don't do that at the start with doing this. It's paramount to acknowledge the enigma of their permutation, cause it certainly won't be going away any time soon. This was the effect of a concern. In any respect, this is the price you pay for this because that's even better if you get my drift. 
[https://www.outlookindia.com/outlook-spotlight/boostaro-reviews-2023-exposed-7-days-results-and-complaints-dark-truth-you-must-see-this--news-270212](https://www.outlookindia.com/outlook-spotlight/boostaro-reviews-2023-exposed-7-days-results-and-complaints-dark-truth-you-must-see-this--news-270212)
https://www.outlookindia.com/outlook-spotlight/exodus-effect-holy-book-anointing-oil-ingredients-works-or-waste-of-money-scam-exposing-reports--news-208597
https://www.outlookindia.com/outlook-spotlight/leanbiome-legit-or-fake-leanbiome-weight-loss-formula-ingredients-price-and-side-effects-exposed--news-221925
https://jemi.so/boostaro-pills 
https://hashnode.com/@boostaroinfo 
https://infogram.com/boostaro-1h7k230npvxpv2x 
https://lookerstudio.google.com/reporting/8e994fc8-9ce2-43a1-868d-81dd28d8ce8b 
https://promosimple.com/ps/25faf/boostaro 
https://warengo.com/stories/272824-boostaro-results-reviews-benefits-uses-side-effects 
https://lexcliq.com/boostaro-price-ingredients-results-reviews-benefits/ 
https://boostaro-7.jimdosite.com/ 
https://caramellaapp.com/boostarofact/UJ7DLPAgY/boostaro 
https://boostaro-price.gitbook.io/boostaro-results-reviews-benefits-uses-and-side/ 
https://www.click.in/gurgaon/boostaro-results-reviews-benefits-uses-side-effects-c75-v52083715 
https://colab.research.google.com/drive/1NoqilAsJ38Mpbi2DOpbUg9tP-oIxgh0u 
https://sites.google.com/view/boostaro-review-2023/ 
https://www.bonfire.com/store/boostaro-benefits/ 
https://www.youtube.com/watch?v=sxQ6WPhAtDI 
https://www.facebook.com/profile.php?id=100091786868339 
https://www.pinterest.com/pin/1129066569061098832/ 
https://soundcloud.com/boostaro-355078426/boostaroinfo 
https://www.yepdesk.com/boostaro-reviews5
https://fixr.co/event/boostaro-reviews-reviews-results-ingredients-tickets-945051271
https://www.sportsblog.com/udsakhtma/boostaro-reviews-ingredients-benefits-reviews-complaints-warnings/
https://patch.com/new-york/downtown-nyc/calendar/event/20230921/c0feda85-18b6-4f67-acd2-9716ac0b7889/boostaro-reviews-ingredients-benefits-reviews-complaints-warnings
Laravel 10 jQuery Form Validation Tutorial
Published: 2023-09-16 09:58:33

Form validation is the process of confirming that the user has entered the relevant information in the input field. For example, a form might include a name, email, contact, password, and a confirm password.

jQuery validation is a way to validate a form on the client-side before it is submitted to the server. This saves time and reduces the load on the server.

To validate a form using jQuery in Laravel 10, you can follow these steps:

- Create a Laravel project.
- Configure the database to the app.
- Create routes.
- Create a controller and methods.
- Create a Blade view.
- Implement client-side validation with jQuery validation.
- Run the Development Server & Test This App

Read More [Laravel 10 jQuery Form Validation Tutorial](https://www.tutsmake.com/laravel-10-jquery-form-validation-example-tutorial
)