teleren/devto huggingface dataset:
Geeking out & excited about a t-shirt
Tags: europython, pyladies, geekinout
Published: 2020-06-24 16:00:09

I realised that over the years, I had so many different conference t-shirts, the one I don't have is a [PyLadies](https://pyladies.com) one! I've been running [PyLadies Dublin](https://twitter.com/PyLadiesDub) since 2013 and I don't have a PyLadies t-shirt! 😱

So got my chance when I realised I can customise my [EuroPython](https://ep2020.europython.eu/) t-shirt when ordering. 

This is the PyLadies Dublin logo, the head is new as of this year.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0elguwr1m6axrqa6k4m0.png)

I added a shamrock to differentiate from the other PyLadies chapters around the world). 🔎 Can you spot our logo? 😊

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/simgk3pmctzfo48u504p.jpeg)

The image was a screenshot from "PyLadies 9 years on" talk at PyCon Online 2020. If you are curious, here's the video of their talk:

{% youtube KRwpY2TixAs %}




Anyhoo, back to the t-shirt... This is the result of the customisation. Sorry, bad photo of t-shirt, I should have screenshot it instead of taking a pic with my phone! 😅 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/t7xuc3pq29glhw5jbgwy.jpeg)

And what's more, it's on its way. I'm sooooo excited! Won't get here till early July! Now I have to try and focus on other things, and not get distracted waiting for my PyLadies / EuroPython 2020 t-shirt! 🥰
Quarkus vs Spring Boot – Performance
Tags: java, springboot, quarkus, performance
Published: 2020-06-24 15:47:30

In this article, we are going to compare the Quarkus and Spring Boot applications and how they behave in terms of memory management.

To be fair in comparison to both the applications, we will go with a standard set of dependencies. Both the application will include Spring Web dependencies only. They will be build using maven tool and jar files will be created. Both the application will have similar REST Endpoints.

This comparison is going to be super crazy. We will create both applications from scratch.

Click on the Image below to see a complete video.

