teleren/devto huggingface dataset:
How are Hot Reloading and Live Reloading in React Native different?
Published: 2022-12-22 12:27:01

**Hot Reloading and Live Reloading** are two features in React Native that allow you to update the code of your app while it is running on a device or emulator. These features can save you a lot of time during development, as you don't have to manually stop and restart the app every time you make a change to the code.

**Here's how Hot Reloading and Live Reloading differ:**

**Hot Reloading:** Hot Reloading allows you to make changes to your code and immediately see the results on the device or emulator without losing the current state of the app. This can be useful for making quick changes to the UI or for debugging. To use Hot Reloading in React Native, you can simply save your code changes and then shake the device (or press a hotkey, depending on the platform) to bring up the developer menu. From there, you can choose the "Hot Reload" option to apply the changes.

**Live Reloading:** Live Reloading is similar to Hot Reloading, but it automatically reloads the app whenever you save a change to the code. This can be convenient if you don't want to manually trigger the reload every time, but it can also be less efficient, as it requires the app to fully restart each time. To use Live Reloading in React Native, you can enable the "Live Reload" option in the developer menu or by using a command-line flag when starting the app.

In summary, **Hot Reloading** allows you to apply code changes without losing the current state of the app, while **Live Reloading** automatically reloads the app whenever you save a change. Both features can be useful during development, and you can choose the one that best fits your needs.
JAVASCRIPT NECESSITIES(things you need to emphasis on):
Tags: webdev, javascript, programming
Published: 2022-12-22 12:26:20

**1.Variables: Variables are used to store and manipulate data in JavaScript. You can create a variable using the var, let, or const keyword.**

```JavaScript
let x = 5;
console.log(x); // Output: 5

```
**2.Data types: JavaScript has several data types, including numbers, strings, booleans, and objects.**

```Javascript
let num = 5; // number
let str = 'Hello'; // string
let bool = true; // boolean
let obj = {key: 'value'}; // object


```
**3.Arrays: Arrays are used to store lists of data in JavaScript. You can access and modify the elements of an array using their index.**

```Javascript
let arr = [1, 2, 3, 4, 5];
console.log(arr[2]); // Output: 3
arr[2] = 10;
console.log(arr); // Output: [1, 2, 10, 4, 5]

```
**4.Loops: Loops allow you to repeat a block of code multiple times. There are several types of loops in JavaScript, including for loops and while loops.**

```Javascript
for (let i = 0; i < 5; i++) {
  console.log(i); // Output: 0 1 2 3 4
}

let j = 0;
while (j < 5) {
  console.log(j); // Output: 0 1 2 3 4
  j++;
}

```
**5.Functions: Functions are blocks of code that can be called by their name. They can also accept arguments and return a value.**

```Javascript
function add(x, y) {
  return x + y;
}

console.log(add(2, 3)); // Output: 5

```
**6.Objects: Objects are collections of key-value pairs in JavaScript. You can access and modify the values of an object using its keys.**

```Javascript
let obj = {
  key1: 'value1',
  key2: 'value2'
};

console.log(obj.key1); // Output: 'value1'
obj.key1 = 'new value';
console.log(obj.key1); // Output: 'new value'

```
**7.Destructuring: Destructuring is a feature of JavaScript that allows you to extract values from arrays and objects into variables.**

```Javascript
let arr = [1, 2, 3];
let [x, y, z] = arr;
console.log(x); // Output: 1
console.log(y); // Output: 2
console.log(z); // Output: 3

let obj = {key1: 'value1', key2: 'value2'};
let {key1, key2} = obj;
console.log(key1); // Output: 'value1'
console.log(key2); // Output: 'value2'

```
**8.Spread operator: The spread operator allows you to spread the elements of an array or object into a new array or object.**

```Javascript
let arr1 = [1, 2, 3];
let arr2 = [...arr1, 4, 5];
console.log(arr2); // Output: [1, 2, 3, 4, 5]

let obj1 = {key1:

```
**9 Map method: The map method is a higher-order function that allows you to transform the elements of an array. It returns a new array with the transformed elements.**

