teleren/devto huggingface dataset:
Day 15 of 100DaysOfCode
Tags: 100daysofcode, codenewbie, exercism, edabit
Published: 2020-09-04 20:25:05

Today was a really awesome day in the "life" side. We got our little puppy! If you are a puppy person (and let's face it, who isn't?) you can follow it's litte adventures on [instagram @jackythetoy](https://www.instagram.com/jackythetoy/)

On the coding side, it wasn't that impressive. Decided to get familiar with a couple of coding challenge sites. I liked them both but I haven't decided yet if I'm going to keep using them. 

Exercism is probably the one I will consider using as it had many elements that I think are super useful to know. I liked the way you had to really download the files using terminal and submitting them with those clunky terminal commands. It's probably a more realistic way of working with code rather than something like FCC were you don't even use an IDE. That being said Exercism is not as easy for beginners and that's why I like them both as they serve different purposes. 

Something I often see happening to me is that I get lost in the side project cycle. That means I start another task, challenge, or a project before finishing the original task first. I should probably make a coding schedule to better organize my coding efforts. Probably will return to this idea tomorrow.

###What I did today:

####1. Checked out Edabit
https://edabit.com/challenges

#### What I learned from it:
* Got familiar with the platform

####2. Checked out Exercism
https://exercism.io/

#### What I learned from it:
* Got familiar with the platform
* More practice with terminal and node

####Time spent learning:
Task 'Edabit'. Elapsed time: 0 h 11 min 4 s
Task 'Exercism'. Elapsed time: 0 h 34 min 33 s


#### Total time: 45 min 37 s
Time spent is tracked by my [TaskTimer](https://www.arttupyykonen.com/tasktimer/) script and the [WakaTime app](https://wakatime.com/about).

### Further reading

#### [FreeCodeCamp](https://www.freecodecamp.org/learn)
Check out FCC for the best interactive exercises! I have finished the Basic JavaScript and ES6 lessons and can recommend them for a beginner! You can read more about the Basic JS and ES6 challenges at posts "Day 8" and "Day 11".

#### [Exercism](https://exercism.io/)

#### [Eloquent JavaScript book](https://eloquentjavascript.net/)

###Psst
You can check my answers to the exercises of Eloquent JavaScript. You'll find them [here](https://www.arttupyykonen.com/ejs-solutions/).

Posting more tomorrow, see you then! :)
The Importance of breaks!
Published: 2020-09-04 20:02:24

For the last couple of weeks, I had felt lost tired. Even good things that got me excited had me flustered. I was in a textbook rut. It felt like the work was crashing in and I couldn't breathe. This is the story of the long-overdue break. 

When a person is fresh, work doesn't even seem like work. The effort you put in to achieve your goals is minimal in comparison to when you are feeling burnt.

Let me take you back a week prior to the big break. I was doing what I needed to in regards to work, reaching out to people, and having conversations. I did it that week and the week even before that, like I should if I want a job. The logical part of my brain said "yes stay on the plotted course, keep steady" but my brain was cooked. I couldn't manage it, it tried to keep reminding itself that "life is going to get simpler, some stress will be mitigated" but just like in any horror movie the call was coming from inside the house.


My brain got into this weird for loop where it would remind itself that if you want less stress you must work hard for it now! The only exit condition for this loop would be for me to get burnt out. As the loop dictated I met the exit condition. I missed the signals my brain was trying to tell me, I wanted the job so bad I was blinded to the fact I wasn't even productive this miscalculation cost me. Without family and friends pointing me in the right direction, I could have lost a lot more.  So over this past weekend, I had decided to take a break, Tuesday and Wednesday of this week. So Tuesday rolls around and I was nervous. For what reason I am not sure. I had felt guilty for most of that first day, antsy, I just could sit still. I thought all of the jobs would vanish. For that day I mostly drove around listening to music just to get out of this headspace. By the end of the day, I had this weird peace. I wasn't sure why but I couldn't complain at that point. The next morning was a lot better. I saw the board a bit clearer. I started to notice that there was a forest beyond the tree I was looking at!

