teleren/devto huggingface dataset:
Getting notebook's machine type on Vertex AI
Tags: vertexai, googlecloud
Published: 2023-11-21 07:36:59

I'd like a Vertex AI notebook to output the machine type it's running. I found this [StackOverflow reference](https://stackoverflow.com/questions/38808800/how-can-i-get-a-machine-type-of-a-google-compute-engine-instance) to use the Compute Engine metadata server.

But this doesn't work with Vertex AI. (Not all roads lead to Compute Engine.)

Here's how I did it, using the notebook ID given in the workbench:

```
gcloud notebooks runtimes describe --format="value(virtualMachine.virtualMachineConfig.machineType)" --location=<region> <notebook_id>
n1-standard-2
```

The `value` format prints out just the return value: no header or other information to parse out. I learned a lot about potential formats, see also: `gcloud topic formats`

So in a notebook running Python, just do:

```
! gcloud etc
```
Black Friday has arrived – get up to 50% off Devart database tools!
Tags: mysql, sqlserver, oracle, postgressql
Published: 2023-11-21 07:31:35

From November 20th through November 26th, select the Devart products you've got your eyes on, and save up to 50% per product. Increase your efficiency in daily work with hefty discounts today!  

Here's what we offer for Black Friday:  

- 15%-50% discounts on dbForge for MySQL, an advanced product line with solutions tailored for effective MySQL and MariaDB database development, management, and administration. 

- 20%-50% discounts on dbForge for Oracle, a product line comprising versatile tools for Oracle Database developers and DBAs. 

- 20%-30% discounts on dbForge for PostgreSQL, a robust set of tools that help easily manage, create, and modify PostgreSQL and Amazon Redshift databases. 

- 15%-50% discounts on dbForge for SQL Server, a collection of tools for database development, management, and administration. 

- Last but not least, there is an excellent 20% discount on a multidatabase solution called dbForge Edge, with vast capabilities for developing, managing, and administering SQL Server, MySQL, MariaDB, Oracle, PostgreSQL, and Amazon Redshift databases. 

Have your eye on one of our products? The time to act is now!  

Don't miss the chance to empower yourself with the best database tools at a reduced price.   

Pick the tools, apply the corresponding promo codes, and enjoy your discounts right now: https://www.devart.com/blackfriday.html
Login Form React Component
Tags: freecodez, react, html, blog
Published: 2023-11-21 05:37:06

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

**Login Form React Component**

![Login Form React Component](https://res.cloudinary.com/freecodez/image/upload/v1700545008/images/e2jxuyhhhuyb6rbyibej.webp)

For full source code visit : [https://freecodez.com/post/ze17atj](https://freecodez.com/post/ze17atj)


```
// https://freecodez.com
const LoginForm = () => {
	return (
		<div class="container">
			<h3>Login</h3>
			<div class="google">
				<button>
					<img src="https://www.freepnglogos.com/uploads/google-logo-png/google-logo-png-google-icon-logo-png-transparent-svg-vector-bie-supply-14.png" alt="Google" />
					<span>Continue with Google</span>
				</button>
			</div>
			<div class="facebook">
				<button>
					<img src="https://www.edigitalagency.com.au/wp-content/uploads/Facebook-logo-blue-circle-large-transparent-png.png" alt="Facebook" />
					<span>Continue with Facebook</span>
				</button>
			</div>
			<div class="or">
				<div>OR</div>
			</div>
			<form>
				<div class="formControl user">
					<input type="text" id="user" required/>
					<label for="user" >Email or username</label>
				</div>
				<div class="formControl password">

					<input type="password" id="password" required/>
					<label for="password" >Password</label>
				</div>
				<div class="stay">
					<div>
						<input type="checkbox" id="check" />
						<label for="check" >Stay signed in</label>
					</div>
					<div>
						<a href="/">Forgot Password</a>
					</div>
				</div>
				<div class="formControl">
					<button type="submit">Login</button>
				</div>
			</form>
			<div>
				<span>Don't have account </span>
				<a href="/">Sign Up</a>
			</div>
		</div>
	);
};

```

Source Code : [https://freecodez.com/post/ze17atj](https://freecodez.com/post/ze17atj)

For more such articles visit : [https://freecodez.com](https://freecodez.com/all)
Himalaya Tiles and Bathroom | Tiles Store In Coventry
Tags: tiles, tilesupplier, floortiles, coventry
Published: 2023-11-21 07:17:41

Welcome to Coventry's premier destination for [tiles and bathroom supplies](https://goo.gl/maps/2xDSx7HUAgPn48dW7)! Our store is your one-stop shop for all your luxurious tiling and bathroom needs. Whether you're a homeowner, contractor, or designer, we have everything you need to create your dream bathroom. From stylish and functional tiles to modern and elegant bathroom fixtures, our selection is sure to impress. We are the best Tiles & [Bathroom store in Coventry](https://himalayatilesandbathroom.freeindex.co.uk/). Our knowledgeable and friendly staff are always available to help you with any questions, and our prices are unbeatable. So why wait? Visit us today else contact us at  +44 7869131647 and transform your bathroom into a luxurious oasis!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yx6z5kqty3uii4he0t2q.jpg)
Himalaya Tiles And Bathroom Offers Premium wall tiles, floor tiles around Coventry, West Midlands. Their Luxurious Bathroom Supply Store in Coventry will be your one stop solution for your any Bathroom Remodeling or Home Improvement Work.
💫Solved: Cara Install Postgresql dan pgadmin di Arch Linux | Manjaro
Tags: postgres, linux, solved, indonesia
Published: 2023-11-21 07:13:00

Halo teman-teman dev, jika sedang bingung atau kesulitan menginstall postgresql dan pgadmin4 di Arch Linux atau Manjaro, selamat karena sudah menemukan blog yang tepat hehe.

Sebelumnya aku pakai referensi instalasi postgresql dan pgadmin via repo [superjojo140](https://gist.github.com/superjojo140/2a0221d517f356965371b3969f37b29f).

Semua proses instalasi lancar namun error pada saat menjalankan pgadmin4.

Oke tanpa banyak basa basi, langsung saja kita eksekusi.

Langkah-Langkah

### Install package

```bash
sudo pacman -S postgresql
```

### Setup Postgresql

```bash
sudo -iu postgres
```

### Inisialisasi database cluster

```bash
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
```

### lalu keluar

```bash
exit
```

### Jalankan postgresql

```bash
sudo systemctl start postgresql
```

Atau jalankan postgresql secara otomatis

```bash
sudo systemctl enable postgresql
```

### Lihat status postgresql

```bash
sudo systemctl status postgresql
```

### Selanjutnya kita coba setup password postgresql

```bash
psql -U postgres
\password
```

### Install pgadmin4

```python
pip install pgadmin4
```

### Coba jalankan pgadmin4

```python
pgadmin4
```

Sampai disini harusnya kita sudah berhasil untuk setup postgresql dan jika ditemukan error /var/log/pgadmin not created, kita tinggal buat folder tersebut dan masukkan izin user:

```bash
sudo mkdir /var/log/pgadmin
```

Demikian solusi install postgresql dan pgadmin yang sedikit tricky di Linux Arch, selamat mengoprek-oprek.
Complicated Task: How you create a personality inventory with HTML and JavaScript
Published: 2023-11-21 07:10:26

Embarking on a journey to bridge the realms of psychology, technology, and research, I was tasked with a unique challenge by Dr. Deenz. Their pursuit was to develop an accurate and insightful personality quiz, a tool pivotal to their research endeavors. Eager to contribute, I harnessed the power of HTML and JavaScript to craft a dynamic personality inventory.

The foundation of the inventory lay in the implementation of a points Likert scale, a nuanced system allowing participants to express the subtleties of their personality traits. The user interface, built with HTML, provided a seamless and intuitive experience for individuals engaging with the quiz.

However, the innovation did not stop there. To ensure the accuracy of results, I integrated artificial intelligence into the backend of the personality inventory. The AI model, meticulously designed, went beyond conventional scoring. It delved into the intricacies of responses, applying advanced algorithms to calculate nuanced points reflective of each participant's unique personality profile.

Working closely with Dr. Deenz, we tailored the personality quiz to align with the specific needs of their research. The goal wasn't just to collect data but to glean meaningful insights into human behavior, enriching their studies with a wealth of diverse perspectives.

As the project unfolded, the marriage of HTML, JavaScript, and AI proved to be a game-changer. The participants not only engaged with a user-friendly interface but also received results that painted a detailed picture of their personalities.

In the realm of research, precision is paramount. Dr. Deenz's vision of an accurate and insightful quiz has come to life, a testament to the harmonious fusion of technology and psychology. Together, we've not only addressed their research needs but also opened doors to a deeper understanding of the human psyche.
Charting Currency Evolution: Harnessing the Forex History API
Tags: forex, forexapi, elklayer, api
Published: 2023-11-21 06:55:22

Understanding the complex evolution of currency dynamics is made possible using the Forex History API. This effective tool gives traders access to a multitude of historical data, giving them a broad picture of previous market behaviours, trends, and patterns that have influenced the state of the currency market. It's like having a time machine that lets you explore the historical legacies of different currencies in great detail.

Through the utilisation of the **[Forex History API](https://elklayer.com/document-api/forex)**, traders can obtain significant understanding of how currency prices change over time. Examining this vast amount of historical data reveals a story about how global trends, geopolitical events, and economic changes have impacted currency movements. In order to predict possible market changes and help traders make better judgements in the current market conditions, this historical backdrop becomes crucial.

Furthermore, traders are able to chart their tactics successfully because to the API's huge data sets and user-friendly UI. Retesting strategies versus past data turns into a crucial tool that helps traders hone and improve their methods. This iterative process helps trading methods become more accurate and also helps them adjust to different market conditions.

"Charting Currency Evolution: Harnessing the Forex History API" summarises the vital function that the API plays in offering a roadmap for the past. By helping traders to piece together the history of currency evolution, it gives them the ability to make more deliberate and smart choices in the ever-changing forex market.
"Transcending Trails: Navigating the Evolution of US Auto Transport"
Tags: car, shipping, auto, transport
Published: 2023-11-21 06:48:30

Using "Transcending Trails," an exploration of the dynamic evolution of US car transport, set out on a revolutionary voyage. The term "US auto transport" echoes as cars crisscross the vast network of US roadways, representing an industry that is always changing. "Transcending Trails" tells a story that considers the industry's present situation while also imagining innovative and flexible future routes for US vehicle shipping.

This title emphasizes the auto transport industry's dedication to going beyond traditional routes by deftly incorporating the idea of **[US Auto Transport](https://bestwayautotransport.com/)** into the story. "Transcending Trails" encapsulates the spirit of an industry that is constantly pushing the frontiers of what is possible, whether it be through navigating through technical developments, sustainability initiatives, or shifting consumer needs.

See the highways of evolution through the eyes of "Transcending Trails," where the industry's commitment to forging new paths and welcoming change is symbolized by every reference to the term. Come along on this fascinating journey where the story of US car transport is about more than just the roads driven it's about the trails crossed in the never-ending pursuit of progress and greatness.
My Journey into Open Source: A Hactoberfest Contribution to Curio
Tags: hacktoberfest, hacktoberfest23, contribution
Published: 2023-11-21 06:47:37

Embarking on my open-source journey during Hacktoberfest was both thrilling and challenging. As a growing developer, this event provided me with a stimulating chance to explore the vast world of GitHub repositories and offer significant contributions. The vast amount of projects can be overwhelming for newcomers, but after careful exploration, I stumbled upon a project that caught my interest - [Curio](https://github.com/Curio-org/Curio). I became interested in the Curio repository and will discuss my experience working on a particular issue for Curio in this blog post.

## The Contribution
I decided to contribute by making improvements to the documentation after carefully considering the project. An issue had previously been created especially for documentation work. Acknowledging the significance of thorough documentation in any open-source project, I saw a chance to improve issue reporting and pull request submission through the creation of templates.

## Crafting a Solution
To address the issue, I created two essential templates - one for reporting the issues and another for pull requests.

1.ISSUE_TEMPLATE.md:
```
---
name: Bug Report
about: Report a bug to help us improve
---
## Bug Report
**Describe the bug:**
A clear and concise description of what the bug is.
**To Reproduce:**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior:**
A clear and concise description of what you expected to happen.
**Screenshots:**
If applicable, add screenshots to help explain your problem.
**Additional context:**
Add any other context about the problem here.
```

2.PULL_REQUEST_TEMPLATE.md
```
**Description:**
Describe your changes in detail.

**Issue:**
Closes # (if applicable)

**Type of change:**
- [ ] Bug fix
- [ ] New feature
- [ ] Code refactor
- [ ] Documentation update

**Checklist:**
- [ ] My code follows the style guidelines of this project.
- [ ] I have tested my changes.
- [ ] I have updated the documentation accordingly.
- [ ] My changes generate no new warnings or errors.

**Screenshots (if applicable):**

**Additional context:**
Add any other context about the pull request here.
```

These templates aimed to streamline the process for users contributing to Curio, ensuring that bug reports and pull requests follow a standardized format.

## Reflections on the Contribution
Working on this issue was a valuable experience. It allowed me to delve into the project's documentation structure, understand the importance of clear and standardized contributions, and improve my skills in writing effective templates.

The collaborative nature of open source was evident throughout the process. Engaging with the Curio, receiving feedback, and ultimately having my pull request approved and merged ([PR #85](https://github.com/Curio-org/Curio/pull/85)) was immensely rewarding.
Simplify Company Set Up in Dubai | Expert Services
Published: 2023-11-21 06:41:58

Are you seeking a hassle-free [company set up in Dubai](https://cbdcorporateservices.com/uae-dubai-company-formation/****)? Look no further! At CBD Corporate Services, we offer expert guidance and support for your UAE business formation journey. Our seasoned professionals ensure a smooth process, from documentation to licensing, making your dreams of a Dubai company a reality. Our commitment to excellence guarantees precision, speed, and 100% compliance with recent SEO guidelines. Take the first step toward your entrepreneurial aspirations in Dubai today. Contact us for a consultation!
Feature Request - Glock Charging Handle on Dev.to
Published: 2023-11-21 06:33:32

Hello Dev.to Team,

I hope this message finds you well. I am an active member of the Dev.to community and have found immense value in the diverse range of discussions and content shared on the platform.

Today, I am writing to suggest an enhancement that I believe would resonate with a segment of the Dev.to community interested in firearms and related accessories. I propose the addition of a specific tag or category for "**[Glock Charging Handle](https://fab-defenseus.com/fch/)**."

As a developer and Glock enthusiast, I find that the combination of technology and firearm customization is a growing area of interest within various communities. Introducing a dedicated space for discussions, articles, and questions related to Glock charging handles would provide a platform for users like myself to share knowledge, insights, and updates on this specific aspect of firearm customization.

I believe this addition would contribute to the inclusivity of Dev.to by catering to the diverse interests of its user base.

Thank you for considering this feature request. I appreciate the continuous improvement and adaptability of Dev.to, and I look forward to the possibility of seeing a "Glock Charging Handle" tag or category on the platform.

Best regards,
Hazel Loper
Dockerizing a Next.js App: A Step-by-Step Guide
Tags: docker, nextjs, javascript, cloud
Published: 2023-11-21 06:33:29

## Introduction
Docker is a helpful tool in software development, especially when integration of new features and frequent deployments are required. This tool makes it easy to containerize applications and their dependencies, ensuring they remain consistent across various environments. In this article, you'll learn how to dockerize a [Next.js](https://nextjs.org/) application.

## Prerequisites
Before getting started, you will need to have the following tools installed on your system:

- [Docker](https://www.docker.com/)
- [Node.js](https://nodejs.org/)

## Step 1: Create a Next.js App
If you don't have a Next.js app yet, create one using the following commands:

```
npx create-next-app my-next-app
cd my-next-app
```
Run `npm run dev` to see if the app is running properly.

## Step 2: Setup a Dockerfile
Create a file called `Dockerfile` in the root of your Next.js app. This file will contain the following instructions for building a Docker image for your application:

```
FROM node:21

WORKDIR usr/src/app

COPY . .

RUN npm install

CMD ["npm", "start"]
```
From the file above, the:
- `FROM node:21` command defines the image we want to build from, often called the **base image**. Here, we used the latest version of Node available as seen from the [Docker Hub](https://hub.docker.com/_/node)
- `WORKDIR usr/src/app` specifies the working directory as `usr/src/app`, for executing any command you add in the Dockerfile.
- `COPY . .` command copies all the files and folders from the current directory to the working directory.
- `RUN npm install` installs all the necessary dependencies inside the container.
- `CMD ["npm", "start"]` command defines how to start the application in the container.

## Step 3: Create a .dockerignore File
Create a `.dockerignore` file at the root of your app and add the code below

```
node_modules
.next
```
This allows Docker to know what to ignore during the build process.

## Step 4: Build the Docker Image
Open your terminal and run the following command to build the Docker image:

```
docker build -t my-next-app .
```
This command tells Docker to build an image using the instructions in the Dockerfile and give it the name `my-next-app`.

## Step 5: Run the Docker Container
After successfully building the Docker image, run the container:

```
docker run -p 3000:3000 my-next-app
```
This command maps port 3000 on your local machine to port 3000 in the Docker container. Open your browser and navigate to http://localhost:3000 to see your Next.js app running inside a Docker container.

## Conclusion
In this article, you learned how to dockerize your Next.js application by following the steps outlined.

Dockerizing a Next.js app allows for easy deployment and ensures consistency across environments. This approach makes project development and deployment processes more efficient and scalable.
Rubicweb perusahaan Jasa Website Profesional & Jasa SEO Terbaik
Published: 2023-11-21 06:24:12

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/71iee1t8566upwrposmk.jpg)
[Rubicweb ](https://rubicweb.com/)dari [PT. Rubic Kirana Solusindo](https://rubicweb.com/) berdiri  sejak tahun 2012 sebagai perusahaan berbasis teknologi digital, berpengalaman menangani kebutuhan bisnis perusahaan lokal maupun internasional mulai dari [Jasa Pembuatan Website](https://rubicweb.com/) dan Jasa Digital lainnya yaitu :

[Jasa Pembuatan Aplikasi Android](https://rubicweb.com/)
[Jasa SEO & SEM](https://rubicweb.com/)
[Jasa Desain Promosi](https://rubicweb.com/)
[Pelatihan Website & Digital Marketing](https://rubicweb.com/)
[Instalasi Smart Home](https://rubicweb.com/)
[Jasa Instalasi Jaringan Internet](https://rubicweb.com/)
[Jasa Pasang CCTV](https://rubicweb.com/)

Sebagai perusahaan [Jasa Website Profesional](https://rubicweb.com/) & [Jasa Website Terbaik](https://rubicweb.com/), Rubicweb selalu memberikan pelayanan dan kualitas proyek yang baik sehingga memberikan kepuasan pelanggan akan kinerja kami. Rubicweb memberikan layanan [Jasa Website Murah](https://rubicweb.com/) dengan harga [website dibawah 1 Juta](https://rubicweb.com/) untuk mendukung UMKM di Jakarta, Bandung dan seluruh wilayah di Indonesia serta Internasional

Untuk sektor kesehatan, Rubicweb memiliki OMR sebagai layanan [Aplikasi Rekam Medis Elektronik](https://rubicweb.com/product/rekam-medis-elektronik/) / RME yang dapat membantu proses pencatatan Rekam Medis Pasien, hingga pencatatan transaksi melalui [AKUNTANS ](https://akuntans.id/)sebagai  [Aplikasi Kasir](https://rubicweb.com/product/aplikasi-kasir-1-juta/) dan [Aplikasi Akuntansi Gratis](https://akuntans.id/
![Image description] serta terbaik yang kami miliki sehingga dapat mendukung bisnis anda.
Ruby Intro
Published: 2023-11-21 06:16:56

ruby is a programming language that allows us to make our web apps interactive

what I've learned so far about ruby's syntax is:
variable = "value"

variable can be a:
-"string"- any text
-boolean: true or false
-Integer: 0
-Float: 3.568
-array[]
-symbol:
-{#hash}

there are different types of loops, like .each and .loop
if, else, elsif, unless, and i think while statements
always end with **end**

**the index for an array starts with 0 being the first number**
[ 1, 2, 3, 4 ]
   
so array[0] would = 1

there are different methods to manipulate or get data 
such as:
.times
gets.chomp
.upcase
.downcase
.length
.split
.each
.loop
.to_i
.to_s