[![Quarkus Vs Spring Boot](http://img.youtube.com/vi/oz-QSGy1DSo/0.jpg)](http://www.youtube.com/watch?v=oz-QSGy1DSo)
Welcome Thread - v79
Tags: welcome
Published: 2020-06-24 15:35:21

---
title: Welcome Thread - v79
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
---

![balloons say hi](https://media.giphy.com/media/26BRuzHtLlLywLANa/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Learn Git and GitHub (Common Git Commands)
Tags: git, github, beginners, webdev
Published: 2020-06-24 15:35:04

##What is Git and GitHub##

* **Git** is a version control system.
* It keeps track on changes that have been made on files.
* It allow developers to roll back to a previous version of their code.
* It simplifies working on a project as a team.
* **GitHub** is a web based repository that allow developers to  work with others online on the same application. 
* GitHub acts as a safe store of your application code. When you accidentally delete your code from your local machine, you can easily pull it back from GitHub.

##Pro Tips##
* If you are a programmer make sure to use GitHub or Bitbucket for your projects. 
* This is a great way to show case your skills and keep your code safe. You can also revert changes.
* Participate on open source projects for networking and to grow your skills. You can also earn some extra income from sponsored projects. (Did you know DEV is open source?)

I have pinned some videos below to help you get started with git and GitHub.

**Please support my content** (*Stay Awesome!*)
1. Subscribe to my YouTube channel [here] (https://www.youtube.com/channel/UCe8uN9zoKksCb1hfw61myRw?sub_confirmation=10)
2. Donate to my PayPal [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NZCBMP9V54G9J&source=url)

##GitHub Tutorial for beginners##
*Here you will learn the most common git commands and how to work with GitHub.*
{% youtube SB-Zaosd_Ic %}

##Learn More About Git Branches and Conflicts##
*The following video will help you to understand more about git branches and how to resolve conflicts*
{% youtube xDp1XGNuTIw %}
House (Computer Graphic Mini Project)
Published: 2020-06-24 15:34:35

Introduction
Graphics programming in C used to drawing various geometrical shapes(rectangle, circle eclipse etc), use of mathematical function in drawing curves, coloring an object with different colors and patterns and simple animation programs like jumping ball and moving cars.

The first step in any graphics program is to include graphics.h header file. The graphics.h header file provides access to a simple graphics library that makes it possible to draw lines, rectangles, ovals, arcs, polygons, images, and strings on a graphical window.
The second step is initialize the graphics drivers on the computer using initgraph method of graphics.h library.
It initializes the graphics system by loading the passed graphics driver then changing the system into graphics mode. It also resets or initializes all graphics settings like color, palette, current position etc, to their default values. Below is the description of input parameters of initgraph function.

Implementation

In computer graphics, use graphics.h which provide direct functions to draw different coordinate shapes (like circle, rectangle etc). By using these functions we can draw different objects like car, hut, trees etc. In this program, we will draw a moving car using line and circles.
Functions used in program:
•	delay(n): This function is used for holding the program out-put for a small period of time since processing is very fast so use it to see the result.
•	setcolor(n): A function from graphics.h header file which set the color of the pointer (cursor). There are some predefined colors in computer graphics. Here n is color number.
•	line(x1, y1, x2, y2): A function from graphics.h header file which draw a line with (x1, y1) as first coordinate of line and (x2, y2) as second coordinate of the line.
•	Rectangle(left,top,right,bottom):A function from graphics.h
Header file which draw a rectangle.
•	Floodfill(x,y,border):A function is used to fill an enclosed area.current fill pattern and fill color is used to fill the area.
•	Setfillstyle(pattern,color):A function which sets the current fill pattern and fill color
Composer Package Development tips and tricks
Tags: php, composer, phppackage, packagedevelopment
Published: 2020-06-24 15:31:46

---
title: Composer Package Development tips and tricks
published: true
description: 
tags: PHP, composer, PhpPackage, PackageDevelopment
//cover_image: https://miro.medium.com/max/700/1*NmdT4aRz4kW7mOMx_bzXQw.png
---

If you are a PHP developer and do active PHP Development then there are a lot of chances that you would want to develop a Package and use it in your application.

This is a very short article (rather a tip) which will help you with package development.

If you have your package ready, with PSR-4 Autoloading and you do not want to publish it on Packagist or simply want to test it on your development environment then simply you can use composer repositories option.

Just add following code in your composer.json file where you want to use the package.

    "require": {
        ....
        "<vendor-name>/<package-name>": "dev-master",
        ....
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:<vendor-name>/<repository-name>.git"
        }
    ],

It will auto-pull the Package from Github (or any other VCS) and set it up for you to start with your development (provided you have repository access).


I was following the same and it worked flawlessly multiple developers were working on the Package and it worked like magic but then there was another catch, I wanted to avoid pushing on git and wanted to test the package in an application. composer to the rescue, composer allows local path in repository like this:

    "require": {
        ....
        "<vendor-name>/<package-name>": "dev-master",
        ....
    },
    "repositories": [
        {
            "type": "path",
            "url": "/Users/user/package"
        }
    ],

It worked but the problem was before pushing the code, I had to make changes from VCS to Path in the calling application’s composer file. which was a pain, I tried searching options for commenting in composer.json file or some other options where I can keep the local and production environment together. The internet spoke the truth, No, there is no way to comment in composer.json file. but I found a work-around on [stackoverflow](https://stackoverflow.com/questions/34807269/different-composer-json-files-for-production-and-staging-development).

Apparently, you can have multiple composer.json files in your PHP application and you can mention it run-time, which one to use for installing packages.

you can do:
    
        composer install // or composer update

which will install the packages from composer.json file and you can do

        COMPOSER=composer-local.json composer install // or composer update

which will load the packages from composer-local.json file.

Hope these tricks will be useful for you.

Thank you for reading.

Happy coding!!!

Originally published on [Medium](https://medium.com/@TheAkshayKhale/composer-package-development-tricks-and-tips-89f2208426eb)
เหนื่อยไหมกับการ cd รัว ๆ แล้วไม่ถึงสักที
Tags: productivity
Published: 2020-06-27 08:24:55

---
title: เหนื่อยไหมกับการ cd รัว ๆ แล้วไม่ถึงสักที
published: true
date: 2020-06-24 15:29:37 UTC
tags: productivity
canonical_url: 
---

![](https://cdn-images-1.medium.com/max/400/1*Iu_QsguGpWs-iSXD3mxIkQ.jpeg)

เหนื่อยไหมกับการพิมพ์ path โคตรยาวแล้วดันพิมพ์ผิดไปตัวนึงซะงั้น

สวัสดีครับทุกคน กลับมาอีกครั้งนะครับ นาน ๆ มาที วันนี้นี่มี tool มานำเสนออีกแล้วนั่นเองงง

ถ้าใครที่เคยใช้ terminal คงจะเคยเจอปัญหาแบบนี้ใช่ไหมครับ  
$ cd Developer/unity/platformer  
ยิ่งถ้าเราต้องเข้า Directory นี้บ่อย ๆ เนี่ยมันจะน่ารำคาญเอามาก ๆ แม้จะมีการกด Tab ช่วยมันก็ยังเหนื่อยอยู่ดี

และสิ่งที่จะมาช่วยเราในคราวนี้ก็คืออออ “z” นั่นเอง

สามารถเข้าไปดู z ได้ที่ [https://github.com/rupa/z](https://github.com/rupa/z) ถ้าเกิดว่าคุณใช้แมคล่ะก็สามารถที่จะ brew install z ได้เลย

โดยความสามารถของ z ก็คือ z จะตามหา path ที่เราเขาบ่อยสุด แล้วจะกระโดดไปให้ที่นั่นเลย โดยเราสามารถพิมพ์แค่ไหนก็ได้ ยิ่งพิมพ์ละเอียดก็ยิ่งมีโอกาสเข้าถูกเท่านั้น เช่นจากตัวอย่างข้างบนมะกี้เราสามารถพิมพ์แค่

```
z p
z plat
z platformer
```

จะอันไหนก็ได้เลย มันจะเข้าไปที่ platformer แบบเดียวกับข้างบนเป๊ะ  
คำถามก็คือถ้าเกิดดันมี platformer กับ platformer-2 แบบนี้มันจะเข้าอันไหน ซึ่งคำตอบก็คือมันจะเข้าอันที่เราเข้าบ่อยกว่านั่นเอง

แล้วเรายังสามารถที่จะ z ไปที่ไหนก็ได้โดยไม่สนว่าตอนนี้เราอยู่ตรงไหน หรือก็คือถ้าจะไปที่อื่นเราก็สามารถวาร์ปไปยังจุดนั้นได้เลย ราวกับว่าท่านมีความสามารถในการ Teleport เลยทีเดียว
Frontend Mentor, a perfect platform to improve your front-end skills
Tags: beginners, html, javascript, css
Published: 2020-06-24 15:27:47

One of the most difficult front-end students has is to find a good, beautiful, and responsive page design to start a new project and improve their frontend skill.

To deal with it, today I will introduce [Frontend Mentor](https://www.frontendmentor.io).

Frontend Mentor is a platform that provides us amazing projects to all skill levels using HTML, CSS, and Javascript.

![challenges levels](https://dev-to-uploads.s3.amazonaws.com/i/na6d0jwetk44hvcz56fd.png)

Every challenge came with brief, instructions, and some suggestions to build then. It is perfect to deep understand what you have to do.

![brief and instruction page](https://dev-to-uploads.s3.amazonaws.com/i/vgpabn45j1jqds2dq4s9.png)

Since you have finished and deployed your project, all the community will be able to comment and give you some feedback.

I also recommend you to get a look at solutions given by other developers to see how then figured out a way to solve the same challenge.

![Challenges](https://dev-to-uploads.s3.amazonaws.com/i/vpeta6ls6j9pyzky5vg6.png)

I really hope you enjoy this amazing platform and find out good challenges for you.
CodeStream Code Review
Tags: showdev, codereview, ide, flow
Published: 2020-06-24 15:19:40

---
title: CodeStream Code Review
published: true
description: Fast and easy code reviews you'll love, in your IDE.
tags: showdev, codereview, ide, flow
//cover_image: https://direct_url_to_image.jpg
---

{% youtube 9ay2eY-yOTs %}

Hi Everyone! 👋

In 2020 we set out to reimagine how code reviews work because so many developers told us they are unhappy with their existing solution. They told us:

😡 Code reviews happen too late in the process when reworking code is frustrating.
😡 Code reviews happen mostly on a website, like GitHub.com, causing too many context switches.
😡 Code reviews in web sites don't provide the environment and tools needed to work optimally.

CodeStream Code Reviews change all that. It's now two clicks to request feedback on a Work-In-Progress, and by getting feedback early, you can course-correct leading to higher code quality. And it integrates seamlessly with your PR workflow, whether that's GitHub, GitLab, or Bitbucket. 💯

Never leave your IDE to request or perform a code review. No more context switching from web to email to IDE back to web. Discussions during a code review stay attached to the code they refer to (even post-merge!) and are easily accessible to all teammates as a form of documentation. 🚀

CodeStream is backed by Y Combinator and the awesome guys at Brightstone, PJC, S28 as well as Eric Yuan (CEO of Zoom), Quinn Slack (CEO of Sourcegraph) and Steve Sordello (CFO of LinkedIn). We're grateful for all of our customers including Okta, Hearst Communications, SalesForce, Deloitte and BNY Mellon. 🙏

If you’d like to see some live demos of the features, ask us any questions, or just say hi, we’ll be hosting a couple of informal “Meet the Team” sessions today (6/24/20). Be sure to stop by for a few minutes. 🙌

Meet the Team
1:00pm-1:30pm EST - https://us02web.zoom.us/j/82384327407
~ and ~
3:00pm-3:30pm EST - https://us02web.zoom.us/j/82384327407

So what do you love or hate about your code review process? Do you think an in-editor experience will speed things up? Please leave a note in the comments below.

Cheers, 🍻
Peter

P.S. We’re randomly giving away 25 succulents to developers that sign-up today and create a code review. Details here: https://codestream.com/win
Announcing JSON {BIN} IT! service to store your JSON files
Tags: showdev, opensource, webdev, beginners
Published: 2020-06-24 15:19:12

Since one of our favourite services to store JSON files went down (myjson.com), me and my pal [@mino89](https://github.com/mino89) decided to write a new one by our own: that's how [JSON {BIN} IT!](https://jsonbin.it/) was born 🦄 

This service is ideal for hobbies projects, MVP and any other situation where you don't want to create a data storage. Using JSON {BIN} IT! is really straightforward, you can create a new JSON directly from the website or sending a POST request to the API endpoint 

`https://api.jsonbin.it/bins/` 

including the JSON you want to store in the body of the request.

```json
{ "value" : 2000 }
```

The response will be something like

```
{ "bin" : "l088fgWQ" }
```

where `bin` is the id of your JSON that you can retrive sending a GET request to another API endpoint, 

`https://api.jsonbin.it/bins/:binid`

```json
{ "value" : 2000 }
```

The service is still in beta version, is open source (https://github.com/jsonbinit) and there are some good first issues in the repositories, any contribution or suggestion would be appreciated!
#AzureFunBytes Episode 4 - Linux with @bketelsen - Reminder - 2 PM EDT Thursday 7/02/2020
Published: 2020-06-24 15:13:37

Thursday, July 2, 2020 - [@bketelsen](https://twitter.com/bketelsen) will join me to solve three problems!  Thurs 7/02/2020 2PM EDT 

1. How do I create a Linux VM?
2. How can I use this VM to host an app?
3. How do I mount SMB share?

Brian and I will discuss his tenure in technology with me and even answer some questions.

![AzureFunBytes logo](https://res.cloudinary.com/practicaldev/image/fetch/s--pxlTjTrD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/699md0mmakw0cbutamyq.jpg)

---

AzureFunBytes! - Byte-sized content with a live Twitch show! Learn about
Azure fundamentals with me!

Live stream is available on Twitch at 2 pm EDT Thursday. You can also find the recordings there as well.

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes

Join me, ask questions and learn about Azure!

Microsoft Learn: [Azure Fundamentals](https://cda.ms/1jV)
Microsoft Azure: [$200 Free Credit](https://azure.microsoft.com/free/?WT.mc_id=blog-devto-jagord)
Why Obama said, "I think Bubble Sort would be the wrong way to go.."
Tags: showdev, computerscience, tutorial, beginners
Published: 2020-06-24 15:05:40


Let me share a quick clip with you first explaining the title...

{% youtube koMpGeZpu4Q %}

Obama is right. Bubble sort would not be the way to go. 

### Why read this article? What will you get from it?
My goal with this article is to explain why. **Not just a light overview**. 

**A deep dive**, which ends with **bubble sort enlightenment.**

![Bubble Sort Enlightenment](https://dev-to-uploads.s3.amazonaws.com/i/23z0yqe9jo8nnsjjfhcs.gif)

#### Who this article is for?

**If you have a formal education in computer science**, you might not get much out of this article.

**But, there are many self-taught developers like me**, who got into programming without a formal education in computer science. We still know how to make web applications, mobile apps, games, and whatnot.

For my kind, this article might serve as a **good introduction to computer science.**

### Is There A Void In Your Soul That NEEDS answers to...

 1. How does Bubble Sort Work? 
 2. It takes different time to run based on different inputs. Why?
 3. How much time does it take in the worst-case & best case & why?
 4. How a simple trick can lead to a huge speedup in time? **(This sounds like a clickbait title of some article, but it's not. I promise. 😋)**
 5. How to calculate how much time it takes to run?
 6. Obama says it's slow! What does that really mean?
 7. Eric Schmidt says, "a million integers", how much time would Bubble Sort take to get thought that?
 8. Bonus topic: How to sum all the numbers from 1 up to some "n" like 1233212 quickly?

Okay, I guess your still here. Awesome! Let's fill that soul void! I'm excited.

## There Is [An Interactive Demo](https://scotch-bright.github.io/ExpWiki/bubble_sort.html)
You can stick in 6 different numbers until you have understood every facet of the algorithm. [Click here to see it.](https://scotch-bright.github.io/ExpWiki/bubble_sort.html)

## Part 1:: How Does Bubble Sort Work?

{% youtube RGueuVGF9Bs %}

## Part 2:: Optional (But fun, math thing that will help before you move ahead)

{% youtube pIPHIIwyN4k %}

## Part 3:: How to figure out how much time it takes? Why it's bad & why Obama was right after all.

{% youtube guFH1PGxE94 %}

### Closing Comments
I hope you found some value & was a good introduction to computer science for you.

I am doing this project to feed my passion for teaching. Do let me know how I am doing. I want to make many more such demos + videos. The code behind the demo is [open source](https://github.com/scotch-bright/ExpWiki/blob/master/bubble_sort.html). I am happy to answer questions about it too if any.
How to Build and Deploy a Custom Object Detector & Classifier using TensorFlow Object Detection API?
Tags: machinelearning, python, tensorflow, tutorial
Published: 2020-06-24 14:39:09

Motive: How to Build a Custom Object Detector & Classifier using TensorFlow Object Detection API?
Application: Programming a real self-driving car

Medium and Towards Data Science have curated and recommended my article to readers across their homepage, emails, topic page, and app.

I worked, to the best of my capacity and technical skill set, on implementing this model a couple of months ago. I am sure, with the perpetual research in the field, there are other State-of-the-Art (SOTA) models which might have relatively better performance accuracies. I look forward to implementing and working on more SOTA models soon!

Here is a friend link with free access to the article:
https://towardsdatascience.com/how-to-build-a-custom-object-detector-classifier-using-tensorflow-object-detection-api-811b7bcd31c4

I'd be glad to learn any inputs or comments with relevance to my project.

Thank you,
Sandeep Aswathnarayana
Bringing Business Analytics To End Users With GoodData - Episode 138
Published: 2020-06-24 14:35:54

<p>The majority of analytics platforms are focused on use internal to an organization by business stakeholders. As the availability of data increases and overall literacy in how to interpret it and take action improves there is a growing need to bring business intelligence use cases to a broader audience. GoodData is a platform focused on simplifying the work of bringing data to employees and end users. In this episode Sheila Jung and Philip Farr discuss how the GoodData platform is being used, how it is architected to provide scalable and performant analytics, and how it integrates into customer's data platforms. This was an interesting conversation about a different approach to business intelligence and the importance of expanded access to data.</p><p><a href='https://www.dataengineeringpodcast.com/gooddata-business-analytics-episode-138/'>Listen Now!</a></p>
Adding Observability To Your Python Applications With OpenTelemetry
Published: 2020-06-24 14:34:28

<p>Once you release an application into production it can be difficult to understand all of the ways that it is interacting with the systems that it integrates with. The OpenTracing project and its accompanying ecosystem of technologies aims to make observability of your systems more accessible. In this episode Austin Parker and Alex Boten explain how the correlation of tracing and metrics collection improves visibility of how your software is behaving, how you can use the Python SDK to automatically instrument your applications, and their vision for the future of observability as the OpenTelemetry standard gains broader adoption.</p><p><a href='https://www.pythonpodcast.com/opentelemetry-observability-episode-268/'>Listen Now!</a></p>
How to use cookies?
Tags: cookies
Published: 2020-06-24 14:05:49

I want to send a cookie from the svelte server to the client. I have tried the following simple steps:

The page m.svelte:
```html
<script>
  const callm = async () => {
    const response = await fetch("/m", {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        Accept: "application/json"
      },
      body: JSON.stringify({ somedata: "abc"})
    });
	const r = await response.json();
    await console.log("Response", r);
	await console.log("Cookie", document.cookie);
  };
  
</script>
<button on:click={callm}>M</button>
```
And the server route m.js:
```javascript
export async function post(req, res) {

  const { somedata } = req.body;
  res.writeHead(200, {
	'Set-Cookie': `my1cookie=${somedata};Max-Age=60`,
	'Content-Type': 'application/json'
  });
  res.end(JSON.stringify({ somedata }));  // thats is only a test
}
```
What I expect: when I press the **M** button, data is sent to the server and returned as a cookie.
The cookie arrives as I checked with the Chrome Inspector, but is not displayed with console.log 

What have I done wrong?