teleren/devto huggingface dataset:
The Intriguing Intersection of Art and Code: Where Creativity Meets Logic
Tags: webdev
Published: 2024-02-24 07:01:49

The worlds of art and code might seem like polar opposites: one driven by emotion and free expression, the other by logic and structured processes. But in the ever-evolving landscape of technology, a fascinating intersection is emerging, where these seemingly disparate realms are converging to create new and captivating experiences.

One prime example lies in the rise of generative art. This artistic movement utilizes code to create unique and often mesmerizing visuals. Algorithms manipulate parameters like shapes, colors, and patterns, producing artworks that range from abstract landscapes to intricate geometric forms. The artist, in this case, acts as the programmer, setting the creative boundaries and guiding the code to generate unexpected and often stunning results.

Beyond visual art, code is also transforming the world of music. Algorithmic compositions are pushing the boundaries of traditional music creation, with software generating unique melodies, harmonies, and rhythms. This opens doors for new sonic territories and challenges our very definition of what constitutes music.
See more articles on an [article directory](https://ban-box.com).
The impact of code on artistic expression extends beyond creation. Code is being used to curate and personalize art experiences. Imagine a museum exhibit that dynamically adapts to your preferences, showcasing artworks based on your past interactions or emotional state. Or, consider a music streaming service that recommends songs based on your mood or listening history, all powered by sophisticated algorithms.

This artistic-coding fusion is not without its challenges. Questions arise about the role of the artist in a code-driven creative process. Does the code itself become the artist, or is the human programmer still the guiding force? Additionally, concerns exist around the potential homogenization of art if algorithms become the primary drivers of creative output.

Despite these challenges, the potential of this artistic-coding interplay is undeniable. It opens doors for new forms of creative expression, fosters deeper audience engagement, and challenges our traditional understanding of art and its creation. As technology continues to evolve, the possibilities at this intersection are boundless, promising a future where art and code dance together, creating experiences that are both captivating and thought-provoking.
Increase Swap Memory on Raspberry Pi
Tags: raspberrypi, homelab, linux
Published: 2024-02-24 07:01:30

## Introduction

A Swap file is a file on the disk that can be used to extend the RAM on your system. It is used when the RAM is full and your system needs more memory resources. It is also used to store the data that is not accessed frequently.

This is especially useful on Raspberry Pi with limited amount of RAM. For example, I have a Raspberry Pi Zero 2W which has 512MB of RAM. When I started adding more services on it, I could see with [`htop`](https://akashrajpurohit.com/blog/mastering-process-monitoring-and-management-with-htop-command-in-linux/?ref=dev.to-blog) that the RAM is becoming almost full. This is where the swap file comes in handy.

The default swap file size on Raspberry Pi is 100MB. This is might be enough for some use cases, but if you need more, you can increase it.

Let's see how to do it.

## Increase Swap Memory

We will use the `dphys-swapfile` package to increase the swap memory. This package is installed by default on Raspberry Pi OS. If you don't have it installed, you can install it with the following command:

```bash
sudo apt install dphys-swapfile
```

First thing to do it to turn off the swap file to avoid any issues:

```bash
sudo dphys-swapfile swapoff
```

Next, we will update the `CONF_SWAPSIZE` variable in the `/etc/dphys-swapfile` file. This variable is used to set the size of the swap file. The default value is 100MB. We will set it to 500MB

I am using `vi` to edit the file, but you can use any editor you like:

```bash
sudo vi /etc/dphys-swapfile
```

Search for the `CONF_SWAPSIZE` variable and update it to `500`:

```txt
CONF_SWAPSIZE=500
```

Save the file and exit the editor.

Now we will reinitialize the swap file setup using the following command:

```bash
sudo dphys-swapfile setup
```

Finally, we will turn on the swap file:

```bash
sudo dphys-swapfile swapon
```

Once this is done, we can reboot the system to make sure everything is working fine:

```bash
sudo reboot
```

After the reboot, you can check the swap file size using the `htop` command and check for the `Swp` value, it should be `500M`.

> One thing to note is if you want to increase the swap file size to more than `2GB` then you would need to uncomment the `CONF_MAXSWAP` variable in the `/etc/dphys-swapfile` file and set it to the desired value.

I have personally never needed it, but if you do, then you can do it (not verified by me).

## Conclusion

In this post, we saw how to increase the swap memory on Raspberry Pi. This can be useful if you are running out of RAM on your Raspberry Pi.

I hope you liked this post. If you have any questions or feedback, reach out to me on [X / Twitter](https://twitter.com/AkashWhoCodes) or follow my blog at [akashrajpurohit.com](https://akashrajpurohit.com/?ref=dev.to-blog)

See you in the next post. Until then, keep HomeLabbing! 👋
Fix Sudo not asking Password on Raspberry Pi
Tags: raspberrypi, homelab
Published: 2024-02-24 06:54:04

## Introduction

When you install a fresh copy of Debian or Raspbian on your Raspberry Pi you might notice that sudo does not ask for a password. This is a security risk and should be fixed. Let's see how to fix it.

## Fix Sudo not asking Password on Raspberry Pi

This happens due to the `NOPASSWD` option for your user. We need to make sure that this option is not set.

We will edit the file named `010_pi-nopasswd`. To find its location we will use the [`find`](/blog/mastering-the-art-of-file-and-directory-search-with-linuxs-find-command/) command.

```bash
sudo find / -name 010_pi-nopasswd
```

This will return the location of the file. In my case it is `/etc/sudoers.d/010_pi-nopasswd`. Now we will edit this file using `visudo`.

```bash
sudo visudo /etc/sudoers.d/010_pi-nopasswd
```

The current content on the file will look like this.

```bash
<username> ALL=(ALL) NOPASSWD: ALL
```

Where `<username>` is your username. We need to remove the `NOPASSWD` option. So the file will look like this.

```bash
<username> ALL=(ALL) ALL
```

Save the file and exit. Now when you run `sudo` it will ask for a password.

## Conclusion

We looked into how to fix sudo not asking password on Raspberry Pi. This is a security risk and should be fixed.

Follow my blog at [akashrajpurohit.com](https://akashrajpurohit.com/?ref=dev.to-blog)
ZW3D|올인 원, 합리적인 가격의 CAD/CAM 솔루션 | 한컴
Tags: zw3d2019, release, productivity
Published: 2024-02-24 06:49:49

ZW3D 가격,CAD 소프트웨어 구매,,캐드 구입,캠 소프트웨어 구매, 3D CAD 구입, CAM 소프트웨어 구매, 온라인 견적, ZW3D CAD 소프트웨어 다운로드, ZWCAD 가격 [해선 총판모집](url).
how to I can show notification text on icon place android studio
Published: 2024-02-24 06:35:57

I am trying to create an Android application. For that, I want to show a notification in a specific place. So, I use **RemoteViews**. But now, I also want to display that text on my home screen. How can I do that?

Here is some breakdowns of my code:

    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <!-- TextView for displaying speed -->

    <TextView
        android:id="@+id/text_speed"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_marginStart="37dp"
        android:layout_marginTop="7dp"
        android:padding="10dp"
        android:text="70kb"
        android:textColor="@android:color/black"
        android:textSize="16sp" />

    <TextView
        android:id="@+id/text_fmobile"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@id/text_speed"
        android:layout_marginStart="212dp"
        android:layout_toEndOf="@id/text_speed"
        android:text="speed : 70kb"
        android:textColor="@android:color/black"
        android:textSize="16sp" />

    </RelativeLayout>


and I use this java code for update and show those information

    notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
                .setSmallIcon(R.drawable.ic_launcher_background)
                .setContentIntent(pendingIntent)
                .setSound(null) // Set notification sound to null to make it silent
                .setCustomContentView(notificationLayout);

I want to show this application icon like that 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbox30zjta4km0dmfaq8.png) on my home screen

that now looks like that 

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

provide me some advice that how to I can do that using those Layout Activity
Transform your Confectionery with Kemry Luster Dust | HSJ Industries
Published: 2024-02-24 06:34:04


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xlf4f8aql7srqy01umi6.png)
The manufacturing company Kemry is the biggest manufacturer of Luster Dust in India. Luster dust is a famous enhancing Glittering Pearl utilized in desserts and confectionery shops to add a shimmery or metallic completion to different sweet treats. It is a non-harmful, colouring powder that arrives in various colours, including metallic shades like gold, silver, bronze, and pearl. To visit our website:- https://www.hsjind.com/ 

Here are a few normal purposes of radiance dust in confectionery: 

Cake Embellishing: Kemry’s Luster dust can be brushed or enhanced with Designs onto cakes to give them a sparkly, metallic appearance. It's generally expected to feature explicit subtleties, like fondant designs, blossoms, or many-sided designs.
Chocolate Enhancements: Our Luster dust can be utilized to add a metallic sheen to chocolate embellishments, like multiple chocolates, truffles, or chocolate-covered natural products. It sticks well to the smooth surface of chocolate. 
Treats and Cupcakes: Kemry’s Luster dust can be sprayed or painted onto treats and cupcakes to make a glittery impact. It's frequently utilized for unique events like weddings, birthday celebrations, or merry festivals. 
Sugar Blossoms: While making sugar blossoms for cake improvements,  Kemry’s Luster dust can be applied to the petals and passes on to make them look more sensible and outwardly engaging. 

It's critical to take note that  Kemry’s Luster dust is viewed as a decorative purpose, yet it's generally expected to be utilized in little amounts for embellishing purposes. To Buy our Luster Dust check this link :- https://www.hsjind.com/luster-dust-5gm We are also available on E-Commerce platform like:- AMAZON & Flipkart  To Contact us :- +91 99902 99766       Email us on :-  info@hsjind.com
Transform your Confectionery with Kemry Luster Dust | HSJ Industries
Published: 2024-02-24 06:33:09

```
The manufacturing company Kemry is the biggest manufacturer of Luster Dust in India. Luster du``st is a famous enhancing Glittering Pearl utilized in desserts and confectionery shops to add a shimmery or metallic completion to different sweet treats. It is a non-harmful, colouring powder that arrives in various colours, including metallic shades like gold, silver, bronze, and pearl. To visit our website:- https://www.hsjind.com/ 

Here are a few normal purposes of radiance dust in confectionery: 

Cake Embellishing: Kemry’s Luster dust can be brushed or enhanced with Designs onto cakes to give them a sparkly, metallic appearance. It's generally expected to feature explicit subtleties, like fondant designs, blossoms, or many-sided designs.
Chocolate Enhancements: Our Luster dust can be utilized to add a metallic sheen to chocolate embellishments, like multiple chocolates, truffles, or chocolate-covered natural products. It sticks well to the smooth surface of chocolate. 
Treats and Cupcakes: Kemry’s Luster dust can be sprayed or painted onto treats and cupcakes to make a glittery impact. It's frequently utilized for unique events like weddings, birthday celebrations, or merry festivals. 
Sugar Blossoms: While making sugar blossoms for cake improvements,  Kemry’s Luster dust can be applied to the petals and passes on to make them look more sensible and outwardly engaging. 

It's critical to take note that  Kemry’s Luster dust is viewed as a decorative purpose, yet it's generally expected to be utilized in little amounts for embellishing purposes. To Buy our Luster Dust check this link :- https://www.hsjind.com/luster-dust-5gm We are also available on E-Commerce platform like:- AMAZON & Flipkart  To Contact us :- +91 99902 99766       Email us on :-  info@hsjind.com
```
Acer Laptop Service Centre in Nagpur
Tags: acer, support, authorized, services
Published: 2024-02-24 06:32:35

Looking for [Acer service in Dhantoli](https://acerservicecentre.in/) Nagpur? Our Acer laptop service centre is here to assist you with all your Acer laptop needs. Call Us: +91-9511692583.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dpxczmi09970i79p4cgy.jpg)
GÀ VÀNG TV - TRANG WED TRỰC TIẾP CÁC TRẬN BÓNG ĐÁ MỚI NHẤT
Published: 2024-02-24 06:25:27

gà vàng tv nơi cung cấp những trận đấu bóng đá với chất lượng hàng đầu tại việt nam với tất cả các trận đấu của những giải đấu lớn nhỏ trên khắp thế giới.
CyberDoodads
Tags: seo, digital, management, social
Published: 2024-02-24 05:51:14

[CyberDoodads](https://cyberdoodads.com) offers affordable digital marketing solutions to elevate your online presence. We specialize in search engine optimization (SEO), compelling content creation, and expert social media management to boost your visibility, attract targeted leads, and drive business growth. Our strategies are custom-tailored to your unique needs and budget.  We understand that results matter, which is why we leverage data-driven insights to optimize your campaigns for maximum ROI.  Experience the **_[CyberDoodads ](https://cyberdoodads.com)_**difference – let us put our expertise to work and amplify your digital success. Contact us today to get started!

website : **_[https://cyberdoodads.com](https://cyberdoodads.com)_**
Why Funny Profile Photos Make Friends Smile
Published: 2024-02-24 05:48:22

Lightens the Mood
In a world where news feeds are often filled with serious news and life updates, a funny profile photo acts as a welcome interlude. It serves as a gentle reminder not to take life too seriously and that there's always room for a bit of humor, lightening the mood and brightening your friends' days.

2. Reflects Your Personality
A humorous profile picture is a reflection of your playful side. It shows that you value laughter and happiness, traits that are infectious. When friends see a funny photo that captures your spirit, it not only makes them smile but also deepens their appreciation for your unique personality.

3. Encourages Connections
Funny profile photos are great conversation starters. They give your friends a reason to reach out with a comment or a laugh, encouraging interactions that might not have happened otherwise. This can be particularly meaningful in maintaining connections, especially with those you might not speak to regularly.

4. Offers a Momentary Escape
A well-chosen funny profile photo can offer a brief escape from the routine or stress of everyday life. For a moment, it allows your friends to forget their worries and chuckle over your shared sense of humor. This mini mental break is a small but significant way to support your friends' well-being. [Click Here](https://techwino.com/funny-profile-pictures/)

5. Builds a Positive Online Presence
Your choice of a funny profile photo contributes to the overall positivity of your online presence. It's a way to spread joy and laughter, making your social media space a brighter place. Friends are likely to visit your profile when they need a pick-me-up, knowing they'll leave with a smile.

6. Creates Memorable Interactions
Humor makes memories stick. A funny profile photo isn't just a one-time joke; it's a recurring source of smiles every time your friends interact with you online. This repeated exposure helps cement joyful memories associated with your profile, making your interactions more memorable.

7. Shows Confidence
Displaying a sense of humor through your profile photo shows confidence. It takes a certain level of self-assurance to put yourself out there in a humorous way. This confidence is admirable and can inspire your friends to embrace their quirks and share their own humor.

8. Spreads Positive Vibes
Laughter is contagious. By choosing a funny profile photo, you're not just making your friends smile; you're potentially brightening the day of anyone who comes across your profile. This ripple effect of positivity can extend far beyond your immediate circle, spreading good vibes in the digital realm.

Conclusion
In essence, funny profile photos are more than just a digital trend; they're a way to inject humor and happiness into the daily lives of your friends and family. They lighten the mood, encourage connections, offer escapes from stress, and build a positive online presence. So next time you're considering updating your profile picture, remember the power of humor to make your friends smile and choose something that will spread a little joy.
Declare vs Assign vs Reassign vs Redeclare in JavaScript
Tags: javascript, beginners, webdev
Published: 2024-02-24 05:46:52

Declare: We can declare a variable using the var, let, and const keywords.
Ex: var x; let y; const z = 10; (Using const keyword variable has to be declared and assigned when it is created);

Assign: We can assign a value to a variable using the assignment operator(=).
Ex: x = 5; y = 6;

Reassign: We can reassign a value to a variable except which is declared and assigned with const.
Ex: x = 7; y = 8;
But we declared and assigned const z = 10; before, then we can't reassign it. We can't write the code: z = 4; If we do, JS will throw an error.

Redeclare: We can redeclare a variable if we use var, otherwise not.
Ex: var a; a = 5; var a = 7; // it won't create any problem.
let b; b = 5; let b = 7; // this is not allowed. Using the let keyword variable can't be redeclared.
const c = 5; const c = 8; // this is not allowed. Using the const keyword variable can't be redeclared.

One more thing: Using const keyword variable has to be declared and assigned when it is created. You can't assign the value later.
Ex: const d = 5; ( Declaration and Assignment at the same time);
Alcohol Detox Near Me
Tags: healthydebate, health
Published: 2024-02-24 05:45:55

Finding an **[alcohol detox near me](https://thetreatmentspecialist.com/inpatient-detox-near-me/)** is a crucial step toward embarking on the path to recovery. In the treatment process, a respected authority in addiction recovery actively guides individuals through a comprehensive detox program. 

With her wealth of knowledge and experience, she ensures that the detoxification process is conducted in a safe and supportive environment. Through evidence-based treatments and a multidisciplinary approach, they address the physical and psychological aspects of alcohol addiction. 

The treatment process includes supervision, counseling, and individualized care plans tailored to each person's specific needs. By guiding individuals through this transformative journey, people empower them to overcome detox challenges and pave the way for lasting recovery and a healthier future.
📊 Logistic Regression in a Nutshell
Tags: datascience, machinelearning, mlhgrad, beginners
Published: 2024-02-24 05:37:24



🧠 Introduction:
   
Definition: Logistic Regression is a statistical method used for binary and multiclass classification in machine learning.
Objective: Predict the probability of an instance belonging to a specific class.

📈 Key Components:
   
Sigmoid Function (Logistic Function):
Role: Maps any real-valued number to the range [0, 1].
Decision Boundary:
Definition: Threshold determining class assignment.
Log Odds:
Calculation: Transformation of probability values.

💡 How It Works:
   
Step 1: Calculate the weighted sum of input features.
Step 2: Apply the sigmoid function to obtain probabilities.
Step 3: Set a decision boundary to classify instances.

🎯 Use Cases:
   
Spam Detection:
Application: Classify emails as spam or not.
Disease Diagnosis:
Application: Predict disease presence based on symptoms.

🌐 Advantages:
   
Simplicity: Easy to implement and interpret.
Efficiency: Performs well on linearly separable data.

🚫 Limitations:
   
Linearity Assumption: Assumes a linear relationship between features and log-odds.
Sensitive to Outliers: Can be influenced by extreme values.

📊 Conclusion:
   
Logistic Regression, despite its name, is a powerful classification tool widely used for its simplicity and effectiveness in various real-world applications.

🤖 Embrace Logistic Magic in Classification! 🌐🔍


Do you want to connect and chit-chat with me???

- [Buy me A Coffee](https://www.buymeacoffee.com/peeyushkmisra)🍵
- You can find me on [Instagram ](https://www.instagram.com/peeyushkmisra/)🤝
- Join my [WhatsApp Channel](https://whatsapp.com/channel/0029Va5DG6nIyPtRluUhY70F)💬
- Also want to learn tech or development, then subscribe to me on [YouTube](https://www.youtube.com/@peeyushmisra)