teleren/devto huggingface dataset:
Chetan Jain's Portfolio
Tags: career, careerdevelopment, portfolio, discuss
Published: 2023-06-03 07:10:29

Hi,

I'm Chetan, an IITian who has successfully completed multiple projects. Here some of the projects I am Proud of:

## Projects

**Omkar Cloud**

I scraped over 300 million LinkedIn profiles to extract their company details and emails, making them accessible through a powerful search engine. Omkar Cloud is an advanced version of LinkedIn Sales Navigator.

Project: [Omkar Cloud](https://www.omkar.cloud/)

**Omkar DevTools**

Omkar DevTools is a comprehensive dashboard that serves as a Swiss Army Knife for developers. It offers tools such as a UUID generator, hash generator, and base64 encoder, all in one convenient dashboard.

Project: [Omkar DevTools](https://www.omkar.cloud/devtools/)

**Bose Framework**

Bose Framework is an innovative, open-source bot development framework based on Selenium. It has been widely adopted by thousands of developers and currently boasts 53 stars on GitHub.

Project: [Bose Framework](https://www.omkar.cloud/bose/)

**Content Writing**

I have written a short e-book on Docker.

Project: [Docker E-book](https://www.omkar.cloud/docker/)

I have also authored an article on the Bose Framework, which has garnered over 5000 reads and 273 reactions. It currently holds the top ranking for the web scraping tag among 900+ articles.

Article: [Introducing Bose Framework: The Swiss Army Knife for Bot Developers](https://dev.to/chetanam/introducing-bose-framework-the-swiss-army-knife-for-bot-developers-10k9)

Additionally, I wrote an article on deploying Kubernetes, which has received over 6000 reads and 259 reactions from the Dev community.

Article: [Deploying Kubernetes: A Comprehensive Guide](https://dev.to/chetanam/deploying-kubernetes-a-comprehensive-guide-abc)

---

## Connect

I am an IITian with a perfectionist attitude to work. When I commit to project, rest assured that it will be completed with perfection. I am interested in providing my expertise in the following areas:

- Full Stack Development
- Bot Development
- DevOps
- Content Writing

Feel free to say "Hi" to me via WhatsApp at [https://www.omkar.cloud/l/whatsapp](https://www.omkar.cloud/l/whatsapp) or email me at chetan@omkar.cloud. I would be happy to help. 

Best regards,
Chetan
FREE WEB RESTful API's 🚀
Published: 2023-06-03 07:08:31

I'm sure you wonder like me - "Well, I need to test something in front-end but I don't want to create a Resfull API from scratch. 

Well, here is my list to not waste any more time, but go and start practicing. 😍

- https://pokeapi.co/ - All the Pokémon data you'll ever need in one place,easily accessible through a modern RESTful API.

- https://jsonplaceholder.typicode.com/ - Free fake API for testing and prototyping.Powered by JSON Server + LowDB. Tested with XV.

- https://swapi.dev/ - The Star Wars API, or "swapi" (Swah-pee) is the world's first quantified and programmatically-accessible data source for all the data from the Star Wars canon universe!

- https://restcountries.com/ - Get information about countries via a RESTful API


- https://random-data-api.com/ - Generate random fake data and populate your application for easier development and testing

**PLEASE, share in the comments your list of loved Free Restful Api's, so I can add more valuable recourses to the article.**


---

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


[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kristiyan-velkov-763130b3/)

<a href="https://revolut.me/kristiyanvelkov" target="_blank">
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxmsw2d2ooukhdg8x5ar.png)
</a>

If you like my work and want to support me to work hard, please donate via:

<a href="https://revolut.me/kristiyanvelkov" title="Link to Revolut">Revolut website payment</a> or use the QR code above.                                                                                                                           


**Thanks a bunch for supporting me! It means a LOT 😍**

---
Tech Memes through the Ages: Which One Stands the Test of Time?
Tags: discuss, watercooler
Published: 2023-06-03 07:00:00

Memes provide us with laughter, camaraderie, and when they're too relatable, maybe even a few tears. But amidst the ever-evolving landscape of memes, not all of them stand the test of time. But some endure, and will live on forever, and those are the ones we want to celebrate today. 

So, what's your favorite tech meme that continues to make you chuckle, no matter how many years have passed?

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more awesome discussions and online camaraderie!

*{% embed* [https://dev.to/codenewbieteam](https://dev.to/codenewbieteam) *%}*
What's the Strangest Support Request You've Ever Received?
Tags: discuss
Published: 2023-06-03 07:00:00

"Did you restart it?" It's a simple yet powerful troubleshooting technique that often works wonders. If only it were always so easy. Yes, we've all had our fair share of hilarious and bizarre moments in - or adjacent to - the world of tech support. So let's swap those stories and have a good laugh. 

Share the weirdest or funniest tech support or IT-related request you've ever received. 

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}

[Image by pch.vector on Freepik](https://www.freepik.com/author/pch-vector)
This week’s newsletter is out! (03-06-2023) - Quite A Lot Of History
Tags: javascript, tech, webdev, discuss
Published: 2023-06-03 06:56:48

---
title: This week’s newsletter is out! (03-06-2023) - Quite A Lot Of History
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Quite A Lot Of History

https://markjgsmith.substack.com/p/mark-smiths-newsletter-03-06-2023

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Accessing and browsing blockchain using web3py python library
Tags: ctf, blockcha, python, web3py
Published: 2023-06-03 06:00:50

{% embed https://www.youtube.com/watch?v=uOZu6_94G64&t=405s %}

This is from HeroCTF v5, Blockchain challenge called Arrest. It reads:

> In the dim-lit confines of his room, a lone figure hunched over a computer screen. Known online as 'Swissy', he was one of the most notorious ransomware operators worldwide.
> From his small apartment in a forgotten corner of Moscow, Swissy had wreaked havoc on the digital world, crippling entire industries with his ransomware attacks.
> But tonight, his reign of terror ended abruptly. A sudden knock echoed through the room, followed by the splintering of the door as Russian FSB agents stormed in.
> Swissy was arrested, but the real challenge was only beginning - tracing the syndicate behind him.
> Find the address who funded the ransomware operator (0xf6c0513FA09189Bf08e1329E44A86dC85a37c176)

To solve it, I use web3py to connect to the blockchain and then will check for every block created from the beginning. There, I will check for transactions in the block and if there is any, I will check for its "to". If it matches, we will show the "from" (which is Swissy!).

IMO this can be a good intro if you are interested in using web3py and blockchain programming in general.
Visualize Your Python Code, Debugging for beginners !!!
Tags: beginners, python, tooling, tutorial
Published: 2023-06-03 05:44:33

## Debug and Visualize Your Python Code with PythonTutor.com

As a beginner Python developer, understanding how your code executes and identifying bugs can be challenging. This is where PythonTutor.com comes to the rescue. PythonTutor.com is a free online tool that offers an interactive environment to debug and visualize Python code, providing a valuable learning resource for newcomers to the language.

![example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihkzd63pt631xpp4npgi.png)

## Understanding Program Execution

One of the primary advantages of PythonTutor.com is its ability to visually demonstrate the step-by-step execution of Python programs. By entering your code into the platform, you can watch as it is executed line by line, seeing how variables change their values and how control flows through the program. This visual representation helps beginners grasp the flow of execution and understand the behavior of their code.

## Debugging Made Easier

PythonTutor.com simplifies the process of debugging by allowing you to step through your code and observe its state at each step. You can set breakpoints and view the values of variables and expressions at any point during the execution. This feature is especially useful for identifying logical errors or unexpected behaviors in your code. By visually inspecting the program's state, you gain insights into why certain bugs occur, facilitating the debugging process.

## Visualizing Data Structures

Understanding data structures is crucial for writing efficient and bug-free code. PythonTutor.com enables you to visualize various data structures, including lists, dictionaries, and stacks, in real-time. By seeing how these structures evolve as the program executes, you can better comprehend their behavior and make informed decisions about their usage. This visual representation enhances your understanding of data manipulation and enables you to write more robust code.

## Sharing and Collaborating

PythonTutor.com provides an option to share your code and its visual representation with others. This feature is beneficial when seeking help from peers or mentors. By sharing a link to your code, you can effectively communicate your issue or question, and others can view your code execution and provide assistance. This collaborative aspect fosters a supportive learning community and accelerates your growth as a Python developer.

## Conclusion

PythonTutor.com is an invaluable tool for beginner Python developers, offering a range of features that simplify the process of debugging and visualizing code. Through its step-by-step execution visualization, debugging capabilities, data structure visualization, and collaborative sharing, PythonTutor.com empowers beginners to better understand their code and accelerate their learning journey.

Next time you find yourself stuck while debugging or want a deeper understanding of your Python code, give PythonTutor.com a try. It will undoubtedly become an essential part of your learning toolkit. Happy coding and debugging!
What is cross-origin? Why do we write cross-origin in our code?
Tags: crossorigin, webdev, javascript, tutorial
Published: 2023-06-03 05:42:37

In web development, the term "**cross-origin**" refers to interactions between web pages or scripts that originate from different domains, protocols, or ports. Browsers enforce a security policy called the "**same-origin policy**" that restricts these interactions by default. The policy aims to prevent malicious websites from accessing or manipulating data from other websites without explicit permission.

## Example
`<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>`

The crossorigin attribute I included in my code snippet is used when loading external resources, such as scripts, stylesheets, or images, from a different origin. It is primarily used for loading resources that support **Cross-Origin Resource Sharing (CORS)**.

When I set the crossorigin attribute to a value, such as "anonymous" or "use-credentials," I indicate to the browser how it should handle any cross-origin requests made while fetching the resource.

In my example, By including the crossorigin attribute, I am specifying that the browser should handle any cross-origin requests made by this script according to the CORS policy. This can include making AJAX requests to other domains or loading additional resources like stylesheets or images.

It's important to note that the use of the crossorigin attribute depends on the specific resource being loaded and whether the server hosting the resource supports CORS headers. If the server does not send the necessary CORS headers, the crossorigin attribute may not have any effect.

To fully understand the concept of **CORS**, let's have a look into it in detail.
{% youtube tcLW5d0KAYE %}
TRC20 transfer.How to get the transfered amout from transaction hash ?
Tags: tron, trc20, javascript, web3
Published: 2023-06-03 04:55:18

HI. I am trying to get TRC20 transaction details using the transaction hash.I'm trying to retrieve transaction details such as the to_address and amount for a specific transaction using getTransaction method. However, I'm only able to retrieve the from_address correctly, while the to_address is returning undefined and the amount is NaN. Please help me. I want to save the transaction details after the the user made the transaction.

async function getTransactionDetails(tronWeb, txid) {
  return new Promise(async (resolve, reject) => {
    const checkTransaction = async () => {
      try {
        const transaction = await tronWeb.trx.getTransaction(txid);
        if (transaction && transaction.ret && transaction.ret.length > 0) {
          resolve(transaction);
        } else {
          setTimeout(checkTransaction, 1000);
        }
      } catch (error) {
        reject(error);
      }
    };

    checkTransaction();
  });
}



  const tronWeb = window.tronWeb;

 const transaction = await getTransactionDetails(tronWeb, txid);

const fromAddress = transaction.raw_data.contract[0].parameter.value.owner_address;
 const toAddress = transaction.raw_data.contract[0].parameter.value.to_address;
 const amount = parseInt(transaction.raw_data.contract[0].parameter.value.amount);
Setting countdown timer in JS -oneliners
Tags: javascript, beginners, programming, tutorial
Published: 2023-06-03 04:45:38

const logoutTimer = function () {
  let time = 120;
//setting it to 2 min
  const timer = setInterval(()=> {
  const min = String(Math.trunc(time/60)).padStart(2, 0);
    const sec = time % 60;
    labelTimer.textContent = `${min}min:${sec}sec`;
//use your label where you want to place it
    time--;
    if (time === 0) {
      clearInterval(timer);
//this will end up your timer when it reaches 0sec
//place your function here 
    }
  }, 1000);
};
So The Journey Begins - My Startup Story
Tags: beginners, startup, javascript, typescript
Published: 2023-06-03 04:34:40

Hi friends 👋🏽. It's been a while since I heard from you. I hope you are doing well and are doing great.

Since the last time I wrote here, there have been a lot of interesting things happening to me, both good and otherwise. I wish to write about them here, but that would defeat the purpose of this article.

## Why Startups?

The reason I want to create startups is that owning a business has proven to have certain benefits such as financial gain and potential for growth. Moreover, some people exceed their peak capacity or creativity where there is no predictable path to follow.

> Little disclaimer here: I am more focused on product development right now rather than other aspects that make up a business. I am going solo right now, but I hope to make some friends (with you) along the way to build awesome and useful products.
> 

## Which Startups?

Or rather, which products? Currently, I am interested in dev tools and utilities. Being a developer for over 4 years, I have created helpful tools or scripts to help me do my job faster, and I have occasionally contributed to such tools. I aim to build on this foundation.

## What Plans?

I am new to this. My approach to this is to learn as it unfolds. Many of the products I will build may never be used by anybody, but I will make sure to learn, have fun, and document my experience.

Since I primarily write TypeScript, I found a tool called [Redwood.js](https://redwoodjs.com/) that helps you bootstrap your project so you can develop faster. I was part of their showcase event recently, and I love many of the products that are being built with it. Moreover, Redwood.js has a community of founders who are usually helpful, especially when you are just starting this journey or going solo.

## What’s Next?

I started working on a project a month ago, and I look forward to shipping it and sharing it with you. It’s a tool that is guaranteed to help firms and individuals automate their content.

## Will You Join Me?

I created a newsletter dedicated to documenting my experience, the experience of others, courses, opportunities, job openings, investment opportunities, and many more, and this journey continues.

[Join me here!](https://zt4ff.substack.com/?r=8n8jt&utm_campaign=pub-share-checklist)

## Finally

I would love to hear about your experience building a business on the internet. What works and what didn’t?

What advice will you give a newbie like me?
The Use of Condition '1=1' in SQL Database
Tags: codenewbie, learning, productivity, database
Published: 2023-06-03 03:00:00

Have you ever seen or come across an SQL query that includes the condition '1=1'?

In essence, '1=1' is a condition that always evaluates to true. When used in a query, this condition does not have any effect on the query results. However, can we actually utilize and benefit from '1=1' in the implementation of writing SQL queries?

Although it may seem trivial and the use of '1=1' is very simple, it can be highly useful. One of its applications is in creating dynamic queries.

> Simply put, a dynamic query is a query that can change based on needs or input provided.


### Example
The challenge in creating dynamic queries in some SQL databases is when we need to start the conditional statement using the WHERE clause, which can be cumbersome for creating dynamic queries.

Therefore, when creating dynamic queries, we often make use of the condition '1=1' at the beginning of the query's conditional statement (WHERE). This allows us to flexibly build condition criteria based on user input more easily, as we only need to add additional conditions (AND).

Here's a brief example in PHP:
```
//Assume dynamic filters from user input
$inputFilterName = $request->input('name');
$inputFilterAddress = $request->input('address');

//String Query
$sql = "SELECT * FROM users WHERE 1=1";

//Dynamic condition for name
if($inputFilterName !== null){
 $sql .= "AND name = '$inputFilterName'";
}

//Dynamic condition for address
if($inputFilterAddress !== null){
 $sql .= "AND address = '$inputFilterAddress'";
}

//Exec query
mysqli_query($koneksi, $sql);
```
With the above condition, we have created a dynamically generated query based on different inputs and requirements. The use of '1=1' in the example above is very helpful, as it simplifies the process of creating dynamic queries.

> Note: The code and query above are just examples to illustrate the use of '1=1'. In practice, the above query example is not optimal and additional mechanisms are needed to prevent the risk of SQL injection attacks.

### Conclusion
In this article, we have explored the use of the '1=1' condition in SQL queries and how it can be beneficial in creating dynamic queries. Although it may appear simple, '1=1' provides flexibility in constructing query conditions based on user input more easily.

> This article is translated using AI from the original article written in Indonesian language : [Medium](https://vierilusen.medium.com/75aa1b5d0374)
when did you figure out what you want to do as a programmer?
Tags: discuss, help, learning
Published: 2023-06-03 02:26:31

was it a certain idea you had for a project that led you to learn a specific programming language? was it already having a career that helped you realize what you wanted to specialize in? as a beginner I haven't found what it is I want to do as a programmer, I just know that I feel passionate about learning coding. I'm curious how others have arrived at the point they are at in their careers/studies.
MOT Prerequisites
Published: 2023-04-13 02:57:35

The following specifies the hardware and software prerequisites for using openGauss MOT.

Supported Hardware
MOT can utilize state-of-the-art hardware, as well as support existing hardware platforms. Both x86 architecture and ARM by Huawei Kunpeng architecture are supported.

MOT is fully aligned with the hardware supported by the openGauss database. For more information, see the openGauss Installation Guide.

CPU
MOT delivers exceptional performance on many-core servers (scale-up). MOT significantly outperforms the competition in these environments and provides near-linear scaling and extremely high resource utilization.

Even so, users can already start realizing MOT's performance benefits on both low-end, mid-range and high-end servers, starting from one or two CPU sockets, as well as four and even eight CPU sockets. Very high performance and resource utilization are also expected on very high-end servers that have 16 or even 32 sockets (for such cases, we recommend contacting Huawei support).

Memory
MOT supports standard RAM/DRAM for its data and transaction management. All MOT tables’ data and indexes reside in-memory; therefore, the memory capacity must support the data capacity and still have space for further growth. For detailed information about memory requirements and planning, see the MOT Memory and Storage Planning__section.

Storage IO
MOT is a durable database and uses persistent storage (disk/SSD/NVMe drive[s]) for transaction log operations and periodic checkpoints.

We recommend using a storage device with low latency, such as SSD with a RAID-1 configuration, NVMe or any enterprise-grade storage system. When appropriate hardware is used, the database transaction processing and contention are the bottleneck, not the IO.

For detailed memory requirements and planning, see the MOT Memory and Storage Planningsection.

Supported Operating Systems

MOT is fully aligned with the operating systems supported by openGauss.

MOT supports both bare-metal and virtualized environments that run the following operating systems on a bare-metal server or virtual machine –

x86 – CentOS 7.6 and EulerOS 2.0
ARM – openEuler and EulerOS
OS Optimization
MOT does not require any special modifications or the installation of new software. However, several optional optimizations can enhance performance. You may refer to the MOT Server Optimization – x86 and MOT Server Optimization – ARM Huawei Taishan 2P/4P sections for a description of the optimizations that enable maximal performance.
How I built a Custom Handwired Mechanical Keyboard
Tags: mechanicalkeyboard, programming, productivity, webdev
Published: 2023-06-03 02:06:55

🔥 🄰🄽🄺🄱🄳 - ➍➋ 🔥

I created a custom ergonomic hand wired mechanical keyboard. It is an ortho-linear, column-staggered keyboard with 6 key thumb cluster powered by QMK 💪.

This was my first time playing with micro controllers, I used a pro micro for my build. Here is a small video on it.

{% youtube HKSbo6_KerA %}
TinyMCE can't insert Code and dropdown with Chakra UI Modal
Published: 2023-06-03 01:36:36

Hi, I have problem when work with TinyMCE and Chakra UI modal. I can't insert code plugin and dropdown.

Solution:

add "trapFocus={false}" in modal.

```
<Modal isCentered isOpen={isOpen} onClose={onClose} size={"6xl"} trapFocus={false}>
```
David Simpson Apps - Apps for Atlassian and monday.com
Tags: analytics, integrations
Published: 2023-06-03 01:31:21

David Simpson Apps is a SaaS company based in Nottingham, England.

We specialize in creating apps and integrations that add value for Atlassian and monday-com customers. Our goal is to bring systems together, empowering teams to make faster and more informed decisions.

With over 15 years of experience, we have built a strong reputation in developing applications for both cloud-native and on-premise systems within the Atlassian ecosystem and community.

[https://www.dsapps.dev](https://www.dsapps.dev)