teleren/devto huggingface dataset:
Unveiling the $250 AWS Credits Hack: Elevate Your AWS Journey💰🤑
Tags: aws, learning
Published: 2023-12-13 15:56:26

Hey AWS folks! 🚀 Excited to spill the beans on a game-changing hack
that not only enriches your AWS know-how but also puts $250 in AWS
credits in your pocket. Here's how it all comes together:

Start your AWS adventure by immersing yourself in key events like AWS
Innovate Online Conference, AWSOME Day Online Conference, and Builders
Online Series. These events are more than just conferences; they're
gateways to a wealth of AWS insights and real-world applications.

As you absorb knowledge from seasoned speakers and industry leaders,
you'll find yourself not only gaining insights into various AWS
services but also understanding practical use cases. It's a
transformative experience that goes beyond theory.

Once you've soaked in the knowledge, take a moment to share your
thoughts on the event pages. Your feedback isn't just a contribution;
it's also your ticket to earning AWS credits. And here's the kicker -
some events even offer a bonus: double credits for those who
binge-watch all the content in a single day.

Now armed with a fresh batch of AWS credits, it's time to experiment.
Dive into AWS tools, build, test, and apply your skills in real-world
scenarios. This hands-on approach solidifies your understanding and
enhances your capabilities.

Don't forget to capture those screenshots of your AWS credits! Share
your success, connect with fellow AWS enthusiasts, and inspire others
on their AWS journey.

So, there you have it – a seamless journey from events to credits to
hands-on experimentation. Ready to supercharge your AWS experience?
Dive in, learn, and let the AWS journey unfold! 🌐💡 #AWS
#CloudComputing #AWSJourney #AWSCommunity

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

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

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

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

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

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

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

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

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ab6d2vaeslgonb3kqr62.png)
10 Tips for junior developers
Tags: career, codenewbie, discuss, coding
Published: 2023-12-13 15:45:27

Tips that I would give to someone just starting out as a software developer in the tech industry:

1. Don't be intimidated by the already existing codebase. Yes, it is new and unknown and you will be scared by looking at it but know that everyone once was.
2. Don't ask for help unless absolutely necessary, first try to solve the problem yourself.
3. Ask for help if you have been stuck for a long time but first ask for help to your peers. If your peers are not able to find a solution too, then ask for help to your seniors but always tell them what you already did to try and solve the problem.
4. Don't be scared of new tech stacks, it is all the same thing, same basics apply.
5. Don't indulge in gossip, don't talk behind people's backs.
6. Colleagues are colleagues, they are not friends, so don't overshare.
7. Be ready to face office politics, favoritism, this happens in most places.
8. Collaborate with other teams effectively to produce the best results.
9. Overdeliver if you want to have a good reputation.
10. Be confident in meetings and calls, confidence means you've done good work.

What tips would you give to a new developer? Let us know in the comments!
Circular liquid loader using html css
Tags: freecodez, react, html, blog
Published: 2023-12-13 15:38:55

Hey there, You are most welcome to this article. I hope you will enjoy this article. If you like this article then please share this article with your friends and colleagues. If you have any questions or suggestions regarding this article then please comment down below.

**Circular liquid loader using html css**

