teleren/devto huggingface dataset:
How to enable ‘Address’ field data type and use it in code in Salesforce?
Published: 2024-01-02 10:24:21

In Salesforce, the Address data type provides a convenient way to store and manage location information within Salesforce objects. Enabling and populating this field through Apex code is a straightforward process that enhances the usability of your Salesforce records. Let’s explore how to achieve this in a few simple steps.

**To enable the ‘Address’ field data type and use it in your code, follow these steps:**

**1. Enable the Address field data type:**

Go to setup -> search ‘**User Interface**.’
On the ‘User Interface’ page, look under the Setup section.
Check the box that says ‘**Use custom address fields.**’
Save changes.
2. Address field Formulation:
When you’re dealing with the address, it’s broken down into following sub-fields.
- CountryCode
- StateCode
- City
- PostalCode
- Street
- Latitude
- Longitude
- GeocodeAccuracy

To access these sub-fields, you concatenate the field name with ‘__’ before each sub-field, and then add ‘__s’ at the end. For example, if the field name is ‘Address,’ the CountryCode sub-field is written as:

`Address__CountryCode__s`
_Similarly:_
`Address__CountryCode__s
Address__StateCode__s
Address__PostalCode__s
Address__City__s
Address__Street__s
Address__ GeocodeAccuracy__s`

By following these steps, you can seamlessly enable and leverage the Address data type in Salesforce, enhancing the accuracy and completeness of your location data within your custom objects.
BLOGGED: 2024 Tech Predictions
Tags: programming, ai
Published: 2024-01-02 10:20:57

It's that time of the year again, when I make predictions for the upcoming year. As has become my tradition now for nigh-on a decade, I will first go back over last years' predictions, to see how well I called it (and keep me honest), then wax prophetic on what I think the new year has to offer us.
Why Python as a Backend Programming Language - A short story
Tags: webdev, programming, beginners, python
Published: 2024-01-02 10:20:46

Once upon a time, in the realm of programming languages, there was a bustling kingdom known as the Tech World. Each kingdom had its own unique traits and specialties. In this world, Python emerged as a revered language, renowned for its prowess as a backend champion.

The tale of Python's ascension began with its simplicity and readability, traits that made it beloved among developers. Its syntax was clear and concise, akin to a language spoken by both humans and machines. Its versatility allowed it to gracefully handle a myriad of tasks, ranging from data analysis to web development.

As the kingdoms of Tech World sought stability and efficiency, Python became an emblem of reliability. Its extensive collection of libraries, including Django and Flask, served as mighty tools for building robust web applications. The knights of Python, armed with frameworks and packages, embarked on quests to create scalable, secure, and responsive backends.

Python’s strength lay not just in its power, but also in its vast community of supporters. Developers, scholars, and wizards from all corners of Tech World congregated, sharing knowledge and best practices. The Pythonic community was welcoming, guiding newcomers and seasoned veterans alike.

The kingdoms recognized Python's ability to integrate seamlessly with databases, facilitate rapid development, and maintain clean, maintainable code. Its adaptability to various paradigms and its agility in handling complex tasks made it an invaluable asset.

Soon, Python was chosen by many kingdoms to power their backends. It handled user requests swiftly, processed data with finesse, and managed the kingdoms' digital domains efficiently. Its presence became a symbol of reliability, fostering innovation and growth across the Tech World.

And so, Python's story as a backend language spread far and wide, earning respect and admiration. Its legacy endured as the backbone of many kingdoms' digital realms, showcasing the prowess and adaptability that made it a beloved language in the ever-evolving landscape of technology.
How to create Custom Hooks in React.js
Published: 2024-01-02 10:18:33

Creating a custom hook in React is a way to reuse stateful logic between components. A custom hook is a JavaScript function that starts with the word "use" and may call other hooks. Here's a basic example of how you can create a custom hook:

```jsx
import { useState, useEffect } from 'react';

// Custom hook example
const useCustomHook = (initialValue) => {
  // State
  const [value, setValue] = useState(initialValue);

  // Effect (optional)
  useEffect(() => {
    // Your logic here, if needed
    console.log('Custom hook effect triggered');

    // Cleanup (if needed)
    return () => {
      console.log('Custom hook cleanup');
    };
  }, [value]); // Dependencies for the effect

  // Custom functions or logic
  const increment = () => {
    setValue(value + 1);
  };

  const decrement = () => {
    setValue(value - 1);
  };

  // Return whatever you want to expose to the component
  return {
    value,
    increment,
    decrement,
  };
};

// Example usage in a component
const MyComponent = () => {
  // Use the custom hook
  const { value, increment, decrement } = useCustomHook(0);

  return (
    <div>
      <p>Value: {value}</p>
      <button onClick={increment}>Increment</button>
      <button onClick={decrement}>Decrement</button>
    </div>
  );
};
```