```Javascript
let arr = [1, 2, 3];
let newArr = arr.map(x => x * 2);
console.log(newArr); // Output: [2, 4, 6]

```
**10.Set method: The Set object is a collection of unique values. You can use the add method to add values to a Set, and the has method to check if a value is in a Set.**

```Javascript
let set = new Set();
set.add(1);
set.add(2);
set.add(3);

console.log(set.has(1)); // Output: true
console.log(set.has(4)); // Output: false

```
Passwordless directory
Tags: passwordles, cybersecurity, authenticatio
Published: 2022-12-22 12:15:30

There has been a lot going on about password vs passwordless, one persistent question we have mostly seen is, which applications are using passwordless other than a few tech giants?

This question motivated us to compile a directory of applications and their domains that are using passwordless.

Here is our [directory]( https://passwordless.directory/)

If you know any website or app using passwordless for authentication, contribute them here and we'll add them.
ITAssignmentHelp
Tags: itassignmenthelp, assignmenthelp, ithomeworkhelp
Published: 2022-12-22 12:07:39

Welcome to TheDBAdmin, the ultimate destination for IT assignment help. Our experienced professionals are dedicated to providing reliable, expert-level assistance to help you succeed in your studies.

At www.thedbadmin.com, we offer a wide range of IT solutions to help you tackle a variety of topics, including database management, cloud computing, DevOps, ER diagrams, operating systems, big data, virtualization, and SQL query writing. No matter what your specific needs may be, our team has the knowledge and expertise to provide the solutions you need.

If you're in need of IT assignment help, look no further than TheDBAdmin. Our team is dedicated to providing the support and guidance you need to succeed. We offer one-on-one guidance and support, as well as a range of resources and materials to help you understand the concepts and complete your assignments with confidence.

At TheDBAdmin, we are committed to providing top-notch IT assignment help to students just like you. Our website is user-friendly and easy to navigate, making it easy for you to find the help you need. So if you're looking for reliable, expert-level assistance with your IT assignments, look no further than TheDBAdmin. Thank you for choosing us for your IT needs.

Read more: https://thedbadmin.com/
Simple Chat App using Socket.io in NodeJS
Tags: chatapp, socketio, node, javascript
Published: 2022-12-22 11:41:00

I am gonna share, how to create simple chat app using socket.io in NodeJS. This app allows multiple clients to connect to a server and send messages to each other in real-time.

To start, you will need to install the socket.io library using npm:

```
npm install socket.io
```

Next, you can create a server that listens for connections and broadcasts messages to all connected clients. Here is the code for the server:

```
const express = require('express');
const http = require('http');
const socketIO = require('socket.io');

// Create an express app
const app = express();

// Create an HTTP server
const server = http.createServer(app);

// Bind socket.io to the server
const io = socketIO(server);

// Listen for new connections
io.on('connection', (socket) => {
  console.log('New client connected');

  // Listen for messages from this client
  socket.on('message', (message) => {
    console.log(`Received message from client: ${message}`);

    // Broadcast the message to all clients
    io.emit('message', message);
  });

  // Disconnect event
  socket.on('disconnect', () => {
    console.log('Client disconnected');
  });
});

// Start the server
server.listen(3000, () => {
  console.log('Server listening on port 3000');
});

```

To connect to the server and send messages, you can use the following code in the client:

```
const socket = io('http://localhost:3000');

// Send a message to the server
socket.emit('message', 'Hello from the client');

// Listen for messages from the server
socket.on('message', (message) => {
  console.log(`Received message from server: ${message}`);
});

```

This is just a basic example, but you can build on top of this to create a more feature-rich chat app. For example, you could add a user list, support for private messages, or a chat history.
Sleeps until Christmas: awful answers only
Tags: challenge, jokes, programming
Published: 2022-12-22 11:40:27

---
title: Sleeps until Christmas: awful answers only
published: true
description: Write code to determine the number of sleeps left until Christmas day. Make the code as unpleasant as possible. If you'd prefer to pick a different day to celebrate, that's fine too.
tags: challenge, jokes, programming
series: awful answers only
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-12-22 09:45 +0000
---

It's *that* time of year. Some people are counting down sleeps until Christmas day.

I think it would be great if we could help them out with a function or programme of some kind that can help them keep count.

Something that will accept a date and output the number of sleeps until Christmas from that date, or if you don't want to do Christmas, some other date you find important.

One caveat is that the code should, for some reason, get you on Santa's naughty list.

The function should work like so:

``` javascript
sleepsTillChristmas(date) //e.g. 2022-04-15
//output for the example is 264
```
How Can You Make Your Taxi Business Successful with an App?
Published: 2022-12-22 11:34:55


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e1y346jqlxqawlrjwlv4.png)
We cannot imagine a booming ridesharing industry with Uber in the picture! Taxi service apps are now replacing the traditional ride industry and these apps are definitely going to stay! Mobile applications are now an essential asset for businesses working in the ride-sharing industry. You must build a unique app that faces sharp competition and beat them to stay ahead. Give your users a reason to pick your app over others. Your brand can gain a persuasive value proposition with a user-friendly app. Stake your investment in a reliable tech partner that knows everything about **[on demand taxi app development](https://www.apptunix.com/taxi-booking-app-development/)** and related technologies.

Building such an app is a complex process that needs dedication, time, and money. The development process has several benefits such as analyzing market trends, client satisfaction and much more. Apptunix is a top leading development company that offers **[On Demand Mobile App Development](https://www.apptunix.com/solutions/mobile-app-development/)** services. We create apps that are highly competent in robust technology, scalable and cost-effective. Increase your company's revenue by contacting us today!
Upgrading MySQL 5.7 to MariaDB 10 on Ubuntu 18
Tags: mysql, mariadb, ubuntu, yakshaving
Published: 2022-12-22 11:25:56

FX: Stands up amid very large pile of yak hair

Right. If you're ever in the unfortunate space of needing to upgrade MySQL 5.7 to MariaDB 10 on Ubuntu 18.04 LTS, here's what to do and what not to do.

1) next time, upgrade to 20.04.5 LTS first, and most/all of this will go away :D

2) do NOT install the default `mariadb-server-10.1` package, as its `mysql_upgrade` script does **not** know how to convert from `mysql-5.7` tables.

