teleren/devto huggingface dataset:
Create Signed URLs using gsutil
Tags: gcp, python, crypto, gsutil
Published: 2022-03-24 10:03:02

A signed URL is a URL that provides limited permission and time to make a request. Signed URLs contain authentication information in their query string, allowing users without credentials to perform specific actions on a resource.

### Creating a signed URL

#### <u>What we will need</u>:

1. gsutil
2. pyopenssl
3. Service Account Key
4. Path of the file/Object

<u>_Command_</u>

_`gsutil signurl -d 2d service-account-key.json gs://my-gcs-bucket/my-object`_

> -d Specifies the duration that the signed url should be valid
> For, default duration is 1 hour.Times may be specified with no suffix (default hours), or with s = seconds, m = minutes, h = hours, d = days.
>This option may be specified multiple times, in which case
the duration the link remains valid is the sum of all the duration options.
>The max duration allowed is 7 days when ``private-key-file``is used.
>Any service-account-key can be used to encrypt the url

### <u>_Issues_</u>

>CommandException: The signurl command requires the pyopenssl library (try pip install pyopenssl or easy_install pyopenssl)

- Install pyopenssl using the pip as per the python version

`pip3 install pyopenssl`

>Even after installing pyopenssl if you are getting the same error, Check gcloud uses which python and python should point to a python interpreter used by gcloud

`gcloud info --format="text(basic.python_location)"`

`➜  Desktop git:(master) ✗ gcloud info --format="text(basic.python_location)"
python_location: /Users/.config/gcloud/virtenv/bin/python3`


#### <u>Add the Environment Variables as</u>

`export CLOUDSDK_PYTHON=python3`
`export CLOUDSDK_PYTHON_SITEPACKAGES=1`
I find a fast vpn in china
Tags: vpn
Published: 2022-03-24 09:54:45

Since I work in China, I have to use a VPN for my internet access (e.g. Google, YouTube) and I need to use Netflix every night, so my bandwidth requirements are always high.

I have tried many VPNs but they didn't meet my needs until I found [shellvpn](https://surfshell.io), one of the [fastest VPN](https://surfshell.io/apps) in my opinion, I suggest you try it if you need it too!
Recovery Database Exchange 2013
Tags: programming, devops
Published: 2022-03-24 09:51:50

