teleren/devto huggingface dataset:
How do you manage a difficult client?
Tags: beginners, freelancing, discuss
Published: 2018-06-29 04:33:23

---
title: How do you manage a difficult client?
published: true
description: 
tags: beginners, freelancing, discuss
---

Recently I took a freelance job to create a certain website. I took different small time projects before but this latest one is fairly bigger than any of my past projects. I did the stuffs but everytime there is always a revision for this module x and a new module called y. Then there are also time where I implement a module based on what they want and later in the future they decided to change the flow and how it will works and called it (small logic changes).


There are contracts, there are sprints. But because of the unbelievable changes some sprints are never met. There are also no additional payments for this and due to late sprints payments are also delivered late. And then there is a pressure from the clients to deliver things at the deadline because it is in the contract. 

My Question is this? How do you manage such situation? I'm fairly new to freelancing but this is the first time I encountered this kind of client.I know I should never say yes in everything (I realize this so late) and in honestly I was a bit of scared for the legal reason. 

Any thoughts will be great help :) Thank you
What are some concepts in TypeScript that you'd like to know more about?
Tags: discuss, typescript, javascript
Published: 2018-06-29 03:24:19

---
title: What are some concepts in TypeScript that you'd like to know more about?
published: true
tags: discuss, typescript, javascript
canonical_url: https://www.iamdeveloper.com/posts/what-are-some-concepts-in-typescript-that-youd-like-to-know-more-about-noo/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/luvah6kr7f6vetiiqaxg.jpg
series: typescript
---

