teleren/devto huggingface dataset:
Released new Travis CI API Go client, shuheiktgw/go-travis
Tags: showdev, go, devops
Published: 2018-11-05 01:35:46

---
title: Released new Travis CI API Go client, shuheiktgw/go-travis
published: true
description: I just released new Travis CI API Go client, shuheiktgw/go-travis!
tags: showdev,go,devops
---

I just released new Travis CI API client in Go, which is called [shuheiktgw/go-travis](https://github.com/shuheiktgw/go-travis), so let me introduce why I built it and how to use it.

## Why I started developing shuheiktgw/go-travis

Originally, I was just looking for a Travis CI API's client library in Go to kick a build from a CI environment, and found [Ableton/go-travis](https://github.com/Ableton/go-travis). Unfortunately, there are a few problems with the library.

- It does not seem to be maintained anymore.
- It uses API v2, whose latest version is v3.
- It only supports limited number of endpoints.

In short, I found a vacuum in the field of Travis CI API client in Go, and I was simply thrilled that I might be the first one to fill it. 

Also, I used Travis CI for my private projects a lot, so I thought building a Golang client library for them may be a good way to return a favor.

Thant's how I forked [Ableton/go-travis](https://github.com/Ableton/go-travis) and started developing [shuheiktgw/go-travis](https://github.com/shuheiktgw/go-travis).

## How it works

The way shuheiktgw/go-travis works is deadly simple. Its implementation is heavily inspired by [google/go-github](https://github.com/google/go-github) (as Ableton/go-travis does), so if you have used go-github, you can instantly understand how it works.

### Install

```bash
$ go get github.com/shuheiktgw/go-travis
```

### Usage

```go
client := travis.NewClient(travis.ApiComUrl, "TravisApiToken")

// List all the builds which belongs to the current user
_, err := client.Builds.List(context.Background(), nil)

```

`travis.NewClient` takes two arguments, `baseUrl` and `travisToken`. For `baseUrl`, you need to choose either `travis.ApiComUrl` or `travis.ApiOrgUrl`, so please read [URL section](https://github.com/shuheiktgw/go-travis#url).

`travisToken` can be empty, but then you probably need to authenticate via GitHub token. So please check out [Authentication section](https://github.com/shuheiktgw/go-travis#authentication) too for more detailed information on authentication.

## Features

### Supported features

- Supports all the endpoints of [Travis CI API v3](https://developer.travis-ci.com/)! :tada:

### Unsupported features

- Does not support [Eager loading](https://developer.travis-ci.com/eager-loading#eager%20loading) so far..

That's all, and thank you for reading the post! If you have chance to use [shuheiktgw/go-travis](https://github.com/shuheiktgw/go-travis), I'd love to hear your feedbacks. Also, contributions to the library are, of course, always welcomed!
Hoisting variables using the "var" keyword
Tags: javascript, variables, beginners
Published: 2018-11-05 00:13:59

---
title: Hoisting variables using the "var" keyword
published: true
description: 
tags: JavaScript, variables, beginners
---
If you read my most recent blog post, then you may have wondered why I forgot to discuss "var". That is because "var" is considered older syntax, but that doesn't mean it has become obsolete. It turns out that before JavaScript introduced ES6 syntax, "var" was the only way to declare variables. Most codebases probably still implement "var" and I believe it is important to understand what it does and how it works. 

"var" works similarly to "let" except "let" is block scoped, which means it only exists within the block of code that it was created in. Whenever we use "var" to declare a variable, that variable is now hoisted. You may ask what does it mean to be hoisted? Simply put, hoisting means that variable declaration occurs before execution. Here's an example if my explanation wasn't clear. 

![](https://thepracticaldev.s3.amazonaws.com/i/392jxfp19gjoenv70ipn.png)

So I made a function called "exampleVar" and it just has a for loop with nothing inside of it with a conditional if/else statement, which will log in the console based on whether or not "i" has been defined. If you notice, I have used var to declare "i" which will hoist that variable to be available inside of the containing function. In other words, the variable "i" is initialized at the top of "exampleVar", but its value is not assigned until the for loop. Now let's look at what happens if I use "let" instead of "var". 

![](https://thepracticaldev.s3.amazonaws.com/i/f4dta1tevdsca3kmkpkb.png)

As you can see, the functions are practically identical except for how I declare "i". That's about all you need to know about using "var" and hoisting in JavaScript. It is generally good practice to avoid using "var", since you can run into issues and bugs much easier than if you were using "const" or "let".
Nomad Couch: Find a tech nomad to share a place with you 
Tags: nomad, digitalnomad
Published: 2018-11-04 21:20:25

---
title: Nomad Couch: Find a tech nomad to share a place with you 
published: true
description: Nomad Couch is a platform to help people find peers to share dorms, houses and other kinds of housings together while being nomads and sharing different experiences.
tags: nomad, digital nomad
---


Hey Guys, My friend Guilherme is going to live in Thai for a year and he is searching for indie hacker/nomad interested in sharing a place with him for a week.

To help Digital Nomads find their couches (like a couch surfing app), we've created Nomad Couch, a online spreadsheet to find your next nomad family to stay with and enjoy new moments together.

Help us with your feedback - http://nomadcouch.xyz
#codevember - 4 - Sky
Tags: codevember, showdev
Published: 2018-11-04 21:34:38

---
title: #codevember - 4 - Sky
published: true
tags: codevember, showdev
canonical_url: https://nikol.as/blog/2018/11/codevember-4-sky/
---

A night sky is the first thing that occurred to me for the term sky. I also always wanted to try [particles.js](https://github.com/VincentGarreau/particles.js/).
{% codepen https://codepen.io/vintagesucks/pen/MzYjGx %}
Can anyone explain how to use Ajax to connect to a C# method? 
Published: 2018-11-04 21:18:41

---
title: Can anyone explain how to use Ajax to connect to a C# method? 
published: true
description: hey guys, I’ve been messing around with trying to make a post to a C# method using Ajax, however I can’t quite seem to get it working. Does anyone know of any good resources for this or has a good explanation? Would appreciate it greatly! Thank you! 
tags: 
---
Oceanic Next Bimbo — Minimalistic and modern looking fork of fantastic Oceanic theme
Tags: showdev, vscode, theme, syntax
Published: 2018-11-04 21:13:20

---
title: Oceanic Next Bimbo — Minimalistic and modern looking fork of fantastic Oceanic theme
published: true
description: 
tags: #showdev #vscode #theme #syntax
---

Oceanic Next Bimbo
![Oceanic Next Bimbo](https://raw.githubusercontent.com/ergenekonyigit/vscode-oceanic-next-bimbo-theme/master/images/bimbo.jpg)

### **macOS Mojave like dark mode** 💯

Ocenic Next Bimbo Dark
![Ocenic Next Bimbo Dark](https://thepracticaldev.s3.amazonaws.com/i/proabof70zjh2j9dz7rm.jpg)

### **Links**

**[VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=ergenekonyigit.oceanic-next-bimbo)**

{% github ergenekonyigit/vscode-oceanic-next-bimbo-theme %}
Yet Another User Interface Builder
Tags: javascript
Published: 2018-11-04 20:45:39

---
title: Yet Another User Interface Builder
published: true
description: JavaScript UI Constructor
tags: javascript
---

I've created yet another "framework" for building user interfaces, because there were things in existing ones that I didn't particularly like and I just didn't have the energy and motivation to learn more frameworks so I decided to roll my own. That was quite some time ago and since then I've created a bunch of projects (even professional) using it and I've gotten great pleasure working with it. I was curious to get other people's honest opinions though.

Can be found at https://github.com/luri/lib
I Was Invited in Google FooBar
Tags: google, discuss, askdev, suggestion
Published: 2018-11-04 17:10:19

---
title: I Was Invited in Google FooBar
published: true
description: 
tags: google , discuss , askdev , suggestion
---

Few Months Ago I Was Invited in Google FooBar via a weird style. 


I completed few of the tasks.

I found in Internet that Google FooBar is their secret recruitment platform.

I was wondering , **Google knows that I was 16 at that time _(I became 17 this October's 4th Day)_ , and I'm not supposed to get a job at that minor age but why they still Invited me?**
Enabling https on a bitnami prestashop instance with a custom domain
Tags: https, security, prestashop, bitnami
Published: 2018-11-04 17:08:00

---
title: Enabling https on a bitnami prestashop instance with a custom domain
published: true
description: Quick and simple tutorial to enable https on a bitnami prestashop instance
tags: https, security, prestashop, bitnami
---

This tutorial was written after wasting too much time trying to figure out how to enable https on a prestashop bitnami instance. 

These steps work for:
PrestaShop 1.7.4.3-0
Debian Linux 9 (HVM)
AWS EC2

<b> To enable SSL and automatically redirect to https on a Prestashop bitnami instance , follow these steps: </b>

1. Configure your custom domain
    Follow each step of this bitnami tutorial to set up your custom domain:
    https://docs.bitnami.com/aws/faq/configuration/configure-custom-domain/

2. Configure your prestashop to accept SSL
    This step might sound obvious, but if you're a prestashop nooby like me, it's never mentioned in any tutorial or solved issue as far as I know. As a result you'll encounter some redirection errors if you skip this step.
    To enable fix this problem, you need to <b>configure your prestashop to accept ssl</b>
    To do this, go in your prestashop admin (yourprestashopsite.com/administration) > Configure > Shop parameters > General
    In the general page, make sure that "Enable SSL" and "Enable SSL on all pages" are toggled to "YES".

3. Configure your apache to enable https support
    Follow this interactive bitnami tutorial to enable https support on bitnami:
    https://www.katacoda.com/bitnami/scenarios/configure-https
    I encourage you to go with the Let's encrypt SSL certificate: it's free and easy to install. Bitnami provides a script to generate it as well as a cron job to auto-update your certificates when they expire.

Et voila, you should now be automatically redirected to your domain name <b>with https enabled </b>.

Hope this helps!
I'm about to end college this year, what should be my next step?
Tags: help
Published: 2018-11-04 16:38:20

---
title: I'm about to end college this year, what should be my next step?
published: true
tags: help
---

Hi, I'm a student of Informatics Engineering in Spain, and as in a few months my next step needs to come, I'm a little worried about which one is the best.

For some context, I'm currently in a job doing mostly Java for 14h to keep up with the college assignments. The thing is that I'm getting a little into Data Science because I find it really interesting and makes my previous degree in economics valuable as it was statistics intensive. 

So my question is: should I go straight into a masters degree in Data Science to build my career around that as soon as possible?, or should I try to get more experience in a job even if it's not related to that?.
Neptune (Gremlin) Local Dev Setup
Tags: graphdb, development, local, neptune
Published: 2018-11-04 16:36:10

---
title: Neptune (Gremlin) Local Dev Setup
published: true
description: 
tags: graph db, development, local, neptune
canonical_url: http://www.designfrontier.net/neptune-(gremlin)-local-dev-setup
---

I am playing with some graph databases right now, for a fun project I may write about later. When I first started out I was using Neo4j, which has an excellent local development story, a lovely web based UI for visualizing your data and CYPHER, which is a pretty easy to grasp graph language.

All great marks in its favor.

However, since the rest of the project was going to be a series of lambdas and api gateways, and it was going to be hosted in AWS I got curious about Neptune. Oh, and because I know less about scaling and maintaining graph DB infrastructure than I would like. Using Neptune, a hosted graph DB, freed me from lots of the infrastructure knowledge for now.

But there was seemingly no good local development story for it.

Then I remembered that in the world of Graph DBs the thing that matters most is finding a match for the query language your target DB uses.

Neptune uses Gremlin as its primary query language which happens to be the primary language of Apache TinkerPop. So I got a docker based instance of TinkerPop running. That got me the DB server at least. Let me tell you, I bashed my head on gremlin for a lot longer than I’d like to admit. You may do better than me, but take time to read the docs and intro. The querying concepts are likely different than what you’ve dealt with in the past. And gremlin feels more alien than CYPHER does.

So the second thing that I wanted was a way to easily visualize the data I was writing into the graph. It’s handy when you are trying to figure out how the query language works to be able to see if your query returns nothing because there is nothing, or if you’ve written it wrong.

In looking for what to use I stumbled on [https://github.com/bricaud/graphexp](https://github.com/bricaud/graphexp) which provides a simple UI for gremlin based DBs. Not the most beautiful in the world, but it is functional and lets you see everything I was looking for quickly.

Wiring all this up was pretty straightforward with docker-compose. My docker file for graphexp and docker-compose for the whole thing [are on github](https://github.com/designfrontier/gremlin-local) for easy reuse.

Once I had it running locally it started to be a matter of reading through the [TinkerPop gremlin documentation](http://tinkerpop.apache.org/docs/current). There is a lot of it. But it is reasonably good. I also started reading [Kevin Lawrence’s Practical Gremlin](http://kelvinlawrence.net/book/Gremlin-Graph-Guide.pdf) which was very helpful.

Hopefully some of this helps you on your way to using gremlin based graph databases!
The Depression and Anxiety Paradox
Tags: discuss
Published: 2018-11-04 16:19:14

---
title: The Depression and Anxiety Paradox
published: true
description: The first step to recovery in a world that just doesn't get it
tags: #discuss
---
I posted this is as a comment to another discussion before realizing the thread was over a year old. But, seeing as I feel it could help folks, it's a post now. I really hope it can help some of you or at least open up discussion on the topic:

Anxiety and depression are old time friends to me. But the kind of friends that let themselves into your house at 3 in the morning, pissed drunk, to raid your fridge, then get mad when you almost shoot one of them because you think they're a thief.

I am High Functioning Autistic, suffer from Bipolar disorder, and have been in some accidents in life that have me dealing with chronic pain. Also, my childhood life was spent paying for my "defects" with um...not so nice treatment by one of my parents. It wasn't until I got married 8 years ago that I found out self punishment was not an appropriate way to express guilt!

Suffice to say, these issues make life extremely difficult. HOWEVER, this comment will not be a pity party for me. I will say though, that a huge key is understanding your illness. Which it is. Those who feel that chronic depression is just "being sad a lot" and you should just "think positively", is unfamiliar with the sensation of depression. Another point is to realize that, while anxiety is a feeling we all know, clinical Anxiety (notice the capital A) is an illness that needs treatment. An illness that is crippling, miserable, and will take you out at the knees some days even if you do absolutely everything right.

Nobody says that people with type 1 diabetes just need "a kick in the ass" to get going. Why? Because they have to jab themselves with needles all the time to not...you know...die. what causes diabetes? The pancreas does not produce enough insulin on its own. What causes Depression and Anxiety? The brain does not produce enough feel good chemicals, or produces too much adrenaline. So, both have medical causes and while they are technically in your head, they are actually in your brain. Big difference.

Being aware that you are not broken or lazy or stupid or whatever other demeaning thing people say you are is key.

I would say first though, before anything else can help you, you need to understand that there is nothing wrong with you. This world is built for people who are wired differently than you. Those folks are in the majority so they get consideration. But, just like if there was a race of people on this Planet that could only see in the UV light spectrum, we are a race unto ourselves that perceives the world in a fundamentally different way than most. The fact that they do not, and in many way can not, relate, is not your fault. Acknowledge that you are wired differently, then start learning how to approach a world designed for people that are not wired at all the same way you are.
Tips for a guy who wants to learn python    
Tags: python, webdev, tips
Published: 2018-11-04 16:14:05

---
title: Tips for a guy who wants to learn python    
published: true
description: 
tags: python, webdevelopment, tips
---
Okay, so to start, I already googled a lot of tips and actually started to learn. I just wanted more and what better community to ask than a community for devs, right? 

Why this community though? well, I have been following the facebook page and read a lot posts here. And I truly love the content I found here.


Also, a little background on me. I already have experience in coding in web development using c#,javascript and php (a few years now) but I also want to try web development using python. 

Another reason why I want to learn python is to eventually try machine learning since I have always been interested and felt like this is the time to try since I feel like coding at work has become to safe and is sometimes boring me.


Thanks by the way to the guys who will help. I really appreciate it.
My First Arch Installation Script
Tags: archlinux, python, script, application
Published: 2018-11-04 15:25:48

---
title: My First Arch Installation Script
published: true
description: Installation Script for ArchLinux
tags: ArchLinux, Python, Script, Application
---

Hi Everyone.

I have just released my first Linux Installation script for Arch, using Python. It has an interactive menu (and is heavily in development, so please bare with me).

I would love feedback!

LINK : https://github.com/RavenTheDev/SetupArch
Raspbian: Enlarge Screen Boundaries Via Overscan Settings
Tags: raspbian, desktop, screen, overscan
Published: 2018-11-04 14:41:36

---
title: Raspbian: Enlarge Screen Boundaries Via Overscan Settings
published: true
description: This is a tiny tip about Raspbian desktop. Raspbian sometimes output unlucky black gaps between edges of the physical screen and those of the logical desktop or console in case when it's connected with HDMI to the screen. I wanted to use screen as possible as widely.
tags: raspbian, desktop, screen, overscan
---

This is a tiny tip about [Raspbian](https://www.raspberrypi.org/) [desktop](https://www.raspberrypi.org/downloads/raspbian/) adjustment.


### A Problem

Raspbian sometimes output unlucky black gaps between edges of the physical screen and those of the logical desktop or console in case when it's connected with HDMI to the screen.

I wanted to use screen as possible as widely ☹



### Before: Unlucky Gaps

![before](https://thepracticaldev.s3.amazonaws.com/i/ll03p5drca40lmt1bfik.jpg)



It is caused by "overscan".
Overscan options are sometimes set by default in Raspbian installers.



According to [Wikipedia](https://en.wikipedia.org/wiki/Overscan), overscan is:

> Overscan is a behaviour in certain television sets, in which part of the input picture is shown outside of the visible bounds of the screen. It exists because cathode-ray tube (CRT) television sets from the 1930s through to the early 2000s were highly variable in how the video image was positioned within the borders of the screen. It then became common practice to have video signals with black edges around the picture, which the television was meant to discard in this way.



And it is fixed by editing <strong>`/boot/config.txt`</strong>:

```config:/boot/config.txt
disable_overscan=1
```

*\* Note: When this line exists and is commented out, remove commenting "#". When it doesn't exist, add this line.*

*\* Note: Alternatively, it's possible to adjust settings of specified directions by customizing these in the same file:*

```config
#overscan_left=10
#overscan_right=10
#overscan_top=15
#overscan_bottom=15
```

And reboot:

```shell-session
$ sudo reboot
```


### After: Lucky Harmony

![after](https://thepracticaldev.s3.amazonaws.com/i/5sdszh03vgo3ugr5yi10.jpg)



Yep 😃
Settings Sync Paid Issues - Fix & Earn - Nov 18
Tags: opensource, typescript, vscode, contributorswanted
Published: 2018-11-04 12:00:33


### Total Deposit : $576


#### Fix issues and earn money.

Previously I wrote an article for guys who are willing to contribute on Open Source that how can anyone contribute in [Visual Studio Code Settings Sync](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync) that only required skills are Node JS / TypeScript.

{% link https://dev.to/shanalikhan/settings-sync-needs-your-contribution-165l %}


Some issues that are opened in the repository are paid one. For details of each issue open in GitHub.

##### 1. Feature request : add a login(account) option to sync all settings using account

Currently standing at **$316**.

a. **[GitHub Issue](https://github.com/shanalikhan/code-settings-sync/issues/506)**
b. **[IssueHunt Bounty Link](https://issuehunt.io/repos/47984369/issues/506)**


##### 2. Suggestion: Allow upload to repository

Currently standing at **$200**.

a. **[GitHub Issue](https://github.com/shanalikhan/code-settings-sync/issues/413)**
b. **[IssueHunt Bounty Link](https://issuehunt.io/repos/47984369/issues/413)**



##### 3. Compare Local & Gist Settings | Show & upload only changes

Currently standing at **$20**.

a. **[GitHub Issue](https://github.com/shanalikhan/code-settings-sync/issues/508)**
b. **[IssueHunt Bounty Link](https://issuehunt.io/repos/47984369/issues/508)**


##### 4. Long startup activation time on the first start

Currently standing at **$40**.
Webpack integration can help you fixing it.

a. **[GitHub Issue](https://github.com/shanalikhan/code-settings-sync/issues/656)**
b. **[IssueHunt Bounty Link](https://issuehunt.io/repos/47984369/issues/656)**


#### How to Earn

If you want to work, send me Pull Request with time frame.
Payment will be done automatically when your PR is accepted.