Now that I have gotten that world's cheesiest but true quote out of the way we can return back to reality. Later on, the second day I felt it creeping back in. A modified case of the Sunday Scaries on Wednesday of course. It's a reasonable thought. You don't wanna be back in the situation that you were in. I am not talking about working, working is what people need to do to live. It's that feeling that you can barely keep your head above water. That sucks, so I decided I needed an action plan to take its place just so if I ever have a feeling like this again I can make the right call and save myself some headaches and be more productive.


I don't see this problem going away. People are going to become burnt out. But instead of just getting bummed out just think that it's inevitable I can take action steps. Now later that night I still felt the Modified Sunday Scaries but knowing I had a plan to deal with them going forward made going to bed that night much easier.

Thanks, Mike
Project idea: An app measuring time spent waiting for code changes
Tags: productivity, timemanagement, projectidea, sideprojects
Published: 2020-09-04 19:56:00

Have you ever thought how much time do you spend waiting on your code to compile? On your local development server to reload or refreshing your browser for some UI change in your code?

I've been thinking about it a lot for past few days, because it bothers me to spend time just waiting and looking on spinning loaders.

Yeah, sure, there are things like hot module replacement to boost your productivity, but that's NOT what I want to talk about.

I want to talk about the question - **How much time do I actually spend waiting for these things every day.** And sure, I've been thinking how to measure it. 

What if I made an app to measure these reload times, on the server-side (your local server) and client-side (in the browser). Which could show you at the end of the day that you spend 38 minutes just waiting for your code to compile? **Would you be interested in using it?**

There are some other interesting things you could get from the data, like automatically measuring your time in work, which is another thing I would like to know.

You might be wondering about the technical implementation. I can explain it in another post if it has shown to be interesting.
HackerNews’ Freelancing Thread: Is it good for new web devs?
Tags: beginners, career, freelancing, codenewbie
Published: 2020-09-05 00:43:05