![Circular liquid loader using html css](https://res.cloudinary.com/freecodez/image/upload/v1702481912/images/jmanee983bbmdalcw33t.webp)

For full source code visit : [https://freecodez.com/post/1x48ksx](https://freecodez.com/post/1x48ksx)


```html
<!-- https://freecodez.com -->
<div class="loader">
    <div class="waves"></div>
</div>
```

Source Code : [https://freecodez.com/post/1x48ksx](https://freecodez.com/post/1x48ksx)

For more such articles visit : [https://freecodez.com](https://freecodez.com/all)
Python - Use Backtracking for Solving Search Problems with Constraints
Tags: python, programming, tutorial, algorithms
Published: 2023-12-13 15:30:00

Backtracking is a general algorithmic technique used to find solutions for problems involving choices and constraints. It explores all possible options systematically, "backtracking" when it realizes that the current path cannot lead to a valid solution. This approach is often used for solving puzzles, search problems, and constraint satisfaction problems. Here's an example:

**Example - Solving the N-Queens Problem with Backtracking in Python:**

```python
def solve_n_queens(n):
    def is_safe(row, col, board):
        # Check if it's safe to place a queen at the given position
        # Check the current column
        for i in range(row):
            if board[i][col] == 'Q':
                return False
        # Check the upper-left diagonal
        for i, j in zip(range(row, -1, -1), range(col, -1, -1)):
            if board[i][j] == 'Q':
                return False
        # Check the upper-right diagonal
        for i, j in zip(range(row, -1, -1), range(col, n)):
            if board[i][j] == 'Q':
                return False
        return True

    def backtrack(row):
        if row == n:
            # Add the current board configuration to the result
            result.append([''.join(row) for row in board])
            return
        for col in range(n):
            if is_safe(row, col, board):
                board[row][col] = 'Q'
                backtrack(row + 1)
                board[row][col] = '.'

    result = []
    board = [['.' for _ in range(n)] for _ in range(n)]
    backtrack(0)
    return result

# Example usage:
n = 4
solutions = solve_n_queens(n)
for solution in solutions:
    for row in solution:
        print(row)
    print()
```

In this example, we use backtracking to solve the N-Queens problem, where you must place N queens on an N×N chessboard such that no two queens threaten each other. The algorithm explores different queen placements row by row, backtracking when it detects that the current configuration cannot lead to a valid solution.

Backtracking is a powerful technique for solving problems with constraints, and it can be applied to various scenarios where a solution needs to be found within a large search space while satisfying specific rules or conditions.
Interactive SSH port forwarding scenarios
Tags: ssh
Published: 2023-12-13 15:34:51

Maybe some of you feel like me sometimes ..

I don't need SSH port forwarding very often. That's why I usually forget the exact SSH call by the time I need it.

So that I no longer have to search for the correct call in the man page or on the Internet, I have implemented common scenarios interactively and hosted them as github page.

Simply enter addresses, ports and user names and the result is the correct SSH call. Simply copy it and use it.

**[https://github.com/BarbieCue/ssh-wtf-web](https://github.com/BarbieCue/ssh-wtf-web)**
GenAI Announced at DockerCon
Tags: genai, docker
Published: 2023-12-13 15:34:45


This is very exciting because setting all of this up on my Mac was very difficult. Being able to pull down a preconfigured Docker container and get running quickly is huge!


[Docker with Neo4j, LangChain, and Ollama Launches New GenAI Stack for Developers](https://www.docker.com/press-release/neo4j-langchain-ollama-launches-new-genai-stack-for-developers/)
Apply Dependency Injection with Uber/Fx Golang
Tags: go, softwareengineering
Published: 2023-12-13 15:33:35

Hi everyone, I'm Golang Developer currently. In this post, I will introduce to you how to apply uber-go/fx as dependency injection (DI) with Golang.
Link Post: https://www.luciango.com/post/apply-dependency-injection-with-uber-fx-golang
Introduce a simple reminder bot
Tags: go, reactadmin, softwareengineering
Published: 2023-12-13 15:11:08

👋 Hi guys,
Comes from the need for a bot to remind the team of some tasks. 
I have developed **a reminder bot** with a simple admin UI. 🤖 
It supports several types of webhooks, like **Google Chat**, **Slack**, **Discord**, etc.
I hope it will be useful to you. And if possible, don't hesitate to give feedback to make it better. 💪 
Link post: https://www.luciango.com/post/how-to-setup-a-simple-reminder-bot
Free simple reminder bot: https://reminderbot.luciango.com/admin
Rubyでディレクトリ操作をする
Tags: ruby, アドベントカレンダー
Published: 2023-12-13 15:01:00

---
title: Rubyでディレクトリ操作をする
published: true
published_at: "2023-12-14 00:01 +0900"
tags: ["ruby", "アドベントカレンダー"]
---

これは [.ごっ！のアドベントカレンダー](https://adventar.org/calendars/9122) の14日目の記事です。

{% embed https://docs.ruby-lang.org/ja/3.2/class/Dir.html %}

rubyのバージョン3.2での情報です。

## カレントディレクトリのパスを変更

```ruby
Dir.chdir("/var/log")
```

## 現在のディレクトリを取得

```ruby
Dir.chdir("/tmp")
Dir.getwd # => "/tmp" 
```

## カレントディレクトリ配下にあるファイルエントリ取得

```ruby
Dir.children(".")
=>
[".circleci",
 ".codespellrc",
 ".gem_rbs_collection",
 ".git",
 ".github",
 ".gitignore",
 ".rspec",
 ".rspec_status",
 ".rubocop.yml",
 ".vscode",
 "Gemfile",
 "Gemfile.lock",
 "LICENSE.txt",
 "README.md",
 "Rakefile",
 "Steepfile",
 "bin",
 "config",
 "sample.gemspec",
 "lib",
 "pkg",
 "rbs_collection.lock.yaml",
 "rbs_collection.yaml",
 "sig",
 "spec"]
```
Advertising agency in pune
Tags: webdev, javascript
Published: 2023-12-13 15:00:46


Advertising agency in pune

Are you searching for a leading Branding Agency in Pune or an Advertising Agency in Pune? Look no further! We are the Best Branding and Advertising Company in Pune, providing top-notch marketing solutions to businesses looking to establish a strong online presence.
Our Services Include:
Digital Marketing: As a premier Digital Marketing Agency in Pune, we are committed to helping businesses thrive in the digital landscape. Our experts employ cutting-edge strategies to enhance your brand's visibility and engagement online.
Digital Branding: We specialize in Digital Branding, which is crucial for creating a lasting impression in the online world. Our digital branding agency in Pune focuses on building a unique identity for your business that resonates with your target audience.
Top Branding Services: As one of the top branding agencies in Pune, we offer comprehensive branding solutions that encompass logo design, brand identity, and brand strategy. Let us help you create a brand that stands out in the crowd.
But our services don't stop at Pune. We also operate as a Branding Agency in Indore and an Advertising Agency in Indore, extending our expertise to the thriving business landscape in this city. Our Indore team is equipped to deliver the same level of excellence in branding and advertising that we are known for in Pune.
Additionally, we are your go-to option as a Branding Agency in Lucknow and an Advertising Agency in Lucknow. Our Best Branding and Advertising Company in Lucknow is dedicated to providing customized marketing solutions to businesses looking to make an impact in the digital world.
Our Digital Marketing Agency in Lucknow is a trusted partner for businesses seeking to expand their online presence. Whether it's SEO, social media marketing, or PPC, our services are tailored to meet your specific needs.
Why Choose Us?
Proven Results: Our track record speaks for itself, with numerous clients who have achieved significant improvements in their online presence and customer engagement.
Experienced Team: Our team consists of experts with a wealth of experience in marketing and branding, ensuring that you receive top-notch services.
Customized Strategies: We understand that each business is unique, and we tailor our strategies to meet your specific goals and requirements.
Partner with us and let us help you elevate your brand to new heights. Contact the Best Branding and Advertising Company in Pune, Indore, and Lucknow for comprehensive marketing solutions that drive results.
https://www.brandnbusiness.co.in/
Zod - TypeScript-first schema declaration and validation library #8
Tags: programming, javascript, typescript, zod
Published: 2023-12-13 15:00:00

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

✨ **Be Specific with Allowed Types** ✨

We will validate forms again in this example.

```
const Form = z.object({
  repoName: z.string(),
  privacyLevel: z.string(),
})

export const validateFormInput = (values: unknown) => {
  const parsedData = Form.parse(values);

  return parsedData;
}
```

This time **Form** has a **_privacyLevel_** that can be two types: either **private** or **public**:

```
const Form = z.object({
  repoName: z.string(),
  privacyLevel: z.string(),
});
```

If we were going to represent this in TypeScript, we would write:

```
type PrivacyLevel = 'private' | 'public'
```

Of course, we could use a boolean here, but we may need to add more privacy levels in the future. It is often safer to use a union type or an enum here as well.

We will find an API in Zod that allows you to be more specific with the types of strings that can be passed into the validator function.

There are two possible solutions to this example:

⭐ **One Solution: Use Unions & Literals**

In the first solution, we will use **[Zod's union](https://zod.dev/?id=unions)** method and pass in an array of **[literals](https://zod.dev/?id=literals)** for "private" and "public":

```
const Form = z.object({
  repoName: z.string(),
  privacyLevel: z.union([z.literal("private"), z.literal("public")]),
});
```

Literals can be used to represent numbers, strings, or booleans. They cannot represent objects.

We can use **[z.infer](https://zod.dev/?id=type-inference)** to check our Form type:

```
type FormType = z.infer<typeof Form>
```

⭐ **An Arguably Cleaner Solution: Enum**

Using [Zod enums](https://zod.dev/?id=zod-enums) with **z.enum** does exactly the same thing under the hood:

```
const Form = z.object({
  repoName: z.string(),
  privacyLevel: z.enum(["private", "public"]),
});
```

We can use sugar syntax to parse literal values instead of using **z.literal**.

---

I hope you found it useful. Thanks for reading. 🙏
Let's get connected! You can find me on:
- **Medium:** https://medium.com/@nhannguyendevjs/
- **Dev**: https://dev.to/nhannguyendevjs/
- **Hashnode**: [https://nhannguyen.hashnode.dev](https://nhannguyen.hashnode.dev/)/
- **Linkedin:** https://www.linkedin.com/in/nhannguyendevjs/
- **X (formerly Twitter)**: https://twitter.com/nhannguyendevjs/
Got up early this morning
Published: 2023-12-13 14:59:36

Got up early this morning and knocked out the proc gen for dungeons.  This is the BSP (Binary Space Partition) from Top Down Twin Stick Kaiju Dating Simulator 5000 but where that generates the walls of the rooms, this just generates the rooms.  Its the same script, just a different take on it.  i'll put in textures and hallways and doors and scatter terrain after work today.  I'll post what i got done with KLEP here in a bit.  I got the universal event system working and going, so i'm just cleaning up the editor script to visualize that for us.
Installation Guide for pdf2image for python
Tags: pdf, python, image, install
Published: 2023-12-13 14:55:34

Recently for my Python project, I wanted to create images of the generated PDF from my script. I added an option to whether I want to create the images and used `pdf2image.convert_from_path` to create jpeg files for the same.

However, the installation of pdf2image isn't your usual `pip3 install pdf2image`. It would rather throw an error like this -
```
The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.
```

So first install some dependencies into your system using and then execute you `pip3 install` command

```
sudo apt-get install libjpeg-dev zlib1g-dev
pip3 install pdf2image
```
Also
HTML - 8. INLINE STYLE WEB | iAppTech.id
Tags: webdev, beginners, html, tutorial
Published: 2023-12-13 14:46:54


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qg50s10o4k306blun6t.jpg)

Welcome to iAppTech.id! 🚀

📚 Materi:
HTML — 8. Inline Style Web, watch it!

👋 Halo, iAppTechers!
Kami adalah channel yang berfokus pada pembahasan seputar Frontend Development. Di sini, kami membawa Anda ke dalam dunia desain antarmuka, pengembangan web, dan segala hal seputar Frontend.

🔗 Playlist HTML:
https://www.youtube.com/playlist?list=PLc6PvCQzjsh_kCOlaz4ZFr8s708gNNVSv

💬 Disclaimer:
Channel ini saya buat khususnya untuk saya pribadi, dikarnakan menurut saya ketika saya belajar harus membuat konten, kenapa? karna menurut saya hal terbaik ketika belajar adalah mengaplikasikannya kembali, ditambah saya paham bagaimana jangka memori otak saya yang lama-lama tergerus oleh usia kedepannya, makanya saya buat channel ini untuk e-Library pengetahuan saya dibidang IT khususnya Frontend Developer. Ditambah saya juga mempunyai salah satu prinsip yaitu:

"Jika seorang manusia meninggal dunia, terputuslah amalnya, kecuali dari tiga hal: sedekah jariyah, ilmu yang bermanfaat dan anak shaleh yang berdoa untuknya." (HR. Muslim).

🖥️ Apa yang Akan Kamu Temukan di Sini?
Dapatkan wawasan mendalam tentang berbagai teknologi frontend, tutorial praktis, tips & trik, serta eksplorasi proyek-proyek menarik. Kami akan memandu Anda melalui dunia seru Frontend Development!

☕ Traktir Saya Ngopi:
 https://saweria.co/appardana

🔔 Berlangganan Untuk Konten Berkualitas:
Jangan lupa tekan tombol subscribe untuk tetap terkini dengan konten-konten menarik kami. Kami sangat bersemangat untuk berbagi pengetahuan dan pengalaman dengan Anda!

⏰ Jadwal Ngonten: Setiap Selasa dan Kamis, pastikan Anda tidak ketinggalan!

🤝 Mari Bergabung dalam Komunitas:
- https://www.youtube.com/c/iapptech
- https://discord.com/channels/1171443162108141679/1171443165123854421

Terima kasih telah bergabung dengan iAppTech.id. Mari bersama-sama memperkaya pemahaman kita tentang Frontend Development!

✨ Don't forget, ngopi heula… ✨

iAppTech #iAppTechId #Frontend #frontenddeveloper #programming #programmer #web #webdevelopment #Aditria #Pardana #AditriaPardana
Popular Style Guides for Web Development
Tags: webdev, javascript, beginners, tutorial
Published: 2023-12-13 14:37:30


Using a style guide for coding can make you a better developer, as it fosters the development of several key skills:

**Readability and Maintainability**: You will learn to write code that is easy to read and maintain by other developers.

**Attention to Detail**: Following a style guide requires attention to detail, which is an important quality in programming.

**Teamwork**: You will be able to work more effectively in a team, as your code will be aligned with the standards accepted in the team.

**Professionalism**: A style guide reflects professional standards in coding, which improves the quality of your work and contributes to your professional growth.

<u>List of popular style guides for web development:</u>

[**Google Style Guides**](https://google.github.io/styleguide/): 
This resource includes style guides for various programming languages, including JavaScript, TypeScript, HTML/CSS. They are used for Google projects and can be useful for forming consistency in code. Google Style Guides.

[**Airbnb JavaScript Style Guide**](https://github.com/airbnb/javascript): 
One of the most famous style guides for JavaScript. It contains detailed recommendations for writing readable and consistent JavaScript code. Airbnb JavaScript Style Guide.

[**StandardJS**](https://standardjs.com/):
This is a style guide for JavaScript, which also includes configuration for automatic code formatting. It offers established rules that simplify the code-writing process, requiring no settings. StandardJS.

[**MDN Web Docs**](https://developer.mozilla.org/en-US/):
Although not a formal style guide, MDN Web Docs provides useful tips and best practices for HTML, CSS, and JavaScript. This is a great source for developers who want to adhere to best practices. MDN Web Docs.

[**TypeScript Style Guide and Coding Conventions**](https://basarat.gitbook.io/typescript/styleguide):
As TypeScript is a superset of JavaScript, many JavaScript style guides can be applied to TypeScript. However, for specific features of TypeScript, this guide can be used. TypeScript Style Guide and Coding Conventions.
8KB limit of Postgres NOTIFY
Tags: rails, actioncable, hotwire, postgres
Published: 2023-12-13 14:20:32

You can setup Rails [_ActionCable_](https://guides.rubyonrails.org/action_cable_overview.html#postgresql-adapter) to use Postgres instead of Redis by adjusting the adapter configuration:

```yaml
# config/cable.yml

production:
  adapter: postgresql
  url: <%= ENV["DATABASE_URL"] %>
  channel_prefix: myapp_production
```

This uses the Postgres [`LISTEN`](https://www.postgresql.org/docs/current/sql-listen.html) and [`NOTIFY`](https://www.postgresql.org/docs/current/sql-notify.html) commands.

As of writing, the `NOTIFY` payload is limited to 8000 bytes per default. If you're using _Hotwire_ this may not always be enough and you will see error messages like this

```
PG::InvalidParameterValue (ERROR:  payload string too long)
```

The solutions available to you are the following:
* Configure Postgres for larger payloads (not possible on Heroku)
* Use a fallback strategy for larger payloads as implemented in the [actioncable-enhanced-postgresql-adapter](https://github.com/reclaim-the-stack/actioncable-enhanced-postgresql-adapter) gem.
* Use Redis instead (with its own [limits](https://redis.io/docs/reference/clients/#output-buffer-limits))