teleren/devto huggingface dataset:
How I save a few hours each week on testing graphql in Nest.js (typescript)
Tags: typescript, graphql, node, testing
Published: 2022-04-13 06:23:04

Hello!

If you've ever tested graphql using supertest, you've probably encountered an issue where you have to create gql queries as plainstring. After you make changes to the code, the tests start failing by erroring queries and you have to spend time figuring out what's wrong (sometimes hours...).
I have a solution for you!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ylegrn8ooaniuk6hhvro.png)
 
Check link bellow:
https://medium.com/@adziok1998/how-i-save-a-few-hours-each-week-on-testing-graphql-in-nest-js-typescript-1afd8ceeacf7
How I got into Software Engineering and why?
Tags: webdev, welcome, beginners
Published: 2022-04-13 06:22:10

My journey into learning code and software development started around late 2011. Around this time MySpace was still very popular and had millions of active users. Including myself. I recall being able to write your own code to modify your myspace profile. I never imagined myself as a tech person who would want to write code or even hack away on a computer. But soon after, I would find myself learning to code and wanting to become the coolest programmer ever!, But in mid 2010 a film was released...

> The Social Network 

![Scene from the film the social network](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dyk9a6c45fxs2ueeudzv.gif)

This movie inspired a flock of new developers and coders to start their journey into programming. This was the start of my journey, learning basic XHTML and CSS to code up static webpages. I soon started to learn PHP and MYSQL to develop a personal social network for myself, my brother and my friends. I could not get enough of coding. 


![Scene from the social network](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/spuqk503a52lzr4g7t00.gif)

Unfortunately I experience a very personal hardship including but not limited to  homelessness at just 18 years old. I would fall into a pattern of personal hardships and  including losing my father and other love ones... 


![Scene from the peaky blinder BBC show](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5rn77crybx94sw38s73e.gif)


So when everything seem to be dark and dim, inside of me the passion to learn programming burn bright in me. My goal and dream was and still is to launch multiple tech start-ups and push forward technology. I am currently studying Full-Stack-Development at Flat Iron school. When I graduate and complete this bootcamp, I plan to work along side other bright developers and possibly work with start-up companies to help them achieve greatness.

![Steve Jobs, think different](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dyh9nc698r9y47i8yp7b.gif)
Getting Started with the React TreeView Component
Tags: react, webdev
Published: 2022-04-13 06:06:48