---
title: HackerNews’ Freelancing Thread: Is it good for new web devs?
description: Every month, HackerNews hosts a thread for freelancers to post their skills and for others to post gigs for freelancers. Watch to learn if it's worth your time, and I'll share some sweet hacks for making the most of it.
published: true
date: 2020-09-04 19:37:00 UTC
tags: beginners,career,freelancing,codenewbie
canonical_url: https://raddevon.com/articles/hackernews-freelancing-thread-is-it-good-for-new-web-devs/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/b9wfoplcuyzo7eib2h19.jpg
---
[HackerNews](https://news.ycombinator.com/) is a reddit-like site for developers. Every month, they host a thread called [“Freelancer? Seeking Freelancer?”](https://hn.algolia.com/?dateRange=all&page=0&prefix=false&query=%22Freelancer%3F%20Seeking%20freelancer%3F%22&sort=byDate&type=story) in which users are welcome to post freelance gigs they need to find developers for _or_ their own profiles as freelancers in hopes of getting contracted by someone.

I’m looking at the thread through the lens of a new-ish web developer. Is this something you should be paying attention to? If you _do_ devote time to it, what’s the most effective way to use it?

{% youtube iCHM-6J7WhQ %}

If you’re going to be spending some time on the “Freelancer? Seeking freelancer?” thread, you’ll want to grab a copy of the bookmarklet I demonstrated in the video to make it easier to find the gigs in the thread without having to sift through everything else. Share your email [on this post's page](https://raddevon.com/articles/hackernews-freelancing-thread-is-it-good-for-new-web-devs/) to get a copy of the bookmarklet and filter the thread down to only what you want to see: the gigs!
Overlay image on top of other objects
Tags: help
Published: 2020-09-04 19:36:04

I'm trying to overlay an image during max scaling (I'm using the class InteractiveViewer) on top of other objects (also the status bar). Basically like on Instagram. I couldn't find anything reading the docs. A hint on how to proceed?

```child: InteractiveViewer(
 transformationController: controller,
 maxScale: 2.0,
 minScale: 2.0,
 child: imageBig,
 fit: BoxFit.fitWidth,
),```
The Extinction of Mentorship

Tags: software, developer, mentor, mentorship
Published: 2020-09-04 19:19:48

Perhaps 'extinction' is a bit strong, but I certainly feel it's on the endangered species list.  I have a sincere hope that I'm way off and mentorship is alive, well and booming.

When I was a wee lad, growing up in fly-over land USA, my father was building and finishing our family  house.  My older brother was extraordinarily skilled in many things, sheet-rocking would be but one of them.  He and my father would hang sheet-rock and finish it with a proficiency that truly amazed as we younger kids looked on.  My father, in time, took pity on me as it was clear I wanted to try and he handed the sheet-rocking screw gun.  Properly sunk screwheads were replaced with over-sunk, under-sunk and cockeyed counterparts.  Clearly, this rookie was adding additional work to a proficient, efficient team.
The entire 2200 sq foot house required sheet-rocking, weeks of work I continued to assist, gaining proficiency along the way.  To this day I'm convinced that my participation only slowed the entire process.  The goal of apprenticeship is to exchange skills with the overall goal of eventually having a larger skilled staff.  To be a financial win this means recouping the training costs with improved efficiency of the new staff.  It's playing the long game, investing in your team with expected future gains.

Certainly there are other goals of mentorship, apprenticeship or training journeymen, but if you focus on it purely financially there are new challenges to the current world than that of the years past.  Loyalty to company and loyalty to employees have taken a big hit these past decades so investing in apprenticeships has risk of net-loss.  Like my sheet-rocking activity, the progress of our house was worsened by my participation; simply couldn't recoup the cost over a few weeks.

Active mentoring an apprentice takes time, likely a lot of time.  I'm not talking an weekly meetup with a mentee with some inspirational quotes of a bit of advice.  I'm talking daily involved monitoring and guiding an engineer in all aspects of the field.

I'm the engineer I am today because I was lucky enough to have a few mentors early in my career.  Sadly, I've not witnessed real mentorship since, 14 years and counting, because all the teams I've been part of since have been senior-leveled experience.

So, where do young engineers go for advice?  Reddit, slack, Twitter,...?

I'm looking for reassurance that mentorship is still alive and well.

Cheers.

This post originated [here](https://dragonquest64.blogspot.com/2020/04/the-extinction-of-mentorship.html)
Turn your Github issues into Notes ... Yay 👨‍💻👩‍💻🤟✌
Tags: webdev, github, hacks, showdev
Published: 2020-09-04 19:14:53

This theme will turn your repository issues into notes.

Also the color of your labels will be used as color for the tags on the site.

## Have a look at this [Live demo](https://github-issue-notes-theme.vercel.app)

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

## How to deploy

First of all make sure you use a private repo because in a public repo anyone will be able to make issues & they will appear on your site.

> My repo with issues

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

> Few Labels that I made

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

* First step is to change the labels for issues, because you probably dont wanna use the existing labels for your notes, your lables will be used as tags in the notes.
* Now Fork the project or download
* Open theme.config.js file and change username and repo name
* Get a personal access token from github
* Deploy on vercel and add personal access token as environment variable TOKEN.
* That's it now your lables will apprear on the sidebar and the issues will apprear on right.

---

Github Repo: [https://github.com/sharadcodes/github-issue-notes-theme](https://github.com/sharadcodes/github-issue-notes-theme)

---
PS: Don't forget to star :smile:
Is HostGator Web Hosting Good For You?
Tags: webhosting, hostgator
Published: 2020-09-07 12:44:59

---
title: Is HostGator Web Hosting Good For You?
published: true
date: 2020-09-04 19:14:23 UTC
tags: Webhosting,hostgator,webhosting
canonical_url: https://codesquery.com/hostgator-web-hosting/
---

HostGator is one of the most used web hosting provided in the world. It is founded by Brent Oxley in 2002 and from then it never looked back. Today many WordPress websites, small app page landing pages and other business are using the HostGator hosting. But is it really worth to give your hard earn money [...]

The post [Is HostGator Web Hosting Good For You?](https://codesquery.com/hostgator-web-hosting/) appeared first on [CodesQuery](https://codesquery.com).
Acquisitions - [August 2020]
Tags: discuss, news, healthydebate
Published: 2020-09-04 18:45:34

In case you missed the M&A tidbits of July, please check out the previous article in this series.

August 2020 didn't seem to have too many noteworthy acquisitions so this post got delayed :pray:! However, a quick review recently did spin up a few anecdotes so here we go for this month.

1. [Byju's, An ed-tech giant whips up a fast-rising Whitehat for $300 million](https://techcrunch.com/2020/08/05/indias-byjus-acquires-whitehat-jr-for-300-million)

2. [Palo Alto invests $265 Million for Crypsis](https://techcrunch.com/2020/08/24/palo-alto-networks-to-buy-digital-forensics-consulting-firm-for-265m)

As the world slowly limps back to normalcy from the Covid-19 crisis, it'd be noteworthy to observe how such activities pan out. To understand more about this, I have the following questions for the Dev.to community:

----

- Which of these 2 sides would benefit from such acquisitions & why?
- How is it sustainable in a post-pandemic era full of drastic changes?
Tweaking Epiphany's webapps icons
Tags: productivity, tutorial, linux
Published: 2020-09-04 18:14:09

I've been using **Epiphany** (Gnome's web browser) to create webapps of some services I use daily so I have them in the form of a desktop app.

Also, I want them to be isolated, and not interfere or know anything about my regular browsing, messing up with sessions and cookies. This way, every webapp runs in a separate profile that acts like a sandbox.

The thing that was bothering me is that because all these webapps are actually the same app (Epiphany), **they all had the same icon** in the open windows bar (they all have their own launcher icons, but the window buttons in the bottom, the one used to change between apps, were the same). That made me mad...

So I did some research and I found `xseticon`, a neat little command line tool to change the icons of running applications. It's used like this `xseticon -name "Title of the app" /path/to/an/image.png`.

But there was still a catch... once the webapp opens, the window title changed to whatever the webpage inside was, so what I did was this:

1. Open the webapp as usual
2. Wait half a second to give time for the app to actually open
3. Use xseticon to change the icon based on the window name, which luckily, all Epiphany webapps start with the title "Blank page" and quickly change to whatever else is being loaded. 

The half a second wait gave me enough time to wait for the app to start, and also to catch the correct window title before it changes.

The final script looks like this:

```
#!/bin/bash
epiphany --application-mode --profile="/home/user/.local/share/epiphany-whatsapp-086ea71f39bc5d178a4c363ad9e448d24b02665a" https://web.whatsapp.com/ &  ## the "&" at the end is very IMPORTANT!

sleep 0.5;

xseticon -name "Blank page" /home/user/.local/share/epiphany-whatsapp-086ea71f39bc5d178a4c363ad9e448d24b02665a/app-icon.png 
```

The & at the end of the line that launches the app is important because without it, the sleep line would not execute, not until I close the app. By using the & I am starting that process but the execution of the script continues, so then I wait half a second and then change the icon.

That's it!

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

I'm sure this will be of no use to anyone, but this is the kind of things I do when I get bored.
Create a Chessboard
Tags: html, javascript, css, codepen
Published: 2020-09-04 18:35:56

Being a chess player was curious to create a chess board using code. So created a chess board with pieces using chessboard.js library.

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

https://github.com/dhanushnehru/100DaysOfCode

Also created a static chessboard without pieces using only Html & Javascript via codepen

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

[Codepen](https://codepen.io/dhanushnehru/pen/oNxoxgN)
Setting Up Vim and the PHP Language Server Protocol
Tags: php, vim, productivity, vscode
Published: 2020-09-04 18:33:47

Vim is great at editing text, but doesn't have the full language features built
in that devs love in IDEs. At the same time, the Vim plugin ecosystem has
allowed for new languages to quickly ramp up in Vim instead of waiting for
adoption to support a full IDE.

Enter the Language Server Protocol. Originally to support another text editor,
Visual Studio Code, LSP has been embraced by the Vim world as a way to get much
richer language support than we're used to, and now that's available for PHP!

Let's step through how to install Language Server Protocol support for PHP in
Vim.


## Assumptions

Some silly assumptions to start!

* You have Vim installed and a method of installing plugins you prefer. Why?
  Because there are multiple plugin managers and I'd like to gloss over
instructions for each.
* You have Composer installed for your PHP project
* You're comfortable on the command line! This seems likely if you're using Vim.

## Step 1: Install the LSP client plugin

The most popular Vim plugin for LSP integration is [Prabir Shrestha's Vim-LSP
plugin](https://github.com/prabirshrestha/vim-lsp). Go ahead and install this
plugin based on your plugin manager of choice and the instructions at the Github
link. This is your LSP client for Vim!

## Step 2: Install the LSP Server

In your project, run:

```
./vendor/bin/composer require -D felixfbecker/language-server
```

This will install the language server locally to your project, and add it to
your `composer.json` dev dependencies. Why do this per project? I have a few
projects and generally avoid depending on a global install if I can help it. If
you have different requirements, you could install it with a global composer
install.

## Step 3: Parse stubs

There are plenty of parts of PHP that aren't defined in your code but the
language server still needs to know about! These are things that are in the PHP
standard library, like definitions for `DateTime` or function signatures for built
in functions like `array_map`.

From your project, run:

```
./vendor/bin/composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs
```

## Step 4: Configure Vim to start and use the LSP

Now we need to configure Vim to use the server. Add this to your `vimrc`

```
au User lsp_setup call lsp#register_server({
    \ 'name': 'php',
    \ 'cmd': {server_info->['php',
expand('[PATH TO YOUR COMPOSER VENDOR DIRECTORY]/vendor/bin/php-language-server.php')]},
    \ 'whitelist': ['php'],
    \ })

autocmd FileType php setlocal omnifunc=lsp#complete
```

Replace the path with your path. I use Vim's support for directory vimrc using
`exrc` so I replace that path portion with `.`. But if you have a different
setup, you'll need to make sure it points to the vendor directory where you
installed the language server earlier.


## Step 5: Test it out!

Go into your project, and try autocompleting a class or function name using
`Ctrl+X Ctrl+O`, the keyboard shortcut for Vim omnicomplete.
BEWARE OF BITCOIN SCAMS
Tags: security, blockchain, datascience, database
Published: 2020-09-04 18:28:19

As Bitcoin and other cryptocurrencies have become more popular and gain attention from both the media and consumers, many new investors have emerged seeking to profit off the digital gold rush. 

As with any new investment there is significant risk to bear, however, in a currency market these risks increase exponentially. As many remember when email began its journey to become a staple of the modern household, scams like the infamous “Nigerian Prince” began to appear which lost inexperienced users thousands of their hard-earned dollars. These same scams and malicious tactics have reared their ugly head again as cryptocurrencies have become increasing popular and lucrative, and it’s the responsibility of every investor to ensure they are informed to prevent a fraudulent website/person from stealing their money.

Here are a few of the most prominent Bitcoin scams you should be aware of as you invest:

Malware Scams

Any person that uses the internet today has inevitably ran into malware scams in some capacity. Whether it is a fraudulent website that installs harmful software on one’s computer as they download something or fraudulent sites that pose as something legitimate up until a user enters their payment information, malware has been a omnipresent scourge of the digital era. The presence of malware is no different when it comes to buying Bitcoin, it only comes in a different appearance. According to tech support site Bleeping Computer, cryptocurrency malware has begun targeting users seeking to buy Bitcoin or use various Bitcoin Exchanges.

Fake Bitcoin Exchanges

One of the most apparent scams as of late has been fake Bitcoin exchanges, that is sites that pose as legitimate trading platforms but instead steal all of a users’ funds. A prominent example of this was BitKRX, which posed as a Korean Bitcoin Exchange platform.

Here is more list of bitcoin scam to be beware of and avoided by all means:
https://www.rent-hackers.com/beware-of-bitcoins-scams/