In this example, `useCustomHook` is a custom hook that manages a state value and provides functions to increment and decrement that value. The `useEffect` hook is optional and can be used for any side effects or clean-up logic you need.

Remember that custom hooks can call other hooks, allowing you to compose and reuse logic across components. When creating a custom hook, it's a good practice to start its name with "use" to follow the convention established by React.
Hugo, Tailwind CSS and daisyUI starter
Published: 2024-01-02 10:02:58

---
title: Hugo, Tailwind CSS and daisyUI starter
published: true
description: Set up so that you only have to run npm start to let both Tailwind CLI and Hugo watch your files.
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/licajl88of7s0t3vmmen.png
# Use a ratio of 100:42 for best results.
# published_at: 2024-01-02 09:50 +0000
---
I love [Hugo](https://gohugo.io/installation/). I use Hugo for basically all websites that are static. I came across [daisyUI](https://daisyui.com/docs/install/) recently and could not believe how easy it was to integrate to a project that already supports [Tailwind CSS](https://tailwindcss.com). It comes with tones of themes too. 

The starter uses [concurrently](https://www.npmjs.com/package/concurrently) to run both [Hugo](https://gohugo.io/installation/) and [Tailwind CLI](https://tailwindcss.com/docs/installation) in one terminal.

## Getting started

> You need Hugo installed and available. Test [Hugo](https://gohugo.io/installation/) works by running `hugo version`
> You also need [Node.js and NPM](https://nodejs.org/en) installed. Confirm these are installed by running `node --version && npm --version`

1. Clone this repo: [https://github.com/CkCreative/hugo-tailwind-daisyui](https://github.com/CkCreative/hugo-tailwind-daisyui) and run `npm install`
2. Run `npm start` and visit `localhost:1313`

Enjoy :rocket:
Maintenance website
Tags: webdev, react, discuss
Published: 2024-01-02 09:58:46

Hi everyone, I'm building a web application that is integrated with the game. BE and FE are deployed in two different AWS servers. 

I have a question in case my BE server is down because for some reason I can not predict so I want to display the maintenance page to notify the user that my application is upgrading or sort of that. How should I implement this?

Thank you very much for any support!!!
ER (Entity Relationship) Diagram in DBMS
Published: 2024-01-02 09:48:32

Introduction to **[ER (Entity Relationship)](https://www.javatpoint.com/dbms-er-model-concept)** Diagram in DBMS
The Entity Relational Model is a model for identifying entities to be represented in the database and representation of how those entities are related. The ER data model specifies enterprise schema that represents the overall logical structure of a database graphically. 
The Entity Relationship Diagram explains the relationship among the entities present in the database. ER models are used to model real-world objects like a person, a car, or a company and the relation between these real-world objects. In short, the ER Diagram is the structural format of the database.

The Essential Role of **ER Diagrams** in Database Success
Ever wondered how databases organize information? Enter the ER diagram, your visual map to understanding data relationships. Imagine it as a blueprint, showing how real-world objects like customers, products, and orders connect in a database. No coding required!
These diagrams are like magic tricks for beginners: simple to understand and draw, even if you're not a tech whiz. They make it easy to see how data flows and avoid messy database headaches later. Think of it like building with Legos before committing to bricks and mortar.
But the benefits go beyond child's play. ER diagrams are a standard language for visualizing data, letting everyone from developers to designers speak the same language. This clarity boosts communication and ensures everyone's on the same page when building or managing databases.
 
Components of ER Diagram
Entity
Attributes
Relationship Type and Relationship Set
 How to Draw ER Diagram?
Identify Entities:
Start by pinpointing the key objects or concepts your database will store. These are your entities.
Represent each entity with a rectangle.
Define Attributes:
Attributes describe the characteristics or properties of each entity.
List attributes within the entity rectangle, using ovals for clarity:
Establish Relationships:
Relationships show how entities interact with each other.
Use diamonds to represent relationships, connecting them to entities with lines.

Add Cardinality:
Cardinality indicates the number of occurrences of one entity that can be associated with another.
Use symbols like "1" for one, "M" for many, and "0" for zero:
Refine and Review:
Ensure your diagram accurately reflects the data structure and relationships.
Iterate as needed to clarify any complexities.
Here are some additional tips:
Use clear and concise labels for entities and attributes.
Organize the diagram logically for easy readability.
Consider using colors or patterns to visually differentiate entities and relationships.
Employ a diagramming tool to simplify the process and produce professional-looking diagrams.
Popular tools for drawing ER diagrams include:
Lucidchart
Microsoft Visio
Draw.io
Gliffy
Creately
Extend the Default Ubuntu LVM Partition
Tags: ubuntu, partition, extend
Published: 2024-01-02 09:42:26

**1. Check the free space:**
```sh
sudo vgdisplay
```
Pay attention to `Free  PE / Size` that is the available free space.

**2. Check partitions**
```sh
df -h
```
The default partition will be something like `/dev/mapper/ubuntu--vg-ubuntu--lv`, note the current Available Space.

**3. Extend**
```sh
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
```

```sh
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
```

Check extended size:

```sh
df -h
```
How to assign shortcut to a button in fxml
Tags: javafx, java, fxml
Published: 2024-01-02 09:40:29

I wanted to assign a button in fxml a keyboard shortcut. below is the example how to do that.
```xml
<Button mnemonicParsing="true" text="_Click Me">
```
Now that button will have underscore on that "C" and user can call it automatically with key combination of ALT+C, The form that button should have the focus.
Example: https://github.com/ozkanpakdil/swaggerific/blob/main/src/main/resources/com/mascix/swaggerific/tab-request.fxml#L29
HOW TO FIND OUT WIFI PASSWORD USING COMMAND PROMPT
Published: 2024-01-02 09:30:42


All wifi passwords of successfully connected devices are stored on your PC, just incase you have a need to view them.
To view the passwords of previous devices that has been connected to your PC:
- search for CMD(command prompt) on your windows search bar and then run as administrator

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


- then input "netsh wlan show profile" in the command prompt and a profile of successfully connected devices will come up

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


- then input "netsh wlan export profile folder=C:\ key=clear" in the command prompt and the file of all the wifi profiles will be saved on your PC

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


- go to your local disk and select whichever wifi profile you'd like to view and open it

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


- you'd see the password in the shared-key key-material region.
You're welcome.

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



FYI- This is not hacking, it's basic knowledge.
I created a Next.js SAAS Toolkit
Tags: webdev, javascript, nextjs, saas
Published: 2024-01-02 09:28:13

Hey Everyone,

I have been working with next.js for the last 2 years and I decided to create [Indiespace](https://www.indiespace.store/) which is a SAAS toolkit to help you launch your next project without getting overwhelmed by setting everything up from scratch.

**Tech Stack:**

- Next.js
- Tailwind CSS
- Shadcn UI
- Next Auth
- Stripe
- Resend

**What it includes:**

- 2 waitlist pages
- 3 landing pages
- SAAS boilerplate

For the boilerplate, I have also set up the [docs](https://docs.indiespace.store/) for getting started with the boilerplate. Do check it out and let me know if there is I can add or improve.
How To Install Lemon Rat In Termux 2024
Tags: termux, lemonrat, linux, rat
Published: 2024-01-02 09:23:23

## Lemon Rat


## TERMUX


Termux is an Android terminal emulator which is based on linux environment.

You can perform many attacks ( ex - openport attack , ddos , mitmf , sql injection , etc )

Termux support both rooted and unrooted devices

You can termux as a root to perform extra attacks which requires root access .

## Usage

Open the app , you will see graphical interface 

Click on install packages , it will download some basic packages ( make sure you are connected with internet )

Now you can use termux

Before using it ( make sure you are connected with internet )

If u like my work , just tap on this and buy me a coffee
Buy Me A Coffee

## what can you do with termux ?


1. we can perform different attacks 

2. Pentesting

3. Vulnerability Scanning

4. Ethical Hacking

We can do most of things using termux 

## Necessary Post

Lemon : [Install](https://www.h4ck3r.me/how-to-install-lemon-in-termux-2024/)
Apkmod : [Install](https://www.h4ck3r.me/how-to-install-apkmod-in-termux/)

## Steps

Update and Upgrade all packages first to avoid unneccesary errors

`apt update && apt upgrade -y`

Install some important packages

`pkg install git`

Clone my tool

`git clone https://github.com/h4ck3r0/Lemon-termux`

Go to tool directory

`cd Lemon-termux`

Run the tool

`bash lemon.sh -i `

Now You Have Installed Successfully

## [Read More](https://www.h4ck3r.me/how-to-install-lemon-in-termux-2024/)


## Fix Module Error

`cd $PREFIX/share/lemon/ && apt install yarn && yarn add expressjs`

{% embed https://youtu.be/72IN-wRnmLo %}.

A cloud based remote android managment suite, powered by NodeJS

## Features

GPS Logging
Microphone Recording
View Contacts
SMS Logs
Send SMS
Call Logs
View Installed Apps
View Stub Permissions
Live Clipboard Logging
Live Notification Logging
View WiFi Networks (logs previously seen)
File Explorer & Downloader
Command Queuing
Built In APK Builder

Type lemon to run
How to Install and Configure Git with Aliases in Ubuntu 22
Tags: git, ubuntu
Published: 2024-01-02 09:18:52

This guide will guide you through the process of installing and configuring [Git](https://git-scm.com/) with aliases in Ubuntu 22.04. Git is an essential tool for version control, and aliases can greatly enhance your workflow by providing shorthand commands for common Git operations. Let's get started! 😄

## Step 1: Installing Git

Let's install Git on your Ubuntu 22.04 system. Open your terminal and follow these steps:

1.  Update your package list by running the command:

```bash
sudo apt update
```

2.  Install Git using the following command:

```bash
sudo apt install git
```

Awesome! Now that you have Git installed, let's move on to configuring some helpful aliases.

## Step 2: Configuring Git Aliases

Aliases allow us to create shortcuts for frequently used Git commands, making our workflow smoother and more efficient. To configure aliases, open your terminal and follow these steps:

1.  Set up some basic aliases recommended by the [Git documentation](https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases) by executing these commands:

```sh
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.last 'log -1 HEAD'
```

These aliases will be useful when you need to perform common operations such as checking out branches, creating branches, committing changes, checking the status, and viewing the last commit.

2.  Additionally, here's a personal favorite alias that I find incredibly useful. It deletes all local branches that have already been merged into the currently checked out branch.

Add this to your Git configuration by running `git config -e --global`

```bash
[alias]
    cleanup = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 -r git branch -d"
```

This alias helps keep your local branches clean and tidy, especially when you've been working on a project for a while and have accumulated multiple branches.

With these aliases set up, you're on your way to becoming a Git power user! 🎉

## Step 3: Setting Up Git with GitHub

If you're not already using GitHub, I highly recommend it. GitHub is the most used platform for collaboration and code hosting. To set up Git with GitHub, follow the official GitHub documentation: [Set Up Git with GitHub](https://docs.github.com/en/get-started/quickstart/set-up-git).

By integrating Git with GitHub, you'll get access to a ton of features for your modern web development projects.

## Conclusion

Congrats on installing and configuring Git with aliases in Ubuntu 22.04! 🎉 With aliases you can type less and improve your productivity as a web developer. Remember to refer to this guide for future installations and configurations. Happy coding! ✨
10 Benefits of Outsourcing Data Management Services
Published: 2024-01-02 09:17:35

Outsourcing [data management services](https://www.invensis.net/services/outsource-data-management) can offer numerous benefits to businesses of all sizes. Here are ten advantages:

**Cost Savings:** 
Outsourcing data management often proves more cost-effective than maintaining an in-house team. Companies can avoid expenses related to infrastructure, staffing, training, and software, paying only for the services they need.

**Expertise and Specialization:** 
Outsourcing provides access to a pool of skilled professionals and specialized expertise. Data management service providers often have teams with diverse skill sets and experience in handling various aspects of data, ensuring quality results.

**Focus on Core Business Activities: **
Delegating data management tasks allows businesses to concentrate on their core competencies and strategic initiatives. It frees up internal resources, enabling teams to focus on crucial business operations and innovation.

**Scalability and Flexibility:** 
Outsourcing data management services offers scalability, allowing businesses to adjust resources based on fluctuating needs. This flexibility is beneficial during busy periods or when specific projects require additional support.

**Enhanced Data Security and Compliance:** 
Reputable data management service providers adhere to stringent security measures and compliance standards. This reduces the risk of data breaches and ensures that sensitive information is handled and protected in accordance with regulations.

**Access to Advanced Technology:** 
Outsourcing partners often have access to the latest data management tools, technologies, and software. Businesses benefit from using cutting-edge solutions without the upfront investment in acquiring and maintaining such technology.

**Improved Efficiency and Quality:** 
Outsourcing data management to specialized providers can result in improved efficiency, accuracy, and quality of data handling. Service providers with streamlined processes and expertise can deliver superior results in less time.

**24/7 Operations and Support:** 
Many outsourcing firms operate round the clock, providing services and support beyond regular business hours. This ensures continuity and timely response to data management needs, irrespective of time zones.

**Risk Mitigation: **
Partnering with an outsourcing provider spreads the risk associated with data management tasks. Businesses can rely on the provider's expertise to handle potential risks and challenges, minimizing their impact on operations.

**Business Continuity and Disaster Recovery:** 
Outsourcing partners often have robust backup systems and disaster recovery plans in place. This ensures continuity of operations even in the face of unexpected disruptions or emergencies.

These benefits collectively contribute to increased efficiency, reduced costs, improved data accuracy, and a competitive edge for businesses leveraging outsourced [data management services](https://www.invensis.net/services/outsource-data-management).
Plug-ins that automatically generate styles based on class names
Published: 2024-01-02 09:13:47

This is a plugin that can automatically generate style code according to the style written directly in the class. There is no need to declare the class name in the tag and then go to a specific style area to write the style code, as in traditional development.
However, you need to follow the plugin's authoring rules to write class names that carry styled content. Please click the following link to see the specific use:
[vite-plugin-vue-ecss](https://www.npmjs.com/package/vite-plugin-vue-ecss)