3) Go [here](https://mariadb.org/download/?t=repo-config) and select your Ubuntu version and a suitable MariaDB version.

4) Cut and paste the appropriate repo lines, and do what it says.

5) if it doesn't run `mysql_upgrade` for you, run it as root.

6) You may find that it hangs on starting the MariaDB server. This is an issue with `apparmor`, and can be fixed by following [these instructions](https://serverfault.com/questions/1013128/mariadb-service-start-stuck-at-activating) (reproduced here just in case of link rot).

```
sudo systemctl stop mariadb
echo "/usr/sbin/mysqld { }" | sudo tee /etc/apparmor.d/usr.sbin.mysqld
sudo apparmor_parser -v -R /etc/apparmor.d/usr.sbin.mysqld
```

The above should display `Removal succeeded for "/usr/sbin/mysqld"`

And then, to stop it reappearing on reboot:

```
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/usr.sbin.mysqld
```

Finally:

```
sudo systemctl start mariadb
```
Things I learned this week - Week 50 (2022 ed.)
Published: 2022-12-22 10:56:52

1. {% embed https://www.youtube.com/watch?v=BFZxlauizx0 %}

2. {% embed https://www.youtube.com/watch?v=0xP6diaoaZU %}

3. {% embed https://www.youtube.com/watch?v=hk6ZkD0Vg3w %}
Year in Review, 2022!
Tags: cloud, productivity, webdev, showdev
Published: 2022-12-22 10:53:22

Neverinstall is a small team of ambitious young people, and the past year has been exciting for us. We grew the team, and our user base, introduced more applications and capabilities to the platform, completed a significant overhaul of the user interface, and democratized performance computing with the cloud.

As the new year dawns, we want to pause to observe the platform's trajectory and acknowledge our journey through 2022.

This year, we more than doubled our total number of users, expanded to new server locations, imparted more information to the people, and introduced some significant changes to bring the platform closer to a native experience. And we want to celebrate this journey with our community, our team members, and everyone who helped the platform bring it to its current form!

See how we faired, what we achieved, and our plans for the future. We’re excited to announce — [Year in Review, 2022](https://neverinstall.com/year-in-review-2022)!
Double click listener on Android
Tags: android, androiddev, java
Published: 2022-12-22 10:39:26


![cover](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlo5ht51unltxu7efjto.jpeg)

Some times we need to check when the user made a double click in some of our android views. To solve this problem I made a small library to handle this.
How to use?
Using Android Studio, just add this line in your build.gradle project level:

```
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' } // add this line
	}
}
```

Second, add this line inside dependencies on your app build.gradle module level:
`implementation 'com.github.pedromassango:doubleClick:v3.0'`
The class DoubleClick extends from View.OnClickListener so, just call the DoubleClick class on you onClickListener of the view that you wish to listen, and pass a instance of DoubleClickListener class to listen the events.

```java
Button btn = new Button(this);
btn.setOnClickListener( new DoubleClick(new DoubleClickListener() {
            @Override
            public void onSingleClick(View view) {

                // Single tap here.
            }

            @Override
            public void onDoubleClick(View view) {

                // Double tap here.
            }
        });
        //  use this to define your own interval
        //  }, 100));
```

OBS: On the latest version you can define your own interval!
To know more, check it on GitHub:
https://github.com/pedromassango/doubleClick
How do I convert a String to an int in Java ?
Tags: java, programming, beginners, tutorial
Published: 2022-12-22 10:30:00

To convert a String to an int in Java, you can use the `Integer.parseInt()` method. Here is an example:

```java
String str = "123";
int num = Integer.parseInt(str);
```

Alternatively, you can use the `Integer.valueOf()` method, which returns an Integer object rather than an int primitive. Here is an example:

```java
String str = "123";
Integer num = Integer.valueOf(str);
```

Keep in mind that both of these methods will throw a `NumberFormatException` if the string cannot be parsed as an integer. You can handle this exception by enclosing the call to `Integer.parseInt()` or `Integer.valueOf()` in a try-catch block.

```java
try {
    String str = "123";
    int num = Integer.parseInt(str);
} catch (NumberFormatException e) {
    System.out.println("The string is not a valid integer.");
}
```

{% embed https://youtu.be/8KNfeGxTjC8 %}
Understanding Docker: part 36 – Pause and unpause a container
Tags: docker, devops, beginners, cloud
Published: 2022-12-22 10:29:28

---
title: Understanding Docker: part 36 – Pause and unpause a container
published: true
description: Serie of sketchnotes about Docker. Explaining in a visual way Docker principles.
tags: Docker, DevOps, beginners, Cloud
series: Understanding Docker in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/92kw8g7pjnsaykmzz08v.jpg
---

Understanding Docker can be difficult or time-consuming. In order to spread knowledge about Cloud technologies I started to create sketchnotes about Docker. I think it could be a good way, more visual, to explain Docker (and other technologies like Kubernetes and Istio).

We continue the series of Docker sketchnotes with a focus about how to Pause and unpause a container with Docker.

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

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I published all the sketchnotes on Docker (and new ones!) to make a "book": ["Understanding Docker in a visual way"](https://gumroad.com/aurelievache#YTLzM).
Spoiler alert: this book will be released in a paperbook on Amazon, like [Understanding Kubernetes in a visual way](https://www.amazon.fr/dp/B0BB619188/ref=cm_cr_arp_d_product_top?ie=UTF8)
About my journey and the offer that I'm about to presents to you
Published: 2022-12-22 10:28:34

- I'm a software developer currently in my last year of graduation of bachelor of engineering degree. more over I have a soft skills such as JavaScript CSS html C++ python Django and some what react that I'm used in many Projects.but here is a turn that I'm also a full time trader of NSE and BSE if anyone want to learn how options and futures work with 1000 rupees capital Ican teach them free of cost and i want them to give their precious time for the sessions and give us a contact at gp627853@gmail.com or call 9106651984
A new update of the Corteza open-source low-code development platform, has been released! 💻✔️
Tags: release, update, lowcode, opensource
Published: 2022-12-22 10:13:20

Corteza is a 100% open-source low-code, rapid application development, business process and integration platform, developed and maintained by Planet Crust.

Check out the new features, changes and fixes of Corteza 2022.9.4: https://cortezaproject.org/corteza-2022-9-4-released/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tgo600d84tmbxe6arq7o.png)
[Rust] Place to store values
Tags: rust, beginners
Published: 2022-12-22 10:09:14

_Like other programing languages, to hold data we need some things called constant and variable._

## CONSTANT
We could not change value of a constant. Good choice to store value that is not changed over time.
```
const SECONDS_OF_ONE_MINUTE: i32 = 60;
const SECONDS_OF_ONE_HOUR: i32 = SECONDS_OF_ONE_MINUTE * 60;
const SECONDS_OF_ONE_DAY: i32 = SECONDS_OF_ONE_HOUR * 24;
```

## VARIABLE
1) **Immutable variable** (default and favor by Rust): 
After assigning a value to a variable by keyword let, we could not re-assign it. For example:
```
let var = 1;
println!("value: {var}");
var = 2;  // Will cause error at compile time.
println!("value: {var}");
```
At this point, it is quite similar to constant, right?
But there are 2 things different between immutable variable and constant:
- We can use _variable shadowing_ to change variable value. Just repeat the `let` keyword. But there is a small thing behind the scene. Rust creates another new variable with a new memory slot and with a same name. Not the original one. IMO, its functionality seems to run contrary to its name (immutable but changeable by somehow)
```
let var = 1;
println!("value: {var}");
let var = 2;  // Is OK
println!("value: {var}");
```
- Mutable was born to serve this purpose.

2) **Mutable variable**:
Just put `mut` keyword after `let`:
```
let mut name = "Unknown";
name = "Danh";
```
Easy huh?

Reference: https://doc.rust-lang.org/stable/book/ch03-01-variables-and-mutability.html
On naming things
Published: 2022-12-22 09:56:37

---
title: On naming things
published: true
date: 2022-12-22 09:49:41 UTC
tags: 
canonical_url: https://blog.daliborbelic.com/on-naming-things
---

How do you name things?

Naming things is one of the most challenging aspects of our work. Not only do good names make our code more **readable** and **maintainable** , but they also help us to better understand and reason about the problem we are trying to solve.

> There are only two hard things in Computer Science: cache invalidation and naming things.
> 
> -- Phil Karlton

In the domain of _developer experience_, naming things is especially important because it can significantly impact the usability and accessibility of the code. Good names make it easier for other developers (including ourselves in the future) to understand and work with the code, and they can also help to reduce confusion and frustration.

Its a matter of fact that by choosing descriptive, meaningful, and consistent names, appropriate for the code, developers can create **better software faster**!

Overall, taking the time to carefully choose names for our code is a crucial part of the development process, and it's something that requires a lot of thought and consideration.
How To Create a Magic Loading Animation Using Html & CSS Step By Step
Tags: html, css, javascript, tutorial
Published: 2022-12-22 09:25:22

{% youtube MK9vv8yLwBk %}

Hi guys, today we want to show How To Create a Magic Loading Animation Using Html & CSS Step By Step 

Please, if you love it, support us with Like & Subscribe.🙏🙏❤️❤️

Let's be friends and connect
📩 Subscribe:https://shorturl.at/BCTV8
📷 Instagram: https://www.instagram.com/soudemy/
📱 Behance: https://www.behance.net/soudemy
🐦 Twitter: https://twitter.com/SoudemyAcademy

In the comments, you can say what design you want so that we can prepare the video for you.