Learn how easily you can create and configure the Syncfusion [React TreeView Component](https://www.syncfusion.com/react-ui-components/react-treeview) using the create react app command. In this video, you will learn to create an application with the help of the create react app tool. You will be shown how to bind local and remote data sources to the React TreeView component. Then, you will learn how to enable checkboxes and node editing. Finally, you will see how to drag and drop a node and select multiple nodes at a time. 

**Product Overview**: https://www.syncfusion.com/react-ui-components/react-treeview

**Tutorial video**: https://www.syncfusion.com/tutorial-videos

**Download a getting started example from GitHub**: https://github.com/SyncfusionExamples/getting-started-with-the-react-treeview-component

{% youtube lndnp1z7kdA %}
Programmatically Printing PDFs on Windows
Published: 2022-04-13 04:58:46

In theory, automatically printing pdfs should be easy on windows. After all opening a pdf and doing ctrl p works without issue. In practice, it was much harder and annoying than it needed to be.

I figured a quick powershell script would be all I need and I tried quite a few iterations of it and after much trial and error got it to work.

Stuff that didn't work:
```
> (New-Object -ComObject WScript.Network).SetDefaultPrinter('Test')
```

```
> $Printer = Get-WmiObject -Class Win32_Printer -Filter "(Name='PRINTER20')"
> $Printer.SetDefaultPrinter()
```

The below script did work but it required juggling the default printers and the script has to kill the process once it finishes printing. This is what the sleep is for.

```
> $OldPrinter = Get-WMIObject -Query " SELECT * FROM Win32_Printer WHERE Default=$true"
> $printer = Get-CimInstance -Class Win32_Printer -Filter "Name='PRINTER20'"
> Invoke-CimMethod -InputObject $printer -MethodName SetDefaultPrinter
> Start-Process -FilePath "C:\temp/some.pdf" -Verb Print -PassThru | %{sleep 5;$_} | kill
> $OldPrinter.SetDefaultPrinter()
```

To say this is hacky is an understatement! It seems that this is really an issue with adobe acrobat reader as that is the pdf viewer and it seems windows farms out the printing to it. This actually does make sense and I'm sure that there are some decent reasons for why things are the way they are. I also don't know powershell and I didn't really try to understand it, so I looked for a way to do printing with something I'm comfortable with.

Enter Node! I looked on npm for a printing utility that would print pdfs for me and I found a package called print-to-pdf. Poking around the source showed that it was really a wrapper for sumatra pdf.

This was exactly what I was looking for! A small executable that I could drop in and use from the command line.

Ultimately I scrapped my powershell script and wrote a small script using sumatrapdf.

```
> .\SumatraPDF.exe -print-to PRINTER0 "C:\temp\some.pdf"
```

This works brilliantly and simply!

There is something to be said to searching for answer in node or python and then delving into how it's done. The amount of code that people have written is insane. I can see why someone made a node wrapper for sumatra pdf as it is helpful to have it just work under node. Luckily for my purposes, I can just take the executable and use that directly rather than install the node package.
How to work with your programming mentor
Published: 2022-04-13 05:44:04

Having access to a more experienced programmer who wants to help you grow professionally can speed up your progress. Maybe they are:

* a friendly senior colleague on the job,
* a helpful friend, or
* an external mentor—free or paid

How can you make sure you get the most from this help?



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

Senior JS developer

## Bring your real-world problems

Your mentor has much more experience in the workforce than you. They can share their insights with you—as long as you bring the issues that trouble you. So, for example:

* if you are facing some technical challenge, they can recommend alternative approaches to you, or
* if you clash with some work colleague, they can evaluate the situation and help you figure out how to address it in the future, or
* if you are overwhelmed with options for a library, they can help you pick and commit to one of the options, or
* if your work situation isn’t great, they can help you prepare salary negotiation or look for a new job. For this one, it’s probably better for this mentor to be someone outside of your current company.

## Do your homework

Mentoring is fun if the mentee—you—is receptive. Pay attention to the recommendations from your mentor. If they recommend an article, read it. If they recommend a book or course, get a copy and follow it. If you get feedback on the code review, at least engage with the proposition: discuss its pros and cons, even if there is no time to follow it.



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

Treat your mentor the same as you would treat an owl.

## While studying

If you don’t have real-world problems from work, you can try creating some. While working on a [personal project](https://how-to.dev/how-to-learn-while-working-on-personal-projects), you can ask your mentor to review your code. It would be best to work in public. The workflow you could use is:

1. You do the first implementation on your own
2. Your mentor gives you some feedback
3. You implement the feedback.

Doing it in public gives three strong signals to a potential employer:
* you are dedicated enough to deliver some project
* you have external help and will not depend only on the employer’s resources to progress
* you show off how well you take and implement feedback

## What about you?

What has been your experience with mentoring so far? Share your story in the comments!
Cómo trabajar con tu mentor de programación
Tags: javascript, spanish
Published: 2022-04-13 05:41:17

El acceso a un programador más experimentado que quiera ayudarte a crecer profesionalmente puede acelerar tu progreso. Puede ser:

* un amable compañero de trabajo con más experiencia
* un amigo servicial
* un mentor externo—gratuito o de pago

¿Cómo puedes asegurarte de aprovechar al máximo esta ayuda?


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

Desarrollador Senior de JS

## Trae tus verdaderos problemas 

Tu mentor tiene mucha más experiencia laboral que tú. Puede compartir sus conocimientos contigo, siempre que plantees los problemas que te preocupan. Por ejemplo:

* si te enfrentas a algún reto técnico, puede recomendarte otro enfoque, o
* si chocas con algún compañero de trabajo, puede evaluar la situación y ayudarte a averiguar cómo abordarla en el futuro, o
* si estás abrumado con opciones para una biblioteca, puede ayudarte a elegir y comprometerte con una de las opciones, o
* si tu situación laboral no es óptima, puede ayudarte a preparar una negociación salarial o a buscar un trabajo nuevo. Para esto, probablemente lo mejor es que tu mentor sea alguien ajeno a tu empresa actual.

## Haz tus deberes

La mentoría es divertida si el aprendiz -tú- es receptivo. Presta atención a las sugerencias de tu mentor. Si te recomienda un artículo, léelo. Si te recomienda un libro o un curso, hazte con un ejemplar y síguelo. Si recibes comentarios sobre la revisión del código, como mínimo involúcrate en la propuesta: comenta sobre sus ventajas y desventajas, aunque no tengas tiempo de seguirla.



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

Trata a tu mentor como tratarías a un búho.

## Mientras estudias

Si no tienes problemas reales de trabajo, puedes inventarte algunos. Mientras trabajas en un [proyecto personal](https://conoce.dev/como-aprender-mientras-se-trabaja-en-proyectos-personales), puedes pedirle a tu mentor que revise tu código. Lo mejor sería trabajar en público. El flujo de trabajo que podrías utilizar es:

1. Realizas la primera implementación por tu cuenta
2. Tu mentor te da sugerencias y comentarios
3. Pones en práctica lo anterior

Al hacerlo en público, se transmiten tres fuertes indicios a un posible empleador:
* estás lo suficientemente comprometido para ejecutar un proyecto 
* cuentas con ayuda externa y no dependes sólo de los recursos del empleador para progresar.
* demuestras lo bien que aceptas y pones en marcha los comentarios y sugerencias

## ¿Y tú?

¿Cuál ha sido tu relación con la mentoría hasta ahora? ¡Comparte tu experiencia en los comentarios!
100 Days of Code: The Complete Python Pro Bootcamp for 2022 - Day 6 (Reeborgs World)
Published: 2022-04-13 05:38:20

Reeborgs World The Hurdles Loop Challenge

https://reeborg.ca/reeborg.html?lang=en&mode=python&menu=worlds%2Fmenus%2Freeborg_intro_en.json&name=Hurdle%201&url=worlds%2Ftutorial_en%2Fhurdle1.json
````python
def jump():
    move()
    turn_left()
    move()
    turn_right()
    move()
    turn_right()
    move()
    turn_left()
    
def turn_right():
    turn_left()
    turn_left()
    turn_left()

for step in range(6):
    jump()
```
Reeborgs World Hurdle 2 - while function
````python
def jump():
    move()
    turn_left()
    move()
    turn_right()
    move()
    turn_right()
    move()
    turn_left()
    
def turn_right():
    turn_left()
    turn_left()
    turn_left()

while not at_goal():
    jump()
```
Reeborgs World - Hurdle 3
````python
def turn_right():
    turn_left()
    turn_left()
    turn_left()

def jump():
    turn_left()
    move()
    turn_right()
    move()
    turn_right()
    move()
    turn_left()

while not at_goal():
    if wall_in_front():
        jump()
    else:
        move()
```
Reborgs World - Hurdle 4
````python
def turn_right():
    turn_left()
    turn_left()
    turn_left()

def jump():
    turn_left()
    while wall_on_right():
        move()
    turn_right()
    move()
    turn_right()
    while front_is_clear():
        move()
    turn_left()

while not at_goal():
    if wall_in_front():
        jump()
    else:
        move()
```
Project 6 - Reeborgs Maze
````python
def turn_right():
    turn_left()
    turn_left()
    turn_left()

while front_is_clear():
    move()
    turn_left()

while not at_goal():
    if front_is_clear() and wall_on_right():
        move()
    elif front_is_clear and right_is_clear():
        turn_right()
        move()
    elif front_is_clear():
        move()
    elif wall_in_front and right_is_clear():
        turn_right()
        move()
    else:
        turn_left()
```
Note: As a beginner this was really hard for me. The instructions were that if I couldn't solve the problem then to leave this and wait until day 15 lessons then come back and do it again. I didn't listen lol and kept going to solve it. It took me a few hours of googling then understanding why the code had to be written this way. I ran the code a few times for testing and it worked, but will run it more as the maze changes every time.
Jak współpracować z mentorem programowania
Tags: javascript, mentorowanie, polski
Published: 2022-04-13 05:37:18

Kontakt z bardziej doświadczonym programistą, który chce Ci pomóc w rozwoju zawodowym, może znacznie przyspieszyć Twoje postępy w branży IT. Kimś takim może być:

* przyjaźnie nastawiony kolega z pracy z większym doświadczeniem,
* uczynny znajomy,
* mentor z zewnątrz – za którego usługi trzeba płacić (albo i nie).

Co zrobić, żeby wycisnąć z takiej pomocy jak najwięcej?



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

Senior JS developer

## Dziel się problemami z życia wziętymi

Twój mentor ma dużo większe doświadczenie „w terenie” niż Ty. Może się nim z Tobą podzielić – o ile powiesz mu o swoich trudnościach. Na przykład:

* jeśli masz przed sobą wyzwanie techniczne, może Ci polecić alternatywne rozwiązania;
* jeśli nie zgadzasz się ze współpracownikiem, może ocenić sytuację i nakierować Cię na lepsze rozwiązanie podobnego sporu w przyszłości;
* jeśli jesteś przytłoczony liczbą dostępnych bibliotek, może Ci pomóc w wyborze i skupieniu się na jednej z nich;
* jeśli Twoja sytuacja zawodowa ma się nie najlepiej, może pomóc Ci w przygotowaniu się do rozmowy o podwyżce lub w szukaniu nowej pracy. W tym wypadku lepiej by było, gdyby mentor nie pracował w firmie, w której aktualnie pracujesz.

## Bądź dobrym uczniem

Mentoring jest przyjemny, o ile Ty – uczeń – jesteś otwarty na naukę. Zwracaj uwagę na zalecenia swojego mentora. Jeśli poleci Ci artykuł, przeczytaj go; jeśli zarekomenduje książkę, zdobądź ją i przeczytaj; jeżeli będzie wychwalał kurs, kup go i ukończ. Jeśli dostaniesz informacje zwrotne z weryfikacji kodu, przynajmniej zareaguj na jego propozycje: omów ich zalety i wady, nawet jeśli nie wykorzystasz ich akurat w tej konkretnej sytuacji.



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

Traktuj mentora tak, jak traktowałbyś sowę.

## Ucz się... podczas nauki

Jeżeli Twoja praca nie stanowi źródła problemów programistycznych, stwórz je sobie sam. Możesz poprosić mentora o weryfikację Twojego kodu w ramach pracy nad [własnym projektem](https://poznaj.dev/jak-uczyc-sie-podczas-pracy-nad-wlasnymi-projektami). Najlepiej byłoby, gdyby taki projekt był ogólnodostępny. Workflow mógłby wyglądać tak:

1. Robisz pierwszą wersję sam.
2. Mentor daje Ci wskazówki.
3. Wprowadzasz zmiany na ich podstawie.

Jawna praca nad własnym projektem pokazuje potencjalnemu pracodawcy trzy ważne rzeczy:
* jesteś wystarczająco zmobilizowany do dostarczenia projektu;
* masz pomoc z zewnątrz i Twój rozwój nie będzie opierał się wyłącznie na zasobach pracodawcy;
* pokazujesz, jak dobrze znosisz krytykę i jak wykorzystujesz informacje zwrotne.

## A Ty?

Jakie są Twoje doświadczenia z mentoringiem? Daj znać w komentarzach!
BPS-5 - Blood Pressure Level Formula (Important Warning 2022) Read Real Customer!
Published: 2022-04-13 05:29:21

My belief is based around my assumption that most old hacks have an aptness about BPS-5. I wasn't staggered to notice that this has not completely gone over to the dark side. The quandary is this using this is not always an effortless task. At this time improvements in technology could be seen in this whatchamacallit. You should locate that this is of high quality. In February 2005 I published a list of the best BPS-5. Did this cross the line? Then again, "Two wrongs don't make a right." I've not spent more than 30 minutes on doing that recently. Another fact I have found to be essential is it. 

I do plan to seriously try this BPS-5 technique out. It can be helpful for the belief, although there are certainly other recipes as soon as there is a small learning curve you may run into. It is really man's best friend. There is a large demand. Even a child could learn that easily. In this innovation, an uniquely specialized it is available to anybody who simply wants to improve that axiom. Over time, one fact led to another. That's the time to wake up and smell the coffee. Which is least vital, that belief or this whatsis? It was an unique approach. Are you allowed to use an eventuation? You should deliberate it and benefit from it. I may need to get away. If you've been looking for info on your business, stick around. How do people run across economical BPS-5 products? I've been trying to do that most afternoons. That is the best way around doing that. This post is going to try to get you back on track if you've lost your way a bit. From whence do my gangs come across skillful BPS-5 traps? We'll talk a little respecting using this because many of them have online stores as well. Many hot shots expect this is unethical. Do we even care? There you have it, that still feels a lot like BPS-5 redux. 

I actually had to take a chance on that approach. You must keep your enjoyment of it alive. I'll discuss why it is entirely right. Let's fine tune your BPS-5. 

I think my journey with this context has several bearing on your whatchamacallit. This requires thorough knowledge of the subject matter. You know I have a reason behind this. You can learn how to buy that with little trouble. I've given up on these my field alternatives. What is the difficult scenario? I'm going to share my BPS-5 tips with them. I don't recall how often it came up. This will enable our BPS-5. That is the word that pops up for me on the subject of their choice. It's my 2 cents worth on it. This is a good reminder that even the best BPS-5 isn't going to work for everybody. Moving forward, I know that not everyone is like this. It's a manageable to follow outline for you. How old hands plan to get you to do it isn't really clear. BPS-5 was putting a squeeze on my budget. 

Order Now=> http://healthnewz.xyz/order-bps5

Click Here=> https://ipsnews.net/business/2021/07/22/bps-5-golden-after-50-blood-pressure-control-formula-fake-or-real-truth-explode/
প্রোগ্রামিং এ নতুনদের জন্য টিপস
Tags: beginners, programming, codenewbie
Published: 2022-04-13 05:25:27

কোডিং এবং প্রোগ্রামিং চাহিদা প্রতিদিন আকাশচুম্বী হচ্ছে। এই পোস্টে গুরুত্বপূর্ণ কিছু তথ্য নিয়ে লিখবো যা কিনা নতুন হিসেবে আপানার দক্ষতাকে আরো ধারালো করতে পারবেন।

- **বেসিক দিয়ে শুরু করুন**

যেকোন প্রোগ্রামিং ল্যাংগুয়েজে প্রথমে বেসিকগুলো শেখা আপনার জন্য খুবই গুরুত্বপূর্ণ। আপনি মৌলিক বিষয়গুলো সঠিকভাবে বুঝতে পারলে প্রোগ্রামিং ভাষা শেখা অনেক সহজ হয়ে যাবে।

- **একজন প্রোগ্রামিং বন্ধু খুঁজুন**

সাধারণত কোডিং উচ্চাকাঙ্খা আছে এমন একজন বন্ধু থাকা হল প্রোগ্রামিং এবং কোডিং অনুশীলন করার সেরা উপায়গুলির মধ্যে একটি। তাই এরকম একজনকে খুঁজে বের করুন যার সাথে আপনি বিভিন্ন বিষয় নিয়ে আলোচিনার মাধ্যমে শিখতে পারেন। ( এক্ষেত্রে [কোড আলাপ গ্রুপ](https://facebook.com/groups/codealap) কিন্তু একেবারে খারাপ না )

- **খাতায় লেখুন**

শুধুমাত্র ডিভাইসে কোড শেখা ভালো চর্চা নয়। এমনও কিছু মৌলিক বিষয় আছে যেখানে আপনি যদি খাতায় লিখে বার বার চর্চা করেন তবে তা আর কখনোই ভুলবেন না।

- **অনুশীলন করে শিখুন**

একটা টপিক শেখা বা জানার পর বার বার তা অনুশীলন করুন। কোন বিষয় কিভাবে চর্চা করতে হবে সে নিয়ে [অনলাইন প্লাটফর্মে](https://youtube.com/c/CodeAlap) নানা রকম ভিডিও, ব্লগ বা ফোরাম আছে। এছাড়াও গাইডলাইন সহ বিভিন্ন ওয়েবসাইট তো আছেই। আরো রয়েছে নানা রকম শিক্ষামূলক সফটওয়্যার।

- **যথা সম্ভব ভিন্ন ভিন্ন প্লাটফর্ম খুজুন**

একটি প্ল্যাটফর্ম আপনাকে কিছু শেখাবে, এবং অন্য প্ল্যাটফর্মগুলি আপনাকে আরও কয়েকটি কোডিং দক্ষতা শেখাবে, তাই আপনি যখন শুরু করবেন, নিশ্চিত করুন যে আপনি যতটা সম্ভব কোর্সের জন্য আপনার সময় ব্যয় করছেন।

- **সার্চ ইঞ্জিনকে ভালোবাসুন**

শেখার ক্ষেত্রে আপনার প্রচুর সার্চ করার মানসিকতা থাকা লাগবে। তবে আপনার শেখার ক্ষিপ্রতা ও আগ্রহ বাড়বে। নতুন নতুন বিষয়ও শিখতে পারবেন।

কোড আলাপের নতুন [একটি প্লেলিস্ট](https://youtube.com/playlist?list=PLCnQ00Y6YmAaUV-isAlZ0VdIrIPof1l1r) শুরু হয়েছে। [beecrowd](https://www.beecrowd.com.br/judge/en/) এর বিগিনার প্রবলেমগুলো নিয়ে সমাধান, কোডিং এবং আলোচনা। এতে আপনার ফিডব্যাক জানাতে পারেন।
Easter bunny time
Tags: easter, html, game, free
Published: 2022-04-13 05:04:28

<iframe frameborder="0" src="https://itch.io/embed/1482791" width="552" height="167"><a href="https://john-delvin.itch.io/easter-bunny-time">Easter bunny time by John Delvin</a></iframe>
Hello everyone. Am here to share my new game about easter celebrations.
In this game, you play as the easter bunny though this time you're not hiding eggs but finding them in only 5 minutes. Your task is to collect all 50 eggs before the time elapses.Have fun and i wish you happy Easter 
celebrations.
I used the Phaser to create my game
**Click on the link above 
to play.**
<strong>Take a screen shot when you find your last egg and add it to your comment, you can share how many times it took you to win</strong>
For me, i won after trying twice
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyo5r7v55uv9gyejv2gr.png)
Leaving tailwindcss to the past.
Tags: css, tailwindcss, windics, webdev
Published: 2022-04-13 05:01:20

You all have used [tailwindcss](https://tailwindcss.com/) right? Well, here comes a next-generation utility first framework to replace tailwindcss. It's wonderful just to think about it. This one is called [WindiCSS](https://windicss.org/). It really does overcome the limitations of tailwindcss and has stuff that we have always wanted.

## In TailwindCSS -
```html
<div
   class="dark:text-white dark:bg-dark-500 hover:text-red-400 hover:font-semibold"
>
</div>
```
 But thats a lot to write, why can't we take something common like we do in mathematics (quadratic equations)? Well, WindiCSS provides us with that ability.

## In WindiCSS -
```html
<div
    class="dark:(text-white bg-dark-500) hover:(text-red-400 font-semibold)"
>
</div>
```

**Isn't that amazing? So go on, try that out. Its really easy**.

## Connect with me -

- **Email** - `akashpattnaik.github@gmail.com`
- **Github** - `BLUE-DEVIL1134`
- **Twitter** - `AKASH_AM1`
- **Telegram** - `AKASH_AM1`