teleren/devto huggingface dataset:
Bastion host - AWS
Published: 2023-03-18 05:42:18

## Bastion Host
A bastion host is a server that provides access to a private network from a public network, such as the Internet. A bastion host must minimise the chances of penetration due to its vulnerability to attack.


## Requirements to be considered



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





## Option 1: Windows RDP

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

Bastion via RDP to access Windows user interface, and therefore, to any tool that can be installed on the machine as if they were working on their local machine.


RDP is known to have some security vulnerabilities

By default, only two concurrent users are allowed without extra charges. To have more users we must purchase Client Access Licenses (CALs) and consequently manage users

Windows Server AMI build with all the required tools takes time and the same goes for any security patching or update




## Option 2:Amazon Workspaces 


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


Amazon Workspaces is like a GUI Bastion but as a managed service which can be deployed in a private subnet. Each user has its own machine (Windows or Ubuntu) with a user interface, and users are managed via Simple AD or Microsoft Active Directory.

Amazon Workspaces comes at a price which is either a $30 flat-fee per user per month.
Creating a bundle cannot be fully automated.
Managing users and Workspaces is time consuming.



## Option 3:VPN


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


All traffic is redirected to the VPN and the VPN outgoing IP is used in the resources’ security group


Setup add more complexity, more resources to manage

Users’ local machines become part of our private network it increases the surface of attack, adding components we have almost zero control over



## Option 4 :AWS SSM



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




AWS Systems Manager Session Manager is like an SSH Bastion , much more secured. The EC2 instance can be in a private subnet and no rule in the instance security group is required.
 Logging and auditing can be done easily - to track every command executed during a session.
Centralized access control to instances using IAM policies
No open inbound ports and no need to manage bastion hosts or SSH keys
Cross-platform support for Windows, Linux, and macOS
Logging and auditing session activity
Auditing (AWS CloudTrail) and Logging (CloudWatch and S3, with KMS Encryption of Logs)
Encryption using AWS KMS
Setting lokal NTP linux
Tags: ntp, pens, linux, beginners
Published: 2023-03-18 05:14:33

Pertama dilakukan adalah menginstall **ntp** nya seperti pada gambar dibawah ini

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



Setelah menginstall masuk ke konfigurasi, edit file konfigurasi 

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

dan komen line 4 pool dibawah ini:

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

Setelah itu, pada baris paling bawah tambahkan kode yang menunjukan netword ID dari komputer dan netmask nya juga.

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

Restart service dari ntp, dan saya melakukan pengecekan status untuk memastikan ntp berjalan dengan baik.

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

lakukan command dibawah untuk mengecek apakah server ntp sudah ditambahkan, dan hasilnya seperti pada gambar dibawah ini.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bxfiub4t3t3p95biqose.png)
Zerando HackerRank ( 17 )
Published: 2023-03-18 05:06:45

E no décimo sétimo episodio desta serie que queima os miolos, vamos abordar um problema envolvendo arrays em 2D.

Neste problema receberemos uma matriz 6 x 6 como podemos ver na imagem abaixo:

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

Vale a pena ressaltar que uma matriz nada mais é que um conjunto de arrays semelhantes. 

A grande jogada nesse desafio é que devemos calcular uma espécie de ampulheta, se baseando na posição de cada item da matriz.

Devemos nos basear como o exemplo abaixo:

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

O objetivo é encontrar a soma de todas essas ampulhetas, imprimindo a maior de todas elas.

Para isso iremos criar a função "hourglassSum". A função vai usar dois loops _for_ aninhados para percorrer a matriz e para cada conjunto de 3 x 3 encontrados, calculando a soma dos elementos e comparando com a maior soma encontrada até o momento.

A cada iteração, a função verifica se a soma atual é maior ou menor do que a maior soma encontrada até agora e retorna a maior soma. Se a maior soma encontrada for menor ou igual a zero, a função retorna a primeira soma negativa ou zero encontrada.

Nossa função deve ficar assim:

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

E assim fechamos mais um desafio.
best civil engineering colleges in india
Published: 2023-03-18 04:55:24

The Graduates In Civil Engineering Help Design, Construct And Maintain These Structures With Their Analytical Abilities Acquired After Completing The B.Tech At Best Civil Engineering College In Punjab, India.This Enables Our Students To Grab A Good Placement Opportunity Or To Continue Their Higher Education In Their Selected Area Of Research. 

Visit us on:-
https://ggi.ac.in/civil-engineering-2
🤖💡 The Exciting 😃 and Terrifying 😱 Future of AI 🌐
Tags: ai, future, exciting, terrifying
Published: 2023-03-18 04:31:56

