teleren/devto huggingface dataset:
What do you folks do for a side-hustle?
Tags: discuss
Published: 2017-11-20 14:09:13

---
title: "What do you folks do for a side-hustle?"
published: true
tags: discuss
---

Hey all, I've been thinking about starting a side-hustle for myself lately, but I don't really know where to start! I'm currently working full time, but I'd like to do something on the side as well. What kinds of things are you all doing for your side-hustle? I've done freelancing in the past and always found it more trouble than it's worth if not doing it full time.
How do you approach when you are learning new language ?
Tags: discuss, go, learning, beginners
Published: 2017-11-20 13:37:03

---
title: "How do you approach when you are learning new language ?"
published: true
description: 
tags: discussion, go, learning, beginner
---

I usually go through the basic examples in the beginning and go through the language's documentation to see what the methods are doing.

> How do you approach when you are learning the new language?
> How effective have they been for you ?
Teach myself Go through a side project - Hacker News on Terminal
Tags: go
Published: 2017-11-20 14:28:18

---
title: "Teach myself Go through a side project - Hacker News on Terminal"
published: true
tags: go
canonical_url: 
description: I have had a pretty bad track record at learning new programming language by myself, at consistently writing a blog, at continuing working on (or being excited about) the side project I’m doing.
---

I have had a pretty bad track record at learning new programming language by myself, at consistently writing a blog, at continuing working on (or being excited about) the side project I’m doing. That sounds like having a bad track record at pretty much everything that matters in the world of open source and programming. 😞

It took me really long to learn Python. I remember starting from `print Hello
World` a number of times because it had been really long since I last wrote anything in Python. I’ve been bad at coming up with side project ideas or contributing to many open source projects. It wasn’t until my job required me to write Python full time that I started getting good at it. 😏

