teleren/devto huggingface dataset:
C function to check Endianness
Tags: computerscience, programming, webdev, tutorial
Published: 2022-10-31 01:28:04

This article will show you how to write a c program to check endianness.
<br/>
### What is Endianness?
**Endianness** is the order by which _bytes_ are stored in computer memory. Endianness (Her Royal Highness) tells us whether _bytes_ are represented from left to right or right to left.


![Your Royal Highness GIF](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upcqr5sk2y8w3qpmnjxa.gif)
<br/>
### How does Endianness work?
There are two ways Her Royal Highness allows data to be stored in memory:

- 
_Little-Endian_: Store the **least significant byte** in the **smallest address**

![Little Endianness](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5hchtt2noy3qwb3mfrc9.png)

- 
_Big-Endian_: Store the **most significant byte** in the **smallest address**

![Big Endianness](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dmcofk9aeo3vichk75xw.png)
<br/>
### Why check for Endianness?
Suppose we store _integer_ values in a file and send the file to a machine with opposite endianness, it causes us to read the reversed values of our _integers_ and this can be a problem.

![Endianness meme](http://artificialworlds.net/presentations/character-encodings/endianness.jpg)
<br/>
### How to check for endianness in C?
We already know that in _little endian_ machine, the **least significant byte** of any multibyte data is stored at the **lowest memory address**. So in the below program, we are asking her royal highness to let us know the value of the lowest address in memory. If the value is 1 then she will print **little endian** otherwise, **big endian** will be printed.

```c
#include <stdio.h>

/**
 * main - checks the endianness
 *
 * Return: Success (0)
 */

int main(void)
{
    unsigned int i = 1;
    char *c;
    
    c = (char *) &i; /* points to the first byte of the integer i */
	if (*c == 1) /* 1st byte looks like 0x01 */
	{
		printf("Little Endian\n");
	}
	else /* 1st byte looks like 0x00 */
	{
	    printf("Big Endian\n");
    }
    return (0);
}
```

**Output**

```
Little Endian
```

<br/>
### Code Explanation
If your machine is _little endian_, the data in the memory will be something like the expression below:

<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m390cugr1pzb1l6wo9mn.png" width="100">

On the contrary, if your machine is _big endian_, it will look like the expression below:

<img src="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v1tk4nd5putr8go1dw7i.png" width="100">
<br/>
### Conclusion
There is no meaning to say which endian is better, there is no advantage of using one endianness over the other as both only define the _byte sequence order_. Most desktop and personal computers today have _little-endian_ architecture.

I would like to know your thoughts on Her Royal Highness :smiley:. Please remember to leave a comment in the comment box and hit the follow button.
<br/>
### References
[GeeksforGeeks](https://www.geeksforgeeks.org/little-and-big-endian-mystery/)
[Aticle World](https://aticleworld.com/little-and-big-endian-importance/)
Why You Should Learn Node
Published: 2022-10-31 01:19:38

Node.js is a server-side platform built on Google Chrome's JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009. It is an open source server environment. Node.js runs on various platforms such as Windows, Linux, Unix, and Mac OS X. Node.js applications are written in JavaScript.

Node.js has a single-threaded event-driven architecture. It is designed to build scalable network applications. Node.js uses an event-driven model. It is lightweight and efficient. Node.js is used in many large scale web applications such as PayPal, Uber, Netflix, and eBay.

Node.js is a popular platform for building web applications. It is easy to use and provides a rich set of features. Node.js applications are written in JavaScript. Node.js is a popular platform for building web applications. It is easy to use and provides a rich set of features.

Node.js is an open source server environment. Node.js is used in many large scale web applications such as PayPal, Uber, Netflix, and eBay.
Analytics Engineering Study Topics
Published: 2022-10-31 01:06:36



[DagsHub (Github for Data)](https://dagshub.com/get-started/learn-more)

[ClearML (ML in browser) ](https://app.clear.ml/dashboard)

[Dagster Blog - DuckDB Data Lake](https://dagster.io/blog/duckdb-data-lake)

Wes McKinney Stuff - 
- [Apache Arrow for Node.js Github](https://github.com/apache/arrow/tree/master/js)
- [IBIS Project](https://ibis-project.org/docs/3.2.0/)
- [Python Data Analysis Book](https://wesmckinney.com/book/)

[Phillip in the Cloud (IBIS Duckdb project)](https://youtu.be/9fuyiqguB-c)
Waiting on a Promise.. Async and Await in JavaScript
Published: 2022-10-31 00:02:33

##Why use Async and Await?
By default, Javascript runs synchronously. This means each operation will wait to run until the previous operation is completed. For example, running these two lines of code:

![Console-logging "Hello" and "World"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xefkeo3044br96ehuesl.png)
will always result in this output in the console:
![Hello World](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c82x8vz6me9z51ywm13d.png)
Line 1 is run first and Line 2 follows.

However, sometimes we need our code to run asynchronously. Enter: async and await!

## Async and Await
Async and await are used with promises. Placing the async keyword before a function ensures that function will return a promise. The await keyword can only be used inside an async function. Anything after the await keyword tells Javascript to wait until the promise resolves and returns its results. So when may we want to use async and await?

## Putting it in Practice
While completing our capstone projects for bootcamp, I was helping a friend brainstorm some possible ways for her app to function. She wanted a user to click on a dog they were interested in adopting and then fill out an adoption form. We decided to have the initial click event create a post request, essentially joining her user and the adoptable pup and then  push the user to another page where they could input more information. However, her post function would push the user to the form page before the promise resolved, meaning we did not have the id for the newly created donation form yet and therefore could not use that id in our url and then again in our future patch request once the user completed their form. To solve this issue, we were introduced to async and await!

First, we added the async keyword to our function. We set our fetch to a constant (res) and added the await keyword in front of the fetch. We then declared a new constant (data) and set that to our res.json(), including the await keyword once more. The await keyword tell JavaScript not to continue on to the next operation until the prior operation is resolved. 

We then created a function aptly named redirect that pushes the user to the page where they can update the rest of the form information. Lastly, we invoke the redirect function using the data we received from our promise after it is parsed to json.

Our final code:

![Async and Await Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/satmna4brvwwa0kdobgy.png)

## Conclusion
In conclusion, async and await is a great tool to use when the need arises for JavaScript code to be able to run asynchronously. While today we saw just one great example of using async and await, there are many other ways it can be utilized, which I look forward to using in the future.
New Videos: Coding Short and a Rant
Tags: csharp, opensource, dotnet
Published: 2022-11-13 07:23:49

---
title: New Videos: Coding Short and a Rant
published: true
date: 2022-10-31 00:00:00 UTC
tags: 
  - csharp
  - opensource
  - dotnet
canonical_url: https://wildermuth.com/2022/10/31/codingshort-and-a-rant/
cover_image: "https://wilderminds.blob.core.windows.net/img/2022/10/31/cover.jpg"
---

I can’t believe October is almost over! I forgot to post about a couple of videos I made this month. The first one is about new features in .NET 7 for Minimal APIs. The second one is a rant(ish) about support terms for Open Source projects (including .NET). Take a gander:

> https://www.youtube.com/watch?v=8c73j7RHoSQ
> https://www.youtube.com/watch?v=oR4dELwe57Q

> [Subscribe to my YouTube Channel](https://shawnl.ink/yt)

[![Creative Commons License](http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png)](http://creativecommons.org/licenses/by-nc-nd/3.0/)

 This work by [Shawn Wildermuth](http://wildermuth.com) is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License](http://creativecommons.org/licenses/by-nc-nd/3.0/).  
 Based on a work at [wildermuth.com](http://wildermuth.com).

* * *

If you liked this article, see Shawn's courses on [Pluralsight](http://shawnw.me/pscourses).
tsParticles 2.4.0 Released
Tags: javascript, typescript, webdev, showdev
Published: 2022-10-30 23:37:30

## tsParticles 2.4.0 Changelog

### New Features

- Added `reset` method to updaters, this method will be called after a particle loses a life.
- Created the motion plugin for handling motion sickness, I moved this feature from the engine to a plugin since I prefer to have it more customizable. Everyone now can create their own motion sickness plugin, instead of having a standard behavior for everyone
- Added mutation observer to avoid style changes to the canvas when the `fullScreen` option is enabled (default behavior)
- Moved all easing functions to plugin packages, slim now depends on easing-quad since it's the default value used in repulse and attract
- Added support for multiline text in canvas mask text options, separator and spacing are customizable values
- Added `aria-hidden="true"` to canvas element, fixes #4785
- Removed all canvas context save/restore calls, this should be a huge improvement to general performances
- Added the particles pool for reusing destroyed particles, every tsParticles instance will have its own pool
- Changed collision absorb code, added `absorb.speed` option to `collisions` section
- Added delay to root options, fixes #4766 

### Bug Fixes

- Fixed infection plugin
- Fixed issue with polygon mask when particles bounce on the polygon edges
- Fixed issue with `rgb()`, `hsl()` and `hsv()` values in color option values

### Other Changes

- Refactored plugins to avoid passing options in init functions since it's no more necessary
- Removed `initAsync` function from plugins, standard `init` is now async for all plugins
- Removed polygon mask plugin from the `tsparticles` package, this is a breaking change only for those that are using it. Since it's a heavy plugin and not so much used, I have preferred removing it from the `tsparticles` package.
- Changed tsconfig target from es6 to es2019 (less transpilation to a reasonable target). The compatibility is still very high, reducing the bundle size.

--

## Social links

- [Discord](https://discord.gg/hACwv45Hme)
- [Slack](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI)
- [Telegram](https://t.me/tsparticles)
- [Reddit](https://www.reddit.com/r/tsParticles/)

---

{% github matteobruni/tsparticles %}
Trying to organize your QA team? I've collected the most popular hitches waiting for you on this way.
Tags: testing, qa, beginners, team
Published: 2022-10-30 23:20:45

Managing QA teams can be challenging, especially when they are being set up from scratch, so here are some common issues and difficulties you may face.

**Lack of people**: the existing QA talent pool must be improved to build a team. The honest answer is hiring new people or outsourcing some of the tasks.

**Lack of experience**: you will miss quality deadlines. The team may need more experience to tackle a complex project. Additional training is required.

**Needs to be clarified**: QA and testing activities depend on the requirements' clearness. The Product Owner needs to identify and prioritize any ambiguous requirements. 

**QA is frequently neglected**. Stakeholders think testing is an obstacle to releasing a new feature or product. Poorly tested releases may have consequences, like losing customers, failing sales, etc. It is worthwhile in terms of time and money for stakeholders to participate in QA. Show them the potential consequences and gain support for QA.

**Fast-paced release schedule**. When the release schedule is fast-paced, and new features are constantly released, you need senior QA testers and automation engineers.

Read more about QA team organizing [here ](https://aqua-cloud.io/build-qa-team/?utm_source=devto&utm_medium=article&utm_content=post&utm_campaign=distribution)

---


If you want to follow my testing learning journey, follow the "Software Testing Talks" groups I created on Reddit and Linkedin. I share the most interesting QA discussions I find on the web and insights I get during testing work and studies there.

I am also happy to hear your feedback, suggestions, or ideas about what you would like me to write more about. Don't hesitate to text me if you want to say hi or discuss something.
Hacktoberfest Wrap-Up: Minor Contribution to Linked
Tags: opensource, hacktoberfest, beginners, vue
Published: 2022-10-30 23:18:04

Three days, 1 PR? _That's distressing_.

Luckily, I got an opportunity to contribute to the [Linked](https://uselinked.com) project.

# About Linked
Linked enables users to declutter their minds and record their thoughts through journaling. 

## The Issue
Linked is a reasonably new journaling tool that has yet to implement the spell-check feature. Therefore, there is no point in underlining words containing typos at this point. You can read more about the issue [here](https://github.com/lostdesign/linked/issues/160).

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



## The Fix
The solution was to disable spell-check by passing it as `prop` with the value of `false.` See the PR [here](https://github.com/lostdesign/linked/pull/187).

### Challenges Encountered
- Familiarizing myself with Vue
- Trouble running Linked on `node` version 18.2. I had to downgrade to version 16 to make it work on my machine

## Outcome
The editor no longer complains if you misspell words.

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


# Final Thoughts on Hackotberfest
- Overall, I had fun contributing to different projects and working with developers around the globe
- I learned that it is easier to contribute to a project if I am genuinely interested in using it in my everyday life. 
- A minor contribution is enough to boost my confidence significantly.  
- Do it for the experience, not the perks.
Next 13: What's new?
Tags: javascript, nextjs, codenewbie, webdev
Published: 2022-10-30 23:15:20

{% embed https://www.youtube.com/watch?v=8LAEWlEWoak %}

Hello everyone,

Vercel's conference happened this week and we discovered Next 13!

I was so excited about this new version. So I made this quick video to talk about what was new.

A quick resume:

- a new routing system,
- layout.js, page.js, loading.js, error.js...,
- turbopack will rocks — and may replace webpack,
- we get rid of getServerSideProps / getStaticProps !

But we still don't know for APIs... Or did I miss something?

Watch my video for a quick presentation of Next 13!

Best,

Guillaume
Hacktoberfest Recap
Tags: opensource
Published: 2022-10-30 22:28:23

Well my first ever Hacktoberfest is now over. It was stressful at times, but I think that was mostly just because it was my first one. The main challenge throughout the month was finding issues to work on. Since this is a global event, you had to be quick and/or lucky to find a good issue that was both challenging but yet, not overwhelming for a beginner like myself.

Overall, I made four pull requests (PRs) over the course of the month. Which can be read about here:
- https://dev.to/alexsam29/hacktoberfest-week-1-first-pull-request-31ie
- https://dev.to/alexsam29/hacktoberfest-week-2-first-bug-fix-5ao3
- https://dev.to/alexsam29/hacktoberfest-week-3-enhancing-a-feature-3iin
- https://dev.to/alexsam29/hacktoberfest-week-4-finding-and-creating-issues-j79

I think I made good learning progress with my PRs. The first PR was just me getting into the swing of things and getting used to contributing to a public open-source project. The second PR is where I actually got to put some coding skills to the test by fixing an existing bug in a project. It gave me some experience researching potential fixes to bugs that weren't my own creation. The third PR allowed me to continue with my work on the same project and gave me the opportunity to enhance a feature of the project. It was challenging as I had to brainstorm potential solutions that would give me the enhancement I was looking for.  The fourth and final PR, while simple coding wise, gave me experience exploring different types of projects and tech stacks that I probably would not have explored had I not been participating in Hacktoberfest. The fact that it was challenging to find good issues to work on forced me to explore many projects to create a new issue myself. This gave me a good learning experience as I had to read and learn about many types of tech stacks in order to get a good understanding of the project, so that I could create an issue in the repository.

Overall, Hacktoberfest gave me the confidence to put myself out there and not to be afraid of contributing to open-source projects. No matter your experience level or how easy or difficult an issue is, every contribution is a learning experience.
My journey creating a map-based webapp with django, leaflet/folium, docker and heroku
Tags: python, docker, heroku, maps
Published: 2022-10-30 22:20:39

I learned a lot during this process. I wound up documenting the process fairly well -- mostly out of the desperate need to get all the hurdles out of my brain and onto paper -- so I decided to share it here! Hopefully my experience can help someone else out there (like so many of these blogs and message forums had helped me), and also hopefully so others more experienced than me can give me tips on how to improve next time. Thanks for reading! 

This will be a series of blog posts outlining what I did and some of the major time consuming issues I had to overcome. Here are a list of entries that'll make up the series:

####Step One: 
Design front-end mock up using figma

---

####Step Two: 
Process the data using jupyter notebook, scraped airbnb data, and government published census data

---

####Step Three: 

Test functions to calculate statistics and build maps for the web app using jupyter 

---

####Step Four: 

Connect the django web app to Heroku remote server 

---

####Step Five: 

Customize the views, urls and templates for the django web app

---

####Step Six: 

Migrate the data using postgis/postgres

---

####Step Seven: 

Write tests for the codebase using pytest

---

####To do in the future: 

Incorporate user experience and design feedback from beta users

---
Python's secret weapon: generators
Tags: python, programming, code
Published: 2022-10-30 22:00:51

Python generators are powerful, but an often underutilized tool.

By definition, a generator is a function that returns an iterable object.

In other words, it's a function that can be used to create a list, but instead of returning all the values at once, it yields them one at a time.

This may not sound very exciting, but generators can be extremely helpful in a number of situations.

For example, let's say you have a large list of objects that you need to process in some way.

If you were to process the entire list at once, it would take up a lot of memory and could potentially slow down your program.

However, if you were to use a generator, you could process the objects one at a time, which would be much more efficient.
In addition, generators can be used to create infinite sequences.

This is extremely useful in situations where you need to generate a lot of data, but don't want to store it all in memory.

For instance, you could use a generator to generate a stream of random numbers.

Generators are a very versatile tool that every Python programmer should be familiar with.

So next time you find yourself needing to process a large amount of data or generate an infinite sequence, don't forget to reach for a generator!
Hacktoberfest22-Accepted
Tags: hacktoberfest, opensource, github, challenge
Published: 2022-10-30 21:35:04

I am very happy to share that, I have completed Hacktoberfest22 Challenge. 
**What made this year hacktoberfest more exciting? **
It was so excited specially because of its thrilling framework and holopin badges.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d8is2jpwju1cks5ifuhp.png)
Hacktoberfest PR 3: Improving documentation
Tags: opensource, beginners, hacktoberfest
Published: 2022-10-30 21:23:36


This week I got the opportunity to improve the developer contribution documentation for the [Telescope](https://github.com/Seneca-CDOT/telescope) project.  

## Overview
When I was working on a fix for this [issue] (https://github.com/Seneca-CDOT/telescope/issues/3614) locally on my machine, I ran into a problem where I was unable to see any blog posts, even though I used the `environment-setup` file as my guide to setup Telescope. Since the bug I was trying to fix did not require access to blog feeds, I filed a separate [issue](https://github.com/Seneca-CDOT/telescope/issues/3692) on GitHub.

## The Problem 
 The problem was that the `environment-setup` file was missing information on properly seeding the database utilized by Telescope. The needed information was in a separate [file](https://telescope.cdot.systems/docs/tools-and-technologies/prisma/).  

## The Goal
My goal was to enhance the developer experience by correctly integrating all the information related to running Telescope in one file - `environment-setup`. 

### information Added

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

## The Outcome
Users can easily navigate to different files to initialize the database. All the steps are in one [file](https://github.com/Seneca-CDOT/telescope/blob/master/src/web/docusaurus/docs/getting-started/environment-setup.md) 

_Thank you [Josue](https://github.com/manekenpix), for your help and support._