teleren/devto huggingface dataset:
Should i join a bootcamp...?
Published: 2023-04-01 14:19:18

"Hi, I'm Biljana, a US expat living in Macedonia with my husband and 3 kids. When the pandemic hit, I started teaching myself to code and have since taken several SheCodes workshops, learned responsive design and JavaScript, and built web pages and a weather app. I'm currently enrolled in a React workshop and have a Scrimba membership for access to more courses. However, I'm at a crossroads in my learning and considering a bootcamp for more structure and accountability. After researching, I'm interested in Technigo's 22-week online bootcamp with pair programming, group projects, and career preparation. I'm excited to take my skills to the next level and become job ready."
"convert jpg to dst in photoshop"
Published: 2023-04-01 14:19:07

Photoshop is a powerful image editing software that many designers and embroiderers use to create and edit images. If you need to convert a "JPG file to DST" for embroidery, you can use Photoshop to do so. However, it's important to note that Photoshop is not designed specifically for embroidery digitizing, so the process may require some additional steps.
follow this https://digiembroidery.com/convert-jpg-to-dst/
Referral_template for Linkedin
Tags: linkedin, referral, job, productivity
Published: 2023-04-01 14:15:43

Referral_template
Template which I followed for asking referrals to people on LinkedIn .
-------------------

"Hi { name of the person }

Hope you are doing well . Recently I came across an opening in { company name } for { role } for { year of graduation } grads .

The job id for the same is { job id } .

It would be great if you could provide me a referral for the same .

Why me?

-> { Mention all your achievements }

-> { If applying for technical roles try to mention about your projects, coding profiles , ranks }

-> { Achievements should be mentioned in bulleted format}

