teleren/devto huggingface dataset:
Don't go straight into cyber
Tags: cybersecurity, webdev, programming
Published: 2023-09-08 17:48:04

When I look back on all the things I've learned just to get to the point where penetration testing made sense for me, I can see now why I was told SOOO many times 'don't go straight into cyber.'

But, and let's be real here... my inner monologue was:

"Help desk sucks, and I don't want to be forced into systems administration because that's even worse. Networking? Oh man that's simple and the only reason it seems hard is that it's so boring. Coding? That stuff makes me want to punch a wall it's so hard (I'm talking production level code)."

I JUST WANTED TO BE IN SECURITY... and in my case I love popping boxes and finding vulnerabilities in code.

Here's the thing though, while prepping for my OSCP I have utilized sysadmin while setting up VMs, setting up MS Server, and a whole lot while interacting with Linux.

My web dev skills have come into play while analyzing code and vulnerabilities in web apps... and at various points while setting up web servers to host client code for analysis.

Networking... guys that comes up all over the place and I'm not kidding about that at all. Do not skip networking! The CCNA will SAVE YOUR LIFE!

What I'm saying is that unfortunately for the new people I'm doubling down on the statements put forward by others saying you can't go straight into cyber... at least you shouldn't. And you DEFINITELY can't go straight into pentesting!

In today's job market especially, I'd be looking at networking combined with cloud expertise as a staging ground for a career in cyber security.
What is MinIO? Part 1
Tags: minio, opensource, go, git
Published: 2023-09-08 17:26:42

## Introduction

Object storage as a Service has got hot these days. Amazon S3 is the market leader right now and the S3 API is the defacto standard for sharing objects in the cloud. MinIO is fully API compatible with Amazon's S3 API and can be easily run in multiple cloud enviroments in this blogpost we will take a look at MinIO basic components.

## Key components of MinIO

### MinIO Server

MinIO Server. MinIO is a distributed object storage server. It boasts the most comprehensive implementation of the Amazon S3 API to be found anywhere outside of Amazon itself. 

### MinIO Client

MinIO Client. Is a handy CLI tool managing objects on the MinIO Server this client provides great functionality managing Object Storage in cloud environments. Scripting abilities provide great functionality for DevOps teams.

### MinIO Console

MinIO Console. The MinIO Console is a browser-based GUI that incorporates all the functionality of the MinIO Client in a design that feels familiar to IT admins and developers alike. 

## Conclusion

MinIO is a great way to store unstructered data as objects in th cloud. Powered by Kubernetes its is simple to use in modern cloud enviroments and is a easy and fast way to scale data as objects. With the rise of of AI based systems like Large language models and other ML based tools its a hot choice for cloud based solutions.

Stay tuned for part 2 of the series whre we will dive deeper into managing object-storage data with the use aof MinIO and the programming language Go.

Don't forget to follow me on X   [Twitter](https://twitter.com/NorbertFuhs)
Introduction
Tags: beginners
Published: 2023-09-08 17:08:26

Hi guys! My name is Seog-Jun(Or James) and I'm currently studying Computer Programming & Analysis at Seneca Polytechnic in Toronto. At the same time, I'm working for a POS software company as a QE Automation Engineer. 

Open Source course is one of the courses that I really wanted to take. We only used to deal with labs and assignments created by professors and there were no chances to experience bigger projects in the field, so this is definitely a great opportunity to look into open-source code and contribute to the project throughout the course. 

To be honest, I love programming and fixing a bug even though it takes lots of time, but it always gives me a sense of achievement that makes me keep working. However, I'm still not sure what kinds of programming languages I like and what positions I prefer(e.g. front-end or back-end), I can say in a positive way that I'm open to anything given to me. Through the Open Source course, I'd like to experience a language that I have little knowledge of and check whether I like it or not. Also, I hope I can contribute to the project I choose and improve my teamwork skills while collaborating with maintainers. 

