teleren/devto huggingface dataset:
What are you learning about this weekend? 🧠
Tags: codenewbie, learning, beginners, discuss
Published: 2024-01-13 08:00:00

Hey hey!

What's everybody up to this weekend? Learning anything new?

Whether you're sharpening your [JS](https://dev.to/t/javascript) skills, making PRs to [your OSS repo of choice](https://github.com/forem/forem) 😉, sprucing up your portfolio, or [writing a new post](https://dev.to/new) here on DEV, we'd like to hear about it.

Also, totally cool if you're just taking the weekend to relax and unwind. Don't forget to give yourself that time.

![A cartoon person wearing a hijab kicks back on a couch shoeless while looking at their phone. The word "relax" appears above them.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/isi4ishik9awbgy6cwrm.gif)
AWS: Exploring CloudHSM
Tags: aws, cloud
Published: 2024-01-13 07:57:09

Key management is a critical aspect of securing data in the cloud, and AWS provides various services to help users manage their encryption keys effectively. CloudHSM (Hardware Security Module) is one such service offered by AWS that enhances key management security. Here's an overview of key points related to key management in AWS, focusing on CloudHSM:


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



1. AWS Key Management Service (KMS): AWS KMS is a fully managed service that makes it easy to create and control cryptographic keys used to encrypt data. It integrates with many AWS services and provides a centralized way to manage keys securely.

2. CloudHSM Overview: CloudHSM is a hardware-based key management service that provides dedicated Hardware Security Modules (HSMs) for cryptographic operations. CloudHSMs are physical devices designed to securely generate, store, and manage cryptographic keys.

3. Benefits of CloudHSM:

**- Hardware Isolation: **CloudHSM offers dedicated hardware for key storage, providing an additional layer of security compared to software-based solutions.

**- Performance: **HSMs are designed for high-performance cryptographic operations, making them suitable for applications with demanding performance requirements.

**- Compliance:** CloudHSM can help meet regulatory requirements for key management and data protection.

4. Integration with AWS Services: CloudHSM integrates with various AWS services, allowing you to use HSMs for key management in conjunction with other AWS offerings. For example, you can use CloudHSM with AWS KMS or directly with services like Amazon RDS for encryption.

5. Use Cases:

**- High-Security Requirements: **Organizations with stringent security requirements, such as those in highly regulated industries, may opt for CloudHSM for enhanced key protection.

**-Custom Applications:** CloudHSM is suitable for custom applications that require secure key storage and cryptographic operations.

6. Management and Operations:

**- Access Control: **CloudHSM provides access controls to restrict who can manage and use the HSMs.

**- Monitoring: **AWS CloudTrail can be used to monitor CloudHSM API activity, providing visibility into key management operations.

**- Backup and Restore:** CloudHSM supports key backup and restore operations to prevent data loss.

7. Cost Considerations: CloudHSM involves additional costs compared to software-based key management solutions, as it provides dedicated hardware. Users should assess their specific requirements and budget considerations.

8. Best Practices: Follow AWS best practices for key management, such as rotating keys regularly, using strong access controls, and monitoring key usage.
How to Add a Dynamic Child List to Parent in Apex Class || Trigger using map
Tags: apex, salesforce, triggers, 2024
Published: 2024-01-13 07:37:23

Explore the Most Essential Scenario Every Developer Should Master!

