teleren/devto huggingface dataset:
What is Rejection Even?
Tags: opensource
Published: 2020-10-02 20:32:24

This week was so busy I almost had no time to write any code.

I finally moved! From the smallish town of Newmarket, ON to the big city. Downtown Toronto is where I call home now and it's my first step to being a proper hipster web developer.

That second step, though, is actually writing the code I mean to. Fortunately, between moving furniture, various boxes full of books, and spend stupid amounts of money on stuff I frankly took for granted when I lived with my parents (miss you <3), I managed to write a small bit of code.

This week, the class of OSD600 was tasked with submitting a new feature for one of our classmates' projects. Luckily, since we all were working on the same level playing field, we didn't really have to work ourselves ragged writing code.

Truly, the challenge this week was familiarizing ourselves with how GitHub operates. How pull requests work, how to create and maintain branches, and what to do when our code gets feedback. More on that later.

So Tuesday evening, the night before the *big* move, I picked a classmate's repo, forked it, and went to work adding a feature.

{% github danishalim/URLChecker %}

This went great! As I reviewed the week's lectures I packed and afterward wrote my snippet of code to test http links as https when using a certain argument. Everything was going great.

So I submitted my pull request and expected feedback within the day, or two days, or three, or the week. However, instead, I found none. Every day I checked to see if I missed anything, between buying amenities and moving furniture I checked. I was disheartened when it came to Friday and I had no response from the repo maintainer. Unfortunate. But I did learn something important.

