teleren/devto huggingface dataset:
JavaScript Magic Tricks: Try & Catch Encryption
Tags: javascript, try, catch, encryption
Published: 2023-10-20 05:01:39

This article shares a unique encryption and decryption method for JavaScript code.

## Technical Principles
Encrypt JavaScript code, and then "try" to decrypt it in the try-catch error handling syntax. If the decryption is successful and the code can be executed, it means the decryption is successful. If the code cannot be executed, it means the decryption has failed, and an error will be thrown which can be caught by the catch to attempt decryption again.

The following code implements JavaScript encryption.

```
var source_string ='alert("JShaman Javscript Obfuscator");';
var encoded_string = "";
function encode(){
  for(var i=0;i<source_string.length;i++){
    encoded_string += String.fromCharCode(source_string.charCodeAt(i) ^ 9);
  }
  console.log("Encrypted string:"+encoded_string);
}
encode();
```

**Execute output**

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

The following code implements decryption.

```
var encode_key = 0;
var encoded_string = "hel{}!+CZahdhg)Chzj{`y})Fko|zjh}f{+ 2";
var decoded_string = encoded_string;
function decode(){
  try{
    console.log("Execute:",decoded_string);
    eval(decoded_string);
  }catch(e){
    encode_key += 1;
    decoded_string ="";
    for(var i=0; i<encoded_string.length; i++){
      decoded_string += String.fromCharCode(encoded_string.charCodeAt(i) ^ encode_key );
    }
    console.log("Decrypted string", decoded_string, encode_key);
    decode();
  }
}
decode();
```

Explanation: Assuming that the key is unknown, the code in the try section will attempt to decrypt an incorrect ciphertext, which naturally cannot be executed. The program flow will then be caught by the catch and the key will be modified to attempt decryption again. This process will continue indefinitely until the correct key is found. In this demonstration, a simple XOR encryption is used. If a more complex encryption algorithm with a less guessable key is used, the encryption effectiveness of this method will be very good.

**Execute output**

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

## Precautions
This is a novel encryption method, where the encrypted code can be used independently. Without the key, if analyzed using a general reverse method, it will result in countless decryption results, which can seriously interfere with the analyst. However, there are certain limitations to using this method: because decryption relies on eval execution, the encrypted statement needs to be executable, such as wrapped in statements like alert, console.log, eval, etc.
Wessex Maintenance
Published: 2023-10-20 04:50:06

At Wessex Maintenance, we understand the importance of clean windows for both residential and commercial properties. We offer top-notch window cleaning services in Bournemouth and surrounding areas. Our team of skilled window cleaners in Bournemouth provides reliable services that will leave your windows sparkling clean. We use safe products and the latest techniques to ensure the best cleaning experience. Our services are tailored to meet your needs and preferences, and we guarantee customer satisfaction with every job we undertake. Whether you need a one-time cleaning or regular maintenance, we are here for you. Contact us today to book your appointment and enjoy crystal-clear windows!

Visit: https://wessexmaintenance.co.uk/

Email: jamie@wessexmaintenance.co.uk

Phone: 0 7909840612

Address:  185 Stewart Rd, Bournemouth,Dorset  BH8 8PB, United Kingdom
My Journey into Hacktoberfest 2023 - Pledge
Tags: hacktoberfest23, opensource, hack23contributor, hacktoberfest
Published: 2023-10-20 04:37:03

### My Journey into Hacktoberfest'23

Hey there, fellow developers 👋! I'm excited to be a part of the DEV community and to participate in Hacktoberfest this year. While I'm not entirely new to coding, this is my first time joining the Hacktoberfest event, and I can't wait to get started. My motivation 💡 to participate in this open-source celebration comes from a desire to learn, connect with the community, and give back to the projects that have helped me in my coding journey.


### From Coding Curiosity to Hacktoberfest

My journey 🌱 into the world of programming began a few years ago when I was introduced to the fascinating world of software development. I started by learning the basics of HTML, and Object Oriented Programming, and from there, my curiosity grew. I delved into JavaScript, C#, Java, and various other programming languages. Along the way, I discovered the vast ecosystem of open-source software and how it played a pivotal role in shaping the tech world.

While I have been coding for a while, I'm relatively new to Hacktoberfest. In previous years, I observed the event from the sidelines, but this year, I felt a strong urge to jump in and be a part of it. I've always admired the collaborative spirit of open source and wanted to be an active contributor 💻.


###  Coding, Collaborating & Contributing

My goals 🎯 for Hacktoberfest 2023 are twofold. First, I aim to improve my coding skills and gain more hands-on experience with open-source projects. I believe that working on real-world projects and collaborating with experienced developers will be a fantastic learning experience.

Second, I'm open to assisting project maintainers with their open-source projects 🤝. Whether it's fixing bugs, adding new features, or improving documentation, I'm here to contribute and make a positive impact on the projects I work on. This is an opportunity to give back to the community that has been so generous with its resources and knowledge.

I'm particularly interested in projects related to web development, JavaScript, and C#, but I'm also open to exploring new technologies and languages during this journey.

Overall, this is an exciting opportunity for me to learn, grow, and make a valuable contribution to the open-source community. I can't wait to collaborate with fellow developers, learn from their expertise, and give my best to the projects I work on. Here's to a month of coding, learning, and making the open-source world better!
High Order Component
Tags: javascript, react
Published: 2023-10-20 04:19:30

```js

import React from 'react'
import {useState} from 'react'
import ReactDOM from 'react-dom'
function App(props) {
  const [count, setCount] = useState(props.initCount)
  const handleClick = () => {
    setCount(count + 1)
  }
  return (
    <div>
      <p>Count: {count}</p>
      <button onClick={handleClick}>Increment</button>
    </div>
  )
}
function HighOrderComponent(WrappedComponent) {
  return class createdComponent extends React.Component {
    state = {
      initialState: 5,
    }
    render() {
      return <WrappedComponent initCount={0} />
    }
  }
}
let AppHOC = HighOrderComponent(App)
ReactDOM.render(<AppHOC />, document.getElementById('root'))


```
My Journey as a maintainer in my first Hacktoberfest!
Tags: hack23maintainer
Published: 2023-10-20 04:03:17

Hey, I'm Krishna, a 13 year old programmer (My [GitHub](https://github.com/imkrishnasarathi)). This year was my first hacktoberfest and I was both a contributor and a maintainer!

### Project
My repository was [PleasantWeb](https://github.com/pleasantweb), which is a smart browser extension which alerts users of unsuitable content online. It was not a very highly active repo, but I had some contributors **(If you're reading this, check the repo out. You can test the extension and create new issues and work on them!)**. It was a project I built during buildspace s4, and modified it a bit. I made it open source later. I posted on online forums and got my contributors, who made PRs and I would check them out, and merge , or request changes.

### Highs and Lows
This was my first open source repo I have hosted and acted as a maintainer. So it is a huge achievement for me. I also faced problems with some new GitHub concepts, which I wasn't aware of. I learnt and explored more of Github this month!

### Growth
Before Hacktoberfest, as I never hosted any open source repo, I thought of it to be some kind of rocket science. But this hacktoberfest changed my mindset. I also learnt more about newer concepts which I wasn't aware of, by reviewing others' code and trying to code myself! Thank you for reading!
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-20 03:55:15

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
My Journey as a beginner in Open Source with Hacktoberfest!
Tags: hack23contributor, hacktoberfest
Published: 2023-10-20 03:44:23

So Hey there, I'm Krishna, a 13 year old Python Programmer and Web Developer (My [GitHub](https://github.com/imkrishnasarathi)). I recently started contributing to open source, when I found about hacktoberfest. This year was my first hacktoberfest, and it went really well!


##Progress

This month, though I did not contribute to a large number of repos, I tried my best to contribute the best code/documentation I could create to the repos. I came across a quite tough bug, which really troubled me. It was a Python project. Finally, I could fix it after 2-3 days and the feeling was awesome! I also learnt a lot of new things this month, while trying to contribute to the repos!

##Growth

Before Hacktoberfest 2023, I had never worked so deep into real world problems, so I believe Hacktoberfest made me a better programmer. I also learnt new concepts and topics which I didn't know earlier, while trying to contribute to these repositories!

So overall, my first hacktoberfest has been a really awesome, interesting and exciting event for me. Thanks for reading!
高橋信夫の取引心得:市場に対する冷静な反応
Tags: 高橋信夫
Published: 2023-10-20 03:42:45

高橋信夫（Nobuo Takahashi）：安定したトレーディングシステムの構築
 
金融取引に興味はありますか？
金融市場をよりよく理解し、活用できるようになりたいとお考えですか？
それであれば、高橋信夫（Nobuo Takahashi）と彼の安定したトレーディングシステムは見逃せないチャンスです。
 
高橋信夫はベテランの金融トレーダー兼市場アナリストです。
彼は30年以上の投資経験を持ち、世界中の金融市場で実践と研究を積み重ねてきました。
市場の上下を何度も経験し、豊富な経験と知識を蓄積し、投資家が科学的に取引できるように安定したトレーディングシステムを開発しました。
 
このトレーディングシステムには市場分析から取引戦略、リスク管理、心理的コントロールまでさまざまな要素が含まれており、高橋信夫の緻密な設計と検証を経ています。
このシステムを通じて、市場の動向をよりよく理解し、適切な取引戦略を立て、リスクを効果的に管理できます。
 

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

市場分析はトレーディングシステムの中核であり、高橋信夫は市場の長期研究と観察を通じて実証済みの分析手法をまとめました。
これらの手法にはテクニカル分析、ファンダメンタル分析、市場センチメント分析などが含まれます。
これらの分析手法を活用することで、市場のトレンドと動向をよりよく理解し、その情報に基づいて適切な決定を下すことができます。
 
取引戦略はトレーディングシステムの別の重要な要素であり、高橋信夫は多くの実践とまとめを通じて効果的な取引戦略をまとめました。
これらの戦略は市場の法則と特性に基づいており、市場の上昇と下落を捉え、リスクを管理できます。
これらの戦略を活用することで、取引の機会をよりよく把握し、市場でより良い結果を得ることができます。
 
リスク管理と心理的コントロールは、トレーディングシステムの中で重要なもう２つの要素です。
高橋信夫はリスク管理と心理的コントロールの重要性を非常に重視しており、これらは成功したトレーダーに必須なスキルであると考えています。
科学的なリスク管理と適切な心理的コントロールを通じて、取引リスクを効果的に管理し、感情の波動による誤った決定を回避できます。
 
高橋信夫の安定したトレーディングシステムは、多くの実践と研究を経て開発され、彼自身による検証と実践が行われています。
このシステムは即席で作り上げられたものではなく、試行錯誤と継続的な改善を経て完成しました。
そのため、非常に実用的で実践的な価値があります。
 
高橋信夫のトレーディングシステムを学習し、マスターすることで、金融市場をよりよく理解し、自身のトレーディングスキルとパフォーマンスを向上させることができます。
このシステムは株式市場だけでなく、外国為替市場、先物市場、その他の金融市場にも適用できます。
初心者でも経験者でも、誰でも多くのメリットを得ることができます。
 
高橋信夫の安定したトレーディングシステムに興味がある場合、ぜひ私たちの学習交流グループに参加いただくことを誠意をもってお勧めいたします。
このグループでは、高橋信夫本人や他のトレーダーと合流し、より多くの経験と知識を得ることができます。
私たちは高橋信夫の指導のもとで、金融市場をよりよく理解し、トレーディングの目標を達成できると信じています。
 
高橋信夫の安定したトレーディングシステムを通じて、より合理的で自信のあるトレーダーとして成長し、より適切で効果的なトレーディング戦略を立て、金融市場でより優れたトレード結果を得ましょう。
迷いを捨てて、私たちのグループに参加し、トレードの旅をスタートさせましょう！
 
高橋信夫の完璧なトレードシステムを通じて、金融市場をより理解し、自信を持ってトレードできるトレーダーになりましょう。
あなたのの成功をサポートし、トレードの目標を達成するお手伝いをいたします。
WeTest PerfDog V9.2 Now Online with Powerful Upgrades
Tags: devops, mobile, software, gamedev
Published: 2023-10-20 03:12:50

We are thrilled to announce the release of WeTest PerfDog International V9.2, packed with the freshest features including network testing. WeTest PerfDog network testing is now in public beta. You can apply to join the public beta testing of PerfDog network testing by [contacting us](https://www.wetest.net/introduction/contact) or reaching out to online customer service.

**New version update details:**

1. Added network test analysis and weak network simulation service capability Beta:

a. Added support for WIFI mode in network testing;

b. Added the ability to actively pull up the tested object when starting a network test;

c. Added support for switching network scenarios during network testing;

d. Added support for packet capture in network testing.

2. Added Median and MedRange statistics for FPS;

3. Added support for thread-level CPU scheduling and other deep testing capabilities;

4. Added custom filtering support for Thread CPU Usage threads in WEB page regular testing;

5. Added custom filtering support for IP in WEB page network testing;

6. Added support for the latest Android 14 version;

7. Added support for data collection on the latest Huawei models and systems (such as Mate 60);

8. Added support for specifying custom batch deletion for projects in the Web version;

9. Optimized the initialization speed when testing Windows applications;

10. Optimized the performance collection issue when enabling Thread CPU Usage;

11. Fixed the issue where the test may fail when uploading while testing with Thread CPU Usage enabled;

12. Fixed the screenshot error issue on some Huawei models;

13. Fixed the issue where FPS is 0 in high frame rate situations on some models;

14. Fixed the issue where the Label calculation is incorrect when switching to full screen and back;

15. Fixed the occasional issue of not being able to obtain information on Android 12 and Android 8 when viewing the process window;

16. Fixed the occasional error issue when running multiple clients simultaneously;

17. Fixed some known bugs to improve stability.


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


We believe that this update will empower our users to conduct more comprehensive and insightful performance testing, ultimately leading to the delivery of high-quality applications and games. [Experience Now](https://perfdog.wetest.net/?utm_source=yt&utm_medium=PD-YTAsia-10) and elevate your testing experience!
Starlight: 10 Minute Docs Audit
Tags: javascript, astro, documentation, docsaudit
Published: 2023-10-20 02:44:23

[Starlight](https://starlight.astro.build/) is a documentation platform based on the [Astro](https://dev.to/documentwrites/astro-10-minute-docs-audit-3aep). It similar to Docusaurus, but you aren't forced to use React. 

{% embed https://youtu.be/2G9sQaJsvB4 %}

I run a technical documentation business specializing in writing and editing documentation. I made this series to share my insights and help projects craft impactful documentation.

What's The Criteria?
3- Excellent
2 - OK
1 - Poor

Purposeful: Does the QuickStart explain what problem it's trying to solve? Who is the intended audience?

UX Experience: How seamless is the experience? Must the user create an account to get through the Quickstart? Does the Quickstart elicit a sense of joy and achievement?

Accurate: Are the instructions correct? Are they complete?

## [The Results](https://www.loom.com/share/f2329547b114443b84e9793a7b1d41bb?sid=eab999c1-5f89-479c-8351-610b0405d458)

Starlight's user experience game is strong. The cli was colorful and delightful to use. I didn't have to install another framework, and when I was finished running the script, I had a Hello World project up and running. 

That being said, I'm not sure what Starlight is adding in the documentation framework world that doesn't already exist. The landing page lists a ton of features, but it fails to explain why I should give it a try. 


|               | Score |
|---------------|-------|
| Purposeful    | 2     |
| UX Experience | 2.5   |
| Accurate      | 2     |


Are you interested in a FREE Quickstart audit for your company? [Start here](https://forms.gle/5jDeuQraBwahkjT16).
Cómo crear pipes custom en Angular
Tags: angular, spanish, pipes, typescript
Published: 2023-10-20 02:40:58

Los "pipes" son una característica esencial en Angular que posibilita la transformación de la salida de un componente o directiva. Aunque los "pipes" incorporados en Angular proporcionan una amplia gama de funcionalidades, hay ocasiones en las que se requiere la creación de un "pipe" personalizado para llevar a cabo una transformación que no está disponible de forma predeterminada.

**Creando un pipe personalizado**

Para crear un pipe personalizado, primero debemos ejecutar el siguiente comando en nuestra terminal

```bash
ng g pipe my-pipe
```

Esta interfaz tiene un solo método, transform, que recibe el valor de entrada del pipe un argumento y debe devolver el valor transformado.

```typescript
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'myPipe'
})
export class CustomCurrencyPipe implements PipeTransform {