This blog was uploaded to blogger.com by me.
[read it here](https://salesforce-strategies.blogspot.com/2024/01/how-to-add-dynamic-child-list-to-parent.html)
File Locking (and the JVM)
Published: 2024-01-12 09:34:31


I originally posted this on 2010/07/23 on my personal blog.

---

File locks control access to a file or a range of bytes within a file.  This is necessary in situations where multiple simultaneously executing programs need to modify the same file.

File locking functionalities are provided within the NIO API, or more specifically in the `java.nio.channels` package.

The two most important classes for file locking are `java.nio.channels.FileChannel` and `java.nio.channels.FileLock`.

Several methods provide file locking:

    

```
FileLock FileChannel.lock()
FileLock FileChannel.lock(long position, long size, boolean shared)
FileLock FileChannel.tryLock()
FileLock FileChannel.tryLock(long position, long size, boolean shared)
```

`lock()` acquires an exclusive lock on the entire file, and blocks until the lock is acquired, `tryLock()` is identical but returns `null` if the lock cannot be acquired.
The methods with parameters lock only regions of a file, the shared parameter is `true` for a shared lock and `false` for an exclusive lock.

A shared lock prevents other concurrently-running programs from acquiring an overlapping exclusive lock, but does allow them to acquire overlapping shared locks. An exclusive lock prevents other programs from acquiring an overlapping lock of either type.

Once you don’t need the lock anymore, release it with `FileLock.release()`.

That seems to be a great solution, but there are limitations, related to the operating system the JVM runs on:

- Some systems only provide advisory file locking: applications that don’t acquire locks may still write the file.
- Some systems make it impossible to lock a file and map it into memory.  On those, you won’t be able to use a `MappedByteBuffer` to access file.
- File locks are held by the Java Virtual Machine, not by individual programs. Two programs in the same JVM won’t be able to simultaneously acquire a lock on the same file.
- Opening multiple channels on the same locked file should be avoided, as on some systems, closing a channel on a file releases all locks on the file held by the same JVM.
- On networked file systems, file locking should be avoided – or at least, relying on file locking mechanisms should be avoided, as it’s dependent on the networked file system implementation.
🟨 Daily Code 37 | The Document Object Model (DOM) 2
Tags: javascript, beginners, daily, dom
Published: 2024-01-13 06:46:20

Today I’m continued with the DOM chapter in the [📺 SuperSimpleDev JavaScript Tutorial on YouTube](https://www.youtube.com/watch?v=SBmSRK3feww&t=21093s). Lets go!! 🔥👨‍💻🟨

# My Code

If there are several buttons but I only want to edit some, I can use classes.

💡 Useful: the naming convention for these classes is ‘js-…’ if they are used for JavaScript

```html
<body>
    <button>This is button 1</button>
    <button class="js-button">This is button 2</button> 
    <script>
        console.log(document.querySelector('button').innerHTML);
        document.querySelector('button').innerHTML = 'Changed 1';

        const buttonElement = document.querySelector('.js-button'); // classes for js are usually named 'js-...'
        console.log(buttonElement);
    </script>
</body>
```

Now here is a button that can change back and forth with JavaScript

```html
<body>
    <p>YouTube Subscribe Button</p>
    <button onclick="
        const buttonElement = document.querySelector('.js-subscribe-button');
    
        if (buttonElement.innerText === 'Subscribe')  {
            buttonElement.innerHTML = 'Subscribed'
        } else {
            buttonElement.innerHTML = 'Subscribe'
        }
    " class="js-subscribe-button">Subscribe</button>
</body>
```

But this is not very clean since HTML and JS is mixed up, so let’s separate that out with a function. (to my understanding this is still not separated as much as it should be, but perhaps that comes up later in the course)

```html
<body>
    <p>YouTube Subscribe Button</p>
    <button onclick="
    subscribe();
    " class="js-subscribe-button">Subscribe</button>
    <script>
        function subscribe() {
            const buttonElement = document.querySelector('.js-subscribe-button');
            if (buttonElement.innerText === 'Subscribe') {
                buttonElement.innerHTML = 'Subscribed'
            } else {
                buttonElement.innerHTML = 'Subscribe'
            }
        }

    </script>
</body>
```

Alright that’s it again for today. Tomorrow I’ll upgrade the Rock Paper Scissors game from a few days ago with the newly learned code 😄
Buy Premium Quality Ram Mandir Statue Online – theartarium
Tags: product
Published: 2024-01-13 06:40:02

[Description
](url)Ram Mandir Figurine is a wonderful replica of the majestic Ram Mandir of Ayodhya, dedicated to Lord Ram. It is perfectly designed to bring the essence of divine grandeur into your home. Ram Mandir serves as a constant reminder of the values and teachings associated with Lord Ram. It’s truly a masterpiece radiating the spiritual aura and architectural glory of this iconic temple.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyc6y22ytpk6dn5cgwb3.png)
Learning how to type Bopomofo
Published: 2024-01-13 06:37:46

I published my first typing practicing site.

Have you ever seen characters like these ㄅㄆㄇㄈ called Bopomofo?

Well, this is a unique in Taiwan and I have been thinking to learn Chinese with these for a few years.

However there are not so many site I can learn typing Bopomofo, So I built it by my self.


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

The page is pretty simple, but it already has complete typing interface of them.

Try to play around!
Fence Company Broken Arrow
Published: 2024-01-13 06:32:29


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oip2voacz8mlngih5zzy.jpg)
Welcome to Fence Company Broken Arrow, your trusted ally for premium fencing solutions in Broken Arrow, Oklahoma. Committed to excellence in craftsmanship and customer contentment, we specialize in the design, installation, and upkeep of a diverse range of fences tailored to your specific requirements.