Same goes for Go. I have been willing to learn it since mid 2015. Coincidentally, the job change I made around the time required me to learn Go along the way. But I left that job too soon and moved back into the Python world. I did contribute [little something](https://github.com/minishift/minishift/pull/813) to a Go based project that I like. And, secretly, I feel happy when every release announcement of the project requires a mention about the command I contributed. But that’s pretty much it.

So what the heck am I gonna do now? Well, turns out I’m going to try yet another time. 😄

Recently I came across this tweet which resonated with me in opposite way of how it was intended to. 😉:

{% tweet 931316839761580032 %}

We all have some spare time and I figured I could use some of it to write something in Go.

So, I planned to do a tiny side project that’s not going to be of much use to anyone except me. But, it would help me learn Go - the growth I’ve wished to make to my profile. This time, I’m going to try and blog as I make progress on the project. That way, I might actually end up making a helpful contribution to myself.

The project’s hosted on [GitHub](https://github.com/dharmit/hnot) and, at the moment, has nothing but a short README of planned features.

Hope to take this to a closure. Best of luck to me! 😉
802.11ac controller Realtek 8822BU on Linux 4.12 or later
Tags: linux, driver
Published: 2017-11-18 12:25:08

---
title: "802.11ac controller Realtek 8822BU on Linux 4.12 or later"
published: true
description: {
"Using 802.11ac USB adopter EW-7822ULC on latest Linux"
}
tags: linux, driver
---

Edimax EW-7822ULC uses Realtek 8822BU controller and it supports Linux. But the official driver support kernel up to 4.11. So I've ported to Linux-4.12, 4.13 and 4.14 on [GitHub](https://github.com/FomalhautWeisszwerg/rtl8822bu)


# Preparing

Before building, you have to install some packages.

On Debian and Ubuntu, installing packages via apt:

```sh
$ sudo apt install dpkg-dev
$ sudo apt install build-essential libc6-dev linux-headers-`dpkg-architecture -qDEB_HOST_ARCH`
```

If you prefer to use Git to retrieve source, you have to install Git:

```sh
$ sudo apt install git
```

# Build and install

## via Git

Simply clone, checkout, build and install.

```
$ git clone https://github.com/FomalhautWeisszwerg/rtl8822bu.git
$ cd rtl8822bu
$ make
$ sudo make install
```

Note, the branch "master" means "basically works" and the branch "develop" means "unstable or buggy".

## via tarball

If you would rather not clone repository, you can retrieve source using `curl` or `wget`.

```
$ curl -LO https://github.com/FomalhautWeisszwerg/rtl8822bu/archive/release-for-linux-4.14.tar.gz
$ tar -xf release-for-linux-4.14.tar.gz
$ cd rtl8822bu-release-for-linux-4.14/
$ make
$ sudo make install
```

# Settings

This driver works with wpa_supplicant by using the "nl80211" driver. On "Wicd Network Manager", set preferences like following screenshot.

<img src="https://thepracticaldev.s3.amazonaws.com/i/zrn5lq2v69z43g9p3x80.png" height="317" width="425">

Enjoy!
Juggling with asterisks(*) in C
Tags: c, pointer, fun
Published: 2017-11-20 09:19:40

---
title: Juggling with asterisks(*) in C
published: true
description: There are septuple pointers in practical use
tags: C, pointer, fun
---

To write C program, we can't avoid usage of the "Pointers" to manage null-terminated strigs, linked list structures, multidimensional arrays, etc.  For instance, you might use double pointer -- pointer to pointer to type `T`, in short `T**` -- to handle dynamic allocated two-diminsional array, declare `argv` parameter of `main` function.

By the way, how many asterisk(`*`) of pointer type have you seen or written in practice?

As far as I know, there is pointer type with seven asterisks in [ITU T-Rec. H.264.2 Reference Software][h264ref].

Yes, it's "Septuple Pointer" with SEVEN(7) asterisks. It means "pointer to pointer to pointer to pointer to pointer to pointer to pointer to type `T`" in English, looks like `T*******` in C language.

[h264ref]: https://www.itu.int/rec/T-REC-H.264.2/en

```c
// lcommon/src/memalloc.c
int get_mem6Dmv(MotionVector *******array6D,
                int dim0, int dim1, int dim2, int dim3, int dim4, int dim5)
```

```c
// lencod/src/slice.c
static int get_mem_bipred_mv(Slice *currSlice, MotionVector ******* bipred_mv)
{
  get_mem6Dmv(bipred_mv, 2, 2, currSlice->max_num_references, 9, 4, 4);
  return 576 * currSlice->max_num_references * sizeof(MotionVector);
}
```

Side Note: The reference software also have "Octuple Pointer" with EIGHT(8) asterisks to handle seven-dimentional array.  As good luck would have it, this function is not used any more!

```c
// lcommon/src/memalloc.c
int get_mem7Dmv(MotionVector ********array7D,
                int dim0, int dim1, int dim2, int dim3, int dim4, int dim5, int dim6)
```
Hello World I am Nijeesh
Tags: introduction
Published: 2017-11-18 18:57:53

---
title: "Hello World I am Nijeesh"
published: true
description: 
tags: introduction,
---

Hello world my name is Nijeesh

I am currently doing my Undergraduate in Mechatronics Engineering in India. Currently looking for opportunities for work on a job or intern in a good company. 
When i say i studied mechatronics engineering every one is like "if you studied mechanical engineering why you want to do an IT job ?" and i was like sorry you Heard me wrong " i said mechatronics engineering not mechanical " and they will answer " what is the difference ?"
So i have to explain to them the difference.
I decided to create a online presence so i can show people what i know and what i have been doing and share my experience with them and on the way learn many cool things.
    I love to code a lot , Make something  and experiment  a lot other than web development i loves to do CAD designs , Making cool stuff with Arduino and RPi
DuckRails - I created an opensource tool for developers
Tags: webdev, showdev, productivity, docker
Published: 2017-11-18 18:54:03

---
title: DuckRails - I created an opensource tool for developers
published: true
description: An opensource tool for developers to easily and dynamically mock API endpoints
tags: webdev, showdev, productivity, docker
cover_image: https://raw.githubusercontent.com/iridakos/duckrails/master/documentation/readme/resources/duckrails-home-page.png
image: https://raw.githubusercontent.com/iridakos/duckrails/master/documentation/readme/resources/duckrails-home-page.png
---

I have created an opensource development tool called [DuckRails](https://github.com/iridakos/duckrails).

Its main purpose is to allow developers to quickly mock API endpoints that for many possible reasons they can't reach at a specific time.

![DuckRails home page](https://github.com/iridakos/duckrails/blob/master/documentation/readme/resources/duckrails-home-page.png?raw=true)

You can find installation instructions [here](https://github.com/iridakos/duckrails/wiki/Setting-up-the-application) (including setup via docker image).
You can browse the project's [GitHub wiki pages](https://github.com/iridakos/duckrails/wiki) for usage guides.
How often You Have to use the Concepts of Trees in your algo 
Tags: discuss
Published: 2017-11-18 18:34:00

---
title: How often You Have to use the Concepts of Trees in your algo 
published: true
tags: discuss
---

I really dont get it 
I haven't Used Trees in any of my Programs so far is it me or everyone feels the same ?

I may be a bad programmer but its just a thought...
Challenge - Print Spiral
Tags: puzzle, fun, challenge
Published: 2017-11-18 18:07:56

---
title: Challenge - Print Spiral
published: true
description: 
tags: #puzzle #fun #challenge
---

## Level 1
Write a program in the language of your choice that will display a ”spiral” of n × n numbers. 
For example, here’s what the spiral looks like for n = 10:

```
*Main> printSpiral 10
99 98 97 96 95 94 93 92 91 90
64 63 62 61 60 59 58 57 56 89
65 36 35 34 33 32 31 30 55 88
66 37 16 15 14 13 12 29 54 87
67 38 17  4  3  2 11 28 53 86
68 39 18  5  0  1 10 27 52 85
69 40 19  6  7  8  9 26 51 84
70 41 20 21 22 23 24 25 50 83
71 42 43 44 45 46 47 48 49 82
72 73 74 75 76 77 78 79 80 81
*Main>
```

## Level 2
Make sure your program uses constant (or linear) space. This means, it is not allowed to build an array before printing it (or to build another data structure consuming space with O( n^2 ).

Idea found here: https://www.quora.com/What-are-some-interesting-puzzles-asked-in-computer-science-programming-technical-interviews

Post your solution in the comments below.

## Clarification
For a solution in O(n) it is allowed to build a String (or Array,...) for a single line, but still not to build an array containing *all* information contained in the spiral. Perhaps this fits better to your language of choice or it is good for building a prototype,... Thanks for asking, Evan Oman.
Software 2.0?
Tags: software, ai, machinelearning, rant
Published: 2019-01-20 15:20:56

---
title: Software 2.0?
published: true
tags: software,ai,machine_learning,rant
canonical_url: https://horia141.com/software-2-0.html
---

Recently an article by Tesla’s Andrej Karpathy titled [Software 2.0 circled](https://medium.com/@karpathy/software-2-0-a64152b37c35) the techsphere. The author was of the opinion that neural networks are a fundamental shift in how we build programs and that this is an interesting development which warrants a web 2.0 style name.

Now I agree that neural networks are super and the whole ML approach to a lot of “human hard” task such as object recognition, speech synthesis, translation etc is the right one. And this is both from a theoretical point of view as well as a practical “this is what gets results” point of view. The fact that they’re relatively easy to pick up, as opposed to some other well known tools in the ML arsenal (ahem, looking at you kernel methods, Bayesian methods, Gaussian processes etc[1]) is just the icing on the cake.

And I also agree with the title itself. I _do_ think that we are heading towards a new type of product, with vastly increased capabilities and a different sort of human interaction for it. Some of them have almost magical powers. I’m thinking of self-driving cars and conversational interfaces. The former _will_ radically alter transportation in the world, while the latter seem poised to be the third wave of UIs for programs, devices, and things, the same way command lines and GUIs were in their time.[2]

But I don’t think neural networks are radically changing the way we built these things. Sure, they fill in some pieces of the puzzle we didn’t quite have yet. But we’re a long way away from building something like Excel via a neural network.

And until we actually have software building large pieces of software, with loads of state, not just the _pure_ functions we’re approximating right now, I don’t think we can speak of _software 2.0_. But then again, when we _do_ have that sort of capability, perhaps the world as a whole won’t care about mundane thins such as spreadsheets, image sharing or digital payments.

* * *

[1] as an aside, isn’t it interesting that the more CS/AI focused methods have a low barrier to entry. Not just neural networks, but also nearest neighbour, tree models, and to a certain extent graphical models. Whereas statistics inspired methods are heavy on the math and relatively hard to pick up. Not that I think having a theoretical understanding of a tool is not a good thing, but it does limit the people that will adopt the tool to those with (1) the background and (2) willing to put in the work to understand it.

[2] even for regular line-of-business applications this seems to be the case. I was recently surprised to find out that in Google Analytics you can do various queries and reports by asking for them. So you can say “What’s the most visited page this week” and sort of get an answer.
What was your first big step in this never ending journey?
Tags: discuss, career
Published: 2017-11-18 16:22:26

---
title: What was your first big step in this never ending journey?
published: true
description: 
tags: discuss, career
---

If you're a constant reader of dev.to, you may have noticed that all I've ever posted are discussions, and that's because I find more questions than answers in my head, for I've never actually thrown myself to get a Junior Developer position (lack of time), but I've made cool stuff during my Systems Engineering studies at the university and I know HTML, CSS, JS, jQuery, PHP, Java, and I'm learning React right now.

What I want to know from you guys, regardless of your position (i.e. Junior, Senior, ...), is what was your first big step and the story of it.
2 ways to install Nodejs on MacOS : the Beginners Guide
Tags: javascript, nodejstutorial, node
Published: 2017-11-26 13:01:10

---
title: "2 ways to install Nodejs on MacOS : the Beginners Guide"
published: true
tags: javascript,node-js-tutorial,nodejs
canonical_url: https://medium.com/lordofdev/2-ways-to-install-nodejs-on-macos-the-beginners-guide-55c457e66441
---

![](https://cdn-images-1.medium.com/max/1024/1*B9EvsPlsQkCmnGzZKPD42w.png)

this day I’ve talk about how to install Nodejs on MacOS is have two ways use [NVM](http://nvm.sh) or download installer from [nodejs.org](http://nodejs.or)

### Install from nodejs.org

I’ve start from it because it’s simple just goto [nodejs.org](https://nodejs.org/en/download/) and select mac&nbsp;os

![](https://cdn-images-1.medium.com/max/990/1*27GNx3vxjbrge1Mow4UohQ.png)<figcaption>install Nodejs on MacOS with installer</figcaption>

you will got installer file then download succeed open&nbsp;it

![](https://cdn-images-1.medium.com/max/704/1*EAD1VyC2mYAu8LuszFjfFA.png)<figcaption>install Nodejs on MacOS first step</figcaption>

click continue

![](https://cdn-images-1.medium.com/max/704/1*Sip9UrdDFypVbzPemr6pFQ.png)<figcaption>install Nodejs on MacOS user ageement</figcaption>

and continue and&nbsp;agree

![](https://cdn-images-1.medium.com/max/732/1*ilq0xy2jbLWIHA4G9pyTQQ.png)<figcaption>install Nodejs on MacOS User agreement continue</figcaption>

last click&nbsp;install

![](https://cdn-images-1.medium.com/max/732/1*7nLEjwAVLLfOsPLsRAo-zA.png)<figcaption>install Nodejs on MacOS in conclusion</figcaption>

and wait

![](https://cdn-images-1.medium.com/max/732/1*j4WmFo9EHJAG59ZHJxiY3g.png)<figcaption>install Nodejs on MacOS : wait for load</figcaption>

install succeed

![](https://cdn-images-1.medium.com/max/732/1*nVYzO6Q0A_j0VCiGI92xlQ.png)<figcaption>install Nodejs on MacOS : succeed and display node path</figcaption>

to call your node open terminal and type&nbsp;node

![](https://cdn-images-1.medium.com/max/777/1*Pz5HuEOT6MO_2fj28tjYkQ.png)<figcaption>call nodejs from terminal in mac os</figcaption>

### using nvm

[nvm](http://nvm.sh) is acronym of node package manager is terminal app that help us manage node in different version

first goto [nvm.sh](http://nvm.sh) it’s direct to github repository then scroll down to installation section copy first&nbsp;line

![](https://cdn-images-1.medium.com/max/1024/1*Co2pUZuYJU8DY0gQ5Sxh7A.png)<figcaption>install Nodejs on MacOS with nvm : nvm repository</figcaption>

because my mac is already install&nbsp;Curl

![](https://cdn-images-1.medium.com/max/777/1*OmSBr0KCsd37JYpqrj5ufA.png)<figcaption>install Nodejs on MacOS with Curl</figcaption>

when install succeed. use nvm ls-remote for list node version from&nbsp;server

![](https://cdn-images-1.medium.com/max/777/1*gKXRg--OLsQCs2gGDmLQIA.png)

try one on&nbsp;list

![](https://cdn-images-1.medium.com/max/777/1*SiLkRiBqTKe-NOT87EdZ3A.png)

I’ve choose&nbsp;9.2.0

![](https://cdn-images-1.medium.com/max/777/1*J-UgHDeCieWTvmMRRZCAEw.png)

then check node version with node&nbsp;-v

**woohoo** we succeed install node on mac os I’ve recommend use nvm because is flexible more than use&nbsp;.pkg

* * *
Unity Asset "Ultimate Mobile" Memo
Tags: unity3d
Published: 2017-11-18 15:59:02

---
title: Unity Asset "Ultimate Mobile" Memo
published: true
description: 
tags: #unity
---


https://assetstore.unity.com/packages/tools/integration/ultimate-mobile-20152


Android
```
// Add AndroidManifest.xml -- in the <manifest> tag.

 xmlns:tools="http://schemas.android.com/tools"


// Add AndroidManifest.xml -- in the <application> tag.

 tools:replace="android:icon"

```
London Perl Workshop – Perl6 Bailador Workshop
Tags: perl, perl6
Published: 2018-08-21 09:12:58

---
title: London Perl Workshop – Perl6 Bailador Workshop
published: true
tags: perl,perl6
canonical_url: https://lancewicks.com/2017/11/18/london-perl-workshop-perl6-bailador-workshop/#utm_source=rss&utm_medium=rss
---

Hi all,

As some will be aware I am running a workshop on November 25th at the London Perl Workshop ( #lpw2017 ) on the Perl6/6lang web framework Bailador.

Bailador is a 6lang/Perl6 equivalent to the Perl5 Dancer framework. Bailador is a route based web framework.

I have been building a small web application on [http://myjudo.net?utm\_source=rss&utm\_medium=rss](http://myjudo.net?utm_source=rss&utm_medium=rss) with Bailador to give me the steps to share on the workshop.

The workshop is a great day to attend if you work in software and/or on the web. There are talks on a wide range of subjects for techies. So if you have an interest do pop along, you can register for free at [http://act.yapc.eu/lpw2017/?utm\_source=rss&utm\_medium=rss](http://act.yapc.eu/lpw2017/?utm_source=rss&utm_medium=rss) and if you want to you can sign up for my talk/workshop at [http://act.yapc.eu/lpw2017/talk/7213?utm\_source=rss&utm\_medium=rss](http://act.yapc.eu/lpw2017/talk/7213?utm_source=rss&utm_medium=rss)

I hope you attend, please say hello to me if you do attend.

Lance
NativeScript and Vue.js
Tags: vue, nativescript, todayilearned
Published: 2017-11-18 11:23:39

---
title: NativeScript and Vue.js
published: true
description: NativeScript and Vue.js
tags: #vue #nativescript #til
---

# NativeScript and Vue.js

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

[NativeScript](https://www.nativescript.org/) is supporting of cross platform for iOS and Android. With consisted of front-end platform solution.

# Setup

Reference is [this blog post](https://www.nativescript.org/blog/vue-and-nativescript-in-one-minute). 

```shell
> npm install -g nativescript
```

After added command is tns.

```shell
> which tns
/Users/futoase/.nodenv/shims/tns
```

Create sample product (directory).


```shell
> tns create sample-project
```

Install [nativescript-vue-plugin](https://www.npmjs.com/package/nativescript-vue)

```shell
> cd sample-project/
> npm install --save nativescript-vue
```

Edit of app.js ([Reference from Sample](https://www.nativescript.org/blog/vue-and-nativescript-in-one-minute))

```js
const Vue = require('nativescript-vue/dist/index');

new Vue({
  template: `
    <page>
      <stack-layout>
        <label text="Hello Vue!" style="background-color:#41b883;color:#ffffff;padding:10;text-align:center"></label>
      </stack-layout>
    </page>
  `,
}).$start();
```

## Running on Emulator

### iOS

```shell
> tns run ios
```

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

### Android

compile error

- reason is code error.
  - [this code point.](https://github.com/telerik/mobile-cli-lib/blob/06d4f680523cf79ecc7df47feeb61cf6acc7a2a7/sys-info-base.ts#L22)

```javascript
			try {
				// different java has different format for `java -version` command
				const output = (await this.$childProcess.spawnFromEvent("java", ["-version"], "exit")).stderr;
				this.javaVerCache = /(?:openjdk|java) version \"((?:\d+\.)+(?:\d+))/i.exec(output)[1];
			} catch (e) {
				this.javaVerCache = null;
			}
```

Opened issue. [issues#3148](https://github.com/NativeScript/nativescript-cli/issues/3148)

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

Because Java 9 output version number from Stdout, But should be get version number from stdout in code...

# Reference

- https://www.nativescript.org/blog/vue-and-nativescript-in-one-minute
- https://developer.telerik.com/products/nativescript/native-ios-android-vue-nativescript/
- https://github.com/NativeScript/nativescript-cli/issues/3152
Tinder right swipe automation by SideeX
Tags: tinder, sideex, seleniumide, selenium
Published: 2017-11-18 14:33:37

---
title: Tinder right swipe automation by SideeX
published: true
description: 
tags: tinder, SideeX, SeleniumIDE, Selenium
---
hey nerds, do you know tinder?
anyway, I won't write about what is tinder.
if you want to right swipe 100000 times on tinder, you must use sideex.
sideex is a type of SeleniumIDE.

step1
install sideex to firefox
https://addons.mozilla.org/ja/firefox/addon/sideex/
(this time, sideex on chrome didnt work)
step2
use like a this video
https://twitter.com/supertinder/status/931858473922396160


(I dont like explaining by text. it's not smart)
forEach - filter 0-1
Tags: javascript, filter, foreach
Published: 2017-11-18 14:06:15

---
title: forEach - filter 0-1
published: true
description: When to use filter instead of foreach? Here.
tags: javascript, filter, foreach
---

Let's say we have an array of pet foods:

```js
var petFoods = [
    {
        name: "Cat Food",
        usableOn: ["cat"]
    },
    {
        name: "Dog Food",
        usableOn: ["dog"]
    },
    {
        name: "Pet Food",
        usableOn: ["cat", "dog"]
    }
];
```

...and let's say we want to get the foods that a cat can eat.

We would use a forEach loop, right?

```js
var usableOnCats = [];

petFoods.forEach(function(food) {
    if (food.usableOn.includes("cat")) {
        usableOnCats.push(food);
    }
});
```

Alright, that's a bit long...

What if JS had something for arrays that specifically works for this purpose...

...oh wait, it totally does!

Let's use a filter loop:

```js
var usableOnCats = petFoods.filter(function(food) {
    return food.usableOn.includes("cat");
});
```

...there you go. Much better, isn't it?