For this semester, I will mainly work on Typescript as I almost forgot about it, and Typescript is being widely used in the field. After searching for projects in Typescript on the Trending page, I came across a trending project on GitHub called Documenso(https://github.com/documenso/documenso). This is a Docusign alternative and it makes signing documents fast and easy digitally. The reason I chose this project is they're currently working on a large-scale refactor using Typescript to fully take advantages of its safety features such as generics and type guards.  

That's all for me today and I'm looking forward to taking this fantastic journey! Thanks for reading my first post.
Glad my Leetcode grinding somewhat pay off
Tags: career
Published: 2023-09-08 17:06:47

Just finished Goldman's technical assessment yesterday. I passed 15/15 on Question 1, and 13/14 on Question 2. I'm happy with my performance this time since last Fall when I first took it, I could not even pass half the amount of test cases on both questions. That being said, I still need to work harder. Keep Grinding!
Let the Journey Begin !
Tags: firstpost, vue, fastapi, postgres
Published: 2023-09-08 16:43:35

This is my first post. During my journey, I am planning to develop an Open source Application using mainly Vue.js,  FastAPI, Postgres among main component alongwith other open source tools. This is my first Open source Application, so expecting steep learning curve. 

I have set a timeline of 8 weeks for this project (🤞🏻🤞🏻🤞🏻) and I will keep on posting my progress on Twitter everyday and expect to publish at least 3-4 blogs/posts on Dev.To as well.

During the journey looking forward for your support and feedback on various aspects of my choices whether on design, component or code.

Let the Journey Begin ! 😃😃

Credit for Image : Photo by <a target="_blank" href="https://freerangestock.com/photographer/Pexels/4556">Pexels</a> from <a target="_blank" href="https://freerangestock.com">Freerange Stock</a>
Proactive Code Security Testing - Discover Before YOU Commit
Tags: testing, opensource, security, cybersecurity
Published: 2023-09-08 16:59:21

[True Positives](https://www.true-positives.com) is dedicated to providing accessible and effective solutions for application security. We offer a range of tools and services, both FREE and affordable, _including those to support security-conscious developers seeking to smoke-test the security of their projects_, including:

**True-Inspect.com** provides fast, reliable web software and system vulnerability scans on demand. Begins with a Standard service that is free without strings or limits.  

**OWASP Penetration Testing Toolkit("PTK")** allows you to secure your applications from the beginning by making your browser smarter. Free, Open Source solution.

Learn More:https://www.true-positives.com/free-open-source-tools
My favorite sveltekit setup
Tags: svelte, webdev, sveltekit, tailwindcss
Published: 2023-09-08 16:55:14

What I immediately liked about the UI kit **flowbite** was its dark-mode integration. Meanwhile, it has grown into one of the most popular tailwind component libraries and has graced the svelte community with a solid component library. 

However, setup, customization and adding common structure & utilities is a waste of time if your goal is to jump right into development. 

After using our boilerplate within the company, it is now open sourced and ready for your consideration: 

| Repo | Hosted | 
| --- | --- |
| [github](https://github.com/sroehrl/svelte-flowbite-boilerplate) | [gh page](https://sroehrl.github.io/svelte-flowbite-boilerplate) |

## My one minute setup

After running the npx command, I quickly adjust colors in _src/lib/colors.js_. Then I share the complete project on Github. In order to enable easy client reviews, I go to the settings of the repository and enable Github pages based on Github actions (the package is equipped with a deployment script triggered at pushes/pulls to "main", there's nothing additional you need to do).
Next, I adjust the file _static/manifest.json_ to my needs.
That's it: I am ready to develop.
New tech resolution
Tags: webdev, productivity, codenewbie
Published: 2023-09-08 16:54:15

A couple of days ago I stumbled into Linus trovald's (the guy who created Linux) GitHub account and I was really amazed to see that he still codes. His commit calender showed that he makes a push almost everyday, he currently has somewhere about 2093 contributions in the last year. What got me wondering was the fact that he still codes am like you are already rich. Then I evaluated this thought and his action and I came to a conclusion that he probably does it because he loves tech he loves what he created. I also love tech but I sometimes don't commit. This sparked a self evaluation episode. I came to the conclusion that loving something without displine is useless. So from now on I will work really hard and try to make a commit at least once a day. That's the only way for me to become better. Even if I don't have a new project I will go back to my projects and add small new features.
Recovery
Tags: recovery
Published: 2023-09-08 16:47:05

Contacting daniel meuli recovery will allow you to quickly locate lost bitcoin. You must contact daniel meuli recovery if you require a recovery hub for your lost bitcoin, need assistance with a mistyped password, want to move cryptocurrency to the correct wallet address, or think your wallet has been exploited.  I played a bitcoin win game and lost more than $75,000. Thanks to daniel meuli Recovery's excellent effort, the money I unlawfully lost has been restored.This hacker collective uses cutting-edge computer tools that can quickly recover monies. daniel meuli Recovery is a reliable company that can be reached by using:
danielmeuliweberecovery@email.com)  or via whatsapp  +1 (323) 433-3594
Barsatein: A Must-Watch Series on SonyLIV - Here's Why
Tags: webdev, javascript, tutorial, react
Published: 2023-09-08 16:46:18

In the world of digital entertainment, where content is king, finding a series that truly captivates your senses can be a daunting task. However, if you're a connoisseur of compelling storytelling, exceptional acting, and a blend of drama and suspense that keeps you on the edge of your seat, then look no further than "Barsatein." This remarkable series, available exclusively on SonyLIV, has taken the streaming world by storm, and for good reason. In this article, we delve deep into why "[Barsatein](https://dodilmilrahehain.com)" deserves your undivided attention.

**

## Unveiling the Intriguing Plot
**
At the heart of any exceptional series lies its plot, and "[Barsatein](https://dodilmilrahehain.com/)" does not disappoint in this department. Set against the backdrop of a bustling metropolis, the series weaves a mesmerizing narrative of love, betrayal, ambition, and redemption. With each episode, the audience is drawn deeper into the lives of its well-crafted characters, each harboring their own secrets and desires.

The plot of "Barsatein" is a tapestry of interconnected stories, masterfully entwined to create a web of intrigue. As viewers follow the characters through their triumphs and tribulations, they are left guessing at every turn, making it nearly impossible to predict what will happen next. This unpredictability is the hallmark of a well-written series, and "Barsatein" excels in keeping its audience guessing.
Create a File Uploader with Progress Bar in React.js
Tags: react, progressbar, uploadfile, webdev
Published: 2023-09-08 16:37:49

Uploading Files in any web application is very common these days, so providing a good user experience to the users during large file uploads is nice to have. So in this post, we will learn how to create a simple React.js component in which you can upload a file and show how much it is uploaded in percentage (%) so the user can patiently wait for it to complete and doesn't worry about how much he's to wait.

So here I'm assuming that you're using `axios` library for making API calls, as this is the most popular library making api calls with lot of features. Within this library, when we hit an api endpoint, we may provide addition parameters by using them we can show users the upload progress bar. Let me create an example component:


```
import React, { useState } from "react"
import axios from "axios"

const UploadFile = () => {
    const [state, setState] = useState({ percentage: 0, isUploading: false }) // can have more properties like fileName, size etc.

    const onChange = async ({ target: { files } }) => {
        const file = files[0]

        if (!file) return

        const formData = new FormData()

        formData.append('file', file)

        setState(prevState => ({...prevState, isUploading: true }))

        await axios.post('http://any-url-to.upload', formData, {
            onUploadProgress({ loaded, total }) {
                if (!total) return

                const percentage = Math.floor((loaded / total) * 100)

                setState((prevState) => ({
                    ...prevState,
                    percentage: percentage,
                    isUploading: percentage !== 100,
                }))
            },
        })
    }

    return (
        <div>
            <input type="file" onChange={onChange} />
            {state.isUploading ? (
                <div style={{ background: "orange" }}>
                    <div>
                        <h2>{`Uploading File: ${state.percentage} %`}</h2>
                    </div>
                    <div className="progress-bar" style={{ background: "white", height: 30 }}>
                        <div style={{ width: `${state.percentage}%`, background: "green" }} />
                    </div>
                </div>
            ) : (
                <div>
                    {state.percentage === 100 ? <h1>
                        Your file is uploaded!
                    </h1> : <h1>Please select a File to upload</h1>}
                </div>
            )}
        </div>
    )
}

export default UploadFile;
```

As we can see, showing the Upload progress in React is pretty simple, all we need to do is manage state for the File or Files and when we got to upload, we may provide a custom callback function to the `axios` config's `onUploadProgress` method, and then update the state accordingly to show the user the expected behavior for the File being uploaded with progress bar, which can be customized with CSS.
React Crash Course: Understanding State Management and Hooks
Tags: react, beginners
Published: 2023-09-08 16:35:52

Understanding states and hooks can be confusing for beginners when learning React. To provide clarity, let's discuss what they are and when to use them: 

In React, "state" is used to store information that can change over time, such as user interactions or data fetched from a server. When the state of a component changes, React will automatically re-render the component to reflect those changes in the UI.

"Hooks" are a feature that allow functional components to have state and other React features without using class components. They provide a cleaner and more concise way to implement state variables in functional components.

One of the most commonly used hooks is the ` useState ` hook. It returns an array with two elements: the current state value and a function that lets you update it.

Here's an example: 

```
import React, { useState } from 'react';

const App = () => {
  // useState returns an array with two elements: the current count and a function to update it
  const [count, setCount] = useState(0);

  const increment = () => {
    setCount(count + 1);
  };

  const decrement = () => {
    setCount(count - 1);
  };

  return (
    <div>
      <h1>Count: {count}</h1>
      <button onClick={increment}>Increment</button>
      <button onClick={decrement}>Decrement</button>
    </div>
  );
};

export default App;

```
In this example, we're using the `useState` hook to create a state called `count` and a function to update it called `setCount`. We start with an initial value of `0`.

The `increment` and `decrement ` functions use `setCount` to update the value of `count` by either increasing or decreasing it.

This component renders a heading showing the current count, and two buttons to increment or decrement the count. When you click these buttons, the `count` state will be updated and the component will re-render to reflect the new value.

Additionally, states and hooks can be used to manage and update a wide range of things such as input fields, text elements, lists, and tables, among other things. 

These are just a few examples, but in general, states and hooks can be used to update any aspect of your React components that you want to be dynamic and responsive to user interactions or changes in data. This makes React a powerful library for building interactive and data-driven web applications.
Gradle and Java Version Compatibility: A Beginner's Guide
Tags: android
Published: 2023-09-08 16:31:22

---
title: Gradle and Java Version Compatibility: A Beginner's Guide
published: true
date: 2023-09-08 16:30:45 UTC
tags: Android
canonical_url: https://www.rockandnull.com/how-to-fix-gradle-task-assembledebug-failed/
---

 ![Gradle and Java Version Compatibility: A Beginner's Guide](https://images.unsplash.com/photo-1450024529642-858b23834369?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDEyfHxqYXZhfGVufDB8fHx8MTY5NDE4NzQxN3ww&ixlib=rb-4.0.3&q=80&w=2000)

No matter how long you've been working with a technology or a platform, such as Android, you always encounter weird errors. The more time you spend, the more edge cases and new things you will learn.

I feel relatively comfortable with Gradle due to my experience with Android over the years. But I encountered a weird issue last week in a perfectly working Android project.

I could run the project just fine with Android Studio, but when running `./gradlew assembleDebug` command to generate a build it was failing with:

```
Execution failed for task ':app:kspDebugKotlin'. 
  > Error while evaluating property 'compilerOptions.jvmTarget' 
    of task ':app:kspDebugKotlin'.    
    > Failed to calculate the value of property 'jvmTarget'.       
      > Unknown Kotlin JVM target: 20 
```

It was complaining that my Java version was incompatible with Gradle. You see each Gradle version is compatible with specific Java versions - see this [compatibility table here](https://docs.gradle.org/current/userguide/compatibility.html) ([source](https://discuss.gradle.org/t/got-unknown-kotlin-jvm-target-20-when-running-gradle-build/46152/2)).

But if my system's Java JDK version was incompatible with Gradle, the run should have been failing from Android Studio as well, right?

What I had missed, is that Android Studio comes with an "embedded" Java JDK  and it's not using your system-installed JDK. You can see and select which JDK Android Studio is using by going to  `Settings` -> `Build, Execution & Deployment` -> `Build tools` -> `Gradle`. There you can change the version, see what is the current version, and even easily download and install new JDKs with one click!

To solve my issue of running `./gradlew assembleDebug` in the command line, I needed to install the same JDK version as the embedded JDK that Android Studio was using. To change the Java version that is used in a command line session (not system-wide), just update the `JAVA_HOME` environment variable for the OS you are using.

In case you are on MacOS, you can list the available JDKs in your system by running:

```
/usr/libexec/java_home -V
```

Then update the `JAVA_HOME` env variable with the selected version:

```
export JAVA_HOME=`/usr/libexec/java_home -v 17`
```

And run this to confirm:

```
java -version

```

That's it! For the current terminal session, this JDK will be used, and you can run `./gradlew assembleDebug` or any other command that requires a specific Java version you want.

Happy coding!
How do I show discount codes in the cart page on Shopify?
Published: 2023-09-08 16:28:53

As a merchant, I consistently recommend various Shopify apps to my fellow merchants for efficiently managing and implementing discount codes on their Shopify e-commerce websites. One particular app that has become my favorite is the KART DISCOUNT App. What sets it apart is its affordability and the exceptional support provided by their team. With this app, I can easily generate multiple discount codes and seamlessly apply them to the Shopify cart page. I encourage you to explore this app for yourself and see how it can benefit your online store.
How do I show discounts on my Shopify cart page?
Published: 2023-09-08 16:28:00

As a merchant, I frequently recommend various Shopify apps to my fellow retailers for facilitating the setup and application of discount codes on their Shopify e-commerce websites. One particular app that has become my personal favorite is the KART DISCOUNT App. This preference stems from its cost-effectiveness and the exceptional support provided by their team. With the help of this app, I can easily generate multiple discount codes and seamlessly integrate them into the Shopify cart page. I encourage you all to explore this app for yourselves.