Whether you seek privacy, security, or an enhanced property aesthetic, our team of proficient experts is devoted to providing enduring and visually appealing fencing solutions. From timeless wooden fences to contemporary vinyl alternatives, we present a varied array of materials and styles that harmonize with your residence or business.

At Fence Company Broken Arrow, our hallmark is meticulous attention to detail and personalized service. Our seasoned team collaborates closely with clients to grasp their preferences and goals, ensuring the creation of the ideal fence that not only meets but surpasses expectations. With years of expertise, we have earned the reputation as the foremost fencing company in Broken Arrow, recognized for reliability, integrity, and competitive pricing. Elevate your property with a Fence Company Broken Arrow installation – where quality seamlessly merges with affordability.

Fence Company Broken Arrow
22902 E 73rd St S, Broken Arrow, OK 74014, USA
(539) 766-8439
[](https://fencecompanybrokenarrow.com)

https://www.facebook.com/FenceCompanyBrokenArrow
https://www.youtube.com/@fencecompanybrokenarrow
https://twitter.com/FenceA90181
https://www.pinterest.com/fencecompanybrokenarrow/
https://www.linkedin.com/in/fencecompanybrokenarrow/
https://www.instagram.com/fencecompanybroken/
https://www.reddit.com/user/fencecompanybroken


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6gp5w2wqa070y6q7bii.jpg)
How to create an API in Next.js
Tags: node, javascript, api, nextjs
Published: 2024-01-13 06:26:21

Are you interested in building your own APIs?

Put Node.js aside. These days, with new technology, creating and serving APIs is much easier.

9min read. 