  transform(value: unknown, ...args: unknown[]): unknown {
    return null;
  }

}

```
Una vez que hemos generado el pipe, podemos registrarlo en nuestra aplicación Angular. Podemos hacerlo en el archivo _app.module.ts_.

```TypeScript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { MyPipe } from './pipes/my-pipe';

@NgModule({
  declarations: [
    AppComponent,
    MyPipe
  ],
  imports: [
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

Ahora que hemos registrado el pipe, podemos utilizarlo en las plantillas. Para ello, utilizamos el símbolo de pipe (|) seguido del nombre del pipe.

```HTML
<p>{{ value | myPipe }}</p>
```

En este ejemplo, el pipe myPipe se utilizará para transformar el valor value.

---

**Ejemplos de pipes personalizados**

Aqui un ejemplo de un pipe para el formato moneda para usd, eur y cop:

{% embed https://codesandbox.io/p/sandbox/flamboyant-satoshi-j8z82s?file=%2Fsrc%2Fapp%2Fapp.component.html&embed=1 %}

Crear pipes personalizados es una forma sencilla de añadir funcionalidad personalizada a nuestras aplicaciones Angular. Con un poco de esfuerzo, podemos crear pipes que se adapten a nuestras necesidades específicas.
PREREQUISITE OF THE APPLICATION
Tags: flutter, tutorial, productivity, career
Published: 2023-10-20 02:30:00

Video Link: https://youtu.be/A_rByYAxStY

GitHub Repository: https://github.com/raman04-byte/Cycle_App

Prerequisites:

Before we jump into building our Cycle application using Flutter and the MVC architecture, you'll need to ensure that you have the following assets and folder structure in place.

1. Assets:

Your assets are essential components of your project. These include images, fonts, and any other resources that your app will utilize. Make sure you have organized these assets appropriately within your project folder.

2. Folder Structure:

A well-structured project folder is key to keeping your code organized and maintainable. Here's the suggested folder structure for your Cycle application:


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



With your assets and folder structure in place, you're now ready to start building your Cycle application. In my upcoming videos, we will explore each component in-depth and guide you through the process of developing a robust Flutter app using the MVC architecture.

Stay tuned for more insights, and let's bring your Cycle application to life!
Minicase - Chuyên thiết kế, in hình ốp điện thoại theo yêu cầu
Published: 2023-10-20 01:50:07

Minicase - Thương hiệu Việt chuyên thiết kế, in hình ốp điện thoại theo yêu cầu chất lượng cao đa dạng các thể loại như em bé, cặp đôi, anime, gia đình, kpop.. 
Thông tin chi tiết:
Website:https://minicaseop.com/
Địa chỉ: 58 Trần Bình, Cầu Giấy, Hà Nội, Việt Nam
Email: minicase.op@gmail.com
#minicase #minicase_op #minicaseop_com
Social:
https://www.facebook.com/minicaseopinhinh
https://twitter.com/minicaseop
https://www.instagram.com/minicase.op/
https://www.youtube.com/@minicaseop
https://www.linkedin.com/in/minicase-op/
https://colab.research.google.com/drive/19xGGWRntweRvgKPs9AjdiggL9TC0VvDE#scrollTo=rZguLqtpHpbn
https://www.pinterest.com/minicaseop/
https://vimeo.com/minicase
My Maintainer Journey
Tags: hack23maintainer, hacktoberfest, hacktoberfest23, python
Published: 2023-10-20 00:38:34

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a maintainer. Is this your first Hacktoberfest, or have you maintained in others? Feel free to embed your GitHub account by using {% embed LINK %} -->
As a maintainer, this is my first year. I took a leap of maintaining 3 projects this year, rather than none. I have maintained my own repositories(all 3 of them) singlehandedly, and I have also made rules for contributing. Here is my [Github account](https://github.com/tinyCodersDen)
### Project
<!-- Tell us about the repository that you hosted. What processes did you set up to review and merge pull requests? Feel free to embed your GitHub repo by using {% embed LINK %} -->
I set up a system where I ensure no code is being copied from other solution repositories, and that the code is kept in the right folders, is commented well, has a header, etc. Next year, I am planning to automate some of these processes. My repository is [tinyCodersDen/CCC-Solutions](https://github.com/tinyCodersDen/CCC-Solutions).
### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->
A light-bulb moment I had was when I was editing C++ code. I am not too experienced with C++ yet, but I had still found ways to solve some complex errors(related to pointers) in C++.
### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your project goals changed since publicly maintaining it? -->
A big skillset that has improved as a maintainer is that I have gained more knowledge of C++ in the Competitive Programming Domain. I now know more about pointers(which has helped me), and I am more confident for making C++ submissions in competitions.