-> {Achievements should be one liner . Please don't try explaining everything in a paragraph manner}

I have attached my resume for the same .

Hope to hear from you soon.

Thanks

Would love if someone could add more pointers to this .
每日一题：412. Fizz Buzz
Tags: leetcode, rust
Published: 2023-04-01 14:13:15

给你一个整数 n ，找出从 1 到 n 各个整数的 Fizz Buzz 表示，并用字符串数组 answer（下标从 1 开始）返回结果，其中：

>answer[i] == "FizzBuzz" 如果 i 同时是 3 和 5 的倍数。
>answer[i] == "Fizz" 如果 i 是 3 的倍数。
>answer[i] == "Buzz" 如果 i 是 5 的倍数。
>answer[i] == i （以字符串形式）如果上述条件全不满足。


示例 1：

> 输入：n = 3
> 输出：["1","2","Fizz"]

示例 2：

> 输入：n = 5
> 输出：["1","2","Fizz","4","Buzz"]

示例 3：

> 输入：n = 15
> 输出：["1","2","Fizz","4","Buzz","Fizz","7","8","Fizz","Buzz","11","Fizz","13","14","FizzBuzz"]

 

提示：

> 1 <= n <= 104

一道很简单的题，🥣。

题解:

```rust
impl Solution {
    pub fn fizz_buzz(n: i32) -> Vec<String> {
        let mut result:Vec<String> = Vec::new();
        for x in 1..=n {
            if x % 3 == 0 && x % 5 == 0 {
                result.push("FizzBuzz".to_string());
            }else if x % 3 == 0 {
                result.push("Fizz".to_string());
            }else if x % 5 == 0 {
                result.push("Buzz".to_string());
            }else {
                result.push(x.to_string());
            }
        }
        result
    }
}
```
Days_18 Guess the Number
Published: 2023-04-01 14:09:19

We are going to build a "Guess the Number" guessing game.

You are going to use a while loop and some of the concepts from the past few days.

1. Start by picking a number between 0 and 1,000,000. This will be 
   your first variable.
2. Create a while loop to keep asking the user to guess your number.
3. If they are too low, tell them "too low." If they guess too high 
   tell, them "too high."
4. If the user guesses correctly, tell them they are a winner (maybe add a fun emoji too!)
5.Count the number of attempts it took for the user to guess number. Make sure you only show that after they get the answer correct.

```
# Let's Cheat Continue
#
#29 MARCH 2023


class challenge18():

  def __init__(self, number, testing):
    self.number = number
    self.testing = testing

  def methode(self):
    self.number = 50
    while self.testing in range(0, 100):
      if self.testing > self.number:
        print("angka sangat besar")
      elif self.testing < self.number:
        print("angka sangat kecil")


def call():
  testing = challenge18(input("masukan angka"))
  testing.methode()


call()
```
Virtual Machine 0
Tags: cybersecurity, beginners, tutorial, picoctf
Published: 2023-04-01 14:08:44

# Virtual Machine 0

**100 points**

AUTHOR: LT 'SYREAL' JONES

Description
Can you crack this black box?
We grabbed this design doc from enemy servers: [Download]. We know that the rotation of the red axle is input and the rotation of the blue axle is output. The following input gives the flag as output: [Download].

___

I searched google what the heck is a `.dae` file is, and its a file for models and can be opened in blender.

Opening the model in blender we get a lego construction with 2 wheels: 

* Blue - 8 teeth
* Red - 40 teeth

We're told that the input is the number of times we turned the red wheel and the output is the number of times we turned the blue wheel.

Turing the red wheel once rotates the blue wheel 5 times so that's their relationship (idea from the hint), so if we just multiply the input by 5 we get the output which is a number that's supposed to be the flag. 

There's only one thing to do now and it's to decode it to bytes:

```python
from Crypto.Util.number import long_to_bytes

n = 39722847074734820757600524178581224432297292490103995908738058203639164185
print(long_to_bytes(n*5))
```

And we get the flag:

> picoCTF{your flag}
timer picoCTF 2023
Tags: beginners, java, picoctf, cybersecurity
Published: 2023-04-01 14:05:20

# timer

**100 points**

AUTHOR: LOIC SHEMA

Description
You will find the flag after analysing this apk
Download [here].

___

I searched google *analyze apk file online* and I found this [site](https://www.sisik.eu/apk-tool). 

Uploading the file into it, the site said that the `versionName` of the file is:

> picoCTF{your flag}
Check Selinux status in Linux
Tags: linux, cloud, beginners, programming
Published: 2023-04-01 14:04:35


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

SELinux, or Security-Enhanced Linux, is a security feature in Linux that provides an additional layer of protection for the operating system. It was developed by the National Security Agency (NSA) to implement mandatory access controls in Linux.

SELinux uses a mandatory access control (MAC) model to limit the permissions of system processes and users. With SELinux, you can define policies that determine which users and processes have access to specific files and resources, and what actions they are allowed to perform.

Why is SELinux so important? The answer is simple: security. By enforcing MAC policies, SELinux helps prevent unauthorized access to sensitive data and system resources. It also helps prevent attacks that exploit vulnerabilities in the system, such as buffer overflow attacks and privilege escalation attacks.

This post provides a detailed guide on [how to check the status of SELinux on your Linux system](https://www.howtouselinux.com/post/check-selinux-status-in-linux). It covers three different methods: using the "sestatus" command, using the "getenforce" command, and checking the SELinux configuration file.

It also provides step-by-step instructions on how to do so. It is a valuable resource for anyone who wants to ensure that their Linux system is secure and protected.
Safe Opener 2
Tags: cybersecurity, beginners, java, picoctf
Published: 2023-04-01 14:02:36

# Safe Opener 2

**100 points**

AUTHOR: MUBARAK MIKAIL

Description
What can you do with this file?
I forgot the key to my safe but this [file](https://github.com/LeonGurin/picoCTF-2023/blob/main/Reverse%20Engineering/Safe%20Opener%202/SafeOpener.class) is supposed to help me with retrieving the lost key. Can you help me unlock my safe?

___

Using an online java decompiler like [this one](http://www.javadecompilers.com/) we get the following code:

```java
import java.io.IOException;
import java.util.Base64;
import java.io.Reader;
import java.io.BufferedReader;
import java.io.InputStreamReader;

// 
// Decompiled by Procyon v0.5.36
// 

public class SafeOpener
{
    public static void main(final String[] args) throws IOException {
        final BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
        final Base64.Encoder encoder = Base64.getEncoder();
        String encodedkey = "";
        String key = "";
        for (int i = 0; i < 3; ++i) {
            System.out.print("Enter password for the safe: ");
            key = keyboard.readLine();
            encodedkey = encoder.encodeToString(key.getBytes());
            System.out.println(encodedkey);
            final boolean isOpen = openSafe(encodedkey);
            if (isOpen) {
                break;
            }
            System.out.println("You have  " + (2 - i) + " attempt(s) left");
        }
    }
    
    public static boolean openSafe(final String password) {
        final String encodedkey = "picoCTF{SAf3_0p3n3rr_y0u_solv3d_it_b427942b}";
        if (password.equals(encodedkey)) {
            System.out.println("Sesame open");
            return true;
        }
        System.out.println("Password is incorrect\n");
        return false;
    }
}
```

and so the flag is:

> picoCTF{your flag}
Ready Gladiator 2
Published: 2023-04-01 13:54:59

# Ready Gladiator 2

**400 points**

Description
Can you make a CoreWars warrior that wins every single round?
Your opponent is the Imp. The source is available here. If you wanted to pit the Imp against himself, you could download the Imp and connect to the CoreWars server like this:
nc saturn.picoctf.net 59243 < imp.red
To get the flag, you must beat the Imp all 100 rounds.

*Note:* This challenge launches an instance on demand.

___

So this is the final challenge in the series, we need to find the ultimate strategy to defeat the imp once and for all and constantly.

After numerous google searches I stumbled upon this reddit [thread](https://www.reddit.com/r/corewar/comments/11ulbs0/defeat_classic_imp/) and yeah, one of the comments literally says "Good luck in picoCTF23".

So google searching for the answer brought me to [link](https://everything2.com/title/corewars+imp) which states:

```
The best passive defense against an imp is known as an imp-gate. The imp-gate is an instruction that decrements some static location prior to the first code instruction of the warrior. E.g:

warrior          ; some attack code here
jmp warrior,<-10 ; decrement relative position -10
```

```
;redcode
;name imp
;assert 1

warrior          ; some attack code here
jmp warrior,<-10 ; decrement relative position -10

end

```
copying the code and sending it to the server wins the game and get us:

> picoCTF{your flag}
🤯Twitter Recommendation Algorithm is now open sourced
Tags: webdev, cloud, discuss, watercooler
Published: 2023-04-01 13:51:51

> This requires a recommendation algorithm to distill the roughly 500 million Tweets posted daily down to a handful of top Tweets that ultimately show up on your device’s For You timeline.
>
> The pipeline above runs approximately 5 billion times per day and completes in under 1.5 seconds on average. A single pipeline execution requires 220 seconds of CPU time, nearly 150x the latency you perceive on the app.

Along side with OpenAI, I personally think this is one of an important moment in the computing community as no one would ever guess a global-scale algorithm such as Twitter's Recommendation becomes open-sourced. Based on their engineer blog post, it is not out of reach to say the code base literally costs hundred thousands if not millions a day to run. How do you feel about this moment?

___

**Twitter's engineer blog**
{% embed https://blog.twitter.com/engineering/en_us/topics/open-source/2023/twitter-recommendation-algorithm %}

**GitHub repository**
{% embed https://github.com/twitter/the-algorithm %}
O que é um package em Go?
Published: 2023-04-01 08:03:14

Eae Dev.

Seja bem vindo(a) a mais uma pedacinho de conhecimento de Go.

Em Go (Golang), um package é um conjunto de arquivos que contêm código relacionado que pode ser importado e reutilizado em outros programas. É como uma caixa que contém uma coleção de ferramentas úteis que podemos usar em nossos projetos. Tal conceito é semelhante com node modules usados no NodeJS.

Os pacotes em Go são organizados em uma hierarquia, onde pacotes de nível superior contêm pacotes mais específicos como seus subpacotes. Os pacotes podem ser importados usando a palavra-chave "import" e seu caminho relativo ou absoluto.

Existem dois tipos de pacotes em Go: pacotes padrão e pacotes de terceiros.

Os pacotes padrão são fornecidos com a instalação do Go e estão prontos para serem usados em nossos projetos. Eles incluem pacotes como "fmt" para formatação de texto, "io" para entrada/saída, e "net/http" para criação de servidores web. Para usar um pacote padrão em nosso projeto, simplesmente importamos o pacote e começamos a usá-lo como o exemplo abaixo:

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

Os pacotes de terceiros são pacotes criados por outras pessoas e disponíveis em repositórios públicos, como o GitHub. Para instalar um pacote de terceiros, precisamos primeiro usar o comando "go get" seguido do caminho do pacote. Por exemplo, se quisermos instalar o pacote "gin-gonic/gin" para criar um servidor web com o Gin Web Framework, executamos o seguinte comando no terminal:

`go get github.com/gin-gonic/gin`

Este comando instala o pacote "gin" na pasta "pkg" do diretório de instalação do Go. Agora podemos importar e usar o pacote em nosso projeto, como no exemplo abaixo:


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

Isso cria um servidor web que usa o pacote "gin" para definir rotas e lidar com as requisições. 

**Mas o que é Gin?**

O Gin Web Framework é uma estrutura de desenvolvimento web minimalista e rápida para Go, projetada para reduzir a complexidade do desenvolvimento de aplicativos web. O framework oferece recursos como rotas, middleware, renderização de templates e suporte a WebSockets, entre outros.

Para saber mais:
[Gin Web Framework](https://gin-gonic.com/)
Ready Gladiator 1
Tags: cybersecurity, redcode, corewars, picoctf
Published: 2023-04-01 13:50:52

# Ready Gladiator 1

**200 points**

Description
Can you make a CoreWars warrior that wins?
Your opponent is the Imp. The source is available here. If you wanted to pit the Imp against himself, you could download the Imp and connect to the CoreWars server like this:
nc saturn.picoctf.net port number < imp.red
To get the flag, you must beat the Imp at least once out of the many rounds.

*Note:* This challenge launches an instance on demand.

___

I tried asking `chatGPT` to help me understand the syntax and what to do, but it gave me 3 programs that just lost with a weird syntax.

So the next thing I did is google, a reddit thread where someone asks how to beat the Imp gave the instructions:

```
sub 1, -10
jmp -1
```
```
;redcode
;name Paper-Scissors-Rock
;assert 1

sub 1, -10
jmp -1

end
```
and this code won 40 out of a 100 wins and got me the flag (still don't understand the game mostly...)

> picoCTF{your flag}
Ready Gladiator 0
Tags: picoctf, 2023, beginners, cybersecurity
Published: 2023-04-01 13:48:00

# Ready Gladiator 0

**100 points**

AUTHOR: LT 'SYREAL' JONES

Description
Can you make a CoreWars warrior that always loses, no ties?
Your opponent is the Imp. The source is available [here]. If you wanted to pit the Imp against himself, you could download the Imp and start your own corewars server

*Note:* This challenge launches an instance on demand.

___

Ok so for this challenge I had to learn what `CoreWars` was, and its apparently its a game between two programs that are written in `RedCode` which is a pseudo-assembly language.

Our mission is to lose to the program provided 100 times.

After trying out what will happen if I provide the same code to the server, we just ended up with 100 ties.

So, I just deleted the only instruction that does operations in the game and the warrior

```c
;redcode
;name Imp Ex
;assert 1
end
```

I lost which gave the flag:

> picoCTF{your flag}
bnbn
Published: 2023-04-01 13:47:04

dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\


dasd
asdas
asdasdasd
\\\\\\\
No way out picoCTF
Tags: beginners, cybersecurity, tutorial, picoct
Published: 2023-04-01 13:26:25

# No way out

**200 points**

AUTHOR: KRIS

Description
Put this flag in standard picoCTF format before submitting. If the flag was h1_1m_7h3_f14g submit picoCTF{h1_1m_7h3_f14g} to the platform.
[Windows game], Mac game

___

My very first introduction to unity hacking!

In the game you're spawned inside an area with a ladder but you can escape because of an invisible border.

After trying to look for the flag inside the files of the compiled game, I searched on google (and was probably put in a watchlist) on how to hack a unity game.

Ctf writeups pointed me to `dnSpy` a `C#` decompiling program that can be used to hack/mod unity games.

Using it and opening the games `Assembly-CSharp.dll` I could look inside the code.

In there I looked at the `PlayerController` class to see if I could make it so that I could jump infinitely to bypass the border.

I found this line of code that operates jumping:

```csharp
if (Input.GetButton("Jump") && this.canMove && this.characterController.isGrounded && !this.isClimbing)
{
    this.moveDirection.y = this.jumpSpeed;
}
```

and I removed the condition where it checks if the player is grounded from the `if` statement.

Compiling and exporting and opening the game once again, I could jump in the air to bypass the border and get outside the region where, when I went far enough gave the flag string in the middle of the string:

```
welcome_to_unity!!
```

So the flag was:

> picoCTF{welcome_to_unity!!}
MYSQL - Relational Database
Published: 2023-03-31 05:10:39

**Relational Database** - Data is stored in Structured form like in rows, columns and records

**Non Relational Database** - Data is stored in unstructured form not as in rows and columns. Instead as Key-value pairs, Json or like a Graphical form

**Commands involved in Mysql** - Post installation of mysql in your server  -- the command to install in Linux is yum install mysql-server
1. To login mysql terminal the command is  -- : mysql -uroot -p
2. To create a mysql user the command is -- 
mysql CREATE user 'enriuque'@'localhost' IDENTIFIED BY anypassword"
3.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wywqdkbbii3sqa5cwlas.png)

In this image we have listed the Databases and created a new Database

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

In this image we are using the Database out of the listed Database called(FRESHONE)

We have created a user named 'tskumar' in our localhost

We are giving full permission on the database called NEWLIFE to 'tskumar'

We exit mysql and switching to tskumar and displaying the current user using command SELECT CURRENT_USER()


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

In this image we have checked the current database we are in
and that is FRESHONE


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

In this image we are using a table called DATANEW inside the Database FRESHONE and viewing it using desc DATANEW;

To be continued ...
Contribution to Github python repositories
Tags: osdc, python, pypi, github
Published: 2023-04-01 13:13:27

I have contributed to the following reps:

- [dev-sushi/sushi](https://github.com/dev-sushi/sushi/pull/32)
- [randovania/open-dread-rando](https://github.com/randovania/open-dread-rando/pull/202)
- [okosioc/pyseed](https://github.com/okosioc/pyseed/pull/1)
- [domschl/ml-indie-tools](https://github.com/domschl/ml-indie-tools/pull/2)
- [nicc777/py-animus](https://github.com/nicc777/py-animus/pull/59)

Added their license to the metadata file to appear in the website pypi.org

It is a part of a OSDC course, run by @szabgab
Hoisting In Javascript ( Part - 1 ):
Tags: javascript, webdev, frontend, programming
Published: 2023-04-01 12:57:54

**Hoisting** is a behavior in JavaScript where variable and function declarations are moved to the top of their respective scopes (global or local) before the code is executed. This means that even if a variable or function is declared later in the code, it can be used before its actual declaration.

There are a few important concepts to understand to master hoisting in JavaScript:

1. **Variable Hoisting**: In JavaScript, variable declarations are moved to the top of their scope during hoisting, but their assignments are not. This means that if you declare a variable using **"var"**, it will exist in memory with a default value of **"undefined"** before its actual declaration in the code.

```
// For example: 

console.log(myVar);  // Output: undefined
var myVar = 5;
```

This code will log **"undefined"** to the console, because **"myVar"** exists in memory with a default value of "undefined" before its declaration on the second line.


2. **Function Hoisting:** Function declarations are also hoisted in JavaScript, meaning they can be used before their actual declaration in the code. This is because function declarations are moved to the top of their scope during hoisting, including their entire code block.

```
// For example:

myFunc();  // 𝐎𝐮𝐭𝐩𝐮𝐭: "Hello World!"
function myFunc() { 
    console.log("Hello World!"); 
}
```

This code will log **"Hello World!"** to the console, even though "𝐦𝐲𝐅𝐮𝐧𝐜" is called before its actual declaration in the code.


3. **Block Scoping:** In modern JavaScript, **"let"** and **"const"** keywords are used for block-scoped variable declaration. Unlike **"var"**, block-scoped variables are not hoisted to the top of their scope, and cannot be accessed before their actual declaration in the code.

```
// For example:

console.log(myVar); // Output: ReferenceError: Cannot access 'myVar' before initialization
let myVar = 5;
```

If you try to access the value of a variable declared with let or const before it has been initialized, JavaScript will throw a **ReferenceError** with the message **"Cannot access 'myVar' before initialization"**.


In summary, hoisting is a behavior in JavaScript where variable and function declarations are moved to the top of their respective scopes during the code execution. Understanding **variable hoisting, function hoisting and block scoping hoisting** is important for mastering hoisting in JavaScript.

In this post, we have learned what is hoisting in Js. In the next post, we will practice some questions for a better grip on Hoisting, so stay tuned 🙂.

Thanks for reading it😊. I hope it was insightful and you got to learn something new today. If you liked the article, please post likes and share it in your circles. Share your feedback and comment away.

Let's connect on [LinkedIn](https://www.linkedin.com/in/sachin-kumar007/). I'd love to connect :)
Paracetamol.js💊| #211: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2023-04-01 12:48:33

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```js
const fn = (x) => x !== NaN && x !== Infinity && x !== -Infinity

console.log(fn("3"))
console.log(Number.isFinite("3"))
```

- A. `false`, `false`
- B. `false`, `true`
- C. `true`, `true`
- D. `true`, `false` 

---

Respuesta en el primer comentario.