teleren/devto huggingface dataset:
How to Invest in Direct Mutual Funds through AMC
Tags: howto, learn, amfi, assetmanagementcom
Published: 2018-10-11 07:15:39

---
title: How to Invest in Direct Mutual Funds through AMC
published: true
tags: How To,Learn,AMFI,Asset Management Com
canonical_url: 
---

Investing in Direct mutual funds save a lot of money over the period of years in contrast to investing in regular mutual funds. Many people tend to buy mutual funds through brokers just because there are many third-party services available in the market attracting potential investors.

The post [How to Invest in Direct Mutual Funds through AMC](https://mfrepublic.com/invest-in-direct-mutual-funds-through-amc/) appeared first on [MF Republic](https://mfrepublic.com).
Check deprecated things in Go
Tags: go
Published: 2018-10-11 00:25:21

---
title: Check deprecated things in Go
published: true
description: 
tags: Go
---

## How deprecate functions? 

Go official suggest to using `Deprecated:` comment in the doc that wants to deprecate functions, struct fields.
[Godoc: documenting Go code](https://blog.golang.org/godoc-documenting-go-code)

It is using in standard libraries. Ref: [standard library](https://golang.org/search?q=Deprecated:).

For example, [`SEEK_SET` const](https://golang.org/src/os/file.go?h=Deprecated%3A#L80) of `os/file.go` , using comment as follows. 

```go
// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
const (
	SEEK_SET int = 0 // seek relative to the origin of the file
	SEEK_CUR int = 1 // seek relative to the current offset
	SEEK_END int = 2 // seek relative to the end
) 
```

So we should follow this rule in our libraries. 

But if you follow this rule, deprecated functions show in Go doc now([Related discussion](https://github.com/golang/go/issues/17056)).
Also, golint does not check about deprecated comments([Related discussion](https://github.com/golang/lint/issues/238)).
As such, go official tools does not have particular behavior for deprecated comments.  


## Using `staticcheck` for check 

[staticcheck](https://github.com/dominikh/go-tools/tree/master/cmd/staticcheck) in [go-tools](https://github.com/dominikh/go-tools) can check deprecated things. 

`staticcheck` reports as follows if using deprecated things. 

```go
package main

import (
	"net/http/httputil"
)

func main() {
	httputil.NewClientConn(nil, nil)
}
```

```bash
$ staticcheck main.go
deprecated.go:8:2: httputil.NewClientConn is deprecated: Use the Client or Transport in package net/http instead.  (SA1019)
``` 

`staticcheck` shows comments as it is behinds `Deprecated: `. Using this in CI is good. 


## Conclusion 

* Using `Deprecated: `comment for deprecated things. 
* Check to deprecated things with `staticcheck`.
How do Freelancers deal with poor mental health conditions?
Tags: discuss, mentalhealth, freelancing
Published: 2018-10-11 00:05:26

---
title: How do Freelancers deal with poor mental health conditions?
published: true
description: On #WorldMentalHealthDay, how do all of the freelancers deal with clients so difficult it starts effecting their mental health?
tags: discuss, mental health, freelancing
---

On #WorldMentalHealthDay, how do all of the freelancers deal with clients who are so overbearing they start effecting your health, mental and physical; your work, and your relationships? Anything from coping mechanisms to legal routes. And GO!
Re-adding Vecty support to vtemplates
Tags: go, webdev, webassembly, devlog
Published: 2018-10-11 00:01:50

---
title: Re-adding Vecty support to vtemplates
published: true
description: vtemplates can render HTML and now Vecty components like the original proof of concept. Got it working using the Markdown demo from the proof of concept. Slots next!
tags: golang, webdev, webassembly, devlog
---

I did a quick unscheduled stream to add Vecty back to vtemplate since I refactored it into a real library. As expected there were a few things I had to fix, but mostly minor. The new architecture works great. Most of my trouble came from making sure my reflected library was doing reflection correctly. Like I mentioned before, reflection can be tricky. 

I rewrote my old Markdown demo prototype to use vtemplate and it works! I was hoping to get slots in so components can use their inner HTML, but I ran out of time. That's next, though, and shouldn't be that difficult. I think after that I can just start wrapping this up into a user friendly web framework, which is its own task. I want to make it easy to load template files living next to the Go file for a component, and rework my dev harness into a proper development server. 

{% youtube YbGa38k2OnM %}
朝 6 時から働く超朝型エンジニアの一日 #Zaim
Published: 2018-11-05 22:26:20

---
title: 朝 6 時から働く超朝型エンジニアの一日 #Zaim
published: true
tags: 
canonical_url: https://note.mu/watura/n/n44054e19ccb8
cover_image: https://thepracticaldev.s3.amazonaws.com/i/p8hveikkq94xtguryfpk.jpg
---

おはようございます。Zaim で iOS アプリ開発をしている watura です。今日は私の一癖ある働き方について紹介していきたいと思います。

Zaim では、始業時間をある範囲で自由に決められる制度があります。 **5 時から 10 時の間に業務を開始し、そこから 8 時間の勤務と 1 時間の休憩を入れる** という勤務体系です。まるでフレックス制度のようですが、勤務時間自体は固定なのでフレックスではありません。


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

以下、よく聞かれる質問に回答していきます。

#### 6 時から働いたら何時まで仕事なの？
15 時です。

#### 仕事終わった後は何をしているの？
ジムに行って筋トレしたり、手ごねパンを焼いたりしています。

16 時台や 17 時台はジムが割と空いている時間なので、いつも非常に快適に筋トレに励むことができています。

ただ、スタジオ系はあまりないので、黙々と筋トレするか、トレッドミルとかで有酸素に励むということしかできていないです。まあ、筋トレが楽しいのでスタジオには参加しなくてもいいかなとも思っています。

#### いつも何時に寝ているの？
22 時には寝るようにしています。

#### いつも何時に起きているの？
4〜5 時台です。

#### 飲み会とかどうしているの？15 時以降、暇じゃない？
多くの場合、ジムに行ってカロリーを消費してから飲み会に行きます。

会社の飲み会であれば渋谷近辺になることが多いので、会社近辺のジムに行って、筋トレをし、お風呂に入ってから、オフィスに戻り、飲み会の時間まで待機しています。勉強会とかに参加する場合も、ジムに行ってから参加するというのが多いですね。

#### 飲み会の次の日はゆっくり出社するの？
基本的にしないです。制度的には、次の日にゆっくり出社するという選択は可能です。

#### それだと起きるの大変じゃないの？
超眠くて大変ですが、気合いと根性、カフェインの力で頑張っています。

#### そんなに早く帰ってミーティングとか大丈夫なの？
念のため、Google カレンダーで 15 時半以降は私は勤務時間外ですって出るように設定しています。ありがたいことに、ある程度まわりの方も考慮してくれるので助かります。

この早朝制度を利用すると、最大で 14 時に勤務終了となります。つまり、ほぼ半休をとったのと等しい時間に勤務が終了します。そこから旅行に行くと、夜から出発や有給を利用して出発に比べて圧倒的に効率よく時間が使えるようになります。
Looking for beta testers for Edge Application Delivery Network
Tags: edge, askdev
Published: 2018-10-10 22:53:52

---
title: Looking for beta testers for Edge Application Delivery Network
published: true
description: Delivering entirely dynamic applications at the edge, with global sync
tags: edge,askdev
---

Hey all:

I’m seeking a few beta testers to test our newest product, a Edge Applications Delivery Network - it includes global sync, and 10 POPs, syncing data in real time within 20ms of publishing.

What it can be used for:
- dynamic applications
- serving static files and content
- running code right at the edge
- natively supports Docker containers

Beta testers will get a developers guide to write application rules, rules are written in Typescript, and run at all our edge nodes.

In order to become a beta tester, leave a comment below, or connect with me on the dev chat. I will give you access to the network.

Cheers
Announcement: a11y for JavaScript Devs Course coming!
Tags: discuss, a11y, javascript
Published: 2018-10-10 22:19:03

---
title: Announcement: a11y for JavaScript Devs Course coming!
published: true
description: JavaScript and Accessibility -  A Seemingly Unconventional Romance
tags: discuss, a11y, javascript
---

Hey all,

When I read [Rian Rietveld's announcement](https://rianrietveld.com/2018/10/09/i-have-resigned-the-wordpress-accessibility-team/) about resigning from the WordPress a11y team, it really got me thinking. The pain point seemed to be a lack of overlap between React/JS developers and accessibility experts. This is a pain point that I've been well aware of for years, as many JavaScript developers get resistant to me pointing out accessibility errors. I've never understood this resistance, but I am going to assume that people are more intimidated and/or overwhelmed by fixing the errors and they would feel empowered with some solid foundational knowledge.

I started asking in the DCTech Slack about my thoughts on creating a course on accessibility for JavaScript developers. I asked if they would be willing to buy it if I created a course. The response I got was overwhelmingly positive-everyone said some form of yes. 

Then I took it to Twitter:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">I&#39;ve been thinking about creating an Accessibility and JS course for awhile. After reading about <a href="https://twitter.com/RianRietveld?ref_src=twsrc%5Etfw">@RianRietveld</a>&#39;s resignation, it seems to me that the JS world and the a11y world need more overlap and collaboration. If I created an affordable online course, would you invest in it?</p>&mdash; Lindsey Kopacz (@littlekope0903) <a href="https://twitter.com/littlekope0903/status/1050056634729410561?ref_src=twsrc%5Etfw">October 10, 2018</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

At the time of this writing, the results are 87% yes. To be frank, I was always planning on creating this course, just not this soon. But the demand is apparent, so I am changing my plans a bit.

I would LOVE your feedback on any specific pain points you hear about accessibility and JavaScript. Please comment below! 

Also, if you're interested in this, I am creating a list of emails JUST for updates pertaining to this course. [Please subscribe](eepurl.com/dJTkXg) if you want to take this course, and I will be giving my subscribers a discount on it when it comes out.
JavaScript library that provides useful functional programming helpers
Tags: javascript, discuss, opensource
Published: 2018-10-10 22:13:48

---
title: JavaScript library that provides useful functional programming helpers
published: true
description: JavaScript library that provides useful functional programming helpers. Add your own 👍
tags: javascript, discuss, opensource
---

Just curious, have you ever had a moment when you realized that you’ve already written that helper?

I had, so decided to start collecting them into the package.
Join 😉

I will appreciate any thoughts and feedbacks.
Thanks!

{% github https://github.com/shystruk/famulus %}
Offline is the new normal
Tags: opensource, wekan, offline
Published: 2018-10-10 22:12:46

---
title: Offline is the new normal
published: true
description: Offline is the new normal
tags: Open Source, Wekan, Offline
---

This blog post is based on:

- Expanding phrase _Offline is the new normal_ at [www.xet7.org](http://www.xet7.org)
- Book I listened: [It Doesn’t Have to Be Crazy at Work](https://basecamp.com/books/calm)

## What is _new normal_

Something done often enough so that it becomes a habit.

## What being always online causes

- Installing new security updates all the time.
- For non-static website, constant patching, and trying to keep website secure. When new security patch is released, all Internet-accessible websites will receive attacks soon.
- Updates to all computers, smartphones, routers, etc internet connected devices – if they still receive updates.
- Trying to be prepared if new update makes some functionality broken of deletes something – like recent Windows Update deleting files, or xet7 adding new experimetal code to Wekan edge that breaks everything.
- Checking email, chat, news, etc too often, and letting it distract concentrating to work.

## What being mostly offline should look like

- At 1991-1994 I did run BBS, using https://en.wikipedia.org/wiki/QWK_(file_format) to upload and download newest messages.
- Today, there should be similar sync program, that gets all new files/chats/images/updates/etc downloaded at once, verifies that it is malware free and in common text and image formats, and saves to directory at harddrive or USB stick.
- Work, replies to messages, etc would happen offline, and sync would be made once a week, for example.
- Offline intranet would use sandboxing like those provided by [Sandstorm](https://sandstorm.io/), Docker, [Snap](https://snapcraft.io), [VMs](https://www.virtualbox.org), [LXC, LXD](https://linuxcontainers.org), [Endless OS](https://endlessos.com) that has locked down [Flatpak](https://flatpak.org) apps (locking down [depends](https://news.ycombinator.com/item?id=18180017) on settings), [Qubes OS](https://www.qubes-os.org), etc.
- If there is need to update some website, those could be synced to Internet with some script.

## Benefits offline would bring

- No Internet.
- Smartphone off.
- Time to concentrate, for example 3 hours at once to one work, quality time.
- Getting more done.
- No distractions.
- Have data offline, no need to worry does Internet connection go down.
- Spend less time at computer.
- Spend more time walking outside.
- Spend more time sleeping – yes your brain works when you sleep and solution can pop up to your mind at morning. Brain that gets enough rest works better, and gets more capacity for solving more complex work.

## Beginning of a journey

I’m not there yet. I don’t know is this possible for my current highly-connected life. Getting even some of these working would be a good start. I’ll try to begin taking some steps.

To be continued…

(posted originally at: https://blog.wekan.team/2018/10/offline-is-the-new-normal/index.html)
How to run a webserver with httpd on OpenBSD 6.3
Tags: openbsd, httpd, vultr
Published: 2018-10-14 13:00:51

---
title: How to run a webserver with httpd on OpenBSD 6.3
published: true
tags: OpenBSD, httpd, Vultr 
canonical_url: https://wildauer.io/httpd-on-openbsd/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/zuv9l8hfkb5kthuf5vml.png
---

Populate `/etc/httpd.conf` and replace _example.com_ with your domain

```
server "example.com" {
  listen on * port 80
  root "/htdocs/example.com"
}

```

> The httpd daemon is chrooted to /var/www by default so `root "/htdocs/example.com"` means `/var/www/htdocs/exmaple.com`.

We should create our document root

```
mkdir -p /var/www/htdocs/example.com
```

add a `index.html` file with a placeholder to the new directory

```
echo "Hello World from OpenBSD 6.3">/var/www/htdocs/example.com/index.html
```

Check httpd configuration

```
httpd -n
```

When everythings looks ok, enable and start httpd

```
rcctl enable httpd
rcctl start httpd
```

Now you should reach your website with your IP address.
How to build with Bazel
Tags: bazel, java, android, devop
Published: 2018-10-10 21:10:33

---
title: How to build with Bazel
published: true
description: We talk about how to build different languages with Bazel and what you can do with the system.
tags: bazel, java, android, devop
---

{% youtube e9dlx2ilwr0 %}
Prototyped tree view and property inspector UI
Tags: webdev, jquery, javascript, devlog
Published: 2018-10-10 20:04:06

---
title: Prototyped tree view and property inspector UI
published: true
description: Today I threw together some jQuery libraries to make a prototype for the UI of an upcoming/ongoing project. It's inspired by Unity and it's not particularly impressive but it's a start!
tags: webdev, jquery, javascript, devlog
---

I did a poll on Twitter to see what project on my backlog to take on yesterday. Surprisingly almost nobody was interested in a Go to Objective-C bridge. I guess I'm the only one with plans for what I can do with that. Most popular was working on my Go WASM web framework project, but at the last minute that was beat out by "Prototype UI for new project".

It may not seem like it yet, but all these projects are related and part of a bigger project. There's a specific reason I want a frontend Go web framework more than just cutting through all the baggage that Javascript has built up. However, I need to keep making progress on the critical path of my larger project, so in the meantime I figured I'd prototype the UI using off the shelf jQuery libraries. 

The goal was to recreate this aspect of Unity where you have a project tree with arbitrary nodes that you can make. Those nodes then have behaviors or components attached to them, which you can interact with via an inspector view. This can be customized to not only provide a way to edit data associated with a component, but visualize and interact. And of course these components might reference other objects, which you can drag and drop into place.

The key components here are a tree view and a property editor. Luckily there are some alright jQuery libraries for each of these. So I started throwing them together. I used [jsTree](https://www.jstree.com/) and [jqPropertyGrid](https://github.com/ValYouW/jqPropertyGrid) to make this. 

It's fun to not worry about architecture and just throw messy code together like the good old days. In about 2.5 hours I had this app where you have an empty tree you can create nodes for. You can arrange and nest nodes with drag and drop. You can click a node and see properties on it. Editing those properties persist between selecting nodes, as well as between page reloads. And then there is a rough concept of components you can add to a node to add more properties. 

It's kind of a fun data management toy. It also is a great start. I will not require many more features before I can start defining a view data model that can eventually come from a backend. Eventually I can recreate this frontend in Go out of components. 

{% youtube 2sQvh8Cx8Fw %}
The int vs. Integer pitfall of Java's ArrayList.remove()
Tags: java, beginners, debugging, pitfalls
Published: 2018-10-10 19:57:08

Be careful when you try to use [ArrayList.remove()](https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#remove(int)) to delete specific elements using a boxed `Integer` rather than a primitive `int` -- you probably won't get the result you expect:

```java
jshell> ArrayList alist = new ArrayList(Arrays.asList('a', 'b', 'c', 'd', 'e'))
alist ==> [a, b, c, d, e]

jshell> alist.remove((Integer)3)
$2 ==> false

jshell> alist
alist ==> [a, b, c, d, e]
```

...this is because ArrayList has two remove() methods. [One which takes a `java.lang.Object`](https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#remove(java.lang.Object)), [and one which takes a primitive `int`](https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#remove(int)).

```java
jshell> alist.remove(3)
$4 ==> 'd'

jshell> alist
alist ==> [a, b, c, e]
```

When you use the former one, Java tries to match the `Integer` _object_ in your list, rather than removing the object at the specified index. In most cases, this will not be what you want. Be especially careful when doing things like:

```java
jshell> ArrayList toDelete = new ArrayList(Arrays.asList(0, 2))
toDelete ==> [0, 2]

jshell> for (Integer ii : toDelete) alist.remove(ii)

jshell> alist
alist ==> [a, b, c, e]
```

Here, we get no hint within the jshell that something went wrong (like we did above when `remove()` returned `false`). Make sure to always loop over primitive `int`s:

```java
jshell> for (int ii : toDelete) alist.remove(ii)

jshell> alist
alist ==> [b, c]
```

_This post originally appeared in a slightly different form on my (now defunct) Wordpress blog._
Open Source in the Cannabis Industry
Tags: discuss, opensource
Published: 2018-10-10 19:33:15

---
title: Open Source in the Cannabis Industry
published: true
tags: discuss, open source
---

I work at a dev agency specializing in Ruby on Rails. I've heard from several cannabis companies in the last year or so who have been seeking help on dev projects, specifically Rails/Spree/Solidus. I've been told Shopify and similar out of the box solutions are iffy on cannabis products since it's not legal federally. 

**So I'm curious for insight on open source's role in the growth of the cannabis industry**. Do you work for/with a company in this space? Do you have any thoughts on the industry and its relationship with open source?

Also, a disclaimer: I live in Portland, Oregon, so my area's a bit more in-touch with the cannabis community than other places where it isn't legal yet.

Appreciate any helpful discussion!
Resources for Teaching Programming from the Very Beginning
Tags: discuss, beginners, learning, books
Published: 2018-10-10 17:38:28

---
title: Resources for Teaching Programming from the Very Beginning
published: true
description: 
tags: #discuss #beginners #learning #books
---

What books or resources do you know of for teaching programming from the most basic beginning? While publishers like O'Reilly have a book for pretty much every occasion, these are all for a fairly sophisticated audience and there seems to be a fairly serious gap between what's required to understand those books and what an absolute beginner knows, especially someone who's not that old.

Books like [*Hello Ruby*](https://www.helloruby.com) look like an effort to bridge that gap, it's a very gentle introduction to the subject. Are there any that go further? Are there books like this that can take someone all the way to writing actual, useful code?

The [*Girls Who Code*](https://girlswhocode.com/books/) series seems more focused on making programming itself seem fun, worthwhile, and engaging, which is absolutely a great thing to see as there's a lot of misunderstanding and bias here worth addressing, but these books don't actually commit to teaching programming per-se, just preparing people for the idea that they can program.

The classic [*Poignant Guide to Ruby*](https://poignant.guide) certainly aims to do just that, combining whimsy and practical lessons, but I'm concerned that it's a bit too quirky to be a good general approach. It's like an amazing art project that just so happens to teach a bit of Ruby in the process.

Have you got any favourites for someone who's aspiring to program but has zero knowledge of how to go about doing that?
Working Remotely...
Tags: discuss
Published: 2018-10-10 16:59:26

---
title: Working Remotely...
published: true
description: 
tags: #discuss
---

I have two questions about working remotely...

1) Can you really work anywhere?

2) Can you work out of state if you move?

I'm considering moving out of state and wanted to see if it would be feasible to obtain a remote job here or in my future city? 

Thoughts?

Thanks!