{% github https://github.com/danishalim/URLChecker/pull/3 %}

# You're always gonna deal with rejection

If a user doesn't want you adding to their repo, they can just ignore you. Is this unfortunate? Yes. But like any other discipline in which you "put yourself out there", you're gonna be dealing with rejection from every angle. When I dip my toes into Hacktoberfest (yes I want the t-shirt), I know I have to do a great job not just coding, but communicating my intent through the pull requests I make and the forks I choose to work on.

So. I didn't get everything I wanted out of this week. But what I did get out of it was a valuable lesson that I'll take into Hacktoberfest: persevere in offering your services and if they're not interested, move on. But never stop working and learning.

# Update

Looks like my pull request was received! How exciting, contributing to another's project. I'm completely floored by how cool the idea is and I really can't wait to contribute to more projects during Hacktoberfest.
First EVER PR. Job Hunting Starts. Hacktober is here.
Tags: opensource
Published: 2020-10-02 20:21:04

Aha another week, another post. This week has been the busiest so far this semester. Well... I blame me for procastinating. Anywyas, I got to finish up everything I had for the week, so ended the week in a good note. 

Last few days I was just going over different types of Release 0.1 to contribute to. I found few of them, but so far did some editing for 1. This was my first time doing a pull request. Honestly, felt like I was doing something, someone in an actual job would do. (I know its childish and easy, but it was my first time so I count this as a big step, doesnt matter how smll it was). I updated his code into more latest-ish, fixed readme commands, did some folder management, etc. I enjoyed a lot because it was the first time doing something with other people's code.

2 more great things happened this week. First, Job board opened. Been tailoring my resume and applying to places that I want to work for a while now. I really hope I get in one for winter 2021. I am positive this time as I have very strong skillsets on my resume this time. So, I am pretttttttty positive (please need a job). 

The 2nd one is Hacktober. I am a sucker for any events and Hacktober is not an exception. This year I participated in 4 Hackathons all around Canada, so I am kinda experienced with events. Hacktober is not that different from the hackathons. Here, you go fix around bugs and issue pull requests for the whole month of October, collaborating with everyone in hacktober. In hackathons, you build stuff with a specific group. Take it as someone made a hackathon project, now it is online for us to fix it or make it better. Sounds fun right? yep, I am hyped too, and ready to see what October has for me.

Anyways you can find the repo I PRed for here - https://github.com/joelazwar/linkChek
DevC Nairobi: Never Not a Community
Published: 2023-04-23 11:28:23

---
title: DevC Nairobi: Never Not a Community
published: true
date: 2020-10-02 20:11:59 UTC
tags: 
canonical_url: https://chrisdevcode.hashnode.dev/devc-nairobi-never-not-a-community
---

# DevC Nairobi: Never, Not a Community

![devcnbi.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1608274396139/8M05Oho_s.jpeg)

I would like to take this time and write my appreciation to the diverse community that has made it all possible for me and all other members.

# My Community

Being part of a community is a gateway to your career success. Developer communities play a larger part in fulfilling this.

[Facebook Developer Circles: Nairobi](https://www.facebook.com/groups/DevCNairobi) has been really helpful to my career and a source of motivation to keep building a stronger foundation, and ooh yeah write clean code. The weekly posts by the admins and moderators, the campus communities, and the free quality courses are just but a few blessings from the community.

# The DevC Programs

Every day of the week, I wake to amazing posts by the group that really fuel my day, take a look at them:

## Medium Mondays

_Every Monday, we get to read good and fun technical articles written by our very own members. They are inspiring and easy to understand._

## Happy Hour Wednesdays

_Previously during the Happy Hour Wednesdays, we’ve had Big O Notations challenges and examples to understand the algorithms and more._

## Cafe Thursdays

_Newly introduced and it’s all about Mentorship! This is surely a treasure to keep hunting for._

## Fireside Fridays

_Every Friday we get inspirations by reading interviews from experienced Developers in the field, how the came to achieve their goals and their day-to-day life. If this won’t make you work smarter to achieve your dreams and goals …_

## DevC Nairobi at Campus

_Well, this goes without saying, it has offered a platform to practice leadership of communities and more ways to get engaged and network in the DevC Community. It’s all great._

To Conclude, I’d like to appreciate our leads, Carol, Eddie, Wambui, Jillo, and the whole squad. We all making coding simple, easy, and fun.
Bias & Variance
Published: 2020-10-02 20:03:25

<p>In machine learning, these 2 words are mostly used.
So today let’s talk about these terms what do you mean by these terms and why these 2 terms are so important in <i>machine learning</i> ??</p>

<p>So, before starting with bias and variance lets talk about <b><i>underfitting, overfitting and good balance model </i></b>means in these models. </p>

<p><img src="https://dev-to-uploads.s3.amazonaws.com/i/5utym38baw9k0v2s4aob.jpg" width="250px" height="100px">
So from the above, we can see that it is polynomial regression
but we have used linear regression and therefore the error in both the train and test set will be high so we can say that the graph is wrongly plotted so we can say that it is underfitting the data. </p>

<p><img src="https://dev-to-uploads.s3.amazonaws.com/i/ipzzgjtyavj8xv4a0qfm.jpg" width="250px" height="100px">
In the above graph, we can see that we have used polynomial reg and the degree of poly used is 4 so the line passes through every point and it perfectly fits the data but there is a drawback that in this model if we give any new data or test data or cross-validation data the model won’t predict the correct value as the model has memorised the data and it will give a high error in a test or cross-validation set so it won’t be considered as a good fit so we called it Overfitting.</p>

<p><img src="https://dev-to-uploads.s3.amazonaws.com/i/dkbzlalhwp2j0jdiz42u.jpg" width="250px" height="100px">
So up to now, we have a good idea of what is overfitting and underfitting so how to train a perfect model
with low error in both test set and cross-validation set ?? So lets now have a look at the above diagram
we can see that in this model all the points are not passed through the line nor that none of the
points have passed some points have passed whereas some have not. So in this model error rate in
train set is lower and in the test set or cross-validation data the error rate will be low so this model is called a well-balanced model.</p>
<br>
<p>So lets now come to <b><i>bias and variance</b></i>. 
</p>
<br>
<p> <i>what do you mean by bias and variance?</i> <br>
So bias is nothing but the error in test dataset and variance is the error in train dataset so now let’s
take a look in the above examples and relate the things, in underfitting we have high error in both test data
and train data so we can say that it has high variance and high bias, 
and in overfitting, we know it
has a low error in train data and high error in test data so we can say that it has high variance and
low bias 
and a good model has a low error in both train and test data so we can say that it has low
bias and low variance.</p>
Network Console - a Microsoft Edge feature with lots of potential
Tags: browser, network, debugging, webdev
Published: 2020-10-02 20:00:05

For a long time, I loved using Postman for API testing. Ever since the Chrome apps got deprecated, the experience was not the same anymore.

Since then, I have been using Charles, Insomnia, and some other tools.

This week I discovered an experimental feature in Microsoft Edge which allows you to edit and replay API calls from within the browser. The feature is called `network console`, and you need to activate it currently under the `experimental` features of the DevTools.

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

Once you activate this experimental feature, refresh your page, and right-click on an API call. This should make the `edit and replay` available, which opens the new network console.

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

This will be your new playground for API testing:

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

> **Info**: Personally, this is a splendid feature because you do not have to take care of auth. All tokens/cookies/headers are already added to the API call, so all you need to do is start testing and changing your parameters.
Get the availabe MIME types of a given extension.
Tags: showdev, javascript, webdev
Published: 2020-10-02 19:55:43

I just recently published a simple node module that returns the availabe starndard MIME types of a given an extension.

## Installation
```sh
npm install mime-type-check
```

## Usage
```js
const getMimeType = require('mime-type-check');

getMimeType('svg'); //=> ['image/svg+xml']
getMimeType('png'); //=> ['image/png']
getMimeType('3gpp') //=> ['audio/3gpp', 'video/3gpp']
```

{% github https://github.com/RocktimSaikia/mime-type-check %}

[PS: I created this module to use it in another project that I am currently workin on. Thought someone might find it helpful so made a quick post.]
Eager vs Lazy
Tags: java, spring, jpa, microservices
Published: 2020-10-02 19:52:16

 

Uso de Lazy o Eager para la obtención(fetch) de datos, implementando JPA en un proyecto Spring, pude notar la diferencia entre estos dos conceptos de persistencia de datos, cabe aclarar que los dos funcionan y traen resultados, pero todo depende de la aplicación o proyecto que estés desarrollando, a veces usar Lazy no es tan bueno en proyectos y toca obtener datos a través de Eager porque nos damos cuenta que aparecen errores, y simplemente cambiando uno por otro, de una obtenemos los datos correspondientes, teniendo en cuenta si el proyecto en el momento no tiene muchos usuarios, o a penas se encuentra en etapas de desarrollo local y no aún desplegando a ambiente de producción, puede que sea mejor usar Lazy, y en producción Eager, entre las dos opciones, Lazy obtiene datos pero así como puede demorar un poco más de lo esperado, puede que no toque esperar tanto, es un tanto relativo, a diferencia de Eager que siempre va a tratar de obtener los datos a como dé lugar, cabe anotar una experiencia por si depronto les pasa, en un desarrollo de un proyecto usé Lazy y simplemente me salía error en el consumo, y adivinen qué?, tan solo cambiándolo a Eager funcionó con normalidad, para que lo tengan en cuenta por si alguna vez les pasa y no encuentran la solución, tener en cuenta que lo diferente es que para conectarme a la base de datos en Oracle, necesitaba VPN, importante dato.


Documentación

https://www.baeldung.com/hibernate-lazy-eager-loading


Saludes.
My Own Private "Logo"
Tags: learn, logo, kid
Published: 2020-10-02 19:39:44

---
title: My Own Private "Logo"
published: true
description: A little background on Logo, a teaching programming language. Prelude to a series of articles where I will create a new project inspired by Logo.
tags: learn, Logo, kid
//cover_image: https://direct_url_to_image.jpg
---

I was extremely luck to be exposed to coding at a very early age. I remember playing around with BASIC on my family's Apple *II* e clone. But my very first introduction was the programming language Logo.

The Logo programming language is primarily for teaching. The origin was a physical robot that could be commanded to move around, and by attaching a pen to the robot it could be used to draw pictures.

Logo was the programming language created to allow users to control the robot. The commands would mean things like "move forward 1 foot" and "turn to the right (clockwise) 120 degrees". My introduction to programming was through a computer simulation of this system.

Instead of a physical robot, we were presented with a triangle, inexplicably called the "turtle", in the center of the monitor. By typing in and executing commands like "forward 100", the turtle would move forward the given number of pixels in whatever direction it was pointing -- straight up, at first -- drawing a line as it moved.

While the actual Logo language could handle a few more tasks, I remember usually almost exclusively just a few: forward and backward (conveniently aliased as 'fd' and 'bk'), right turn and left turn ('rt' / 'lt'), and penup and pendown ('pu' / 'pd').

And, perhaps most importantly, 'repeat', which allowed you to repeat a sequence of commands a given number of times.

In my research, I found (unsurprisingly) that I wasn't the first to take an interest in recreating Logo in JavaScript. The best and fairly faithful recreation of Logo I found was this one: [Logo Interpreter](https://www.calormen.com/jslogo/)

However, this did not stop me from taking a stab at creating my own implementation. I made three separate re-imaginings of Logo, each (I hope) better than the one before.

[My first attempt at Logo in JS](http://members.sti.net/newberry/David/grokprogramming/logo/)

[My second attempt at Logo in JS](http://members.sti.net/newberry/David/grokprogramming/logo/lbasic/)

[Nugo](https://paxfeline.github.io/nugo/)

I am now undertaking a new re-imagining. Based largely on the last incarnation ("nugo"), this version will be designed to be largely graphical and tablet friendly, as opposed to the traditional text-only programming environment.

I have two major goals for the new version. First, to be made in React. Second, to allow for the use of variables and expressions.

Stay tuned for updates.
A simple (?) task on algorithm complexity
Tags: algorithms, computerscience, javascript, interview
Published: 2020-10-02 19:37:54

Let me introduce you The Very Bad Fibonacci Implementation:

```javascript
function fib(n) {
    if (n <= 1) {
        return 1
    }
    return fib(n - 2) + fib(n - 1)
}
```

The first question is very simple:

> **Q1.** What's wrong with this implementation and how to fix it?

I know it's too easy 😆 That's why here's another for you:

> **Q2.** What's it complexity in terms of [Big O](Time_complexity)? How to estimate and prove it?

Answers will be published soon ⏳

# Happy brainstorming!
How Do You Feel About Open Source Culture?
Published: 2020-10-02 18:26:06

It's currently [Hacktoberfest 2020](https://hacktoberfest.digitalocean.com/), and developer communities are in an uproar about the impact (both positive or negative) this event brings to open source projects. Just take a look at some of these tweets for context.

{% twitter 1311692006775758853 %}

{% twitter 1311838404699729922 %}

{% twitter 1311590839756427265 %}

That being said, this post isn't just about Hacktoberfest. The third tweet alludes to what open source software (OSS) maintainers face frequently year round: harassment in the form of demands and feature requests. 

Now let me make it clear that I am not a current maintainer of any OSS repository and I have only infrequently made pull requests to different repositories on various platforms. But I do keep notifications on the projects I use and some of the users can make some outrageous demands.

# The Meaning of Open Source

{% twitter 1311629463529152513 %}

For context, I do believe that user demands are normal and sometimes even healthy for the direction of the project. I believe that it is the attitude and approach that some of these users are using to treat OSS as the same as a paid commercial product is the crux of the issue. But how can we address this as a community?

# Potential Solutions

## Better support for communities in OSS repository platforms

For example, I think the 'issues' tab on GitHub has become too all-encompassing, where users are filing every little problem in the issues tab when its usually meant for bugs or feature requests. Now this may not be a problem for bigger projects with dedicated support members, but for any small - mid sized project, this can complete clog up the work tasks. I don't know what form this takes yet, maybe you think a separate instant message platform already fulfills this role, but I think improvements could be made directly on the platform.

## More impactful punishments for abuse on public platforms

This second one is a bit more controversial but I believe that people should take responsibilities for their actions and that goes for abusing others on the internet. Platforms such as GitHub and GitLab have outgrown their initial goals as just a hosting platform for public repositories, with people's job searching criteria being linked to these platforms. I believe there should be a call out for blatantly abusive behavior on these platforms, by the platform, so when potential recruiters see the person's online behavior, they would think twice about working with them.

What do you think about open source? Do you agree or disagree with my suggestions? Are you taking the point of view from a maintainer or contributor?

# Update (10/03/2020 - 2:30AM UTC)

DigitalOcean has made Hacktoberfest repositories opt-in only!

{% twitter 1312220884665536512 %}

Happy Coding
- Justin
challenge gauntlet #003
Published: 2020-10-02 18:24:32

#The problem 

Given a string of space-separated numbers, return the highest and lowest values in that string.

#The breakdown 

let's look at the examples: 
```
highAndLow("1 2 3 4 5");  // return "5 1"
highAndLow("1 2 -3 4 5"); // return "5 -3"
highAndLow("1 9 3 4 -5"); // return "9 -5"
```


Alright, so what do we need to return? Two integers, one the maximum and one the minimum. The max will be first followed by the minimum. It also looks like the return statement is a string so let's get down to brass tax!

let's set a variable to an empty string.
`let str = "";` 

Then I would need a variable that takes the numbers in the string and splits them on the spaces putting them into an array. 

It would look like this:
`let arr = numbers.split(" ");`

Then for the return statement what we want to do is spread over the array getting the max value, then add a space and then doing the same for the minimum value. This is good but looking back at the examples we need those values in a string. So before we do that we need to add it to a string. It would look like this: 
```
return str + Math.max(...arr) + " " + Math.min(...arr);
```

Here is it all together: 

```
function highAndLow(numbers){
let str = "";

let arr = numbers.split(" ");

return str + Math.max(...arr) + " " + Math.min(...arr);
}



 
#O-Zone

Alright so let's talk about time and space!


Disclaimer: I am new at tackling big O in relation to problems. If There stuff that I need to work on let me know in the comments below!

The first two lines I am not to concerned with but the third, that where it gets interesting. From my understanding (mostly a really smart friend), it would be O(n) for one of the operations. Because there are two of them (operations regarding the array (spread operator))it would be 2 but we would drop the 2 and look at the base. Long story short it will be O(n) or linear time and space. This means as the input grows the amount of computation would grow the same or in lockstep. 


#What to work on

Ok, some progress. Big O has been put into the fold but, the variables have slipped a bit this week but it is about progress, not perfection. 


thanks, Mike
Awesome Things for Awesome People - September 2020
Tags: css, animation, javascript, webdev
Published: 2020-10-02 18:23:55

Here's a roundup of what I made in September! 😎

# Move Things with CSS
Promo for my CSS animation and transitions ebook over on [Gumroad](https://gumroad.com/l/move-things-with-css).

{% codepen https://codepen.io/jh3y/pen/wvGPRpK %}

# Cool Steps
3D cool steps 😎 Also featured in Val Head's newsletter.

{% codepen https://codepen.io/jh3y/pen/rNeJyOL %}

# Hi-fi
Bring an SVG Hi-fi stack to life with GreenSock. Let me show you how in this [Twitter thread](https://twitter.com/jh3yy/status/1304036768732385281?s=20).

{% codepen https://codepen.io/jh3y/pen/JjXLEKg %}

# 3D Social Distancing Toggle
Playful perspective changes with the Mac Finder icon. Be safe!

{% codepen https://codepen.io/jh3y/pen/oNxypBx %}

# 100 Div Tada!
For the CodePen challenge, created a "Tada!" with 100 divs and GreenSock.

{% codepen https://codepen.io/jh3y/pen/QWNxVrJ %}

# Apple Event Hashflag
Hashflags are everywhere lately. Recreated the one from the Apple Event with GreenSock. Added some sparkles and sound. Micro-interactions are cooler with sound.

{% codepen https://codepen.io/jh3y/pen/ZEWMjoy %}

# Orion's Galaxy
Did you know you can flow an SVG outside of it's `viewBox`? You can. And if you animate the `viewBox`, you can create a zoom effect. Guess the film for this one!

{% codepen https://codepen.io/jh3y/pen/eYZPJwx %}

# CSS 3D Sandbox
Not much to explain here. All will be revealed in an upcoming article. But this is how I approach my 3D CSS work. This sandbox shows how it works in my head haha.

{% codepen https://codepen.io/jh3y/pen/BaKqQLJ %}

# CSS Xbox Series S
Playstation? Xbox? PC? Switch? 
There are so many CSS Nintendo Switches out there. The Xbox Series S looked like it was worth making.

{% codepen https://codepen.io/jh3y/pen/QWNzvLv %}

# CSS Studio Room
Created my workspace in CSS. That's right. This is my desk and office set up recreated in CSS.

{% codepen https://codepen.io/jh3y/pen/XWdQBRx %}

# CSS 3D Balloons
Created some balloons for creating the house from "Up". These are nifty because as we rotate the camera, we offset the balloon rotation. This gives the "faux" 3D affect.

{% codepen https://codepen.io/jh3y/pen/NWNVgJw %}

# CSS House from Up
The house from "Up". Can't say much more. It's likely to spin up your fans so I've not embedded it haha.

Check it [here](https://codepen.io/jh3y/pen/OJNeGoO)

-----

# That's that!
Wanna see more? Reach out and say "Hi!" on [Twitter](https://twitter.com/intent/follow?screen_name=jh3yy)!