Cover photo care of flickr user [souravsarkar2013](https://www.flickr.com/photos/92053900@N03/16659546550/in/photolist-ro9wMd-WRZ2wD-26tFjL-22MBhkt-7mQhsN-9qQG62-891kTk-9tFtFC-4bnx2A-EC1Csj-9jzmL-hFH47m-qSZ3ba-s7pWuD-dH8jXj-TgEWvv-5X7HHc-6D7weu-HXBVQ7-VU7PKK-WwKHHz-23orEgj-7L79sg-4iULmP-7bQgqX-UsK3vf-CQXZzb-oDGZ6o-23EYnMb-23KMSu1-cGReY-21naAZd-5BWfgi-nLoZU1-awFL43-8T6uBf-CX29jx-nGs91v-Tkj9GH-E5sx6n-24rxy13-eXxBbN-4TPUa4-4NMzmm-pcWZGc-bye7RN-muNzJP-4xVA2H-hMf6u5-dNEZD2)

I wrote an introductory post on TypeScript last October.

{% link https://dev.to/nickytonline/why-you-might-want-to-consider-using-typescript-6j3 %}

I'm looking to write some more posts on TypeScript and I was wondering what people might be interested in knowing more about that either is a source of confusion, needs elaboration or you just heard about something in TS and just want to read a blog post about it.
Understanding JSONP
Tags: javascript, jsonp, api
Published: 2020-09-22 10:26:47

---
title: Understanding JSONP
published: true
date: 2018-06-29 00:00:00 UTC
tags: JavaScript,JSONP,API
canonical_url: https://www.loginradius.com/engineering/blog/understanding-jsonp/
---

Nowadays, many API providers support JSONP requests. One reason for this is that most web browsers disable cross-domain requests when using basic Ajax. For example, if your website has the domain "a.com", it will use JavaScript hosted on a.com. When the a.com JavaScript makes an…

   
[Read On](https://www.loginradius.com/engineering/blog/understanding-jsonp/)
Need Help on my Project
Tags: javascript, jquery, html, help
Published: 2018-06-28 23:08:59

---
title: Need Help on my Project
published: True
description: 
tags: #javascript #JQuery #HTML5 #help
---

I need help with javascript on writing some methods and logic. Would appreciate if you could contact me on my whatsapp if you can help with it +2348148072420. Need help within the next 24hours
What should I ask for when I WFH
Tags: beginners, discuss, rookie, career
Published: 2018-06-28 16:21:20

---
title: What should I ask for when I WFH
published: true
description: 
tags: beginner, discuss, rookie, career.
---
Hi there! I recently got a proposal for a WFH job, and they told me they want me to tell them what I want for the job.
Question is, what it would be correct here to ask? I thought of asking for a laptop, money for food, some % of the bills of internet and electricity, but I'm not sure what is and isn't correct to ask.

Please tell what you think would be correct to ask!
[Discuss] Using machine learning to process audio files?
Tags: discuss, ai
Published: 2018-06-28 18:28:50

---
title: [Discuss] Using machine learning to process audio files?
published: true
description: After discovering PhonicMind, I wonder if machine learning is a good solution for processing audio.
tags: discuss, ai
---

I use [Audacity]() and various software (VST plugins) that require a [DAW/host](https://en.wikipedia.org/wiki/Digital_audio_workstation) that supports them to manually remove background noise from audio files (spoken recordings). By background noise I mean the subtle background static that you pretty much always get with affordable microphones and phones. By selecting a range of "silence" in the file (nobody talking, just noise) as a so called audio profile I can improve the results. I repeat the same procedure until the background noise level is entirely zero/gone, sometimes at cost of the voice. The quality of the result depends mostly on the quality of the file and the amount of noise. 

*Noise in this context does not mean random interruptions from the environment like traffic, it always refers to the static.*

The results are often unusally good, it is amazing what these tools can do when you apply them correctly. Correctly however also means manually. The parameters to process the audio are a little different for each single file so in order to _process audio in bulk_ I need to automate it somehow. I have been looking for command line utilities or libraries of some sorts to do that. There are some tools out there but none of them delivers results. I even tried loading vst plugins in a headless VST host with predefined parameters but this is hacky and crap.

---

![PhonicMind](https://thepracticaldev.s3.amazonaws.com/i/evtxq0qg976yn9o4qfug.jpg)

PhonicMind advertises itself as "Online AI Vocal Extractor", an online tool that extracts the vocal track from an audio file using "artificial intelligence" to improve results. It is a commercial product (you have to pay to use it) and there is a [https://github.com/andabi/music-source-separation](GitHub) repository that separates singing voice from music based on deep neural networks in Tensorflow. I did not look into and do not care if the two are related.

---

![Lightbulb](https://thepracticaldev.s3.amazonaws.com/i/tqb0bp37eis6n9rgr110.jpg)

So, it follows with a lightbulb. Machine learning for background noise removal? I suspect (pretty much assume) that detecting and removing noise in bulk audio like that is much simpler than what PhonicMind attempts to do. Perhaps simple enough to do it myself.

How would I go about prototyping a solution? I have a general understanding of machine learning and know about TensorFlow but can't say I ever used it for something. If at all possible I prefer a solution that requires the least amount of studying the matter so if you happen to know of a command line utility or framework that I did not find then that is probably even better.

Thanks.
💁🏻‍♀️👨‍💻June 2018 — Top 100 Web & Software Development Articles 😍
Tags: node, webdev, webdesign, ai
Published: 2018-06-28 17:45:10

---
title: 💁🏻‍♀️👨‍💻June 2018 — Top 100 Web & Software Development Articles 😍
published: True
description: Here’s what’s trending this month in Web Dev, Python, Java, AI, Android Dev, Web Design, and More! brought to you by Brandon Morelli.👨‍💼
tags: #nodejs, #webdev, #webdesign, #AI
---
Last month Brandon Morelli started doing something new at CodeBurst — Top 10 lists of Web Development and Software development articles. And today he has published a compilation of trending articles in Web Dev, Python, Java, AI, Android Dev, Web Design, and More! Good Stuff!! Have a look!  👀🧐

{https://codeburst.io/june-2018-top-100-web-software-development-articles-4a2903787fad}
Update on Ruby and Rails learning experience
Tags: learning, ruby
Published: 2018-06-28 17:01:55

---
title: Update on Ruby and Rails learning experience
published: true
tags: Learning,Ruby
canonical_url: http://christine-seeman.com/2018/06/update-on-ruby-and-rails-learning-experience/
---

Even though I may not be writing about it, I am continuing my deep-dive into the word of Ruby.  At work I am mostly focused on Rails.  My app is Rails, and the tickets I am working on are Rails (with some haml and scss thrown in, yay for learning some front-end development!).   Currently I have been able to be become semi-productive, but haven’t  been able to complete a ticket on my own, which is a humbling experience.  We are doing one week sprints, so I do try to muddle my way through on an assigned ticket.  But since time is short, you need to just women up and ask for help sooner then later.  When time allows, I am still working through a [Rails Tutorial](https://www.railstutorial.org/book/toy_app).

At night, I have still been working through [Ruby the Hard Way](https://learnrubythehardway.org/) and have made it up to exercise 15 or so.  These have been very easy so far, but I have a feeling that it will pick up speed soon and I don’t want to skip something that might be important. Got derailed this week because [one of the lessons](https://learnrubythehardway.org/book/ex14.html) is working on accepting user input, and suggested looking up [Zork](https://en.wikipedia.org/wiki/Zork), so the rest of my evening was [playing that](http://textadventures.co.uk/games/view/5zyoqrsugeopel3ffhz_vq/zork). It kinda reminds me of Vim, if you can remember the keywords it can be fun, but if not you are just kinda stuck in a dark room (terminal).

In other fun news, I actually have people visiting my website! Um thanks, I really didn’t know that anyone would read this, and with my handy dashboard on [Flyweel](https://getflywheel.com/) I can see that I have visitors. Now what percentage of those are spam bots, who knows  ¯\_(ツ)\_/¯

![](http://christine-seeman.com/wp-content/uploads/2018/06/Screen-Shot-2018-06-28-at-11.44.58-AM-1024x911.png)

Side note: if anyone knows why when I run my rails server I get “MiniProfiler storage failure: Connection lost (ECONNRESET)” every once in awhile, could they share, that would be awesome.  Everything starts up and runs, but I just see that pop up pretty often.
Does your team write code tests for front-end code?
Tags: discuss, webdev, javascript
Published: 2018-06-28 16:44:17

---
title: Does your team write code tests for front-end code?
published: true
description: 
tags: discuss, webdev, javascript
---

This is a question from the [State of the Web Survey](https://dev.to/survey) we just put out today, but I thought this would make for a good discussion question.

In web-land it definitely seems more common to test back-end code than front-end. This is probably changing as tooling gets better, but I was wondering what your thoughts on the issue were.
Page Visibility API
Tags: javascript, pagevisibility
Published: 2018-06-28 16:04:23

---
title: Page Visibility API
published: true
description: Using the Page Visibility API to add a bit of fun to a website, mostly because we can.
canonical_url: https://tj.ie/page-visibility
tags: javascript, page visibility
---

The Page Visibility API lets you detect when a page is visible or in focus for a user. The page is deemed no longer visible if they switch to another tab or when the window is minimized.

So what is it good for? The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API" target="_blank" rel="noopener">MDN Docs</a> do a great job of explaining this API and its potential uses. For example, you could use it to pause a video or a game or hold off on any background requests you might be making.

My cases are far less noble and exciting. Yes, I'm using it to show an emoji in the document title. Go ahead, switch to a different tab. Do come back though. Please. The link to the MDN Docs gives an example of how to implement the API, along with affordances for older browsers that support a vendor-prefixed version. I'm going to outline a barebones script for my implementation.


``` javascript
const PageVisibility = {
  asleepEmoji: '💤',
  originalTitle: document.title, // [1]

  init() {
    if (typeof document.hidden === 'undefined') return // [2]

    this.handleVisibilityChange = this.handleVisibilityChange.bind(this) // [3]

    document.addEventListener('visibilitychange', this.handleVisibilityChange, false)
  },

  handleVisibilityChange() {
    let title = this.originalTitle

    if (document.hidden) {
      title = `${this.asleepEmoji} ${title}`
    }

    document.title = title
  }
}
```

[1] We're storing the original copy of the document title so we can revert back to it once the page is visible again.

[2] We do a rudimentary check for modern support for this feature. You can check out the MDN link above for the vendor prefixed version.

[3] Binding the lexical scope of `this`. It means when I call `this` it'll refer to the PageVisibility object I created rather than `document`.


After calling `PageVisibility.init()` you're good to go. 

Result:

![](https://thepracticaldev.s3.amazonaws.com/i/ou5tq1izdbt8xp6ki5je.gif)

This was originally [posted on my blog](https://tj.ie/page-visibility).
Dev.pun
Tags: devpun, isthisfunny, meta
Published: 2018-06-28 16:00:37

---
title: Dev.pun
published: true
description: 
tags: #dev.pun, #is_this_funny?, #meta
---

![dev.pun](https://thepracticaldev.s3.amazonaws.com/i/hac86s6t4ceralnr6ibb.png)
Why Laravel is the Recommended Framework for Secure, Mission-Critical Applications
Tags: php, laravel, framework, programming
Published: 2018-06-28 15:36:43

---
title: Why Laravel is the Recommended Framework for Secure, Mission-Critical Applications
published: true
description: Out of the box, Laravel ships with many features that make your applications ready for prime time. In this article, you will learn about these features.
tags: #php #laravel #framework #programming
canonical_url: https://auth0.com/blog/why-laravel-is-the-recommended-framework-for-secure-mission-critical-applications/
---

Laravel makes your applications more secure by default, which makes it the recommended PHP framework for mission-critical applications. In this article, we will briefly address how Laravel can help you create mission-critical, production-ready applications.

[Read on ✊](https://auth0.com/blog/why-laravel-is-the-recommended-framework-for-secure-mission-critical-applications/?utm_source=dev&utm_medium=sc&utm_campaign=laravel_apps)

![Why Laravel is the Recommended Framework for Secure, Mission-Critical Applications](https://thepracticaldev.s3.amazonaws.com/i/kv9q5rla1dabjzao1txo.png)
How I get to my goals
Published: 2018-06-28 14:28:52

---
title: How I get to my goals
published: true
description: 
tags: 
---

Hello to this brilliant community. This is my first post and I am not an English speaker, sorry for any grammatical problems.

I would like to share how I begin my journey to computer science.

#Programming owned my heart
I was drawn to programming stuffs when I was around 14-15 years old. I don't remember what actually drove me to get into software development that time, but every time I think about softwares, I believe that I could also make one. 

My first programming language was C, which learned from a very old textbook I borrowed from my middle school teacher. When I compiled my very first program *Hello World*, I thought I was like a god. I can create anything that works.

**Programming owned my heart**. I was a lazy student in class that I can almost failed on any subjects, but my teacher told me that I should get a good grade on science-stream subjects especially maths so I can enter Computer Science in university. That was the first time I truly try to change myself, I studied hard on maths. The only goal was: I want to study Computer Science.

#As a university student now
I achieved my first goal and is a Computer Science student. I found I have limited amount of time everyday besides study/homework time. I asked myself: How can I keep pursuing knowledge aside of school things?

I learnt to manage my time, set my daily/weekly tasks and control my time spending. This does hugely improve the efficiency of doing anything so that I won't be able to waste too much time on something that won't do any benefits.

Studying in university has widened my knowledge view that we are not only to code, but learnt there is many things to consider and to drive you to code. Studying is not for grades, but for how you smart use the knowledge to solve current issues. This is the most valuable thing you can get in university.

If you are also a student like me, I encourage you to treasure your every second on pursuing what you like. What got you here, where do you want to go, this would be your life direction. Grasp it, it is your golden age in your lifetime.

#What is my current plan?
I am currently interested on Deep Neural Network and Stochastic Computing, and just started to study them. Hope one day I can use them for something useful.
Sorting mails via IMAP - which language / packages?
Tags: imap, discuss
Published: 2018-06-28 13:28:43

---
title: Sorting mails via IMAP - which language / packages?
published: true
description: Which language / packages would you use to sort mails via IMAP?
tags: imap, discuss
---

# Background story
I have a couple of mailboxes to manage because I created dedicated mail accounts on my own domain for shopping, newsletters and other stuff to simplify the management and make accounts a bit more secure.
To manage all the mailboxes, I use Thunderbird on Windows clients and Evolution mail on linux clients.

# The idea
Even Thunderbird and EvolutionMail have good ways to filter messages, I want to be more in control and want to write a little script to define criteria to filter and move messages to folders. I already started such a project with Python and the IMAP library some time ago but lost the interest to handle all the cases with storing flags and stuff.

## Requirements defined
The following should be possible:
- Authenticate on IMAP Server via SSL
- Fetch available folders
- Fetch messages in folders
- Get stats for messages (flags, read/unread, junk, etc.)
- Set stats for messages (flags, read/unread, junk, etc.)
- Move messages to different (existing) folder

## Goal

The goal is to have as less effort as possible.

So which library / packages / approaches would you recommend for this type of project?
Over 1000 Followers
Tags: meta
Published: 2018-06-28 13:09:15

---
title: Over 1000 Followers
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/l3pc137r39ozre3xh2em.jpeg
description: 
tags: meta
---

_[Cover image by Andy2Boyz on Flickr](https://www.flickr.com/photos/andy2boyz/)_

So it finally happend, I got __over 1000 followers__ here on dev.to :)

__Thank you for your interest in my articles!__

When I started blogging last year, I didn't think anyone would be interested at all, haha. Like, writing about JavaScript? Everyone can do that. Also, I'm not a native speaker, they probably don't even understand what I'm saying.

Point seems to be, not many people have time or motivation to blog, but since many people use JavaScript, many people will at least read it. My last [discussion about unit tests](https://dev.to/kayis/what-are-the-alternatives-to-unit-tests-2jii) showed me that there can never be enough content about the basics.

It also helped me to become a better developer. I started to get a firmer grip on the concepts when trying to explain them and I also started to question my practices after discussions. I even wrote a bunch of unit tests for a project I work on right now and it already catched a few bugs. :)

I think I gotten better at writing English. Always had a _D_ in school, I was only worse at history, lol.

It also showed me that sometimes you have to work longer on things. Took over a year until someone asked me if I could write an article for their publication.

I also had an interview where they told me "Ah good that you blog, so I can add technical writing to your skills", didn't even know this was a skill somebody would care about.

Yesterday my React tutorial [React From Zero](https://github.com/kay-is/react-from-zero) also got a surge of stars, this is the _project_ I'm working the longest time. Sure I only did a few commits over the years, nothing fancy new happening, but I always tried to keep it _fresh_. Now it got hundreds of likes and even became the [second most starred tutorial on GitHub](https://blog.github.com/2018-03-20-top-10-courses-on-github/).

Few days ago I created a [Patreon](https://www.patreon.com/kayis) page, maybe somebody cares? I don't know much about how Patreon works.

__Anyway, thanks again!__
Teaser
Tags: personal
Published: 2018-10-17 18:45:53

---
title: Teaser
published: true
tags: #personal
canonical_url: https://distort-roving.blogspot.com/2018/06/teaser.html
---

One of the reasons I started this blog was because of the increasing chance that many of you will find yourself in a 'sandwich', later in life, if not now. The lengthening of the life span of many people on the planet, plus having children later - and add to the fact that statistics show that many millennials will not have the opportunity to ever own a home - the chances increase that you will find yourselves living with parents and children at the same time. There are ways to do this, and stay sane - I hope to give some ideas of what has worked and not worked for me, personally.

\*~\*~\*

  

It's been a time - so much has been going on that it feels like the day is over before anything productive can be done. The company my son works for has lost quite a few people - they pay a fairly low rate - and every year about this time, they end up needing to hire a new batch. Which is nice, in a way: he gets a larger paycheck. But, it also is more hours, in a highly stressful situation, and never knowing which facility he will be sent to, nor what situation he will find when he gets there.

  

Mom is repeatedly opening a small wound instead of letting it heal; insisting she is not doing it, as well as becoming less likely to either hear me speaking. These, of course, are a major source of stress and drama right now - and there's really not much that can be done about it. So I stay silent, unless it's urgent.

  

The good thing about being quiet: I keep it up from habit now. I get to see more of the wildlife in the area. I'm not the type of female to squeal at a bee, nor a spider. As long as we don't interact too much. And the local rabbits and squirrels accept me as a mostly-sedentary threat.  
Now, Pokemon in the neighborhood - that's another thing. :) But, we'll get back to that.