teleren/devto huggingface dataset:
Hi, I'm Mohit Rajput
Tags: java, kotlin, android, coding
Published: 2017-04-19 06:52:50

---
title: Hi, I'm Mohit Rajput
published: true
description: My introduction post
cover_image: 
tags: #java #kotlin #android #coding
---

I have been coding for three years.

You can find me on *Twitter* as [@MohitRajput987](https://twitter.com/MohitRajput987)

You can find me on *Github* as [@MohitRajput987](https://github.com/mohitrajput987)

I live in India.

I work for [Our Techno Bytes](http://blogs.ourtechnobytes.com/)

I mostly work on Android, Kotlin, MVVM, Room database, Coroutines and various Jetpack frameworks.

I am currently learning more about Turing Machine & Automata.

Nice to meet you.
Data Science: Data Visualization
Published: 2017-04-19 13:16:39

---
title: "Data Science: Data Visualization"
published: true
description: 
tags: 
---
Im a software developer with a growing interest in data science. I have read a bit about data visualization but loving building graphs based on data. (Not that I do not like reading). I just have a few questions.

Well for those who work in this space, what happens in this data visualization space?

Is data visualization just another step that happens after collecting and analyzing results?
Hi, I'm Daniel
Tags: introductions
Published: 2017-04-19 09:21:13

---
title: Hi, I'm Daniel
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 9 years.

You can find me on Twitter as [@danieIsarmiento](https://twitter.com/danieIsarmiento), on GitHub as [@danielsto](https://github.com/danielsto) and in [my blog](https://danielsarmiento.dev).

I lived in Gran Canaria (Spain), Madrid (Spain), Virginia (USA) and now I'm moving to Barcelona (Spain)

I am a CS and Business graduate with a 2 years of combined experience in consulting, academic research and software development.

I mostly program in these languages: Python, Java, C/C++, HTML/CSS/Javascript.

I am currently learning more about Machine Learning, Computer Vision and Web Development.

Nice to meet you.
Read The F’ing Error Codes Bro!
Tags: javascript, programming
Published: 2018-09-24 07:20:06

---
title: Read The F’ing Error Codes Bro!
published: true
tags: javascript,programming
canonical_url: 
---

_Disclaimer: This post is going to be pretty short as it’s more of a rant than an actual post._

So, one thing everyone knows about developers is that we all run into errors, bugs and problems with our codes a lot. Like someone said, as a developer, you spend 80% of your time fixing bugs and errors and I’ve come to almost believe that statement.

As we all know there are mostly two types of errors you would always come across as a developer, namely:

1. Syntax Errors: Where there is an error with the syntax of your code and it throws errors telling you where the error originated from and what’s causing it. (Emphasis on the ‘telling you’)
2. Logical Errors: Where the program runs successfully without throwing any errors but it does not give the desired results. (These are errors you always want to be extra careful of)

I will be ranting more about syntax errors today as, in my little (not up to 6 months) career in tech, I’ve already grown tired of peeps coming across syntax errors in their code and not knowing how to solve it, like — the error code and the big G exists for a reason bruh.

When you come across a syntax error, your program does you well by giving you a run down of what’s causing the error, so kindly read through it and try fixing it by following through with what the error code tells you. The error code almost always points to what’s causing the error.

In the case where you don’t know how to solve the error, the big G is always there to help you out. There’s always a probability someone has encountered your problem and they have documented how they got to solve the problem, that should also provide a pointer on the solution to the problem for you.

Most times, when you get to ask people the solution to an error you are getting and they don’t have a ready response, they would also have to consult the big G before getting back to you.

So, to put a stop to my rants I would say —

**READ THE F’ING ERROR CODES BRUH!**
Hi, I'm Alex Olson
Tags: introductions
Published: 2017-04-19 08:38:47

---
title: Hi, I'm Alex Olson
published: true
description: Moin!
cover_image: https://www.goodfreephotos.com/albums/germany/hamburg/panorama-of-hamburg-skyline-at-night.jpg
tags: introductions
---

Hello all!

I'm a longtime lurker of the practical dev. Decided it was finally time to officially join the community.

I'm originally from the American midwest, but moved to Hamburg, Germany last year. I work full-time as a software engineer on enterprise collaboration/communication software.

When I'm not working, I'm usually plucking around on my guitar, exploring mountains and forests, or just chilling with friends and family.
Hi, I'm Alexa Tuskey
Tags: introductions
Published: 2017-04-19 03:29:10

---
title: Hi, I'm Alexa Tuskey
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for < 1 year.

You can find me on Twitter as [@LaserTuskey](https://twitter.com/LaserTuskey)

I live in Chicago.

I work for One North Interactive.

I mostly program in these languages: HTML, CSS, Javascript.

I am currently learning more about...everything.

Nice to meet you.
Just use what you've got
Tags: motivation, creativity, justdoit, getstarted
Published: 2017-04-19 02:10:59

---
title: Just use what you've got
published: true
description: 
tags: motivation, creativity, just do it, get started
---

![Bowl of soup with a hand holding a kid's spoon](https://thepracticaldev.s3.amazonaws.com/i/g0g2tm4k2qvoz029fc7q.jpg)

This afternoon when I prepared myself a bowl of my wife’s awesome, seafood soup, I opened our silverware drawer and didn’t see any spoons.

Without really thinking I grabbed one of my kids’ spoons, sat down to eat and took the photo above. Why? Because it reminded me that often, people don’t care about how you made something, they only care about what you made. Just like my stomach doesn’t care how the soup would get in there, it just cares that the food gets there.

🙋 I’m definitely guilty of doing this many times in the past. I get a cool idea, decide to make it, then get caught up on what tools I should use to make it. This often leads to too much time spent on research which then leads to a loss of motivation. Instead, I should just take a moment to assess what I’ve already got and just get going. After all, the process of actually making and putting the end result out into the world is more rewarding then researching and acquiring the “right tools.

My brain thought it was a silly idea that I used my kids’ spoon but my stomach could care less. It’s full and it is happy.

***

Originally posted on [Michael Lee](https://michaelsoolee.com/what-you-got/)
Add file/directory auto-completion to user input in Bash
Tags: bash, guide
Published: 2019-08-29 09:08:32

---
title: Add file/directory auto-completion to user input in Bash
published: true
tags: Bash,Guide
canonical_url: https://anthonybruno.dev/2017/04/19/Add-File-Directory-Completion-To-Input-In-Bash.html
---

The most common way to get input from a user in a Bash script is to use the read function like so:

```
#!/bin/bash
echo "Type a word and press enter"
read INPUT
echo "Your word was $INPUT"
```

However, this is not the best method to use when you want the user to input a directory path. This is because pressing `tab` enters a literal tab instead of auto-completing the directory path like what happens in the terminal.

To add directory auto-completion to your bash script, all you have to do is add the `-e` flag to the read function like so:

```
#!/bin/bash
echo "Type a file or directory (use tab to autocomplete path!) and press enter"
read -e INPUT
echo "Your path was $INPUT"
```
Hi, I'm Matt Phillips
Tags: introductions
Published: 2017-04-18 23:55:31

---
title: Hi, I'm Matt Phillips
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 10 years.

You can find me on GitHub as [programatt](https://github.com/programatt)

I live in Iowa.

I work for myself

I mostly program in these languages: C#,javascript,python.

I am currently learning more about EVERYTHING.

Nice to meet you.
Hi, I'm Julian Soro
Tags: introductions
Published: 2017-04-18 22:33:43

---
title: Hi, I'm Julian Soro
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding professionally since 2013.

You can find me on GitHub as [julianfresco](https://github.com/julianfresco)

I live in Los Angeles, CA.

I mostly program in these languages: JavaScript ES6+, NodeJS.

I am interested in doing more functional programming.
Hi, I'm Greg Rakozy
Tags: introductions
Published: 2017-04-18 21:41:31

---
title: Hi, I'm Greg Rakozy
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 1 year.

You can find me on Twitter as [@grakozy](https://twitter.com/grakozy)

I live in Utah.

I work for NUVI

I mostly program in these languages: Angular, Node.

I am currently learning more about Typescript.

Nice to meet you.
No more DEBUG/INFO/WARN/ERROR logging
Tags: logging
Published: 2017-04-18 21:19:10

---
title: No more DEBUG/INFO/WARN/ERROR logging
published: true
description: Choosing the correct log level shouldn't be a chore
tags: logging
cover_image: 
canonical_url: http://labs.ig.com/logging-level-wrong-abstraction
---

*This article originally appeared on [IG's blog](http://labs.ig.com/logging-level-wrong-abstraction)*

So you just wrote another try/catch block and again you start wondering: should I log this exception as an ERROR or a WARN? Or perhaps you wrote another one of those conditional branches that “should never happen” and again you start wondering: what log level should I use for this “impossible” case?

You are asking the wrong question.

These questions are at the wrong abstraction level as they do not help you to come up with an answer.â€‹ Instead you have to look at this question from the perspective of how the log statement will be used.

At IG we have generally come to the following log level conventions:

* DEBUG: information that is useful during development. Usually very chatty, and will not show in production.
* INFO: information you will need to debug production issues.
* WARN: someone in the team will have to investigate what happened, but it can wait until tomorrow.
* ERROR: Oh-oh, call the fireman! This needs to be investigated now!

With this usage in mind, the log level question becomes: “Do I want to wake up in the middle of the night to investigate this, or can it wait until tomorrow morning?”, which is very concrete and a question that even your Business Manager/Production Owner should be able to answer.

Of course this convention needs to be taught to new team members, and constantly reminded to existing ones. And as much as we love wikis, code reviews and email reminders, having to do the mental mapping from the log level to how the log statement is going to be used is not a natural one, and it is going to be forgotten.

So, after one of those code reviews where I asked several times “Why do you want to wake me up in the middle of the night for this exception?” I decided that we would switch the logger interface from SLF4J to an experimental “IGLogger” one which looks like this:

![logger](https://labs.ig.com/sites/default/files/iglogger.png)

The results were interesting:

* Laughs when reading “wakeMeInTheMiddleOfTheNight”
* Extra care when using “wakeMeInTheMiddleOfTheNight”
* Less mental gymnastics when logging
* Way easier to make the correct logging choice
* Nothing to explain to new team members, nothing to remind to the existing ones
* Adopted by developers’ choice on the rest of the team’s projects

And last, but not least, we got more sleep: the number of ERROR logs was reduced to 0, not because nobody could be bothered to type “wakeMeInTheMiddleOfTheNight”, but because this service was an offline, non-critical one, so any issue could wait for the next day.

Log levels are the wrong level of abstraction.
Using Swagger to access your secured api
Published: 2019-10-27 09:36:49

---
title: Using Swagger to access your secured api
published: true
tags: 
canonical_url: 
---

Swagger, http://swagger.io/ is a great way make your api accessible. Not only documentation is provided, but your users, your co-developers or your self can try out your api. But what if your API is secured using a token based security system like webtokens?

Well, it’s quite easy to modify your swagger frontend to allow adding any token to requests.

First somewhere in your swagger template file, add the following:

```
<form onsubmit="addApiKeyAuthorization()">
                <div class="input">
                    <input placeholder="access_token" id="input_apiKey" name="input_apiKey" type="text">
                    <input type="submit" value="Authenticate"/>
                </div>
            </form>
```

Then in the header add the following Javascript

```
<script>
    function addApiKeyAuthorization(){
        var apiKey = getUrlVars().input_apiKey;

        if (apiKey && apiKey.trim() != "") {
            console.log("initialzing oauth via api-key")
            var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("Authorization", "Bearer " + apiKey, "header");
            window.swaggerUi.api.clientAuthorizations.add("bearer", apiKeyAuth );
            //For clarity, also add in the input field
            $('#input_apiKey')[0].value=apiKey
        }
    }

</script>
```
Hi, I'm ΔNDRΞW
Tags: introductions
Published: 2017-04-18 20:24:17

---
title: Hi, I'm ΔNDRΞW 
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 10 years, 5 years worth of screwing around, 5 years worth of career-minded learning.

You can find me on Twitter as [@reesecode](https://twitter.com/reesecode)

I live in Bedford, TX, USA.

I work for LHM

I mostly program in these languages: Javascript, Ruby on Rails, HTML, CSS.

I am currently learning more about: async/await and when to use arrow functions.

Nice to meet you ^-^
Hi, I'm Horst
Tags: introductions
Published: 2017-04-18 17:53:37

---
title: Hi, I'm Horst
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding with PHP for 12+ years.

You can find me on GitHub as [horst-n](https://github.com/horst-n)

I mostly program in these languages: PHP, SCSS, JS.

I am currently learning more about serious JS programming (ES6, TDD, etc).

Nice to meet you.
Open the GitHub project page of a repo from Terminal
Tags: bash, github, macos, tips
Published: 2017-04-18 15:51:56

---
title: Open the GitHub project page of a repo from Terminal
published: true
description: Harnessing the power of bash functions for better productivity
tags: bash, github, macos, tips
---

I find myself frequently needing to go to the homepage of the projects I contribute to on GitHub. I have bookmarked the important ones, and a quick Google search of the project name and "github.com" *should* take me to the right place, but that can be time-consuming and requires a non-negligible amount of context switching. I decided to automate this process so as to not interrupt my workflow.

To do so, I wrote up a quick **bash function** to perform the automation, placed it in my `.bashrc` file, and assigned it to the alias `github`:

```bash
alias github=GitHub

function GitHub()
{
    if [ ! -d .git ] ; 
        then echo "ERROR: This isnt a git directory" && return false; 
    fi
    git_url=`git config --get remote.origin.url`
    if [[ $git_url != https://github* ]] ;
        then echo "ERROR: Remote origin is invalid" && return false;
    fi
    url=${git_url%.git}
    open $url
}
```

Here's what that code is doing, in layman's terms:
* First, we check to see if we are at the root of a git repository by checking for the existence of a `.git/` directory.
* Next, we get the `remote.origin.url` property from the `git config`. This is the URL of the remote git repo with which the project is associated. For GitHub projects, this takes the form: `https://github.com/[USERNAME]/[PROJECT_NAME].git`
* If the `remote.origin.url` is not from GitHub, we can't guarantee our ability to open it, and throw an error.
* Finally, we remove `.git` from the URL and use the `open` command in macOS to open a browser at that given URL.

Now, any time I'm in the base directory of a project cloned from GitHub, I can open its project page straight from Terminal by running `github`.

This is my first time really exploring the power of incorporating bash functions and aliases into my workflow. I'm now actively looking out for tasks I perform regularly that could be automated, and will try to create bash functions for them as needed.

[This code snippet](https://github.com/ShaydeNofziger/development_scripts/blob/master/bash/openGitHubProject.sh) and another I've created to [get the size of the working directory](https://github.com/ShaydeNofziger/development_scripts/blob/master/bash/getDirectorySize.sh) are on GitHub, and I plan to publish all the future ones I create as well! Feel free to contribute and share your own!

Some questions to inspire discussion:
* What actions do developers perform regularly that could benefit from automation?

* Have you used bash functions to automate your workflow? If so, feel free to share examples so others may learn! If not, could you see yourself using them in the future?
Hi, I'm Dr Janet Bastiman
Tags: introductions
Published: 2017-04-18 09:12:17

---
title: Hi, I'm Dr Janet Bastiman
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding since 1986... starting as we all seemed to in those days with BASIC then Fortran, Perl, C, VB, PHP, [all].net, javascript and now Python

You can find me on Twitter as [@Yssybyl](https://twitter.com/Yssybyl)

I live just outside of London, which is where I work.

I mostly program in python (3) at the moment, using tensorflow to create deep learning models.

I am currently learning more about message queues and scalable architecture.

Nice to meet you.
Hi, I'm MQTT Buddy
Tags: introductions
Published: 2017-04-18 08:13:42

---
title: Hi, I'm MQTT Buddy
published: true
description: My introduction post
cover_image: https://thepracticaldev.s3.amazonaws.com/i/lefzjr95voghk1zxxqtb.png
tags: introductions
---

You can find me on Twitter as [@x_mqtt](https://twitter.com/x_mqtt)

I am your friend in the IoT World. 
MQTT Buddy is a new MQTT Client for Android, iOS and Windows Mobile users. It's available in English, Russian and Chinese languages.

It garhers the best features of existing clients to uplevel your IoT experience.

Release of MQTT Buddy is coming soon! Stay tuned!
Hi, I'm AndrÃ©s Rojano
Tags: introductions
Published: 2017-04-18 07:51:27

---
title: Hi, I'm AndrÃ©s Rojano
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 3 years.
You can find me on GitHub as [androiz](https://github.com/androiz)

I live in Seville.
I work for Ayesa AT

I mostly program in these languages: Python, JavaScript.
I am currently learning more about frameworks such as vue.js and reactJS.

Nice to meet you.
Hi, I'm Chad
Tags: introductions
Published: 2017-04-18 06:37:59

---
title: Hi, I'm Chad
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 4 years.

You can find me on GitHub as [chadlagore](https://github.com/chadlagore)

I live in Vancouver.

I work for Mobify

I mostly program in these languages: Python, C, Scala

I am currently learning more about real-time pipelines.

Nice to meet you.
Hi, I'm Jason Solis
Tags: introductions
Published: 2017-04-18 00:23:38

---
title: Hi, I'm Jason Solis
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for 20 years.

You can find me on Twitter as [@jasonsolis](https://twitter.com/jasonsolis)

I live in Trumbull CT.

I work for Priceline 

I mostly program in these languages: Javascript and python.

I am currently learning more about react and ReactNative.

Nice to meet you.
Hi, I'm Ash
Tags: introductions
Published: 2017-04-17 23:35:09

---
title: Hi, I'm Ash
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for [0.5] year.

You can find me on Twitter as [@AshDowdy](https://twitter.com/AshDowdy)

I live in [Charleston].

I work for [The Iron Yard]

I mostly program in these languages: [HTML, CSS, and some PHP].

I am currently learning more about [Wordpress].

Nice to meet you.
Hi, I'm maubuso
Tags: introductions
Published: 2017-04-17 21:57:17

---
title: Hi, I'm maubuso
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding for [number] years.

You can find me on GitHub as [maubuso](https://github.com/maubuso)

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
Automation of the Promotion of my Blog
Published: 2022-05-16 21:22:24

---
title: Automation of the Promotion of my Blog
published: true
date: 2017-04-17 20:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2017/automation-promotion/
---

I would like to automate the promotion of this blog. Currently to promote this blog on social media I use a few different services. ![](https://storageaccountblog9f5d.blob.core.windows.net/blazor/wp-content/uploads/2017/04/img-buffer-illustration-hub-960@2x.png?w=1780&ssl=1)

Buffer ([buffer.com](https://buffer.com)) is a service that allows you to schedule updates to the main social media channels (Facebook, Twitter, LinkedIn and Google+)

IFTTT or If This Then That ([ifttt.com](https://ifttt.com)) is a service that allows you to connect different online services. You can send an email when a specific event occurs in your calendar for example.

I have been using a combination of these services to share to social media some of my past blog posts. I then add to my calendar details of my blog posts. Then I use IFTTT to add the event to Buffer, and then buffer tweets on a schedule.

This works great however it is a manual process to add my posts to my calendar. I have been using a spreadsheet to help me generate an ics calendar file which I import into my google calendar. There must be a better way of doing this.

I have written some code that reads the RSS feed of my blog and then shares that to Buffer using the Buffer API. The code I am creating is far from finished however I am trying to use the concepts of clean code to make it as flexible as possible.

I have an interface called ISocial which my buffer code implements, but it would be easy to add a class that implements the same interface but uses the twitter or facebook APIs. My code reads from a specific WordPress RSS feed, but it should be easy enough to adapt to read from a SQL database or any other data source.

I am currently unsure what kind of interface to use for this application. I could create a web page that controls the functionality, or maybe just a windows application, or maybe both of these are complicating things and all I need is just a console application that could be added as a scheduled task.