teleren/devto huggingface dataset:
2 Things That I Started to Think in Reverse
Tags: beginners, programming, productivity, learning
Published: 2024-05-08 05:09:52

A year ago, I bought a book written by Paul Arden titled ["Whatever You Think, Think the Opposite"](https://www.goodreads.com/en/book/show/265525). It's a simple book that teaches you that sometimes you need to think the opposite of other people or common ideas. As time went by, I came up with three things that I started to think about in reverse, which I'm going to write about in this article.

## 1. Set Goals That are Intended to Fail
Like many other folks, many times I set up a goal and it just didn't work out. Whether it's learning new things, building something, or my personal life, I started to wonder what was wrong with myself and began blaming myself for it. But now, I don't think the same way anymore.

So, here is what I do. What if you set up a goal but intended it to fail? I know it sounds cliché, but that's what I do now. The idea is, you have a goal, and when it fails, you have to find out why it failed and quickly learn from it. If the goal works, I will be happy. But if it fails, that is okay too, since I intended that goal to fail. So I don't blame myself anymore and don't feel down about it.

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

## 2. Being Productive is not all about adding something, but it's about removing something
I used to think that being productive means I can deliver more in terms of work. And that is true. But there is one thing that I forget about. The key to becoming productive is about removing something from your life. Being able to say no to things that are not your main priority or not really important. Removing distractions such as social media and some bad habits that can waste your time.

Being productive is not all about adding something to your life, but it's about removing things from your life. You can only do things that are right when you remove things that are wrong.

## Conclusion
In wrapping up, let's take a look at what I've learned from these two ideas.

First off, we found out that setting goals with the expectation that they might fail isn't such a bad idea after all. Instead of seeing failure as a total disaster, we learned to see it as a chance to learn and grow. By embracing this mindset, we can shake off the fear of messing up and actually learn a ton from our mistakes.

And secondly, being productive isn't just about cramming more stuff into our schedules. It's also about clearing out the distractions and things that aren't important, which are holding us back. By cutting out distractions and focusing on what really matters, we can make room for the things that truly light us up.

So, in a nutshell, reverse thinking is all about flipping the script and trying out new ways of doing things. It's about embracing the unexpected and being open to unconventional ideas. And who knows? Maybe by thinking a little differently, we'll stumble upon some pretty cool solutions to life's challenges.
Creative Banner Design Solutions in Gurgaon
Published: 2024-05-08 05:07:43

Wovved, your premier marketing agency, specializes in brand building and [Banner Designing in Gurgaon](https://wovved.com
). At Wovved, we're fueled by passion and dedicated to creating impactful solutions that integrate concept, design, market orientation, and quality. Our focus is on ensuring every communication resonates with your target audience through strategic concept development, stylization, and precise targeting using the right medium at the right time. For outdoor and below-the-line (BTL) marketing needs, we offer comprehensive solutions such as store branding, danglers, buntings, standees, van branding, posters, event kits, event branding, hoardings, and roadshows. Located in Gurgaon, we specialize in banner designing, ensuring your brand stands out amidst the vibrant landscape of this bustling city. Join us for more information!
"A delightfully fresh take on email." HEY👋
Tags: hey, email, 37signals, innovation
Published: 2024-05-08 05:01:27

Just wrapped up an amazing week and a half using the [Hey](https://www.hey.com/) email by [37signals](https://37signals.com/), and I can't help but share the love! 🚀

{% embed https://www.hey.com/ %}

Their "delightful fresh take on email" has given me a clutter-free, efficient inbox with privacy in mind. The Screener tool lets me decide who gets into my inbox—keeping it personal and important.
The Imbox, Feed, and Paper Trail organization make my email life a breeze. The Feed turns long-reads into a casual news feed, making newsletters from the likes of [David Heinemeier Hansson](https://world.hey.com/dhh) and [Jason Fried](https://world.hey.com/jason) a joy to read. Plus, importing emails from my previous service was seamless.

Blogging is as easy as emailing [world@hey.com](https://www.hey.com/world/)—"write, send, and it's posted"! Perfect for fellow writers and bloggers.  

And let's talk about Hey Calendar—designed around how we think and plan in days and weeks.

The timeline-based day view and the innovative "maybe" feature in [Hey Calendar](https://www.hey.com/calendar/) have revolutionized how I plan. Plus, you get handy features like importing from Google, Outlook, and Apple, sharing calendars with other Hey users, adding events directly from email invites, and full multi-time zone support. It's a planner's dream!

Aside from its sleek design, what really sucked me in is the official support for a Linux desktop client. As a daily Linux user, the pain of not having native clients for some of the apps I like and use daily is real. Having the calendar and mail in the same app, just an icon-click away, is a game-changer.
As my free trial wraps up in 3 days, I'm already contemplating setting up a piggy bank and saving up for the $99 personal subscription. Privacy and efficiency are priceless, and Hey has won me over. 🌐✉️



*This is from my original post on [LinkedIn](https://www.linkedin.com/posts/joseph-ochego_a-delightfully-fresh-take-on-email-calendar-activity-7166318201948110851-iPN2?utm_source=share&utm_medium=member_desktop) 2months ago.*
Ultimate CKA Mock Exam!
Tags: devops, kubernetes, jenkins, aws
Published: 2024-05-08 04:53:25

🤖 **Exciting News for Kubernetes Enthusiasts!** 🤖 

I'm thrilled to share that after months of dedicated effort, I've compiled a comprehensive collection of **Kubernetes Mock Exams**. These exams are designed to prepare you for the official Kubernetes certification and elevate your skills to the next level.

📃 **What's Inside?**
- **10 Mock Exams**: Each focuses on real-world scenarios that test and enhance your problem-solving skills in managing Kubernetes environments.
- **Covers Various Topics**: From basic pod management to advanced security, networking, and high availability strategies.

📇 **Why This Matters?**
- **Hands-on Practice**: Tackle configurations, troubleshooting, and deployments that mimic real-life challenges.
- **Skill Enhancement**: Master the intricacies of Kubernetes to manage containers effectively and efficiently.

Whether you're preparing for a Kubernetes certification or looking to sharpen your expertise, these exams provide invaluable practice and learning opportunities.

Feel free to reach out if you're interested in accessing these resources or want to discuss Kubernetes best practices. Let's connect, learn, and grow together in our cloud-native journey!

🔗 [Link to the exams](https://github.com/fahmifareed/Kube-Practice-Tests)
DSA vs. Development, Confused?
Tags: development, dsa, webdev, programming
Published: 2024-05-08 04:32:25

For aspiring developers, one of the biggest questions is whether to concentrate more on learning data structures and algorithms (DSA) or gaining hands-on development experience with technologies and frameworks. The short answer is - you need both, but the ideal mix depends on your specific career goals.

## If Targeting Major Tech Companies
If your target is to land a software engineering role at a major tech company like Amazon, Google, Facebook etc., having a strong grasp of DSA is crucial. The coding interviews at these companies are heavily focused on testing a candidate's problem-solving abilities using DSA concepts. 

> As shared by experienced developers, spending 2-3 months doing focused DSA preparation by going through a structured curriculum like GeeksforGeeks can be sufficient to crack the coding rounds.

However, DSA knowledge alone is not enough. You need to complement it with solid development fundamentals and experience building real-world applications. The non-coding rounds will assess your skills in system design, software engineering principles, coding best practices etc. So development experience cannot be ignored either.

## For Startups/Product Companies
On the other hand, if you are looking at roles in startups or product-based companies, the priority shifts more towards hands-on development skills. Their interviews tend to be more about creating end-to-end applications, understanding requirements, and implementing functionality. DSA still helps but may not be the sole make-or-break criteria.

## The Ideal Approach
The ideal approach is to develop a base in both areas and then specialize based on your interests and career trajectory.

1.  Master core DSA and development fundamentals first.
2.  Get some experience through internships or personal projects.
3.  Then go deeper into your focus area: DSA for big tech, 
    development skills for startups.

With the right guidance, you can plan this in parallel instead of doing it sequentially.

## The Long-Term Value
Remember, in the long run, both technical computer science concepts and software development abilities are crucial for a successful career. By strategically balancing the two, you can increase your chances of landing the right role and accelerating your professional growth.
Infinite horizontal scroll, vanilla CSS
Tags: webdev, javascript, css
Published: 2024-05-08 04:31:53

I needed a horizontal scroll in vanilla CSS without javascript

I found a few examples but none of them there fully complete

The trick is to repeat the items 3 times, then uses grid and animation tricks

This is the end result, not you need a smaller screen to see the effect:

https://play.tailwindcss.com/oMbuTy0AT5

Here is the `html`

```html
<div class="scroll-container relative grid h-16 w-full overflow-hidden whitespace-nowrap">
<div data-first class="scroll flex h-16 w-full items-center justify-around gap-8 whitespace-nowrap px-4 lg:!animate-none" >
    <!-- loop over the items you want to infinitely scroll -->
    {{ list }} 
    {{ svg :src="icon" class="h-16  w-auto shrink-0" }}
    {{ /list }}
</div>
<div class="scroll flex h-16 w-full items-center justify-around gap-8 whitespace-nowrap px-4 lg:hidden lg:animate-none">
    {{ list }}
    {{ svg :src="icon" class="h-16  w-auto shrink-0" }}
    {{ /list }}
</div>
<div data-last class="scroll flex h-16 w-full items-center justify-around gap-8 whitespace-nowrap px-4 lg:hidden lg:animate-none" >
    {{ list }}
    {{ svg :src="icon" class="h-16 w-auto shrink-0" }}
    {{ /list }}
</div>
<div class="fade pointer-events-none absolute inset-0 lg:hidden"></div>
</div>
```

and here is the css needed:

```css
  @keyframes first-loop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-200%);
    }
  }

  @keyframes loop {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  .scroll-container {
    --time: 30s;
    --half-time: 15s;

    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    grid-template-areas: 'scroll-area';
  }

  .scroll {
    grid-area: scroll-area;
    animation: loop var(--time) linear infinite;
    transform: translateX(100%);

    &[data-first] {
      animation: first-loop var(--time) linear forwards;
      transform: translateX(0);
    }

    &[data-last] {
      animation-delay: var(--half-time);
    }
  }

  .fade {
    background: linear-gradient(
      90deg,
      #fff,
      transparent 30%,
      transparent 70%,
      #fff
    );
  }
```

## Short explanation

The `data-first` applies an animation from the start so that you don't get a loop that moves the first items to 100% which would lead to a gap in the first revolution.

Maybe someone knows a way to avoid the first revolution
Carrusel de Revistas RRCSH
Tags: codepen, css, html, orcid
Published: 2024-05-08 04:24:02

`<iframe height="300" style="width: 100%;" scrolling="no" title="Carrusel de Revistas RRCSH" src="https://codepen.io/Kevin-Am-lcar-Hern-ndez-Guti-rrez-BIB/embed/YzMMPYz?default-tab=html%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
  See the Pen <a href="https://codepen.io/Kevin-Am-lcar-Hern-ndez-Guti-rrez-BIB/pen/YzMMPYz">
  Carrusel de Revistas RRCSH</a> by Kevin Amílcar Hernández Gutiérrez (<a href="https://codepen.io/Kevin-Am-lcar-Hern-ndez-Guti-rrez-BIB">@Kevin-Am-lcar-Hern-ndez-Guti-rrez-BIB</a>)
  on <a href="https://codepen.io">CodePen</a>.
</iframe>`Check out this Pen I made!

https://codepen.io/Kevin-Am-lcar-Hern-ndez-Guti-rrez-BIB/pen/YzMMPYz
Preparation (Installation, environment settings)
Tags: hacking, dvwa
Published: 2024-05-08 03:28:03

Finally, my long-awaited first DVWA web hacking project has begun.

I've walked a lot of roads.

There were times when it was a little hard, but I grew dramatically.

And in the future, it will grow in a more positive direction.

## Apache2 Settings

- a reference page

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

First, I will install the necessary environments in Cali Linux.

I set up apache2, which will serve as the most basic web server.

## MySQL settings

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


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


I set up mysql to serve as a database.

## Installing and Setting Up DVWA


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


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


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

I downloaded the DVWA from Github as follows and set up the necessary files.

## DVWA access


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

If you access through localhost, you will see the login screen as described above.

id: admin

pw: password


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

The initial screen appears, and when you press the Create/Reset Database below, the initial setting is automatically completed, and it returns to the login screen.

If you log in again,


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

An environment for practice will be established as shown in the figure.
Web Hacking - DVWA
Tags: dvwa, hacking
Published: 2024-05-08 03:22:13


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

<aside>
✨ This is the write-up for low, medium and high security levels of all labs of DVWA (Damn Vulnerable Web Application), written by D.Kim.

</aside>

Damn Vulnerable Web Application (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goal is to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment.

The aim of DVWA is to practice some of the most common web vulnerabilities, with various levels of difficulty, with a simple straightforward interface. Please note, there are both documented and undocumented vulnerabilities with this software. This is intentional. You are encouraged to try and discover as many issues as possible.
Image Gallery
Tags: webcomponents, webdev, beginners, learning
Published: 2024-05-08 03:18:24

**BLUF:** My final project for my web dev class. Can be seen at [Image Gallery - ChatGPT's Take On King Midas](https://image-gallery.jalpy.dev/)

This course had to be one of the craziest classes I have taken. My professor was a menace to the system and had his own chaotic and original way with instruction. He made it very clear that he did not care about pissing off his superiors, and had to be my favorite professor I have had yet.

This course focused on Web Components via [Lit](https://lit.dev). I think we spent a single week (two classes) learning the foundations of web development. Never taught us a single line of HTML, told us to google CSS, and spent that first week showing us what JavaScript does. Personally wish we spent some more time understanding the foundations, but even if I don't know exactly what I am doing... I have been able to accomplish some great stuff.

The organization of the code in this project is actually atrocious, but it works... and with the deadline coming up very quickly I do not want to touch it. I will probably go through after it's graded to clean things up and make it something I'd be proud to show off.

The last week I worked on this project was when all of the logic really came together. Lots of inspect element + console to force type various responses and changes. But eventually, something just clicked. When it clicked I genuinely think there's was ten minutes spent to completely finish the project and get everything working.

Oh... forgot to mention, the project is an Image Gallery. A page full of text + images, you can click on any image and it will display larger... taking up the entire page. You can navigate on the pop-up between all the different images and see which image you are on. Whatever image you click, will be the one to populate the screen. It sounds rather simple, but seeing how I have spent 2 days a week for the last 15 weeks learning everything I know about web development to get to this point. It is a rather large accomplishment and something I am proud to share.

With this said, enjoy the project 😉

---

Direct Link: [Image Gallery - ChatGPT's Take On King Midas](https://image-gallery.jalpy.dev/)

GitHub: [GitHub - Image Gallery Final Project](https://github.com/Jalpster/ist256-project2)

---

**Screenshots of The Page***(I did NOT care about styling for this project)*


![Image Gallery Exanded](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xjndwvdlz40bjabsyl3r.png)

![Main Page With Images](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/11tsbkqqpdbjjva60s15.png)
why .txt files in next.js build of new App structure?
Tags: nextjs, webdev, frontend
Published: 2024-05-08 03:14:09

Hey, 
I'm using next.js for my static project hosted in S3 bucket, but here when the time of build I'm getting .txt files as well for the every build file {e.g., hello.html and hello.txt). and because of that .txt files I'm getting browser console errors of .txt files. why and how to get rid of this??
Mastering Data Analysis with Python's Core Libraries
Tags: stockmarkets, python, dataanalysis, smazoomcamp
Published: 2024-05-08 03:03:44

Mastering Data Analysis with Python's Core Libraries



In the realm of data analysis, Python offers robust tools like Numpy, Pandas, and Matplotlib, along with Seaborn and Plotly Express. These libraries empower analysts with efficient array operations (Numpy), data manipulation and analysis (Pandas), and advanced data visualization (Matplotlib, Seaborn, Plotly Express).



Understanding and manipulating data types like numeric, string, and date categories is crucial. Generating dummy variables and deriving additional features, such as hour/day of the week indicators or growth over different periods, enhances analysis depth. Incorporating technical indicators from TaLib adds nuance to market trend analysis.



Effective data cleaning strategies, including handling missing values and outliers, are foundational. Thorough descriptive analysis, including statistical summaries and visualizations, uncovers hidden trends and correlations.



In conclusion, mastering Python's core libraries for data analysis unlocks a world of possibilities, from efficient data manipulation to insightful visualization and advanced feature engineering. #smazoomcamp accelerates this journey by providing structured learning and valuable resources.

My repo ➡️ https://github.com/AnnalieseTech/ANALYTICS_IN_STOCK_MARKET_ZOOMCAMP/blob/main/Week_02_Dataframe_Analysis/Module02_Working_With_The_Data_Assignment.ipynb


Data Talks Club - Stock Markets Analytics Course: https://github.com/DataTalksClub/stock-markets-analytics-zoomcamp


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wzzyrglmvmwbttav2ep4.png)
Mine XMR on Raspberry Pi
Tags: cryptocurrency, docker, kubernetes, architecture
Published: 2024-05-08 03:03:17

I have been playing around with [xmrig] to see if I could make any money with a few raspberry pi v3 that have been collecting dust. I choose [XMR (Monero)] due to it being ASIC resistant. Which allows the little guys a chance to get rewards for contribution to the blockchain. Also, I am a big fan of the privacy coin.

[xmrig]: https://xmrig.com
[XMR (Monero)]: https://www.getmonero.org

After testing for 5 months, the conclusion is that the Raspberry [pi v3] is very old and cannot compete with new powerful cpu/gpus. However, the Raspberry [pi v5] is new and has potential to output more computation. In addition, I packaged the software on alpine container to run native to the ARM architecture and the results were very surprising.

I am still in the red due to electricity cost, but ARM helps with the cost due to being energy efficient. The learning in this project is intangible and was worth the minor expense. 

[pi v3]: https://www.raspberrypi.com/products/raspberry-pi-3-model-b-plus/
[pi v5]: https://www.raspberrypi.com/products/raspberry-pi-5/

## Pi Cluster

Building a compact cluster has advantages, by sharing electricity over USB hubs or Power Over Ethernet and segmenting the cluster into its own network.

![Pi Cluster](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cp357pm6axvnb7h37ofz.jpg)

- ARM is energy efficient and can share power over USB hub of 5v
- Stackable nodes in a segmented network
- Egress over privacy VPN to remain anonymous

## Upgrade Hardware

Switched from Pi v3 to Pi v5.

![Upgrade Hardware](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/542m63lp7wab88osx4p2.png)

- Pi v3 - Over 5 months I made $0.00 with a 1 H/s
- Pi v5 - In a day was hitting consistent ~150 H/s and finally made $0.01

## Use ARM architecture

Avoid cross architecture emulation on docker, which causes performance bottlenecks. Instead use native ARM Architecture when packaging your containers.

![Use ARM architecture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zslccc35xa3y7ctoth8r.png)

- Pi v3 arm - 1 H/s
- Pi v5 amd -> arm - ~150 H/s
- m3 arm - ~1 KH/s
- Pi v5 arm - ~1.2 KH/s 

## Summary

Final summary of current setup

![Summary 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0h2xsqn4iyr3bhcbww9e.png)

- Peaked at 3.5 KH - Improved by 3,500%
- Now make $0.05 per day

![Summary 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/85iiynh5gz1srci8bqxw.png)

- 1 m1 2 core arm
- 1 m2 2 core arm
- 5 Pi v5 20 core arm

## Quick Setup with Wallet

```bash
# https://github.com/aakhtar3/xmrig
docker run -d \
    --name xmrig \
    -e URL=${POOL} \
    -e WALLET=${WALLET} \
    -e NODE_NAME=$(hostname) \
    --cpus="2" \
    --cpu-quota=400000 \
    --cpu-period=100000 \
    aakhtar3/xmrig
```

- Create [${WALLET}] and run software on docker
- Join a pool ${POOL} - pool.hashvault.pro:443
- Tweak CPU usage based on your cores

[${WALLET}]: https://www.getmonero.org/downloads/