teleren/devto huggingface dataset:
Grub-customizer won't change your GRUB theme in Kali Linux? Try this
Tags: kali, linux, grub, theme
Published: 2023-07-01 22:13:12

If you are familiar with desktop Linux distributions, maybe you are dual booting with another OS, you may have used at some point in time the `grub-customizer` program to change the appearance of the GRUB (GRand Unified Bootloader) screen. As a casual Linux user it has been my main way of customizing grub when dual booting Ubuntu with Windows.

I recently switched laptops and Linux distro to Kali with KDE Plasma and fired grub-customizer as usual. I was surprised to find out that it didn't change the grub theme, despite the grub config file literally using the pre-made theme downloaded from [Gnome-look](https://www.gnome-look.org/browse?cat=109).

Long story short, after some mostly unfruitful investigation and digging into the grub files spread around my Kali installation I concluded that 3 main files have to be modified in order to effectively have the theme changed and they are:

- `/boot/grub/grub.cfg`
- `/etc/default/grub`
- `/etc/default/grub.d/kali-themes.cfg`

Grub-customizer did change the first file and updated it with the proper `theme.txt` location from the theme I downloaded, let's call it _myTheme_.

After noticing that I manually changed the GRUB_THEME entry in `/etc/default/grub` with the correct theme location, which was `/boot/grub/themes/myTheme/theme.txt`.

Then I did the same thing with the `/etc/default/grub.d/kali-themes.cfg` file and surprise, surprise, it worked!

By this point, the grub theme was fully changed and properly adjusted to my liking. There was a little weird thing happening though, after selecting an OS in the grub screen, no matter if it was Kali or Windows, a default Kali theme image was shown for a second or so, which I wanted to change to not show anything and just load the OS. The workaround to solve this was to load a pure black image (all black pixels) before loading the theme in the `/etc/default/grub.d/kali-themes.cfg` which I find a little weird because the `theme.txt` of _myTheme_ already defines a background image. Anyway, the file would contain something like this:

> GRUB_BACKGROUND="/boot/grub/themes/kali/black.png"
> GRUB_THEME="/boot/grub/themes/myTheme/theme.txt"

And done! The theme got changed and no weird image flashes disturbed my grub screen, so I was happy with the result 😊.
Telemed
Published: 2023-07-01 21:57:09

I was recently introduced to telemedicine and I was impressed! I was worried about my health, but didn't want to waste time going to the doctor. It turned out that with telemedicine it is possible. I just called the doctor, showed the problem area through my phone camera, and he gave me recommendations [https://beforeitsnews.com/healthcare/2023/05/telemedicine-platform-architecture-the-components-of-telemedicine-application-2541100.html](https://beforeitsnews.com/healthcare/2023/05/telemedicine-platform-architecture-the-components-of-telemedicine-application-2541100.html). Convenient, quick and safe! I recommend it to anyone who needs medical care at a distance.
How to Unpublish an App From Google Play Store
Tags: android, unpublish, googleplayconsole, development
Published: 2023-07-01 21:52:41


## How to Unpublish an App From Google Play Store

**The very brief process of unpublishing 🚮 your app**