This blog was uploaded to blogger.com by me.
[read it here](https://sudip-karmakar.blogspot.com/2024/01/how-to-create-api-in-nextjs.html)
Mastering Overlays in React Native: Android Implementation with Java
Tags: reactnative, android, overlay, java
Published: 2024-01-13 06:21:10

While React Native doesn't natively support overlays over other apps, we can achieve this functionality by delving into the native Android realm with Java. Embark on this journey as we explore the essential steps and code examples

## Understanding the Key Components:

- **Native Modules**: These act as bridges between React Native's JavaScript realm and the native Android environment, enabling JavaScript code to interact with native features.
- **WindowManager**: This Android class grants us the ability to create and manage system-level windows, including those that sit atop other apps.
- **Permissions**: Android requires explicit user permission (SYSTEM_ALERT_WINDOW) to display overlays, ensuring respect for user privacy and security.

##Creating a Native Module:

1. Set up the Module:

```
// MyReactNativeOverlayModule.java
package com.myreactnativeapp;

import android.view.WindowManager;

public class MyReactNativeOverlayModule extends ReactContextBaseJavaModule {
    private WindowManager windowManager;

    public MyReactNativeOverlayModule(ReactApplicationContext reactContext) {
        super(reactContext);
        windowManager = (WindowManager) reactContext.getSystemService(Context.WINDOW_SERVICE);
    }

    // ... (methods for creating and managing overlays)
}
```
2. Request Permissions:

```
// Request overlay permission
if (!Settings.canDrawOverlays(getReactApplicationContext())) {
    Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
            Uri.parse("package:" + getReactApplicationContext().getPackageName()));
    startActivityForResult(intent, OVERLAY_PERMISSION_REQUEST_CODE);
}
```
3. Create and Display Overlay:

```
public void createOverlay(ReadableMap options) {
    // Create a layout for the overlay content
    View overlayView = LayoutInflater.from(getReactApplicationContext())
            .inflate(R.layout.overlay_layout, null);

    // Configure overlay settings (size, position, etc.)
    WindowManager.LayoutParams params = new WindowManager.LayoutParams(
            ... // Set layout parameters here
    );

    // Add the overlay to the WindowManager
    windowManager.addView(overlayView, params);
}
```
##Calling from JavaScript:

```
import { NativeModules } from 'react-native';

const { MyReactNativeOverlayModule } = NativeModules;

// Example usage:
MyReactNativeOverlayModule.createOverlay({
    // Pass options for overlay customization
});
```
##Remember:

- Handle Android version-specific variations in permission management and overlay behavior.
- Optimize overlay usage for performance and battery life.
- Design overlays thoughtfully to enhance user experience and avoid intrusiveness.
##Harness the Power of Overlays:

- Floating action buttons
- Chat heads
- In-app guidance
- Accessibility features
- Interactive tutorials

**Embrace the potential of overlays and elevate your React Native apps to new heights of engagement and innovation!**
Steps to Configure Postgres in Vercel with your Next.js project
Tags: nextjs, vercel, javascript, postgressql
Published: 2024-01-13 06:19:46

5min read.

This blog was uploaded to blogger.com by me.
[read it here](https://sudip-karmakar.blogspot.com/2024/01/steps-to-configure-postgres-in-vercel.html)
Bulk Sms Service in delhi
Tags: designhost, bulksmsservice, bulksms
Published: 2024-01-13 06:12:32

[DesignHost](https://www.designhost.in/) is the best Bulk SMS in Delhi, offering unparalleled services tailored to your communication needs. With our state-of-the-art platform, businesses can execute targeted and cost-effective SMS campaigns. As your trusted Bulk SMS in Delhi, we prioritize delivery speed, open rates, and user-friendly interfaces. Utilize our services to amplify your brand presence and connect with your audience on a personal level. At DesignHost, we go beyond being a Bulk SMS provider; we are your strategic partner in effective communication, ensuring your messages resonate and drive engagement. Elevate your brand's communication game with DesignHost – your trusted Bulk SMS in Delhi. Experience the synergy of technology and tailored solutions, empowering your messages to make a lasting impact.
#designhost #bulksmsservice #bulksms
Port Scan Tools
Tags: ibbus, port, scan, vulnerability
Published: 2024-01-13 06:10:55


**Nmap: Network Mapper**

Nmap is now one of the core tools used by network administrators to map their networks. The program can be used to find live hosts on a network, perform port scanning, ping sweeps, OS detection, and version detection.

NMAP [https://github.com/nmap/nmap](url)

**MASSCAN: Mass IP port scanner**

This is an Internet-scale port scanner. It can scan the entire Internet in under 5 minutes, transmitting 10 million packets per second, from a single machine.

MASSCAN [https://github.com/robertdavidgraham/masscan](url)

**RustScan**

The Modern Port Scanner. Find ports quickly (3 seconds at its fastest). Run scripts through our scripting engine (Python, Lua, Shell supported).

RustScan [https://github.com/RustScan/RustScan](url)

**Naabu**

Naabu is a port scanning tool written in Go that allows you to enumerate valid ports for hosts in a fast and reliable manner.

It is a really simple tool that does fast SYN/CONNECT/UDP scans on the host/list of hosts and lists all ports that return a reply.

Nabu [https://github.com/projectdiscovery/naabu](url)

**Sandmap**

Sandman is a tool supporting network and system reconnaissance using the massive Nmap engine. It provides a user-friendly interface, automates and speeds up scanning and allows you to easily use many advanced scanning techniques.

SandMap [https://github.com/trimstray/sandmap](url)

**ScanCannon**

A POSIX-compliant BASH script for efficient reconnaissance and attack prep against massive edge networks.

ScanCannon [https://github.com/johnnyxmas/ScanCannon](url)

**Scrying**

Collecting RDP, web and VNC screenshots all in one place.

Scrying [https://github.com/nccgroup/scrying](url)

**Depix**

Depix is a PoC for a technique to recover plaintext from pixelized screenshots.

Depix [https://github.com/spipm/Depix](url)

**Screenshoteer**

Makes web screenshots and mobile emulations from the command line.

Screenshoteer [https://github.com/vladocar/screenshoteer](url)

**Eyeballer**

Eyeballer is an AI-powered, open source tool designed to help penetration testers assess large-scale external perimeters.

Eyeballer [https://github.com/BishopFox/eyeballer](url)
Terraform import block to import AWS route53
Tags: terraform, aws, route53
Published: 2024-01-13 05:53:11

---
title: Terraform import block to import AWS route53
published: true
description: This memo focuses on the specific Terraform import block used for incorporating an AWS Route53 resource into a local file.
tags: terraform, AWS, route53
---

## Write import block

Define import block to import exist route53 resource.

```
// import.tf
import {
  to = aws_route53_record.example
  id = "{hostedZoneId}_{recordName}_{Type}"
}
```

## Run command

Run tf command to output config to generated_resources.tf

```
terraform plan -generate-config-out=generated_resources.tf
```

reference:

[Terraform generating-configuration](https://developer.hashicorp.com/terraform/language/import/generating-configuration)
𝐖𝐡𝐚𝐭 𝐢𝐬 𝐰𝐰𝐰? 𝐖𝐡𝐚𝐭 𝐢𝐬 𝐰𝐰𝐰𝟐 & 𝐰𝐰𝐰𝟑? 𝐈𝐧𝐭𝐞𝐫𝐧𝐞𝐭, 𝐖𝐖𝐖, 𝐁𝐫𝐨𝐰𝐬𝐞𝐫
Tags: webdev, internet, programming, javascript
Published: 2024-01-13 05:38:25



=>𝐈𝐧𝐭𝐞𝐫𝐧𝐞𝐭:

𝐀𝐧𝐚𝐥𝐨𝐠𝐲: The entire marketplace where different shops, including the cake shop, exist.

𝐄𝐱𝐩𝐥𝐚𝐧𝐚𝐭𝐢𝐨𝐧: In the context of the Internet, think of it as the global network connecting computers, servers, and devices worldwide. It's the infrastructure that enables communication and data exchange between various entities.



=>𝐖𝐨𝐫𝐥𝐝 𝐖𝐢𝐝𝐞 𝐖𝐞𝐛 (𝐖𝐖𝐖):

𝐀𝐧𝐚𝐥𝐨𝐠𝐲: The cake shop within the marketplace.

𝐄𝐱𝐩𝐥𝐚𝐧𝐚𝐭𝐢𝐨𝐧: The World Wide Web is a specific service on the Internet. It's like a collection of interconnected documents and multimedia content (cakes and products) that can be accessed through web browsers. Each website has its own unique address (URL), similar to how the cake shop has its specific location in the marketplace.



=>𝐖𝐞𝐛 𝐁𝐫𝐨𝐰𝐬𝐞𝐫:

𝐀𝐧𝐚𝐥𝐨𝐠𝐲: The pathway or route customers take to navigate through the marketplace and reach the cake shop.

𝐄𝐱𝐩𝐥𝐚𝐧𝐚𝐭𝐢𝐨𝐧: A web browser (e.g., Chrome, Firefox, Safari) is the software tool that allows users to access and explore the content available on the World Wide Web. It acts as the means by which users navigate the Internet and visit specific websites.



Recently, I visited the HnM website(for window shopping, paise nhi h, refer kr do for job 😉 ) and got to see their URL has www2, I was like what?how?why? then I read about that and got to know



The terms "www2" and "www3" are sometimes used in URLs to identify specific web servers within a larger domain. However, this usage is not standardized, and its meaning can vary depending on the organization or website owner.

Here are a couple of possible explanations for the use of "www2" and "www3":

𝗟𝗼𝗮𝗱 𝗕𝗮𝗹𝗮𝗻𝗰𝗶𝗻𝗴:

In some cases, websites use multiple servers to distribute the load and improve performance. The "www2" or "www3" subdomains might be used to direct traffic to different servers for load balancing purposes.

𝐒𝐮𝐛𝐝𝐨𝐦𝐚𝐢𝐧𝐬 𝐟𝐨𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜 𝐒𝐞𝐫𝐯𝐢𝐜𝐞𝐬:

Large organizations or websites with various services may use different subdomains to host specific services. For example, "www" could be the main website, while "www2" and "www3" might host additional services or content.



Like this is their www website :

 www .hm. com/ entrance. ahtml

This is their Asian websites:

www2. hm. com/ en_in/ index.html



(given indentations in URL to avoid having HnM links on website, they can pay then will add 😉 ) 

Follow #rounitsinha for more





#frontend #backend #webdevelopment #internet #frontenddevelopment #backenddevelopment 

#l2eseries

#l2eseries
soco88work
Published: 2024-01-13 05:28:28

Soco88 ⭐️ Soco88 work ⭐️ Đăng Ký Tài Khoản Soco88 ( tặng 88k )

"Soco88 là trang web chính thức của Soco88, đứng đầu trong việc cung cấp một loạt các trò chơi cá cược trực tuyến đa dạng, với tỷ lệ thanh toán ấn tượng và hàng nghìn phần thưởng hấp dẫn. Cam kết mang đến cho người chơi những trải nghiệm đặt cược tuyệt vời nhất, Soco88 hứa hẹn sẽ là điểm đến lý tưởng. Đừng bỏ lỡ cơ hội, hãy nhấp vào liên kết đăng ký ngay để tham gia tại trang web cá cược chính thức này."

#Soco88#Soco88work#Soco88tang88k#Soco88casino

Địa chỉ: 28 P. Chùa Láng, Láng Thượng, Đống Đa, Hà Nội, Việt Nam
Số điện thoại:  09631147591
Email: Soco88work@gmail.com           

https://soco88.work/
https://twitter.com/soco88work2128
https://www.pinterest.ph/soco88work/
https://500px.com/p/soco88work?view=photos
https://www.youtube.com/@soco88work
https://www.reddit.com/user/Soco88work
https://www.tumblr.com/soco88work
https://www.twitch.tv/soco88work
https://issuu.com/soco88work
https://dribbble.com/soco88work/about
https://www.deviantart.com/soco88work
https://ko-fi.com/soco88work
https://linktr.ee/soco88work
https://www.blogger.com/profile/17785100889267964892
https://ok.ru/soco88work/statuses/158880373895279
https://profile.hatena.ne.jp/soco88work/
https://profile.ameba.jp/ameba/soco88work
Buy Premium Quality Ram Mandir Statue Online – theartarium
Tags: rammandir, ayodhya
Published: 2024-01-13 05:24:52

Ram Mandir Figurine is a wonderful replica of the majestic Ram Mandir of Ayodhya, dedicated to Lord Ram. It is perfectly designed to bring the essence of divine grandeur into your home. Ram Mandir serves as a constant reminder of the values and teachings associated with Lord Ram. It’s truly a masterpiece radiating the spiritual aura and architectural glory of this iconic temple.


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