A situation like being unable to access Exchange data, facing sluggishness while running Exchange are some of the systems of the corruption in the Exchange database (EDB file). To sort out this situation, you need to take certain quick action to protect the Exchange .edb. If you are looking for a solution to recover database of Exchange 2013, you can utilize a product like Shoviv [Exchange recovery](https://www.shoviv.com/exchange-recovery-manager.html) manager software. It is highly efficient in tackling high-level corruption in the database files of Exchange.

The software makes the recovery process of even deleted items and allows exporting them into PST, Office 365, and many other environments. Various features help during the recovery process, such as its filter option that perfectly works to include or exclude certain file items. One of the essential features like an incremental option that makes any interrupted process get resumed from the interruption point is also part of this tool.

After carrying out the recovery of the Exchange 2013 database, the software provides an option to save the process report. You can also evaluate its working through its free demo version.

Read more - [https://www.shoviv.com/blog/repair-exchange-2013-database-with-eseutil/](https://www.shoviv.com/blog/repair-exchange-2013-database-with-eseutil/)
Just 1 in 10 Data Science/Machine Learning developers are involved end-to-end in the DS/ML workflow
Tags: data, science, machine, learning
Published: 2022-03-24 09:50:56

---
title: Just 1 in 10 Data Science/Machine Learning developers are involved end-to-end in the DS/ML workflow
published: true
description: Data scientists and machine learning developers are characterised by specialisation - just one in ten of them are involved end-to-end in the data science/machine learning (DS/ML) workflow.
tags: #data #science #machine #learning
//cover_image: https://direct_url_to_image.jpg
---

Data scientists and machine learning developers are characterised by specialisation - just one in ten of them are involved end-to-end in the data science/machine learning (DS/ML) workflow. Excluding these generalists, around two-thirds of the remaining DS/ML developers are involved in three or fewer distinct stages of the DS/ML workflow. As we will see later in this chapter, this is part of a longer-term trend towards specialisation in data science and machine learning. As working practices mature and technical complexity increases, developers have to specialise in order to stay competitive.

For those involved in different stages of the DS/ML workflow, data exploration and analysis is the most often selected - nearly half of DS/ML developers said that they are involved here. Furthermore, with around two in five selecting model development or visualisation/presentation, it’s clear that these three activities form the bedrock of DS/ML projects. In fact, nearly three-quarters of DS/ML developers are involved in at least one of these three stages, and 14% do all of them. Whilst DS/ML developers are rarely involved end-to-end, most maintain a varied skill set, incorporating coding, statistics, and communication into their repertoire.

Further down the list, just under a third of DS/ML developers reported being involved in data/feature engineering or data ingestion. These somewhat less glamorous activities nevertheless underpin much of the DS/ML lifecycle.

DS/ML developers doing data engineering or ingestion tend to only stay involved early on in the DS/ML workflow. Those concerned with data ingestion are only more likely than average to also do data engineering or exploration/analysis - there are clearly some transferable skills here, but these don’t often translate to model deployment or optimisation. DS/ML developers involved in feature engineering often take part in the model development process - the iterative synergy between feature engineering and model development is clear here.
![Just 1 in 10 Data Science/Machine Learning developers are involved end-to-end in the DS/ML workflow](https://i.ibb.co/Jz0tcbn/ds.png)

Source: [State of the Developer Nation 21st Edition](https://developernation.net)
What does typescript add onto JavaScript
Tags: javascript, beginners, typescript, discuss
Published: 2022-03-24 09:50:25

Hello everyone today I am here to discuss and here your comments on what typescript adds to JavaScript and what cases it should be used in.

In my personal opinion and just recently switching from JavaScript to typescript I can definitely say typescript is amazing and should be used in a lot of places.

One of the main places I think should use typescript is in npm packages as it can help debugging with type safety.

Although I do believe JavaScript still has a place being used to develop websites with pure html, css, and js. The reason i say this is because I believe it is easier it interface with then typescript as you skip the compiling step.

My main point is that if you use JavaScript for developing npm packages or just developing in general, you should give typescript a shot. If you need help developing a tsconfig file you can use [my tsconfig](https://github.com/MrEggoXYZ/MyTsConfig/blob/main/tsconfig.json) as a baseline.

If you have anything else to add please let me know, as I would be glad to add more info to the post

Have a nice day and happy programming
User Office Hours: Building a Secure CI/CD Pipeline with GitHub Actions and Snyk
Tags: snyk, security, officehours
Published: 2022-03-24 09:49:07

March 23, 2022 

In this session, we’ll attempt to build a secure CI/CD pipeline with Github Actions and Snyk. We’ll go through:

Building a Github Action
Testing for security issues, using Snyk Open Source and Snyk Code
Showing different approaches on how to set up your secure pipeline

Throughout the session, you can ask us anything! Bring all of your Snyk questions and we’ll do our very best to answer them.

 [![Video](https://i.ytimg.com/vi/Rbc3mYrfuQc/hqdefault.jpg)](https://www.youtube.com/watch?v=Rbc3mYrfuQc)
privelege escalation
Published: 2022-03-24 09:44:59

As part of your onboarding, you've been tasked with setting a server up so that bob is a superuser. Set bob up so no password is required when he uses the sudo command and he can run any command. In addition, set up adam to be able to run the journalctl command as root without being prompted for a password.

__STEP 1____ Add bob to sudo files
In order to add bob to sudo files, we have to first make bob a root user by user the __sudo -i__ command and then run the __visudo__ command.

__STEP 2__
inside the editor, press _i_ on the keyboard to insert the folllowing:
__bob   ALL= (ALL)     NOPASSWD: ALL__
__adam    ALL=(root)     NOPASSWD: /bin/journalctl__

To exit, press the __esc_ key which makes insert to disappear, thereafter enter __:wq: to quit and save.

To check if your changes works properly, try:
__sudo -adam__
Try to install php as this user, and you will notice it doesnt allow you to because adam is only set to run /bin/journalctl.
How to do bulk updates in MongoDB
Published: 2022-03-24 09:41:40

MongoDB provides several ways to update specifically one document and bulk updating is done in almost the same way.

`
db.podcasts.insertMany([
	{
		"name": "Tech Over Tea",
		"episodeName": "#75 Welcome Our Hacker Neko Waifu | Cyan Nyan",
		"dateAired": ISODate("2021-08-02"),
		"listenedTo": true,
	},
	{
		"name": "Tech Over Tea",
		"episodeName": "Neckbeards Anonymous - Tech Over Tea #20 - feat Donald Feury",
		"dateAired": ISODate("2020-07-13"),
		"listenedTo": true
	},
	{
		"name": "Tech Over Tea",
		"episodeName": "#34 The Return Of The Clones - feat Bryan Jenks",
		"dateAired": ISODate("2020-10-19"),
		"listenedTo": false
	},
	{
		"name": "Cinemassacre Podcast",
		"episodeName": "AVGN Fan Q&A, Starting a Band, and the Last Year - Cinemassacre Podcast",
		"dateAired": ISODate("2021-08-10"),
		"listenedTo": true
	}
])
`

Let's update all the "Tech Over Tea" podcasts entry to be marked as listened to using update. In order to update multiple documents using update, we have to pass in an optional argument to tell MongoDB to do that.

`
db.podcasts.update(
	{name: "Tech Over Tea"},
	{$set: { listenedTo: true} },
	{multi: true}
)
`

We can achieve the same result using updateMany.

`db.podcasts.updateMany(
	{name: "Tech Over Tea"},
	{$set: { listenedTo: true} }
)
`

Did you find this information useful? If so, consider heading over to my [blog.braincuber.com](https://blog.braincuber.com) page and drop me some support.
C# for dummies: Classes / Objects, Fields, Access Modifiers, Properties, Constructors
Tags: csharp, dotnet, dotnetcore
Published: 2022-03-24 09:31:18

This tutorial assumes you have background or existing knowledge of programming.

## C# CLASSES / OBJECTS
A class is a template for objects, and an object is an instance of a class. Objects are entities inside a class.
**Example:** `color` is an object of `class car`.
```c#
class Car 
{
  string color = "red";
}
```

## C# FIELDS (variables)
A variable declared directly in a class is often referred to as a field (or attribute).
**Example**
```C#
int myNum = 5;               // Integer (whole number)
double myDoubleNum = 5.99D;  // Floating point number
char myLetter = 'D';         // Character
bool myBool = true;          // Boolean
string myText = "Hello";     // String
```

## C# ACCESS MODIFIERS
Access modifiers are keywords which are used to set the access level/visibility for classes, fields, methods and properties.
**Examples**
`public`, `private` & `protected`: Are what you would probably only use, unless you reach god level status 😂.

`internal`: Are for gods.

## C# PROPERTIES
Properties are just fields (variables) with access modifiers, the moment you put "public, etc." on a field (variable) it becomes a property.
**Example**
```c#
class Car
{
  public string model;  // public
  private string year;   // private
  string type; // private
  
  // The `{set; get;}` means you can access and change the property.
  public string model {set; get;} // public
}
```

## C# CONSTRUCTORS
A constructor is a special method that is used to initialize objects. 
> 💡 A constructor is a method that gets called or runs when a class is created. 
> It can be used to set initial values for fields.
> The constructor name must match the class name.
> It cannot have a return type (like void or int).
>
> All classes have constructors by default: if you do not create a class constructor yourself, C# creates one for you. However, then you are not able to set initial values for fields.

```c#
// Create a Car class
class Car
{
  public string model;  // Create a field

  // Create a class constructor for the Car class
  public Car()
  {
    model = "Mustang"; // Set the initial value for model
  }

  static void Main(string[] args)
  {
    Car Ford = new Car();  // Create an object of the Car Class (this will call the constructor)
    Console.WriteLine(Ford.model);  // Print the value of model
  }
}

// Outputs "Mustang"
```

### CONSTRUCTOR PARAMETERS
Constructors can also take parameters, which is used to initialize fields.

```c#
class Car
{
  public string model;
  public string color;
  public int year;

  // Create a class constructor with single or multiple parameters
  public Car(string modelName, string modelColor, int modelYear)
  {
    model = modelName;
    color = modelColor;
    year = modelYear;
  }

  static void Main(string[] args)
  {
    Car Ford = new Car("Mustang", "Red", 1969);
    Console.WriteLine(Ford.color + " " + Ford.year + " " + Ford.model);
  }
}

// Outputs Red 1969 Mustang
```

---
## REFERENCES
[w3schools](https://www.w3schools.com/cs)
How to Send Email in Django | Django Email Project – DevDuniya
Tags: django, python, programming
Published: 2022-03-24 09:28:57

In this article, we are going to see How to Send Email in Django. Sending an email is quite simple in Django and so, We are going to create such kind of Django Project.
You will have to do the first complete setup for this project then follow the steps given below. To follow along with this tutorial, you need a Gmail account, prior knowledge of Django is required, and Basic HTML. If you don’t have a Gmail account then follow this link to create a new Gmail account or google account.

Before starting the project, Download python programming from their official website and install it in your system. Once python is installed then you can simply check its version by command prompt. Enter the below command in CMD.

python --version
After downloading the python programming, Now install Django with the help of Command Prompt. Enter the command given below:-

pip install django
python -m django --version
Table of Contents  Hide 
1 Step:-1
2 Step:-2
3 Step:-3
4 Step:-4
5 Step:-5
6 Step:-6
7 Conclusion:
7.1 Follow me to receive more useful content:

## Step:-1
Now we will first create a project then we will create an app for that project. Do follow the below steps :

django-admin startproject mailproject
cd mailproject
python manage.py startapp mailapp
python manage.py migrate
python manage.py runserver
After these steps, Now your Django server has been started.

Now you can navigate to http://127.0.0.1:8000/ using your browser to see the default Django homepage.

## Step:-2
Add your app in the settings.py file.

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    #add app
    'mailapp'
]

## Step:-3
Now in the same file settings.py, below all code add some SMTP configuration code.

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = 587
EMAIL_HOST_USER = ""  #add here your actual mail id
EMAIL_HOST_PASSWORD = "" #password of your mail id that you have added above
EMAIL_USE_TLS= True
Step:-4 Now add some code into your views.py file of mailapp folder. So that it will look like this:

from django.shortcuts import render
from django.core.mail import send_mail
# Create your views here.
def mailfunction(request):
	send_mail(
	    'Title of mail',
	    'Messagee',
	    'from@gmail.com',
	    ['to@gmail.ccom'],
	    fail_silently=False,
	)
	return render(request, 'index.html')

## Step:-4
Now make a folder in mailapp with ‘templates’ name, then create a file name index.html. Past the below code in index.html.

## [Read Continue>>>](https://devduniya.com/send-email-with-django-framework/)
Thankyou
Designing and Developing Apps for Foldable Devices
Tags: foldabledevices, mobileappdevelopmen
Published: 2022-03-24 09:27:41

While the foldable innovation appears to be energizing according to the clients' perspective, there is no unmistakable comprehension of what it will mean for [mobile app development](https://externlabs.com/mobile-development.php). The innovation as of now quite affects it with a ton of organizations investigating the new innovation.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uhmnsg1ypwultd0ghzmz.jpg)
Top 10 Python Projects Ideas for Beginners in 2022 - DevDuniya
Tags: python, programming, tutorial, machinelearning
Published: 2022-03-24 09:25:13

Python Projects are essential for beginners who want to be Master in Python Programming and its industrial application. As we know Python Programming is a widely used, high-level, and object-oriented programming language with dynamic semantics. Python was first released on February 20, 1991, and now it is the second-most used language on GitHub. Python Programming is one of the most popular programming languages among developers and it is a leading programming language in data analysis, scientific computing, machine learning, AI, and backend web development. Python Programming is used by many big tech companies because it is so easy to learn, simple in structure, and easy to maintain. If you want to learn python programming with basic then you will have to do Simple Python Projects also so that you can become a master in python programming. If you will do Simple Python Projects then you can understand how Python Programming words. Your small queries will also be resolved and you will learn a lot from projects.
In this article, we have listed the Top 10 Easy Python Projects Ideas that beginners can try in 2022. These Projects ideas are simple and easy and Best for Beginners.

## Simple Python Projects for Beginners in 2022

## No.1:- Mad Libs Generator
One of the best ideas to start your journey in software development is to start working on the Mad Lab generator. This is the perfect project for beginners who start their journey in python programming. Mad Libs generator Project teaches to manipulate user-inserted data as a series of inputs that will be considered as a Mad Lib. After entering all inputs data, the application will take the data and arrange the inputs into a story template form and input can be anything a noun or a pronoun, etc.

## No.2:- Password Generator
This project will help you to learn how to build a random password generator with python programming. They will collect data from users and then generate a collection of passwords with random characters. This project will help you to create a strong password with high security

## No.3:- Number Guessing
This is one of the simple Python projects for beginners yet exiting one and you can call it a mini-game. It is a program in which a computer chooses random numbers within a range. This program will generate a random number from 1 to 10, 1 to 100, or any range that is specified. If the user chooses the right number then his score will increase and if the user chooses the wrong number then his score constantly keeps falling and they are promoted with more hints to make it easier for them.

## No.4:- Student Management System Project
Student Management System Project is like a register where you can add students, delete students, edit any students and you can update the information of any student. 

## [Read Continue>>>](https://devduniya.com/simple-python-projects-for-beginners/)
Thankyou
Boxing Vs. Unboxing in C#
Tags: csharp
Published: 2022-03-24 09:15:16

**Boxing:**
It converts a value type (int, char, etc.), to a reference type (object).
Simple terms: To convert a value to an object type.
Boxing is an implicit conversion process.
Here, the value stored on the stack is copied to the object stored on the heap.

**Programming example (with a hard-coded value):**
![Programming Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxir8mqw924miu0aafz2.png)

**Programming Example (using Convert.ToInt32(Console.ReadLine())):**
![Programming Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0lxzrm93q7y0md7pps1.png)

**Unboxing:**
It converts a reference type (object) back to a value type (int, char, etc.).
Simple terms: To convert an object type back to a value type.
Unboxing is an explicit conversion process.
The object stored on the heap is copied to the value stored on the stack.

**Programming Example (with a hard-coded value):**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p05bxemmyh5avpl61pwy.png)

**Programming Example (using Convert.ToInt32(Console.ReadLine())):**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7acms9cpvw71f1217qtu.png)
Fully Integrate Your App and Sell It on Shopify App Market!
Tags: webdev, startup, ecommerce, shopify
Published: 2022-03-24 09:08:05

**Hi friend!** I am excited to tell you that we are going live with our developer platform for Shopify apps.

The platform supports various key features right out of the box: Building, Serving and Analytics. That way, you can easily focus on making the app attractive to Shopify storefront owners.

**[Get started now — it's free!!](https://www.commoninja.com/developers/shopify/indie-developers?ref=ninja)**

If you have an idea that you believe can improve website owners’ sales — don’t sleep on this opportunity! How can help you to quickly release your app?

## We offer an end-to-end **Developer Platform** for integrating your own apps to Shopify app market.


Our priority is to make the process as simple as possible for you.

This is for the developer who wants to save a ton of time integrating their **code to product,** and see profits come in at warp speed. 

I welcome you to create your first Shopify app with our developer platform for **FREE!**

* **[Sounds good? Let's get started.](https://www.commoninja.com/developers/shopify/indie-developers?ref=ninja)**

Need help getting started?

* **[Connect with other developers on our Discord community.](https://discord.com/invite/cxqUTbvMNd)**

* **[Read the Developer Platform documentation.](https://discord.com/invite/cxqUTbvMNd)**
Mywifiext.net | mywifiext.net setup
Published: 2022-03-24 09:00:46

[Mywifiext.net](https://mywifiext-net-setup.com/) is a website which is a popular local website that provides its services through connecting a device enables with netgear wifi services. Mywifiext.net website plays its role in connecting its device named netgear wifi extender which works as a booster in spreading the range of your internet connection in every corner of your house and office and also provides a better internet speed for your work.

```

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