![Google Play Store Banner](https://cdn-images-1.medium.com/max/2400/1*yk9HLCRc3ByA6rMFQ8J66w.jpeg)

## Introduction

As we saw in the [last article](https://arnoldwafula.medium.com/5-steps-to-publish-your-app-on-google-play-store-5216e8c1780c), publishing an app to the Play Store is simple. Here, we will delve into the reverse process, unpublishing. While publishing requires plenty of time (testing) and planning, unpublishing is swift.

Without further ado, let us go through the process of unpublishing an app from the Play Store.

## Step 1: Go to Play Console

Visit the [Play Console](https://play.google.com/console/developers/?pli=1) and log in with your developer account.

![Choose developer account](https://cdn-images-1.medium.com/max/2000/1*4bM4bp157EG1A9bGMB4bbQ.png)

## Step 2: Select The App from the List

On the Play Console home page, under “All apps,” select the app that you want to unpublish from the Play Store.

![Select the app you want to unpublish](https://cdn-images-1.medium.com/max/3200/1*2H38f5H8V6OYrsE7glo35w.png)

This will take you to the app dashboard where you will proceed to the next step.

![App Dashboard](https://cdn-images-1.medium.com/max/3200/1*xTfMFpnwfu9AuYDj3EPGWQ.png)

## Step 3: Select Setup from the side menu

On the side menu, scroll down to the “Release” section.

![Select Setup under “Release”](https://cdn-images-1.medium.com/max/3200/1*QFY1Lez8yn9sE8jq6jszig.png)

Select the Setup menu. It has four options;

 1. App Integrity

 2. Integrity API Report

 3. Internal app sharing

 4. Advanced settings

## Step 4: Choose Advanced Settings

On the “Advanced Settings” page, the App availability tab will open by default.

![Unpublished](https://cdn-images-1.medium.com/max/3200/1*BCI9EBT4Ej28fYezFQCnTw.png)

Choose the Unpublished option.

Done!!
>  **NB:** Unpublishing does not fully remove the app. Users that have installed the app on their devices will still find it on the Play Store and receive updates.
>  To completely remove the app, contact the Play Console support team [here](https://support.google.com/googleplay/android-developer/gethelp?visit_id=638130374458737855-1460335542&rd=1#) to raise a ticket.

## Conclusion

Thank you for reading 🥳. You can support me by buying me a cup of coffee [here](https://ko-fi.com/arnoldwafula#checkoutModal) ☕.

See you at the next one

Peace ☮️✌️
Updating Security Groups in AWS ECS on Fargate
Tags: aws, security, beginners, webdev
Published: 2023-07-01 21:43:55

Recently, I found myself struggling more than expected with updating the security group in ECS on Fargate. In this post, I would like to share the update process that I discovered during my research.

## Configuring Security Groups in ECS
In ECS, instead of defining the security group at the task level, it is necessary to set it at the Elastic Network Interface (ENI) or the ECS service level. While in ECS on EC2, the security group is specified in the settings of the EC2 instance or Auto Scaling Group, in ECS on Fargate, it is specified in the networkConfiguration parameter of the ECS service.

## Updating the Network Configuration of the ECS Service
To update the network configuration of the ECS service, you use the AWS CLI. Specifically, you can specify a new security group ID by executing the following command:

```bash
$ aws ecs update-service --cluster your-cluster-name --service your-service-name --network-configuration "awsvpcConfiguration={subnets=[subnet-1,subnet-2],securityGroups=[sg-1,sg-2],assignPublicIp=ENABLED}"
```

In this command, you need to appropriately replace the ECS cluster name, service name, subnet ID, and security group ID. Additionally, you can control the assignment of a public IP address by setting the value of assignPublicIp to ENABLED or DISABLED.

## Updating the Tasks of the ECS Service
Next, update the task or service and launch new tasks with the new security group settings. This is because the network configuration is determined when the task is launched and cannot be changed until the task ends.

When you update the service settings, a new task is launched, and the existing task stops. Use the following command for this:

```bash
$ aws ecs update-service --cluster your-cluster-name --service your-service-name --force-new-deployment
```

By executing this command, the service launches a new task and stops the existing task. At this time, the updated network configuration is applied when the new task is launched.

To update the new task without causing downtime, set minimumHealthyPercent to 100%. By doing this, ECS does not stop existing tasks until the new task is successfully launched and passes the health check.

## How to Check Existing Security Groups
Finally, let me explain how to check the existing security group. By using the AWS CLI to get the details of the ECS service, you can check the existing network settings. Use the following command:

```bash
$ aws ecs describe-services --cluster your-cluster-name --services your-service-name
```

Again, you need to appropriately replace the ECS cluster name and the service name.
Speech calculator Interface through Transformer Model
Tags: ai, deeplearning
Published: 2023-07-01 21:40:32

Since the rising of Transformers Models in 2017, numerous applications are observed from different domains from Natural Language Processing(NLP) to Automatic Speech Recognition (ASR). In this article, We will propose a tool based on Transformer Model to solve Mathematical Word Problems (MWP). Concretely the designed tool proposed will be for arithmetic expression evaluation, a subclass of MWP.
We call this tool Voice Calculator Interface (VCI). The design of VCI is given in the figure below.

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

Voice Calculator Interface flowVCI processes arithmetic expressions from a speech. Similar to a physical calculator the user can order calcul by its voice. no more needed to type just speak :).

It uses a transformer-based technology to transcribe a voice from a speech. The related transformer is Openai/Whisper this large language model permit extraction of a text from a speech, at considerable precision. Openai/Whisper was obtained from the Hugging Face model repository, you can access the model [here](https://huggingface.co/openai/whisper-medium) https://huggingface.co/openai/whisper-medium Thanks for this community.
The transcribed text should be an arithhmetic expression. or example, as five plus three times five became (5 + 3*5), if the transcribed text doesn't have sens in terms of calcculation VCI rejects.
the transcribed text is then parsed to extract atoms of the calculus expression from its alphabet. The atoms are organized into categories:

1. - **Operators**: Represent basic arithmetic expressions +, -,*, /
2. - **Functions**: Represent a set of functions based command
3. - **Unit**: Represent the set of natural numbers from 1 to 9
4. - **Tense**: Union of the set of natural number multiples of 10 and the set of numbers from 10 to 19.
5. - **Others**: Set of numbers in hundred, thousand, million

After atoms are extracted in the expression, VCI evaluates the expression and gives the result.
The aim of VCI tool is to act as a Brain-Computer Interface for calculus, to solve decidable Maths Word Problems.

The repository of the project can be found here https://github.com/MaxwellNM/voice-calculator-interface
Disable ONLY_FULL_GROUP_BY MYSQL - 2023
Tags: tutorial, programming, beginners, webdev
Published: 2023-07-01 21:32:44

In this tutorial video, we will guide you step-by-step on how to disable the "ONLY_FULL_GROUP_BY" mode in MySQL, specifically focusing on the year 2023. 

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

The ONLY_FULL_GROUP_BY mode is a strict SQL mode that enforces stricter grouping rules when executing queries, which can sometimes lead to unexpected results or errors. 

By following the instructions provided in this video, you'll learn how to modify the MySQL configuration settings and disable the ONLY_FULL_GROUP_BY mode, allowing you to execute more flexible queries. 

Whether you're a beginner or an experienced MySQL user, this tutorial will help you overcome the challenges posed by the ONLY_FULL_GROUP_BY mode and enhance your database management skills. 

Stay tuned and let's dive into the world of MySQL configuration together in this informative tutorial!

#MySQLConfigurations #ONLY_FULL_GROUP_BY #MySQLTutorial #MySQLTips #DatabaseManagement #SQLMode #DisableONLY_FULL_GROUP_BY #MySQL2023
The 22nd Day of The 100 Days of Code challenge
Published: 2023-07-01 20:48:52

Today, I worked on improving the accuracy of the Speaker Diarization in my real-time transcription app. The biggest challenge was the duplicates in the app. The same speaker would be identified multiple times as different speakers.

First, I made it so that the speaker's embedding would improve upon itself. Every time that the speaker was identified, I would create a new embedding whose values are the averages of the speaker's existing embedding and the new embedding.

Then, since the speakers' embeddings began containing more data as time goes on, I was able to detect duplicates.

Every 10 seconds, the app looks for duplicates by comparing every set of embeddings and when it finds a duplicate, it improves the existing embedding with the duplicate and removes it. It then reformats the transcription to change all the labels belonging to the duplicates to the label of the actual speaker.

Some challenges still remain, the accuracy could be improved but I'm wondering whether it's worth it at the moment, as the app has a strong base.

To improve the accuracy without putting too much effort in, I think, but not sure, that I could find a large dataset online and train my model on it. Since I'm using deep-speaker now, it doesn't seem difficult to do.

The goal in that would be to extract more general speaker embeddings, to not fail duplicate checks because of nuances.

Also thinking where this app could go from here. This can be made into a fully-fledged app that in my opinion would help podcasts and could be used for many transcription tasks, just because of the real-time diarization.

That's about it for today,
Happy coding everyone!
Introducing: an opensource Vite + React + AWS Boilerplate template ⚙️
Tags: webdev, aws, react, vite
Published: 2023-07-01 20:40:36

Hi all, I made this: https://github.com/vikadilly/aws-vite-react-boilerplate

This is a boilerplate template for creating a front-end powered by React and Vite and running on AWS through Amplify. 

It comes with Authentication handling code, User Management and some automated tests all set up so you can get going ASAP ⚡️

I really like Vite and React but it's quite difficult to get it stood up with AWS. So I put this together in an attempt to make it easier to get moving. 

There are steps you have to undergo like setting up Amplify to get this working but having this here hopefully makes building your ideas a lot quicker! Let me know if there are any problems you face or things you want to see.
Showcasing My Portfolio Website for Review
Published: 2023-07-01 20:09:59

Hello everyone! I would like to share my portfolio website with you and get feedback and suggestions. My portfolio site focuses on web development and showcases my achievements and skills in frontend and backend development.

[https://nane89.github.io/Portfolio/index.html]

Here are a few key points I would like to highlight:

The technologies I have used in building my portfolio website, such as HTML, CSS, JavaScript,jquery, scss, php, boostrap, MySql.

The projects I have worked on and included in my portfolio,

UX/UI design and responsiveness to provide a great user experience across all devices.

I am highly receptive to constructive criticism and view it as an invaluable tool for personal and professional growth. I actively seek feedback to identify areas where I can enhance my skills as a web developer. By welcoming different perspectives and ideas, I strive to continuously refine my craft and stay ahead of the ever-evolving industry.

I would greatly appreciate any feedback, comments, or advice you can provide to help me improve my portfolio website and become a better web developer.

Thank you all in advance for your time and support
Boost Your JavaScript Skills with These 5 Must-Know Shorthands and Tricks
Tags: javascript, tips, tricks, coding
Published: 2023-07-01 20:17:02


---
title: Boost Your JavaScript Skills with These 5 Must-Know Shorthands and Tricks
published: true
date: 2023-07-01 20:00:08 UTC
tags: #javascript #tips #tricks #coding
canonical_url: https://itsvinayak.hashnode.dev/boost-your-javascript-skills-with-these-5-must-know-shorthands-and-tricks
---

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


5 powerful shorthands and tricks that will help you write cleaner and more concise code. From ternary operators to template literals, learn how to simplify conditional statements, handle default values, and streamline object manipulation.

{% youtube 4ROFiicxh5M %}

These tricks are game-changers for any JavaScript developer. Don't miss this opportunity to enhance your coding skills and take your projects to the next level.

### **Nullish Coalescing Operator (??)**

The nullish coalescing operator allows us to provide a default value for null or undefined variables.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688241406068/80b730cf-98a8-4f48-b974-c6083b2d1e61.png)

- **Nullish Coalescing Operator (??) VS Logical OR Operator (||)**

The logical OR (||) operator consider falsy values, while the nullish coalescing operator check for null and undefined values.

- **a || b evaluates to a ? a : b**

- **a ?? b evaluates to a != null/undefine ? a : b**

### **Optional Chaining Operator (?.)**

The optional chaining operator provides a way to access nested properties or call methods on an object without worrying about potential null or undefined values. If any intermediate property is null or undefined, the expression short-circuits and returns undefined

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688241152864/476f8fa9-9059-439b-bfb2-cf43b8b3c52d.png)

### Function Property Shorthand

When defining a method inside an object, we can use the shorthand notation to assign a function to a property without using the `function` keyword.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688241358041/c80a7e07-4762-48b2-8eca-96f4a71a94e3.png)

### Logical Assignment Operators (`&&=`, `||=`, `??=`)

JavaScript introduced logical assignment operators in ECMAScript 2021. They allow us to combine logical operations with assignments in a more concise way.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688241481236/a0a665e5-ccec-4a0f-920b-4ef417032f58.png)

### Comma Operator

The comma operator allows us to evaluate multiple expressions and return the result of the last expression. It is typically used in situations where multiple expressions need to be evaluated but only one value is expected.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1688241552073/8fdc1b99-b547-4f75-92ee-b02108751096.png)
Checking In: Writing for a Week
Tags: netlify, writing, softwareengineering, javascript
Published: 2023-07-01 19:04:20

## What's been happening?

I've been writing for about a week, since submitting a project to the [1Password + Hashnode Hackthon](https://dev.to/builditdeploy/1password-hashnode-hackathon-2023-published-on-github-deployed-to-netlify-4pjl). I was able to write a series of articles that has helped me to synthesize different developer experiences.

## Keeping it going

TBH, it's been enjoyable to start taking thoughts and putting them down on paper...well digital paper. I'm working through a few ideas to keep the topics flowing.

---

Photo courtesy of <a href="https://unsplash.com/@nickmorrison?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Nick Morrison</a> on <a href="https://unsplash.com/photos/FHnnjk1Yj7Y?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Problem with axios header in nuxt.js
Tags: vue, nuxt, axios, discuss
Published: 2023-07-01 18:57:08

Hello,

I'm working on a project using nuxt.js that other developers have already worked on.
I don't know much about nuxt.js and I'm having a problem that I can't solve.
When I do an `npm run build` then `npm run start` the application works normally, but when I do an `npm run dev` I get errors:


```
TypeError: Cannot read properties of undefined (reading 'Authorization')                         
TypeError: Cannot read properties of undefined (reading 'status')                                

 ERROR  Cannot read properties of undefined (reading 'status')                                           

  at server.js:13024:24
  at server.js:455:56
  at async asyncData (pages/landing/students.js:2156:35)
  at async Promise.all (index 0)
  at async Promise.all (index 0)
  at async module.exports../.nuxt/server.js.__webpack_exports__.default (server.js:5494:22)
```


Moreover if I remove the `headers` from the axios requests, there is no more error and the application works when I do `npm run dev`.

Here is a portion of the code that is causing the problem :

```
async asyncData({app, params, $axios, $config: { baseURL } }) {
        const res = await $axios.$get(`/api/student`, {
            headers: {
              'Accept-Language': app.i18n.locale,
            },
        })
        .then((res) => {
          console.log(res)
          return res
        })
        .catch((err) => {
          console.error(err)
        });

        return { res }
    }
```
AWS - Unleashing the Power of Cloud Computing
Tags: aws, awsbigdata, cloudops, beginners
Published: 2023-07-01 18:33:14

**Introduction**
In today's digital age, businesses are increasingly relying on cloud computing solutions to drive innovation, improve scalability, and enhance operational efficiency. Among the leading cloud service providers, Amazon Web Services (AWS) stands out as a powerhouse, offering a comprehensive suite of services and tools. In this article, we will delve into the world of AWS and explore its transformative capabilities.

**The Power of AWS**
AWS provides a robust and secure infrastructure that empowers businesses of all sizes to leverage the benefits of cloud computing. From startups to enterprises, organizations can tap into AWS's extensive range of services to build scalable applications, store and analyze data, and deploy sophisticated machine learning algorithms.

**Key AWS Services**
Amazon EC2 (Elastic Compute Cloud)
EC2 offers resizable compute capacity in the cloud, enabling businesses to scale their applications based on demand. With EC2, you can launch virtual servers, configure security settings, and manage storage with ease.

**Amazon S3 (Simple Storage Service)**
S3 provides highly durable and scalable object storage for various data types. Whether you need to store images, videos, or application backups, S3 offers reliable storage options with industry-leading security features.

**AWS Lambda**
Lambda is a serverless compute service that allows you to run your code without provisioning or managing servers. It enables developers to build and execute event-driven applications, leveraging the power of microservices architecture.

**Amazon RDS (Relational Database Service)**
RDS simplifies the management of relational databases by automating routine tasks such as backups, software patching, and database scaling. It supports various database engines, including MySQL, PostgreSQL, Oracle, and Microsoft SQL Server.

**Benefits of AWS**
Flexibility: AWS offers a wide array of services, allowing businesses to choose and customize solutions that best fit their needs.

Scalability: With AWS, you can seamlessly scale your infrastructure to accommodate fluctuating workloads and handle sudden traffic spikes.

Cost Optimization: AWS provides cost-effective options, enabling businesses to pay only for the resources they consume and avoid upfront infrastructure investments.

Security: AWS maintains a robust security framework, implementing industry best practices to protect data and infrastructure against threats.

Global Reach: AWS has a vast network of data centers across the globe, ensuring low-latency connectivity and enabling businesses to serve customers worldwide.

Conclusion
best decision of my life is that i learnt AWS