Imagine a world where technology is seamlessly integrated into every aspect of our lives. From self-driving cars that eliminate human error to AI-powered medical diagnostics, the possibilities are endless.

One of the most compelling applications of AI is in education. Personalized learning powered by AI can help bridge the gap between students and their learning styles. It can identify areas of strength and weakness, offering tailored lessons that will enable each individual to reach their full potential.

But wait, there's more! Artificial intelligence can help combat climate change by optimizing energy consumption and guiding us towards sustainable solutions. AI can even play a role in fostering global peace by predicting and preventing conflicts. The sky's the limit!

![Image description](https://media3.giphy.com/media/xUjSOWCndCdECCyOEY/200w.webp?cid=ecf05e47vwtpgrhsmqp4mbtcglyqyk9uhdov6xn7d67azlui&rid=200w.webp&ct=g)



let's not forget the darker side of AI.I must remind you of the potential risks and challenges AI could bring.

First, there's the issue of job displacement. Automation is rapidly replacing human labor, and AI is no exception. As we advance, there is a legitimate concern that many jobs will be lost to machines, leaving the workforce with fewer opportunities.

Moreover, the rise of AI has brought up the ethical debate around surveillance and privacy. AI-driven facial recognition technology, for example, has been criticized for its potential to enable mass surveillance and invade people's privacy. And let's not forget the dangers of AI being weaponized for cyber warfare or autonomous military drones.

Finally, there's the risk of artificial general intelligence (AGI), which could surpass human intelligence. If this occurs, we might lose control over AI, leading to unforeseen consequences.


![Image description](https://media1.giphy.com/media/3KQFqhgLN9ngkYr0qS/giphy.gif?cid=ecf05e47hlv8nf1vh51ba61me3f8c3m62dg2x5v1g2yo1g93&rid=giphy.gif&ct=g
)

It's crucial to remember that humans are in control of AI development. We have the power to create regulations and safeguards that can steer us away from dystopian outcomes.But we must proceed with caution and ensure that AI development aligns with ethical principles and human values.

And there you have it, folks! The future of AI is a fascinating and complex subject. As with any technological advancement, there will be challenges to overcome, but the potential benefits could be extraordinary. So, what do you think? Are you excited or terrified?


![Image description](https://media4.giphy.com/media/1ynmKt7JBSBCGxzDVP/200w.webp?cid=ecf05e47zhf22dakyf6fsoiks7qqcrfq72um3f10nzhwupe3&rid=200w.webp&ct=g)
I made a tool to translate i18n files using ChatGPT
Published: 2023-03-18 04:29:15

I created a tool that utilizes ChatGPT to translate i18n files for developers.
As a novice independent product maker, I have recently been impacted by the wave of AI. Inspired by some excellent products, I created this open-source tool. This tool uses the powerful translation ability of GPT to automatically generate i18n files, making it easy to translate a website into various languages.
Initially, I found that some similar products provide similar capabilities through websites, but from a developer's perspective, they can be cumbersome to use. Therefore, creating a command-line tool is the most convenient and developer-friendly option. So developers please give it a try：
https://github.com/Quilljou/transmart
The Art of Debugging: Strategies and Techniques for Efficient Troubleshooting
Tags: webdev, programming, productivity, career
Published: 2023-03-18 04:26:51

Debugging is an essential skill for any developer, and yet it can be one of the most frustrating and time-consuming tasks. In this post, we'll explore strategies and techniques for efficient troubleshooting that can help you become a more effective and confident debugger.


**Understand the problem** 🤔- Before you start trying to fix a problem, it's important to understand exactly what the problem is and how it's affecting your code. Take the time to reproduce the problem and gather as much information as possible.

**Use the right tools** 🧰- There are many tools available for debugging, including IDEs, debuggers, profilers, and log analyzers. Make sure you're using the right tool for the job and that you're familiar with its capabilities.

**Simplify the problem** 📉- Break down the problem into smaller pieces and isolate the code that's causing the issue. Use a process of elimination to narrow down the possible causes and focus your debugging efforts.

**Test your assumptions** 👨‍🔬- Don't assume that you know what's causing the problem without testing your assumptions. Use logging, assertions, and unit tests to validate your assumptions and ensure that your fixes are working as expected.

**Collaborate and seek help** 🤝- Don't be afraid to ask for help when you're stuck. Collaborate with your team members or seek help from online communities or forums. Sometimes, a fresh perspective can help you see the problem in a new light.


Debugging is a skill that requires patience, persistence, and creativity. By following these strategies and techniques, you can become a more efficient and effective debugger, and save yourself time and frustration in the long run. Keep honing your debugging skills and don't be afraid to tackle even the most challenging problems!
Days5_if this else that?!
Published: 2023-03-18 04:25:40

If Statements is These statements are a bit like asking a question. You are telling the computer: if something is true, then do this specific block of code. Double equals (==) is asking the computer to compare if these two things are exactly the same.

```

def exercise_1():
  name = input("what's your name?: ")
  if name == "Davit" :
    print("Welcome Dude!")
    print("You're just the baldest dude I've ever seen")
  else:
    print("Who on earth are you?!...")
    
def exercise_2():
  catsOrDogs = input("Are you a cat person? Or a dog person?: ")
  if catsOrDogs == "cat":
    print("Meowwww")
  else:
    print("Woof")

def exercise_3():
  drink = input("Do you prefer coffe or tea?")
  if drink == "coffe":
    print("Tea is Better")
  else:
    print("Excellent choice")

def challenge():
  Text = ("--Marvel Movie Character Creator--")
  print(Text)
  like = input("Do you like 'hanging around'?:")
  if like == "no":
    print("Then you're not Spider-Man")
  else:
    print("Nice")
  have = input("Do you have a 'gravelly' voice?: ")
  if have == "no":
    print("Aww, then you're not korg")
  else:
    print("Nice")
  feel = input("Do you often feel'Marvelouse?: ")
  if feel == "yes":
    print("Aha! You're Caption Marvel! Hi!")
  
def call():
  exercise_1()
  exercise_2()
  exercise_3()
  challenge()

call()`

```
If the condition is not met with the if statement, then we want the computer to do the else part instead. Likewise, if the condition is met in the if statement, then the else bit is ignored by the computer. The else statement must be the first thing unindented after the if statement and in line with it
Day 1 with Bytewise as a Frontend Developer Fellow
Published: 2023-03-18 03:23:18

<u>## **Day 1 with Bytewise as a Frontend Developer Fellow:**
</u>

**Day 1:** First step in my fellowship program. My journey to become a Frontend Web Developer starts today with Bytewise Limited fellowship program.
On the #Day1, I learned about the basics of websites structures with HTML, CSS.

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


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


**Day 1:**

I have learned about the Web Development Tools and languages, In the mentioned 2 videos the concept of web development is easily explained.

Also, I learned about how the Websites working with the help of these languages.


**Practice and Learning:**

HTML basic structure:

- html opening tag

- header open

- title open

- title close

- body tag

- all things are here

- body tag close

- html tag close


**Done:**

I setup my Twitter and other accounts for fellowship program.

I watched the 2 given tutorials on the basics of web development.

On the Day1, I learned about the basics of websites structures with HTML, CSS.


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


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

**Today:**

Today I learned some basics about WEB development.


**Time:**

2+ hours


**Next:**

Now, I will practice 3 to 4 hours to improve my basics of HTML and CSS in coming days.

I will improve my social media profiles, so that everyone having knowledge of web development connect with me and I connect with the real people.


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

#Bytewise #100daysofcode #100daysofbytewise #day1bytewise
#webdeveloper #css #html #frontend
____________________________________________________________
A Short Explanation Of Docker
Tags: docker, devops, devjournal, programming
Published: 2023-03-18 03:22:40

Docker is a containerization platform that allows developers to package their applications and dependencies into a single container that can run on any environment. Containers are lightweight and portable, making them a popular choice for deploying applications in production.

At the core of Docker is the Docker engine, which is responsible for creating and managing containers. Developers can use Docker to build, ship, and run their applications, making it a valuable tool for software development and deployment.

One of the key benefits of Docker is its ability to isolate applications from the underlying host system. This isolation ensures that applications run consistently across different environments, regardless of the host operating system or hardware.

Docker also provides a range of tools and services to help developers manage and deploy their applications. These include Docker Compose, which allows developers to define and run multi-container applications, and Docker Swarm, which provides orchestration and management of containerized applications across a cluster of hosts. 

To know better, [Streamline Application Development and Deployment with Docker’s Containerization Technology](https://medium.com/me/stats/post/fd66a8f1c157)
Walrus Operator Python
Tags: python, cleancode, pep, programming
Published: 2023-03-18 02:32:57

Here is a video where I talk about the Walrus Operator in Python, which is a less commonly used operator in Python that can increase the readability of code by assigning and evaluating an expression on one line of code. Why is it called "Walrus", well apparently it looks like the eyes and tusk of a walrus... `:=`

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

I suggest you watch this quick video if you never learned about this before to enhance your understanding of the language, thanks!
Post-Quantum Market Sizing and Transition Costs: Fact Vs Fiction
Tags: postquantum, sdn, it, cybersecurity
Published: 2023-03-18 02:20:45

Post-Quantum Market Sizing and Transition Costs: Fact Vs. Fiction. 

There is an argument that the transition to post-quantum encryption is going to be costly. It would seem that this assumption is all wrong. 

The transition to post-quantum encryption will only be more costly if we Frankenstine it to the current telecom and IT infrastructure we already use—old, slow, and expensive technology past its time,  designed 30 years ago. 

There is an opportunity however to deploy post-quantum encryption with new hardware and software that writes overtop of everything we currently use, replacing every part and component of every company, every fiber optic connection, with newer less expensive, more secure, technology that is more streamlined and modern. This in terms of total cost of ownership will be less than fitting post-quantum encryption to existing technology redesigned with post-quantum encryption integrated into it. 

The transition to post-quantum encryption should involve reducing overall IT costs for organizations. If we are unable to reduce cost as a part of the transition then we are not leveraging modern technology—with modern defined as developed within the last seven years. 

The transition to post-quantum encryption is an opportunity to redesign enter IT systems, to redesign the Internet and security over it. It is an opportunity to reshape supply chains, to eliminate waste, to eliminate 1990s technology cost centers with vendor locks ins. 

The good news is that big change is coming that will benefit customers. On the other hand if history is a guide, some companies in IT will not be here in 5 years. Those who fail to adapt, who do the minimum to survive, will end up like Kodak ahead of the invention of digital cameras. 

Post-quantum encryption paves the way for all of IT to transition to software defined networks that are that new digital camera, with fixed custom hardware for security being the old film cameras.  The change ahead is not limited to Software Defined Networks. Advances in technology allow us to streamline nearly every aspect of Internet Security, making it faster, less expensive to operate, and more secure.  

Nothing is better for the customer than this kind of radical change. This is how we meet unmet needs that vendor lock-ins and hardened supply chains prevent from being solved. What is more, if the customer gets what they want then we are doing what is right by the most important person in the world—the customer. Nothing else matters. 

Ask us how we lower your IT costs, secure your cloud storage data, while meeting today's encryption standards and with the ability to deploy post-quantum encryption across your entire network with one API call.
The button to submit the form on click is disabled
Tags: javascript
Published: 2023-03-18 01:13:29

I am unable to solve the following problem on the page psi-fitko.cz/kontakt. That is, when you try to send the form, when you click on the send button, the disabled attribute is set to this button (see [this video](https://streamable.com/uvzmpb)). Don't know why and how to fix it?
3 Tips UI/UX designers to keep in mind when exporting images
Tags: uxdesign, design, webdev, beginners
Published: 2023-03-17 23:52:18

As a UI/UX designer, you can make the developer's job easier by creating a **user-friendly design that is easy to navigate and understand.** 


I am happy to share with you some great tips to create more user-friendly designs. These tips will help you to enhance the user experience and make the developers job easier. 

Here are 3 great tips for creating a user-friendly UI/UX design that you should know before working with a developer.

## 1. Export without unnecessary margins and without mask processing.

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

When exporting images, it is important to avoid unnecessary margins and mask processing. These elements can cause frustration for developers who may need to spend extra time adjusting to accommodate for them. By taking the time to ensure that your designs are clean and easy to work with, you can make the development process smoother and more efficient. This will ultimately result in a better user experience for your audience as well. Additionally, creating designs that are easy to work with can help build a positive relationship between designers and developers, leading to more successful collaborations in the future.

## 2. Using a common name for coding with layer names.

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

Don’t you export file as random name?

When creating a design, it's important to use descriptive and consistent layer names to make it easier for developers to understand and use the design data. Using random or unclear names can cause confusion and frustration for developers, who may need to spend extra time renaming layers to match their coding conventions. By taking the time to use common names for coding with layer names, you can make the development process smoother and more efficient. This will ultimately result in a better user experience for your audience as well. 

## 3. Resizing the image to an integer size.

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

Did you export your image data as decimal size?

When exporting image data, it's important to ensure that the size is an integer value rather than a decimal value. If the image data is exported with a decimal size, it can cause frustration for developers who may need to spend extra time adjusting to accommodate for the non-integer value. Resizing the image to an integer size can make the development process smoother and more efficient. Take the time to do this before proceeding.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73ec4awlv9hpblt6ghnj.png)
 
Thank you for taking the time to read this article. If you found these tips helpful, please consider following my blog and Instagram for more insights and advice on UI/UX Design. Your support is greatly appreciated!

[My instagram](https://www.instagram.com/yamalab_design/)